|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.57.
4: #
5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
221: as_mkdir_p=false
222: fi
223:
224: as_executable_p="test -f"
225:
226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
240: $as_unset CDPATH
241:
242:
243:
244: # Check that we are running under the correct shell.
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
247: case X$ECHO in
248: X*--fallback-echo)
249: # Remove one level of quotation (which was required for Make).
250: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251: ;;
252: esac
253:
254: echo=${ECHO-echo}
255: if test "X$1" = X--no-reexec; then
256: # Discard the --no-reexec flag, and continue.
257: shift
258: elif test "X$1" = X--fallback-echo; then
259: # Avoid inline document here, it may be left over
260: :
261: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262: # Yippee, $echo works!
263: :
264: else
265: # Restart under the correct shell.
266: exec $SHELL "$0" --no-reexec ${1+"$@"}
267: fi
268:
269: if test "X$1" = X--fallback-echo; then
270: # used as fallback echo
271: shift
272: cat <<EOF
273: $*
274: EOF
275: exit 0
276: fi
277:
278: # The HP-UX ksh and POSIX shell print the target directory to stdout
279: # if CDPATH is set.
280: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281:
282: if test -z "$ECHO"; then
283: if test "X${echo_test_string+set}" != Xset; then
284: # find a string as large as possible, as long as the shell can cope with it
285: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288: echo_test_string="`eval $cmd`" &&
289: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290: then
291: break
292: fi
293: done
294: fi
295:
296: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298: test "X$echo_testing_string" = "X$echo_test_string"; then
299: :
300: else
301: # The Solaris, AIX, and Digital Unix default echo programs unquote
302: # backslashes. This makes it impossible to quote backslashes using
303: # echo "$something" | sed 's/\\/\\\\/g'
304: #
305: # So, first we look for a working echo in the user's PATH.
306:
307: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308: for dir in $PATH /usr/ucb; do
309: IFS="$lt_save_ifs"
310: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313: test "X$echo_testing_string" = "X$echo_test_string"; then
314: echo="$dir/echo"
315: break
316: fi
317: done
318: IFS="$lt_save_ifs"
319:
320: if test "X$echo" = Xecho; then
321: # We didn't find a better echo, so look for alternatives.
322: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324: test "X$echo_testing_string" = "X$echo_test_string"; then
325: # This shell has a builtin print -r that does the trick.
326: echo='print -r'
327: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328: test "X$CONFIG_SHELL" != X/bin/ksh; then
329: # If we have ksh, try running configure again with it.
330: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331: export ORIGINAL_CONFIG_SHELL
332: CONFIG_SHELL=/bin/ksh
333: export CONFIG_SHELL
334: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335: else
336: # Try using printf.
337: echo='printf %s\n'
338: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340: test "X$echo_testing_string" = "X$echo_test_string"; then
341: # Cool, printf works
342: :
343: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344: test "X$echo_testing_string" = 'X\t' &&
345: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346: test "X$echo_testing_string" = "X$echo_test_string"; then
347: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348: export CONFIG_SHELL
349: SHELL="$CONFIG_SHELL"
350: export SHELL
351: echo="$CONFIG_SHELL $0 --fallback-echo"
352: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353: test "X$echo_testing_string" = 'X\t' &&
354: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355: test "X$echo_testing_string" = "X$echo_test_string"; then
356: echo="$CONFIG_SHELL $0 --fallback-echo"
357: else
358: # maybe with a smaller string...
359: prev=:
360:
361: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363: then
364: break
365: fi
366: prev="$cmd"
367: done
368:
369: if test "$prev" != 'sed 50q "$0"'; then
370: echo_test_string=`eval $prev`
371: export echo_test_string
372: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373: else
374: # Oops. We lost completely, so just stick with echo.
375: echo=echo
376: fi
377: fi
378: fi
379: fi
380: fi
381: fi
382:
383: # Copy echo and quote the copy suitably for passing to libtool from
384: # the Makefile, instead of quoting the original, which is used later.
385: ECHO=$echo
386: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388: fi
389:
390:
391:
392:
393: tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
394:
395: tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
396:
397: # Name of the host.
398: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399: # so uname gets run too.
400: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401:
402: exec 6>&1
403:
404: #
405: # Initializations.
406: #
407: ac_default_prefix=/usr/local
408: ac_config_libobj_dir=.
409: cross_compiling=no
410: subdirs=
411: MFLAGS=
412: MAKEFLAGS=
413: SHELL=${CONFIG_SHELL-/bin/sh}
414:
415: # Maximum number of lines to put in a shell here document.
416: # This variable seems obsolete. It should probably be removed, and
417: # only ac_max_sed_lines should be used.
418: : ${ac_max_here_lines=38}
419:
420: # Identity of this package.
421: PACKAGE_NAME=
422: PACKAGE_TARNAME=
423: PACKAGE_VERSION=
424: PACKAGE_STRING=
425: PACKAGE_BUGREPORT=
426:
427: ac_unique_file="ic/m68k/m68k-impl.h"
428: # Factoring default headers for most tests.
429: ac_includes_default="\
430: #include <stdio.h>
431: #if HAVE_SYS_TYPES_H
432: # include <sys/types.h>
433: #endif
434: #if HAVE_SYS_STAT_H
435: # include <sys/stat.h>
436: #endif
437: #if STDC_HEADERS
438: # include <stdlib.h>
439: # include <stddef.h>
440: #else
441: # if HAVE_STDLIB_H
442: # include <stdlib.h>
443: # endif
444: #endif
445: #if HAVE_STRING_H
446: # if !STDC_HEADERS && HAVE_MEMORY_H
447: # include <memory.h>
448: # endif
449: # include <string.h>
450: #endif
451: #if HAVE_STRINGS_H
452: # include <strings.h>
453: #endif
454: #if HAVE_INTTYPES_H
455: # include <inttypes.h>
456: #else
457: # if HAVE_STDINT_H
458: # include <stdint.h>
459: # endif
460: #endif
461: #if HAVE_UNISTD_H
462: # include <unistd.h>
463: #endif"
464:
465: ac_subdirs_all="$ac_subdirs_all libltdl"
1.1.1.2 ! root 466: 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP YACC EGREP LIBOBJS PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS TME_FB_XLAT_DST TME_MACHINE_SUBDIRS TME_IC_SUBDIRS TME_ICS TME_SERIAL_SUBDIRS TME_SERIALS TME_BUS_SUBDIRS TME_FB_XLAT_SRC TME_HOSTS INCLTDL LIBLTDL LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS subdirs TME_PREOPEN'
1.1 root 467: ac_subst_files=''
468:
469: # Initialize some variables set by options.
470: ac_init_help=
471: ac_init_version=false
472: # The variables have the same names as the options, with
473: # dashes changed to underlines.
474: cache_file=/dev/null
475: exec_prefix=NONE
476: no_create=
477: no_recursion=
478: prefix=NONE
479: program_prefix=NONE
480: program_suffix=NONE
481: program_transform_name=s,x,x,
482: silent=
483: site=
484: srcdir=
485: verbose=
486: x_includes=NONE
487: x_libraries=NONE
488:
489: # Installation directory options.
490: # These are left unexpanded so users can "make install exec_prefix=/foo"
491: # and all the variables that are supposed to be based on exec_prefix
492: # by default will actually change.
493: # Use braces instead of parens because sh, perl, etc. also accept them.
494: bindir='${exec_prefix}/bin'
495: sbindir='${exec_prefix}/sbin'
496: libexecdir='${exec_prefix}/libexec'
497: datadir='${prefix}/share'
498: sysconfdir='${prefix}/etc'
499: sharedstatedir='${prefix}/com'
500: localstatedir='${prefix}/var'
501: libdir='${exec_prefix}/lib'
502: includedir='${prefix}/include'
503: oldincludedir='/usr/include'
504: infodir='${prefix}/info'
505: mandir='${prefix}/man'
506:
507: ac_prev=
508: for ac_option
509: do
510: # If the previous option needs an argument, assign it.
511: if test -n "$ac_prev"; then
512: eval "$ac_prev=\$ac_option"
513: ac_prev=
514: continue
515: fi
516:
517: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518:
519: # Accept the important Cygnus configure options, so we can diagnose typos.
520:
521: case $ac_option in
522:
523: -bindir | --bindir | --bindi | --bind | --bin | --bi)
524: ac_prev=bindir ;;
525: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526: bindir=$ac_optarg ;;
527:
528: -build | --build | --buil | --bui | --bu)
529: ac_prev=build_alias ;;
530: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531: build_alias=$ac_optarg ;;
532:
533: -cache-file | --cache-file | --cache-fil | --cache-fi \
534: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535: ac_prev=cache_file ;;
536: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538: cache_file=$ac_optarg ;;
539:
540: --config-cache | -C)
541: cache_file=config.cache ;;
542:
543: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544: ac_prev=datadir ;;
545: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546: | --da=*)
547: datadir=$ac_optarg ;;
548:
549: -disable-* | --disable-*)
550: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551: # Reject names that are not valid shell variable names.
552: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554: { (exit 1); exit 1; }; }
555: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556: eval "enable_$ac_feature=no" ;;
557:
558: -enable-* | --enable-*)
559: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560: # Reject names that are not valid shell variable names.
561: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563: { (exit 1); exit 1; }; }
564: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565: case $ac_option in
566: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567: *) ac_optarg=yes ;;
568: esac
569: eval "enable_$ac_feature='$ac_optarg'" ;;
570:
571: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573: | --exec | --exe | --ex)
574: ac_prev=exec_prefix ;;
575: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577: | --exec=* | --exe=* | --ex=*)
578: exec_prefix=$ac_optarg ;;
579:
580: -gas | --gas | --ga | --g)
581: # Obsolete; use --with-gas.
582: with_gas=yes ;;
583:
584: -help | --help | --hel | --he | -h)
585: ac_init_help=long ;;
586: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587: ac_init_help=recursive ;;
588: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589: ac_init_help=short ;;
590:
591: -host | --host | --hos | --ho)
592: ac_prev=host_alias ;;
593: -host=* | --host=* | --hos=* | --ho=*)
594: host_alias=$ac_optarg ;;
595:
596: -includedir | --includedir | --includedi | --included | --include \
597: | --includ | --inclu | --incl | --inc)
598: ac_prev=includedir ;;
599: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600: | --includ=* | --inclu=* | --incl=* | --inc=*)
601: includedir=$ac_optarg ;;
602:
603: -infodir | --infodir | --infodi | --infod | --info | --inf)
604: ac_prev=infodir ;;
605: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606: infodir=$ac_optarg ;;
607:
608: -libdir | --libdir | --libdi | --libd)
609: ac_prev=libdir ;;
610: -libdir=* | --libdir=* | --libdi=* | --libd=*)
611: libdir=$ac_optarg ;;
612:
613: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614: | --libexe | --libex | --libe)
615: ac_prev=libexecdir ;;
616: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617: | --libexe=* | --libex=* | --libe=*)
618: libexecdir=$ac_optarg ;;
619:
620: -localstatedir | --localstatedir | --localstatedi | --localstated \
621: | --localstate | --localstat | --localsta | --localst \
622: | --locals | --local | --loca | --loc | --lo)
623: ac_prev=localstatedir ;;
624: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627: localstatedir=$ac_optarg ;;
628:
629: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630: ac_prev=mandir ;;
631: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632: mandir=$ac_optarg ;;
633:
634: -nfp | --nfp | --nf)
635: # Obsolete; use --without-fp.
636: with_fp=no ;;
637:
638: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639: | --no-cr | --no-c | -n)
640: no_create=yes ;;
641:
642: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644: no_recursion=yes ;;
645:
646: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648: | --oldin | --oldi | --old | --ol | --o)
649: ac_prev=oldincludedir ;;
650: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653: oldincludedir=$ac_optarg ;;
654:
655: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656: ac_prev=prefix ;;
657: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658: prefix=$ac_optarg ;;
659:
660: -program-prefix | --program-prefix | --program-prefi | --program-pref \
661: | --program-pre | --program-pr | --program-p)
662: ac_prev=program_prefix ;;
663: -program-prefix=* | --program-prefix=* | --program-prefi=* \
664: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665: program_prefix=$ac_optarg ;;
666:
667: -program-suffix | --program-suffix | --program-suffi | --program-suff \
668: | --program-suf | --program-su | --program-s)
669: ac_prev=program_suffix ;;
670: -program-suffix=* | --program-suffix=* | --program-suffi=* \
671: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672: program_suffix=$ac_optarg ;;
673:
674: -program-transform-name | --program-transform-name \
675: | --program-transform-nam | --program-transform-na \
676: | --program-transform-n | --program-transform- \
677: | --program-transform | --program-transfor \
678: | --program-transfo | --program-transf \
679: | --program-trans | --program-tran \
680: | --progr-tra | --program-tr | --program-t)
681: ac_prev=program_transform_name ;;
682: -program-transform-name=* | --program-transform-name=* \
683: | --program-transform-nam=* | --program-transform-na=* \
684: | --program-transform-n=* | --program-transform-=* \
685: | --program-transform=* | --program-transfor=* \
686: | --program-transfo=* | --program-transf=* \
687: | --program-trans=* | --program-tran=* \
688: | --progr-tra=* | --program-tr=* | --program-t=*)
689: program_transform_name=$ac_optarg ;;
690:
691: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692: | -silent | --silent | --silen | --sile | --sil)
693: silent=yes ;;
694:
695: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696: ac_prev=sbindir ;;
697: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698: | --sbi=* | --sb=*)
699: sbindir=$ac_optarg ;;
700:
701: -sharedstatedir | --sharedstatedir | --sharedstatedi \
702: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703: | --sharedst | --shareds | --shared | --share | --shar \
704: | --sha | --sh)
705: ac_prev=sharedstatedir ;;
706: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709: | --sha=* | --sh=*)
710: sharedstatedir=$ac_optarg ;;
711:
712: -site | --site | --sit)
713: ac_prev=site ;;
714: -site=* | --site=* | --sit=*)
715: site=$ac_optarg ;;
716:
717: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718: ac_prev=srcdir ;;
719: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720: srcdir=$ac_optarg ;;
721:
722: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723: | --syscon | --sysco | --sysc | --sys | --sy)
724: ac_prev=sysconfdir ;;
725: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727: sysconfdir=$ac_optarg ;;
728:
729: -target | --target | --targe | --targ | --tar | --ta | --t)
730: ac_prev=target_alias ;;
731: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732: target_alias=$ac_optarg ;;
733:
734: -v | -verbose | --verbose | --verbos | --verbo | --verb)
735: verbose=yes ;;
736:
737: -version | --version | --versio | --versi | --vers | -V)
738: ac_init_version=: ;;
739:
740: -with-* | --with-*)
741: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742: # Reject names that are not valid shell variable names.
743: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744: { echo "$as_me: error: invalid package name: $ac_package" >&2
745: { (exit 1); exit 1; }; }
746: ac_package=`echo $ac_package| sed 's/-/_/g'`
747: case $ac_option in
748: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749: *) ac_optarg=yes ;;
750: esac
751: eval "with_$ac_package='$ac_optarg'" ;;
752:
753: -without-* | --without-*)
754: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755: # Reject names that are not valid shell variable names.
756: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757: { echo "$as_me: error: invalid package name: $ac_package" >&2
758: { (exit 1); exit 1; }; }
759: ac_package=`echo $ac_package | sed 's/-/_/g'`
760: eval "with_$ac_package=no" ;;
761:
762: --x)
763: # Obsolete; use --with-x.
764: with_x=yes ;;
765:
766: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767: | --x-incl | --x-inc | --x-in | --x-i)
768: ac_prev=x_includes ;;
769: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771: x_includes=$ac_optarg ;;
772:
773: -x-libraries | --x-libraries | --x-librarie | --x-librari \
774: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775: ac_prev=x_libraries ;;
776: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778: x_libraries=$ac_optarg ;;
779:
780: -*) { echo "$as_me: error: unrecognized option: $ac_option
781: Try \`$0 --help' for more information." >&2
782: { (exit 1); exit 1; }; }
783: ;;
784:
785: *=*)
786: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787: # Reject names that are not valid shell variable names.
788: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790: { (exit 1); exit 1; }; }
791: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792: eval "$ac_envvar='$ac_optarg'"
793: export $ac_envvar ;;
794:
795: *)
796: # FIXME: should be removed in autoconf 3.0.
797: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801: ;;
802:
803: esac
804: done
805:
806: if test -n "$ac_prev"; then
807: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808: { echo "$as_me: error: missing argument to $ac_option" >&2
809: { (exit 1); exit 1; }; }
810: fi
811:
812: # Be sure to have absolute paths.
813: for ac_var in exec_prefix prefix
814: do
815: eval ac_val=$`echo $ac_var`
816: case $ac_val in
817: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819: { (exit 1); exit 1; }; };;
820: esac
821: done
822:
823: # Be sure to have absolute paths.
824: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825: localstatedir libdir includedir oldincludedir infodir mandir
826: do
827: eval ac_val=$`echo $ac_var`
828: case $ac_val in
829: [\\/$]* | ?:[\\/]* ) ;;
830: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831: { (exit 1); exit 1; }; };;
832: esac
833: done
834:
835: # There might be people who depend on the old broken behavior: `$host'
836: # used to hold the argument of --host etc.
837: # FIXME: To remove some day.
838: build=$build_alias
839: host=$host_alias
840: target=$target_alias
841:
842: # FIXME: To remove some day.
843: if test "x$host_alias" != x; then
844: if test "x$build_alias" = x; then
845: cross_compiling=maybe
846: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847: If a cross compiler is detected then cross compile mode will be used." >&2
848: elif test "x$build_alias" != "x$host_alias"; then
849: cross_compiling=yes
850: fi
851: fi
852:
853: ac_tool_prefix=
854: test -n "$host_alias" && ac_tool_prefix=$host_alias-
855:
856: test "$silent" = yes && exec 6>/dev/null
857:
858:
859: # Find the source files, if location was not specified.
860: if test -z "$srcdir"; then
861: ac_srcdir_defaulted=yes
862: # Try the directory containing this script, then its parent.
863: ac_confdir=`(dirname "$0") 2>/dev/null ||
864: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865: X"$0" : 'X\(//\)[^/]' \| \
866: X"$0" : 'X\(//\)$' \| \
867: X"$0" : 'X\(/\)' \| \
868: . : '\(.\)' 2>/dev/null ||
869: echo X"$0" |
870: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872: /^X\(\/\/\)$/{ s//\1/; q; }
873: /^X\(\/\).*/{ s//\1/; q; }
874: s/.*/./; q'`
875: srcdir=$ac_confdir
876: if test ! -r $srcdir/$ac_unique_file; then
877: srcdir=..
878: fi
879: else
880: ac_srcdir_defaulted=no
881: fi
882: if test ! -r $srcdir/$ac_unique_file; then
883: if test "$ac_srcdir_defaulted" = yes; then
884: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885: { (exit 1); exit 1; }; }
886: else
887: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888: { (exit 1); exit 1; }; }
889: fi
890: fi
891: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893: { (exit 1); exit 1; }; }
894: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895: ac_env_build_alias_set=${build_alias+set}
896: ac_env_build_alias_value=$build_alias
897: ac_cv_env_build_alias_set=${build_alias+set}
898: ac_cv_env_build_alias_value=$build_alias
899: ac_env_host_alias_set=${host_alias+set}
900: ac_env_host_alias_value=$host_alias
901: ac_cv_env_host_alias_set=${host_alias+set}
902: ac_cv_env_host_alias_value=$host_alias
903: ac_env_target_alias_set=${target_alias+set}
904: ac_env_target_alias_value=$target_alias
905: ac_cv_env_target_alias_set=${target_alias+set}
906: ac_cv_env_target_alias_value=$target_alias
907: ac_env_CC_set=${CC+set}
908: ac_env_CC_value=$CC
909: ac_cv_env_CC_set=${CC+set}
910: ac_cv_env_CC_value=$CC
911: ac_env_CFLAGS_set=${CFLAGS+set}
912: ac_env_CFLAGS_value=$CFLAGS
913: ac_cv_env_CFLAGS_set=${CFLAGS+set}
914: ac_cv_env_CFLAGS_value=$CFLAGS
915: ac_env_LDFLAGS_set=${LDFLAGS+set}
916: ac_env_LDFLAGS_value=$LDFLAGS
917: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918: ac_cv_env_LDFLAGS_value=$LDFLAGS
919: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920: ac_env_CPPFLAGS_value=$CPPFLAGS
921: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923: ac_env_CPP_set=${CPP+set}
924: ac_env_CPP_value=$CPP
925: ac_cv_env_CPP_set=${CPP+set}
926: ac_cv_env_CPP_value=$CPP
927: ac_env_CXX_set=${CXX+set}
928: ac_env_CXX_value=$CXX
929: ac_cv_env_CXX_set=${CXX+set}
930: ac_cv_env_CXX_value=$CXX
931: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932: ac_env_CXXFLAGS_value=$CXXFLAGS
933: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935: ac_env_CXXCPP_set=${CXXCPP+set}
936: ac_env_CXXCPP_value=$CXXCPP
937: ac_cv_env_CXXCPP_set=${CXXCPP+set}
938: ac_cv_env_CXXCPP_value=$CXXCPP
939: ac_env_F77_set=${F77+set}
940: ac_env_F77_value=$F77
941: ac_cv_env_F77_set=${F77+set}
942: ac_cv_env_F77_value=$F77
943: ac_env_FFLAGS_set=${FFLAGS+set}
944: ac_env_FFLAGS_value=$FFLAGS
945: ac_cv_env_FFLAGS_set=${FFLAGS+set}
946: ac_cv_env_FFLAGS_value=$FFLAGS
947:
948: #
949: # Report the --help message.
950: #
951: if test "$ac_init_help" = "long"; then
952: # Omit some internal or obsolete options to make the list less imposing.
953: # This message is too long to be a string in the A/UX 3.1 sh.
954: cat <<_ACEOF
955: \`configure' configures this package to adapt to many kinds of systems.
956:
957: Usage: $0 [OPTION]... [VAR=VALUE]...
958:
959: To assign environment variables (e.g., CC, CFLAGS...), specify them as
960: VAR=VALUE. See below for descriptions of some of the useful variables.
961:
962: Defaults for the options are specified in brackets.
963:
964: Configuration:
965: -h, --help display this help and exit
966: --help=short display options specific to this package
967: --help=recursive display the short help of all the included packages
968: -V, --version display version information and exit
969: -q, --quiet, --silent do not print \`checking...' messages
970: --cache-file=FILE cache test results in FILE [disabled]
971: -C, --config-cache alias for \`--cache-file=config.cache'
972: -n, --no-create do not create output files
973: --srcdir=DIR find the sources in DIR [configure dir or \`..']
974:
975: _ACEOF
976:
977: cat <<_ACEOF
978: Installation directories:
979: --prefix=PREFIX install architecture-independent files in PREFIX
980: [$ac_default_prefix]
981: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982: [PREFIX]
983:
984: By default, \`make install' will install all the files in
985: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987: for instance \`--prefix=\$HOME'.
988:
989: For better control, use the options below.
990:
991: Fine tuning of the installation directories:
992: --bindir=DIR user executables [EPREFIX/bin]
993: --sbindir=DIR system admin executables [EPREFIX/sbin]
994: --libexecdir=DIR program executables [EPREFIX/libexec]
995: --datadir=DIR read-only architecture-independent data [PREFIX/share]
996: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999: --libdir=DIR object code libraries [EPREFIX/lib]
1000: --includedir=DIR C header files [PREFIX/include]
1001: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002: --infodir=DIR info documentation [PREFIX/info]
1003: --mandir=DIR man documentation [PREFIX/man]
1004: _ACEOF
1005:
1006: cat <<\_ACEOF
1007:
1008: Program names:
1009: --program-prefix=PREFIX prepend PREFIX to installed program names
1010: --program-suffix=SUFFIX append SUFFIX to installed program names
1011: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012:
1.1.1.2 ! root 1013: X features:
! 1014: --x-includes=DIR X include files are in DIR
! 1015: --x-libraries=DIR X library files are in DIR
! 1016:
1.1 root 1017: System types:
1018: --build=BUILD configure for building on BUILD [guessed]
1019: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020: --target=TARGET configure for building compilers for TARGET [HOST]
1021: _ACEOF
1022: fi
1023:
1024: if test -n "$ac_init_help"; then
1025:
1026: cat <<\_ACEOF
1027:
1028: Optional Features:
1029: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031: --disable-dependency-tracking Speeds up one-time builds
1032: --enable-dependency-tracking Do not reject slow dependency extractors
1.1.1.2 ! root 1033: --disable-gtktest Do not try to compile and run a test GTK program
1.1 root 1034: --enable-shared[=PKGS]
1035: build shared libraries [default=yes]
1036: --enable-static[=PKGS]
1037: build static libraries [default=yes]
1038: --enable-fast-install[=PKGS]
1039: optimize for fast installation [default=yes]
1040: --disable-libtool-lock avoid locking (might break parallel builds)
1041: --disable-debug don't compile debuggable libraries and programs (default=do)
1042: --disable-warnings don't compile with warnings turned on (default=do)
1043:
1044: Optional Packages:
1045: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.2 ! root 1047: --with-x use the X Window System
! 1048: --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
! 1049: --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1.1 root 1050: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051: --with-pic try to use only PIC/non-PIC objects [default=use
1052: both]
1053: --with-tags[=TAGS]
1054: include additional configurations [automatic]
1055:
1056: Some influential environment variables:
1057: CC C compiler command
1058: CFLAGS C compiler flags
1059: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060: nonstandard directory <lib dir>
1061: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062: headers in a nonstandard directory <include dir>
1063: CPP C preprocessor
1064: CXX C++ compiler command
1065: CXXFLAGS C++ compiler flags
1066: CXXCPP C++ preprocessor
1067: F77 Fortran 77 compiler command
1068: FFLAGS Fortran 77 compiler flags
1069:
1070: Use these variables to override the choices made by `configure' or to help
1071: it to find libraries and programs with nonstandard names/locations.
1072:
1073: _ACEOF
1074: fi
1075:
1076: if test "$ac_init_help" = "recursive"; then
1077: # If there are subdirs, report their specific --help.
1078: ac_popdir=`pwd`
1079: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080: test -d $ac_dir || continue
1081: ac_builddir=.
1082:
1083: if test "$ac_dir" != .; then
1084: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085: # A "../" for each directory in $ac_dir_suffix.
1086: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087: else
1088: ac_dir_suffix= ac_top_builddir=
1089: fi
1090:
1091: case $srcdir in
1092: .) # No --srcdir option. We are building in place.
1093: ac_srcdir=.
1094: if test -z "$ac_top_builddir"; then
1095: ac_top_srcdir=.
1096: else
1097: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098: fi ;;
1099: [\\/]* | ?:[\\/]* ) # Absolute path.
1100: ac_srcdir=$srcdir$ac_dir_suffix;
1101: ac_top_srcdir=$srcdir ;;
1102: *) # Relative path.
1103: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105: esac
1106: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107: # absolute.
1108: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112:
1113: cd $ac_dir
1114: # Check for guested configure; otherwise get Cygnus style configure.
1115: if test -f $ac_srcdir/configure.gnu; then
1116: echo
1117: $SHELL $ac_srcdir/configure.gnu --help=recursive
1118: elif test -f $ac_srcdir/configure; then
1119: echo
1120: $SHELL $ac_srcdir/configure --help=recursive
1121: elif test -f $ac_srcdir/configure.ac ||
1122: test -f $ac_srcdir/configure.in; then
1123: echo
1124: $ac_configure --help
1125: else
1126: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127: fi
1128: cd $ac_popdir
1129: done
1130: fi
1131:
1132: test -n "$ac_init_help" && exit 0
1133: if $ac_init_version; then
1134: cat <<\_ACEOF
1135:
1136: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1137: Free Software Foundation, Inc.
1138: This configure script is free software; the Free Software Foundation
1139: gives unlimited permission to copy, distribute and modify it.
1140: _ACEOF
1141: exit 0
1142: fi
1143: exec 5>config.log
1144: cat >&5 <<_ACEOF
1145: This file contains any messages produced by compilers while
1146: running configure, to aid debugging if configure makes a mistake.
1147:
1148: It was created by $as_me, which was
1149: generated by GNU Autoconf 2.57. Invocation command line was
1150:
1151: $ $0 $@
1152:
1153: _ACEOF
1154: {
1155: cat <<_ASUNAME
1156: ## --------- ##
1157: ## Platform. ##
1158: ## --------- ##
1159:
1160: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165:
1166: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168:
1169: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1173: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176:
1177: _ASUNAME
1178:
1179: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180: for as_dir in $PATH
1181: do
1182: IFS=$as_save_IFS
1183: test -z "$as_dir" && as_dir=.
1184: echo "PATH: $as_dir"
1185: done
1186:
1187: } >&5
1188:
1189: cat >&5 <<_ACEOF
1190:
1191:
1192: ## ----------- ##
1193: ## Core tests. ##
1194: ## ----------- ##
1195:
1196: _ACEOF
1197:
1198:
1199: # Keep a trace of the command line.
1200: # Strip out --no-create and --no-recursion so they do not pile up.
1201: # Strip out --silent because we don't want to record it for future runs.
1202: # Also quote any args containing shell meta-characters.
1203: # Make two passes to allow for proper duplicate-argument suppression.
1204: ac_configure_args=
1205: ac_configure_args0=
1206: ac_configure_args1=
1207: ac_sep=
1208: ac_must_keep_next=false
1209: for ac_pass in 1 2
1210: do
1211: for ac_arg
1212: do
1213: case $ac_arg in
1214: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216: | -silent | --silent | --silen | --sile | --sil)
1217: continue ;;
1218: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220: esac
1221: case $ac_pass in
1222: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223: 2)
1224: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225: if test $ac_must_keep_next = true; then
1226: ac_must_keep_next=false # Got value, back to normal.
1227: else
1228: case $ac_arg in
1229: *=* | --config-cache | -C | -disable-* | --disable-* \
1230: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232: | -with-* | --with-* | -without-* | --without-* | --x)
1233: case "$ac_configure_args0 " in
1234: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235: esac
1236: ;;
1237: -* ) ac_must_keep_next=true ;;
1238: esac
1239: fi
1240: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241: # Get rid of the leading space.
1242: ac_sep=" "
1243: ;;
1244: esac
1245: done
1246: done
1247: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249:
1250: # When interrupted or exit'd, cleanup temporary files, and complete
1251: # config.log. We remove comments because anyway the quotes in there
1252: # would cause problems or look ugly.
1253: # WARNING: Be sure not to use single quotes in there, as some shells,
1254: # such as our DU 5.0 friend, will then `close' the trap.
1255: trap 'exit_status=$?
1256: # Save into config.log some information that might help in debugging.
1257: {
1258: echo
1259:
1260: cat <<\_ASBOX
1261: ## ---------------- ##
1262: ## Cache variables. ##
1263: ## ---------------- ##
1264: _ASBOX
1265: echo
1266: # The following way of writing the cache mishandles newlines in values,
1267: {
1268: (set) 2>&1 |
1269: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270: *ac_space=\ *)
1271: sed -n \
1272: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274: ;;
1275: *)
1276: sed -n \
1277: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278: ;;
1279: esac;
1280: }
1281: echo
1282:
1283: cat <<\_ASBOX
1284: ## ----------------- ##
1285: ## Output variables. ##
1286: ## ----------------- ##
1287: _ASBOX
1288: echo
1289: for ac_var in $ac_subst_vars
1290: do
1291: eval ac_val=$`echo $ac_var`
1292: echo "$ac_var='"'"'$ac_val'"'"'"
1293: done | sort
1294: echo
1295:
1296: if test -n "$ac_subst_files"; then
1297: cat <<\_ASBOX
1298: ## ------------- ##
1299: ## Output files. ##
1300: ## ------------- ##
1301: _ASBOX
1302: echo
1303: for ac_var in $ac_subst_files
1304: do
1305: eval ac_val=$`echo $ac_var`
1306: echo "$ac_var='"'"'$ac_val'"'"'"
1307: done | sort
1308: echo
1309: fi
1310:
1311: if test -s confdefs.h; then
1312: cat <<\_ASBOX
1313: ## ----------- ##
1314: ## confdefs.h. ##
1315: ## ----------- ##
1316: _ASBOX
1317: echo
1318: sed "/^$/d" confdefs.h | sort
1319: echo
1320: fi
1321: test "$ac_signal" != 0 &&
1322: echo "$as_me: caught signal $ac_signal"
1323: echo "$as_me: exit $exit_status"
1324: } >&5
1325: rm -f core core.* *.core &&
1326: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327: exit $exit_status
1328: ' 0
1329: for ac_signal in 1 2 13 15; do
1330: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331: done
1332: ac_signal=0
1333:
1334: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1335: rm -rf conftest* confdefs.h
1336: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337: echo >confdefs.h
1338:
1339: # Predefined preprocessor variables.
1340:
1341: cat >>confdefs.h <<_ACEOF
1342: #define PACKAGE_NAME "$PACKAGE_NAME"
1343: _ACEOF
1344:
1345:
1346: cat >>confdefs.h <<_ACEOF
1347: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348: _ACEOF
1349:
1350:
1351: cat >>confdefs.h <<_ACEOF
1352: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1353: _ACEOF
1354:
1355:
1356: cat >>confdefs.h <<_ACEOF
1357: #define PACKAGE_STRING "$PACKAGE_STRING"
1358: _ACEOF
1359:
1360:
1361: cat >>confdefs.h <<_ACEOF
1362: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363: _ACEOF
1364:
1365:
1366: # Let the site file select an alternate cache file if it wants to.
1367: # Prefer explicitly selected file to automatically selected ones.
1368: if test -z "$CONFIG_SITE"; then
1369: if test "x$prefix" != xNONE; then
1370: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371: else
1372: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373: fi
1374: fi
1375: for ac_site_file in $CONFIG_SITE; do
1376: if test -r "$ac_site_file"; then
1377: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378: echo "$as_me: loading site script $ac_site_file" >&6;}
1379: sed 's/^/| /' "$ac_site_file" >&5
1380: . "$ac_site_file"
1381: fi
1382: done
1383:
1384: if test -r "$cache_file"; then
1385: # Some versions of bash will fail to source /dev/null (special
1386: # files actually), so we avoid doing that.
1387: if test -f "$cache_file"; then
1388: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389: echo "$as_me: loading cache $cache_file" >&6;}
1390: case $cache_file in
1391: [\\/]* | ?:[\\/]* ) . $cache_file;;
1392: *) . ./$cache_file;;
1393: esac
1394: fi
1395: else
1396: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397: echo "$as_me: creating cache $cache_file" >&6;}
1398: >$cache_file
1399: fi
1400:
1401: # Check that the precious variables saved in the cache have kept the same
1402: # value.
1403: ac_cache_corrupted=false
1404: for ac_var in `(set) 2>&1 |
1405: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407: eval ac_new_set=\$ac_env_${ac_var}_set
1408: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409: eval ac_new_val="\$ac_env_${ac_var}_value"
1410: case $ac_old_set,$ac_new_set in
1411: set,)
1412: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414: ac_cache_corrupted=: ;;
1415: ,set)
1416: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418: ac_cache_corrupted=: ;;
1419: ,);;
1420: *)
1421: if test "x$ac_old_val" != "x$ac_new_val"; then
1422: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1425: echo "$as_me: former value: $ac_old_val" >&2;}
1426: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1427: echo "$as_me: current value: $ac_new_val" >&2;}
1428: ac_cache_corrupted=:
1429: fi;;
1430: esac
1431: # Pass precious variables to config.status.
1432: if test "$ac_new_set" = set; then
1433: case $ac_new_val in
1434: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1436: *) ac_arg=$ac_var=$ac_new_val ;;
1437: esac
1438: case " $ac_configure_args " in
1439: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1440: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1441: esac
1442: fi
1443: done
1444: if $ac_cache_corrupted; then
1445: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1446: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1447: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1448: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1449: { (exit 1); exit 1; }; }
1450: fi
1451:
1452: ac_ext=c
1453: ac_cpp='$CPP $CPPFLAGS'
1454: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1457:
1458:
1459:
1460:
1461:
1462:
1463:
1464:
1465:
1466:
1467:
1468:
1469:
1470:
1471:
1472:
1473:
1474:
1475:
1476: ac_aux_dir=
1477: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1478: if test -f $ac_dir/install-sh; then
1479: ac_aux_dir=$ac_dir
1480: ac_install_sh="$ac_aux_dir/install-sh -c"
1481: break
1482: elif test -f $ac_dir/install.sh; then
1483: ac_aux_dir=$ac_dir
1484: ac_install_sh="$ac_aux_dir/install.sh -c"
1485: break
1486: elif test -f $ac_dir/shtool; then
1487: ac_aux_dir=$ac_dir
1488: ac_install_sh="$ac_aux_dir/shtool install -c"
1489: break
1490: fi
1491: done
1492: if test -z "$ac_aux_dir"; then
1493: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1494: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1495: { (exit 1); exit 1; }; }
1496: fi
1497: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1498: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1499: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500:
1501: # Make sure we can run config.sub.
1502: $ac_config_sub sun4 >/dev/null 2>&1 ||
1503: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1504: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505: { (exit 1); exit 1; }; }
1506:
1507: echo "$as_me:$LINENO: checking build system type" >&5
1508: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509: if test "${ac_cv_build+set}" = set; then
1510: echo $ECHO_N "(cached) $ECHO_C" >&6
1511: else
1512: ac_cv_build_alias=$build_alias
1513: test -z "$ac_cv_build_alias" &&
1514: ac_cv_build_alias=`$ac_config_guess`
1515: test -z "$ac_cv_build_alias" &&
1516: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1517: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518: { (exit 1); exit 1; }; }
1519: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1520: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1521: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1522: { (exit 1); exit 1; }; }
1523:
1524: fi
1525: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1526: echo "${ECHO_T}$ac_cv_build" >&6
1527: build=$ac_cv_build
1528: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531:
1532:
1533: echo "$as_me:$LINENO: checking host system type" >&5
1534: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535: if test "${ac_cv_host+set}" = set; then
1536: echo $ECHO_N "(cached) $ECHO_C" >&6
1537: else
1538: ac_cv_host_alias=$host_alias
1539: test -z "$ac_cv_host_alias" &&
1540: ac_cv_host_alias=$ac_cv_build_alias
1541: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1542: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544: { (exit 1); exit 1; }; }
1545:
1546: fi
1547: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1548: echo "${ECHO_T}$ac_cv_host" >&6
1549: host=$ac_cv_host
1550: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553:
1554:
1555: echo "$as_me:$LINENO: checking target system type" >&5
1556: echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557: if test "${ac_cv_target+set}" = set; then
1558: echo $ECHO_N "(cached) $ECHO_C" >&6
1559: else
1560: ac_cv_target_alias=$target_alias
1561: test "x$ac_cv_target_alias" = "x" &&
1562: ac_cv_target_alias=$ac_cv_host_alias
1563: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1564: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566: { (exit 1); exit 1; }; }
1567:
1568: fi
1569: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1570: echo "${ECHO_T}$ac_cv_target" >&6
1571: target=$ac_cv_target
1572: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575:
1576:
1577: # The aliases save the names the user supplied, while $host etc.
1578: # will get canonicalized.
1579: test -n "$target_alias" &&
1580: test "$program_prefix$program_suffix$program_transform_name" = \
1581: NONENONEs,x,x, &&
1582: program_prefix=${target_alias}-
1583: am__api_version="1.7"
1584: # Find a good install program. We prefer a C program (faster),
1585: # so one script is as good as another. But avoid the broken or
1586: # incompatible versions:
1587: # SysV /etc/install, /usr/sbin/install
1588: # SunOS /usr/etc/install
1589: # IRIX /sbin/install
1590: # AIX /bin/install
1591: # AmigaOS /C/install, which installs bootblocks on floppy discs
1592: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1593: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1594: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1595: # ./install, which can be erroneously created by make from ./install.sh.
1596: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1597: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1598: if test -z "$INSTALL"; then
1599: if test "${ac_cv_path_install+set}" = set; then
1600: echo $ECHO_N "(cached) $ECHO_C" >&6
1601: else
1602: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603: for as_dir in $PATH
1604: do
1605: IFS=$as_save_IFS
1606: test -z "$as_dir" && as_dir=.
1607: # Account for people who put trailing slashes in PATH elements.
1608: case $as_dir/ in
1609: ./ | .// | /cC/* | \
1610: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1611: /usr/ucb/* ) ;;
1612: *)
1613: # OSF1 and SCO ODT 3.0 have their own names for install.
1614: # Don't use installbsd from OSF since it installs stuff as root
1615: # by default.
1616: for ac_prog in ginstall scoinst install; do
1617: for ac_exec_ext in '' $ac_executable_extensions; do
1618: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1619: if test $ac_prog = install &&
1620: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1621: # AIX install. It has an incompatible calling convention.
1622: :
1623: elif test $ac_prog = install &&
1624: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1625: # program-specific install script used by HP pwplus--don't use.
1626: :
1627: else
1628: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1629: break 3
1630: fi
1631: fi
1632: done
1633: done
1634: ;;
1635: esac
1636: done
1637:
1638:
1639: fi
1640: if test "${ac_cv_path_install+set}" = set; then
1641: INSTALL=$ac_cv_path_install
1642: else
1643: # As a last resort, use the slow shell script. We don't cache a
1644: # path for INSTALL within a source directory, because that will
1645: # break other packages using the cache if that directory is
1646: # removed, or if the path is relative.
1647: INSTALL=$ac_install_sh
1648: fi
1649: fi
1650: echo "$as_me:$LINENO: result: $INSTALL" >&5
1651: echo "${ECHO_T}$INSTALL" >&6
1652:
1653: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1654: # It thinks the first close brace ends the variable substitution.
1655: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1656:
1657: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1658:
1659: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1660:
1661: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1662: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1663: # Just in case
1664: sleep 1
1665: echo timestamp > conftest.file
1666: # Do `set' in a subshell so we don't clobber the current shell's
1667: # arguments. Must try -L first in case configure is actually a
1668: # symlink; some systems play weird games with the mod time of symlinks
1669: # (eg FreeBSD returns the mod time of the symlink's containing
1670: # directory).
1671: if (
1672: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1673: if test "$*" = "X"; then
1674: # -L didn't work.
1675: set X `ls -t $srcdir/configure conftest.file`
1676: fi
1677: rm -f conftest.file
1678: if test "$*" != "X $srcdir/configure conftest.file" \
1679: && test "$*" != "X conftest.file $srcdir/configure"; then
1680:
1681: # If neither matched, then we have a broken ls. This can happen
1682: # if, for instance, CONFIG_SHELL is bash and it inherits a
1683: # broken ls alias from the environment. This has actually
1684: # happened. Such a system could not be considered "sane".
1685: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1686: alias in your environment" >&5
1687: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1688: alias in your environment" >&2;}
1689: { (exit 1); exit 1; }; }
1690: fi
1691:
1692: test "$2" = conftest.file
1693: )
1694: then
1695: # Ok.
1696: :
1697: else
1698: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1699: Check your system clock" >&5
1700: echo "$as_me: error: newly created file is older than distributed files!
1701: Check your system clock" >&2;}
1702: { (exit 1); exit 1; }; }
1703: fi
1704: echo "$as_me:$LINENO: result: yes" >&5
1705: echo "${ECHO_T}yes" >&6
1706: test "$program_prefix" != NONE &&
1707: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1708: # Use a double $ so make ignores it.
1709: test "$program_suffix" != NONE &&
1710: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1711: # Double any \ or $. echo might interpret backslashes.
1712: # By default was `s,x,x', remove it if useless.
1713: cat <<\_ACEOF >conftest.sed
1714: s/[\\$]/&&/g;s/;s,x,x,$//
1715: _ACEOF
1716: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1717: rm conftest.sed
1718:
1719:
1720: # expand $ac_aux_dir to an absolute path
1721: am_aux_dir=`cd $ac_aux_dir && pwd`
1722:
1723: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1724: # Use eval to expand $SHELL
1725: if eval "$MISSING --run true"; then
1726: am_missing_run="$MISSING --run "
1727: else
1728: am_missing_run=
1729: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1730: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1731: fi
1732:
1733: for ac_prog in gawk mawk nawk awk
1734: do
1735: # Extract the first word of "$ac_prog", so it can be a program name with args.
1736: set dummy $ac_prog; ac_word=$2
1737: echo "$as_me:$LINENO: checking for $ac_word" >&5
1738: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739: if test "${ac_cv_prog_AWK+set}" = set; then
1740: echo $ECHO_N "(cached) $ECHO_C" >&6
1741: else
1742: if test -n "$AWK"; then
1743: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1744: else
1745: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746: for as_dir in $PATH
1747: do
1748: IFS=$as_save_IFS
1749: test -z "$as_dir" && as_dir=.
1750: for ac_exec_ext in '' $ac_executable_extensions; do
1751: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752: ac_cv_prog_AWK="$ac_prog"
1753: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754: break 2
1755: fi
1756: done
1757: done
1758:
1759: fi
1760: fi
1761: AWK=$ac_cv_prog_AWK
1762: if test -n "$AWK"; then
1763: echo "$as_me:$LINENO: result: $AWK" >&5
1764: echo "${ECHO_T}$AWK" >&6
1765: else
1766: echo "$as_me:$LINENO: result: no" >&5
1767: echo "${ECHO_T}no" >&6
1768: fi
1769:
1770: test -n "$AWK" && break
1771: done
1772:
1773: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1774: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1775: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1776: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1777: echo $ECHO_N "(cached) $ECHO_C" >&6
1778: else
1779: cat >conftest.make <<\_ACEOF
1780: all:
1781: @echo 'ac_maketemp="$(MAKE)"'
1782: _ACEOF
1783: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1784: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1785: if test -n "$ac_maketemp"; then
1786: eval ac_cv_prog_make_${ac_make}_set=yes
1787: else
1788: eval ac_cv_prog_make_${ac_make}_set=no
1789: fi
1790: rm -f conftest.make
1791: fi
1792: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1793: echo "$as_me:$LINENO: result: yes" >&5
1794: echo "${ECHO_T}yes" >&6
1795: SET_MAKE=
1796: else
1797: echo "$as_me:$LINENO: result: no" >&5
1798: echo "${ECHO_T}no" >&6
1799: SET_MAKE="MAKE=${MAKE-make}"
1800: fi
1801:
1802: # test to see if srcdir already configured
1803: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1804: test -f $srcdir/config.status; then
1805: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1806: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1807: { (exit 1); exit 1; }; }
1808: fi
1809:
1810: # test whether we have cygpath
1811: if test -z "$CYGPATH_W"; then
1812: if (cygpath --version) >/dev/null 2>/dev/null; then
1813: CYGPATH_W='cygpath -w'
1814: else
1815: CYGPATH_W=echo
1816: fi
1817: fi
1818:
1819:
1820: # Define the identity of the package.
1821: PACKAGE=tme
1.1.1.2 ! root 1822: VERSION=0.2
1.1 root 1823:
1824:
1825: cat >>confdefs.h <<_ACEOF
1826: #define PACKAGE "$PACKAGE"
1827: _ACEOF
1828:
1829:
1830: cat >>confdefs.h <<_ACEOF
1831: #define VERSION "$VERSION"
1832: _ACEOF
1833:
1834: # Some tools Automake needs.
1835:
1836: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1837:
1838:
1839: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1840:
1841:
1842: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1843:
1844:
1845: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1846:
1847:
1848: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1849:
1850:
1851: AMTAR=${AMTAR-"${am_missing_run}tar"}
1852:
1853: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1854:
1855: # Installed binaries are usually stripped using `strip' when the user
1856: # run `make install-strip'. However `strip' might not be the right
1857: # tool to use in cross-compilation environments, therefore Automake
1858: # will honor the `STRIP' environment variable to overrule this program.
1859: if test "$cross_compiling" != no; then
1860: if test -n "$ac_tool_prefix"; then
1861: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862: set dummy ${ac_tool_prefix}strip; ac_word=$2
1863: echo "$as_me:$LINENO: checking for $ac_word" >&5
1864: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865: if test "${ac_cv_prog_STRIP+set}" = set; then
1866: echo $ECHO_N "(cached) $ECHO_C" >&6
1867: else
1868: if test -n "$STRIP"; then
1869: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870: else
1871: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872: for as_dir in $PATH
1873: do
1874: IFS=$as_save_IFS
1875: test -z "$as_dir" && as_dir=.
1876: for ac_exec_ext in '' $ac_executable_extensions; do
1877: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880: break 2
1881: fi
1882: done
1883: done
1884:
1885: fi
1886: fi
1887: STRIP=$ac_cv_prog_STRIP
1888: if test -n "$STRIP"; then
1889: echo "$as_me:$LINENO: result: $STRIP" >&5
1890: echo "${ECHO_T}$STRIP" >&6
1891: else
1892: echo "$as_me:$LINENO: result: no" >&5
1893: echo "${ECHO_T}no" >&6
1894: fi
1895:
1896: fi
1897: if test -z "$ac_cv_prog_STRIP"; then
1898: ac_ct_STRIP=$STRIP
1899: # Extract the first word of "strip", so it can be a program name with args.
1900: set dummy strip; ac_word=$2
1901: echo "$as_me:$LINENO: checking for $ac_word" >&5
1902: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904: echo $ECHO_N "(cached) $ECHO_C" >&6
1905: else
1906: if test -n "$ac_ct_STRIP"; then
1907: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908: else
1909: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910: for as_dir in $PATH
1911: do
1912: IFS=$as_save_IFS
1913: test -z "$as_dir" && as_dir=.
1914: for ac_exec_ext in '' $ac_executable_extensions; do
1915: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916: ac_cv_prog_ac_ct_STRIP="strip"
1917: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918: break 2
1919: fi
1920: done
1921: done
1922:
1923: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1924: fi
1925: fi
1926: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927: if test -n "$ac_ct_STRIP"; then
1928: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929: echo "${ECHO_T}$ac_ct_STRIP" >&6
1930: else
1931: echo "$as_me:$LINENO: result: no" >&5
1932: echo "${ECHO_T}no" >&6
1933: fi
1934:
1935: STRIP=$ac_ct_STRIP
1936: else
1937: STRIP="$ac_cv_prog_STRIP"
1938: fi
1939:
1940: fi
1941: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1942:
1943: # We need awk for the "check" target. The system "awk" is bad on
1944: # some platforms.
1945:
1946:
1947:
1948:
1949: ac_config_headers="$ac_config_headers config.h"
1950:
1951:
1952: ac_ext=c
1953: ac_cpp='$CPP $CPPFLAGS'
1954: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957: if test -n "$ac_tool_prefix"; then
1958: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1959: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1960: echo "$as_me:$LINENO: checking for $ac_word" >&5
1961: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962: if test "${ac_cv_prog_CC+set}" = set; then
1963: echo $ECHO_N "(cached) $ECHO_C" >&6
1964: else
1965: if test -n "$CC"; then
1966: ac_cv_prog_CC="$CC" # Let the user override the test.
1967: else
1968: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969: for as_dir in $PATH
1970: do
1971: IFS=$as_save_IFS
1972: test -z "$as_dir" && as_dir=.
1973: for ac_exec_ext in '' $ac_executable_extensions; do
1974: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1976: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977: break 2
1978: fi
1979: done
1980: done
1981:
1982: fi
1983: fi
1984: CC=$ac_cv_prog_CC
1985: if test -n "$CC"; then
1986: echo "$as_me:$LINENO: result: $CC" >&5
1987: echo "${ECHO_T}$CC" >&6
1988: else
1989: echo "$as_me:$LINENO: result: no" >&5
1990: echo "${ECHO_T}no" >&6
1991: fi
1992:
1993: fi
1994: if test -z "$ac_cv_prog_CC"; then
1995: ac_ct_CC=$CC
1996: # Extract the first word of "gcc", so it can be a program name with args.
1997: set dummy gcc; ac_word=$2
1998: echo "$as_me:$LINENO: checking for $ac_word" >&5
1999: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001: echo $ECHO_N "(cached) $ECHO_C" >&6
2002: else
2003: if test -n "$ac_ct_CC"; then
2004: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005: else
2006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007: for as_dir in $PATH
2008: do
2009: IFS=$as_save_IFS
2010: test -z "$as_dir" && as_dir=.
2011: for ac_exec_ext in '' $ac_executable_extensions; do
2012: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013: ac_cv_prog_ac_ct_CC="gcc"
2014: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015: break 2
2016: fi
2017: done
2018: done
2019:
2020: fi
2021: fi
2022: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023: if test -n "$ac_ct_CC"; then
2024: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025: echo "${ECHO_T}$ac_ct_CC" >&6
2026: else
2027: echo "$as_me:$LINENO: result: no" >&5
2028: echo "${ECHO_T}no" >&6
2029: fi
2030:
2031: CC=$ac_ct_CC
2032: else
2033: CC="$ac_cv_prog_CC"
2034: fi
2035:
2036: if test -z "$CC"; then
2037: if test -n "$ac_tool_prefix"; then
2038: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2039: set dummy ${ac_tool_prefix}cc; ac_word=$2
2040: echo "$as_me:$LINENO: checking for $ac_word" >&5
2041: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042: if test "${ac_cv_prog_CC+set}" = set; then
2043: echo $ECHO_N "(cached) $ECHO_C" >&6
2044: else
2045: if test -n "$CC"; then
2046: ac_cv_prog_CC="$CC" # Let the user override the test.
2047: else
2048: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049: for as_dir in $PATH
2050: do
2051: IFS=$as_save_IFS
2052: test -z "$as_dir" && as_dir=.
2053: for ac_exec_ext in '' $ac_executable_extensions; do
2054: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055: ac_cv_prog_CC="${ac_tool_prefix}cc"
2056: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057: break 2
2058: fi
2059: done
2060: done
2061:
2062: fi
2063: fi
2064: CC=$ac_cv_prog_CC
2065: if test -n "$CC"; then
2066: echo "$as_me:$LINENO: result: $CC" >&5
2067: echo "${ECHO_T}$CC" >&6
2068: else
2069: echo "$as_me:$LINENO: result: no" >&5
2070: echo "${ECHO_T}no" >&6
2071: fi
2072:
2073: fi
2074: if test -z "$ac_cv_prog_CC"; then
2075: ac_ct_CC=$CC
2076: # Extract the first word of "cc", so it can be a program name with args.
2077: set dummy cc; ac_word=$2
2078: echo "$as_me:$LINENO: checking for $ac_word" >&5
2079: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081: echo $ECHO_N "(cached) $ECHO_C" >&6
2082: else
2083: if test -n "$ac_ct_CC"; then
2084: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085: else
2086: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087: for as_dir in $PATH
2088: do
2089: IFS=$as_save_IFS
2090: test -z "$as_dir" && as_dir=.
2091: for ac_exec_ext in '' $ac_executable_extensions; do
2092: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093: ac_cv_prog_ac_ct_CC="cc"
2094: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095: break 2
2096: fi
2097: done
2098: done
2099:
2100: fi
2101: fi
2102: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103: if test -n "$ac_ct_CC"; then
2104: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105: echo "${ECHO_T}$ac_ct_CC" >&6
2106: else
2107: echo "$as_me:$LINENO: result: no" >&5
2108: echo "${ECHO_T}no" >&6
2109: fi
2110:
2111: CC=$ac_ct_CC
2112: else
2113: CC="$ac_cv_prog_CC"
2114: fi
2115:
2116: fi
2117: if test -z "$CC"; then
2118: # Extract the first word of "cc", so it can be a program name with args.
2119: set dummy cc; ac_word=$2
2120: echo "$as_me:$LINENO: checking for $ac_word" >&5
2121: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122: if test "${ac_cv_prog_CC+set}" = set; then
2123: echo $ECHO_N "(cached) $ECHO_C" >&6
2124: else
2125: if test -n "$CC"; then
2126: ac_cv_prog_CC="$CC" # Let the user override the test.
2127: else
2128: ac_prog_rejected=no
2129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130: for as_dir in $PATH
2131: do
2132: IFS=$as_save_IFS
2133: test -z "$as_dir" && as_dir=.
2134: for ac_exec_ext in '' $ac_executable_extensions; do
2135: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2137: ac_prog_rejected=yes
2138: continue
2139: fi
2140: ac_cv_prog_CC="cc"
2141: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142: break 2
2143: fi
2144: done
2145: done
2146:
2147: if test $ac_prog_rejected = yes; then
2148: # We found a bogon in the path, so make sure we never use it.
2149: set dummy $ac_cv_prog_CC
2150: shift
2151: if test $# != 0; then
2152: # We chose a different compiler from the bogus one.
2153: # However, it has the same basename, so the bogon will be chosen
2154: # first if we set CC to just the basename; use the full file name.
2155: shift
2156: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2157: fi
2158: fi
2159: fi
2160: fi
2161: CC=$ac_cv_prog_CC
2162: if test -n "$CC"; then
2163: echo "$as_me:$LINENO: result: $CC" >&5
2164: echo "${ECHO_T}$CC" >&6
2165: else
2166: echo "$as_me:$LINENO: result: no" >&5
2167: echo "${ECHO_T}no" >&6
2168: fi
2169:
2170: fi
2171: if test -z "$CC"; then
2172: if test -n "$ac_tool_prefix"; then
2173: for ac_prog in cl
2174: do
2175: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2176: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2177: echo "$as_me:$LINENO: checking for $ac_word" >&5
2178: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179: if test "${ac_cv_prog_CC+set}" = set; then
2180: echo $ECHO_N "(cached) $ECHO_C" >&6
2181: else
2182: if test -n "$CC"; then
2183: ac_cv_prog_CC="$CC" # Let the user override the test.
2184: else
2185: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186: for as_dir in $PATH
2187: do
2188: IFS=$as_save_IFS
2189: test -z "$as_dir" && as_dir=.
2190: for ac_exec_ext in '' $ac_executable_extensions; do
2191: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2193: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194: break 2
2195: fi
2196: done
2197: done
2198:
2199: fi
2200: fi
2201: CC=$ac_cv_prog_CC
2202: if test -n "$CC"; then
2203: echo "$as_me:$LINENO: result: $CC" >&5
2204: echo "${ECHO_T}$CC" >&6
2205: else
2206: echo "$as_me:$LINENO: result: no" >&5
2207: echo "${ECHO_T}no" >&6
2208: fi
2209:
2210: test -n "$CC" && break
2211: done
2212: fi
2213: if test -z "$CC"; then
2214: ac_ct_CC=$CC
2215: for ac_prog in cl
2216: do
2217: # Extract the first word of "$ac_prog", so it can be a program name with args.
2218: set dummy $ac_prog; ac_word=$2
2219: echo "$as_me:$LINENO: checking for $ac_word" >&5
2220: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222: echo $ECHO_N "(cached) $ECHO_C" >&6
2223: else
2224: if test -n "$ac_ct_CC"; then
2225: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226: else
2227: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228: for as_dir in $PATH
2229: do
2230: IFS=$as_save_IFS
2231: test -z "$as_dir" && as_dir=.
2232: for ac_exec_ext in '' $ac_executable_extensions; do
2233: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234: ac_cv_prog_ac_ct_CC="$ac_prog"
2235: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236: break 2
2237: fi
2238: done
2239: done
2240:
2241: fi
2242: fi
2243: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244: if test -n "$ac_ct_CC"; then
2245: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246: echo "${ECHO_T}$ac_ct_CC" >&6
2247: else
2248: echo "$as_me:$LINENO: result: no" >&5
2249: echo "${ECHO_T}no" >&6
2250: fi
2251:
2252: test -n "$ac_ct_CC" && break
2253: done
2254:
2255: CC=$ac_ct_CC
2256: fi
2257:
2258: fi
2259:
2260:
2261: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2262: See \`config.log' for more details." >&5
2263: echo "$as_me: error: no acceptable C compiler found in \$PATH
2264: See \`config.log' for more details." >&2;}
2265: { (exit 1); exit 1; }; }
2266:
2267: # Provide some information about the compiler.
2268: echo "$as_me:$LINENO:" \
2269: "checking for C compiler version" >&5
2270: ac_compiler=`set X $ac_compile; echo $2`
2271: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2272: (eval $ac_compiler --version </dev/null >&5) 2>&5
2273: ac_status=$?
2274: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275: (exit $ac_status); }
2276: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2277: (eval $ac_compiler -v </dev/null >&5) 2>&5
2278: ac_status=$?
2279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280: (exit $ac_status); }
2281: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2282: (eval $ac_compiler -V </dev/null >&5) 2>&5
2283: ac_status=$?
2284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285: (exit $ac_status); }
2286:
2287: cat >conftest.$ac_ext <<_ACEOF
2288: #line $LINENO "configure"
2289: /* confdefs.h. */
2290: _ACEOF
2291: cat confdefs.h >>conftest.$ac_ext
2292: cat >>conftest.$ac_ext <<_ACEOF
2293: /* end confdefs.h. */
2294:
2295: int
2296: main ()
2297: {
2298:
2299: ;
2300: return 0;
2301: }
2302: _ACEOF
2303: ac_clean_files_save=$ac_clean_files
2304: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2305: # Try to create an executable without -o first, disregard a.out.
2306: # It will help us diagnose broken compilers, and finding out an intuition
2307: # of exeext.
2308: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2309: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2310: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2311: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2312: (eval $ac_link_default) 2>&5
2313: ac_status=$?
2314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315: (exit $ac_status); }; then
2316: # Find the output, starting from the most likely. This scheme is
2317: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2318: # resort.
2319:
2320: # Be careful to initialize this variable, since it used to be cached.
2321: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2322: ac_cv_exeext=
2323: # b.out is created by i960 compilers.
2324: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2325: do
2326: test -f "$ac_file" || continue
2327: case $ac_file in
2328: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2329: ;;
2330: conftest.$ac_ext )
2331: # This is the source file.
2332: ;;
2333: [ab].out )
2334: # We found the default executable, but exeext='' is most
2335: # certainly right.
2336: break;;
2337: *.* )
2338: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2339: # FIXME: I believe we export ac_cv_exeext for Libtool,
2340: # but it would be cool to find out if it's true. Does anybody
2341: # maintain Libtool? --akim.
2342: export ac_cv_exeext
2343: break;;
2344: * )
2345: break;;
2346: esac
2347: done
2348: else
2349: echo "$as_me: failed program was:" >&5
2350: sed 's/^/| /' conftest.$ac_ext >&5
2351:
2352: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2353: See \`config.log' for more details." >&5
2354: echo "$as_me: error: C compiler cannot create executables
2355: See \`config.log' for more details." >&2;}
2356: { (exit 77); exit 77; }; }
2357: fi
2358:
2359: ac_exeext=$ac_cv_exeext
2360: echo "$as_me:$LINENO: result: $ac_file" >&5
2361: echo "${ECHO_T}$ac_file" >&6
2362:
2363: # Check the compiler produces executables we can run. If not, either
2364: # the compiler is broken, or we cross compile.
2365: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2366: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2367: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2368: # If not cross compiling, check that we can run a simple program.
2369: if test "$cross_compiling" != yes; then
2370: if { ac_try='./$ac_file'
2371: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372: (eval $ac_try) 2>&5
2373: ac_status=$?
2374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375: (exit $ac_status); }; }; then
2376: cross_compiling=no
2377: else
2378: if test "$cross_compiling" = maybe; then
2379: cross_compiling=yes
2380: else
2381: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2382: If you meant to cross compile, use \`--host'.
2383: See \`config.log' for more details." >&5
2384: echo "$as_me: error: cannot run C compiled programs.
2385: If you meant to cross compile, use \`--host'.
2386: See \`config.log' for more details." >&2;}
2387: { (exit 1); exit 1; }; }
2388: fi
2389: fi
2390: fi
2391: echo "$as_me:$LINENO: result: yes" >&5
2392: echo "${ECHO_T}yes" >&6
2393:
2394: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2395: ac_clean_files=$ac_clean_files_save
2396: # Check the compiler produces executables we can run. If not, either
2397: # the compiler is broken, or we cross compile.
2398: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2399: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2400: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2401: echo "${ECHO_T}$cross_compiling" >&6
2402:
2403: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2404: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2405: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2406: (eval $ac_link) 2>&5
2407: ac_status=$?
2408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409: (exit $ac_status); }; then
2410: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2411: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2412: # work properly (i.e., refer to `conftest.exe'), while it won't with
2413: # `rm'.
2414: for ac_file in conftest.exe conftest conftest.*; do
2415: test -f "$ac_file" || continue
2416: case $ac_file in
2417: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2418: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419: export ac_cv_exeext
2420: break;;
2421: * ) break;;
2422: esac
2423: done
2424: else
2425: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2426: See \`config.log' for more details." >&5
2427: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2428: See \`config.log' for more details." >&2;}
2429: { (exit 1); exit 1; }; }
2430: fi
2431:
2432: rm -f conftest$ac_cv_exeext
2433: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2434: echo "${ECHO_T}$ac_cv_exeext" >&6
2435:
2436: rm -f conftest.$ac_ext
2437: EXEEXT=$ac_cv_exeext
2438: ac_exeext=$EXEEXT
2439: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2440: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2441: if test "${ac_cv_objext+set}" = set; then
2442: echo $ECHO_N "(cached) $ECHO_C" >&6
2443: else
2444: cat >conftest.$ac_ext <<_ACEOF
2445: #line $LINENO "configure"
2446: /* confdefs.h. */
2447: _ACEOF
2448: cat confdefs.h >>conftest.$ac_ext
2449: cat >>conftest.$ac_ext <<_ACEOF
2450: /* end confdefs.h. */
2451:
2452: int
2453: main ()
2454: {
2455:
2456: ;
2457: return 0;
2458: }
2459: _ACEOF
2460: rm -f conftest.o conftest.obj
2461: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462: (eval $ac_compile) 2>&5
2463: ac_status=$?
2464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465: (exit $ac_status); }; then
2466: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2467: case $ac_file in
2468: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2469: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2470: break;;
2471: esac
2472: done
2473: else
2474: echo "$as_me: failed program was:" >&5
2475: sed 's/^/| /' conftest.$ac_ext >&5
2476:
2477: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2478: See \`config.log' for more details." >&5
2479: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2480: See \`config.log' for more details." >&2;}
2481: { (exit 1); exit 1; }; }
2482: fi
2483:
2484: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2485: fi
2486: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2487: echo "${ECHO_T}$ac_cv_objext" >&6
2488: OBJEXT=$ac_cv_objext
2489: ac_objext=$OBJEXT
2490: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2491: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2492: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2493: echo $ECHO_N "(cached) $ECHO_C" >&6
2494: else
2495: cat >conftest.$ac_ext <<_ACEOF
2496: #line $LINENO "configure"
2497: /* confdefs.h. */
2498: _ACEOF
2499: cat confdefs.h >>conftest.$ac_ext
2500: cat >>conftest.$ac_ext <<_ACEOF
2501: /* end confdefs.h. */
2502:
2503: int
2504: main ()
2505: {
2506: #ifndef __GNUC__
2507: choke me
2508: #endif
2509:
2510: ;
2511: return 0;
2512: }
2513: _ACEOF
2514: rm -f conftest.$ac_objext
2515: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516: (eval $ac_compile) 2>&5
2517: ac_status=$?
2518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519: (exit $ac_status); } &&
2520: { ac_try='test -s conftest.$ac_objext'
2521: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522: (eval $ac_try) 2>&5
2523: ac_status=$?
2524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525: (exit $ac_status); }; }; then
2526: ac_compiler_gnu=yes
2527: else
2528: echo "$as_me: failed program was:" >&5
2529: sed 's/^/| /' conftest.$ac_ext >&5
2530:
2531: ac_compiler_gnu=no
2532: fi
2533: rm -f conftest.$ac_objext conftest.$ac_ext
2534: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2535:
2536: fi
2537: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2538: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2539: GCC=`test $ac_compiler_gnu = yes && echo yes`
2540: ac_test_CFLAGS=${CFLAGS+set}
2541: ac_save_CFLAGS=$CFLAGS
2542: CFLAGS="-g"
2543: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2544: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2545: if test "${ac_cv_prog_cc_g+set}" = set; then
2546: echo $ECHO_N "(cached) $ECHO_C" >&6
2547: else
2548: cat >conftest.$ac_ext <<_ACEOF
2549: #line $LINENO "configure"
2550: /* confdefs.h. */
2551: _ACEOF
2552: cat confdefs.h >>conftest.$ac_ext
2553: cat >>conftest.$ac_ext <<_ACEOF
2554: /* end confdefs.h. */
2555:
2556: int
2557: main ()
2558: {
2559:
2560: ;
2561: return 0;
2562: }
2563: _ACEOF
2564: rm -f conftest.$ac_objext
2565: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566: (eval $ac_compile) 2>&5
2567: ac_status=$?
2568: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569: (exit $ac_status); } &&
2570: { ac_try='test -s conftest.$ac_objext'
2571: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572: (eval $ac_try) 2>&5
2573: ac_status=$?
2574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575: (exit $ac_status); }; }; then
2576: ac_cv_prog_cc_g=yes
2577: else
2578: echo "$as_me: failed program was:" >&5
2579: sed 's/^/| /' conftest.$ac_ext >&5
2580:
2581: ac_cv_prog_cc_g=no
2582: fi
2583: rm -f conftest.$ac_objext conftest.$ac_ext
2584: fi
2585: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2586: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2587: if test "$ac_test_CFLAGS" = set; then
2588: CFLAGS=$ac_save_CFLAGS
2589: elif test $ac_cv_prog_cc_g = yes; then
2590: if test "$GCC" = yes; then
2591: CFLAGS="-g -O2"
2592: else
2593: CFLAGS="-g"
2594: fi
2595: else
2596: if test "$GCC" = yes; then
2597: CFLAGS="-O2"
2598: else
2599: CFLAGS=
2600: fi
2601: fi
2602: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2603: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2604: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2605: echo $ECHO_N "(cached) $ECHO_C" >&6
2606: else
2607: ac_cv_prog_cc_stdc=no
2608: ac_save_CC=$CC
2609: cat >conftest.$ac_ext <<_ACEOF
2610: #line $LINENO "configure"
2611: /* confdefs.h. */
2612: _ACEOF
2613: cat confdefs.h >>conftest.$ac_ext
2614: cat >>conftest.$ac_ext <<_ACEOF
2615: /* end confdefs.h. */
2616: #include <stdarg.h>
2617: #include <stdio.h>
2618: #include <sys/types.h>
2619: #include <sys/stat.h>
2620: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2621: struct buf { int x; };
2622: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2623: static char *e (p, i)
2624: char **p;
2625: int i;
2626: {
2627: return p[i];
2628: }
2629: static char *f (char * (*g) (char **, int), char **p, ...)
2630: {
2631: char *s;
2632: va_list v;
2633: va_start (v,p);
2634: s = g (p, va_arg (v,int));
2635: va_end (v);
2636: return s;
2637: }
2638: int test (int i, double x);
2639: struct s1 {int (*f) (int a);};
2640: struct s2 {int (*f) (double a);};
2641: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2642: int argc;
2643: char **argv;
2644: int
2645: main ()
2646: {
2647: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2648: ;
2649: return 0;
2650: }
2651: _ACEOF
2652: # Don't try gcc -ansi; that turns off useful extensions and
2653: # breaks some systems' header files.
2654: # AIX -qlanglvl=ansi
2655: # Ultrix and OSF/1 -std1
2656: # HP-UX 10.20 and later -Ae
2657: # HP-UX older versions -Aa -D_HPUX_SOURCE
2658: # SVR4 -Xc -D__EXTENSIONS__
2659: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2660: do
2661: CC="$ac_save_CC $ac_arg"
2662: rm -f conftest.$ac_objext
2663: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664: (eval $ac_compile) 2>&5
2665: ac_status=$?
2666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667: (exit $ac_status); } &&
2668: { ac_try='test -s conftest.$ac_objext'
2669: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670: (eval $ac_try) 2>&5
2671: ac_status=$?
2672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673: (exit $ac_status); }; }; then
2674: ac_cv_prog_cc_stdc=$ac_arg
2675: break
2676: else
2677: echo "$as_me: failed program was:" >&5
2678: sed 's/^/| /' conftest.$ac_ext >&5
2679:
2680: fi
2681: rm -f conftest.$ac_objext
2682: done
2683: rm -f conftest.$ac_ext conftest.$ac_objext
2684: CC=$ac_save_CC
2685:
2686: fi
2687:
2688: case "x$ac_cv_prog_cc_stdc" in
2689: x|xno)
2690: echo "$as_me:$LINENO: result: none needed" >&5
2691: echo "${ECHO_T}none needed" >&6 ;;
2692: *)
2693: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2694: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2695: CC="$CC $ac_cv_prog_cc_stdc" ;;
2696: esac
2697:
2698: # Some people use a C++ compiler to compile C. Since we use `exit',
2699: # in C++ we need to declare it. In case someone uses the same compiler
2700: # for both compiling C and C++ we need to have the C++ compiler decide
2701: # the declaration of exit, since it's the most demanding environment.
2702: cat >conftest.$ac_ext <<_ACEOF
2703: #ifndef __cplusplus
2704: choke me
2705: #endif
2706: _ACEOF
2707: rm -f conftest.$ac_objext
2708: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709: (eval $ac_compile) 2>&5
2710: ac_status=$?
2711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712: (exit $ac_status); } &&
2713: { ac_try='test -s conftest.$ac_objext'
2714: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715: (eval $ac_try) 2>&5
2716: ac_status=$?
2717: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718: (exit $ac_status); }; }; then
2719: for ac_declaration in \
2720: ''\
2721: '#include <stdlib.h>' \
2722: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2723: 'extern "C" void std::exit (int); using std::exit;' \
2724: 'extern "C" void exit (int) throw ();' \
2725: 'extern "C" void exit (int);' \
2726: 'void exit (int);'
2727: do
2728: cat >conftest.$ac_ext <<_ACEOF
2729: #line $LINENO "configure"
2730: /* confdefs.h. */
2731: _ACEOF
2732: cat confdefs.h >>conftest.$ac_ext
2733: cat >>conftest.$ac_ext <<_ACEOF
2734: /* end confdefs.h. */
2735: #include <stdlib.h>
2736: $ac_declaration
2737: int
2738: main ()
2739: {
2740: exit (42);
2741: ;
2742: return 0;
2743: }
2744: _ACEOF
2745: rm -f conftest.$ac_objext
2746: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747: (eval $ac_compile) 2>&5
2748: ac_status=$?
2749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750: (exit $ac_status); } &&
2751: { ac_try='test -s conftest.$ac_objext'
2752: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753: (eval $ac_try) 2>&5
2754: ac_status=$?
2755: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756: (exit $ac_status); }; }; then
2757: :
2758: else
2759: echo "$as_me: failed program was:" >&5
2760: sed 's/^/| /' conftest.$ac_ext >&5
2761:
2762: continue
2763: fi
2764: rm -f conftest.$ac_objext conftest.$ac_ext
2765: cat >conftest.$ac_ext <<_ACEOF
2766: #line $LINENO "configure"
2767: /* confdefs.h. */
2768: _ACEOF
2769: cat confdefs.h >>conftest.$ac_ext
2770: cat >>conftest.$ac_ext <<_ACEOF
2771: /* end confdefs.h. */
2772: $ac_declaration
2773: int
2774: main ()
2775: {
2776: exit (42);
2777: ;
2778: return 0;
2779: }
2780: _ACEOF
2781: rm -f conftest.$ac_objext
2782: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783: (eval $ac_compile) 2>&5
2784: ac_status=$?
2785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786: (exit $ac_status); } &&
2787: { ac_try='test -s conftest.$ac_objext'
2788: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789: (eval $ac_try) 2>&5
2790: ac_status=$?
2791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792: (exit $ac_status); }; }; then
2793: break
2794: else
2795: echo "$as_me: failed program was:" >&5
2796: sed 's/^/| /' conftest.$ac_ext >&5
2797:
2798: fi
2799: rm -f conftest.$ac_objext conftest.$ac_ext
2800: done
2801: rm -f conftest*
2802: if test -n "$ac_declaration"; then
2803: echo '#ifdef __cplusplus' >>confdefs.h
2804: echo $ac_declaration >>confdefs.h
2805: echo '#endif' >>confdefs.h
2806: fi
2807:
2808: else
2809: echo "$as_me: failed program was:" >&5
2810: sed 's/^/| /' conftest.$ac_ext >&5
2811:
2812: fi
2813: rm -f conftest.$ac_objext conftest.$ac_ext
2814: ac_ext=c
2815: ac_cpp='$CPP $CPPFLAGS'
2816: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819: rm -f .deps 2>/dev/null
2820: mkdir .deps 2>/dev/null
2821: if test -d .deps; then
2822: DEPDIR=.deps
2823: else
2824: # MS-DOS does not allow filenames that begin with a dot.
2825: DEPDIR=_deps
2826: fi
2827: rmdir .deps 2>/dev/null
2828:
2829:
2830: ac_config_commands="$ac_config_commands depfiles"
2831:
2832:
2833: am_make=${MAKE-make}
2834: cat > confinc << 'END'
2835: doit:
2836: @echo done
2837: END
2838: # If we don't find an include directive, just comment out the code.
2839: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2840: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2841: am__include="#"
2842: am__quote=
2843: _am_result=none
2844: # First try GNU make style include.
2845: echo "include confinc" > confmf
2846: # We grep out `Entering directory' and `Leaving directory'
2847: # messages which can occur if `w' ends up in MAKEFLAGS.
2848: # In particular we don't look at `^make:' because GNU make might
2849: # be invoked under some other name (usually "gmake"), in which
2850: # case it prints its new name instead of `make'.
2851: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2852: am__include=include
2853: am__quote=
2854: _am_result=GNU
2855: fi
2856: # Now try BSD make style include.
2857: if test "$am__include" = "#"; then
2858: echo '.include "confinc"' > confmf
2859: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2860: am__include=.include
2861: am__quote="\""
2862: _am_result=BSD
2863: fi
2864: fi
2865:
2866:
2867: echo "$as_me:$LINENO: result: $_am_result" >&5
2868: echo "${ECHO_T}$_am_result" >&6
2869: rm -f confinc confmf
2870:
2871: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2872: if test "${enable_dependency_tracking+set}" = set; then
2873: enableval="$enable_dependency_tracking"
2874:
2875: fi;
2876: if test "x$enable_dependency_tracking" != xno; then
2877: am_depcomp="$ac_aux_dir/depcomp"
2878: AMDEPBACKSLASH='\'
2879: fi
2880:
2881:
2882: if test "x$enable_dependency_tracking" != xno; then
2883: AMDEP_TRUE=
2884: AMDEP_FALSE='#'
2885: else
2886: AMDEP_TRUE='#'
2887: AMDEP_FALSE=
2888: fi
2889:
2890:
2891:
2892:
2893: depcc="$CC" am_compiler_list=
2894:
2895: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2896: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2897: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2898: echo $ECHO_N "(cached) $ECHO_C" >&6
2899: else
2900: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2901: # We make a subdir and do the tests there. Otherwise we can end up
2902: # making bogus files that we don't know about and never remove. For
2903: # instance it was reported that on HP-UX the gcc test will end up
2904: # making a dummy file named `D' -- because `-MD' means `put the output
2905: # in D'.
2906: mkdir conftest.dir
2907: # Copy depcomp to subdir because otherwise we won't find it if we're
2908: # using a relative directory.
2909: cp "$am_depcomp" conftest.dir
2910: cd conftest.dir
2911:
2912: am_cv_CC_dependencies_compiler_type=none
2913: if test "$am_compiler_list" = ""; then
2914: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2915: fi
2916: for depmode in $am_compiler_list; do
2917: # We need to recreate these files for each test, as the compiler may
2918: # overwrite some of them when testing with obscure command lines.
2919: # This happens at least with the AIX C compiler.
2920: echo '#include "conftest.h"' > conftest.c
2921: echo 'int i;' > conftest.h
2922: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2923:
2924: case $depmode in
2925: nosideeffect)
2926: # after this tag, mechanisms are not by side-effect, so they'll
2927: # only be used when explicitly requested
2928: if test "x$enable_dependency_tracking" = xyes; then
2929: continue
2930: else
2931: break
2932: fi
2933: ;;
2934: none) break ;;
2935: esac
2936: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2937: # mode. It turns out that the SunPro C++ compiler does not properly
2938: # handle `-M -o', and we need to detect this.
2939: if depmode=$depmode \
2940: source=conftest.c object=conftest.o \
2941: depfile=conftest.Po tmpdepfile=conftest.TPo \
2942: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2943: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2944: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2945: am_cv_CC_dependencies_compiler_type=$depmode
2946: break
2947: fi
2948: done
2949:
2950: cd ..
2951: rm -rf conftest.dir
2952: else
2953: am_cv_CC_dependencies_compiler_type=none
2954: fi
2955:
2956: fi
2957: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2958: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2959: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2960:
2961:
2962:
2963: if
2964: test "x$enable_dependency_tracking" != xno \
2965: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2966: am__fastdepCC_TRUE=
2967: am__fastdepCC_FALSE='#'
2968: else
2969: am__fastdepCC_TRUE='#'
2970: am__fastdepCC_FALSE=
2971: fi
2972:
2973:
2974: ac_ext=c
2975: ac_cpp='$CPP $CPPFLAGS'
2976: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2980: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2981: # On Suns, sometimes $CPP names a directory.
2982: if test -n "$CPP" && test -d "$CPP"; then
2983: CPP=
2984: fi
2985: if test -z "$CPP"; then
2986: if test "${ac_cv_prog_CPP+set}" = set; then
2987: echo $ECHO_N "(cached) $ECHO_C" >&6
2988: else
2989: # Double quotes because CPP needs to be expanded
2990: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2991: do
2992: ac_preproc_ok=false
2993: for ac_c_preproc_warn_flag in '' yes
2994: do
2995: # Use a header file that comes with gcc, so configuring glibc
2996: # with a fresh cross-compiler works.
2997: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998: # <limits.h> exists even on freestanding compilers.
2999: # On the NeXT, cc -E runs the code through the compiler's parser,
3000: # not just through cpp. "Syntax error" is here to catch this case.
3001: cat >conftest.$ac_ext <<_ACEOF
3002: #line $LINENO "configure"
3003: /* confdefs.h. */
3004: _ACEOF
3005: cat confdefs.h >>conftest.$ac_ext
3006: cat >>conftest.$ac_ext <<_ACEOF
3007: /* end confdefs.h. */
3008: #ifdef __STDC__
3009: # include <limits.h>
3010: #else
3011: # include <assert.h>
3012: #endif
3013: Syntax error
3014: _ACEOF
3015: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017: ac_status=$?
3018: grep -v '^ *+' conftest.er1 >conftest.err
3019: rm -f conftest.er1
3020: cat conftest.err >&5
3021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022: (exit $ac_status); } >/dev/null; then
3023: if test -s conftest.err; then
3024: ac_cpp_err=$ac_c_preproc_warn_flag
3025: else
3026: ac_cpp_err=
3027: fi
3028: else
3029: ac_cpp_err=yes
3030: fi
3031: if test -z "$ac_cpp_err"; then
3032: :
3033: else
3034: echo "$as_me: failed program was:" >&5
3035: sed 's/^/| /' conftest.$ac_ext >&5
3036:
3037: # Broken: fails on valid input.
3038: continue
3039: fi
3040: rm -f conftest.err conftest.$ac_ext
3041:
3042: # OK, works on sane cases. Now check whether non-existent headers
3043: # can be detected and how.
3044: cat >conftest.$ac_ext <<_ACEOF
3045: #line $LINENO "configure"
3046: /* confdefs.h. */
3047: _ACEOF
3048: cat confdefs.h >>conftest.$ac_ext
3049: cat >>conftest.$ac_ext <<_ACEOF
3050: /* end confdefs.h. */
3051: #include <ac_nonexistent.h>
3052: _ACEOF
3053: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055: ac_status=$?
3056: grep -v '^ *+' conftest.er1 >conftest.err
3057: rm -f conftest.er1
3058: cat conftest.err >&5
3059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060: (exit $ac_status); } >/dev/null; then
3061: if test -s conftest.err; then
3062: ac_cpp_err=$ac_c_preproc_warn_flag
3063: else
3064: ac_cpp_err=
3065: fi
3066: else
3067: ac_cpp_err=yes
3068: fi
3069: if test -z "$ac_cpp_err"; then
3070: # Broken: success on invalid input.
3071: continue
3072: else
3073: echo "$as_me: failed program was:" >&5
3074: sed 's/^/| /' conftest.$ac_ext >&5
3075:
3076: # Passes both tests.
3077: ac_preproc_ok=:
3078: break
3079: fi
3080: rm -f conftest.err conftest.$ac_ext
3081:
3082: done
3083: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084: rm -f conftest.err conftest.$ac_ext
3085: if $ac_preproc_ok; then
3086: break
3087: fi
3088:
3089: done
3090: ac_cv_prog_CPP=$CPP
3091:
3092: fi
3093: CPP=$ac_cv_prog_CPP
3094: else
3095: ac_cv_prog_CPP=$CPP
3096: fi
3097: echo "$as_me:$LINENO: result: $CPP" >&5
3098: echo "${ECHO_T}$CPP" >&6
3099: ac_preproc_ok=false
3100: for ac_c_preproc_warn_flag in '' yes
3101: do
3102: # Use a header file that comes with gcc, so configuring glibc
3103: # with a fresh cross-compiler works.
3104: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3105: # <limits.h> exists even on freestanding compilers.
3106: # On the NeXT, cc -E runs the code through the compiler's parser,
3107: # not just through cpp. "Syntax error" is here to catch this case.
3108: cat >conftest.$ac_ext <<_ACEOF
3109: #line $LINENO "configure"
3110: /* confdefs.h. */
3111: _ACEOF
3112: cat confdefs.h >>conftest.$ac_ext
3113: cat >>conftest.$ac_ext <<_ACEOF
3114: /* end confdefs.h. */
3115: #ifdef __STDC__
3116: # include <limits.h>
3117: #else
3118: # include <assert.h>
3119: #endif
3120: Syntax error
3121: _ACEOF
3122: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3123: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124: ac_status=$?
3125: grep -v '^ *+' conftest.er1 >conftest.err
3126: rm -f conftest.er1
3127: cat conftest.err >&5
3128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129: (exit $ac_status); } >/dev/null; then
3130: if test -s conftest.err; then
3131: ac_cpp_err=$ac_c_preproc_warn_flag
3132: else
3133: ac_cpp_err=
3134: fi
3135: else
3136: ac_cpp_err=yes
3137: fi
3138: if test -z "$ac_cpp_err"; then
3139: :
3140: else
3141: echo "$as_me: failed program was:" >&5
3142: sed 's/^/| /' conftest.$ac_ext >&5
3143:
3144: # Broken: fails on valid input.
3145: continue
3146: fi
3147: rm -f conftest.err conftest.$ac_ext
3148:
3149: # OK, works on sane cases. Now check whether non-existent headers
3150: # can be detected and how.
3151: cat >conftest.$ac_ext <<_ACEOF
3152: #line $LINENO "configure"
3153: /* confdefs.h. */
3154: _ACEOF
3155: cat confdefs.h >>conftest.$ac_ext
3156: cat >>conftest.$ac_ext <<_ACEOF
3157: /* end confdefs.h. */
3158: #include <ac_nonexistent.h>
3159: _ACEOF
3160: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3161: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3162: ac_status=$?
3163: grep -v '^ *+' conftest.er1 >conftest.err
3164: rm -f conftest.er1
3165: cat conftest.err >&5
3166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167: (exit $ac_status); } >/dev/null; then
3168: if test -s conftest.err; then
3169: ac_cpp_err=$ac_c_preproc_warn_flag
3170: else
3171: ac_cpp_err=
3172: fi
3173: else
3174: ac_cpp_err=yes
3175: fi
3176: if test -z "$ac_cpp_err"; then
3177: # Broken: success on invalid input.
3178: continue
3179: else
3180: echo "$as_me: failed program was:" >&5
3181: sed 's/^/| /' conftest.$ac_ext >&5
3182:
3183: # Passes both tests.
3184: ac_preproc_ok=:
3185: break
3186: fi
3187: rm -f conftest.err conftest.$ac_ext
3188:
3189: done
3190: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3191: rm -f conftest.err conftest.$ac_ext
3192: if $ac_preproc_ok; then
3193: :
3194: else
3195: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3196: See \`config.log' for more details." >&5
3197: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3198: See \`config.log' for more details." >&2;}
3199: { (exit 1); exit 1; }; }
3200: fi
3201:
3202: ac_ext=c
3203: ac_cpp='$CPP $CPPFLAGS'
3204: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207:
3208: for ac_prog in 'bison -y' byacc
3209: do
3210: # Extract the first word of "$ac_prog", so it can be a program name with args.
3211: set dummy $ac_prog; ac_word=$2
3212: echo "$as_me:$LINENO: checking for $ac_word" >&5
3213: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3214: if test "${ac_cv_prog_YACC+set}" = set; then
3215: echo $ECHO_N "(cached) $ECHO_C" >&6
3216: else
3217: if test -n "$YACC"; then
3218: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3219: else
3220: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221: for as_dir in $PATH
3222: do
3223: IFS=$as_save_IFS
3224: test -z "$as_dir" && as_dir=.
3225: for ac_exec_ext in '' $ac_executable_extensions; do
3226: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227: ac_cv_prog_YACC="$ac_prog"
3228: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229: break 2
3230: fi
3231: done
3232: done
3233:
3234: fi
3235: fi
3236: YACC=$ac_cv_prog_YACC
3237: if test -n "$YACC"; then
3238: echo "$as_me:$LINENO: result: $YACC" >&5
3239: echo "${ECHO_T}$YACC" >&6
3240: else
3241: echo "$as_me:$LINENO: result: no" >&5
3242: echo "${ECHO_T}no" >&6
3243: fi
3244:
3245: test -n "$YACC" && break
3246: done
3247: test -n "$YACC" || YACC="yacc"
3248:
3249: # Find a good install program. We prefer a C program (faster),
3250: # so one script is as good as another. But avoid the broken or
3251: # incompatible versions:
3252: # SysV /etc/install, /usr/sbin/install
3253: # SunOS /usr/etc/install
3254: # IRIX /sbin/install
3255: # AIX /bin/install
3256: # AmigaOS /C/install, which installs bootblocks on floppy discs
3257: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3258: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3259: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3260: # ./install, which can be erroneously created by make from ./install.sh.
3261: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3262: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3263: if test -z "$INSTALL"; then
3264: if test "${ac_cv_path_install+set}" = set; then
3265: echo $ECHO_N "(cached) $ECHO_C" >&6
3266: else
3267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268: for as_dir in $PATH
3269: do
3270: IFS=$as_save_IFS
3271: test -z "$as_dir" && as_dir=.
3272: # Account for people who put trailing slashes in PATH elements.
3273: case $as_dir/ in
3274: ./ | .// | /cC/* | \
3275: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3276: /usr/ucb/* ) ;;
3277: *)
3278: # OSF1 and SCO ODT 3.0 have their own names for install.
3279: # Don't use installbsd from OSF since it installs stuff as root
3280: # by default.
3281: for ac_prog in ginstall scoinst install; do
3282: for ac_exec_ext in '' $ac_executable_extensions; do
3283: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3284: if test $ac_prog = install &&
3285: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3286: # AIX install. It has an incompatible calling convention.
3287: :
3288: elif test $ac_prog = install &&
3289: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3290: # program-specific install script used by HP pwplus--don't use.
3291: :
3292: else
3293: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3294: break 3
3295: fi
3296: fi
3297: done
3298: done
3299: ;;
3300: esac
3301: done
3302:
3303:
3304: fi
3305: if test "${ac_cv_path_install+set}" = set; then
3306: INSTALL=$ac_cv_path_install
3307: else
3308: # As a last resort, use the slow shell script. We don't cache a
3309: # path for INSTALL within a source directory, because that will
3310: # break other packages using the cache if that directory is
3311: # removed, or if the path is relative.
3312: INSTALL=$ac_install_sh
3313: fi
3314: fi
3315: echo "$as_me:$LINENO: result: $INSTALL" >&5
3316: echo "${ECHO_T}$INSTALL" >&6
3317:
3318: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319: # It thinks the first close brace ends the variable substitution.
3320: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3321:
3322: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3323:
3324: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3325:
3326: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3327: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3328: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3329: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3330: echo $ECHO_N "(cached) $ECHO_C" >&6
3331: else
3332: cat >conftest.make <<\_ACEOF
3333: all:
3334: @echo 'ac_maketemp="$(MAKE)"'
3335: _ACEOF
3336: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3337: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3338: if test -n "$ac_maketemp"; then
3339: eval ac_cv_prog_make_${ac_make}_set=yes
3340: else
3341: eval ac_cv_prog_make_${ac_make}_set=no
3342: fi
3343: rm -f conftest.make
3344: fi
3345: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3346: echo "$as_me:$LINENO: result: yes" >&5
3347: echo "${ECHO_T}yes" >&6
3348: SET_MAKE=
3349: else
3350: echo "$as_me:$LINENO: result: no" >&5
3351: echo "${ECHO_T}no" >&6
3352: SET_MAKE="MAKE=${MAKE-make}"
3353: fi
3354:
3355:
3356:
3357:
3358: echo "$as_me:$LINENO: checking for egrep" >&5
3359: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3360: if test "${ac_cv_prog_egrep+set}" = set; then
3361: echo $ECHO_N "(cached) $ECHO_C" >&6
3362: else
3363: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3364: then ac_cv_prog_egrep='grep -E'
3365: else ac_cv_prog_egrep='egrep'
3366: fi
3367: fi
3368: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3369: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3370: EGREP=$ac_cv_prog_egrep
3371:
3372:
3373: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3374: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3375: if test "${ac_cv_header_stdc+set}" = set; then
3376: echo $ECHO_N "(cached) $ECHO_C" >&6
3377: else
3378: cat >conftest.$ac_ext <<_ACEOF
3379: #line $LINENO "configure"
3380: /* confdefs.h. */
3381: _ACEOF
3382: cat confdefs.h >>conftest.$ac_ext
3383: cat >>conftest.$ac_ext <<_ACEOF
3384: /* end confdefs.h. */
3385: #include <stdlib.h>
3386: #include <stdarg.h>
3387: #include <string.h>
3388: #include <float.h>
3389:
3390: int
3391: main ()
3392: {
3393:
3394: ;
3395: return 0;
3396: }
3397: _ACEOF
3398: rm -f conftest.$ac_objext
3399: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400: (eval $ac_compile) 2>&5
3401: ac_status=$?
3402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403: (exit $ac_status); } &&
3404: { ac_try='test -s conftest.$ac_objext'
3405: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406: (eval $ac_try) 2>&5
3407: ac_status=$?
3408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409: (exit $ac_status); }; }; then
3410: ac_cv_header_stdc=yes
3411: else
3412: echo "$as_me: failed program was:" >&5
3413: sed 's/^/| /' conftest.$ac_ext >&5
3414:
3415: ac_cv_header_stdc=no
3416: fi
3417: rm -f conftest.$ac_objext conftest.$ac_ext
3418:
3419: if test $ac_cv_header_stdc = yes; then
3420: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3421: cat >conftest.$ac_ext <<_ACEOF
3422: #line $LINENO "configure"
3423: /* confdefs.h. */
3424: _ACEOF
3425: cat confdefs.h >>conftest.$ac_ext
3426: cat >>conftest.$ac_ext <<_ACEOF
3427: /* end confdefs.h. */
3428: #include <string.h>
3429:
3430: _ACEOF
3431: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3432: $EGREP "memchr" >/dev/null 2>&1; then
3433: :
3434: else
3435: ac_cv_header_stdc=no
3436: fi
3437: rm -f conftest*
3438:
3439: fi
3440:
3441: if test $ac_cv_header_stdc = yes; then
3442: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3443: cat >conftest.$ac_ext <<_ACEOF
3444: #line $LINENO "configure"
3445: /* confdefs.h. */
3446: _ACEOF
3447: cat confdefs.h >>conftest.$ac_ext
3448: cat >>conftest.$ac_ext <<_ACEOF
3449: /* end confdefs.h. */
3450: #include <stdlib.h>
3451:
3452: _ACEOF
3453: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454: $EGREP "free" >/dev/null 2>&1; then
3455: :
3456: else
3457: ac_cv_header_stdc=no
3458: fi
3459: rm -f conftest*
3460:
3461: fi
3462:
3463: if test $ac_cv_header_stdc = yes; then
3464: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3465: if test "$cross_compiling" = yes; then
3466: :
3467: else
3468: cat >conftest.$ac_ext <<_ACEOF
3469: #line $LINENO "configure"
3470: /* confdefs.h. */
3471: _ACEOF
3472: cat confdefs.h >>conftest.$ac_ext
3473: cat >>conftest.$ac_ext <<_ACEOF
3474: /* end confdefs.h. */
3475: #include <ctype.h>
3476: #if ((' ' & 0x0FF) == 0x020)
3477: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3478: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3479: #else
3480: # define ISLOWER(c) \
3481: (('a' <= (c) && (c) <= 'i') \
3482: || ('j' <= (c) && (c) <= 'r') \
3483: || ('s' <= (c) && (c) <= 'z'))
3484: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3485: #endif
3486:
3487: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3488: int
3489: main ()
3490: {
3491: int i;
3492: for (i = 0; i < 256; i++)
3493: if (XOR (islower (i), ISLOWER (i))
3494: || toupper (i) != TOUPPER (i))
3495: exit(2);
3496: exit (0);
3497: }
3498: _ACEOF
3499: rm -f conftest$ac_exeext
3500: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3501: (eval $ac_link) 2>&5
3502: ac_status=$?
3503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506: (eval $ac_try) 2>&5
3507: ac_status=$?
3508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509: (exit $ac_status); }; }; then
3510: :
3511: else
3512: echo "$as_me: program exited with status $ac_status" >&5
3513: echo "$as_me: failed program was:" >&5
3514: sed 's/^/| /' conftest.$ac_ext >&5
3515:
3516: ( exit $ac_status )
3517: ac_cv_header_stdc=no
3518: fi
3519: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3520: fi
3521: fi
3522: fi
3523: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3524: echo "${ECHO_T}$ac_cv_header_stdc" >&6
3525: if test $ac_cv_header_stdc = yes; then
3526:
3527: cat >>confdefs.h <<\_ACEOF
3528: #define STDC_HEADERS 1
3529: _ACEOF
3530:
3531: fi
3532:
3533: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3534:
3535:
3536:
3537:
3538:
3539:
3540:
3541:
3542:
3543: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3544: inttypes.h stdint.h unistd.h
3545: do
3546: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547: echo "$as_me:$LINENO: checking for $ac_header" >&5
3548: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3549: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3550: echo $ECHO_N "(cached) $ECHO_C" >&6
3551: else
3552: cat >conftest.$ac_ext <<_ACEOF
3553: #line $LINENO "configure"
3554: /* confdefs.h. */
3555: _ACEOF
3556: cat confdefs.h >>conftest.$ac_ext
3557: cat >>conftest.$ac_ext <<_ACEOF
3558: /* end confdefs.h. */
3559: $ac_includes_default
3560:
3561: #include <$ac_header>
3562: _ACEOF
3563: rm -f conftest.$ac_objext
3564: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565: (eval $ac_compile) 2>&5
3566: ac_status=$?
3567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568: (exit $ac_status); } &&
3569: { ac_try='test -s conftest.$ac_objext'
3570: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571: (eval $ac_try) 2>&5
3572: ac_status=$?
3573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574: (exit $ac_status); }; }; then
3575: eval "$as_ac_Header=yes"
3576: else
3577: echo "$as_me: failed program was:" >&5
3578: sed 's/^/| /' conftest.$ac_ext >&5
3579:
3580: eval "$as_ac_Header=no"
3581: fi
3582: rm -f conftest.$ac_objext conftest.$ac_ext
3583: fi
3584: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3587: cat >>confdefs.h <<_ACEOF
3588: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589: _ACEOF
3590:
3591: fi
3592:
3593: done
3594:
3595:
3596:
3597:
3598:
3599:
3600: for ac_header in unistd.h stdio.h memory.h stdarg.h
3601: do
3602: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3603: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3604: echo "$as_me:$LINENO: checking for $ac_header" >&5
3605: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3606: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607: echo $ECHO_N "(cached) $ECHO_C" >&6
3608: fi
3609: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3611: else
3612: # Is the header compilable?
3613: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3614: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3615: cat >conftest.$ac_ext <<_ACEOF
3616: #line $LINENO "configure"
3617: /* confdefs.h. */
3618: _ACEOF
3619: cat confdefs.h >>conftest.$ac_ext
3620: cat >>conftest.$ac_ext <<_ACEOF
3621: /* end confdefs.h. */
3622: $ac_includes_default
3623: #include <$ac_header>
3624: _ACEOF
3625: rm -f conftest.$ac_objext
3626: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627: (eval $ac_compile) 2>&5
3628: ac_status=$?
3629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630: (exit $ac_status); } &&
3631: { ac_try='test -s conftest.$ac_objext'
3632: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633: (eval $ac_try) 2>&5
3634: ac_status=$?
3635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636: (exit $ac_status); }; }; then
3637: ac_header_compiler=yes
3638: else
3639: echo "$as_me: failed program was:" >&5
3640: sed 's/^/| /' conftest.$ac_ext >&5
3641:
3642: ac_header_compiler=no
3643: fi
3644: rm -f conftest.$ac_objext conftest.$ac_ext
3645: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3646: echo "${ECHO_T}$ac_header_compiler" >&6
3647:
3648: # Is the header present?
3649: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3650: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3651: cat >conftest.$ac_ext <<_ACEOF
3652: #line $LINENO "configure"
3653: /* confdefs.h. */
3654: _ACEOF
3655: cat confdefs.h >>conftest.$ac_ext
3656: cat >>conftest.$ac_ext <<_ACEOF
3657: /* end confdefs.h. */
3658: #include <$ac_header>
3659: _ACEOF
3660: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3661: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3662: ac_status=$?
3663: grep -v '^ *+' conftest.er1 >conftest.err
3664: rm -f conftest.er1
3665: cat conftest.err >&5
3666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667: (exit $ac_status); } >/dev/null; then
3668: if test -s conftest.err; then
3669: ac_cpp_err=$ac_c_preproc_warn_flag
3670: else
3671: ac_cpp_err=
3672: fi
3673: else
3674: ac_cpp_err=yes
3675: fi
3676: if test -z "$ac_cpp_err"; then
3677: ac_header_preproc=yes
3678: else
3679: echo "$as_me: failed program was:" >&5
3680: sed 's/^/| /' conftest.$ac_ext >&5
3681:
3682: ac_header_preproc=no
3683: fi
3684: rm -f conftest.err conftest.$ac_ext
3685: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686: echo "${ECHO_T}$ac_header_preproc" >&6
3687:
3688: # So? What about this header?
3689: case $ac_header_compiler:$ac_header_preproc in
3690: yes:no )
3691: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3692: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3694: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3695: (
3696: cat <<\_ASBOX
3697: ## ------------------------------------ ##
3698: ## Report this to [email protected]. ##
3699: ## ------------------------------------ ##
3700: _ASBOX
3701: ) |
3702: sed "s/^/$as_me: WARNING: /" >&2
3703: ;;
3704: no:yes )
3705: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3706: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3707: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3708: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3709: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3710: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3711: (
3712: cat <<\_ASBOX
3713: ## ------------------------------------ ##
3714: ## Report this to [email protected]. ##
3715: ## ------------------------------------ ##
3716: _ASBOX
3717: ) |
3718: sed "s/^/$as_me: WARNING: /" >&2
3719: ;;
3720: esac
3721: echo "$as_me:$LINENO: checking for $ac_header" >&5
3722: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3723: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3724: echo $ECHO_N "(cached) $ECHO_C" >&6
3725: else
3726: eval "$as_ac_Header=$ac_header_preproc"
3727: fi
3728: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3729: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3730:
3731: fi
3732: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3733: cat >>confdefs.h <<_ACEOF
3734: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3735: _ACEOF
3736:
3737: fi
3738:
3739: done
3740:
3741:
3742:
3743:
3744:
3745:
3746: for ac_header in sys/ioctl.h sys/sockio.h sys/socketio.h net/if_dl.h ioctls.h
3747: do
3748: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750: echo "$as_me:$LINENO: checking for $ac_header" >&5
3751: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753: echo $ECHO_N "(cached) $ECHO_C" >&6
3754: fi
3755: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3756: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3757: else
3758: # Is the header compilable?
3759: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3760: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3761: cat >conftest.$ac_ext <<_ACEOF
3762: #line $LINENO "configure"
3763: /* confdefs.h. */
3764: _ACEOF
3765: cat confdefs.h >>conftest.$ac_ext
3766: cat >>conftest.$ac_ext <<_ACEOF
3767: /* end confdefs.h. */
3768: $ac_includes_default
3769: #include <$ac_header>
3770: _ACEOF
3771: rm -f conftest.$ac_objext
3772: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773: (eval $ac_compile) 2>&5
3774: ac_status=$?
3775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776: (exit $ac_status); } &&
3777: { ac_try='test -s conftest.$ac_objext'
3778: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779: (eval $ac_try) 2>&5
3780: ac_status=$?
3781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782: (exit $ac_status); }; }; then
3783: ac_header_compiler=yes
3784: else
3785: echo "$as_me: failed program was:" >&5
3786: sed 's/^/| /' conftest.$ac_ext >&5
3787:
3788: ac_header_compiler=no
3789: fi
3790: rm -f conftest.$ac_objext conftest.$ac_ext
3791: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3792: echo "${ECHO_T}$ac_header_compiler" >&6
3793:
3794: # Is the header present?
3795: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3796: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3797: cat >conftest.$ac_ext <<_ACEOF
3798: #line $LINENO "configure"
3799: /* confdefs.h. */
3800: _ACEOF
3801: cat confdefs.h >>conftest.$ac_ext
3802: cat >>conftest.$ac_ext <<_ACEOF
3803: /* end confdefs.h. */
3804: #include <$ac_header>
3805: _ACEOF
3806: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3807: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3808: ac_status=$?
3809: grep -v '^ *+' conftest.er1 >conftest.err
3810: rm -f conftest.er1
3811: cat conftest.err >&5
3812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813: (exit $ac_status); } >/dev/null; then
3814: if test -s conftest.err; then
3815: ac_cpp_err=$ac_c_preproc_warn_flag
3816: else
3817: ac_cpp_err=
3818: fi
3819: else
3820: ac_cpp_err=yes
3821: fi
3822: if test -z "$ac_cpp_err"; then
3823: ac_header_preproc=yes
3824: else
3825: echo "$as_me: failed program was:" >&5
3826: sed 's/^/| /' conftest.$ac_ext >&5
3827:
3828: ac_header_preproc=no
3829: fi
3830: rm -f conftest.err conftest.$ac_ext
3831: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3832: echo "${ECHO_T}$ac_header_preproc" >&6
3833:
3834: # So? What about this header?
3835: case $ac_header_compiler:$ac_header_preproc in
3836: yes:no )
3837: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3838: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3839: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3840: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3841: (
3842: cat <<\_ASBOX
3843: ## ------------------------------------ ##
3844: ## Report this to [email protected]. ##
3845: ## ------------------------------------ ##
3846: _ASBOX
3847: ) |
3848: sed "s/^/$as_me: WARNING: /" >&2
3849: ;;
3850: no:yes )
3851: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3852: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3853: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3854: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3855: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3856: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3857: (
3858: cat <<\_ASBOX
3859: ## ------------------------------------ ##
3860: ## Report this to [email protected]. ##
3861: ## ------------------------------------ ##
3862: _ASBOX
3863: ) |
3864: sed "s/^/$as_me: WARNING: /" >&2
3865: ;;
3866: esac
3867: echo "$as_me:$LINENO: checking for $ac_header" >&5
3868: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3869: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3870: echo $ECHO_N "(cached) $ECHO_C" >&6
3871: else
3872: eval "$as_ac_Header=$ac_header_preproc"
3873: fi
3874: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3875: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3876:
3877: fi
3878: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3879: cat >>confdefs.h <<_ACEOF
3880: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3881: _ACEOF
3882:
3883: fi
3884:
3885: done
3886:
3887:
3888: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3889: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3890: if test "${ac_cv_c_bigendian+set}" = set; then
3891: echo $ECHO_N "(cached) $ECHO_C" >&6
3892: else
3893: # See if sys/param.h defines the BYTE_ORDER macro.
3894: cat >conftest.$ac_ext <<_ACEOF
3895: #line $LINENO "configure"
3896: /* confdefs.h. */
3897: _ACEOF
3898: cat confdefs.h >>conftest.$ac_ext
3899: cat >>conftest.$ac_ext <<_ACEOF
3900: /* end confdefs.h. */
3901: #include <sys/types.h>
3902: #include <sys/param.h>
3903:
3904: int
3905: main ()
3906: {
3907: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3908: bogus endian macros
3909: #endif
3910:
3911: ;
3912: return 0;
3913: }
3914: _ACEOF
3915: rm -f conftest.$ac_objext
3916: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3917: (eval $ac_compile) 2>&5
3918: ac_status=$?
3919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920: (exit $ac_status); } &&
3921: { ac_try='test -s conftest.$ac_objext'
3922: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923: (eval $ac_try) 2>&5
3924: ac_status=$?
3925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926: (exit $ac_status); }; }; then
3927: # It does; now see whether it defined to BIG_ENDIAN or not.
3928: cat >conftest.$ac_ext <<_ACEOF
3929: #line $LINENO "configure"
3930: /* confdefs.h. */
3931: _ACEOF
3932: cat confdefs.h >>conftest.$ac_ext
3933: cat >>conftest.$ac_ext <<_ACEOF
3934: /* end confdefs.h. */
3935: #include <sys/types.h>
3936: #include <sys/param.h>
3937:
3938: int
3939: main ()
3940: {
3941: #if BYTE_ORDER != BIG_ENDIAN
3942: not big endian
3943: #endif
3944:
3945: ;
3946: return 0;
3947: }
3948: _ACEOF
3949: rm -f conftest.$ac_objext
3950: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951: (eval $ac_compile) 2>&5
3952: ac_status=$?
3953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954: (exit $ac_status); } &&
3955: { ac_try='test -s conftest.$ac_objext'
3956: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957: (eval $ac_try) 2>&5
3958: ac_status=$?
3959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960: (exit $ac_status); }; }; then
3961: ac_cv_c_bigendian=yes
3962: else
3963: echo "$as_me: failed program was:" >&5
3964: sed 's/^/| /' conftest.$ac_ext >&5
3965:
3966: ac_cv_c_bigendian=no
3967: fi
3968: rm -f conftest.$ac_objext conftest.$ac_ext
3969: else
3970: echo "$as_me: failed program was:" >&5
3971: sed 's/^/| /' conftest.$ac_ext >&5
3972:
3973: # It does not; compile a test program.
3974: if test "$cross_compiling" = yes; then
3975: # try to guess the endianness by grepping values into an object file
3976: ac_cv_c_bigendian=unknown
3977: cat >conftest.$ac_ext <<_ACEOF
3978: #line $LINENO "configure"
3979: /* confdefs.h. */
3980: _ACEOF
3981: cat confdefs.h >>conftest.$ac_ext
3982: cat >>conftest.$ac_ext <<_ACEOF
3983: /* end confdefs.h. */
3984: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3985: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3986: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3987: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3988: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3989: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3990: int
3991: main ()
3992: {
3993: _ascii (); _ebcdic ();
3994: ;
3995: return 0;
3996: }
3997: _ACEOF
3998: rm -f conftest.$ac_objext
3999: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000: (eval $ac_compile) 2>&5
4001: ac_status=$?
4002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003: (exit $ac_status); } &&
4004: { ac_try='test -s conftest.$ac_objext'
4005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006: (eval $ac_try) 2>&5
4007: ac_status=$?
4008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009: (exit $ac_status); }; }; then
4010: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4011: ac_cv_c_bigendian=yes
4012: fi
4013: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4014: if test "$ac_cv_c_bigendian" = unknown; then
4015: ac_cv_c_bigendian=no
4016: else
4017: # finding both strings is unlikely to happen, but who knows?
4018: ac_cv_c_bigendian=unknown
4019: fi
4020: fi
4021: else
4022: echo "$as_me: failed program was:" >&5
4023: sed 's/^/| /' conftest.$ac_ext >&5
4024:
4025: fi
4026: rm -f conftest.$ac_objext conftest.$ac_ext
4027: else
4028: cat >conftest.$ac_ext <<_ACEOF
4029: #line $LINENO "configure"
4030: /* confdefs.h. */
4031: _ACEOF
4032: cat confdefs.h >>conftest.$ac_ext
4033: cat >>conftest.$ac_ext <<_ACEOF
4034: /* end confdefs.h. */
4035: int
4036: main ()
4037: {
4038: /* Are we little or big endian? From Harbison&Steele. */
4039: union
4040: {
4041: long l;
4042: char c[sizeof (long)];
4043: } u;
4044: u.l = 1;
4045: exit (u.c[sizeof (long) - 1] == 1);
4046: }
4047: _ACEOF
4048: rm -f conftest$ac_exeext
4049: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050: (eval $ac_link) 2>&5
4051: ac_status=$?
4052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4054: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055: (eval $ac_try) 2>&5
4056: ac_status=$?
4057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058: (exit $ac_status); }; }; then
4059: ac_cv_c_bigendian=no
4060: else
4061: echo "$as_me: program exited with status $ac_status" >&5
4062: echo "$as_me: failed program was:" >&5
4063: sed 's/^/| /' conftest.$ac_ext >&5
4064:
4065: ( exit $ac_status )
4066: ac_cv_c_bigendian=yes
4067: fi
4068: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069: fi
4070: fi
4071: rm -f conftest.$ac_objext conftest.$ac_ext
4072: fi
4073: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4074: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4075: case $ac_cv_c_bigendian in
4076: yes)
4077:
4078: cat >>confdefs.h <<\_ACEOF
4079: #define WORDS_BIGENDIAN 1
4080: _ACEOF
4081: ;;
4082: no)
4083: ;;
4084: *)
4085: { { echo "$as_me:$LINENO: error: unknown endianness
4086: presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4087: echo "$as_me: error: unknown endianness
4088: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4089: { (exit 1); exit 1; }; } ;;
4090: esac
4091:
4092: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4093: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4094: if test "${ac_cv_c_const+set}" = set; then
4095: echo $ECHO_N "(cached) $ECHO_C" >&6
4096: else
4097: cat >conftest.$ac_ext <<_ACEOF
4098: #line $LINENO "configure"
4099: /* confdefs.h. */
4100: _ACEOF
4101: cat confdefs.h >>conftest.$ac_ext
4102: cat >>conftest.$ac_ext <<_ACEOF
4103: /* end confdefs.h. */
4104:
4105: int
4106: main ()
4107: {
4108: /* FIXME: Include the comments suggested by Paul. */
4109: #ifndef __cplusplus
4110: /* Ultrix mips cc rejects this. */
4111: typedef int charset[2];
4112: const charset x;
4113: /* SunOS 4.1.1 cc rejects this. */
4114: char const *const *ccp;
4115: char **p;
4116: /* NEC SVR4.0.2 mips cc rejects this. */
4117: struct point {int x, y;};
4118: static struct point const zero = {0,0};
4119: /* AIX XL C 1.02.0.0 rejects this.
4120: It does not let you subtract one const X* pointer from another in
4121: an arm of an if-expression whose if-part is not a constant
4122: expression */
4123: const char *g = "string";
4124: ccp = &g + (g ? g-g : 0);
4125: /* HPUX 7.0 cc rejects these. */
4126: ++ccp;
4127: p = (char**) ccp;
4128: ccp = (char const *const *) p;
4129: { /* SCO 3.2v4 cc rejects this. */
4130: char *t;
4131: char const *s = 0 ? (char *) 0 : (char const *) 0;
4132:
4133: *t++ = 0;
4134: }
4135: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4136: int x[] = {25, 17};
4137: const int *foo = &x[0];
4138: ++foo;
4139: }
4140: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4141: typedef const int *iptr;
4142: iptr p = 0;
4143: ++p;
4144: }
4145: { /* AIX XL C 1.02.0.0 rejects this saying
4146: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4147: struct s { int j; const int *ap[3]; };
4148: struct s *b; b->j = 5;
4149: }
4150: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4151: const int foo = 10;
4152: }
4153: #endif
4154:
4155: ;
4156: return 0;
4157: }
4158: _ACEOF
4159: rm -f conftest.$ac_objext
4160: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161: (eval $ac_compile) 2>&5
4162: ac_status=$?
4163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164: (exit $ac_status); } &&
4165: { ac_try='test -s conftest.$ac_objext'
4166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167: (eval $ac_try) 2>&5
4168: ac_status=$?
4169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170: (exit $ac_status); }; }; then
4171: ac_cv_c_const=yes
4172: else
4173: echo "$as_me: failed program was:" >&5
4174: sed 's/^/| /' conftest.$ac_ext >&5
4175:
4176: ac_cv_c_const=no
4177: fi
4178: rm -f conftest.$ac_objext conftest.$ac_ext
4179: fi
4180: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4181: echo "${ECHO_T}$ac_cv_c_const" >&6
4182: if test $ac_cv_c_const = no; then
4183:
4184: cat >>confdefs.h <<\_ACEOF
4185: #define const
4186: _ACEOF
4187:
4188: fi
4189:
4190: echo "$as_me:$LINENO: checking for inline" >&5
4191: echo $ECHO_N "checking for inline... $ECHO_C" >&6
4192: if test "${ac_cv_c_inline+set}" = set; then
4193: echo $ECHO_N "(cached) $ECHO_C" >&6
4194: else
4195: ac_cv_c_inline=no
4196: for ac_kw in inline __inline__ __inline; do
4197: cat >conftest.$ac_ext <<_ACEOF
4198: #line $LINENO "configure"
4199: /* confdefs.h. */
4200: _ACEOF
4201: cat confdefs.h >>conftest.$ac_ext
4202: cat >>conftest.$ac_ext <<_ACEOF
4203: /* end confdefs.h. */
4204: #ifndef __cplusplus
4205: typedef int foo_t;
4206: static $ac_kw foo_t static_foo () {return 0; }
4207: $ac_kw foo_t foo () {return 0; }
4208: #endif
4209:
4210: _ACEOF
4211: rm -f conftest.$ac_objext
4212: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213: (eval $ac_compile) 2>&5
4214: ac_status=$?
4215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216: (exit $ac_status); } &&
4217: { ac_try='test -s conftest.$ac_objext'
4218: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219: (eval $ac_try) 2>&5
4220: ac_status=$?
4221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222: (exit $ac_status); }; }; then
4223: ac_cv_c_inline=$ac_kw; break
4224: else
4225: echo "$as_me: failed program was:" >&5
4226: sed 's/^/| /' conftest.$ac_ext >&5
4227:
4228: fi
4229: rm -f conftest.$ac_objext conftest.$ac_ext
4230: done
4231:
4232: fi
4233: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4234: echo "${ECHO_T}$ac_cv_c_inline" >&6
4235: case $ac_cv_c_inline in
4236: inline | yes) ;;
4237: no)
4238: cat >>confdefs.h <<\_ACEOF
4239: #define inline
4240: _ACEOF
4241: ;;
4242: *) cat >>confdefs.h <<_ACEOF
4243: #define inline $ac_cv_c_inline
4244: _ACEOF
4245: ;;
4246: esac
4247:
1.1.1.2 ! root 4248: echo "$as_me:$LINENO: checking for size_t" >&5
! 4249: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 4250: if test "${ac_cv_type_size_t+set}" = set; then
! 4251: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4252: else
! 4253: cat >conftest.$ac_ext <<_ACEOF
! 4254: #line $LINENO "configure"
! 4255: /* confdefs.h. */
! 4256: _ACEOF
! 4257: cat confdefs.h >>conftest.$ac_ext
! 4258: cat >>conftest.$ac_ext <<_ACEOF
! 4259: /* end confdefs.h. */
! 4260: $ac_includes_default
! 4261: int
! 4262: main ()
! 4263: {
! 4264: if ((size_t *) 0)
! 4265: return 0;
! 4266: if (sizeof (size_t))
! 4267: return 0;
! 4268: ;
! 4269: return 0;
! 4270: }
! 4271: _ACEOF
! 4272: rm -f conftest.$ac_objext
! 4273: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4274: (eval $ac_compile) 2>&5
! 4275: ac_status=$?
! 4276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4277: (exit $ac_status); } &&
! 4278: { ac_try='test -s conftest.$ac_objext'
! 4279: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4280: (eval $ac_try) 2>&5
! 4281: ac_status=$?
! 4282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4283: (exit $ac_status); }; }; then
! 4284: ac_cv_type_size_t=yes
! 4285: else
! 4286: echo "$as_me: failed program was:" >&5
! 4287: sed 's/^/| /' conftest.$ac_ext >&5
! 4288:
! 4289: ac_cv_type_size_t=no
! 4290: fi
! 4291: rm -f conftest.$ac_objext conftest.$ac_ext
! 4292: fi
! 4293: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 4294: echo "${ECHO_T}$ac_cv_type_size_t" >&6
! 4295: if test $ac_cv_type_size_t = yes; then
! 4296: :
! 4297: else
! 4298:
! 4299: cat >>confdefs.h <<_ACEOF
! 4300: #define size_t unsigned
! 4301: _ACEOF
! 4302:
! 4303: fi
! 4304:
1.1 root 4305: echo "$as_me:$LINENO: checking for long" >&5
4306: echo $ECHO_N "checking for long... $ECHO_C" >&6
4307: if test "${ac_cv_type_long+set}" = set; then
4308: echo $ECHO_N "(cached) $ECHO_C" >&6
4309: else
4310: cat >conftest.$ac_ext <<_ACEOF
4311: #line $LINENO "configure"
4312: /* confdefs.h. */
4313: _ACEOF
4314: cat confdefs.h >>conftest.$ac_ext
4315: cat >>conftest.$ac_ext <<_ACEOF
4316: /* end confdefs.h. */
4317: $ac_includes_default
4318: int
4319: main ()
4320: {
4321: if ((long *) 0)
4322: return 0;
4323: if (sizeof (long))
4324: return 0;
4325: ;
4326: return 0;
4327: }
4328: _ACEOF
4329: rm -f conftest.$ac_objext
4330: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331: (eval $ac_compile) 2>&5
4332: ac_status=$?
4333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334: (exit $ac_status); } &&
4335: { ac_try='test -s conftest.$ac_objext'
4336: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337: (eval $ac_try) 2>&5
4338: ac_status=$?
4339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340: (exit $ac_status); }; }; then
4341: ac_cv_type_long=yes
4342: else
4343: echo "$as_me: failed program was:" >&5
4344: sed 's/^/| /' conftest.$ac_ext >&5
4345:
4346: ac_cv_type_long=no
4347: fi
4348: rm -f conftest.$ac_objext conftest.$ac_ext
4349: fi
4350: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4351: echo "${ECHO_T}$ac_cv_type_long" >&6
4352:
4353: echo "$as_me:$LINENO: checking size of long" >&5
4354: echo $ECHO_N "checking size of long... $ECHO_C" >&6
4355: if test "${ac_cv_sizeof_long+set}" = set; then
4356: echo $ECHO_N "(cached) $ECHO_C" >&6
4357: else
4358: if test "$ac_cv_type_long" = yes; then
4359: # The cast to unsigned long works around a bug in the HP C Compiler
4360: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4361: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4362: # This bug is HP SR number 8606223364.
4363: if test "$cross_compiling" = yes; then
4364: # Depending upon the size, compute the lo and hi bounds.
4365: cat >conftest.$ac_ext <<_ACEOF
4366: #line $LINENO "configure"
4367: /* confdefs.h. */
4368: _ACEOF
4369: cat confdefs.h >>conftest.$ac_ext
4370: cat >>conftest.$ac_ext <<_ACEOF
4371: /* end confdefs.h. */
4372: $ac_includes_default
4373: int
4374: main ()
4375: {
4376: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4377: test_array [0] = 0
4378:
4379: ;
4380: return 0;
4381: }
4382: _ACEOF
4383: rm -f conftest.$ac_objext
4384: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385: (eval $ac_compile) 2>&5
4386: ac_status=$?
4387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388: (exit $ac_status); } &&
4389: { ac_try='test -s conftest.$ac_objext'
4390: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391: (eval $ac_try) 2>&5
4392: ac_status=$?
4393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394: (exit $ac_status); }; }; then
4395: ac_lo=0 ac_mid=0
4396: while :; do
4397: cat >conftest.$ac_ext <<_ACEOF
4398: #line $LINENO "configure"
4399: /* confdefs.h. */
4400: _ACEOF
4401: cat confdefs.h >>conftest.$ac_ext
4402: cat >>conftest.$ac_ext <<_ACEOF
4403: /* end confdefs.h. */
4404: $ac_includes_default
4405: int
4406: main ()
4407: {
4408: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4409: test_array [0] = 0
4410:
4411: ;
4412: return 0;
4413: }
4414: _ACEOF
4415: rm -f conftest.$ac_objext
4416: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417: (eval $ac_compile) 2>&5
4418: ac_status=$?
4419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420: (exit $ac_status); } &&
4421: { ac_try='test -s conftest.$ac_objext'
4422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423: (eval $ac_try) 2>&5
4424: ac_status=$?
4425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426: (exit $ac_status); }; }; then
4427: ac_hi=$ac_mid; break
4428: else
4429: echo "$as_me: failed program was:" >&5
4430: sed 's/^/| /' conftest.$ac_ext >&5
4431:
4432: ac_lo=`expr $ac_mid + 1`
4433: if test $ac_lo -le $ac_mid; then
4434: ac_lo= ac_hi=
4435: break
4436: fi
4437: ac_mid=`expr 2 '*' $ac_mid + 1`
4438: fi
4439: rm -f conftest.$ac_objext conftest.$ac_ext
4440: done
4441: else
4442: echo "$as_me: failed program was:" >&5
4443: sed 's/^/| /' conftest.$ac_ext >&5
4444:
4445: cat >conftest.$ac_ext <<_ACEOF
4446: #line $LINENO "configure"
4447: /* confdefs.h. */
4448: _ACEOF
4449: cat confdefs.h >>conftest.$ac_ext
4450: cat >>conftest.$ac_ext <<_ACEOF
4451: /* end confdefs.h. */
4452: $ac_includes_default
4453: int
4454: main ()
4455: {
4456: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4457: test_array [0] = 0
4458:
4459: ;
4460: return 0;
4461: }
4462: _ACEOF
4463: rm -f conftest.$ac_objext
4464: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465: (eval $ac_compile) 2>&5
4466: ac_status=$?
4467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468: (exit $ac_status); } &&
4469: { ac_try='test -s conftest.$ac_objext'
4470: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471: (eval $ac_try) 2>&5
4472: ac_status=$?
4473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474: (exit $ac_status); }; }; then
4475: ac_hi=-1 ac_mid=-1
4476: while :; do
4477: cat >conftest.$ac_ext <<_ACEOF
4478: #line $LINENO "configure"
4479: /* confdefs.h. */
4480: _ACEOF
4481: cat confdefs.h >>conftest.$ac_ext
4482: cat >>conftest.$ac_ext <<_ACEOF
4483: /* end confdefs.h. */
4484: $ac_includes_default
4485: int
4486: main ()
4487: {
4488: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4489: test_array [0] = 0
4490:
4491: ;
4492: return 0;
4493: }
4494: _ACEOF
4495: rm -f conftest.$ac_objext
4496: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497: (eval $ac_compile) 2>&5
4498: ac_status=$?
4499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500: (exit $ac_status); } &&
4501: { ac_try='test -s conftest.$ac_objext'
4502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503: (eval $ac_try) 2>&5
4504: ac_status=$?
4505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506: (exit $ac_status); }; }; then
4507: ac_lo=$ac_mid; break
4508: else
4509: echo "$as_me: failed program was:" >&5
4510: sed 's/^/| /' conftest.$ac_ext >&5
4511:
4512: ac_hi=`expr '(' $ac_mid ')' - 1`
4513: if test $ac_mid -le $ac_hi; then
4514: ac_lo= ac_hi=
4515: break
4516: fi
4517: ac_mid=`expr 2 '*' $ac_mid`
4518: fi
4519: rm -f conftest.$ac_objext conftest.$ac_ext
4520: done
4521: else
4522: echo "$as_me: failed program was:" >&5
4523: sed 's/^/| /' conftest.$ac_ext >&5
4524:
4525: ac_lo= ac_hi=
4526: fi
4527: rm -f conftest.$ac_objext conftest.$ac_ext
4528: fi
4529: rm -f conftest.$ac_objext conftest.$ac_ext
4530: # Binary search between lo and hi bounds.
4531: while test "x$ac_lo" != "x$ac_hi"; do
4532: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4533: cat >conftest.$ac_ext <<_ACEOF
4534: #line $LINENO "configure"
4535: /* confdefs.h. */
4536: _ACEOF
4537: cat confdefs.h >>conftest.$ac_ext
4538: cat >>conftest.$ac_ext <<_ACEOF
4539: /* end confdefs.h. */
4540: $ac_includes_default
4541: int
4542: main ()
4543: {
4544: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4545: test_array [0] = 0
4546:
4547: ;
4548: return 0;
4549: }
4550: _ACEOF
4551: rm -f conftest.$ac_objext
4552: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553: (eval $ac_compile) 2>&5
4554: ac_status=$?
4555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556: (exit $ac_status); } &&
4557: { ac_try='test -s conftest.$ac_objext'
4558: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559: (eval $ac_try) 2>&5
4560: ac_status=$?
4561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562: (exit $ac_status); }; }; then
4563: ac_hi=$ac_mid
4564: else
4565: echo "$as_me: failed program was:" >&5
4566: sed 's/^/| /' conftest.$ac_ext >&5
4567:
4568: ac_lo=`expr '(' $ac_mid ')' + 1`
4569: fi
4570: rm -f conftest.$ac_objext conftest.$ac_ext
4571: done
4572: case $ac_lo in
4573: ?*) ac_cv_sizeof_long=$ac_lo;;
4574: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4575: See \`config.log' for more details." >&5
4576: echo "$as_me: error: cannot compute sizeof (long), 77
4577: See \`config.log' for more details." >&2;}
4578: { (exit 1); exit 1; }; } ;;
4579: esac
4580: else
4581: if test "$cross_compiling" = yes; then
4582: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4583: See \`config.log' for more details." >&5
4584: echo "$as_me: error: cannot run test program while cross compiling
4585: See \`config.log' for more details." >&2;}
4586: { (exit 1); exit 1; }; }
4587: else
4588: cat >conftest.$ac_ext <<_ACEOF
4589: #line $LINENO "configure"
4590: /* confdefs.h. */
4591: _ACEOF
4592: cat confdefs.h >>conftest.$ac_ext
4593: cat >>conftest.$ac_ext <<_ACEOF
4594: /* end confdefs.h. */
4595: $ac_includes_default
4596: long longval () { return (long) (sizeof (long)); }
4597: unsigned long ulongval () { return (long) (sizeof (long)); }
4598: #include <stdio.h>
4599: #include <stdlib.h>
4600: int
4601: main ()
4602: {
4603:
4604: FILE *f = fopen ("conftest.val", "w");
4605: if (! f)
4606: exit (1);
4607: if (((long) (sizeof (long))) < 0)
4608: {
4609: long i = longval ();
4610: if (i != ((long) (sizeof (long))))
4611: exit (1);
4612: fprintf (f, "%ld\n", i);
4613: }
4614: else
4615: {
4616: unsigned long i = ulongval ();
4617: if (i != ((long) (sizeof (long))))
4618: exit (1);
4619: fprintf (f, "%lu\n", i);
4620: }
4621: exit (ferror (f) || fclose (f) != 0);
4622:
4623: ;
4624: return 0;
4625: }
4626: _ACEOF
4627: rm -f conftest$ac_exeext
4628: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629: (eval $ac_link) 2>&5
4630: ac_status=$?
4631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4633: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634: (eval $ac_try) 2>&5
4635: ac_status=$?
4636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637: (exit $ac_status); }; }; then
4638: ac_cv_sizeof_long=`cat conftest.val`
4639: else
4640: echo "$as_me: program exited with status $ac_status" >&5
4641: echo "$as_me: failed program was:" >&5
4642: sed 's/^/| /' conftest.$ac_ext >&5
4643:
4644: ( exit $ac_status )
4645: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4646: See \`config.log' for more details." >&5
4647: echo "$as_me: error: cannot compute sizeof (long), 77
4648: See \`config.log' for more details." >&2;}
4649: { (exit 1); exit 1; }; }
4650: fi
4651: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4652: fi
4653: fi
4654: rm -f conftest.val
4655: else
4656: ac_cv_sizeof_long=0
4657: fi
4658: fi
4659: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4660: echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4661: cat >>confdefs.h <<_ACEOF
4662: #define SIZEOF_LONG $ac_cv_sizeof_long
4663: _ACEOF
4664:
4665:
4666: echo "$as_me:$LINENO: checking for int" >&5
4667: echo $ECHO_N "checking for int... $ECHO_C" >&6
4668: if test "${ac_cv_type_int+set}" = set; then
4669: echo $ECHO_N "(cached) $ECHO_C" >&6
4670: else
4671: cat >conftest.$ac_ext <<_ACEOF
4672: #line $LINENO "configure"
4673: /* confdefs.h. */
4674: _ACEOF
4675: cat confdefs.h >>conftest.$ac_ext
4676: cat >>conftest.$ac_ext <<_ACEOF
4677: /* end confdefs.h. */
4678: $ac_includes_default
4679: int
4680: main ()
4681: {
4682: if ((int *) 0)
4683: return 0;
4684: if (sizeof (int))
4685: return 0;
4686: ;
4687: return 0;
4688: }
4689: _ACEOF
4690: rm -f conftest.$ac_objext
4691: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692: (eval $ac_compile) 2>&5
4693: ac_status=$?
4694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695: (exit $ac_status); } &&
4696: { ac_try='test -s conftest.$ac_objext'
4697: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698: (eval $ac_try) 2>&5
4699: ac_status=$?
4700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701: (exit $ac_status); }; }; then
4702: ac_cv_type_int=yes
4703: else
4704: echo "$as_me: failed program was:" >&5
4705: sed 's/^/| /' conftest.$ac_ext >&5
4706:
4707: ac_cv_type_int=no
4708: fi
4709: rm -f conftest.$ac_objext conftest.$ac_ext
4710: fi
4711: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4712: echo "${ECHO_T}$ac_cv_type_int" >&6
4713:
4714: echo "$as_me:$LINENO: checking size of int" >&5
4715: echo $ECHO_N "checking size of int... $ECHO_C" >&6
4716: if test "${ac_cv_sizeof_int+set}" = set; then
4717: echo $ECHO_N "(cached) $ECHO_C" >&6
4718: else
4719: if test "$ac_cv_type_int" = yes; then
4720: # The cast to unsigned long works around a bug in the HP C Compiler
4721: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4722: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4723: # This bug is HP SR number 8606223364.
4724: if test "$cross_compiling" = yes; then
4725: # Depending upon the size, compute the lo and hi bounds.
4726: cat >conftest.$ac_ext <<_ACEOF
4727: #line $LINENO "configure"
4728: /* confdefs.h. */
4729: _ACEOF
4730: cat confdefs.h >>conftest.$ac_ext
4731: cat >>conftest.$ac_ext <<_ACEOF
4732: /* end confdefs.h. */
4733: $ac_includes_default
4734: int
4735: main ()
4736: {
4737: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4738: test_array [0] = 0
4739:
4740: ;
4741: return 0;
4742: }
4743: _ACEOF
4744: rm -f conftest.$ac_objext
4745: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746: (eval $ac_compile) 2>&5
4747: ac_status=$?
4748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749: (exit $ac_status); } &&
4750: { ac_try='test -s conftest.$ac_objext'
4751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752: (eval $ac_try) 2>&5
4753: ac_status=$?
4754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755: (exit $ac_status); }; }; then
4756: ac_lo=0 ac_mid=0
4757: while :; do
4758: cat >conftest.$ac_ext <<_ACEOF
4759: #line $LINENO "configure"
4760: /* confdefs.h. */
4761: _ACEOF
4762: cat confdefs.h >>conftest.$ac_ext
4763: cat >>conftest.$ac_ext <<_ACEOF
4764: /* end confdefs.h. */
4765: $ac_includes_default
4766: int
4767: main ()
4768: {
4769: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4770: test_array [0] = 0
4771:
4772: ;
4773: return 0;
4774: }
4775: _ACEOF
4776: rm -f conftest.$ac_objext
4777: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778: (eval $ac_compile) 2>&5
4779: ac_status=$?
4780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781: (exit $ac_status); } &&
4782: { ac_try='test -s conftest.$ac_objext'
4783: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784: (eval $ac_try) 2>&5
4785: ac_status=$?
4786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787: (exit $ac_status); }; }; then
4788: ac_hi=$ac_mid; break
4789: else
4790: echo "$as_me: failed program was:" >&5
4791: sed 's/^/| /' conftest.$ac_ext >&5
4792:
4793: ac_lo=`expr $ac_mid + 1`
4794: if test $ac_lo -le $ac_mid; then
4795: ac_lo= ac_hi=
4796: break
4797: fi
4798: ac_mid=`expr 2 '*' $ac_mid + 1`
4799: fi
4800: rm -f conftest.$ac_objext conftest.$ac_ext
4801: done
4802: else
4803: echo "$as_me: failed program was:" >&5
4804: sed 's/^/| /' conftest.$ac_ext >&5
4805:
4806: cat >conftest.$ac_ext <<_ACEOF
4807: #line $LINENO "configure"
4808: /* confdefs.h. */
4809: _ACEOF
4810: cat confdefs.h >>conftest.$ac_ext
4811: cat >>conftest.$ac_ext <<_ACEOF
4812: /* end confdefs.h. */
4813: $ac_includes_default
4814: int
4815: main ()
4816: {
4817: static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4818: test_array [0] = 0
4819:
4820: ;
4821: return 0;
4822: }
4823: _ACEOF
4824: rm -f conftest.$ac_objext
4825: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826: (eval $ac_compile) 2>&5
4827: ac_status=$?
4828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829: (exit $ac_status); } &&
4830: { ac_try='test -s conftest.$ac_objext'
4831: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832: (eval $ac_try) 2>&5
4833: ac_status=$?
4834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835: (exit $ac_status); }; }; then
4836: ac_hi=-1 ac_mid=-1
4837: while :; do
4838: cat >conftest.$ac_ext <<_ACEOF
4839: #line $LINENO "configure"
4840: /* confdefs.h. */
4841: _ACEOF
4842: cat confdefs.h >>conftest.$ac_ext
4843: cat >>conftest.$ac_ext <<_ACEOF
4844: /* end confdefs.h. */
4845: $ac_includes_default
4846: int
4847: main ()
4848: {
4849: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4850: test_array [0] = 0
4851:
4852: ;
4853: return 0;
4854: }
4855: _ACEOF
4856: rm -f conftest.$ac_objext
4857: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858: (eval $ac_compile) 2>&5
4859: ac_status=$?
4860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861: (exit $ac_status); } &&
4862: { ac_try='test -s conftest.$ac_objext'
4863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864: (eval $ac_try) 2>&5
4865: ac_status=$?
4866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867: (exit $ac_status); }; }; then
4868: ac_lo=$ac_mid; break
4869: else
4870: echo "$as_me: failed program was:" >&5
4871: sed 's/^/| /' conftest.$ac_ext >&5
4872:
4873: ac_hi=`expr '(' $ac_mid ')' - 1`
4874: if test $ac_mid -le $ac_hi; then
4875: ac_lo= ac_hi=
4876: break
4877: fi
4878: ac_mid=`expr 2 '*' $ac_mid`
4879: fi
4880: rm -f conftest.$ac_objext conftest.$ac_ext
4881: done
4882: else
4883: echo "$as_me: failed program was:" >&5
4884: sed 's/^/| /' conftest.$ac_ext >&5
4885:
4886: ac_lo= ac_hi=
4887: fi
4888: rm -f conftest.$ac_objext conftest.$ac_ext
4889: fi
4890: rm -f conftest.$ac_objext conftest.$ac_ext
4891: # Binary search between lo and hi bounds.
4892: while test "x$ac_lo" != "x$ac_hi"; do
4893: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4894: cat >conftest.$ac_ext <<_ACEOF
4895: #line $LINENO "configure"
4896: /* confdefs.h. */
4897: _ACEOF
4898: cat confdefs.h >>conftest.$ac_ext
4899: cat >>conftest.$ac_ext <<_ACEOF
4900: /* end confdefs.h. */
4901: $ac_includes_default
4902: int
4903: main ()
4904: {
4905: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4906: test_array [0] = 0
4907:
4908: ;
4909: return 0;
4910: }
4911: _ACEOF
4912: rm -f conftest.$ac_objext
4913: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914: (eval $ac_compile) 2>&5
4915: ac_status=$?
4916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917: (exit $ac_status); } &&
4918: { ac_try='test -s conftest.$ac_objext'
4919: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920: (eval $ac_try) 2>&5
4921: ac_status=$?
4922: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923: (exit $ac_status); }; }; then
4924: ac_hi=$ac_mid
4925: else
4926: echo "$as_me: failed program was:" >&5
4927: sed 's/^/| /' conftest.$ac_ext >&5
4928:
4929: ac_lo=`expr '(' $ac_mid ')' + 1`
4930: fi
4931: rm -f conftest.$ac_objext conftest.$ac_ext
4932: done
4933: case $ac_lo in
4934: ?*) ac_cv_sizeof_int=$ac_lo;;
4935: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4936: See \`config.log' for more details." >&5
4937: echo "$as_me: error: cannot compute sizeof (int), 77
4938: See \`config.log' for more details." >&2;}
4939: { (exit 1); exit 1; }; } ;;
4940: esac
4941: else
4942: if test "$cross_compiling" = yes; then
4943: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4944: See \`config.log' for more details." >&5
4945: echo "$as_me: error: cannot run test program while cross compiling
4946: See \`config.log' for more details." >&2;}
4947: { (exit 1); exit 1; }; }
4948: else
4949: cat >conftest.$ac_ext <<_ACEOF
4950: #line $LINENO "configure"
4951: /* confdefs.h. */
4952: _ACEOF
4953: cat confdefs.h >>conftest.$ac_ext
4954: cat >>conftest.$ac_ext <<_ACEOF
4955: /* end confdefs.h. */
4956: $ac_includes_default
4957: long longval () { return (long) (sizeof (int)); }
4958: unsigned long ulongval () { return (long) (sizeof (int)); }
4959: #include <stdio.h>
4960: #include <stdlib.h>
4961: int
4962: main ()
4963: {
4964:
4965: FILE *f = fopen ("conftest.val", "w");
4966: if (! f)
4967: exit (1);
4968: if (((long) (sizeof (int))) < 0)
4969: {
4970: long i = longval ();
4971: if (i != ((long) (sizeof (int))))
4972: exit (1);
4973: fprintf (f, "%ld\n", i);
4974: }
4975: else
4976: {
4977: unsigned long i = ulongval ();
4978: if (i != ((long) (sizeof (int))))
4979: exit (1);
4980: fprintf (f, "%lu\n", i);
4981: }
4982: exit (ferror (f) || fclose (f) != 0);
4983:
4984: ;
4985: return 0;
4986: }
4987: _ACEOF
4988: rm -f conftest$ac_exeext
4989: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990: (eval $ac_link) 2>&5
4991: ac_status=$?
4992: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4994: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995: (eval $ac_try) 2>&5
4996: ac_status=$?
4997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998: (exit $ac_status); }; }; then
4999: ac_cv_sizeof_int=`cat conftest.val`
5000: else
5001: echo "$as_me: program exited with status $ac_status" >&5
5002: echo "$as_me: failed program was:" >&5
5003: sed 's/^/| /' conftest.$ac_ext >&5
5004:
5005: ( exit $ac_status )
5006: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5007: See \`config.log' for more details." >&5
5008: echo "$as_me: error: cannot compute sizeof (int), 77
5009: See \`config.log' for more details." >&2;}
5010: { (exit 1); exit 1; }; }
5011: fi
5012: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5013: fi
5014: fi
5015: rm -f conftest.val
5016: else
5017: ac_cv_sizeof_int=0
5018: fi
5019: fi
5020: echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5021: echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5022: cat >>confdefs.h <<_ACEOF
5023: #define SIZEOF_INT $ac_cv_sizeof_int
5024: _ACEOF
5025:
5026:
5027: echo "$as_me:$LINENO: checking for short" >&5
5028: echo $ECHO_N "checking for short... $ECHO_C" >&6
5029: if test "${ac_cv_type_short+set}" = set; then
5030: echo $ECHO_N "(cached) $ECHO_C" >&6
5031: else
5032: cat >conftest.$ac_ext <<_ACEOF
5033: #line $LINENO "configure"
5034: /* confdefs.h. */
5035: _ACEOF
5036: cat confdefs.h >>conftest.$ac_ext
5037: cat >>conftest.$ac_ext <<_ACEOF
5038: /* end confdefs.h. */
5039: $ac_includes_default
5040: int
5041: main ()
5042: {
5043: if ((short *) 0)
5044: return 0;
5045: if (sizeof (short))
5046: return 0;
5047: ;
5048: return 0;
5049: }
5050: _ACEOF
5051: rm -f conftest.$ac_objext
5052: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053: (eval $ac_compile) 2>&5
5054: ac_status=$?
5055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056: (exit $ac_status); } &&
5057: { ac_try='test -s conftest.$ac_objext'
5058: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059: (eval $ac_try) 2>&5
5060: ac_status=$?
5061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062: (exit $ac_status); }; }; then
5063: ac_cv_type_short=yes
5064: else
5065: echo "$as_me: failed program was:" >&5
5066: sed 's/^/| /' conftest.$ac_ext >&5
5067:
5068: ac_cv_type_short=no
5069: fi
5070: rm -f conftest.$ac_objext conftest.$ac_ext
5071: fi
5072: echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5073: echo "${ECHO_T}$ac_cv_type_short" >&6
5074:
5075: echo "$as_me:$LINENO: checking size of short" >&5
5076: echo $ECHO_N "checking size of short... $ECHO_C" >&6
5077: if test "${ac_cv_sizeof_short+set}" = set; then
5078: echo $ECHO_N "(cached) $ECHO_C" >&6
5079: else
5080: if test "$ac_cv_type_short" = yes; then
5081: # The cast to unsigned long works around a bug in the HP C Compiler
5082: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5083: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5084: # This bug is HP SR number 8606223364.
5085: if test "$cross_compiling" = yes; then
5086: # Depending upon the size, compute the lo and hi bounds.
5087: cat >conftest.$ac_ext <<_ACEOF
5088: #line $LINENO "configure"
5089: /* confdefs.h. */
5090: _ACEOF
5091: cat confdefs.h >>conftest.$ac_ext
5092: cat >>conftest.$ac_ext <<_ACEOF
5093: /* end confdefs.h. */
5094: $ac_includes_default
5095: int
5096: main ()
5097: {
5098: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5099: test_array [0] = 0
5100:
5101: ;
5102: return 0;
5103: }
5104: _ACEOF
5105: rm -f conftest.$ac_objext
5106: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107: (eval $ac_compile) 2>&5
5108: ac_status=$?
5109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110: (exit $ac_status); } &&
5111: { ac_try='test -s conftest.$ac_objext'
5112: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113: (eval $ac_try) 2>&5
5114: ac_status=$?
5115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116: (exit $ac_status); }; }; then
5117: ac_lo=0 ac_mid=0
5118: while :; do
5119: cat >conftest.$ac_ext <<_ACEOF
5120: #line $LINENO "configure"
5121: /* confdefs.h. */
5122: _ACEOF
5123: cat confdefs.h >>conftest.$ac_ext
5124: cat >>conftest.$ac_ext <<_ACEOF
5125: /* end confdefs.h. */
5126: $ac_includes_default
5127: int
5128: main ()
5129: {
5130: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5131: test_array [0] = 0
5132:
5133: ;
5134: return 0;
5135: }
5136: _ACEOF
5137: rm -f conftest.$ac_objext
5138: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139: (eval $ac_compile) 2>&5
5140: ac_status=$?
5141: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142: (exit $ac_status); } &&
5143: { ac_try='test -s conftest.$ac_objext'
5144: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145: (eval $ac_try) 2>&5
5146: ac_status=$?
5147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148: (exit $ac_status); }; }; then
5149: ac_hi=$ac_mid; break
5150: else
5151: echo "$as_me: failed program was:" >&5
5152: sed 's/^/| /' conftest.$ac_ext >&5
5153:
5154: ac_lo=`expr $ac_mid + 1`
5155: if test $ac_lo -le $ac_mid; then
5156: ac_lo= ac_hi=
5157: break
5158: fi
5159: ac_mid=`expr 2 '*' $ac_mid + 1`
5160: fi
5161: rm -f conftest.$ac_objext conftest.$ac_ext
5162: done
5163: else
5164: echo "$as_me: failed program was:" >&5
5165: sed 's/^/| /' conftest.$ac_ext >&5
5166:
5167: cat >conftest.$ac_ext <<_ACEOF
5168: #line $LINENO "configure"
5169: /* confdefs.h. */
5170: _ACEOF
5171: cat confdefs.h >>conftest.$ac_ext
5172: cat >>conftest.$ac_ext <<_ACEOF
5173: /* end confdefs.h. */
5174: $ac_includes_default
5175: int
5176: main ()
5177: {
5178: static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5179: test_array [0] = 0
5180:
5181: ;
5182: return 0;
5183: }
5184: _ACEOF
5185: rm -f conftest.$ac_objext
5186: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187: (eval $ac_compile) 2>&5
5188: ac_status=$?
5189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190: (exit $ac_status); } &&
5191: { ac_try='test -s conftest.$ac_objext'
5192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193: (eval $ac_try) 2>&5
5194: ac_status=$?
5195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196: (exit $ac_status); }; }; then
5197: ac_hi=-1 ac_mid=-1
5198: while :; do
5199: cat >conftest.$ac_ext <<_ACEOF
5200: #line $LINENO "configure"
5201: /* confdefs.h. */
5202: _ACEOF
5203: cat confdefs.h >>conftest.$ac_ext
5204: cat >>conftest.$ac_ext <<_ACEOF
5205: /* end confdefs.h. */
5206: $ac_includes_default
5207: int
5208: main ()
5209: {
5210: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5211: test_array [0] = 0
5212:
5213: ;
5214: return 0;
5215: }
5216: _ACEOF
5217: rm -f conftest.$ac_objext
5218: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219: (eval $ac_compile) 2>&5
5220: ac_status=$?
5221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222: (exit $ac_status); } &&
5223: { ac_try='test -s conftest.$ac_objext'
5224: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225: (eval $ac_try) 2>&5
5226: ac_status=$?
5227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228: (exit $ac_status); }; }; then
5229: ac_lo=$ac_mid; break
5230: else
5231: echo "$as_me: failed program was:" >&5
5232: sed 's/^/| /' conftest.$ac_ext >&5
5233:
5234: ac_hi=`expr '(' $ac_mid ')' - 1`
5235: if test $ac_mid -le $ac_hi; then
5236: ac_lo= ac_hi=
5237: break
5238: fi
5239: ac_mid=`expr 2 '*' $ac_mid`
5240: fi
5241: rm -f conftest.$ac_objext conftest.$ac_ext
5242: done
5243: else
5244: echo "$as_me: failed program was:" >&5
5245: sed 's/^/| /' conftest.$ac_ext >&5
5246:
5247: ac_lo= ac_hi=
5248: fi
5249: rm -f conftest.$ac_objext conftest.$ac_ext
5250: fi
5251: rm -f conftest.$ac_objext conftest.$ac_ext
5252: # Binary search between lo and hi bounds.
5253: while test "x$ac_lo" != "x$ac_hi"; do
5254: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5255: cat >conftest.$ac_ext <<_ACEOF
5256: #line $LINENO "configure"
5257: /* confdefs.h. */
5258: _ACEOF
5259: cat confdefs.h >>conftest.$ac_ext
5260: cat >>conftest.$ac_ext <<_ACEOF
5261: /* end confdefs.h. */
5262: $ac_includes_default
5263: int
5264: main ()
5265: {
5266: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5267: test_array [0] = 0
5268:
5269: ;
5270: return 0;
5271: }
5272: _ACEOF
5273: rm -f conftest.$ac_objext
5274: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275: (eval $ac_compile) 2>&5
5276: ac_status=$?
5277: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278: (exit $ac_status); } &&
5279: { ac_try='test -s conftest.$ac_objext'
5280: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281: (eval $ac_try) 2>&5
5282: ac_status=$?
5283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284: (exit $ac_status); }; }; then
5285: ac_hi=$ac_mid
5286: else
5287: echo "$as_me: failed program was:" >&5
5288: sed 's/^/| /' conftest.$ac_ext >&5
5289:
5290: ac_lo=`expr '(' $ac_mid ')' + 1`
5291: fi
5292: rm -f conftest.$ac_objext conftest.$ac_ext
5293: done
5294: case $ac_lo in
5295: ?*) ac_cv_sizeof_short=$ac_lo;;
5296: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5297: See \`config.log' for more details." >&5
5298: echo "$as_me: error: cannot compute sizeof (short), 77
5299: See \`config.log' for more details." >&2;}
5300: { (exit 1); exit 1; }; } ;;
5301: esac
5302: else
5303: if test "$cross_compiling" = yes; then
5304: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5305: See \`config.log' for more details." >&5
5306: echo "$as_me: error: cannot run test program while cross compiling
5307: See \`config.log' for more details." >&2;}
5308: { (exit 1); exit 1; }; }
5309: else
5310: cat >conftest.$ac_ext <<_ACEOF
5311: #line $LINENO "configure"
5312: /* confdefs.h. */
5313: _ACEOF
5314: cat confdefs.h >>conftest.$ac_ext
5315: cat >>conftest.$ac_ext <<_ACEOF
5316: /* end confdefs.h. */
5317: $ac_includes_default
5318: long longval () { return (long) (sizeof (short)); }
5319: unsigned long ulongval () { return (long) (sizeof (short)); }
5320: #include <stdio.h>
5321: #include <stdlib.h>
5322: int
5323: main ()
5324: {
5325:
5326: FILE *f = fopen ("conftest.val", "w");
5327: if (! f)
5328: exit (1);
5329: if (((long) (sizeof (short))) < 0)
5330: {
5331: long i = longval ();
5332: if (i != ((long) (sizeof (short))))
5333: exit (1);
5334: fprintf (f, "%ld\n", i);
5335: }
5336: else
5337: {
5338: unsigned long i = ulongval ();
5339: if (i != ((long) (sizeof (short))))
5340: exit (1);
5341: fprintf (f, "%lu\n", i);
5342: }
5343: exit (ferror (f) || fclose (f) != 0);
5344:
5345: ;
5346: return 0;
5347: }
5348: _ACEOF
5349: rm -f conftest$ac_exeext
5350: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351: (eval $ac_link) 2>&5
5352: ac_status=$?
5353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356: (eval $ac_try) 2>&5
5357: ac_status=$?
5358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359: (exit $ac_status); }; }; then
5360: ac_cv_sizeof_short=`cat conftest.val`
5361: else
5362: echo "$as_me: program exited with status $ac_status" >&5
5363: echo "$as_me: failed program was:" >&5
5364: sed 's/^/| /' conftest.$ac_ext >&5
5365:
5366: ( exit $ac_status )
5367: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5368: See \`config.log' for more details." >&5
5369: echo "$as_me: error: cannot compute sizeof (short), 77
5370: See \`config.log' for more details." >&2;}
5371: { (exit 1); exit 1; }; }
5372: fi
5373: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5374: fi
5375: fi
5376: rm -f conftest.val
5377: else
5378: ac_cv_sizeof_short=0
5379: fi
5380: fi
5381: echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5382: echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5383: cat >>confdefs.h <<_ACEOF
5384: #define SIZEOF_SHORT $ac_cv_sizeof_short
5385: _ACEOF
5386:
5387:
5388: if test $ac_cv_sizeof_int != 4 && test $ac_cv_sizeof_long != 4; then
5389: { { echo "$as_me:$LINENO: error: can't find a 32-bit type" >&5
5390: echo "$as_me: error: can't find a 32-bit type" >&2;}
5391: { (exit 1); exit 1; }; }
5392: fi
5393: if test $ac_cv_sizeof_int != 2 && test $ac_cv_sizeof_short != 2; then
5394: { { echo "$as_me:$LINENO: error: can't find a 16-bit type" >&5
5395: echo "$as_me: error: can't find a 16-bit type" >&2;}
5396: { (exit 1); exit 1; }; }
5397: fi
5398: echo "$as_me:$LINENO: checking minimum alignment of int32_t" >&5
5399: echo $ECHO_N "checking minimum alignment of int32_t... $ECHO_C" >&6
5400: if test "${ac_cv_alignof_int32_t+set}" = set; then
5401: echo $ECHO_N "(cached) $ECHO_C" >&6
5402: else
5403: if test "$cross_compiling" = yes; then
5404: ac_cv_alignof_int32_t=32
5405: else
5406: cat >conftest.$ac_ext <<_ACEOF
5407: #line $LINENO "configure"
5408: /* confdefs.h. */
5409: _ACEOF
5410: cat confdefs.h >>conftest.$ac_ext
5411: cat >>conftest.$ac_ext <<_ACEOF
5412: /* end confdefs.h. */
5413: #include <stdio.h>
5414: #include <sys/types.h>
5415: main()
5416: {
5417: #if (SIZEOF_SHORT * 8) == 32
5418: #define _type short
5419: #elif (SIZEOF_INT * 8) == 32
5420: #define _type int
5421: #else
5422: #define _type long
5423: #endif
5424: char try_align_buffer[sizeof(_type) * 2];
5425: int min_align, try_align, status;
5426: _type value;
5427: FILE *f=fopen("conftestval", "w");
5428: if (!f) exit(1);
5429: min_align = sizeof(_type);
5430: for(try_align = sizeof(_type); try_align-- > 1;) {
5431: switch(fork()) {
5432: case -1: exit(1);
5433: case 0: value = *((_type *) &try_align_buffer[try_align]);
5434: fprintf(stderr, "%d\n", (int) value); exit(0);
5435: default: break;
5436: }
5437: wait(&status);
5438: if (!status && try_align < min_align) {
5439: min_align = try_align;
5440: }
5441: }
5442: fprintf(f, "%d\n", min_align * 8);
5443: exit(0);
5444: }
5445: _ACEOF
5446: rm -f conftest$ac_exeext
5447: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5448: (eval $ac_link) 2>&5
5449: ac_status=$?
5450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453: (eval $ac_try) 2>&5
5454: ac_status=$?
5455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456: (exit $ac_status); }; }; then
5457: ac_cv_alignof_int32_t=`cat conftestval`
5458: else
5459: echo "$as_me: program exited with status $ac_status" >&5
5460: echo "$as_me: failed program was:" >&5
5461: sed 's/^/| /' conftest.$ac_ext >&5
5462:
5463: ( exit $ac_status )
5464: ac_cv_alignof_int32_t=32
5465: fi
5466: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5467: fi
5468: fi
5469: ac_cv_alignof_int32_t=`expr $ac_cv_alignof_int32_t / 8`
5470: echo "$as_me:$LINENO: result: $ac_cv_alignof_int32_t" >&5
5471: echo "${ECHO_T}$ac_cv_alignof_int32_t" >&6
5472:
5473: cat >>confdefs.h <<_ACEOF
5474: #define ALIGNOF_INT32_T $ac_cv_alignof_int32_t
5475: _ACEOF
5476:
5477:
5478: echo "$as_me:$LINENO: checking minimum alignment of int16_t" >&5
5479: echo $ECHO_N "checking minimum alignment of int16_t... $ECHO_C" >&6
5480: if test "${ac_cv_alignof_int16_t+set}" = set; then
5481: echo $ECHO_N "(cached) $ECHO_C" >&6
5482: else
5483: if test "$cross_compiling" = yes; then
5484: ac_cv_alignof_int16_t=16
5485: else
5486: cat >conftest.$ac_ext <<_ACEOF
5487: #line $LINENO "configure"
5488: /* confdefs.h. */
5489: _ACEOF
5490: cat confdefs.h >>conftest.$ac_ext
5491: cat >>conftest.$ac_ext <<_ACEOF
5492: /* end confdefs.h. */
5493: #include <stdio.h>
5494: #include <sys/types.h>
5495: main()
5496: {
5497: #if (SIZEOF_SHORT * 8) == 16
5498: #define _type short
5499: #elif (SIZEOF_INT * 8) == 16
5500: #define _type int
5501: #else
5502: #define _type long
5503: #endif
5504: char try_align_buffer[sizeof(_type) * 2];
5505: int min_align, try_align, status;
5506: _type value;
5507: FILE *f=fopen("conftestval", "w");
5508: if (!f) exit(1);
5509: min_align = sizeof(_type);
5510: for(try_align = sizeof(_type); try_align-- > 1;) {
5511: switch(fork()) {
5512: case -1: exit(1);
5513: case 0: value = *((_type *) &try_align_buffer[try_align]);
5514: fprintf(stderr, "%d\n", (int) value); exit(0);
5515: default: break;
5516: }
5517: wait(&status);
5518: if (!status && try_align < min_align) {
5519: min_align = try_align;
5520: }
5521: }
5522: fprintf(f, "%d\n", min_align * 8);
5523: exit(0);
5524: }
5525: _ACEOF
5526: rm -f conftest$ac_exeext
5527: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528: (eval $ac_link) 2>&5
5529: ac_status=$?
5530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5532: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533: (eval $ac_try) 2>&5
5534: ac_status=$?
5535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536: (exit $ac_status); }; }; then
5537: ac_cv_alignof_int16_t=`cat conftestval`
5538: else
5539: echo "$as_me: program exited with status $ac_status" >&5
5540: echo "$as_me: failed program was:" >&5
5541: sed 's/^/| /' conftest.$ac_ext >&5
5542:
5543: ( exit $ac_status )
5544: ac_cv_alignof_int16_t=16
5545: fi
5546: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5547: fi
5548: fi
5549: ac_cv_alignof_int16_t=`expr $ac_cv_alignof_int16_t / 8`
5550: echo "$as_me:$LINENO: result: $ac_cv_alignof_int16_t" >&5
5551: echo "${ECHO_T}$ac_cv_alignof_int16_t" >&6
5552:
5553: cat >>confdefs.h <<_ACEOF
5554: #define ALIGNOF_INT16_T $ac_cv_alignof_int16_t
5555: _ACEOF
5556:
5557:
5558: echo "$as_me:$LINENO: checking maximum shift count for int8_t" >&5
5559: echo $ECHO_N "checking maximum shift count for int8_t... $ECHO_C" >&6
5560: if test "${ac_cv_shiftmax_int8_t+set}" = set; then
5561: echo $ECHO_N "(cached) $ECHO_C" >&6
5562: else
5563: if test "$cross_compiling" = yes; then
5564: ac_cv_shiftmax_int8_t=8
5565: else
5566: cat >conftest.$ac_ext <<_ACEOF
5567: #line $LINENO "configure"
5568: /* confdefs.h. */
5569: _ACEOF
5570: cat confdefs.h >>conftest.$ac_ext
5571: cat >>conftest.$ac_ext <<_ACEOF
5572: /* end confdefs.h. */
5573: #include <stdio.h>
5574: #include <sys/types.h>
5575: main()
5576: {
5577: #if 8 == 8
5578: #define _type char
5579: #elif (SIZEOF_SHORT * 8) == 8
5580: #define _type short
5581: #elif (SIZEOF_INT * 8) == 8
5582: #define _type int
5583: #elif (SIZEOF_LONG * 8) == 8
5584: #define _type long
5585: #endif
5586: _type center, right, left;
5587: unsigned int shift, max_shift;
5588: FILE *f=fopen("conftestval", "w");
5589: if (!f) exit(1);
5590: center = 3 << ((sizeof(center) * 4) - 1);
5591: max_shift = 2047;
5592: for (shift = (sizeof(center) * 8);
5593: shift < 2048;
5594: shift <<= 1) {
5595: right = (center >> shift);
5596: left = (center << shift);
5597: if (right != 0
5598: || left != 0) {
5599: right = (center >> (shift | 1));
5600: left = (center << (shift | 1));
5601: max_shift = ((right == (center >> 1)
5602: && left == (center << 1))
5603: ? shift - 1
5604: : (sizeof(center) * 8) - 1);
5605: break;
5606: }
5607: }
5608: fprintf(f, "%d\n", max_shift + 1);
5609: exit(0);
5610: }
5611: _ACEOF
5612: rm -f conftest$ac_exeext
5613: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614: (eval $ac_link) 2>&5
5615: ac_status=$?
5616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5618: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619: (eval $ac_try) 2>&5
5620: ac_status=$?
5621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622: (exit $ac_status); }; }; then
5623: ac_cv_shiftmax_int8_t=`cat conftestval`
5624: else
5625: echo "$as_me: program exited with status $ac_status" >&5
5626: echo "$as_me: failed program was:" >&5
5627: sed 's/^/| /' conftest.$ac_ext >&5
5628:
5629: ( exit $ac_status )
5630: ac_cv_shiftmax_int8_t=8
5631: fi
5632: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5633: fi
5634: fi
5635: ac_cv_shiftmax_int8_t=`expr $ac_cv_shiftmax_int8_t - 1`
5636: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int8_t" >&5
5637: echo "${ECHO_T}$ac_cv_shiftmax_int8_t" >&6
5638:
5639: cat >>confdefs.h <<_ACEOF
5640: #define SHIFTMAX_INT8_T $ac_cv_shiftmax_int8_t
5641: _ACEOF
5642:
5643:
5644: echo "$as_me:$LINENO: checking maximum shift count for int16_t" >&5
5645: echo $ECHO_N "checking maximum shift count for int16_t... $ECHO_C" >&6
5646: if test "${ac_cv_shiftmax_int16_t+set}" = set; then
5647: echo $ECHO_N "(cached) $ECHO_C" >&6
5648: else
5649: if test "$cross_compiling" = yes; then
5650: ac_cv_shiftmax_int16_t=16
5651: else
5652: cat >conftest.$ac_ext <<_ACEOF
5653: #line $LINENO "configure"
5654: /* confdefs.h. */
5655: _ACEOF
5656: cat confdefs.h >>conftest.$ac_ext
5657: cat >>conftest.$ac_ext <<_ACEOF
5658: /* end confdefs.h. */
5659: #include <stdio.h>
5660: #include <sys/types.h>
5661: main()
5662: {
5663: #if 8 == 16
5664: #define _type char
5665: #elif (SIZEOF_SHORT * 8) == 16
5666: #define _type short
5667: #elif (SIZEOF_INT * 8) == 16
5668: #define _type int
5669: #elif (SIZEOF_LONG * 8) == 16
5670: #define _type long
5671: #endif
5672: _type center, right, left;
5673: unsigned int shift, max_shift;
5674: FILE *f=fopen("conftestval", "w");
5675: if (!f) exit(1);
5676: center = 3 << ((sizeof(center) * 4) - 1);
5677: max_shift = 2047;
5678: for (shift = (sizeof(center) * 8);
5679: shift < 2048;
5680: shift <<= 1) {
5681: right = (center >> shift);
5682: left = (center << shift);
5683: if (right != 0
5684: || left != 0) {
5685: right = (center >> (shift | 1));
5686: left = (center << (shift | 1));
5687: max_shift = ((right == (center >> 1)
5688: && left == (center << 1))
5689: ? shift - 1
5690: : (sizeof(center) * 8) - 1);
5691: break;
5692: }
5693: }
5694: fprintf(f, "%d\n", max_shift + 1);
5695: exit(0);
5696: }
5697: _ACEOF
5698: rm -f conftest$ac_exeext
5699: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700: (eval $ac_link) 2>&5
5701: ac_status=$?
5702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5704: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705: (eval $ac_try) 2>&5
5706: ac_status=$?
5707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708: (exit $ac_status); }; }; then
5709: ac_cv_shiftmax_int16_t=`cat conftestval`
5710: else
5711: echo "$as_me: program exited with status $ac_status" >&5
5712: echo "$as_me: failed program was:" >&5
5713: sed 's/^/| /' conftest.$ac_ext >&5
5714:
5715: ( exit $ac_status )
5716: ac_cv_shiftmax_int16_t=16
5717: fi
5718: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5719: fi
5720: fi
5721: ac_cv_shiftmax_int16_t=`expr $ac_cv_shiftmax_int16_t - 1`
5722: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int16_t" >&5
5723: echo "${ECHO_T}$ac_cv_shiftmax_int16_t" >&6
5724:
5725: cat >>confdefs.h <<_ACEOF
5726: #define SHIFTMAX_INT16_T $ac_cv_shiftmax_int16_t
5727: _ACEOF
5728:
5729:
5730: echo "$as_me:$LINENO: checking maximum shift count for int32_t" >&5
5731: echo $ECHO_N "checking maximum shift count for int32_t... $ECHO_C" >&6
5732: if test "${ac_cv_shiftmax_int32_t+set}" = set; then
5733: echo $ECHO_N "(cached) $ECHO_C" >&6
5734: else
5735: if test "$cross_compiling" = yes; then
5736: ac_cv_shiftmax_int32_t=32
5737: else
5738: cat >conftest.$ac_ext <<_ACEOF
5739: #line $LINENO "configure"
5740: /* confdefs.h. */
5741: _ACEOF
5742: cat confdefs.h >>conftest.$ac_ext
5743: cat >>conftest.$ac_ext <<_ACEOF
5744: /* end confdefs.h. */
5745: #include <stdio.h>
5746: #include <sys/types.h>
5747: main()
5748: {
5749: #if 8 == 32
5750: #define _type char
5751: #elif (SIZEOF_SHORT * 8) == 32
5752: #define _type short
5753: #elif (SIZEOF_INT * 8) == 32
5754: #define _type int
5755: #elif (SIZEOF_LONG * 8) == 32
5756: #define _type long
5757: #endif
5758: _type center, right, left;
5759: unsigned int shift, max_shift;
5760: FILE *f=fopen("conftestval", "w");
5761: if (!f) exit(1);
5762: center = 3 << ((sizeof(center) * 4) - 1);
5763: max_shift = 2047;
5764: for (shift = (sizeof(center) * 8);
5765: shift < 2048;
5766: shift <<= 1) {
5767: right = (center >> shift);
5768: left = (center << shift);
5769: if (right != 0
5770: || left != 0) {
5771: right = (center >> (shift | 1));
5772: left = (center << (shift | 1));
5773: max_shift = ((right == (center >> 1)
5774: && left == (center << 1))
5775: ? shift - 1
5776: : (sizeof(center) * 8) - 1);
5777: break;
5778: }
5779: }
5780: fprintf(f, "%d\n", max_shift + 1);
5781: exit(0);
5782: }
5783: _ACEOF
5784: rm -f conftest$ac_exeext
5785: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5786: (eval $ac_link) 2>&5
5787: ac_status=$?
5788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5790: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791: (eval $ac_try) 2>&5
5792: ac_status=$?
5793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794: (exit $ac_status); }; }; then
5795: ac_cv_shiftmax_int32_t=`cat conftestval`
5796: else
5797: echo "$as_me: program exited with status $ac_status" >&5
5798: echo "$as_me: failed program was:" >&5
5799: sed 's/^/| /' conftest.$ac_ext >&5
5800:
5801: ( exit $ac_status )
5802: ac_cv_shiftmax_int32_t=32
5803: fi
5804: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5805: fi
5806: fi
5807: ac_cv_shiftmax_int32_t=`expr $ac_cv_shiftmax_int32_t - 1`
5808: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int32_t" >&5
5809: echo "${ECHO_T}$ac_cv_shiftmax_int32_t" >&6
5810:
5811: cat >>confdefs.h <<_ACEOF
5812: #define SHIFTMAX_INT32_T $ac_cv_shiftmax_int32_t
5813: _ACEOF
5814:
5815:
5816: echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
5817: echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
5818: if test "${ac_cv_sys_sockaddr_sa_len+set}" = set; then
5819: echo $ECHO_N "(cached) $ECHO_C" >&6
5820: else
5821: cat >conftest.$ac_ext <<_ACEOF
5822: #line $LINENO "configure"
5823: /* confdefs.h. */
5824: _ACEOF
5825: cat confdefs.h >>conftest.$ac_ext
5826: cat >>conftest.$ac_ext <<_ACEOF
5827: /* end confdefs.h. */
5828:
5829: #include <sys/types.h>
5830: #include <sys/socket.h>
5831:
5832: int
5833: main ()
5834: {
5835:
5836: int length;
5837: struct sockaddr sock;
5838: length = sock.sa_len;
5839:
5840: ;
5841: return 0;
5842: }
5843: _ACEOF
5844: rm -f conftest.$ac_objext
5845: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846: (eval $ac_compile) 2>&5
5847: ac_status=$?
5848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849: (exit $ac_status); } &&
5850: { ac_try='test -s conftest.$ac_objext'
5851: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852: (eval $ac_try) 2>&5
5853: ac_status=$?
5854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855: (exit $ac_status); }; }; then
5856: ac_cv_sys_sockaddr_sa_len=yes
5857: else
5858: echo "$as_me: failed program was:" >&5
5859: sed 's/^/| /' conftest.$ac_ext >&5
5860:
5861: ac_cv_sys_sockaddr_sa_len=no
5862: fi
5863: rm -f conftest.$ac_objext conftest.$ac_ext
5864: fi
5865: if test $ac_cv_sys_sockaddr_sa_len = yes; then
5866: echo "$as_me:$LINENO: result: yes" >&5
5867: echo "${ECHO_T}yes" >&6
5868:
5869: cat >>confdefs.h <<_ACEOF
5870: #define HAVE_SOCKADDR_SA_LEN
5871: _ACEOF
5872:
5873: else
5874: echo "$as_me:$LINENO: result: no" >&5
5875: echo "${ECHO_T}no" >&6
5876: fi
5877:
5878:
5879: if test $ac_cv_c_compiler_gnu = yes; then
5880: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5881: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5882: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5883: echo $ECHO_N "(cached) $ECHO_C" >&6
5884: else
5885: ac_pattern="Autoconf.*'x'"
5886: cat >conftest.$ac_ext <<_ACEOF
5887: #line $LINENO "configure"
5888: /* confdefs.h. */
5889: _ACEOF
5890: cat confdefs.h >>conftest.$ac_ext
5891: cat >>conftest.$ac_ext <<_ACEOF
5892: /* end confdefs.h. */
5893: #include <sgtty.h>
5894: Autoconf TIOCGETP
5895: _ACEOF
5896: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897: $EGREP "$ac_pattern" >/dev/null 2>&1; then
5898: ac_cv_prog_gcc_traditional=yes
5899: else
5900: ac_cv_prog_gcc_traditional=no
5901: fi
5902: rm -f conftest*
5903:
5904:
5905: if test $ac_cv_prog_gcc_traditional = no; then
5906: cat >conftest.$ac_ext <<_ACEOF
5907: #line $LINENO "configure"
5908: /* confdefs.h. */
5909: _ACEOF
5910: cat confdefs.h >>conftest.$ac_ext
5911: cat >>conftest.$ac_ext <<_ACEOF
5912: /* end confdefs.h. */
5913: #include <termio.h>
5914: Autoconf TCGETA
5915: _ACEOF
5916: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917: $EGREP "$ac_pattern" >/dev/null 2>&1; then
5918: ac_cv_prog_gcc_traditional=yes
5919: fi
5920: rm -f conftest*
5921:
5922: fi
5923: fi
5924: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5925: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5926: if test $ac_cv_prog_gcc_traditional = yes; then
5927: CC="$CC -traditional"
5928: fi
5929: fi
5930:
5931: echo "$as_me:$LINENO: checking for working memcmp" >&5
5932: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5933: if test "${ac_cv_func_memcmp_working+set}" = set; then
5934: echo $ECHO_N "(cached) $ECHO_C" >&6
5935: else
5936: if test "$cross_compiling" = yes; then
5937: ac_cv_func_memcmp_working=no
5938: else
5939: cat >conftest.$ac_ext <<_ACEOF
5940: #line $LINENO "configure"
5941: /* confdefs.h. */
5942: _ACEOF
5943: cat confdefs.h >>conftest.$ac_ext
5944: cat >>conftest.$ac_ext <<_ACEOF
5945: /* end confdefs.h. */
5946:
5947: int
5948: main ()
5949: {
5950:
5951: /* Some versions of memcmp are not 8-bit clean. */
5952: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5953: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5954: exit (1);
5955:
5956: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5957: or more and with at least one buffer not starting on a 4-byte boundary.
5958: William Lewis provided this test program. */
5959: {
5960: char foo[21];
5961: char bar[21];
5962: int i;
5963: for (i = 0; i < 4; i++)
5964: {
5965: char *a = foo + i;
5966: char *b = bar + i;
5967: strcpy (a, "--------01111111");
5968: strcpy (b, "--------10000000");
5969: if (memcmp (a, b, 16) >= 0)
5970: exit (1);
5971: }
5972: exit (0);
5973: }
5974:
5975: ;
5976: return 0;
5977: }
5978: _ACEOF
5979: rm -f conftest$ac_exeext
5980: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5981: (eval $ac_link) 2>&5
5982: ac_status=$?
5983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5985: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986: (eval $ac_try) 2>&5
5987: ac_status=$?
5988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989: (exit $ac_status); }; }; then
5990: ac_cv_func_memcmp_working=yes
5991: else
5992: echo "$as_me: program exited with status $ac_status" >&5
5993: echo "$as_me: failed program was:" >&5
5994: sed 's/^/| /' conftest.$ac_ext >&5
5995:
5996: ( exit $ac_status )
5997: ac_cv_func_memcmp_working=no
5998: fi
5999: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6000: fi
6001: fi
6002: echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6003: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
6004: test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6005:
6006:
6007:
6008: for ac_header in stdlib.h unistd.h
6009: do
6010: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6011: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012: echo "$as_me:$LINENO: checking for $ac_header" >&5
6013: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6014: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015: echo $ECHO_N "(cached) $ECHO_C" >&6
6016: fi
6017: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019: else
6020: # Is the header compilable?
6021: echo "$as_me:$LINENO: checking $ac_header usability" >&5
6022: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6023: cat >conftest.$ac_ext <<_ACEOF
6024: #line $LINENO "configure"
6025: /* confdefs.h. */
6026: _ACEOF
6027: cat confdefs.h >>conftest.$ac_ext
6028: cat >>conftest.$ac_ext <<_ACEOF
6029: /* end confdefs.h. */
6030: $ac_includes_default
6031: #include <$ac_header>
6032: _ACEOF
6033: rm -f conftest.$ac_objext
6034: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035: (eval $ac_compile) 2>&5
6036: ac_status=$?
6037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038: (exit $ac_status); } &&
6039: { ac_try='test -s conftest.$ac_objext'
6040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041: (eval $ac_try) 2>&5
6042: ac_status=$?
6043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044: (exit $ac_status); }; }; then
6045: ac_header_compiler=yes
6046: else
6047: echo "$as_me: failed program was:" >&5
6048: sed 's/^/| /' conftest.$ac_ext >&5
6049:
6050: ac_header_compiler=no
6051: fi
6052: rm -f conftest.$ac_objext conftest.$ac_ext
6053: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6054: echo "${ECHO_T}$ac_header_compiler" >&6
6055:
6056: # Is the header present?
6057: echo "$as_me:$LINENO: checking $ac_header presence" >&5
6058: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6059: cat >conftest.$ac_ext <<_ACEOF
6060: #line $LINENO "configure"
6061: /* confdefs.h. */
6062: _ACEOF
6063: cat confdefs.h >>conftest.$ac_ext
6064: cat >>conftest.$ac_ext <<_ACEOF
6065: /* end confdefs.h. */
6066: #include <$ac_header>
6067: _ACEOF
6068: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6069: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6070: ac_status=$?
6071: grep -v '^ *+' conftest.er1 >conftest.err
6072: rm -f conftest.er1
6073: cat conftest.err >&5
6074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075: (exit $ac_status); } >/dev/null; then
6076: if test -s conftest.err; then
6077: ac_cpp_err=$ac_c_preproc_warn_flag
6078: else
6079: ac_cpp_err=
6080: fi
6081: else
6082: ac_cpp_err=yes
6083: fi
6084: if test -z "$ac_cpp_err"; then
6085: ac_header_preproc=yes
6086: else
6087: echo "$as_me: failed program was:" >&5
6088: sed 's/^/| /' conftest.$ac_ext >&5
6089:
6090: ac_header_preproc=no
6091: fi
6092: rm -f conftest.err conftest.$ac_ext
6093: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6094: echo "${ECHO_T}$ac_header_preproc" >&6
6095:
6096: # So? What about this header?
6097: case $ac_header_compiler:$ac_header_preproc in
6098: yes:no )
6099: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6100: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6101: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6102: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6103: (
6104: cat <<\_ASBOX
6105: ## ------------------------------------ ##
6106: ## Report this to [email protected]. ##
6107: ## ------------------------------------ ##
6108: _ASBOX
6109: ) |
6110: sed "s/^/$as_me: WARNING: /" >&2
6111: ;;
6112: no:yes )
6113: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6114: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6115: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6116: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6117: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6118: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6119: (
6120: cat <<\_ASBOX
6121: ## ------------------------------------ ##
6122: ## Report this to [email protected]. ##
6123: ## ------------------------------------ ##
6124: _ASBOX
6125: ) |
6126: sed "s/^/$as_me: WARNING: /" >&2
6127: ;;
6128: esac
6129: echo "$as_me:$LINENO: checking for $ac_header" >&5
6130: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6131: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6132: echo $ECHO_N "(cached) $ECHO_C" >&6
6133: else
6134: eval "$as_ac_Header=$ac_header_preproc"
6135: fi
6136: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6137: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6138:
6139: fi
6140: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6141: cat >>confdefs.h <<_ACEOF
6142: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6143: _ACEOF
6144:
6145: fi
6146:
6147: done
6148:
6149:
6150: for ac_func in getpagesize
6151: do
6152: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6153: echo "$as_me:$LINENO: checking for $ac_func" >&5
6154: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6155: if eval "test \"\${$as_ac_var+set}\" = set"; then
6156: echo $ECHO_N "(cached) $ECHO_C" >&6
6157: else
6158: cat >conftest.$ac_ext <<_ACEOF
6159: #line $LINENO "configure"
6160: /* confdefs.h. */
6161: _ACEOF
6162: cat confdefs.h >>conftest.$ac_ext
6163: cat >>conftest.$ac_ext <<_ACEOF
6164: /* end confdefs.h. */
6165: /* System header to define __stub macros and hopefully few prototypes,
6166: which can conflict with char $ac_func (); below.
6167: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6168: <limits.h> exists even on freestanding compilers. */
6169: #ifdef __STDC__
6170: # include <limits.h>
6171: #else
6172: # include <assert.h>
6173: #endif
6174: /* Override any gcc2 internal prototype to avoid an error. */
6175: #ifdef __cplusplus
6176: extern "C"
6177: {
6178: #endif
6179: /* We use char because int might match the return type of a gcc2
6180: builtin and then its argument prototype would still apply. */
6181: char $ac_func ();
6182: /* The GNU C library defines this for functions which it implements
6183: to always fail with ENOSYS. Some functions are actually named
6184: something starting with __ and the normal name is an alias. */
6185: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6186: choke me
6187: #else
6188: char (*f) () = $ac_func;
6189: #endif
6190: #ifdef __cplusplus
6191: }
6192: #endif
6193:
6194: int
6195: main ()
6196: {
6197: return f != $ac_func;
6198: ;
6199: return 0;
6200: }
6201: _ACEOF
6202: rm -f conftest.$ac_objext conftest$ac_exeext
6203: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204: (eval $ac_link) 2>&5
6205: ac_status=$?
6206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207: (exit $ac_status); } &&
6208: { ac_try='test -s conftest$ac_exeext'
6209: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210: (eval $ac_try) 2>&5
6211: ac_status=$?
6212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213: (exit $ac_status); }; }; then
6214: eval "$as_ac_var=yes"
6215: else
6216: echo "$as_me: failed program was:" >&5
6217: sed 's/^/| /' conftest.$ac_ext >&5
6218:
6219: eval "$as_ac_var=no"
6220: fi
6221: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6222: fi
6223: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6224: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6225: if test `eval echo '${'$as_ac_var'}'` = yes; then
6226: cat >>confdefs.h <<_ACEOF
6227: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6228: _ACEOF
6229:
6230: fi
6231: done
6232:
6233: echo "$as_me:$LINENO: checking for working mmap" >&5
6234: echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6235: if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6236: echo $ECHO_N "(cached) $ECHO_C" >&6
6237: else
6238: if test "$cross_compiling" = yes; then
6239: ac_cv_func_mmap_fixed_mapped=no
6240: else
6241: cat >conftest.$ac_ext <<_ACEOF
6242: #line $LINENO "configure"
6243: /* confdefs.h. */
6244: _ACEOF
6245: cat confdefs.h >>conftest.$ac_ext
6246: cat >>conftest.$ac_ext <<_ACEOF
6247: /* end confdefs.h. */
6248: $ac_includes_default
6249: /* malloc might have been renamed as rpl_malloc. */
6250: #undef malloc
6251:
6252: /* Thanks to Mike Haertel and Jim Avera for this test.
6253: Here is a matrix of mmap possibilities:
6254: mmap private not fixed
6255: mmap private fixed at somewhere currently unmapped
6256: mmap private fixed at somewhere already mapped
6257: mmap shared not fixed
6258: mmap shared fixed at somewhere currently unmapped
6259: mmap shared fixed at somewhere already mapped
6260: For private mappings, we should verify that changes cannot be read()
6261: back from the file, nor mmap's back from the file at a different
6262: address. (There have been systems where private was not correctly
6263: implemented like the infamous i386 svr4.0, and systems where the
6264: VM page cache was not coherent with the file system buffer cache
6265: like early versions of FreeBSD and possibly contemporary NetBSD.)
6266: For shared mappings, we should conversely verify that changes get
6267: propagated back to all the places they're supposed to be.
6268:
6269: Grep wants private fixed already mapped.
6270: The main things grep needs to know about mmap are:
6271: * does it exist and is it safe to write into the mmap'd area
6272: * how to use it (BSD variants) */
6273:
6274: #include <fcntl.h>
6275: #include <sys/mman.h>
6276:
6277: #if !STDC_HEADERS && !HAVE_STDLIB_H
6278: char *malloc ();
6279: #endif
6280:
6281: /* This mess was copied from the GNU getpagesize.h. */
6282: #if !HAVE_GETPAGESIZE
6283: /* Assume that all systems that can run configure have sys/param.h. */
6284: # if !HAVE_SYS_PARAM_H
6285: # define HAVE_SYS_PARAM_H 1
6286: # endif
6287:
6288: # ifdef _SC_PAGESIZE
6289: # define getpagesize() sysconf(_SC_PAGESIZE)
6290: # else /* no _SC_PAGESIZE */
6291: # if HAVE_SYS_PARAM_H
6292: # include <sys/param.h>
6293: # ifdef EXEC_PAGESIZE
6294: # define getpagesize() EXEC_PAGESIZE
6295: # else /* no EXEC_PAGESIZE */
6296: # ifdef NBPG
6297: # define getpagesize() NBPG * CLSIZE
6298: # ifndef CLSIZE
6299: # define CLSIZE 1
6300: # endif /* no CLSIZE */
6301: # else /* no NBPG */
6302: # ifdef NBPC
6303: # define getpagesize() NBPC
6304: # else /* no NBPC */
6305: # ifdef PAGESIZE
6306: # define getpagesize() PAGESIZE
6307: # endif /* PAGESIZE */
6308: # endif /* no NBPC */
6309: # endif /* no NBPG */
6310: # endif /* no EXEC_PAGESIZE */
6311: # else /* no HAVE_SYS_PARAM_H */
6312: # define getpagesize() 8192 /* punt totally */
6313: # endif /* no HAVE_SYS_PARAM_H */
6314: # endif /* no _SC_PAGESIZE */
6315:
6316: #endif /* no HAVE_GETPAGESIZE */
6317:
6318: int
6319: main ()
6320: {
6321: char *data, *data2, *data3;
6322: int i, pagesize;
6323: int fd;
6324:
6325: pagesize = getpagesize ();
6326:
6327: /* First, make a file with some known garbage in it. */
6328: data = (char *) malloc (pagesize);
6329: if (!data)
6330: exit (1);
6331: for (i = 0; i < pagesize; ++i)
6332: *(data + i) = rand ();
6333: umask (0);
6334: fd = creat ("conftest.mmap", 0600);
6335: if (fd < 0)
6336: exit (1);
6337: if (write (fd, data, pagesize) != pagesize)
6338: exit (1);
6339: close (fd);
6340:
6341: /* Next, try to mmap the file at a fixed address which already has
6342: something else allocated at it. If we can, also make sure that
6343: we see the same garbage. */
6344: fd = open ("conftest.mmap", O_RDWR);
6345: if (fd < 0)
6346: exit (1);
6347: data2 = (char *) malloc (2 * pagesize);
6348: if (!data2)
6349: exit (1);
6350: data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6351: if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6352: MAP_PRIVATE | MAP_FIXED, fd, 0L))
6353: exit (1);
6354: for (i = 0; i < pagesize; ++i)
6355: if (*(data + i) != *(data2 + i))
6356: exit (1);
6357:
6358: /* Finally, make sure that changes to the mapped area do not
6359: percolate back to the file as seen by read(). (This is a bug on
6360: some variants of i386 svr4.0.) */
6361: for (i = 0; i < pagesize; ++i)
6362: *(data2 + i) = *(data2 + i) + 1;
6363: data3 = (char *) malloc (pagesize);
6364: if (!data3)
6365: exit (1);
6366: if (read (fd, data3, pagesize) != pagesize)
6367: exit (1);
6368: for (i = 0; i < pagesize; ++i)
6369: if (*(data + i) != *(data3 + i))
6370: exit (1);
6371: close (fd);
6372: exit (0);
6373: }
6374: _ACEOF
6375: rm -f conftest$ac_exeext
6376: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6377: (eval $ac_link) 2>&5
6378: ac_status=$?
6379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6381: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382: (eval $ac_try) 2>&5
6383: ac_status=$?
6384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385: (exit $ac_status); }; }; then
6386: ac_cv_func_mmap_fixed_mapped=yes
6387: else
6388: echo "$as_me: program exited with status $ac_status" >&5
6389: echo "$as_me: failed program was:" >&5
6390: sed 's/^/| /' conftest.$ac_ext >&5
6391:
6392: ( exit $ac_status )
6393: ac_cv_func_mmap_fixed_mapped=no
6394: fi
6395: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6396: fi
6397: fi
6398: echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6399: echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6400: if test $ac_cv_func_mmap_fixed_mapped = yes; then
6401:
6402: cat >>confdefs.h <<\_ACEOF
6403: #define HAVE_MMAP 1
6404: _ACEOF
6405:
6406: fi
6407: rm -f conftest.mmap
6408:
6409:
6410: for ac_prog in perl4.036 perl4 perl perl5
6411: do
6412: # Extract the first word of "$ac_prog", so it can be a program name with args.
6413: set dummy $ac_prog; ac_word=$2
6414: echo "$as_me:$LINENO: checking for $ac_word" >&5
6415: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6416: if test "${ac_cv_path_PERL+set}" = set; then
6417: echo $ECHO_N "(cached) $ECHO_C" >&6
6418: else
6419: case $PERL in
6420: [\\/]* | ?:[\\/]*)
6421: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6422: ;;
6423: *)
6424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425: for as_dir in $PATH
6426: do
6427: IFS=$as_save_IFS
6428: test -z "$as_dir" && as_dir=.
6429: for ac_exec_ext in '' $ac_executable_extensions; do
6430: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6432: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433: break 2
6434: fi
6435: done
6436: done
6437:
6438: ;;
6439: esac
6440: fi
6441: PERL=$ac_cv_path_PERL
6442:
6443: if test -n "$PERL"; then
6444: echo "$as_me:$LINENO: result: $PERL" >&5
6445: echo "${ECHO_T}$PERL" >&6
6446: else
6447: echo "$as_me:$LINENO: result: no" >&5
6448: echo "${ECHO_T}no" >&6
6449: fi
6450:
1.1.1.2 ! root 6451: test -n "$PERL" && break
! 6452: done
! 6453: test -n "$PERL" || PERL="no"
! 6454:
! 6455:
! 6456:
! 6457: TME_HOSTS="posix"
! 6458:
! 6459: echo "$as_me:$LINENO: checking for AF_LINK support" >&5
! 6460: echo $ECHO_N "checking for AF_LINK support... $ECHO_C" >&6
! 6461: cat >conftest.$ac_ext <<_ACEOF
! 6462: #line $LINENO "configure"
! 6463: /* confdefs.h. */
! 6464: _ACEOF
! 6465: cat confdefs.h >>conftest.$ac_ext
! 6466: cat >>conftest.$ac_ext <<_ACEOF
! 6467: /* end confdefs.h. */
! 6468:
! 6469: #include <sys/socket.h>
! 6470: #ifdef AF_LINK
! 6471: _tme_has_af_link
! 6472: #endif
! 6473:
! 6474: _ACEOF
! 6475: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6476: $EGREP "_tme_has_af_link" >/dev/null 2>&1; then
! 6477:
! 6478: echo "$as_me:$LINENO: result: yes" >&5
! 6479: echo "${ECHO_T}yes" >&6
! 6480:
! 6481: cat >>confdefs.h <<\_ACEOF
! 6482: #define HAVE_AF_LINK
! 6483: _ACEOF
! 6484:
! 6485:
! 6486: else
! 6487:
! 6488: echo "$as_me:$LINENO: result: no" >&5
! 6489: echo "${ECHO_T}no" >&6
! 6490:
! 6491: fi
! 6492: rm -f conftest*
! 6493:
! 6494:
! 6495: tme_raw_type=
! 6496: if test "${ac_cv_header_net_bpf_h+set}" = set; then
! 6497: echo "$as_me:$LINENO: checking for net/bpf.h" >&5
! 6498: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
! 6499: if test "${ac_cv_header_net_bpf_h+set}" = set; then
! 6500: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6501: fi
! 6502: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
! 6503: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
! 6504: else
! 6505: # Is the header compilable?
! 6506: echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
! 6507: echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6
! 6508: cat >conftest.$ac_ext <<_ACEOF
! 6509: #line $LINENO "configure"
! 6510: /* confdefs.h. */
! 6511: _ACEOF
! 6512: cat confdefs.h >>conftest.$ac_ext
! 6513: cat >>conftest.$ac_ext <<_ACEOF
! 6514: /* end confdefs.h. */
! 6515: $ac_includes_default
! 6516: #include <net/bpf.h>
! 6517: _ACEOF
! 6518: rm -f conftest.$ac_objext
! 6519: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6520: (eval $ac_compile) 2>&5
! 6521: ac_status=$?
! 6522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6523: (exit $ac_status); } &&
! 6524: { ac_try='test -s conftest.$ac_objext'
! 6525: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6526: (eval $ac_try) 2>&5
! 6527: ac_status=$?
! 6528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6529: (exit $ac_status); }; }; then
! 6530: ac_header_compiler=yes
! 6531: else
! 6532: echo "$as_me: failed program was:" >&5
! 6533: sed 's/^/| /' conftest.$ac_ext >&5
! 6534:
! 6535: ac_header_compiler=no
! 6536: fi
! 6537: rm -f conftest.$ac_objext conftest.$ac_ext
! 6538: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6539: echo "${ECHO_T}$ac_header_compiler" >&6
! 6540:
! 6541: # Is the header present?
! 6542: echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
! 6543: echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6
! 6544: cat >conftest.$ac_ext <<_ACEOF
! 6545: #line $LINENO "configure"
! 6546: /* confdefs.h. */
! 6547: _ACEOF
! 6548: cat confdefs.h >>conftest.$ac_ext
! 6549: cat >>conftest.$ac_ext <<_ACEOF
! 6550: /* end confdefs.h. */
! 6551: #include <net/bpf.h>
! 6552: _ACEOF
! 6553: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6554: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6555: ac_status=$?
! 6556: grep -v '^ *+' conftest.er1 >conftest.err
! 6557: rm -f conftest.er1
! 6558: cat conftest.err >&5
! 6559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6560: (exit $ac_status); } >/dev/null; then
! 6561: if test -s conftest.err; then
! 6562: ac_cpp_err=$ac_c_preproc_warn_flag
! 6563: else
! 6564: ac_cpp_err=
! 6565: fi
! 6566: else
! 6567: ac_cpp_err=yes
! 6568: fi
! 6569: if test -z "$ac_cpp_err"; then
! 6570: ac_header_preproc=yes
! 6571: else
! 6572: echo "$as_me: failed program was:" >&5
! 6573: sed 's/^/| /' conftest.$ac_ext >&5
! 6574:
! 6575: ac_header_preproc=no
! 6576: fi
! 6577: rm -f conftest.err conftest.$ac_ext
! 6578: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6579: echo "${ECHO_T}$ac_header_preproc" >&6
! 6580:
! 6581: # So? What about this header?
! 6582: case $ac_header_compiler:$ac_header_preproc in
! 6583: yes:no )
! 6584: { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 6585: echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 6586: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
! 6587: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
! 6588: (
! 6589: cat <<\_ASBOX
! 6590: ## ------------------------------------ ##
! 6591: ## Report this to [email protected]. ##
! 6592: ## ------------------------------------ ##
! 6593: _ASBOX
! 6594: ) |
! 6595: sed "s/^/$as_me: WARNING: /" >&2
! 6596: ;;
! 6597: no:yes )
! 6598: { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
! 6599: echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
! 6600: { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
! 6601: echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
! 6602: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
! 6603: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
! 6604: (
! 6605: cat <<\_ASBOX
! 6606: ## ------------------------------------ ##
! 6607: ## Report this to [email protected]. ##
! 6608: ## ------------------------------------ ##
! 6609: _ASBOX
! 6610: ) |
! 6611: sed "s/^/$as_me: WARNING: /" >&2
! 6612: ;;
! 6613: esac
! 6614: echo "$as_me:$LINENO: checking for net/bpf.h" >&5
! 6615: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
! 6616: if test "${ac_cv_header_net_bpf_h+set}" = set; then
! 6617: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6618: else
! 6619: ac_cv_header_net_bpf_h=$ac_header_preproc
! 6620: fi
! 6621: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
! 6622: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
! 6623:
! 6624: fi
! 6625: if test $ac_cv_header_net_bpf_h = yes; then
! 6626: cat >conftest.$ac_ext <<_ACEOF
! 6627: #line $LINENO "configure"
! 6628: /* confdefs.h. */
! 6629: _ACEOF
! 6630: cat confdefs.h >>conftest.$ac_ext
! 6631: cat >>conftest.$ac_ext <<_ACEOF
! 6632: /* end confdefs.h. */
! 6633: #include <net/bpf.h>
! 6634: #ifdef BIOCSHDRCMPLT
! 6635: found_BIOCSHDRCMPLT
! 6636: #endif
! 6637:
! 6638: _ACEOF
! 6639: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6640: $EGREP "found_BIOCSHDRCMPLT" >/dev/null 2>&1; then
! 6641: tme_raw_type=bpf
! 6642: fi
! 6643: rm -f conftest*
! 6644:
! 6645: fi
! 6646:
! 6647:
! 6648: echo "$as_me:$LINENO: checking for raw Ethernet access method" >&5
! 6649: echo $ECHO_N "checking for raw Ethernet access method... $ECHO_C" >&6
! 6650: case "x$tme_raw_type" in
! 6651: xbpf) TME_HOSTS="${TME_HOSTS} bsd" ;;
! 6652: x) tme_raw_type=none ;;
! 6653: esac
! 6654: echo "$as_me:$LINENO: result: $tme_raw_type" >&5
! 6655: echo "${ECHO_T}$tme_raw_type" >&6
! 6656:
! 6657: echo "$as_me:$LINENO: checking for X" >&5
! 6658: echo $ECHO_N "checking for X... $ECHO_C" >&6
! 6659:
! 6660:
! 6661: # Check whether --with-x or --without-x was given.
! 6662: if test "${with_x+set}" = set; then
! 6663: withval="$with_x"
! 6664:
! 6665: fi;
! 6666: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
! 6667: if test "x$with_x" = xno; then
! 6668: # The user explicitly disabled X.
! 6669: have_x=disabled
! 6670: else
! 6671: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
! 6672: # Both variables are already set.
! 6673: have_x=yes
! 6674: else
! 6675: if test "${ac_cv_have_x+set}" = set; then
! 6676: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6677: else
! 6678: # One or both of the vars are not set, and there is no cached value.
! 6679: ac_x_includes=no ac_x_libraries=no
! 6680: rm -fr conftest.dir
! 6681: if mkdir conftest.dir; then
! 6682: cd conftest.dir
! 6683: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
! 6684: cat >Imakefile <<'_ACEOF'
! 6685: acfindx:
! 6686: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
! 6687: _ACEOF
! 6688: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
! 6689: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
! 6690: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
! 6691: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
! 6692: for ac_extension in a so sl; do
! 6693: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
! 6694: test -f $ac_im_libdir/libX11.$ac_extension; then
! 6695: ac_im_usrlibdir=$ac_im_libdir; break
! 6696: fi
! 6697: done
! 6698: # Screen out bogus values from the imake configuration. They are
! 6699: # bogus both because they are the default anyway, and because
! 6700: # using them would break gcc on systems where it needs fixed includes.
! 6701: case $ac_im_incroot in
! 6702: /usr/include) ;;
! 6703: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
! 6704: esac
! 6705: case $ac_im_usrlibdir in
! 6706: /usr/lib | /lib) ;;
! 6707: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
! 6708: esac
! 6709: fi
! 6710: cd ..
! 6711: rm -fr conftest.dir
! 6712: fi
! 6713:
! 6714: # Standard set of common directories for X headers.
! 6715: # Check X11 before X11Rn because it is often a symlink to the current release.
! 6716: ac_x_header_dirs='
! 6717: /usr/X11/include
! 6718: /usr/X11R6/include
! 6719: /usr/X11R5/include
! 6720: /usr/X11R4/include
! 6721:
! 6722: /usr/include/X11
! 6723: /usr/include/X11R6
! 6724: /usr/include/X11R5
! 6725: /usr/include/X11R4
! 6726:
! 6727: /usr/local/X11/include
! 6728: /usr/local/X11R6/include
! 6729: /usr/local/X11R5/include
! 6730: /usr/local/X11R4/include
! 6731:
! 6732: /usr/local/include/X11
! 6733: /usr/local/include/X11R6
! 6734: /usr/local/include/X11R5
! 6735: /usr/local/include/X11R4
! 6736:
! 6737: /usr/X386/include
! 6738: /usr/x386/include
! 6739: /usr/XFree86/include/X11
! 6740:
! 6741: /usr/include
! 6742: /usr/local/include
! 6743: /usr/unsupported/include
! 6744: /usr/athena/include
! 6745: /usr/local/x11r5/include
! 6746: /usr/lpp/Xamples/include
! 6747:
! 6748: /usr/openwin/include
! 6749: /usr/openwin/share/include'
! 6750:
! 6751: if test "$ac_x_includes" = no; then
! 6752: # Guess where to find include files, by looking for Intrinsic.h.
! 6753: # First, try using that file with no special directory specified.
! 6754: cat >conftest.$ac_ext <<_ACEOF
! 6755: #line $LINENO "configure"
! 6756: /* confdefs.h. */
! 6757: _ACEOF
! 6758: cat confdefs.h >>conftest.$ac_ext
! 6759: cat >>conftest.$ac_ext <<_ACEOF
! 6760: /* end confdefs.h. */
! 6761: #include <X11/Intrinsic.h>
! 6762: _ACEOF
! 6763: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6764: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6765: ac_status=$?
! 6766: grep -v '^ *+' conftest.er1 >conftest.err
! 6767: rm -f conftest.er1
! 6768: cat conftest.err >&5
! 6769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6770: (exit $ac_status); } >/dev/null; then
! 6771: if test -s conftest.err; then
! 6772: ac_cpp_err=$ac_c_preproc_warn_flag
! 6773: else
! 6774: ac_cpp_err=
! 6775: fi
! 6776: else
! 6777: ac_cpp_err=yes
! 6778: fi
! 6779: if test -z "$ac_cpp_err"; then
! 6780: # We can compile using X headers with no special include directory.
! 6781: ac_x_includes=
! 6782: else
! 6783: echo "$as_me: failed program was:" >&5
! 6784: sed 's/^/| /' conftest.$ac_ext >&5
! 6785:
! 6786: for ac_dir in $ac_x_header_dirs; do
! 6787: if test -r "$ac_dir/X11/Intrinsic.h"; then
! 6788: ac_x_includes=$ac_dir
! 6789: break
! 6790: fi
! 6791: done
! 6792: fi
! 6793: rm -f conftest.err conftest.$ac_ext
! 6794: fi # $ac_x_includes = no
! 6795:
! 6796: if test "$ac_x_libraries" = no; then
! 6797: # Check for the libraries.
! 6798: # See if we find them without any special options.
! 6799: # Don't add to $LIBS permanently.
! 6800: ac_save_LIBS=$LIBS
! 6801: LIBS="-lXt $LIBS"
! 6802: cat >conftest.$ac_ext <<_ACEOF
! 6803: #line $LINENO "configure"
! 6804: /* confdefs.h. */
! 6805: _ACEOF
! 6806: cat confdefs.h >>conftest.$ac_ext
! 6807: cat >>conftest.$ac_ext <<_ACEOF
! 6808: /* end confdefs.h. */
! 6809: #include <X11/Intrinsic.h>
! 6810: int
! 6811: main ()
! 6812: {
! 6813: XtMalloc (0)
! 6814: ;
! 6815: return 0;
! 6816: }
! 6817: _ACEOF
! 6818: rm -f conftest.$ac_objext conftest$ac_exeext
! 6819: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6820: (eval $ac_link) 2>&5
! 6821: ac_status=$?
! 6822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6823: (exit $ac_status); } &&
! 6824: { ac_try='test -s conftest$ac_exeext'
! 6825: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6826: (eval $ac_try) 2>&5
! 6827: ac_status=$?
! 6828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6829: (exit $ac_status); }; }; then
! 6830: LIBS=$ac_save_LIBS
! 6831: # We can link X programs with no special library path.
! 6832: ac_x_libraries=
! 6833: else
! 6834: echo "$as_me: failed program was:" >&5
! 6835: sed 's/^/| /' conftest.$ac_ext >&5
! 6836:
! 6837: LIBS=$ac_save_LIBS
! 6838: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
! 6839: do
! 6840: # Don't even attempt the hair of trying to link an X program!
! 6841: for ac_extension in a so sl; do
! 6842: if test -r $ac_dir/libXt.$ac_extension; then
! 6843: ac_x_libraries=$ac_dir
! 6844: break 2
! 6845: fi
! 6846: done
! 6847: done
! 6848: fi
! 6849: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6850: fi # $ac_x_libraries = no
! 6851:
! 6852: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
! 6853: # Didn't find X anywhere. Cache the known absence of X.
! 6854: ac_cv_have_x="have_x=no"
! 6855: else
! 6856: # Record where we found X for the cache.
! 6857: ac_cv_have_x="have_x=yes \
! 6858: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
! 6859: fi
! 6860: fi
! 6861:
! 6862: fi
! 6863: eval "$ac_cv_have_x"
! 6864: fi # $with_x != no
! 6865:
! 6866: if test "$have_x" != yes; then
! 6867: echo "$as_me:$LINENO: result: $have_x" >&5
! 6868: echo "${ECHO_T}$have_x" >&6
! 6869: no_x=yes
! 6870: else
! 6871: # If each of the values was on the command line, it overrides each guess.
! 6872: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
! 6873: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
! 6874: # Update the cache value to reflect the command line values.
! 6875: ac_cv_have_x="have_x=yes \
! 6876: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
! 6877: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
! 6878: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
! 6879: fi
! 6880:
! 6881: if test "$no_x" = yes; then
! 6882: # Not all programs may use this symbol, but it does not hurt to define it.
! 6883:
! 6884: cat >>confdefs.h <<\_ACEOF
! 6885: #define X_DISPLAY_MISSING 1
! 6886: _ACEOF
! 6887:
! 6888: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
! 6889: else
! 6890: if test -n "$x_includes"; then
! 6891: X_CFLAGS="$X_CFLAGS -I$x_includes"
! 6892: fi
! 6893:
! 6894: # It would also be nice to do this for all -L options, not just this one.
! 6895: if test -n "$x_libraries"; then
! 6896: X_LIBS="$X_LIBS -L$x_libraries"
! 6897: # For Solaris; some versions of Sun CC require a space after -R and
! 6898: # others require no space. Words are not sufficient . . . .
! 6899: case `(uname -sr) 2>/dev/null` in
! 6900: "SunOS 5"*)
! 6901: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
! 6902: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
! 6903: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
! 6904: cat >conftest.$ac_ext <<_ACEOF
! 6905: #line $LINENO "configure"
! 6906: /* confdefs.h. */
! 6907: _ACEOF
! 6908: cat confdefs.h >>conftest.$ac_ext
! 6909: cat >>conftest.$ac_ext <<_ACEOF
! 6910: /* end confdefs.h. */
! 6911:
! 6912: int
! 6913: main ()
! 6914: {
! 6915:
! 6916: ;
! 6917: return 0;
! 6918: }
! 6919: _ACEOF
! 6920: rm -f conftest.$ac_objext conftest$ac_exeext
! 6921: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6922: (eval $ac_link) 2>&5
! 6923: ac_status=$?
! 6924: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6925: (exit $ac_status); } &&
! 6926: { ac_try='test -s conftest$ac_exeext'
! 6927: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6928: (eval $ac_try) 2>&5
! 6929: ac_status=$?
! 6930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6931: (exit $ac_status); }; }; then
! 6932: ac_R_nospace=yes
! 6933: else
! 6934: echo "$as_me: failed program was:" >&5
! 6935: sed 's/^/| /' conftest.$ac_ext >&5
! 6936:
! 6937: ac_R_nospace=no
! 6938: fi
! 6939: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6940: if test $ac_R_nospace = yes; then
! 6941: echo "$as_me:$LINENO: result: no" >&5
! 6942: echo "${ECHO_T}no" >&6
! 6943: X_LIBS="$X_LIBS -R$x_libraries"
! 6944: else
! 6945: LIBS="$ac_xsave_LIBS -R $x_libraries"
! 6946: cat >conftest.$ac_ext <<_ACEOF
! 6947: #line $LINENO "configure"
! 6948: /* confdefs.h. */
! 6949: _ACEOF
! 6950: cat confdefs.h >>conftest.$ac_ext
! 6951: cat >>conftest.$ac_ext <<_ACEOF
! 6952: /* end confdefs.h. */
! 6953:
! 6954: int
! 6955: main ()
! 6956: {
! 6957:
! 6958: ;
! 6959: return 0;
! 6960: }
! 6961: _ACEOF
! 6962: rm -f conftest.$ac_objext conftest$ac_exeext
! 6963: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6964: (eval $ac_link) 2>&5
! 6965: ac_status=$?
! 6966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6967: (exit $ac_status); } &&
! 6968: { ac_try='test -s conftest$ac_exeext'
! 6969: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6970: (eval $ac_try) 2>&5
! 6971: ac_status=$?
! 6972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6973: (exit $ac_status); }; }; then
! 6974: ac_R_space=yes
! 6975: else
! 6976: echo "$as_me: failed program was:" >&5
! 6977: sed 's/^/| /' conftest.$ac_ext >&5
! 6978:
! 6979: ac_R_space=no
! 6980: fi
! 6981: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 6982: if test $ac_R_space = yes; then
! 6983: echo "$as_me:$LINENO: result: yes" >&5
! 6984: echo "${ECHO_T}yes" >&6
! 6985: X_LIBS="$X_LIBS -R $x_libraries"
! 6986: else
! 6987: echo "$as_me:$LINENO: result: neither works" >&5
! 6988: echo "${ECHO_T}neither works" >&6
! 6989: fi
! 6990: fi
! 6991: LIBS=$ac_xsave_LIBS
! 6992: esac
! 6993: fi
! 6994:
! 6995: # Check for system-dependent libraries X programs must link with.
! 6996: # Do this before checking for the system-independent R6 libraries
! 6997: # (-lICE), since we may need -lsocket or whatever for X linking.
! 6998:
! 6999: if test "$ISC" = yes; then
! 7000: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
! 7001: else
! 7002: # Martyn Johnson says this is needed for Ultrix, if the X
! 7003: # libraries were built with DECnet support. And Karl Berry says
! 7004: # the Alpha needs dnet_stub (dnet does not exist).
! 7005: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
! 7006: cat >conftest.$ac_ext <<_ACEOF
! 7007: #line $LINENO "configure"
! 7008: /* confdefs.h. */
! 7009: _ACEOF
! 7010: cat confdefs.h >>conftest.$ac_ext
! 7011: cat >>conftest.$ac_ext <<_ACEOF
! 7012: /* end confdefs.h. */
! 7013:
! 7014: /* Override any gcc2 internal prototype to avoid an error. */
! 7015: #ifdef __cplusplus
! 7016: extern "C"
! 7017: #endif
! 7018: /* We use char because int might match the return type of a gcc2
! 7019: builtin and then its argument prototype would still apply. */
! 7020: char XOpenDisplay ();
! 7021: int
! 7022: main ()
! 7023: {
! 7024: XOpenDisplay ();
! 7025: ;
! 7026: return 0;
! 7027: }
! 7028: _ACEOF
! 7029: rm -f conftest.$ac_objext conftest$ac_exeext
! 7030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7031: (eval $ac_link) 2>&5
! 7032: ac_status=$?
! 7033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7034: (exit $ac_status); } &&
! 7035: { ac_try='test -s conftest$ac_exeext'
! 7036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7037: (eval $ac_try) 2>&5
! 7038: ac_status=$?
! 7039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7040: (exit $ac_status); }; }; then
! 7041: :
! 7042: else
! 7043: echo "$as_me: failed program was:" >&5
! 7044: sed 's/^/| /' conftest.$ac_ext >&5
! 7045:
! 7046: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
! 7047: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
! 7048: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
! 7049: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7050: else
! 7051: ac_check_lib_save_LIBS=$LIBS
! 7052: LIBS="-ldnet $LIBS"
! 7053: cat >conftest.$ac_ext <<_ACEOF
! 7054: #line $LINENO "configure"
! 7055: /* confdefs.h. */
! 7056: _ACEOF
! 7057: cat confdefs.h >>conftest.$ac_ext
! 7058: cat >>conftest.$ac_ext <<_ACEOF
! 7059: /* end confdefs.h. */
! 7060:
! 7061: /* Override any gcc2 internal prototype to avoid an error. */
! 7062: #ifdef __cplusplus
! 7063: extern "C"
! 7064: #endif
! 7065: /* We use char because int might match the return type of a gcc2
! 7066: builtin and then its argument prototype would still apply. */
! 7067: char dnet_ntoa ();
! 7068: int
! 7069: main ()
! 7070: {
! 7071: dnet_ntoa ();
! 7072: ;
! 7073: return 0;
! 7074: }
! 7075: _ACEOF
! 7076: rm -f conftest.$ac_objext conftest$ac_exeext
! 7077: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7078: (eval $ac_link) 2>&5
! 7079: ac_status=$?
! 7080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7081: (exit $ac_status); } &&
! 7082: { ac_try='test -s conftest$ac_exeext'
! 7083: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7084: (eval $ac_try) 2>&5
! 7085: ac_status=$?
! 7086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7087: (exit $ac_status); }; }; then
! 7088: ac_cv_lib_dnet_dnet_ntoa=yes
! 7089: else
! 7090: echo "$as_me: failed program was:" >&5
! 7091: sed 's/^/| /' conftest.$ac_ext >&5
! 7092:
! 7093: ac_cv_lib_dnet_dnet_ntoa=no
! 7094: fi
! 7095: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7096: LIBS=$ac_check_lib_save_LIBS
! 7097: fi
! 7098: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
! 7099: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
! 7100: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
! 7101: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
! 7102: fi
! 7103:
! 7104: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
! 7105: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
! 7106: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
! 7107: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
! 7108: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7109: else
! 7110: ac_check_lib_save_LIBS=$LIBS
! 7111: LIBS="-ldnet_stub $LIBS"
! 7112: cat >conftest.$ac_ext <<_ACEOF
! 7113: #line $LINENO "configure"
! 7114: /* confdefs.h. */
! 7115: _ACEOF
! 7116: cat confdefs.h >>conftest.$ac_ext
! 7117: cat >>conftest.$ac_ext <<_ACEOF
! 7118: /* end confdefs.h. */
! 7119:
! 7120: /* Override any gcc2 internal prototype to avoid an error. */
! 7121: #ifdef __cplusplus
! 7122: extern "C"
! 7123: #endif
! 7124: /* We use char because int might match the return type of a gcc2
! 7125: builtin and then its argument prototype would still apply. */
! 7126: char dnet_ntoa ();
! 7127: int
! 7128: main ()
! 7129: {
! 7130: dnet_ntoa ();
! 7131: ;
! 7132: return 0;
! 7133: }
! 7134: _ACEOF
! 7135: rm -f conftest.$ac_objext conftest$ac_exeext
! 7136: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7137: (eval $ac_link) 2>&5
! 7138: ac_status=$?
! 7139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7140: (exit $ac_status); } &&
! 7141: { ac_try='test -s conftest$ac_exeext'
! 7142: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7143: (eval $ac_try) 2>&5
! 7144: ac_status=$?
! 7145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7146: (exit $ac_status); }; }; then
! 7147: ac_cv_lib_dnet_stub_dnet_ntoa=yes
! 7148: else
! 7149: echo "$as_me: failed program was:" >&5
! 7150: sed 's/^/| /' conftest.$ac_ext >&5
! 7151:
! 7152: ac_cv_lib_dnet_stub_dnet_ntoa=no
! 7153: fi
! 7154: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7155: LIBS=$ac_check_lib_save_LIBS
! 7156: fi
! 7157: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
! 7158: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
! 7159: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
! 7160: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
! 7161: fi
! 7162:
! 7163: fi
! 7164: fi
! 7165: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7166: LIBS="$ac_xsave_LIBS"
! 7167:
! 7168: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
! 7169: # to get the SysV transport functions.
! 7170: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
! 7171: # needs -lnsl.
! 7172: # The nsl library prevents programs from opening the X display
! 7173: # on Irix 5.2, according to T.E. Dickey.
! 7174: # The functions gethostbyname, getservbyname, and inet_addr are
! 7175: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
! 7176: echo "$as_me:$LINENO: checking for gethostbyname" >&5
! 7177: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
! 7178: if test "${ac_cv_func_gethostbyname+set}" = set; then
! 7179: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7180: else
! 7181: cat >conftest.$ac_ext <<_ACEOF
! 7182: #line $LINENO "configure"
! 7183: /* confdefs.h. */
! 7184: _ACEOF
! 7185: cat confdefs.h >>conftest.$ac_ext
! 7186: cat >>conftest.$ac_ext <<_ACEOF
! 7187: /* end confdefs.h. */
! 7188: /* System header to define __stub macros and hopefully few prototypes,
! 7189: which can conflict with char gethostbyname (); below.
! 7190: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7191: <limits.h> exists even on freestanding compilers. */
! 7192: #ifdef __STDC__
! 7193: # include <limits.h>
! 7194: #else
! 7195: # include <assert.h>
! 7196: #endif
! 7197: /* Override any gcc2 internal prototype to avoid an error. */
! 7198: #ifdef __cplusplus
! 7199: extern "C"
! 7200: {
! 7201: #endif
! 7202: /* We use char because int might match the return type of a gcc2
! 7203: builtin and then its argument prototype would still apply. */
! 7204: char gethostbyname ();
! 7205: /* The GNU C library defines this for functions which it implements
! 7206: to always fail with ENOSYS. Some functions are actually named
! 7207: something starting with __ and the normal name is an alias. */
! 7208: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
! 7209: choke me
! 7210: #else
! 7211: char (*f) () = gethostbyname;
! 7212: #endif
! 7213: #ifdef __cplusplus
! 7214: }
! 7215: #endif
! 7216:
! 7217: int
! 7218: main ()
! 7219: {
! 7220: return f != gethostbyname;
! 7221: ;
! 7222: return 0;
! 7223: }
! 7224: _ACEOF
! 7225: rm -f conftest.$ac_objext conftest$ac_exeext
! 7226: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7227: (eval $ac_link) 2>&5
! 7228: ac_status=$?
! 7229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7230: (exit $ac_status); } &&
! 7231: { ac_try='test -s conftest$ac_exeext'
! 7232: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7233: (eval $ac_try) 2>&5
! 7234: ac_status=$?
! 7235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7236: (exit $ac_status); }; }; then
! 7237: ac_cv_func_gethostbyname=yes
! 7238: else
! 7239: echo "$as_me: failed program was:" >&5
! 7240: sed 's/^/| /' conftest.$ac_ext >&5
! 7241:
! 7242: ac_cv_func_gethostbyname=no
! 7243: fi
! 7244: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7245: fi
! 7246: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
! 7247: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
! 7248:
! 7249: if test $ac_cv_func_gethostbyname = no; then
! 7250: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
! 7251: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
! 7252: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
! 7253: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7254: else
! 7255: ac_check_lib_save_LIBS=$LIBS
! 7256: LIBS="-lnsl $LIBS"
! 7257: cat >conftest.$ac_ext <<_ACEOF
! 7258: #line $LINENO "configure"
! 7259: /* confdefs.h. */
! 7260: _ACEOF
! 7261: cat confdefs.h >>conftest.$ac_ext
! 7262: cat >>conftest.$ac_ext <<_ACEOF
! 7263: /* end confdefs.h. */
! 7264:
! 7265: /* Override any gcc2 internal prototype to avoid an error. */
! 7266: #ifdef __cplusplus
! 7267: extern "C"
! 7268: #endif
! 7269: /* We use char because int might match the return type of a gcc2
! 7270: builtin and then its argument prototype would still apply. */
! 7271: char gethostbyname ();
! 7272: int
! 7273: main ()
! 7274: {
! 7275: gethostbyname ();
! 7276: ;
! 7277: return 0;
! 7278: }
! 7279: _ACEOF
! 7280: rm -f conftest.$ac_objext conftest$ac_exeext
! 7281: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7282: (eval $ac_link) 2>&5
! 7283: ac_status=$?
! 7284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7285: (exit $ac_status); } &&
! 7286: { ac_try='test -s conftest$ac_exeext'
! 7287: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7288: (eval $ac_try) 2>&5
! 7289: ac_status=$?
! 7290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7291: (exit $ac_status); }; }; then
! 7292: ac_cv_lib_nsl_gethostbyname=yes
! 7293: else
! 7294: echo "$as_me: failed program was:" >&5
! 7295: sed 's/^/| /' conftest.$ac_ext >&5
! 7296:
! 7297: ac_cv_lib_nsl_gethostbyname=no
! 7298: fi
! 7299: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7300: LIBS=$ac_check_lib_save_LIBS
! 7301: fi
! 7302: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 7303: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
! 7304: if test $ac_cv_lib_nsl_gethostbyname = yes; then
! 7305: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
! 7306: fi
! 7307:
! 7308: if test $ac_cv_lib_nsl_gethostbyname = no; then
! 7309: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
! 7310: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
! 7311: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
! 7312: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7313: else
! 7314: ac_check_lib_save_LIBS=$LIBS
! 7315: LIBS="-lbsd $LIBS"
! 7316: cat >conftest.$ac_ext <<_ACEOF
! 7317: #line $LINENO "configure"
! 7318: /* confdefs.h. */
! 7319: _ACEOF
! 7320: cat confdefs.h >>conftest.$ac_ext
! 7321: cat >>conftest.$ac_ext <<_ACEOF
! 7322: /* end confdefs.h. */
! 7323:
! 7324: /* Override any gcc2 internal prototype to avoid an error. */
! 7325: #ifdef __cplusplus
! 7326: extern "C"
! 7327: #endif
! 7328: /* We use char because int might match the return type of a gcc2
! 7329: builtin and then its argument prototype would still apply. */
! 7330: char gethostbyname ();
! 7331: int
! 7332: main ()
! 7333: {
! 7334: gethostbyname ();
! 7335: ;
! 7336: return 0;
! 7337: }
! 7338: _ACEOF
! 7339: rm -f conftest.$ac_objext conftest$ac_exeext
! 7340: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7341: (eval $ac_link) 2>&5
! 7342: ac_status=$?
! 7343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7344: (exit $ac_status); } &&
! 7345: { ac_try='test -s conftest$ac_exeext'
! 7346: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7347: (eval $ac_try) 2>&5
! 7348: ac_status=$?
! 7349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7350: (exit $ac_status); }; }; then
! 7351: ac_cv_lib_bsd_gethostbyname=yes
! 7352: else
! 7353: echo "$as_me: failed program was:" >&5
! 7354: sed 's/^/| /' conftest.$ac_ext >&5
! 7355:
! 7356: ac_cv_lib_bsd_gethostbyname=no
! 7357: fi
! 7358: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7359: LIBS=$ac_check_lib_save_LIBS
! 7360: fi
! 7361: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
! 7362: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
! 7363: if test $ac_cv_lib_bsd_gethostbyname = yes; then
! 7364: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
! 7365: fi
! 7366:
! 7367: fi
! 7368: fi
! 7369:
! 7370: # [email protected] says without -lsocket,
! 7371: # socket/setsockopt and other routines are undefined under SCO ODT
! 7372: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
! 7373: # on later versions), says Simon Leinen: it contains gethostby*
! 7374: # variants that don't use the name server (or something). -lsocket
! 7375: # must be given before -lnsl if both are needed. We assume that
! 7376: # if connect needs -lnsl, so does gethostbyname.
! 7377: echo "$as_me:$LINENO: checking for connect" >&5
! 7378: echo $ECHO_N "checking for connect... $ECHO_C" >&6
! 7379: if test "${ac_cv_func_connect+set}" = set; then
! 7380: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7381: else
! 7382: cat >conftest.$ac_ext <<_ACEOF
! 7383: #line $LINENO "configure"
! 7384: /* confdefs.h. */
! 7385: _ACEOF
! 7386: cat confdefs.h >>conftest.$ac_ext
! 7387: cat >>conftest.$ac_ext <<_ACEOF
! 7388: /* end confdefs.h. */
! 7389: /* System header to define __stub macros and hopefully few prototypes,
! 7390: which can conflict with char connect (); below.
! 7391: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7392: <limits.h> exists even on freestanding compilers. */
! 7393: #ifdef __STDC__
! 7394: # include <limits.h>
! 7395: #else
! 7396: # include <assert.h>
! 7397: #endif
! 7398: /* Override any gcc2 internal prototype to avoid an error. */
! 7399: #ifdef __cplusplus
! 7400: extern "C"
! 7401: {
! 7402: #endif
! 7403: /* We use char because int might match the return type of a gcc2
! 7404: builtin and then its argument prototype would still apply. */
! 7405: char connect ();
! 7406: /* The GNU C library defines this for functions which it implements
! 7407: to always fail with ENOSYS. Some functions are actually named
! 7408: something starting with __ and the normal name is an alias. */
! 7409: #if defined (__stub_connect) || defined (__stub___connect)
! 7410: choke me
! 7411: #else
! 7412: char (*f) () = connect;
! 7413: #endif
! 7414: #ifdef __cplusplus
! 7415: }
! 7416: #endif
! 7417:
! 7418: int
! 7419: main ()
! 7420: {
! 7421: return f != connect;
! 7422: ;
! 7423: return 0;
! 7424: }
! 7425: _ACEOF
! 7426: rm -f conftest.$ac_objext conftest$ac_exeext
! 7427: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7428: (eval $ac_link) 2>&5
! 7429: ac_status=$?
! 7430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7431: (exit $ac_status); } &&
! 7432: { ac_try='test -s conftest$ac_exeext'
! 7433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7434: (eval $ac_try) 2>&5
! 7435: ac_status=$?
! 7436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7437: (exit $ac_status); }; }; then
! 7438: ac_cv_func_connect=yes
! 7439: else
! 7440: echo "$as_me: failed program was:" >&5
! 7441: sed 's/^/| /' conftest.$ac_ext >&5
! 7442:
! 7443: ac_cv_func_connect=no
! 7444: fi
! 7445: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7446: fi
! 7447: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
! 7448: echo "${ECHO_T}$ac_cv_func_connect" >&6
! 7449:
! 7450: if test $ac_cv_func_connect = no; then
! 7451: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
! 7452: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
! 7453: if test "${ac_cv_lib_socket_connect+set}" = set; then
! 7454: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7455: else
! 7456: ac_check_lib_save_LIBS=$LIBS
! 7457: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
! 7458: cat >conftest.$ac_ext <<_ACEOF
! 7459: #line $LINENO "configure"
! 7460: /* confdefs.h. */
! 7461: _ACEOF
! 7462: cat confdefs.h >>conftest.$ac_ext
! 7463: cat >>conftest.$ac_ext <<_ACEOF
! 7464: /* end confdefs.h. */
! 7465:
! 7466: /* Override any gcc2 internal prototype to avoid an error. */
! 7467: #ifdef __cplusplus
! 7468: extern "C"
! 7469: #endif
! 7470: /* We use char because int might match the return type of a gcc2
! 7471: builtin and then its argument prototype would still apply. */
! 7472: char connect ();
! 7473: int
! 7474: main ()
! 7475: {
! 7476: connect ();
! 7477: ;
! 7478: return 0;
! 7479: }
! 7480: _ACEOF
! 7481: rm -f conftest.$ac_objext conftest$ac_exeext
! 7482: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7483: (eval $ac_link) 2>&5
! 7484: ac_status=$?
! 7485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7486: (exit $ac_status); } &&
! 7487: { ac_try='test -s conftest$ac_exeext'
! 7488: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7489: (eval $ac_try) 2>&5
! 7490: ac_status=$?
! 7491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7492: (exit $ac_status); }; }; then
! 7493: ac_cv_lib_socket_connect=yes
! 7494: else
! 7495: echo "$as_me: failed program was:" >&5
! 7496: sed 's/^/| /' conftest.$ac_ext >&5
! 7497:
! 7498: ac_cv_lib_socket_connect=no
! 7499: fi
! 7500: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7501: LIBS=$ac_check_lib_save_LIBS
! 7502: fi
! 7503: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
! 7504: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
! 7505: if test $ac_cv_lib_socket_connect = yes; then
! 7506: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
! 7507: fi
! 7508:
! 7509: fi
! 7510:
! 7511: # Guillermo Gomez says -lposix is necessary on A/UX.
! 7512: echo "$as_me:$LINENO: checking for remove" >&5
! 7513: echo $ECHO_N "checking for remove... $ECHO_C" >&6
! 7514: if test "${ac_cv_func_remove+set}" = set; then
! 7515: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7516: else
! 7517: cat >conftest.$ac_ext <<_ACEOF
! 7518: #line $LINENO "configure"
! 7519: /* confdefs.h. */
! 7520: _ACEOF
! 7521: cat confdefs.h >>conftest.$ac_ext
! 7522: cat >>conftest.$ac_ext <<_ACEOF
! 7523: /* end confdefs.h. */
! 7524: /* System header to define __stub macros and hopefully few prototypes,
! 7525: which can conflict with char remove (); below.
! 7526: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7527: <limits.h> exists even on freestanding compilers. */
! 7528: #ifdef __STDC__
! 7529: # include <limits.h>
! 7530: #else
! 7531: # include <assert.h>
! 7532: #endif
! 7533: /* Override any gcc2 internal prototype to avoid an error. */
! 7534: #ifdef __cplusplus
! 7535: extern "C"
! 7536: {
! 7537: #endif
! 7538: /* We use char because int might match the return type of a gcc2
! 7539: builtin and then its argument prototype would still apply. */
! 7540: char remove ();
! 7541: /* The GNU C library defines this for functions which it implements
! 7542: to always fail with ENOSYS. Some functions are actually named
! 7543: something starting with __ and the normal name is an alias. */
! 7544: #if defined (__stub_remove) || defined (__stub___remove)
! 7545: choke me
! 7546: #else
! 7547: char (*f) () = remove;
! 7548: #endif
! 7549: #ifdef __cplusplus
! 7550: }
! 7551: #endif
! 7552:
! 7553: int
! 7554: main ()
! 7555: {
! 7556: return f != remove;
! 7557: ;
! 7558: return 0;
! 7559: }
! 7560: _ACEOF
! 7561: rm -f conftest.$ac_objext conftest$ac_exeext
! 7562: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7563: (eval $ac_link) 2>&5
! 7564: ac_status=$?
! 7565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7566: (exit $ac_status); } &&
! 7567: { ac_try='test -s conftest$ac_exeext'
! 7568: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7569: (eval $ac_try) 2>&5
! 7570: ac_status=$?
! 7571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7572: (exit $ac_status); }; }; then
! 7573: ac_cv_func_remove=yes
! 7574: else
! 7575: echo "$as_me: failed program was:" >&5
! 7576: sed 's/^/| /' conftest.$ac_ext >&5
! 7577:
! 7578: ac_cv_func_remove=no
! 7579: fi
! 7580: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7581: fi
! 7582: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
! 7583: echo "${ECHO_T}$ac_cv_func_remove" >&6
! 7584:
! 7585: if test $ac_cv_func_remove = no; then
! 7586: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
! 7587: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
! 7588: if test "${ac_cv_lib_posix_remove+set}" = set; then
! 7589: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7590: else
! 7591: ac_check_lib_save_LIBS=$LIBS
! 7592: LIBS="-lposix $LIBS"
! 7593: cat >conftest.$ac_ext <<_ACEOF
! 7594: #line $LINENO "configure"
! 7595: /* confdefs.h. */
! 7596: _ACEOF
! 7597: cat confdefs.h >>conftest.$ac_ext
! 7598: cat >>conftest.$ac_ext <<_ACEOF
! 7599: /* end confdefs.h. */
! 7600:
! 7601: /* Override any gcc2 internal prototype to avoid an error. */
! 7602: #ifdef __cplusplus
! 7603: extern "C"
! 7604: #endif
! 7605: /* We use char because int might match the return type of a gcc2
! 7606: builtin and then its argument prototype would still apply. */
! 7607: char remove ();
! 7608: int
! 7609: main ()
! 7610: {
! 7611: remove ();
! 7612: ;
! 7613: return 0;
! 7614: }
! 7615: _ACEOF
! 7616: rm -f conftest.$ac_objext conftest$ac_exeext
! 7617: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7618: (eval $ac_link) 2>&5
! 7619: ac_status=$?
! 7620: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7621: (exit $ac_status); } &&
! 7622: { ac_try='test -s conftest$ac_exeext'
! 7623: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7624: (eval $ac_try) 2>&5
! 7625: ac_status=$?
! 7626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7627: (exit $ac_status); }; }; then
! 7628: ac_cv_lib_posix_remove=yes
! 7629: else
! 7630: echo "$as_me: failed program was:" >&5
! 7631: sed 's/^/| /' conftest.$ac_ext >&5
! 7632:
! 7633: ac_cv_lib_posix_remove=no
! 7634: fi
! 7635: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7636: LIBS=$ac_check_lib_save_LIBS
! 7637: fi
! 7638: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
! 7639: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
! 7640: if test $ac_cv_lib_posix_remove = yes; then
! 7641: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
! 7642: fi
! 7643:
! 7644: fi
! 7645:
! 7646: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
! 7647: echo "$as_me:$LINENO: checking for shmat" >&5
! 7648: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
! 7649: if test "${ac_cv_func_shmat+set}" = set; then
! 7650: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7651: else
! 7652: cat >conftest.$ac_ext <<_ACEOF
! 7653: #line $LINENO "configure"
! 7654: /* confdefs.h. */
! 7655: _ACEOF
! 7656: cat confdefs.h >>conftest.$ac_ext
! 7657: cat >>conftest.$ac_ext <<_ACEOF
! 7658: /* end confdefs.h. */
! 7659: /* System header to define __stub macros and hopefully few prototypes,
! 7660: which can conflict with char shmat (); below.
! 7661: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 7662: <limits.h> exists even on freestanding compilers. */
! 7663: #ifdef __STDC__
! 7664: # include <limits.h>
! 7665: #else
! 7666: # include <assert.h>
! 7667: #endif
! 7668: /* Override any gcc2 internal prototype to avoid an error. */
! 7669: #ifdef __cplusplus
! 7670: extern "C"
! 7671: {
! 7672: #endif
! 7673: /* We use char because int might match the return type of a gcc2
! 7674: builtin and then its argument prototype would still apply. */
! 7675: char shmat ();
! 7676: /* The GNU C library defines this for functions which it implements
! 7677: to always fail with ENOSYS. Some functions are actually named
! 7678: something starting with __ and the normal name is an alias. */
! 7679: #if defined (__stub_shmat) || defined (__stub___shmat)
! 7680: choke me
! 7681: #else
! 7682: char (*f) () = shmat;
! 7683: #endif
! 7684: #ifdef __cplusplus
! 7685: }
! 7686: #endif
! 7687:
! 7688: int
! 7689: main ()
! 7690: {
! 7691: return f != shmat;
! 7692: ;
! 7693: return 0;
! 7694: }
! 7695: _ACEOF
! 7696: rm -f conftest.$ac_objext conftest$ac_exeext
! 7697: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7698: (eval $ac_link) 2>&5
! 7699: ac_status=$?
! 7700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7701: (exit $ac_status); } &&
! 7702: { ac_try='test -s conftest$ac_exeext'
! 7703: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7704: (eval $ac_try) 2>&5
! 7705: ac_status=$?
! 7706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7707: (exit $ac_status); }; }; then
! 7708: ac_cv_func_shmat=yes
! 7709: else
! 7710: echo "$as_me: failed program was:" >&5
! 7711: sed 's/^/| /' conftest.$ac_ext >&5
! 7712:
! 7713: ac_cv_func_shmat=no
! 7714: fi
! 7715: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7716: fi
! 7717: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
! 7718: echo "${ECHO_T}$ac_cv_func_shmat" >&6
! 7719:
! 7720: if test $ac_cv_func_shmat = no; then
! 7721: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
! 7722: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
! 7723: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
! 7724: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7725: else
! 7726: ac_check_lib_save_LIBS=$LIBS
! 7727: LIBS="-lipc $LIBS"
! 7728: cat >conftest.$ac_ext <<_ACEOF
! 7729: #line $LINENO "configure"
! 7730: /* confdefs.h. */
! 7731: _ACEOF
! 7732: cat confdefs.h >>conftest.$ac_ext
! 7733: cat >>conftest.$ac_ext <<_ACEOF
! 7734: /* end confdefs.h. */
! 7735:
! 7736: /* Override any gcc2 internal prototype to avoid an error. */
! 7737: #ifdef __cplusplus
! 7738: extern "C"
! 7739: #endif
! 7740: /* We use char because int might match the return type of a gcc2
! 7741: builtin and then its argument prototype would still apply. */
! 7742: char shmat ();
! 7743: int
! 7744: main ()
! 7745: {
! 7746: shmat ();
! 7747: ;
! 7748: return 0;
! 7749: }
! 7750: _ACEOF
! 7751: rm -f conftest.$ac_objext conftest$ac_exeext
! 7752: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7753: (eval $ac_link) 2>&5
! 7754: ac_status=$?
! 7755: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7756: (exit $ac_status); } &&
! 7757: { ac_try='test -s conftest$ac_exeext'
! 7758: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7759: (eval $ac_try) 2>&5
! 7760: ac_status=$?
! 7761: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7762: (exit $ac_status); }; }; then
! 7763: ac_cv_lib_ipc_shmat=yes
! 7764: else
! 7765: echo "$as_me: failed program was:" >&5
! 7766: sed 's/^/| /' conftest.$ac_ext >&5
! 7767:
! 7768: ac_cv_lib_ipc_shmat=no
! 7769: fi
! 7770: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7771: LIBS=$ac_check_lib_save_LIBS
! 7772: fi
! 7773: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
! 7774: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
! 7775: if test $ac_cv_lib_ipc_shmat = yes; then
! 7776: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
! 7777: fi
! 7778:
! 7779: fi
! 7780: fi
! 7781:
! 7782: # Check for libraries that X11R6 Xt/Xaw programs need.
! 7783: ac_save_LDFLAGS=$LDFLAGS
! 7784: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
! 7785: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
! 7786: # check for ICE first), but we must link in the order -lSM -lICE or
! 7787: # we get undefined symbols. So assume we have SM if we have ICE.
! 7788: # These have to be linked with before -lX11, unlike the other
! 7789: # libraries we check for below, so use a different variable.
! 7790: # John Interrante, Karl Berry
! 7791: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
! 7792: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
! 7793: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
! 7794: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7795: else
! 7796: ac_check_lib_save_LIBS=$LIBS
! 7797: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
! 7798: cat >conftest.$ac_ext <<_ACEOF
! 7799: #line $LINENO "configure"
! 7800: /* confdefs.h. */
! 7801: _ACEOF
! 7802: cat confdefs.h >>conftest.$ac_ext
! 7803: cat >>conftest.$ac_ext <<_ACEOF
! 7804: /* end confdefs.h. */
! 7805:
! 7806: /* Override any gcc2 internal prototype to avoid an error. */
! 7807: #ifdef __cplusplus
! 7808: extern "C"
! 7809: #endif
! 7810: /* We use char because int might match the return type of a gcc2
! 7811: builtin and then its argument prototype would still apply. */
! 7812: char IceConnectionNumber ();
! 7813: int
! 7814: main ()
! 7815: {
! 7816: IceConnectionNumber ();
! 7817: ;
! 7818: return 0;
! 7819: }
! 7820: _ACEOF
! 7821: rm -f conftest.$ac_objext conftest$ac_exeext
! 7822: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7823: (eval $ac_link) 2>&5
! 7824: ac_status=$?
! 7825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7826: (exit $ac_status); } &&
! 7827: { ac_try='test -s conftest$ac_exeext'
! 7828: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7829: (eval $ac_try) 2>&5
! 7830: ac_status=$?
! 7831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7832: (exit $ac_status); }; }; then
! 7833: ac_cv_lib_ICE_IceConnectionNumber=yes
! 7834: else
! 7835: echo "$as_me: failed program was:" >&5
! 7836: sed 's/^/| /' conftest.$ac_ext >&5
! 7837:
! 7838: ac_cv_lib_ICE_IceConnectionNumber=no
! 7839: fi
! 7840: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 7841: LIBS=$ac_check_lib_save_LIBS
! 7842: fi
! 7843: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
! 7844: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
! 7845: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
! 7846: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
! 7847: fi
! 7848:
! 7849: LDFLAGS=$ac_save_LDFLAGS
! 7850:
! 7851: fi
! 7852:
! 7853:
! 7854:
! 7855: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
! 7856: if test "${with_gtk_prefix+set}" = set; then
! 7857: withval="$with_gtk_prefix"
! 7858: gtk_config_prefix="$withval"
! 7859: else
! 7860: gtk_config_prefix=""
! 7861: fi;
! 7862:
! 7863: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
! 7864: if test "${with_gtk_exec_prefix+set}" = set; then
! 7865: withval="$with_gtk_exec_prefix"
! 7866: gtk_config_exec_prefix="$withval"
! 7867: else
! 7868: gtk_config_exec_prefix=""
! 7869: fi;
! 7870: # Check whether --enable-gtktest or --disable-gtktest was given.
! 7871: if test "${enable_gtktest+set}" = set; then
! 7872: enableval="$enable_gtktest"
! 7873:
! 7874: else
! 7875: enable_gtktest=yes
! 7876: fi;
! 7877:
! 7878: for module in .
! 7879: do
! 7880: case "$module" in
! 7881: gthread)
! 7882: gtk_config_args="$gtk_config_args gthread"
! 7883: ;;
! 7884: esac
! 7885: done
! 7886:
! 7887: if test x$gtk_config_exec_prefix != x ; then
! 7888: gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
! 7889: if test x${GTK_CONFIG+set} != xset ; then
! 7890: GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
! 7891: fi
! 7892: fi
! 7893: if test x$gtk_config_prefix != x ; then
! 7894: gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
! 7895: if test x${GTK_CONFIG+set} != xset ; then
! 7896: GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
! 7897: fi
! 7898: fi
! 7899:
! 7900: # Extract the first word of "gtk-config", so it can be a program name with args.
! 7901: set dummy gtk-config; ac_word=$2
! 7902: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7903: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7904: if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
! 7905: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7906: else
! 7907: case $GTK_CONFIG in
! 7908: [\\/]* | ?:[\\/]*)
! 7909: ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
! 7910: ;;
! 7911: *)
! 7912: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7913: for as_dir in $PATH
! 7914: do
! 7915: IFS=$as_save_IFS
! 7916: test -z "$as_dir" && as_dir=.
! 7917: for ac_exec_ext in '' $ac_executable_extensions; do
! 7918: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7919: ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
! 7920: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7921: break 2
! 7922: fi
! 7923: done
! 7924: done
! 7925:
! 7926: test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
! 7927: ;;
! 7928: esac
! 7929: fi
! 7930: GTK_CONFIG=$ac_cv_path_GTK_CONFIG
! 7931:
! 7932: if test -n "$GTK_CONFIG"; then
! 7933: echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
! 7934: echo "${ECHO_T}$GTK_CONFIG" >&6
! 7935: else
! 7936: echo "$as_me:$LINENO: result: no" >&5
! 7937: echo "${ECHO_T}no" >&6
! 7938: fi
! 7939:
! 7940: min_gtk_version=0.99.7
! 7941: echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
! 7942: echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
! 7943: no_gtk=""
! 7944: if test "$GTK_CONFIG" = "no" ; then
! 7945: no_gtk=yes
! 7946: else
! 7947: GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
! 7948: GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
! 7949: gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
! 7950: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
! 7951: gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
! 7952: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
! 7953: gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
! 7954: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
! 7955: if test "x$enable_gtktest" = "xyes" ; then
! 7956: ac_save_CFLAGS="$CFLAGS"
! 7957: ac_save_LIBS="$LIBS"
! 7958: CFLAGS="$CFLAGS $GTK_CFLAGS"
! 7959: LIBS="$GTK_LIBS $LIBS"
! 7960: rm -f conf.gtktest
! 7961: if test "$cross_compiling" = yes; then
! 7962: echo $ac_n "cross compiling; assumed OK... $ac_c"
! 7963: else
! 7964: cat >conftest.$ac_ext <<_ACEOF
1.1 root 7965: #line $LINENO "configure"
7966: /* confdefs.h. */
7967: _ACEOF
7968: cat confdefs.h >>conftest.$ac_ext
7969: cat >>conftest.$ac_ext <<_ACEOF
7970: /* end confdefs.h. */
7971:
1.1.1.2 ! root 7972: #include <gtk/gtk.h>
! 7973: #include <stdio.h>
! 7974: #include <stdlib.h>
1.1 root 7975:
1.1.1.2 ! root 7976: int
! 7977: main ()
! 7978: {
! 7979: int major, minor, micro;
! 7980: char *tmp_version;
1.1 root 7981:
1.1.1.2 ! root 7982: system ("touch conf.gtktest");
1.1 root 7983:
1.1.1.2 ! root 7984: /* HP/UX 9 (%@#!) writes to sscanf strings */
! 7985: tmp_version = g_strdup("$min_gtk_version");
! 7986: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
! 7987: printf("%s, bad version string\n", "$min_gtk_version");
! 7988: exit(1);
! 7989: }
! 7990:
! 7991: if ((gtk_major_version != $gtk_config_major_version) ||
! 7992: (gtk_minor_version != $gtk_config_minor_version) ||
! 7993: (gtk_micro_version != $gtk_config_micro_version))
! 7994: {
! 7995: printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
! 7996: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
! 7997: gtk_major_version, gtk_minor_version, gtk_micro_version);
! 7998: printf ("*** was found! If gtk-config was correct, then it is best\n");
! 7999: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
! 8000: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
! 8001: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
! 8002: printf("*** required on your system.\n");
! 8003: printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
! 8004: printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
! 8005: printf("*** before re-running configure\n");
! 8006: }
! 8007: #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
! 8008: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
! 8009: (gtk_minor_version != GTK_MINOR_VERSION) ||
! 8010: (gtk_micro_version != GTK_MICRO_VERSION))
! 8011: {
! 8012: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
! 8013: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
! 8014: printf("*** library (version %d.%d.%d)\n",
! 8015: gtk_major_version, gtk_minor_version, gtk_micro_version);
! 8016: }
! 8017: #endif /* defined (GTK_MAJOR_VERSION) ... */
! 8018: else
! 8019: {
! 8020: if ((gtk_major_version > major) ||
! 8021: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
! 8022: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
! 8023: {
! 8024: return 0;
! 8025: }
! 8026: else
! 8027: {
! 8028: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
! 8029: gtk_major_version, gtk_minor_version, gtk_micro_version);
! 8030: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
! 8031: major, minor, micro);
! 8032: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
! 8033: printf("***\n");
! 8034: printf("*** If you have already installed a sufficiently new version, this error\n");
! 8035: printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
! 8036: printf("*** being found. The easiest way to fix this is to remove the old version\n");
! 8037: printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
! 8038: printf("*** correct copy of gtk-config. (In this case, you will have to\n");
! 8039: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
! 8040: printf("*** so that the correct libraries are found at run-time))\n");
! 8041: }
! 8042: }
! 8043: return 1;
! 8044: }
1.1 root 8045:
1.1.1.2 ! root 8046: _ACEOF
! 8047: rm -f conftest$ac_exeext
! 8048: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8049: (eval $ac_link) 2>&5
! 8050: ac_status=$?
! 8051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8052: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 8053: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8054: (eval $ac_try) 2>&5
! 8055: ac_status=$?
! 8056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8057: (exit $ac_status); }; }; then
! 8058: :
1.1 root 8059: else
1.1.1.2 ! root 8060: echo "$as_me: program exited with status $ac_status" >&5
! 8061: echo "$as_me: failed program was:" >&5
! 8062: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 8063:
1.1.1.2 ! root 8064: ( exit $ac_status )
! 8065: no_gtk=yes
1.1 root 8066: fi
1.1.1.2 ! root 8067: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 8068: fi
1.1.1.2 ! root 8069: CFLAGS="$ac_save_CFLAGS"
! 8070: LIBS="$ac_save_LIBS"
! 8071: fi
! 8072: fi
! 8073: if test "x$no_gtk" = x ; then
! 8074: echo "$as_me:$LINENO: result: yes" >&5
! 8075: echo "${ECHO_T}yes" >&6
! 8076: have_gtk=true
! 8077: else
! 8078: echo "$as_me:$LINENO: result: no" >&5
! 8079: echo "${ECHO_T}no" >&6
! 8080: if test "$GTK_CONFIG" = "no" ; then
! 8081: echo "*** The gtk-config script installed by GTK could not be found"
! 8082: echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
! 8083: echo "*** your path, or set the GTK_CONFIG environment variable to the"
! 8084: echo "*** full path to gtk-config."
! 8085: else
! 8086: if test -f conf.gtktest ; then
! 8087: :
! 8088: else
! 8089: echo "*** Could not run GTK test program, checking why..."
! 8090: CFLAGS="$CFLAGS $GTK_CFLAGS"
! 8091: LIBS="$LIBS $GTK_LIBS"
! 8092: cat >conftest.$ac_ext <<_ACEOF
1.1 root 8093: #line $LINENO "configure"
8094: /* confdefs.h. */
8095: _ACEOF
8096: cat confdefs.h >>conftest.$ac_ext
8097: cat >>conftest.$ac_ext <<_ACEOF
8098: /* end confdefs.h. */
1.1.1.2 ! root 8099:
! 8100: #include <gtk/gtk.h>
! 8101: #include <stdio.h>
! 8102:
! 8103: int
! 8104: main ()
! 8105: {
! 8106: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
! 8107: ;
! 8108: return 0;
! 8109: }
1.1 root 8110: _ACEOF
1.1.1.2 ! root 8111: rm -f conftest.$ac_objext conftest$ac_exeext
! 8112: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8113: (eval $ac_link) 2>&5
1.1 root 8114: ac_status=$?
8115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116: (exit $ac_status); } &&
1.1.1.2 ! root 8117: { ac_try='test -s conftest$ac_exeext'
1.1 root 8118: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119: (eval $ac_try) 2>&5
8120: ac_status=$?
8121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122: (exit $ac_status); }; }; then
1.1.1.2 ! root 8123: echo "*** The test program compiled, but did not run. This usually means"
! 8124: echo "*** that the run-time linker is not finding GTK or finding the wrong"
! 8125: echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
! 8126: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
! 8127: echo "*** to the installed location Also, make sure you have run ldconfig if that"
! 8128: echo "*** is required on your system"
! 8129: echo "***"
! 8130: echo "*** If you have an old version installed, it is best to remove it, although"
! 8131: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
! 8132: echo "***"
! 8133: echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
! 8134: echo "*** came with the system with the command"
! 8135: echo "***"
! 8136: echo "*** rpm --erase --nodeps gtk gtk-devel"
1.1 root 8137: else
8138: echo "$as_me: failed program was:" >&5
8139: sed 's/^/| /' conftest.$ac_ext >&5
8140:
1.1.1.2 ! root 8141: echo "*** The test program failed to compile or link. See the file config.log for the"
! 8142: echo "*** exact error that occured. This usually means GTK was incorrectly installed"
! 8143: echo "*** or that you have moved GTK since it was installed. In the latter case, you"
! 8144: echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
1.1 root 8145: fi
1.1.1.2 ! root 8146: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8147: CFLAGS="$ac_save_CFLAGS"
! 8148: LIBS="$ac_save_LIBS"
! 8149: fi
! 8150: fi
! 8151: GTK_CFLAGS=""
! 8152: GTK_LIBS=""
! 8153: have_gtk=false
! 8154: fi
1.1 root 8155:
1.1.1.2 ! root 8156:
! 8157: rm -f conf.gtktest
! 8158:
! 8159: if $have_gtk; then
! 8160:
! 8161: cat >>confdefs.h <<\_ACEOF
! 8162: #define HAVE_GTK
1.1 root 8163: _ACEOF
8164:
1.1.1.2 ! root 8165: TME_HOSTS="${TME_HOSTS} gtk"
1.1 root 8166: fi
8167:
1.1.1.2 ! root 8168: TME_FB_XLAT_DST=
! 8169: area_smallest=0
! 8170: area_largest=0
1.1 root 8171:
1.1.1.2 ! root 8172: # if TME_DISPLAYS is set, characterize those given displays:
! 8173: for dst_key in ${TME_DISPLAYS}; do
1.1 root 8174:
8175:
1.1.1.2 ! root 8176: this_width=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
! 8177: this_height=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
! 8178: dst_key=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\3/'`
! 8179: this_area=`expr ${this_width} \* ${this_height}`
! 8180:
! 8181: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
! 8182: area_smallest=${this_area}
! 8183: fi
! 8184: if test `expr ${this_area} \> ${area_largest}` = 1; then
! 8185: area_largest=${this_area}
! 8186: fi
! 8187:
! 8188: # add in this destination display key:
! 8189: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
! 8190: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
! 8191: fi
! 8192:
! 8193: done
! 8194:
! 8195: # if DISPLAY is set and xdpyinfo appears to work, characterize this X display:
! 8196: if test "x${DISPLAY}" != x && xdpyinfo >/dev/null 2>&1; then
! 8197: echo "$as_me:$LINENO: checking characteristics of X display ${DISPLAY}" >&5
! 8198: echo $ECHO_N "checking characteristics of X display ${DISPLAY}... $ECHO_C" >&6
! 8199:
! 8200:
! 8201: # get the format this display uses for bitmaps:
! 8202: bitmap_info=`xdpyinfo | grep 'bitmap unit' | sed -e 's/bitmap unit, *bit order, *padding: *\(.*\)$/\1/'`
! 8203: bitmap_order=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\2/'`
! 8204: bitmap_pad=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\3/'`
! 8205: bitmap_order=`echo ${bitmap_order} | tr A-Z a-z`
! 8206:
! 8207: # get the format this display uses for images at its greatest depth:
! 8208: pixmap_order=`xdpyinfo | grep 'image byte order'`
! 8209: pixmap_order=`echo ${pixmap_order} | sed -e 's/.*image byte order: *\([LM]\)SBFirst.*/\1/' | tr A-Z a-z`
! 8210: pixmap_depth=1
! 8211: pixmap_infos=`xdpyinfo | grep bits_per_pixel | tr '\n' %`
! 8212: save_IFS=$IFS
! 8213: IFS=%
! 8214: for pixmap_info in $pixmap_infos; do
! 8215: IFS=$save_IFS
! 8216: if test "x$pixmap_info" = x; then continue; fi
! 8217: this_pixmap_depth=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\1/'`
! 8218: this_pixmap_bipp=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\2/'`
! 8219: this_pixmap_pad=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\3/'`
! 8220: if test `expr ${pixmap_depth} \< ${this_pixmap_depth}` = 1; then
! 8221: pixmap_depth=${this_pixmap_depth}
! 8222: pixmap_bipp=${this_pixmap_bipp}
! 8223: pixmap_pad=${this_pixmap_pad}
! 8224: fi
! 8225: done
! 8226: IFS=$save_IFS
! 8227:
! 8228: # if this display's greatest depth is one, we use its
! 8229: # bitmap format:
! 8230: if test $pixmap_depth = 1; then
! 8231: pixmap_bipp=1
! 8232: pixmap_pad=${bitmap_pad}
! 8233:
! 8234: # our translation functions can't handle the case when the bitmap
! 8235: # bit order is different from the image byte order - doing so
! 8236: # requires dealing with the bitmap unit size. since this
! 8237: # situation is rare, just bail:
! 8238: if test ${bitmap_order} != ${pixmap_order}; then
! 8239: { echo "$as_me:$LINENO: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&5
! 8240: echo "$as_me: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&2;}
! 8241: pixmap_depth=0
! 8242: fi
! 8243: fi
! 8244:
! 8245: # if this display seems usable:
! 8246: if test ${pixmap_depth} != 0; then
! 8247:
! 8248: # check the dimensions of all screens on this display:
! 8249: dimensions=`xdpyinfo | grep dimensions | tr '\n' %`
! 8250: save_IFS=$IFS
! 8251: IFS=%
! 8252: for dimension in $dimensions; do
! 8253: IFS=$save_IFS
! 8254: if test "x$dimension" = x; then continue; fi
! 8255: this_width=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\1/'`
! 8256: this_height=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\2/'`
! 8257: this_area=`expr ${this_width} \* ${this_height}`
! 8258: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
! 8259: area_smallest=${this_area}
! 8260: fi
! 8261: if test `expr ${this_area} \> ${area_largest}` = 1; then
! 8262: area_largest=${this_area}
! 8263: fi
! 8264: done
! 8265: IFS=$save_IFS
! 8266:
! 8267:
! 8268: # finish the characterization:
! 8269: if test ${pixmap_bipp} = ${pixmap_depth}; then
! 8270: value=
! 8271: else
! 8272: value=" (${pixmap_bipp} bits per pixel)"
! 8273: fi
! 8274: echo "$as_me:$LINENO: result: ${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding" >&5
! 8275: echo "${ECHO_T}${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding" >&6
! 8276: dst_key="d${pixmap_depth}b${pixmap_bipp}s0p${pixmap_pad}o${pixmap_order}"
! 8277:
! 8278: # add in this destination display key:
! 8279: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
! 8280: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
! 8281: fi
! 8282: fi
1.1 root 8283: fi
1.1.1.2 ! root 8284:
1.1 root 8285:
8286: systems=all
8287: if echo " ${systems} " | grep ' all ' > /dev/null 2>&1; then
8288: systems="sun2"
8289: fi
8290: TME_MACHINE_SUBDIRS=
8291: TME_IC_SUBDIRS=
8292: TME_ICS=
1.1.1.2 ! root 8293: TME_SERIAL_SUBDIRS=
! 8294: TME_SERIALS=
1.1 root 8295: TME_BUS_SUBDIRS=
1.1.1.2 ! root 8296: TME_FB_XLAT_SRC=
1.1 root 8297: for system in $systems; do
8298:
8299: # dispatch on the machine type to get more machines, ICs, and
8300: # buses to compile:
8301: case ${system} in
8302:
8303: # the sun2:
8304: sun2)
8305: machines="sun sun2"
8306: ics="m68k am9513 mm58167 z8530"
8307: buses="multibus"
1.1.1.2 ! root 8308: fb_xlats="1152x900d1b1s0p32om"
1.1 root 8309: ;;
8310:
8311: *)
8312: { { echo "$as_me:$LINENO: error: don't know how to emulate ${machine}" >&5
8313: echo "$as_me: error: don't know how to emulate ${machine}" >&2;}
8314: { (exit 1); exit 1; }; }
8315: ;;
8316: esac
8317:
1.1.1.2 ! root 8318: # add in the new machines, ICs, serials, and buses to compile:
1.1 root 8319: for machine in $machines; do
8320: if echo " ${TME_MACHINE_SUBDIRS} " | grep " ${machine} " > /dev/null 2>&1; then :; else
8321: TME_MACHINE_SUBDIRS="${TME_MACHINE_SUBDIRS} ${machine}"
8322: fi
8323: done
8324: for ic in $ics; do
8325: if test -d ic/$ic; then
8326: if echo " ${TME_IC_SUBDIRS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
8327: TME_IC_SUBDIRS="${TME_IC_SUBDIRS} ${ic}"
8328: fi
8329: else
8330: ic="tme_ic_${ic}.la"
8331: if echo " ${TME_ICS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
8332: TME_ICS="${TME_ICS} ${ic}"
8333: fi
8334: fi
8335: done
1.1.1.2 ! root 8336: for serial in $serials; do
! 8337: if test -d serial/$serial; then
! 8338: if echo " ${TME_SERIAL_SUBDIRS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
! 8339: TME_SERIAL_SUBDIRS="${TME_SERIAL_SUBDIRS} ${serial}"
! 8340: fi
! 8341: else
! 8342: serial="tme_serial_${serial}.la"
! 8343: if echo " ${TME_SERIALS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
! 8344: TME_SERIALS="${TME_SERIALS} ${serial}"
! 8345: fi
! 8346: fi
! 8347: done
1.1 root 8348: for bus in $buses; do
8349: if echo " ${TME_BUS_SUBDIRS} " | grep " ${bus} " > /dev/null 2>&1; then :; else
8350: TME_BUS_SUBDIRS="${TME_BUS_SUBDIRS} ${bus}"
8351: fi
8352: done
1.1.1.2 ! root 8353:
! 8354: # add in the new frame buffer translations to compile:
! 8355: for fb_xlat in $fb_xlats; do
! 8356: if echo " ${TME_FB_XLAT_SRC} " | grep " ${fb_xlat} " > /dev/null 2>&1; then :; else
! 8357: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${fb_xlat}"
! 8358: fi
! 8359:
! 8360:
! 8361: # calculate the area of this frame buffer multiplied by 100:
! 8362: this_width=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
! 8363: this_height=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
! 8364: this_area=`expr ${this_width} \* ${this_height} \* 100`
! 8365:
! 8366:
! 8367: # if this frame buffer would consume at least 70 percent of
! 8368: # the smallest destination screen, make an xlat function that
! 8369: # scales this frame buffer down by two:
! 8370: if test ${area_smallest} = 0; then
! 8371: percentage=100
! 8372: else
! 8373: percentage=`expr ${this_area} / ${area_smallest}`
! 8374: fi
! 8375: if test `expr ${percentage} \> 70` = 1; then
! 8376: src_key="${fb_xlat}_h"
! 8377: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
! 8378: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
! 8379: fi
! 8380: fi
! 8381:
! 8382: # if this frame buffer would consume less than 30 percent of
! 8383: # the largest destination screen, make an xlat function that
! 8384: # scales this frame buffer up by two:
! 8385: if test ${area_largest} = 0; then
! 8386: percentage=0
! 8387: else
! 8388: percentage=`expr ${this_area} / ${area_largest}`
! 8389: fi
! 8390: if test `expr ${percentage} \< 30` = 1; then
! 8391: src_key="${fb_xlat}_d"
! 8392: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
! 8393: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
! 8394: fi
! 8395: fi
! 8396: done
1.1 root 8397: done
1.1.1.2 ! root 8398:
! 8399:
! 8400:
! 8401:
1.1 root 8402:
8403:
8404:
8405:
8406:
8407:
8408: echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
8409: echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
8410: if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
8411: echo $ECHO_N "(cached) $ECHO_C" >&6
8412: else
8413: ac_check_lib_save_LIBS=$LIBS
8414: LIBS="-lltdl $LIBS"
8415: cat >conftest.$ac_ext <<_ACEOF
8416: #line $LINENO "configure"
8417: /* confdefs.h. */
8418: _ACEOF
8419: cat confdefs.h >>conftest.$ac_ext
8420: cat >>conftest.$ac_ext <<_ACEOF
8421: /* end confdefs.h. */
8422:
8423: /* Override any gcc2 internal prototype to avoid an error. */
8424: #ifdef __cplusplus
8425: extern "C"
8426: #endif
8427: /* We use char because int might match the return type of a gcc2
8428: builtin and then its argument prototype would still apply. */
8429: char lt_dlinit ();
8430: int
8431: main ()
8432: {
8433: lt_dlinit ();
8434: ;
8435: return 0;
8436: }
8437: _ACEOF
8438: rm -f conftest.$ac_objext conftest$ac_exeext
8439: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440: (eval $ac_link) 2>&5
8441: ac_status=$?
8442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443: (exit $ac_status); } &&
8444: { ac_try='test -s conftest$ac_exeext'
8445: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446: (eval $ac_try) 2>&5
8447: ac_status=$?
8448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449: (exit $ac_status); }; }; then
8450: ac_cv_lib_ltdl_lt_dlinit=yes
8451: else
8452: echo "$as_me: failed program was:" >&5
8453: sed 's/^/| /' conftest.$ac_ext >&5
8454:
8455: ac_cv_lib_ltdl_lt_dlinit=no
8456: fi
8457: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8458: LIBS=$ac_check_lib_save_LIBS
8459: fi
8460: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
8461: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
8462: if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
8463: test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
8464: else
8465: if test x"$enable_ltdl_install" = xno; then
8466: { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
8467: echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
8468: else
8469: enable_ltdl_install=yes
8470: fi
8471:
8472: fi
8473:
8474: if test x"$enable_ltdl_install" = x"yes"; then
8475: ac_configure_args="$ac_configure_args --enable-ltdl-install"
8476: LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
8477: LTDLINCL='-I${top_srcdir}/''libltdl'
8478: else
8479: ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
8480: LIBLTDL="-lltdl"
8481: LTDLINCL=
8482: fi
8483: # For backwards non-gettext consistent compatibility...
8484: INCLTDL="$LTDLINCL"
8485:
8486:
8487:
8488:
8489:
8490: # Check whether --enable-shared or --disable-shared was given.
8491: if test "${enable_shared+set}" = set; then
8492: enableval="$enable_shared"
8493: p=${PACKAGE-default}
8494: case $enableval in
8495: yes) enable_shared=yes ;;
8496: no) enable_shared=no ;;
8497: *)
8498: enable_shared=no
8499: # Look at the argument we got. We use all the common list separators.
8500: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8501: for pkg in $enableval; do
8502: IFS="$lt_save_ifs"
8503: if test "X$pkg" = "X$p"; then
8504: enable_shared=yes
8505: fi
8506: done
8507: IFS="$lt_save_ifs"
8508: ;;
8509: esac
8510: else
8511: enable_shared=yes
8512: fi;
8513:
8514: # Check whether --enable-static or --disable-static was given.
8515: if test "${enable_static+set}" = set; then
8516: enableval="$enable_static"
8517: p=${PACKAGE-default}
8518: case $enableval in
8519: yes) enable_static=yes ;;
8520: no) enable_static=no ;;
8521: *)
8522: enable_static=no
8523: # Look at the argument we got. We use all the common list separators.
8524: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8525: for pkg in $enableval; do
8526: IFS="$lt_save_ifs"
8527: if test "X$pkg" = "X$p"; then
8528: enable_static=yes
8529: fi
8530: done
8531: IFS="$lt_save_ifs"
8532: ;;
8533: esac
8534: else
8535: enable_static=yes
8536: fi;
8537:
8538: # Check whether --enable-fast-install or --disable-fast-install was given.
8539: if test "${enable_fast_install+set}" = set; then
8540: enableval="$enable_fast_install"
8541: p=${PACKAGE-default}
8542: case $enableval in
8543: yes) enable_fast_install=yes ;;
8544: no) enable_fast_install=no ;;
8545: *)
8546: enable_fast_install=no
8547: # Look at the argument we got. We use all the common list separators.
8548: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8549: for pkg in $enableval; do
8550: IFS="$lt_save_ifs"
8551: if test "X$pkg" = "X$p"; then
8552: enable_fast_install=yes
8553: fi
8554: done
8555: IFS="$lt_save_ifs"
8556: ;;
8557: esac
8558: else
8559: enable_fast_install=yes
8560: fi;
8561:
8562: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8563: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
8564: if test "${lt_cv_path_SED+set}" = set; then
8565: echo $ECHO_N "(cached) $ECHO_C" >&6
8566: else
8567: # Loop through the user's path and test for sed and gsed.
8568: # Then use that list of sed's as ones to test for truncation.
8569: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570: for as_dir in $PATH
8571: do
8572: IFS=$as_save_IFS
8573: test -z "$as_dir" && as_dir=.
8574: for lt_ac_prog in sed gsed; do
8575: for ac_exec_ext in '' $ac_executable_extensions; do
8576: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8577: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8578: fi
8579: done
8580: done
8581: done
8582: lt_ac_max=0
8583: lt_ac_count=0
8584: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8585: # along with /bin/sed that truncates output.
8586: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8587: test ! -f $lt_ac_sed && break
8588: cat /dev/null > conftest.in
8589: lt_ac_count=0
8590: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8591: # Check for GNU sed and select it if it is found.
8592: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8593: lt_cv_path_SED=$lt_ac_sed
8594: break
8595: fi
8596: while true; do
8597: cat conftest.in conftest.in >conftest.tmp
8598: mv conftest.tmp conftest.in
8599: cp conftest.in conftest.nl
8600: echo >>conftest.nl
8601: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8602: cmp -s conftest.out conftest.nl || break
8603: # 10000 chars as input seems more than enough
8604: test $lt_ac_count -gt 10 && break
8605: lt_ac_count=`expr $lt_ac_count + 1`
8606: if test $lt_ac_count -gt $lt_ac_max; then
8607: lt_ac_max=$lt_ac_count
8608: lt_cv_path_SED=$lt_ac_sed
8609: fi
8610: done
8611: done
8612: SED=$lt_cv_path_SED
8613:
8614: fi
8615:
8616: echo "$as_me:$LINENO: result: $SED" >&5
8617: echo "${ECHO_T}$SED" >&6
8618:
8619:
8620: # Check whether --with-gnu-ld or --without-gnu-ld was given.
8621: if test "${with_gnu_ld+set}" = set; then
8622: withval="$with_gnu_ld"
8623: test "$withval" = no || with_gnu_ld=yes
8624: else
8625: with_gnu_ld=no
8626: fi;
8627: ac_prog=ld
8628: if test "$GCC" = yes; then
8629: # Check if gcc -print-prog-name=ld gives a path.
8630: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8631: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8632: case $host in
8633: *-*-mingw*)
8634: # gcc leaves a trailing carriage return which upsets mingw
8635: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8636: *)
8637: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8638: esac
8639: case $ac_prog in
8640: # Accept absolute paths.
8641: [\\/]* | ?:[\\/]*)
8642: re_direlt='/[^/][^/]*/\.\./'
8643: # Canonicalize the path of ld
8644: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8645: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8646: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8647: done
8648: test -z "$LD" && LD="$ac_prog"
8649: ;;
8650: "")
8651: # If it fails, then pretend we aren't using GCC.
8652: ac_prog=ld
8653: ;;
8654: *)
8655: # If it is relative, then search for the first ld in PATH.
8656: with_gnu_ld=unknown
8657: ;;
8658: esac
8659: elif test "$with_gnu_ld" = yes; then
8660: echo "$as_me:$LINENO: checking for GNU ld" >&5
8661: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8662: else
8663: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8664: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8665: fi
8666: if test "${lt_cv_path_LD+set}" = set; then
8667: echo $ECHO_N "(cached) $ECHO_C" >&6
8668: else
8669: if test -z "$LD"; then
8670: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8671: for ac_dir in $PATH; do
8672: IFS="$lt_save_ifs"
8673: test -z "$ac_dir" && ac_dir=.
8674: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8675: lt_cv_path_LD="$ac_dir/$ac_prog"
8676: # Check to see if the program is GNU ld. I'd rather use --version,
8677: # but apparently some GNU ld's only accept -v.
8678: # Break only if it was the GNU/non-GNU ld that we prefer.
8679: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8680: *GNU* | *'with BFD'*)
8681: test "$with_gnu_ld" != no && break
8682: ;;
8683: *)
8684: test "$with_gnu_ld" != yes && break
8685: ;;
8686: esac
8687: fi
8688: done
8689: IFS="$lt_save_ifs"
8690: else
8691: lt_cv_path_LD="$LD" # Let the user override the test with a path.
8692: fi
8693: fi
8694:
8695: LD="$lt_cv_path_LD"
8696: if test -n "$LD"; then
8697: echo "$as_me:$LINENO: result: $LD" >&5
8698: echo "${ECHO_T}$LD" >&6
8699: else
8700: echo "$as_me:$LINENO: result: no" >&5
8701: echo "${ECHO_T}no" >&6
8702: fi
8703: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8704: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8705: { (exit 1); exit 1; }; }
8706: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8707: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8708: if test "${lt_cv_prog_gnu_ld+set}" = set; then
8709: echo $ECHO_N "(cached) $ECHO_C" >&6
8710: else
8711: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8712: case `"$LD" -v 2>&1 </dev/null` in
8713: *GNU* | *'with BFD'*)
8714: lt_cv_prog_gnu_ld=yes
8715: ;;
8716: *)
8717: lt_cv_prog_gnu_ld=no
8718: ;;
8719: esac
8720: fi
8721: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8722: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8723: with_gnu_ld=$lt_cv_prog_gnu_ld
8724:
8725:
8726: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8727: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
8728: if test "${lt_cv_ld_reload_flag+set}" = set; then
8729: echo $ECHO_N "(cached) $ECHO_C" >&6
8730: else
8731: lt_cv_ld_reload_flag='-r'
8732: fi
8733: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8734: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
8735: reload_flag=$lt_cv_ld_reload_flag
8736: case $reload_flag in
8737: "" | " "*) ;;
8738: *) reload_flag=" $reload_flag" ;;
8739: esac
8740: reload_cmds='$LD$reload_flag -o $output$reload_objs'
8741:
8742: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8743: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
8744: if test "${lt_cv_path_NM+set}" = set; then
8745: echo $ECHO_N "(cached) $ECHO_C" >&6
8746: else
8747: if test -n "$NM"; then
8748: # Let the user override the test.
8749: lt_cv_path_NM="$NM"
8750: else
8751: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8752: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8753: IFS="$lt_save_ifs"
8754: test -z "$ac_dir" && ac_dir=.
8755: tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8756: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8757: # Check to see if the nm accepts a BSD-compat flag.
8758: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8759: # nm: unknown option "B" ignored
8760: # Tru64's nm complains that /dev/null is an invalid object file
8761: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8762: */dev/null* | *'Invalid file or object type'*)
8763: lt_cv_path_NM="$tmp_nm -B"
8764: break
8765: ;;
8766: *)
8767: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8768: */dev/null*)
8769: lt_cv_path_NM="$tmp_nm -p"
8770: break
8771: ;;
8772: *)
8773: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8774: continue # so that we can try to find one that supports BSD flags
8775: ;;
8776: esac
8777: esac
8778: fi
8779: done
8780: IFS="$lt_save_ifs"
8781: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8782: fi
8783: fi
8784: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8785: echo "${ECHO_T}$lt_cv_path_NM" >&6
8786: NM="$lt_cv_path_NM"
8787:
8788: echo "$as_me:$LINENO: checking whether ln -s works" >&5
8789: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8790: LN_S=$as_ln_s
8791: if test "$LN_S" = "ln -s"; then
8792: echo "$as_me:$LINENO: result: yes" >&5
8793: echo "${ECHO_T}yes" >&6
8794: else
8795: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8796: echo "${ECHO_T}no, using $LN_S" >&6
8797: fi
8798:
8799: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8800: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
8801: if test "${lt_cv_deplibs_check_method+set}" = set; then
8802: echo $ECHO_N "(cached) $ECHO_C" >&6
8803: else
8804: lt_cv_file_magic_cmd='$MAGIC_CMD'
8805: lt_cv_file_magic_test_file=
8806: lt_cv_deplibs_check_method='unknown'
8807: # Need to set the preceding variable on all platforms that support
8808: # interlibrary dependencies.
8809: # 'none' -- dependencies not supported.
8810: # `unknown' -- same as none, but documents that we really don't know.
8811: # 'pass_all' -- all dependencies passed with no checks.
8812: # 'test_compile' -- check by making test program.
8813: # 'file_magic [[regex]]' -- check by looking for files in library path
8814: # which responds to the $file_magic_cmd with a given extended regex.
8815: # If you have `file' or equivalent on your system and you're not sure
8816: # whether `pass_all' will *always* work, you probably want this one.
8817:
8818: case $host_os in
8819: aix4* | aix5*)
8820: lt_cv_deplibs_check_method=pass_all
8821: ;;
8822:
8823: beos*)
8824: lt_cv_deplibs_check_method=pass_all
8825: ;;
8826:
8827: bsdi4*)
8828: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8829: lt_cv_file_magic_cmd='/usr/bin/file -L'
8830: lt_cv_file_magic_test_file=/shlib/libc.so
8831: ;;
8832:
8833: cygwin* | mingw* | pw32*)
8834: # win32_libid is a shell function defined in ltmain.sh
8835: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8836: lt_cv_file_magic_cmd='win32_libid'
8837: ;;
8838:
8839: darwin* | rhapsody*)
8840: # this will be overwritten by pass_all, but leave it in just in case
8841: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8842: lt_cv_file_magic_cmd='/usr/bin/file -L'
8843: case "$host_os" in
8844: rhapsody* | darwin1.[012])
8845: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
8846: ;;
8847: *) # Darwin 1.3 on
8848: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8849: ;;
8850: esac
8851: lt_cv_deplibs_check_method=pass_all
8852: ;;
8853:
8854: freebsd*)
8855: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8856: case $host_cpu in
8857: i*86 )
8858: # Not sure whether the presence of OpenBSD here was a mistake.
8859: # Let's accept both of them until this is cleared up.
8860: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
8861: lt_cv_file_magic_cmd=/usr/bin/file
8862: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8863: ;;
8864: esac
8865: else
8866: lt_cv_deplibs_check_method=pass_all
8867: fi
8868: ;;
8869:
8870: gnu*)
8871: lt_cv_deplibs_check_method=pass_all
8872: ;;
8873:
8874: hpux10.20* | hpux11*)
8875: lt_cv_file_magic_cmd=/usr/bin/file
8876: case "$host_cpu" in
8877: ia64*)
8878: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8879: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8880: ;;
8881: hppa*64*)
8882: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8883: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8884: ;;
8885: *)
8886: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8887: lt_cv_file_magic_test_file=/usr/lib/libc.sl
8888: ;;
8889: esac
8890: ;;
8891:
8892: irix5* | irix6* | nonstopux*)
8893: case $host_os in
8894: irix5* | nonstopux*)
8895: # this will be overridden with pass_all, but let us keep it just in case
8896: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8897: ;;
8898: *)
8899: case $LD in
8900: *-32|*"-32 ") libmagic=32-bit;;
8901: *-n32|*"-n32 ") libmagic=N32;;
8902: *-64|*"-64 ") libmagic=64-bit;;
8903: *) libmagic=never-match;;
8904: esac
8905: # this will be overridden with pass_all, but let us keep it just in case
8906: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
8907: ;;
8908: esac
8909: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8910: lt_cv_deplibs_check_method=pass_all
8911: ;;
8912:
8913: # This must be Linux ELF.
8914: linux*)
8915: case $host_cpu in
8916: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
8917: lt_cv_deplibs_check_method=pass_all ;;
8918: *)
8919: # glibc up to 2.1.1 does not perform some relocations on ARM
8920: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
8921: esac
8922: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8923: ;;
8924:
8925: netbsd*)
8926: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8927: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8928: else
8929: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8930: fi
8931: ;;
8932:
8933: newos6*)
8934: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8935: lt_cv_file_magic_cmd=/usr/bin/file
8936: lt_cv_file_magic_test_file=/usr/lib/libnls.so
8937: ;;
8938:
8939: nto-qnx)
8940: lt_cv_deplibs_check_method=unknown
8941: ;;
8942:
8943: openbsd*)
8944: lt_cv_file_magic_cmd=/usr/bin/file
8945: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8946: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8947: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
8948: else
8949: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8950: fi
8951: ;;
8952:
8953: osf3* | osf4* | osf5*)
8954: # this will be overridden with pass_all, but let us keep it just in case
8955: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8956: lt_cv_file_magic_test_file=/shlib/libc.so
8957: lt_cv_deplibs_check_method=pass_all
8958: ;;
8959:
8960: sco3.2v5*)
8961: lt_cv_deplibs_check_method=pass_all
8962: ;;
8963:
8964: solaris*)
8965: lt_cv_deplibs_check_method=pass_all
8966: lt_cv_file_magic_test_file=/lib/libc.so
8967: ;;
8968:
8969: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8970: case $host_vendor in
8971: motorola)
8972: 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]'
8973: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8974: ;;
8975: ncr)
8976: lt_cv_deplibs_check_method=pass_all
8977: ;;
8978: sequent)
8979: lt_cv_file_magic_cmd='/bin/file'
8980: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8981: ;;
8982: sni)
8983: lt_cv_file_magic_cmd='/bin/file'
8984: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8985: lt_cv_file_magic_test_file=/lib/libc.so
8986: ;;
8987: siemens)
8988: lt_cv_deplibs_check_method=pass_all
8989: ;;
8990: esac
8991: ;;
8992:
8993: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8994: lt_cv_deplibs_check_method=pass_all
8995: ;;
8996: esac
8997:
8998: fi
8999: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9000: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
9001: file_magic_cmd=$lt_cv_file_magic_cmd
9002: deplibs_check_method=$lt_cv_deplibs_check_method
9003: test -z "$deplibs_check_method" && deplibs_check_method=unknown
9004:
9005:
9006:
9007:
9008: # If no C compiler was specified, use CC.
9009: LTCC=${LTCC-"$CC"}
9010:
9011: # Allow CC to be a program name with arguments.
9012: compiler=$CC
9013:
9014: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9015: if test "${enable_libtool_lock+set}" = set; then
9016: enableval="$enable_libtool_lock"
9017:
9018: fi;
9019: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9020:
9021: # Some flags need to be propagated to the compiler or linker for good
9022: # libtool support.
9023: case $host in
9024: ia64-*-hpux*)
9025: # Find out which ABI we are using.
9026: echo 'int i;' > conftest.$ac_ext
9027: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028: (eval $ac_compile) 2>&5
9029: ac_status=$?
9030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031: (exit $ac_status); }; then
9032: case `/usr/bin/file conftest.$ac_objext` in
9033: *ELF-32*)
9034: HPUX_IA64_MODE="32"
9035: ;;
9036: *ELF-64*)
9037: HPUX_IA64_MODE="64"
9038: ;;
9039: esac
9040: fi
9041: rm -rf conftest*
9042: ;;
9043: *-*-irix6*)
9044: # Find out which ABI we are using.
1.1.1.2 ! root 9045: echo '#line 9045 "configure"' > conftest.$ac_ext
1.1 root 9046: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047: (eval $ac_compile) 2>&5
9048: ac_status=$?
9049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050: (exit $ac_status); }; then
9051: if test "$lt_cv_prog_gnu_ld" = yes; then
9052: case `/usr/bin/file conftest.$ac_objext` in
9053: *32-bit*)
9054: LD="${LD-ld} -melf32bsmip"
9055: ;;
9056: *N32*)
9057: LD="${LD-ld} -melf32bmipn32"
9058: ;;
9059: *64-bit*)
9060: LD="${LD-ld} -melf64bmip"
9061: ;;
9062: esac
9063: else
9064: case `/usr/bin/file conftest.$ac_objext` in
9065: *32-bit*)
9066: LD="${LD-ld} -32"
9067: ;;
9068: *N32*)
9069: LD="${LD-ld} -n32"
9070: ;;
9071: *64-bit*)
9072: LD="${LD-ld} -64"
9073: ;;
9074: esac
9075: fi
9076: fi
9077: rm -rf conftest*
9078: ;;
9079:
9080: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
9081: # Find out which ABI we are using.
9082: echo 'int i;' > conftest.$ac_ext
9083: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084: (eval $ac_compile) 2>&5
9085: ac_status=$?
9086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087: (exit $ac_status); }; then
9088: case "`/usr/bin/file conftest.o`" in
9089: *32-bit*)
9090: case $host in
9091: x86_64-*linux*)
9092: LD="${LD-ld} -m elf_i386"
9093: ;;
9094: ppc64-*linux*)
9095: LD="${LD-ld} -m elf32ppclinux"
9096: ;;
9097: s390x-*linux*)
9098: LD="${LD-ld} -m elf_s390"
9099: ;;
9100: sparc64-*linux*)
9101: LD="${LD-ld} -m elf32_sparc"
9102: ;;
9103: esac
9104: ;;
9105: *64-bit*)
9106: case $host in
9107: x86_64-*linux*)
9108: LD="${LD-ld} -m elf_x86_64"
9109: ;;
9110: ppc*-*linux*|powerpc*-*linux*)
9111: LD="${LD-ld} -m elf64ppc"
9112: ;;
9113: s390*-*linux*)
9114: LD="${LD-ld} -m elf64_s390"
9115: ;;
9116: sparc*-*linux*)
9117: LD="${LD-ld} -m elf64_sparc"
9118: ;;
9119: esac
9120: ;;
9121: esac
9122: fi
9123: rm -rf conftest*
9124: ;;
9125:
9126: *-*-sco3.2v5*)
9127: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9128: SAVE_CFLAGS="$CFLAGS"
9129: CFLAGS="$CFLAGS -belf"
9130: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9131: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
9132: if test "${lt_cv_cc_needs_belf+set}" = set; then
9133: echo $ECHO_N "(cached) $ECHO_C" >&6
9134: else
9135: ac_ext=c
9136: ac_cpp='$CPP $CPPFLAGS'
9137: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9140:
9141: cat >conftest.$ac_ext <<_ACEOF
9142: #line $LINENO "configure"
9143: /* confdefs.h. */
9144: _ACEOF
9145: cat confdefs.h >>conftest.$ac_ext
9146: cat >>conftest.$ac_ext <<_ACEOF
9147: /* end confdefs.h. */
9148:
9149: int
9150: main ()
9151: {
9152:
9153: ;
9154: return 0;
9155: }
9156: _ACEOF
9157: rm -f conftest.$ac_objext conftest$ac_exeext
9158: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159: (eval $ac_link) 2>&5
9160: ac_status=$?
9161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162: (exit $ac_status); } &&
9163: { ac_try='test -s conftest$ac_exeext'
9164: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165: (eval $ac_try) 2>&5
9166: ac_status=$?
9167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168: (exit $ac_status); }; }; then
9169: lt_cv_cc_needs_belf=yes
9170: else
9171: echo "$as_me: failed program was:" >&5
9172: sed 's/^/| /' conftest.$ac_ext >&5
9173:
9174: lt_cv_cc_needs_belf=no
9175: fi
9176: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9177: ac_ext=c
9178: ac_cpp='$CPP $CPPFLAGS'
9179: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9180: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9181: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9182:
9183: fi
9184: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9185: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
9186: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9187: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9188: CFLAGS="$SAVE_CFLAGS"
9189: fi
9190: ;;
9191:
9192: esac
9193:
9194: need_locks="$enable_libtool_lock"
9195:
9196:
9197:
9198: for ac_header in dlfcn.h
9199: do
9200: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9201: if eval "test \"\${$as_ac_Header+set}\" = set"; then
9202: echo "$as_me:$LINENO: checking for $ac_header" >&5
9203: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9204: if eval "test \"\${$as_ac_Header+set}\" = set"; then
9205: echo $ECHO_N "(cached) $ECHO_C" >&6
9206: fi
9207: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9208: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9209: else
9210: # Is the header compilable?
9211: echo "$as_me:$LINENO: checking $ac_header usability" >&5
9212: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9213: cat >conftest.$ac_ext <<_ACEOF
9214: #line $LINENO "configure"
9215: /* confdefs.h. */
9216: _ACEOF
9217: cat confdefs.h >>conftest.$ac_ext
9218: cat >>conftest.$ac_ext <<_ACEOF
9219: /* end confdefs.h. */
9220: $ac_includes_default
9221: #include <$ac_header>
9222: _ACEOF
9223: rm -f conftest.$ac_objext
9224: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9225: (eval $ac_compile) 2>&5
9226: ac_status=$?
9227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228: (exit $ac_status); } &&
9229: { ac_try='test -s conftest.$ac_objext'
9230: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231: (eval $ac_try) 2>&5
9232: ac_status=$?
9233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234: (exit $ac_status); }; }; then
9235: ac_header_compiler=yes
9236: else
9237: echo "$as_me: failed program was:" >&5
9238: sed 's/^/| /' conftest.$ac_ext >&5
9239:
9240: ac_header_compiler=no
9241: fi
9242: rm -f conftest.$ac_objext conftest.$ac_ext
9243: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9244: echo "${ECHO_T}$ac_header_compiler" >&6
9245:
9246: # Is the header present?
9247: echo "$as_me:$LINENO: checking $ac_header presence" >&5
9248: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9249: cat >conftest.$ac_ext <<_ACEOF
9250: #line $LINENO "configure"
9251: /* confdefs.h. */
9252: _ACEOF
9253: cat confdefs.h >>conftest.$ac_ext
9254: cat >>conftest.$ac_ext <<_ACEOF
9255: /* end confdefs.h. */
9256: #include <$ac_header>
9257: _ACEOF
9258: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9259: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9260: ac_status=$?
9261: grep -v '^ *+' conftest.er1 >conftest.err
9262: rm -f conftest.er1
9263: cat conftest.err >&5
9264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265: (exit $ac_status); } >/dev/null; then
9266: if test -s conftest.err; then
9267: ac_cpp_err=$ac_c_preproc_warn_flag
9268: else
9269: ac_cpp_err=
9270: fi
9271: else
9272: ac_cpp_err=yes
9273: fi
9274: if test -z "$ac_cpp_err"; then
9275: ac_header_preproc=yes
9276: else
9277: echo "$as_me: failed program was:" >&5
9278: sed 's/^/| /' conftest.$ac_ext >&5
9279:
9280: ac_header_preproc=no
9281: fi
9282: rm -f conftest.err conftest.$ac_ext
9283: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9284: echo "${ECHO_T}$ac_header_preproc" >&6
9285:
9286: # So? What about this header?
9287: case $ac_header_compiler:$ac_header_preproc in
9288: yes:no )
9289: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9290: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9291: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9292: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9293: (
9294: cat <<\_ASBOX
9295: ## ------------------------------------ ##
9296: ## Report this to [email protected]. ##
9297: ## ------------------------------------ ##
9298: _ASBOX
9299: ) |
9300: sed "s/^/$as_me: WARNING: /" >&2
9301: ;;
9302: no:yes )
9303: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9304: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9305: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9306: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9307: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9308: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9309: (
9310: cat <<\_ASBOX
9311: ## ------------------------------------ ##
9312: ## Report this to [email protected]. ##
9313: ## ------------------------------------ ##
9314: _ASBOX
9315: ) |
9316: sed "s/^/$as_me: WARNING: /" >&2
9317: ;;
9318: esac
9319: echo "$as_me:$LINENO: checking for $ac_header" >&5
9320: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321: if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322: echo $ECHO_N "(cached) $ECHO_C" >&6
9323: else
9324: eval "$as_ac_Header=$ac_header_preproc"
9325: fi
9326: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328:
9329: fi
9330: if test `eval echo '${'$as_ac_Header'}'` = yes; then
9331: cat >>confdefs.h <<_ACEOF
9332: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9333: _ACEOF
9334:
9335: fi
9336:
9337: done
9338:
9339: ac_ext=cc
9340: ac_cpp='$CXXCPP $CPPFLAGS'
9341: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9342: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9343: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9344: if test -n "$ac_tool_prefix"; then
9345: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9346: do
9347: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9348: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9349: echo "$as_me:$LINENO: checking for $ac_word" >&5
9350: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9351: if test "${ac_cv_prog_CXX+set}" = set; then
9352: echo $ECHO_N "(cached) $ECHO_C" >&6
9353: else
9354: if test -n "$CXX"; then
9355: ac_cv_prog_CXX="$CXX" # Let the user override the test.
9356: else
9357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358: for as_dir in $PATH
9359: do
9360: IFS=$as_save_IFS
9361: test -z "$as_dir" && as_dir=.
9362: for ac_exec_ext in '' $ac_executable_extensions; do
9363: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9365: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366: break 2
9367: fi
9368: done
9369: done
9370:
9371: fi
9372: fi
9373: CXX=$ac_cv_prog_CXX
9374: if test -n "$CXX"; then
9375: echo "$as_me:$LINENO: result: $CXX" >&5
9376: echo "${ECHO_T}$CXX" >&6
9377: else
9378: echo "$as_me:$LINENO: result: no" >&5
9379: echo "${ECHO_T}no" >&6
9380: fi
9381:
9382: test -n "$CXX" && break
9383: done
9384: fi
9385: if test -z "$CXX"; then
9386: ac_ct_CXX=$CXX
9387: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9388: do
9389: # Extract the first word of "$ac_prog", so it can be a program name with args.
9390: set dummy $ac_prog; ac_word=$2
9391: echo "$as_me:$LINENO: checking for $ac_word" >&5
9392: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9393: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9394: echo $ECHO_N "(cached) $ECHO_C" >&6
9395: else
9396: if test -n "$ac_ct_CXX"; then
9397: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9398: else
9399: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400: for as_dir in $PATH
9401: do
9402: IFS=$as_save_IFS
9403: test -z "$as_dir" && as_dir=.
9404: for ac_exec_ext in '' $ac_executable_extensions; do
9405: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9406: ac_cv_prog_ac_ct_CXX="$ac_prog"
9407: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9408: break 2
9409: fi
9410: done
9411: done
9412:
9413: fi
9414: fi
9415: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9416: if test -n "$ac_ct_CXX"; then
9417: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9418: echo "${ECHO_T}$ac_ct_CXX" >&6
9419: else
9420: echo "$as_me:$LINENO: result: no" >&5
9421: echo "${ECHO_T}no" >&6
9422: fi
9423:
9424: test -n "$ac_ct_CXX" && break
9425: done
9426: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
9427:
9428: CXX=$ac_ct_CXX
9429: fi
9430:
9431:
9432: # Provide some information about the compiler.
9433: echo "$as_me:$LINENO:" \
9434: "checking for C++ compiler version" >&5
9435: ac_compiler=`set X $ac_compile; echo $2`
9436: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9437: (eval $ac_compiler --version </dev/null >&5) 2>&5
9438: ac_status=$?
9439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440: (exit $ac_status); }
9441: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9442: (eval $ac_compiler -v </dev/null >&5) 2>&5
9443: ac_status=$?
9444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445: (exit $ac_status); }
9446: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9447: (eval $ac_compiler -V </dev/null >&5) 2>&5
9448: ac_status=$?
9449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450: (exit $ac_status); }
9451:
9452: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9453: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
9454: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9455: echo $ECHO_N "(cached) $ECHO_C" >&6
9456: else
9457: cat >conftest.$ac_ext <<_ACEOF
9458: #line $LINENO "configure"
9459: /* confdefs.h. */
9460: _ACEOF
9461: cat confdefs.h >>conftest.$ac_ext
9462: cat >>conftest.$ac_ext <<_ACEOF
9463: /* end confdefs.h. */
9464:
9465: int
9466: main ()
9467: {
9468: #ifndef __GNUC__
9469: choke me
9470: #endif
9471:
9472: ;
9473: return 0;
9474: }
9475: _ACEOF
9476: rm -f conftest.$ac_objext
9477: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9478: (eval $ac_compile) 2>&5
9479: ac_status=$?
9480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481: (exit $ac_status); } &&
9482: { ac_try='test -s conftest.$ac_objext'
9483: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484: (eval $ac_try) 2>&5
9485: ac_status=$?
9486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487: (exit $ac_status); }; }; then
9488: ac_compiler_gnu=yes
9489: else
9490: echo "$as_me: failed program was:" >&5
9491: sed 's/^/| /' conftest.$ac_ext >&5
9492:
9493: ac_compiler_gnu=no
9494: fi
9495: rm -f conftest.$ac_objext conftest.$ac_ext
9496: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9497:
9498: fi
9499: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9500: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
9501: GXX=`test $ac_compiler_gnu = yes && echo yes`
9502: ac_test_CXXFLAGS=${CXXFLAGS+set}
9503: ac_save_CXXFLAGS=$CXXFLAGS
9504: CXXFLAGS="-g"
9505: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9506: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
9507: if test "${ac_cv_prog_cxx_g+set}" = set; then
9508: echo $ECHO_N "(cached) $ECHO_C" >&6
9509: else
9510: cat >conftest.$ac_ext <<_ACEOF
9511: #line $LINENO "configure"
9512: /* confdefs.h. */
9513: _ACEOF
9514: cat confdefs.h >>conftest.$ac_ext
9515: cat >>conftest.$ac_ext <<_ACEOF
9516: /* end confdefs.h. */
9517:
9518: int
9519: main ()
9520: {
9521:
9522: ;
9523: return 0;
9524: }
9525: _ACEOF
9526: rm -f conftest.$ac_objext
9527: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528: (eval $ac_compile) 2>&5
9529: ac_status=$?
9530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531: (exit $ac_status); } &&
9532: { ac_try='test -s conftest.$ac_objext'
9533: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534: (eval $ac_try) 2>&5
9535: ac_status=$?
9536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537: (exit $ac_status); }; }; then
9538: ac_cv_prog_cxx_g=yes
9539: else
9540: echo "$as_me: failed program was:" >&5
9541: sed 's/^/| /' conftest.$ac_ext >&5
9542:
9543: ac_cv_prog_cxx_g=no
9544: fi
9545: rm -f conftest.$ac_objext conftest.$ac_ext
9546: fi
9547: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9548: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
9549: if test "$ac_test_CXXFLAGS" = set; then
9550: CXXFLAGS=$ac_save_CXXFLAGS
9551: elif test $ac_cv_prog_cxx_g = yes; then
9552: if test "$GXX" = yes; then
9553: CXXFLAGS="-g -O2"
9554: else
9555: CXXFLAGS="-g"
9556: fi
9557: else
9558: if test "$GXX" = yes; then
9559: CXXFLAGS="-O2"
9560: else
9561: CXXFLAGS=
9562: fi
9563: fi
9564: for ac_declaration in \
9565: ''\
9566: '#include <stdlib.h>' \
9567: 'extern "C" void std::exit (int) throw (); using std::exit;' \
9568: 'extern "C" void std::exit (int); using std::exit;' \
9569: 'extern "C" void exit (int) throw ();' \
9570: 'extern "C" void exit (int);' \
9571: 'void exit (int);'
9572: do
9573: cat >conftest.$ac_ext <<_ACEOF
9574: #line $LINENO "configure"
9575: /* confdefs.h. */
9576: _ACEOF
9577: cat confdefs.h >>conftest.$ac_ext
9578: cat >>conftest.$ac_ext <<_ACEOF
9579: /* end confdefs.h. */
9580: #include <stdlib.h>
9581: $ac_declaration
9582: int
9583: main ()
9584: {
9585: exit (42);
9586: ;
9587: return 0;
9588: }
9589: _ACEOF
9590: rm -f conftest.$ac_objext
9591: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592: (eval $ac_compile) 2>&5
9593: ac_status=$?
9594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595: (exit $ac_status); } &&
9596: { ac_try='test -s conftest.$ac_objext'
9597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598: (eval $ac_try) 2>&5
9599: ac_status=$?
9600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601: (exit $ac_status); }; }; then
9602: :
9603: else
9604: echo "$as_me: failed program was:" >&5
9605: sed 's/^/| /' conftest.$ac_ext >&5
9606:
9607: continue
9608: fi
9609: rm -f conftest.$ac_objext conftest.$ac_ext
9610: cat >conftest.$ac_ext <<_ACEOF
9611: #line $LINENO "configure"
9612: /* confdefs.h. */
9613: _ACEOF
9614: cat confdefs.h >>conftest.$ac_ext
9615: cat >>conftest.$ac_ext <<_ACEOF
9616: /* end confdefs.h. */
9617: $ac_declaration
9618: int
9619: main ()
9620: {
9621: exit (42);
9622: ;
9623: return 0;
9624: }
9625: _ACEOF
9626: rm -f conftest.$ac_objext
9627: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9628: (eval $ac_compile) 2>&5
9629: ac_status=$?
9630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631: (exit $ac_status); } &&
9632: { ac_try='test -s conftest.$ac_objext'
9633: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634: (eval $ac_try) 2>&5
9635: ac_status=$?
9636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637: (exit $ac_status); }; }; then
9638: break
9639: else
9640: echo "$as_me: failed program was:" >&5
9641: sed 's/^/| /' conftest.$ac_ext >&5
9642:
9643: fi
9644: rm -f conftest.$ac_objext conftest.$ac_ext
9645: done
9646: rm -f conftest*
9647: if test -n "$ac_declaration"; then
9648: echo '#ifdef __cplusplus' >>confdefs.h
9649: echo $ac_declaration >>confdefs.h
9650: echo '#endif' >>confdefs.h
9651: fi
9652:
9653: ac_ext=cc
9654: ac_cpp='$CXXCPP $CPPFLAGS'
9655: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9658:
9659: depcc="$CXX" am_compiler_list=
9660:
9661: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9662: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9663: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9664: echo $ECHO_N "(cached) $ECHO_C" >&6
9665: else
9666: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9667: # We make a subdir and do the tests there. Otherwise we can end up
9668: # making bogus files that we don't know about and never remove. For
9669: # instance it was reported that on HP-UX the gcc test will end up
9670: # making a dummy file named `D' -- because `-MD' means `put the output
9671: # in D'.
9672: mkdir conftest.dir
9673: # Copy depcomp to subdir because otherwise we won't find it if we're
9674: # using a relative directory.
9675: cp "$am_depcomp" conftest.dir
9676: cd conftest.dir
9677:
9678: am_cv_CXX_dependencies_compiler_type=none
9679: if test "$am_compiler_list" = ""; then
9680: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9681: fi
9682: for depmode in $am_compiler_list; do
9683: # We need to recreate these files for each test, as the compiler may
9684: # overwrite some of them when testing with obscure command lines.
9685: # This happens at least with the AIX C compiler.
9686: echo '#include "conftest.h"' > conftest.c
9687: echo 'int i;' > conftest.h
9688: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
9689:
9690: case $depmode in
9691: nosideeffect)
9692: # after this tag, mechanisms are not by side-effect, so they'll
9693: # only be used when explicitly requested
9694: if test "x$enable_dependency_tracking" = xyes; then
9695: continue
9696: else
9697: break
9698: fi
9699: ;;
9700: none) break ;;
9701: esac
9702: # We check with `-c' and `-o' for the sake of the "dashmstdout"
9703: # mode. It turns out that the SunPro C++ compiler does not properly
9704: # handle `-M -o', and we need to detect this.
9705: if depmode=$depmode \
9706: source=conftest.c object=conftest.o \
9707: depfile=conftest.Po tmpdepfile=conftest.TPo \
9708: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
9709: grep conftest.h conftest.Po > /dev/null 2>&1 &&
9710: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9711: am_cv_CXX_dependencies_compiler_type=$depmode
9712: break
9713: fi
9714: done
9715:
9716: cd ..
9717: rm -rf conftest.dir
9718: else
9719: am_cv_CXX_dependencies_compiler_type=none
9720: fi
9721:
9722: fi
9723: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9724: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
9725: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9726:
9727:
9728:
9729: if
9730: test "x$enable_dependency_tracking" != xno \
9731: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9732: am__fastdepCXX_TRUE=
9733: am__fastdepCXX_FALSE='#'
9734: else
9735: am__fastdepCXX_TRUE='#'
9736: am__fastdepCXX_FALSE=
9737: fi
9738:
9739:
9740: ac_ext=cc
9741: ac_cpp='$CXXCPP $CPPFLAGS'
9742: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9743: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9744: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9745: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9746: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
9747: if test -z "$CXXCPP"; then
9748: if test "${ac_cv_prog_CXXCPP+set}" = set; then
9749: echo $ECHO_N "(cached) $ECHO_C" >&6
9750: else
9751: # Double quotes because CXXCPP needs to be expanded
9752: for CXXCPP in "$CXX -E" "/lib/cpp"
9753: do
9754: ac_preproc_ok=false
9755: for ac_cxx_preproc_warn_flag in '' yes
9756: do
9757: # Use a header file that comes with gcc, so configuring glibc
9758: # with a fresh cross-compiler works.
9759: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760: # <limits.h> exists even on freestanding compilers.
9761: # On the NeXT, cc -E runs the code through the compiler's parser,
9762: # not just through cpp. "Syntax error" is here to catch this case.
9763: cat >conftest.$ac_ext <<_ACEOF
9764: #line $LINENO "configure"
9765: /* confdefs.h. */
9766: _ACEOF
9767: cat confdefs.h >>conftest.$ac_ext
9768: cat >>conftest.$ac_ext <<_ACEOF
9769: /* end confdefs.h. */
9770: #ifdef __STDC__
9771: # include <limits.h>
9772: #else
9773: # include <assert.h>
9774: #endif
9775: Syntax error
9776: _ACEOF
9777: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9778: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9779: ac_status=$?
9780: grep -v '^ *+' conftest.er1 >conftest.err
9781: rm -f conftest.er1
9782: cat conftest.err >&5
9783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784: (exit $ac_status); } >/dev/null; then
9785: if test -s conftest.err; then
9786: ac_cpp_err=$ac_cxx_preproc_warn_flag
9787: else
9788: ac_cpp_err=
9789: fi
9790: else
9791: ac_cpp_err=yes
9792: fi
9793: if test -z "$ac_cpp_err"; then
9794: :
9795: else
9796: echo "$as_me: failed program was:" >&5
9797: sed 's/^/| /' conftest.$ac_ext >&5
9798:
9799: # Broken: fails on valid input.
9800: continue
9801: fi
9802: rm -f conftest.err conftest.$ac_ext
9803:
9804: # OK, works on sane cases. Now check whether non-existent headers
9805: # can be detected and how.
9806: cat >conftest.$ac_ext <<_ACEOF
9807: #line $LINENO "configure"
9808: /* confdefs.h. */
9809: _ACEOF
9810: cat confdefs.h >>conftest.$ac_ext
9811: cat >>conftest.$ac_ext <<_ACEOF
9812: /* end confdefs.h. */
9813: #include <ac_nonexistent.h>
9814: _ACEOF
9815: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9816: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9817: ac_status=$?
9818: grep -v '^ *+' conftest.er1 >conftest.err
9819: rm -f conftest.er1
9820: cat conftest.err >&5
9821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822: (exit $ac_status); } >/dev/null; then
9823: if test -s conftest.err; then
9824: ac_cpp_err=$ac_cxx_preproc_warn_flag
9825: else
9826: ac_cpp_err=
9827: fi
9828: else
9829: ac_cpp_err=yes
9830: fi
9831: if test -z "$ac_cpp_err"; then
9832: # Broken: success on invalid input.
9833: continue
9834: else
9835: echo "$as_me: failed program was:" >&5
9836: sed 's/^/| /' conftest.$ac_ext >&5
9837:
9838: # Passes both tests.
9839: ac_preproc_ok=:
9840: break
9841: fi
9842: rm -f conftest.err conftest.$ac_ext
9843:
9844: done
9845: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9846: rm -f conftest.err conftest.$ac_ext
9847: if $ac_preproc_ok; then
9848: break
9849: fi
9850:
9851: done
9852: ac_cv_prog_CXXCPP=$CXXCPP
9853:
9854: fi
9855: CXXCPP=$ac_cv_prog_CXXCPP
9856: else
9857: ac_cv_prog_CXXCPP=$CXXCPP
9858: fi
9859: echo "$as_me:$LINENO: result: $CXXCPP" >&5
9860: echo "${ECHO_T}$CXXCPP" >&6
9861: ac_preproc_ok=false
9862: for ac_cxx_preproc_warn_flag in '' yes
9863: do
9864: # Use a header file that comes with gcc, so configuring glibc
9865: # with a fresh cross-compiler works.
9866: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9867: # <limits.h> exists even on freestanding compilers.
9868: # On the NeXT, cc -E runs the code through the compiler's parser,
9869: # not just through cpp. "Syntax error" is here to catch this case.
9870: cat >conftest.$ac_ext <<_ACEOF
9871: #line $LINENO "configure"
9872: /* confdefs.h. */
9873: _ACEOF
9874: cat confdefs.h >>conftest.$ac_ext
9875: cat >>conftest.$ac_ext <<_ACEOF
9876: /* end confdefs.h. */
9877: #ifdef __STDC__
9878: # include <limits.h>
9879: #else
9880: # include <assert.h>
9881: #endif
9882: Syntax error
9883: _ACEOF
9884: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9885: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9886: ac_status=$?
9887: grep -v '^ *+' conftest.er1 >conftest.err
9888: rm -f conftest.er1
9889: cat conftest.err >&5
9890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891: (exit $ac_status); } >/dev/null; then
9892: if test -s conftest.err; then
9893: ac_cpp_err=$ac_cxx_preproc_warn_flag
9894: else
9895: ac_cpp_err=
9896: fi
9897: else
9898: ac_cpp_err=yes
9899: fi
9900: if test -z "$ac_cpp_err"; then
9901: :
9902: else
9903: echo "$as_me: failed program was:" >&5
9904: sed 's/^/| /' conftest.$ac_ext >&5
9905:
9906: # Broken: fails on valid input.
9907: continue
9908: fi
9909: rm -f conftest.err conftest.$ac_ext
9910:
9911: # OK, works on sane cases. Now check whether non-existent headers
9912: # can be detected and how.
9913: cat >conftest.$ac_ext <<_ACEOF
9914: #line $LINENO "configure"
9915: /* confdefs.h. */
9916: _ACEOF
9917: cat confdefs.h >>conftest.$ac_ext
9918: cat >>conftest.$ac_ext <<_ACEOF
9919: /* end confdefs.h. */
9920: #include <ac_nonexistent.h>
9921: _ACEOF
9922: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9923: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9924: ac_status=$?
9925: grep -v '^ *+' conftest.er1 >conftest.err
9926: rm -f conftest.er1
9927: cat conftest.err >&5
9928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929: (exit $ac_status); } >/dev/null; then
9930: if test -s conftest.err; then
9931: ac_cpp_err=$ac_cxx_preproc_warn_flag
9932: else
9933: ac_cpp_err=
9934: fi
9935: else
9936: ac_cpp_err=yes
9937: fi
9938: if test -z "$ac_cpp_err"; then
9939: # Broken: success on invalid input.
9940: continue
9941: else
9942: echo "$as_me: failed program was:" >&5
9943: sed 's/^/| /' conftest.$ac_ext >&5
9944:
9945: # Passes both tests.
9946: ac_preproc_ok=:
9947: break
9948: fi
9949: rm -f conftest.err conftest.$ac_ext
9950:
9951: done
9952: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9953: rm -f conftest.err conftest.$ac_ext
9954: if $ac_preproc_ok; then
9955: :
9956: else
9957: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9958: See \`config.log' for more details." >&5
9959: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9960: See \`config.log' for more details." >&2;}
9961: { (exit 1); exit 1; }; }
9962: fi
9963:
9964: ac_ext=cc
9965: ac_cpp='$CXXCPP $CPPFLAGS'
9966: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9967: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9968: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9969:
9970:
9971: ac_ext=f
9972: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9973: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9974: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9975: if test -n "$ac_tool_prefix"; then
9976: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
9977: do
9978: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9979: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9980: echo "$as_me:$LINENO: checking for $ac_word" >&5
9981: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9982: if test "${ac_cv_prog_F77+set}" = set; then
9983: echo $ECHO_N "(cached) $ECHO_C" >&6
9984: else
9985: if test -n "$F77"; then
9986: ac_cv_prog_F77="$F77" # Let the user override the test.
9987: else
9988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989: for as_dir in $PATH
9990: do
9991: IFS=$as_save_IFS
9992: test -z "$as_dir" && as_dir=.
9993: for ac_exec_ext in '' $ac_executable_extensions; do
9994: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9996: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9997: break 2
9998: fi
9999: done
10000: done
10001:
10002: fi
10003: fi
10004: F77=$ac_cv_prog_F77
10005: if test -n "$F77"; then
10006: echo "$as_me:$LINENO: result: $F77" >&5
10007: echo "${ECHO_T}$F77" >&6
10008: else
10009: echo "$as_me:$LINENO: result: no" >&5
10010: echo "${ECHO_T}no" >&6
10011: fi
10012:
10013: test -n "$F77" && break
10014: done
10015: fi
10016: if test -z "$F77"; then
10017: ac_ct_F77=$F77
10018: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
10019: do
10020: # Extract the first word of "$ac_prog", so it can be a program name with args.
10021: set dummy $ac_prog; ac_word=$2
10022: echo "$as_me:$LINENO: checking for $ac_word" >&5
10023: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10024: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10025: echo $ECHO_N "(cached) $ECHO_C" >&6
10026: else
10027: if test -n "$ac_ct_F77"; then
10028: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10029: else
10030: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031: for as_dir in $PATH
10032: do
10033: IFS=$as_save_IFS
10034: test -z "$as_dir" && as_dir=.
10035: for ac_exec_ext in '' $ac_executable_extensions; do
10036: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10037: ac_cv_prog_ac_ct_F77="$ac_prog"
10038: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039: break 2
10040: fi
10041: done
10042: done
10043:
10044: fi
10045: fi
10046: ac_ct_F77=$ac_cv_prog_ac_ct_F77
10047: if test -n "$ac_ct_F77"; then
10048: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10049: echo "${ECHO_T}$ac_ct_F77" >&6
10050: else
10051: echo "$as_me:$LINENO: result: no" >&5
10052: echo "${ECHO_T}no" >&6
10053: fi
10054:
10055: test -n "$ac_ct_F77" && break
10056: done
10057:
10058: F77=$ac_ct_F77
10059: fi
10060:
10061:
10062: # Provide some information about the compiler.
1.1.1.2 ! root 10063: echo "$as_me:10063:" \
1.1 root 10064: "checking for Fortran 77 compiler version" >&5
10065: ac_compiler=`set X $ac_compile; echo $2`
10066: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10067: (eval $ac_compiler --version </dev/null >&5) 2>&5
10068: ac_status=$?
10069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070: (exit $ac_status); }
10071: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10072: (eval $ac_compiler -v </dev/null >&5) 2>&5
10073: ac_status=$?
10074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075: (exit $ac_status); }
10076: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10077: (eval $ac_compiler -V </dev/null >&5) 2>&5
10078: ac_status=$?
10079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080: (exit $ac_status); }
10081:
10082: # If we don't use `.F' as extension, the preprocessor is not run on the
10083: # input file.
10084: ac_save_ext=$ac_ext
10085: ac_ext=F
10086: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10087: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10088: if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10089: echo $ECHO_N "(cached) $ECHO_C" >&6
10090: else
10091: cat >conftest.$ac_ext <<_ACEOF
10092: program main
10093: #ifndef __GNUC__
10094: choke me
10095: #endif
10096:
10097: end
10098: _ACEOF
10099: rm -f conftest.$ac_objext
10100: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101: (eval $ac_compile) 2>&5
10102: ac_status=$?
10103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104: (exit $ac_status); } &&
10105: { ac_try='test -s conftest.$ac_objext'
10106: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107: (eval $ac_try) 2>&5
10108: ac_status=$?
10109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110: (exit $ac_status); }; }; then
10111: ac_compiler_gnu=yes
10112: else
10113: echo "$as_me: failed program was:" >&5
10114: sed 's/^/| /' conftest.$ac_ext >&5
10115:
10116: ac_compiler_gnu=no
10117: fi
10118: rm -f conftest.$ac_objext conftest.$ac_ext
10119: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10120:
10121: fi
10122: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10123: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10124: ac_ext=$ac_save_ext
10125: G77=`test $ac_compiler_gnu = yes && echo yes`
10126: ac_test_FFLAGS=${FFLAGS+set}
10127: ac_save_FFLAGS=$FFLAGS
10128: FFLAGS=
10129: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10130: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10131: if test "${ac_cv_prog_f77_g+set}" = set; then
10132: echo $ECHO_N "(cached) $ECHO_C" >&6
10133: else
10134: FFLAGS=-g
10135: cat >conftest.$ac_ext <<_ACEOF
10136: program main
10137:
10138: end
10139: _ACEOF
10140: rm -f conftest.$ac_objext
10141: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142: (eval $ac_compile) 2>&5
10143: ac_status=$?
10144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145: (exit $ac_status); } &&
10146: { ac_try='test -s conftest.$ac_objext'
10147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148: (eval $ac_try) 2>&5
10149: ac_status=$?
10150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151: (exit $ac_status); }; }; then
10152: ac_cv_prog_f77_g=yes
10153: else
10154: echo "$as_me: failed program was:" >&5
10155: sed 's/^/| /' conftest.$ac_ext >&5
10156:
10157: ac_cv_prog_f77_g=no
10158: fi
10159: rm -f conftest.$ac_objext conftest.$ac_ext
10160:
10161: fi
10162: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10163: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10164: if test "$ac_test_FFLAGS" = set; then
10165: FFLAGS=$ac_save_FFLAGS
10166: elif test $ac_cv_prog_f77_g = yes; then
10167: if test "$G77" = yes; then
10168: FFLAGS="-g -O2"
10169: else
10170: FFLAGS="-g"
10171: fi
10172: else
10173: if test "$G77" = yes; then
10174: FFLAGS="-O2"
10175: else
10176: FFLAGS=
10177: fi
10178: fi
10179: ac_ext=c
10180: ac_cpp='$CPP $CPPFLAGS'
10181: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10184:
10185:
10186:
10187: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10188:
10189: # find the maximum length of command line arguments
10190: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10191: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10192: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10193: echo $ECHO_N "(cached) $ECHO_C" >&6
10194: else
10195: i=0
10196: testring="ABCD"
10197:
10198: case $build_os in
10199: msdosdjgpp*)
10200: # On DJGPP, this test can blow up pretty badly due to problems in libc
10201: # (any single argument exceeding 2000 bytes causes a buffer overrun
10202: # during glob expansion). Even if it were fixed, the result of this
10203: # check would be larger than it should be.
10204: lt_cv_sys_max_cmd_len=12288; # 12K is about right
10205: ;;
10206:
10207: gnu*)
10208: # Under GNU Hurd, this test is not required because there is
10209: # no limit to the length of command line arguments.
10210: # Libtool will interpret -1 as no limit whatsoever
10211: lt_cv_sys_max_cmd_len=-1;
10212: ;;
10213:
10214: cygwin* | mingw*)
10215: # On Win9x/ME, this test blows up -- it succeeds, but takes
10216: # about 5 minutes as the teststring grows exponentially.
10217: # Worse, since 9x/ME are not pre-emptively multitasking,
10218: # you end up with a "frozen" computer, even though with patience
10219: # the test eventually succeeds (with a max line length of 256k).
10220: # Instead, let's just punt: use the minimum linelength reported by
10221: # all of the supported platforms: 8192 (on NT/2K/XP).
10222: lt_cv_sys_max_cmd_len=8192;
10223: ;;
10224:
10225: *)
10226: # If test is not a shell built-in, we'll probably end up computing a
10227: # maximum length that is only half of the actual maximum length, but
10228: # we can't tell.
10229: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
10230: = "XX$testring") >/dev/null 2>&1 &&
10231: new_result=`expr "X$testring" : ".*" 2>&1` &&
10232: lt_cv_sys_max_cmd_len=$new_result &&
10233: test $i != 17 # 1/2 MB should be enough
10234: do
10235: i=`expr $i + 1`
10236: testring=$testring$testring
10237: done
10238: testring=
10239: # Add a significant safety factor because C++ compilers can tack on massive
10240: # amounts of additional arguments before passing them to the linker.
10241: # It appears as though 1/2 is a usable value.
10242: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10243: ;;
10244: esac
10245:
10246: fi
10247:
10248: if test -n $lt_cv_sys_max_cmd_len ; then
10249: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10250: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10251: else
10252: echo "$as_me:$LINENO: result: none" >&5
10253: echo "${ECHO_T}none" >&6
10254: fi
10255:
10256:
10257:
10258:
10259: # Check for command to grab the raw symbol name followed by C symbol from nm.
10260: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10261: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10262: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10263: echo $ECHO_N "(cached) $ECHO_C" >&6
10264: else
10265:
10266: # These are sane defaults that work on at least a few old systems.
10267: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10268:
10269: # Character class describing NM global symbol codes.
10270: symcode='[BCDEGRST]'
10271:
10272: # Regexp to match symbols that can be accessed directly from C.
10273: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10274:
10275: # Transform the above into a raw symbol and a C symbol.
10276: symxfrm='\1 \2\3 \3'
10277:
10278: # Transform an extracted symbol line into a proper C declaration
10279: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10280:
10281: # Transform an extracted symbol line into symbol name and symbol address
10282: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10283:
10284: # Define system-specific variables.
10285: case $host_os in
10286: aix*)
10287: symcode='[BCDT]'
10288: ;;
10289: cygwin* | mingw* | pw32*)
10290: symcode='[ABCDGISTW]'
10291: ;;
10292: hpux*) # Its linker distinguishes data from code symbols
10293: if test "$host_cpu" = ia64; then
10294: symcode='[ABCDEGRST]'
10295: fi
10296: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10297: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10298: ;;
10299: irix* | nonstopux*)
10300: symcode='[BCDEGRST]'
10301: ;;
10302: osf*)
10303: symcode='[BCDEGQRST]'
10304: ;;
10305: solaris* | sysv5*)
10306: symcode='[BDT]'
10307: ;;
10308: sysv4)
10309: symcode='[DFNSTU]'
10310: ;;
10311: esac
10312:
10313: # Handle CRLF in mingw tool chain
10314: opt_cr=
10315: case $build_os in
10316: mingw*)
10317: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10318: ;;
10319: esac
10320:
10321: # If we're using GNU nm, then use its standard symbol codes.
10322: case `$NM -V 2>&1` in
10323: *GNU* | *'with BFD'*)
10324: symcode='[ABCDGISTW]' ;;
10325: esac
10326:
10327: # Try without a prefix undercore, then with it.
10328: for ac_symprfx in "" "_"; do
10329:
10330: # Write the raw and C identifiers.
10331: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10332:
10333: # Check to see that the pipe works correctly.
10334: pipe_works=no
10335:
10336: rm -f conftest*
10337: cat > conftest.$ac_ext <<EOF
10338: #ifdef __cplusplus
10339: extern "C" {
10340: #endif
10341: char nm_test_var;
10342: void nm_test_func(){}
10343: #ifdef __cplusplus
10344: }
10345: #endif
10346: int main(){nm_test_var='a';nm_test_func();return(0);}
10347: EOF
10348:
10349: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10350: (eval $ac_compile) 2>&5
10351: ac_status=$?
10352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353: (exit $ac_status); }; then
10354: # Now try to grab the symbols.
10355: nlist=conftest.nm
10356: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10357: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10358: ac_status=$?
10359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360: (exit $ac_status); } && test -s "$nlist"; then
10361: # Try sorting and uniquifying the output.
10362: if sort "$nlist" | uniq > "$nlist"T; then
10363: mv -f "$nlist"T "$nlist"
10364: else
10365: rm -f "$nlist"T
10366: fi
10367:
10368: # Make sure that we snagged all the symbols we need.
10369: if grep ' nm_test_var$' "$nlist" >/dev/null; then
10370: if grep ' nm_test_func$' "$nlist" >/dev/null; then
10371: cat <<EOF > conftest.$ac_ext
10372: #ifdef __cplusplus
10373: extern "C" {
10374: #endif
10375:
10376: EOF
10377: # Now generate the symbol file.
10378: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10379:
10380: cat <<EOF >> conftest.$ac_ext
10381: #if defined (__STDC__) && __STDC__
10382: # define lt_ptr_t void *
10383: #else
10384: # define lt_ptr_t char *
10385: # define const
10386: #endif
10387:
10388: /* The mapping between symbol names and symbols. */
10389: const struct {
10390: const char *name;
10391: lt_ptr_t address;
10392: }
10393: lt_preloaded_symbols[] =
10394: {
10395: EOF
10396: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10397: cat <<\EOF >> conftest.$ac_ext
10398: {0, (lt_ptr_t) 0}
10399: };
10400:
10401: #ifdef __cplusplus
10402: }
10403: #endif
10404: EOF
10405: # Now try linking the two files.
10406: mv conftest.$ac_objext conftstm.$ac_objext
10407: lt_save_LIBS="$LIBS"
10408: lt_save_CFLAGS="$CFLAGS"
10409: LIBS="conftstm.$ac_objext"
10410: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10411: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412: (eval $ac_link) 2>&5
10413: ac_status=$?
10414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415: (exit $ac_status); } && test -s conftest${ac_exeext}; then
10416: pipe_works=yes
10417: fi
10418: LIBS="$lt_save_LIBS"
10419: CFLAGS="$lt_save_CFLAGS"
10420: else
10421: echo "cannot find nm_test_func in $nlist" >&5
10422: fi
10423: else
10424: echo "cannot find nm_test_var in $nlist" >&5
10425: fi
10426: else
10427: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10428: fi
10429: else
10430: echo "$progname: failed program was:" >&5
10431: cat conftest.$ac_ext >&5
10432: fi
10433: rm -f conftest* conftst*
10434:
10435: # Do not use the global_symbol_pipe unless it works.
10436: if test "$pipe_works" = yes; then
10437: break
10438: else
10439: lt_cv_sys_global_symbol_pipe=
10440: fi
10441: done
10442:
10443: fi
10444:
10445: if test -z "$lt_cv_sys_global_symbol_pipe"; then
10446: lt_cv_sys_global_symbol_to_cdecl=
10447: fi
10448: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10449: echo "$as_me:$LINENO: result: failed" >&5
10450: echo "${ECHO_T}failed" >&6
10451: else
10452: echo "$as_me:$LINENO: result: ok" >&5
10453: echo "${ECHO_T}ok" >&6
10454: fi
10455:
10456: echo "$as_me:$LINENO: checking for objdir" >&5
10457: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
10458: if test "${lt_cv_objdir+set}" = set; then
10459: echo $ECHO_N "(cached) $ECHO_C" >&6
10460: else
10461: rm -f .libs 2>/dev/null
10462: mkdir .libs 2>/dev/null
10463: if test -d .libs; then
10464: lt_cv_objdir=.libs
10465: else
10466: # MS-DOS does not allow filenames that begin with a dot.
10467: lt_cv_objdir=_libs
10468: fi
10469: rmdir .libs 2>/dev/null
10470: fi
10471: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10472: echo "${ECHO_T}$lt_cv_objdir" >&6
10473: objdir=$lt_cv_objdir
10474:
10475:
10476:
10477:
10478:
10479: case $host_os in
10480: aix3*)
10481: # AIX sometimes has problems with the GCC collect2 program. For some
10482: # reason, if we set the COLLECT_NAMES environment variable, the problems
10483: # vanish in a puff of smoke.
10484: if test "X${COLLECT_NAMES+set}" != Xset; then
10485: COLLECT_NAMES=
10486: export COLLECT_NAMES
10487: fi
10488: ;;
10489: esac
10490:
10491: # Sed substitution that helps us do robust quoting. It backslashifies
10492: # metacharacters that are still active within double-quoted strings.
10493: Xsed='sed -e s/^X//'
10494: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
10495:
10496: # Same as above, but do not quote variable references.
10497: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
10498:
10499: # Sed substitution to delay expansion of an escaped shell variable in a
10500: # double_quote_subst'ed string.
10501: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10502:
10503: # Sed substitution to avoid accidental globbing in evaled expressions
10504: no_glob_subst='s/\*/\\\*/g'
10505:
10506: # Constants:
10507: rm="rm -f"
10508:
10509: # Global variables:
10510: default_ofile=libtool
10511: can_build_shared=yes
10512:
10513: # All known linkers require a `.a' archive for static linking (except M$VC,
10514: # which needs '.lib').
10515: libext=a
10516: ltmain="$ac_aux_dir/ltmain.sh"
10517: ofile="$default_ofile"
10518: with_gnu_ld="$lt_cv_prog_gnu_ld"
10519:
10520: if test -n "$ac_tool_prefix"; then
10521: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10522: set dummy ${ac_tool_prefix}ar; ac_word=$2
10523: echo "$as_me:$LINENO: checking for $ac_word" >&5
10524: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10525: if test "${ac_cv_prog_AR+set}" = set; then
10526: echo $ECHO_N "(cached) $ECHO_C" >&6
10527: else
10528: if test -n "$AR"; then
10529: ac_cv_prog_AR="$AR" # Let the user override the test.
10530: else
10531: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532: for as_dir in $PATH
10533: do
10534: IFS=$as_save_IFS
10535: test -z "$as_dir" && as_dir=.
10536: for ac_exec_ext in '' $ac_executable_extensions; do
10537: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538: ac_cv_prog_AR="${ac_tool_prefix}ar"
10539: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10540: break 2
10541: fi
10542: done
10543: done
10544:
10545: fi
10546: fi
10547: AR=$ac_cv_prog_AR
10548: if test -n "$AR"; then
10549: echo "$as_me:$LINENO: result: $AR" >&5
10550: echo "${ECHO_T}$AR" >&6
10551: else
10552: echo "$as_me:$LINENO: result: no" >&5
10553: echo "${ECHO_T}no" >&6
10554: fi
10555:
10556: fi
10557: if test -z "$ac_cv_prog_AR"; then
10558: ac_ct_AR=$AR
10559: # Extract the first word of "ar", so it can be a program name with args.
10560: set dummy ar; ac_word=$2
10561: echo "$as_me:$LINENO: checking for $ac_word" >&5
10562: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10563: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10564: echo $ECHO_N "(cached) $ECHO_C" >&6
10565: else
10566: if test -n "$ac_ct_AR"; then
10567: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10568: else
10569: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570: for as_dir in $PATH
10571: do
10572: IFS=$as_save_IFS
10573: test -z "$as_dir" && as_dir=.
10574: for ac_exec_ext in '' $ac_executable_extensions; do
10575: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576: ac_cv_prog_ac_ct_AR="ar"
10577: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10578: break 2
10579: fi
10580: done
10581: done
10582:
10583: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
10584: fi
10585: fi
10586: ac_ct_AR=$ac_cv_prog_ac_ct_AR
10587: if test -n "$ac_ct_AR"; then
10588: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10589: echo "${ECHO_T}$ac_ct_AR" >&6
10590: else
10591: echo "$as_me:$LINENO: result: no" >&5
10592: echo "${ECHO_T}no" >&6
10593: fi
10594:
10595: AR=$ac_ct_AR
10596: else
10597: AR="$ac_cv_prog_AR"
10598: fi
10599:
10600: if test -n "$ac_tool_prefix"; then
10601: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10602: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10603: echo "$as_me:$LINENO: checking for $ac_word" >&5
10604: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10605: if test "${ac_cv_prog_RANLIB+set}" = set; then
10606: echo $ECHO_N "(cached) $ECHO_C" >&6
10607: else
10608: if test -n "$RANLIB"; then
10609: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10610: else
10611: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612: for as_dir in $PATH
10613: do
10614: IFS=$as_save_IFS
10615: test -z "$as_dir" && as_dir=.
10616: for ac_exec_ext in '' $ac_executable_extensions; do
10617: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10618: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10619: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10620: break 2
10621: fi
10622: done
10623: done
10624:
10625: fi
10626: fi
10627: RANLIB=$ac_cv_prog_RANLIB
10628: if test -n "$RANLIB"; then
10629: echo "$as_me:$LINENO: result: $RANLIB" >&5
10630: echo "${ECHO_T}$RANLIB" >&6
10631: else
10632: echo "$as_me:$LINENO: result: no" >&5
10633: echo "${ECHO_T}no" >&6
10634: fi
10635:
10636: fi
10637: if test -z "$ac_cv_prog_RANLIB"; then
10638: ac_ct_RANLIB=$RANLIB
10639: # Extract the first word of "ranlib", so it can be a program name with args.
10640: set dummy ranlib; ac_word=$2
10641: echo "$as_me:$LINENO: checking for $ac_word" >&5
10642: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10643: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10644: echo $ECHO_N "(cached) $ECHO_C" >&6
10645: else
10646: if test -n "$ac_ct_RANLIB"; then
10647: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10648: else
10649: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650: for as_dir in $PATH
10651: do
10652: IFS=$as_save_IFS
10653: test -z "$as_dir" && as_dir=.
10654: for ac_exec_ext in '' $ac_executable_extensions; do
10655: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656: ac_cv_prog_ac_ct_RANLIB="ranlib"
10657: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10658: break 2
10659: fi
10660: done
10661: done
10662:
10663: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10664: fi
10665: fi
10666: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10667: if test -n "$ac_ct_RANLIB"; then
10668: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10669: echo "${ECHO_T}$ac_ct_RANLIB" >&6
10670: else
10671: echo "$as_me:$LINENO: result: no" >&5
10672: echo "${ECHO_T}no" >&6
10673: fi
10674:
10675: RANLIB=$ac_ct_RANLIB
10676: else
10677: RANLIB="$ac_cv_prog_RANLIB"
10678: fi
10679:
10680: if test -n "$ac_tool_prefix"; then
10681: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10682: set dummy ${ac_tool_prefix}strip; ac_word=$2
10683: echo "$as_me:$LINENO: checking for $ac_word" >&5
10684: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10685: if test "${ac_cv_prog_STRIP+set}" = set; then
10686: echo $ECHO_N "(cached) $ECHO_C" >&6
10687: else
10688: if test -n "$STRIP"; then
10689: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10690: else
10691: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692: for as_dir in $PATH
10693: do
10694: IFS=$as_save_IFS
10695: test -z "$as_dir" && as_dir=.
10696: for ac_exec_ext in '' $ac_executable_extensions; do
10697: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10698: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10699: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10700: break 2
10701: fi
10702: done
10703: done
10704:
10705: fi
10706: fi
10707: STRIP=$ac_cv_prog_STRIP
10708: if test -n "$STRIP"; then
10709: echo "$as_me:$LINENO: result: $STRIP" >&5
10710: echo "${ECHO_T}$STRIP" >&6
10711: else
10712: echo "$as_me:$LINENO: result: no" >&5
10713: echo "${ECHO_T}no" >&6
10714: fi
10715:
10716: fi
10717: if test -z "$ac_cv_prog_STRIP"; then
10718: ac_ct_STRIP=$STRIP
10719: # Extract the first word of "strip", so it can be a program name with args.
10720: set dummy strip; ac_word=$2
10721: echo "$as_me:$LINENO: checking for $ac_word" >&5
10722: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10723: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10724: echo $ECHO_N "(cached) $ECHO_C" >&6
10725: else
10726: if test -n "$ac_ct_STRIP"; then
10727: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10728: else
10729: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730: for as_dir in $PATH
10731: do
10732: IFS=$as_save_IFS
10733: test -z "$as_dir" && as_dir=.
10734: for ac_exec_ext in '' $ac_executable_extensions; do
10735: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736: ac_cv_prog_ac_ct_STRIP="strip"
10737: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738: break 2
10739: fi
10740: done
10741: done
10742:
10743: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10744: fi
10745: fi
10746: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10747: if test -n "$ac_ct_STRIP"; then
10748: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10749: echo "${ECHO_T}$ac_ct_STRIP" >&6
10750: else
10751: echo "$as_me:$LINENO: result: no" >&5
10752: echo "${ECHO_T}no" >&6
10753: fi
10754:
10755: STRIP=$ac_ct_STRIP
10756: else
10757: STRIP="$ac_cv_prog_STRIP"
10758: fi
10759:
10760:
10761: old_CC="$CC"
10762: old_CFLAGS="$CFLAGS"
10763:
10764: # Set sane defaults for various variables
10765: test -z "$AR" && AR=ar
10766: test -z "$AR_FLAGS" && AR_FLAGS=cru
10767: test -z "$AS" && AS=as
10768: test -z "$CC" && CC=cc
10769: test -z "$LTCC" && LTCC=$CC
10770: test -z "$DLLTOOL" && DLLTOOL=dlltool
10771: test -z "$LD" && LD=ld
10772: test -z "$LN_S" && LN_S="ln -s"
10773: test -z "$MAGIC_CMD" && MAGIC_CMD=file
10774: test -z "$NM" && NM=nm
10775: test -z "$SED" && SED=sed
10776: test -z "$OBJDUMP" && OBJDUMP=objdump
10777: test -z "$RANLIB" && RANLIB=:
10778: test -z "$STRIP" && STRIP=:
10779: test -z "$ac_objext" && ac_objext=o
10780:
10781: # Determine commands to create old-style static archives.
10782: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10783: old_postinstall_cmds='chmod 644 $oldlib'
10784: old_postuninstall_cmds=
10785:
10786: if test -n "$RANLIB"; then
10787: case $host_os in
10788: openbsd*)
10789: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
10790: ;;
10791: *)
10792: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
10793: ;;
10794: esac
10795: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10796: fi
10797:
10798: # Only perform the check for file, if the check method requires it
10799: case $deplibs_check_method in
10800: file_magic*)
10801: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10802: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10803: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
10804: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10805: echo $ECHO_N "(cached) $ECHO_C" >&6
10806: else
10807: case $MAGIC_CMD in
10808: [\\/*] | ?:[\\/]*)
10809: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10810: ;;
10811: *)
10812: lt_save_MAGIC_CMD="$MAGIC_CMD"
10813: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10814: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10815: for ac_dir in $ac_dummy; do
10816: IFS="$lt_save_ifs"
10817: test -z "$ac_dir" && ac_dir=.
10818: if test -f $ac_dir/${ac_tool_prefix}file; then
10819: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10820: if test -n "$file_magic_test_file"; then
10821: case $deplibs_check_method in
10822: "file_magic "*)
10823: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10824: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10825: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10826: $EGREP "$file_magic_regex" > /dev/null; then
10827: :
10828: else
10829: cat <<EOF 1>&2
10830:
10831: *** Warning: the command libtool uses to detect shared libraries,
10832: *** $file_magic_cmd, produces output that libtool cannot recognize.
10833: *** The result is that libtool may fail to recognize shared libraries
10834: *** as such. This will affect the creation of libtool libraries that
10835: *** depend on shared libraries, but programs linked with such libtool
10836: *** libraries will work regardless of this problem. Nevertheless, you
10837: *** may want to report the problem to your system manager and/or to
10838: *** [email protected]
10839:
10840: EOF
10841: fi ;;
10842: esac
10843: fi
10844: break
10845: fi
10846: done
10847: IFS="$lt_save_ifs"
10848: MAGIC_CMD="$lt_save_MAGIC_CMD"
10849: ;;
10850: esac
10851: fi
10852:
10853: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10854: if test -n "$MAGIC_CMD"; then
10855: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10856: echo "${ECHO_T}$MAGIC_CMD" >&6
10857: else
10858: echo "$as_me:$LINENO: result: no" >&5
10859: echo "${ECHO_T}no" >&6
10860: fi
10861:
10862: if test -z "$lt_cv_path_MAGIC_CMD"; then
10863: if test -n "$ac_tool_prefix"; then
10864: echo "$as_me:$LINENO: checking for file" >&5
10865: echo $ECHO_N "checking for file... $ECHO_C" >&6
10866: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10867: echo $ECHO_N "(cached) $ECHO_C" >&6
10868: else
10869: case $MAGIC_CMD in
10870: [\\/*] | ?:[\\/]*)
10871: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10872: ;;
10873: *)
10874: lt_save_MAGIC_CMD="$MAGIC_CMD"
10875: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10876: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10877: for ac_dir in $ac_dummy; do
10878: IFS="$lt_save_ifs"
10879: test -z "$ac_dir" && ac_dir=.
10880: if test -f $ac_dir/file; then
10881: lt_cv_path_MAGIC_CMD="$ac_dir/file"
10882: if test -n "$file_magic_test_file"; then
10883: case $deplibs_check_method in
10884: "file_magic "*)
10885: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10886: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10887: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10888: $EGREP "$file_magic_regex" > /dev/null; then
10889: :
10890: else
10891: cat <<EOF 1>&2
10892:
10893: *** Warning: the command libtool uses to detect shared libraries,
10894: *** $file_magic_cmd, produces output that libtool cannot recognize.
10895: *** The result is that libtool may fail to recognize shared libraries
10896: *** as such. This will affect the creation of libtool libraries that
10897: *** depend on shared libraries, but programs linked with such libtool
10898: *** libraries will work regardless of this problem. Nevertheless, you
10899: *** may want to report the problem to your system manager and/or to
10900: *** [email protected]
10901:
10902: EOF
10903: fi ;;
10904: esac
10905: fi
10906: break
10907: fi
10908: done
10909: IFS="$lt_save_ifs"
10910: MAGIC_CMD="$lt_save_MAGIC_CMD"
10911: ;;
10912: esac
10913: fi
10914:
10915: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10916: if test -n "$MAGIC_CMD"; then
10917: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10918: echo "${ECHO_T}$MAGIC_CMD" >&6
10919: else
10920: echo "$as_me:$LINENO: result: no" >&5
10921: echo "${ECHO_T}no" >&6
10922: fi
10923:
10924: else
10925: MAGIC_CMD=:
10926: fi
10927: fi
10928:
10929: fi
10930: ;;
10931: esac
10932:
10933: enable_dlopen=yes
10934: enable_win32_dll=no
10935:
10936: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10937: if test "${enable_libtool_lock+set}" = set; then
10938: enableval="$enable_libtool_lock"
10939:
10940: fi;
10941: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10942:
10943:
10944: # Check whether --with-pic or --without-pic was given.
10945: if test "${with_pic+set}" = set; then
10946: withval="$with_pic"
10947: pic_mode="$withval"
10948: else
10949: pic_mode=default
10950: fi;
10951: test -z "$pic_mode" && pic_mode=default
10952:
10953: # Use C for the default configuration in the libtool script
10954: tagname=
10955: lt_save_CC="$CC"
10956: ac_ext=c
10957: ac_cpp='$CPP $CPPFLAGS'
10958: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10961:
10962:
10963: # Source file extension for C test sources.
10964: ac_ext=c
10965:
10966: # Object file extension for compiled C test sources.
10967: objext=o
10968: objext=$objext
10969:
10970: # Code to be used in simple compile tests
10971: lt_simple_compile_test_code="int some_variable = 0;\n"
10972:
10973: # Code to be used in simple link tests
10974: lt_simple_link_test_code='int main(){return(0);}\n'
10975:
10976:
10977: # If no C compiler was specified, use CC.
10978: LTCC=${LTCC-"$CC"}
10979:
10980: # Allow CC to be a program name with arguments.
10981: compiler=$CC
10982:
10983:
10984: #
10985: # Check for any special shared library compilation flags.
10986: #
10987: lt_prog_cc_shlib=
10988: if test "$GCC" = no; then
10989: case $host_os in
10990: sco3.2v5*)
10991: lt_prog_cc_shlib='-belf'
10992: ;;
10993: esac
10994: fi
10995: if test -n "$lt_prog_cc_shlib"; then
10996: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10997: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10998: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
10999: else
11000: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11001: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11002: lt_cv_prog_cc_can_build_shared=no
11003: fi
11004: fi
11005:
11006:
11007: #
11008: # Check to make sure the static flag actually works.
11009: #
11010: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11011: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11012: if test "${lt_prog_compiler_static_works+set}" = set; then
11013: echo $ECHO_N "(cached) $ECHO_C" >&6
11014: else
11015: lt_prog_compiler_static_works=no
11016: save_LDFLAGS="$LDFLAGS"
11017: LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11018: printf "$lt_simple_link_test_code" > conftest.$ac_ext
11019: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11020: # The compiler can only warn and ignore the option if not recognized
11021: # So say no if there are warnings
11022: if test -s conftest.err; then
11023: # Append any errors to the config.log.
11024: cat conftest.err 1>&5
11025: else
11026: lt_prog_compiler_static_works=yes
11027: fi
11028: fi
11029: $rm conftest*
11030: LDFLAGS="$save_LDFLAGS"
11031:
11032: fi
11033: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11034: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11035:
11036: if test x"$lt_prog_compiler_static_works" = xyes; then
11037: :
11038: else
11039: lt_prog_compiler_static=
11040: fi
11041:
11042:
11043:
11044:
11045: lt_prog_compiler_no_builtin_flag=
11046:
11047: if test "$GCC" = yes; then
11048: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11049:
11050: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11051: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11052: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11053: echo $ECHO_N "(cached) $ECHO_C" >&6
11054: else
11055: lt_cv_prog_compiler_rtti_exceptions=no
11056: ac_outfile=conftest.$ac_objext
11057: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11058: lt_compiler_flag="-fno-rtti -fno-exceptions"
11059: # Insert the option either (1) after the last *FLAGS variable, or
11060: # (2) before a word containing "conftest.", or (3) at the end.
11061: # Note that $ac_compile itself does not contain backslashes and begins
11062: # with a dollar sign (not a hyphen), so the echo should work correctly.
11063: # The option is referenced via a variable to avoid confusing sed.
11064: lt_compile=`echo "$ac_compile" | $SED \
11065: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11066: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11067: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 11068: (eval echo "\"\$as_me:11068: $lt_compile\"" >&5)
1.1 root 11069: (eval "$lt_compile" 2>conftest.err)
11070: ac_status=$?
11071: cat conftest.err >&5
1.1.1.2 ! root 11072: echo "$as_me:11072: \$? = $ac_status" >&5
1.1 root 11073: if (exit $ac_status) && test -s "$ac_outfile"; then
11074: # The compiler can only warn and ignore the option if not recognized
11075: # So say no if there are warnings
11076: if test ! -s conftest.err; then
11077: lt_cv_prog_compiler_rtti_exceptions=yes
11078: fi
11079: fi
11080: $rm conftest*
11081:
11082: fi
11083: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11084: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11085:
11086: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11087: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11088: else
11089: :
11090: fi
11091:
11092: fi
11093:
11094: lt_prog_compiler_wl=
11095: lt_prog_compiler_pic=
11096: lt_prog_compiler_static=
11097:
11098: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11099: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11100:
11101: if test "$GCC" = yes; then
11102: lt_prog_compiler_wl='-Wl,'
11103: lt_prog_compiler_static='-static'
11104:
11105: case $host_os in
11106: aix*)
11107: # All AIX code is PIC.
11108: if test "$host_cpu" = ia64; then
11109: # AIX 5 now supports IA64 processor
11110: lt_prog_compiler_static='-Bstatic'
11111: fi
11112: ;;
11113:
11114: amigaos*)
11115: # FIXME: we need at least 68020 code to build shared libraries, but
11116: # adding the `-m68020' flag to GCC prevents building anything better,
11117: # like `-m68040'.
11118: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11119: ;;
11120:
11121: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11122: # PIC is the default for these OSes.
11123: ;;
11124:
11125: mingw* | pw32* | os2*)
11126: # This hack is so that the source file can tell whether it is being
11127: # built for inclusion in a dll (and should export symbols for example).
11128: lt_prog_compiler_pic='-DDLL_EXPORT'
11129: ;;
11130:
11131: darwin* | rhapsody*)
11132: # PIC is the default on this platform
11133: # Common symbols not allowed in MH_DYLIB files
11134: lt_prog_compiler_pic='-fno-common'
11135: ;;
11136:
11137: msdosdjgpp*)
11138: # Just because we use GCC doesn't mean we suddenly get shared libraries
11139: # on systems that don't support them.
11140: lt_prog_compiler_can_build_shared=no
11141: enable_shared=no
11142: ;;
11143:
11144: sysv4*MP*)
11145: if test -d /usr/nec; then
11146: lt_prog_compiler_pic=-Kconform_pic
11147: fi
11148: ;;
11149:
11150: hpux*)
11151: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11152: # not for PA HP-UX.
11153: case "$host_cpu" in
11154: hppa*64*|ia64*)
11155: # +Z the default
11156: ;;
11157: *)
11158: lt_prog_compiler_pic='-fPIC'
11159: ;;
11160: esac
11161: ;;
11162:
11163: *)
11164: lt_prog_compiler_pic='-fPIC'
11165: ;;
11166: esac
11167: else
11168: # PORTME Check for flag to pass linker flags through the system compiler.
11169: case $host_os in
11170: aix*)
11171: lt_prog_compiler_wl='-Wl,'
11172: if test "$host_cpu" = ia64; then
11173: # AIX 5 now supports IA64 processor
11174: lt_prog_compiler_static='-Bstatic'
11175: else
11176: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11177: fi
11178: ;;
11179:
11180: mingw* | pw32* | os2*)
11181: # This hack is so that the source file can tell whether it is being
11182: # built for inclusion in a dll (and should export symbols for example).
11183: lt_prog_compiler_pic='-DDLL_EXPORT'
11184: ;;
11185:
11186: hpux9* | hpux10* | hpux11*)
11187: lt_prog_compiler_wl='-Wl,'
11188: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11189: # not for PA HP-UX.
11190: case "$host_cpu" in
11191: hppa*64*|ia64*)
11192: # +Z the default
11193: ;;
11194: *)
11195: lt_prog_compiler_pic='+Z'
11196: ;;
11197: esac
11198: # Is there a better lt_prog_compiler_static that works with the bundled CC?
11199: lt_prog_compiler_static='${wl}-a ${wl}archive'
11200: ;;
11201:
11202: irix5* | irix6* | nonstopux*)
11203: lt_prog_compiler_wl='-Wl,'
11204: # PIC (with -KPIC) is the default.
11205: lt_prog_compiler_static='-non_shared'
11206: ;;
11207:
11208: newsos6)
11209: lt_prog_compiler_pic='-KPIC'
11210: lt_prog_compiler_static='-Bstatic'
11211: ;;
11212:
11213: linux*)
11214: case $CC in
11215: icc|ecc)
11216: lt_prog_compiler_wl='-Wl,'
11217: lt_prog_compiler_pic='-KPIC'
11218: lt_prog_compiler_static='-static'
11219: ;;
11220: ccc)
11221: lt_prog_compiler_wl='-Wl,'
11222: # All Alpha code is PIC.
11223: lt_prog_compiler_static='-non_shared'
11224: ;;
11225: esac
11226: ;;
11227:
11228: osf3* | osf4* | osf5*)
11229: lt_prog_compiler_wl='-Wl,'
11230: # All OSF/1 code is PIC.
11231: lt_prog_compiler_static='-non_shared'
11232: ;;
11233:
11234: sco3.2v5*)
11235: lt_prog_compiler_pic='-Kpic'
11236: lt_prog_compiler_static='-dn'
11237: ;;
11238:
11239: solaris*)
11240: lt_prog_compiler_wl='-Wl,'
11241: lt_prog_compiler_pic='-KPIC'
11242: lt_prog_compiler_static='-Bstatic'
11243: ;;
11244:
11245: sunos4*)
11246: lt_prog_compiler_wl='-Qoption ld '
11247: lt_prog_compiler_pic='-PIC'
11248: lt_prog_compiler_static='-Bstatic'
11249: ;;
11250:
11251: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11252: lt_prog_compiler_wl='-Wl,'
11253: lt_prog_compiler_pic='-KPIC'
11254: lt_prog_compiler_static='-Bstatic'
11255: ;;
11256:
11257: sysv4*MP*)
11258: if test -d /usr/nec ;then
11259: lt_prog_compiler_pic='-Kconform_pic'
11260: lt_prog_compiler_static='-Bstatic'
11261: fi
11262: ;;
11263:
11264: uts4*)
11265: lt_prog_compiler_pic='-pic'
11266: lt_prog_compiler_static='-Bstatic'
11267: ;;
11268:
11269: *)
11270: lt_prog_compiler_can_build_shared=no
11271: ;;
11272: esac
11273: fi
11274:
11275: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11276: echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11277:
11278: #
11279: # Check to make sure the PIC flag actually works.
11280: #
11281: if test -n "$lt_prog_compiler_pic"; then
11282: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11283: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11284: if test "${lt_prog_compiler_pic_works+set}" = set; then
11285: echo $ECHO_N "(cached) $ECHO_C" >&6
11286: else
11287: lt_prog_compiler_pic_works=no
11288: ac_outfile=conftest.$ac_objext
11289: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11290: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11291: # Insert the option either (1) after the last *FLAGS variable, or
11292: # (2) before a word containing "conftest.", or (3) at the end.
11293: # Note that $ac_compile itself does not contain backslashes and begins
11294: # with a dollar sign (not a hyphen), so the echo should work correctly.
11295: # The option is referenced via a variable to avoid confusing sed.
11296: lt_compile=`echo "$ac_compile" | $SED \
11297: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11298: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11299: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 11300: (eval echo "\"\$as_me:11300: $lt_compile\"" >&5)
1.1 root 11301: (eval "$lt_compile" 2>conftest.err)
11302: ac_status=$?
11303: cat conftest.err >&5
1.1.1.2 ! root 11304: echo "$as_me:11304: \$? = $ac_status" >&5
1.1 root 11305: if (exit $ac_status) && test -s "$ac_outfile"; then
11306: # The compiler can only warn and ignore the option if not recognized
11307: # So say no if there are warnings
11308: if test ! -s conftest.err; then
11309: lt_prog_compiler_pic_works=yes
11310: fi
11311: fi
11312: $rm conftest*
11313:
11314: fi
11315: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11316: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11317:
11318: if test x"$lt_prog_compiler_pic_works" = xyes; then
11319: case $lt_prog_compiler_pic in
11320: "" | " "*) ;;
11321: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11322: esac
11323: else
11324: lt_prog_compiler_pic=
11325: lt_prog_compiler_can_build_shared=no
11326: fi
11327:
11328: fi
11329: case "$host_os" in
11330: # For platforms which do not support PIC, -DPIC is meaningless:
11331: *djgpp*)
11332: lt_prog_compiler_pic=
11333: ;;
11334: *)
11335: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11336: ;;
11337: esac
11338:
11339: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11340: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11341: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11342: echo $ECHO_N "(cached) $ECHO_C" >&6
11343: else
11344: lt_cv_prog_compiler_c_o=no
11345: $rm -r conftest 2>/dev/null
11346: mkdir conftest
11347: cd conftest
11348: mkdir out
11349: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11350:
11351: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11352: # that will create temporary files in the current directory regardless of
11353: # the output directory. Thus, making CWD read-only will cause this test
11354: # to fail, enabling locking or at least warning the user not to do parallel
11355: # builds.
11356: chmod -w .
11357:
11358: lt_compiler_flag="-o out/conftest2.$ac_objext"
11359: # Insert the option either (1) after the last *FLAGS variable, or
11360: # (2) before a word containing "conftest.", or (3) at the end.
11361: # Note that $ac_compile itself does not contain backslashes and begins
11362: # with a dollar sign (not a hyphen), so the echo should work correctly.
11363: lt_compile=`echo "$ac_compile" | $SED \
11364: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11365: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11366: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 11367: (eval echo "\"\$as_me:11367: $lt_compile\"" >&5)
1.1 root 11368: (eval "$lt_compile" 2>out/conftest.err)
11369: ac_status=$?
11370: cat out/conftest.err >&5
1.1.1.2 ! root 11371: echo "$as_me:11371: \$? = $ac_status" >&5
1.1 root 11372: if (exit $ac_status) && test -s out/conftest2.$ac_objext
11373: then
11374: # The compiler can only warn and ignore the option if not recognized
11375: # So say no if there are warnings
11376: if test ! -s out/conftest.err; then
11377: lt_cv_prog_compiler_c_o=yes
11378: fi
11379: fi
11380: chmod u+w .
11381: $rm conftest* out/*
11382: rmdir out
11383: cd ..
11384: rmdir conftest
11385: $rm conftest*
11386:
11387: fi
11388: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11389: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11390:
11391:
11392: hard_links="nottested"
11393: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11394: # do not overwrite the value of need_locks provided by the user
11395: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11396: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11397: hard_links=yes
11398: $rm conftest*
11399: ln conftest.a conftest.b 2>/dev/null && hard_links=no
11400: touch conftest.a
11401: ln conftest.a conftest.b 2>&5 || hard_links=no
11402: ln conftest.a conftest.b 2>/dev/null && hard_links=no
11403: echo "$as_me:$LINENO: result: $hard_links" >&5
11404: echo "${ECHO_T}$hard_links" >&6
11405: if test "$hard_links" = no; then
11406: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11407: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11408: need_locks=warn
11409: fi
11410: else
11411: need_locks=no
11412: fi
11413:
11414: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11415: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11416:
11417: runpath_var=
11418: allow_undefined_flag=
11419: enable_shared_with_static_runtimes=no
11420: archive_cmds=
11421: archive_expsym_cmds=
11422: old_archive_From_new_cmds=
11423: old_archive_from_expsyms_cmds=
11424: export_dynamic_flag_spec=
11425: whole_archive_flag_spec=
11426: thread_safe_flag_spec=
11427: hardcode_libdir_flag_spec=
11428: hardcode_libdir_flag_spec_ld=
11429: hardcode_libdir_separator=
11430: hardcode_direct=no
11431: hardcode_minus_L=no
11432: hardcode_shlibpath_var=unsupported
11433: link_all_deplibs=unknown
11434: hardcode_automatic=no
11435: module_cmds=
11436: module_expsym_cmds=
11437: always_export_symbols=no
11438: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11439: # include_expsyms should be a list of space-separated symbols to be *always*
11440: # included in the symbol list
11441: include_expsyms=
11442: # exclude_expsyms can be an extended regexp of symbols to exclude
11443: # it will be wrapped by ` (' and `)$', so one must not match beginning or
11444: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11445: # as well as any symbol that contains `d'.
11446: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
11447: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11448: # platforms (ab)use it in PIC code, but their linkers get confused if
11449: # the symbol is explicitly referenced. Since portable code cannot
11450: # rely on this symbol name, it's probably fine to never include it in
11451: # preloaded symbol tables.
11452: extract_expsyms_cmds=
11453:
11454: case $host_os in
11455: cygwin* | mingw* | pw32*)
11456: # FIXME: the MSVC++ port hasn't been tested in a loooong time
11457: # When not using gcc, we currently assume that we are using
11458: # Microsoft Visual C++.
11459: if test "$GCC" != yes; then
11460: with_gnu_ld=no
11461: fi
11462: ;;
11463: openbsd*)
11464: with_gnu_ld=no
11465: ;;
11466: esac
11467:
11468: ld_shlibs=yes
11469: if test "$with_gnu_ld" = yes; then
11470: # If archive_cmds runs LD, not CC, wlarc should be empty
11471: wlarc='${wl}'
11472:
11473: # See if GNU ld supports shared libraries.
11474: case $host_os in
11475: aix3* | aix4* | aix5*)
11476: # On AIX/PPC, the GNU linker is very broken
11477: if test "$host_cpu" != ia64; then
11478: ld_shlibs=no
11479: cat <<EOF 1>&2
11480:
11481: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11482: *** to be unable to reliably create shared libraries on AIX.
11483: *** Therefore, libtool is disabling shared libraries support. If you
11484: *** really care for shared libraries, you may want to modify your PATH
11485: *** so that a non-GNU linker is found, and then restart.
11486:
11487: EOF
11488: fi
11489: ;;
11490:
11491: amigaos*)
11492: 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)'
11493: hardcode_libdir_flag_spec='-L$libdir'
11494: hardcode_minus_L=yes
11495:
11496: # Samuel A. Falvo II <[email protected]> reports
11497: # that the semantics of dynamic libraries on AmigaOS, at least up
11498: # to version 4, is to share data among multiple programs linked
11499: # with the same dynamic library. Since this doesn't match the
11500: # behavior of shared libraries on other platforms, we can't use
11501: # them.
11502: ld_shlibs=no
11503: ;;
11504:
11505: beos*)
11506: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11507: allow_undefined_flag=unsupported
11508: # Joseph Beckenbach <[email protected]> says some releases of gcc
11509: # support --undefined. This deserves some investigation. FIXME
11510: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11511: else
11512: ld_shlibs=no
11513: fi
11514: ;;
11515:
11516: cygwin* | mingw* | pw32*)
11517: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11518: # as there is no search path for DLLs.
11519: hardcode_libdir_flag_spec='-L$libdir'
11520: allow_undefined_flag=unsupported
11521: always_export_symbols=no
11522: enable_shared_with_static_runtimes=yes
11523: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11524:
11525: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11526: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11527: # If the export-symbols file already is a .def file (1st line
11528: # is EXPORTS), use it as is; otherwise, prepend...
11529: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11530: cp $export_symbols $output_objdir/$soname.def;
11531: else
11532: echo EXPORTS > $output_objdir/$soname.def;
11533: cat $export_symbols >> $output_objdir/$soname.def;
11534: fi~
11535: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11536: else
11537: ld_shlibs=no
11538: fi
11539: ;;
11540:
11541: netbsd*)
11542: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11543: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11544: wlarc=
11545: else
11546: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11547: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11548: fi
11549: ;;
11550:
11551: solaris* | sysv5*)
11552: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11553: ld_shlibs=no
11554: cat <<EOF 1>&2
11555:
11556: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11557: *** create shared libraries on Solaris systems. Therefore, libtool
11558: *** is disabling shared libraries support. We urge you to upgrade GNU
11559: *** binutils to release 2.9.1 or newer. Another option is to modify
11560: *** your PATH or compiler configuration so that the native linker is
11561: *** used, and then restart.
11562:
11563: EOF
11564: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11565: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11566: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11567: else
11568: ld_shlibs=no
11569: fi
11570: ;;
11571:
11572: sunos4*)
11573: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11574: wlarc=
11575: hardcode_direct=yes
11576: hardcode_shlibpath_var=no
11577: ;;
11578:
11579: *)
11580: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11581: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11582: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11583: else
11584: ld_shlibs=no
11585: fi
11586: ;;
11587: esac
11588:
11589: if test "$ld_shlibs" = yes; then
11590: runpath_var=LD_RUN_PATH
11591: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11592: export_dynamic_flag_spec='${wl}--export-dynamic'
11593: # ancient GNU ld didn't support --whole-archive et. al.
11594: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11595: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11596: else
11597: whole_archive_flag_spec=
11598: fi
11599: fi
11600: else
11601: # PORTME fill in a description of your system's linker (not GNU ld)
11602: case $host_os in
11603: aix3*)
11604: allow_undefined_flag=unsupported
11605: always_export_symbols=yes
11606: 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'
11607: # Note: this linker hardcodes the directories in LIBPATH if there
11608: # are no directories specified by -L.
11609: hardcode_minus_L=yes
11610: if test "$GCC" = yes && test -z "$link_static_flag"; then
11611: # Neither direct hardcoding nor static linking is supported with a
11612: # broken collect2.
11613: hardcode_direct=unsupported
11614: fi
11615: ;;
11616:
11617: aix4* | aix5*)
11618: if test "$host_cpu" = ia64; then
11619: # On IA64, the linker does run time linking by default, so we don't
11620: # have to do anything special.
11621: aix_use_runtimelinking=no
11622: exp_sym_flag='-Bexport'
11623: no_entry_flag=""
11624: else
11625: # If we're using GNU nm, then we don't want the "-C" option.
11626: # -C means demangle to AIX nm, but means don't demangle with GNU nm
11627: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11628: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11629: else
11630: 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'
11631: fi
11632: aix_use_runtimelinking=no
11633:
11634: # Test if we are trying to use run time linking or normal
11635: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11636: # need to do runtime linking.
11637: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11638: for ld_flag in $LDFLAGS; do
11639: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11640: aix_use_runtimelinking=yes
11641: break
11642: fi
11643: done
11644: esac
11645:
11646: exp_sym_flag='-bexport'
11647: no_entry_flag='-bnoentry'
11648: fi
11649:
11650: # When large executables or shared objects are built, AIX ld can
11651: # have problems creating the table of contents. If linking a library
11652: # or program results in "error TOC overflow" add -mminimal-toc to
11653: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11654: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11655:
11656: archive_cmds=''
11657: hardcode_direct=yes
11658: hardcode_libdir_separator=':'
11659: link_all_deplibs=yes
11660:
11661: if test "$GCC" = yes; then
11662: case $host_os in aix4.012|aix4.012.*)
11663: # We only want to do this on AIX 4.2 and lower, the check
11664: # below for broken collect2 doesn't work under 4.3+
11665: collect2name=`${CC} -print-prog-name=collect2`
11666: if test -f "$collect2name" && \
11667: strings "$collect2name" | grep resolve_lib_name >/dev/null
11668: then
11669: # We have reworked collect2
11670: hardcode_direct=yes
11671: else
11672: # We have old collect2
11673: hardcode_direct=unsupported
11674: # It fails to find uninstalled libraries when the uninstalled
11675: # path is not listed in the libpath. Setting hardcode_minus_L
11676: # to unsupported forces relinking
11677: hardcode_minus_L=yes
11678: hardcode_libdir_flag_spec='-L$libdir'
11679: hardcode_libdir_separator=
11680: fi
11681: esac
11682: shared_flag='-shared'
11683: else
11684: # not using gcc
11685: if test "$host_cpu" = ia64; then
11686: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11687: # chokes on -Wl,-G. The following line is correct:
11688: shared_flag='-G'
11689: else
11690: if test "$aix_use_runtimelinking" = yes; then
11691: shared_flag='${wl}-G'
11692: else
11693: shared_flag='${wl}-bM:SRE'
11694: fi
11695: fi
11696: fi
11697:
11698: # It seems that -bexpall does not export symbols beginning with
11699: # underscore (_), so it is better to generate a list of symbols to export.
11700: always_export_symbols=yes
11701: if test "$aix_use_runtimelinking" = yes; then
11702: # Warning - without using the other runtime loading flags (-brtl),
11703: # -berok will link without error, but may produce a broken library.
11704: allow_undefined_flag='-berok'
11705: # Determine the default libpath from the value encoded in an empty executable.
11706: cat >conftest.$ac_ext <<_ACEOF
11707: #line $LINENO "configure"
11708: /* confdefs.h. */
11709: _ACEOF
11710: cat confdefs.h >>conftest.$ac_ext
11711: cat >>conftest.$ac_ext <<_ACEOF
11712: /* end confdefs.h. */
11713:
11714: int
11715: main ()
11716: {
11717:
11718: ;
11719: return 0;
11720: }
11721: _ACEOF
11722: rm -f conftest.$ac_objext conftest$ac_exeext
11723: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724: (eval $ac_link) 2>&5
11725: ac_status=$?
11726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727: (exit $ac_status); } &&
11728: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11734:
11735: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11736: }'`
11737: # Check for a 64-bit object if we didn't find anything.
11738: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11739: }'`; fi
11740: else
11741: echo "$as_me: failed program was:" >&5
11742: sed 's/^/| /' conftest.$ac_ext >&5
11743:
11744: fi
11745: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11746: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11747:
11748: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11749: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11750: else
11751: if test "$host_cpu" = ia64; then
11752: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11753: allow_undefined_flag="-z nodefs"
11754: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11755: else
11756: # Determine the default libpath from the value encoded in an empty executable.
11757: cat >conftest.$ac_ext <<_ACEOF
11758: #line $LINENO "configure"
11759: /* confdefs.h. */
11760: _ACEOF
11761: cat confdefs.h >>conftest.$ac_ext
11762: cat >>conftest.$ac_ext <<_ACEOF
11763: /* end confdefs.h. */
11764:
11765: int
11766: main ()
11767: {
11768:
11769: ;
11770: return 0;
11771: }
11772: _ACEOF
11773: rm -f conftest.$ac_objext conftest$ac_exeext
11774: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775: (eval $ac_link) 2>&5
11776: ac_status=$?
11777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778: (exit $ac_status); } &&
11779: { ac_try='test -s conftest$ac_exeext'
11780: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781: (eval $ac_try) 2>&5
11782: ac_status=$?
11783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784: (exit $ac_status); }; }; then
11785:
11786: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11787: }'`
11788: # Check for a 64-bit object if we didn't find anything.
11789: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11790: }'`; fi
11791: else
11792: echo "$as_me: failed program was:" >&5
11793: sed 's/^/| /' conftest.$ac_ext >&5
11794:
11795: fi
11796: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11797: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11798:
11799: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11800: # Warning - without using the other run time loading flags,
11801: # -berok will link without error, but may produce a broken library.
11802: no_undefined_flag=' ${wl}-bernotok'
11803: allow_undefined_flag=' ${wl}-berok'
11804: # -bexpall does not export symbols beginning with underscore (_)
11805: always_export_symbols=yes
11806: # Exported symbols can be pulled into shared objects from archives
11807: whole_archive_flag_spec=' '
11808: archive_cmds_need_lc=yes
11809: # This is similar to how AIX traditionally builds it's shared libraries.
11810: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11811: fi
11812: fi
11813: ;;
11814:
11815: amigaos*)
11816: 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)'
11817: hardcode_libdir_flag_spec='-L$libdir'
11818: hardcode_minus_L=yes
11819: # see comment about different semantics on the GNU ld section
11820: ld_shlibs=no
11821: ;;
11822:
11823: bsdi4*)
11824: export_dynamic_flag_spec=-rdynamic
11825: ;;
11826:
11827: cygwin* | mingw* | pw32*)
11828: # When not using gcc, we currently assume that we are using
11829: # Microsoft Visual C++.
11830: # hardcode_libdir_flag_spec is actually meaningless, as there is
11831: # no search path for DLLs.
11832: hardcode_libdir_flag_spec=' '
11833: allow_undefined_flag=unsupported
11834: # Tell ltmain to make .lib files, not .a files.
11835: libext=lib
11836: # Tell ltmain to make .dll files, not .so files.
11837: shrext=".dll"
11838: # FIXME: Setting linknames here is a bad hack.
11839: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11840: # The linker will automatically build a .lib file if we build a DLL.
11841: old_archive_From_new_cmds='true'
11842: # FIXME: Should let the user specify the lib program.
11843: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11844: fix_srcfile_path='`cygpath -w "$srcfile"`'
11845: enable_shared_with_static_runtimes=yes
11846: ;;
11847:
11848: darwin* | rhapsody*)
11849: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11850: archive_cmds_need_lc=no
11851: case "$host_os" in
11852: rhapsody* | darwin1.[012])
11853: allow_undefined_flag='-undefined suppress'
11854: ;;
11855: *) # Darwin 1.3 on
11856: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
11857: ;;
11858: esac
11859: # FIXME: Relying on posixy $() will cause problems for
11860: # cross-compilation, but unfortunately the echo tests do not
11861: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
11862: # `"' quotes if we put them in here... so don't!
11863: lt_int_apple_cc_single_mod=no
11864: output_verbose_link_cmd='echo'
11865: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11866: lt_int_apple_cc_single_mod=yes
11867: fi
11868: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11869: archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11870: else
11871: archive_cmds='$CC -r ${wl}-bind_at_load -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'
11872: fi
11873: module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
11874: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11875: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11876: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11877: else
11878: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11879: fi
11880: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11881: hardcode_direct=no
11882: hardcode_automatic=yes
11883: hardcode_shlibpath_var=unsupported
11884: whole_archive_flag_spec='-all_load $convenience'
11885: link_all_deplibs=yes
11886: fi
11887: ;;
11888:
11889: dgux*)
11890: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891: hardcode_libdir_flag_spec='-L$libdir'
11892: hardcode_shlibpath_var=no
11893: ;;
11894:
11895: freebsd1*)
11896: ld_shlibs=no
11897: ;;
11898:
11899: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11900: # support. Future versions do this automatically, but an explicit c++rt0.o
11901: # does not break anything, and helps significantly (at the cost of a little
11902: # extra space).
11903: freebsd2.2*)
11904: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11905: hardcode_libdir_flag_spec='-R$libdir'
11906: hardcode_direct=yes
11907: hardcode_shlibpath_var=no
11908: ;;
11909:
11910: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11911: freebsd2*)
11912: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11913: hardcode_direct=yes
11914: hardcode_minus_L=yes
11915: hardcode_shlibpath_var=no
11916: ;;
11917:
11918: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11919: freebsd*)
11920: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11921: hardcode_libdir_flag_spec='-R$libdir'
11922: hardcode_direct=yes
11923: hardcode_shlibpath_var=no
11924: ;;
11925:
11926: hpux9*)
11927: if test "$GCC" = yes; then
11928: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11929: else
11930: 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'
11931: fi
11932: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11933: hardcode_libdir_separator=:
11934: hardcode_direct=yes
11935:
11936: # hardcode_minus_L: Not really in the search PATH,
11937: # but as the default location of the library.
11938: hardcode_minus_L=yes
11939: export_dynamic_flag_spec='${wl}-E'
11940: ;;
11941:
11942: hpux10* | hpux11*)
11943: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11944: case "$host_cpu" in
11945: hppa*64*|ia64*)
11946: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11947: ;;
11948: *)
11949: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11950: ;;
11951: esac
11952: else
11953: case "$host_cpu" in
11954: hppa*64*|ia64*)
11955: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11956: ;;
11957: *)
11958: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11959: ;;
11960: esac
11961: fi
11962: if test "$with_gnu_ld" = no; then
11963: case "$host_cpu" in
11964: hppa*64*)
11965: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11966: hardcode_libdir_flag_spec_ld='+b $libdir'
11967: hardcode_libdir_separator=:
11968: hardcode_direct=no
11969: hardcode_shlibpath_var=no
11970: ;;
11971: ia64*)
11972: hardcode_libdir_flag_spec='-L$libdir'
11973: hardcode_direct=no
11974: hardcode_shlibpath_var=no
11975:
11976: # hardcode_minus_L: Not really in the search PATH,
11977: # but as the default location of the library.
11978: hardcode_minus_L=yes
11979: ;;
11980: *)
11981: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11982: hardcode_libdir_separator=:
11983: hardcode_direct=yes
11984: export_dynamic_flag_spec='${wl}-E'
11985:
11986: # hardcode_minus_L: Not really in the search PATH,
11987: # but as the default location of the library.
11988: hardcode_minus_L=yes
11989: ;;
11990: esac
11991: fi
11992: ;;
11993:
11994: irix5* | irix6* | nonstopux*)
11995: if test "$GCC" = yes; then
11996: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11997: else
11998: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11999: hardcode_libdir_flag_spec_ld='-rpath $libdir'
12000: fi
12001: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12002: hardcode_libdir_separator=:
12003: link_all_deplibs=yes
12004: ;;
12005:
12006: netbsd*)
12007: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12008: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12009: else
12010: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12011: fi
12012: hardcode_libdir_flag_spec='-R$libdir'
12013: hardcode_direct=yes
12014: hardcode_shlibpath_var=no
12015: ;;
12016:
12017: newsos6)
12018: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12019: hardcode_direct=yes
12020: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12021: hardcode_libdir_separator=:
12022: hardcode_shlibpath_var=no
12023: ;;
12024:
12025: openbsd*)
12026: hardcode_direct=yes
12027: hardcode_shlibpath_var=no
12028: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12029: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12030: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12031: export_dynamic_flag_spec='${wl}-E'
12032: else
12033: case $host_os in
12034: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12035: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12036: hardcode_libdir_flag_spec='-R$libdir'
12037: ;;
12038: *)
12039: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12040: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12041: ;;
12042: esac
12043: fi
12044: ;;
12045:
12046: os2*)
12047: hardcode_libdir_flag_spec='-L$libdir'
12048: hardcode_minus_L=yes
12049: allow_undefined_flag=unsupported
12050: 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'
12051: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12052: ;;
12053:
12054: osf3*)
12055: if test "$GCC" = yes; then
12056: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12057: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12058: else
12059: allow_undefined_flag=' -expect_unresolved \*'
12060: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12061: fi
12062: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12063: hardcode_libdir_separator=:
12064: ;;
12065:
12066: osf4* | osf5*) # as osf3* with the addition of -msym flag
12067: if test "$GCC" = yes; then
12068: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12069: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12070: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12071: else
12072: allow_undefined_flag=' -expect_unresolved \*'
12073: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12074: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12075: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12076:
12077: # Both c and cxx compiler support -rpath directly
12078: hardcode_libdir_flag_spec='-rpath $libdir'
12079: fi
12080: hardcode_libdir_separator=:
12081: ;;
12082:
12083: sco3.2v5*)
12084: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12085: hardcode_shlibpath_var=no
12086: export_dynamic_flag_spec='${wl}-Bexport'
12087: runpath_var=LD_RUN_PATH
12088: hardcode_runpath_var=yes
12089: ;;
12090:
12091: solaris*)
12092: no_undefined_flag=' -z text'
12093: if test "$GCC" = yes; then
12094: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12095: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12096: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12097: else
12098: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12099: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12100: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12101: fi
12102: hardcode_libdir_flag_spec='-R$libdir'
12103: hardcode_shlibpath_var=no
12104: case $host_os in
12105: solaris2.[0-5] | solaris2.[0-5].*) ;;
12106: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12107: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12108: esac
12109: link_all_deplibs=yes
12110: ;;
12111:
12112: sunos4*)
12113: if test "x$host_vendor" = xsequent; then
12114: # Use $CC to link under sequent, because it throws in some extra .o
12115: # files that make .init and .fini sections work.
12116: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12117: else
12118: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12119: fi
12120: hardcode_libdir_flag_spec='-L$libdir'
12121: hardcode_direct=yes
12122: hardcode_minus_L=yes
12123: hardcode_shlibpath_var=no
12124: ;;
12125:
12126: sysv4)
12127: case $host_vendor in
12128: sni)
12129: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12130: hardcode_direct=yes # is this really true???
12131: ;;
12132: siemens)
12133: ## LD is ld it makes a PLAMLIB
12134: ## CC just makes a GrossModule.
12135: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12136: reload_cmds='$CC -r -o $output$reload_objs'
12137: hardcode_direct=no
12138: ;;
12139: motorola)
12140: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12141: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12142: ;;
12143: esac
12144: runpath_var='LD_RUN_PATH'
12145: hardcode_shlibpath_var=no
12146: ;;
12147:
12148: sysv4.3*)
12149: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12150: hardcode_shlibpath_var=no
12151: export_dynamic_flag_spec='-Bexport'
12152: ;;
12153:
12154: sysv4*MP*)
12155: if test -d /usr/nec; then
12156: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12157: hardcode_shlibpath_var=no
12158: runpath_var=LD_RUN_PATH
12159: hardcode_runpath_var=yes
12160: ld_shlibs=yes
12161: fi
12162: ;;
12163:
12164: sysv4.2uw2*)
12165: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12166: hardcode_direct=yes
12167: hardcode_minus_L=no
12168: hardcode_shlibpath_var=no
12169: hardcode_runpath_var=yes
12170: runpath_var=LD_RUN_PATH
12171: ;;
12172:
12173: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12174: no_undefined_flag='${wl}-z ${wl}text'
12175: if test "$GCC" = yes; then
12176: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177: else
12178: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12179: fi
12180: runpath_var='LD_RUN_PATH'
12181: hardcode_shlibpath_var=no
12182: ;;
12183:
12184: sysv5*)
12185: no_undefined_flag=' -z text'
12186: # $CC -shared without GNU ld will not create a library from C++
12187: # object files and a static libstdc++, better avoid it by now
12188: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12189: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12190: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12191: hardcode_libdir_flag_spec=
12192: hardcode_shlibpath_var=no
12193: runpath_var='LD_RUN_PATH'
12194: ;;
12195:
12196: uts4*)
12197: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12198: hardcode_libdir_flag_spec='-L$libdir'
12199: hardcode_shlibpath_var=no
12200: ;;
12201:
12202: *)
12203: ld_shlibs=no
12204: ;;
12205: esac
12206: fi
12207:
12208: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12209: echo "${ECHO_T}$ld_shlibs" >&6
12210: test "$ld_shlibs" = no && can_build_shared=no
12211:
12212: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12213: if test "$GCC" = yes; then
12214: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12215: fi
12216:
12217: #
12218: # Do we need to explicitly link libc?
12219: #
12220: case "x$archive_cmds_need_lc" in
12221: x|xyes)
12222: # Assume -lc should be added
12223: archive_cmds_need_lc=yes
12224:
12225: if test "$enable_shared" = yes && test "$GCC" = yes; then
12226: case $archive_cmds in
12227: *'~'*)
12228: # FIXME: we may have to deal with multi-command sequences.
12229: ;;
12230: '$CC '*)
12231: # Test whether the compiler implicitly links with -lc since on some
12232: # systems, -lgcc has to come before -lc. If gcc already passes -lc
12233: # to ld, don't add -lc before -lgcc.
12234: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12235: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12236: $rm conftest*
12237: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12238:
12239: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12240: (eval $ac_compile) 2>&5
12241: ac_status=$?
12242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243: (exit $ac_status); } 2>conftest.err; then
12244: soname=conftest
12245: lib=conftest
12246: libobjs=conftest.$ac_objext
12247: deplibs=
12248: wl=$lt_prog_compiler_wl
12249: compiler_flags=-v
12250: linker_flags=-v
12251: verstring=
12252: output_objdir=.
12253: libname=conftest
12254: lt_save_allow_undefined_flag=$allow_undefined_flag
12255: allow_undefined_flag=
12256: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12257: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12258: ac_status=$?
12259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260: (exit $ac_status); }
12261: then
12262: archive_cmds_need_lc=no
12263: else
12264: archive_cmds_need_lc=yes
12265: fi
12266: allow_undefined_flag=$lt_save_allow_undefined_flag
12267: else
12268: cat conftest.err 1>&5
12269: fi
12270: $rm conftest*
12271: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12272: echo "${ECHO_T}$archive_cmds_need_lc" >&6
12273: ;;
12274: esac
12275: fi
12276: ;;
12277: esac
12278:
12279: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12280: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12281: hardcode_action=
12282: if test -n "$hardcode_libdir_flag_spec" || \
12283: test -n "$runpath_var " || \
12284: test "X$hardcode_automatic"="Xyes" ; then
12285:
12286: # We can hardcode non-existant directories.
12287: if test "$hardcode_direct" != no &&
12288: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12289: # have to relink, otherwise we might link with an installed library
12290: # when we should be linking with a yet-to-be-installed one
12291: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12292: test "$hardcode_minus_L" != no; then
12293: # Linking always hardcodes the temporary library directory.
12294: hardcode_action=relink
12295: else
12296: # We can link without hardcoding, and we can hardcode nonexisting dirs.
12297: hardcode_action=immediate
12298: fi
12299: else
12300: # We cannot hardcode anything, or else we can only hardcode existing
12301: # directories.
12302: hardcode_action=unsupported
12303: fi
12304: echo "$as_me:$LINENO: result: $hardcode_action" >&5
12305: echo "${ECHO_T}$hardcode_action" >&6
12306:
12307: if test "$hardcode_action" = relink; then
12308: # Fast installation is not supported
12309: enable_fast_install=no
12310: elif test "$shlibpath_overrides_runpath" = yes ||
12311: test "$enable_shared" = no; then
12312: # Fast installation is not necessary
12313: enable_fast_install=needless
12314: fi
12315:
12316: striplib=
12317: old_striplib=
12318: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12319: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12320: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12321: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12322: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12323: echo "$as_me:$LINENO: result: yes" >&5
12324: echo "${ECHO_T}yes" >&6
12325: else
12326: # FIXME - insert some real tests, host_os isn't really good enough
12327: case $host_os in
12328: darwin*)
12329: if test -n "$STRIP" ; then
12330: striplib="$STRIP -x"
12331: echo "$as_me:$LINENO: result: yes" >&5
12332: echo "${ECHO_T}yes" >&6
12333: else
12334: echo "$as_me:$LINENO: result: no" >&5
12335: echo "${ECHO_T}no" >&6
12336: fi
12337: ;;
12338: *)
12339: echo "$as_me:$LINENO: result: no" >&5
12340: echo "${ECHO_T}no" >&6
12341: ;;
12342: esac
12343: fi
12344:
12345: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12346: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12347: library_names_spec=
12348: libname_spec='lib$name'
12349: soname_spec=
12350: shrext=".so"
12351: postinstall_cmds=
12352: postuninstall_cmds=
12353: finish_cmds=
12354: finish_eval=
12355: shlibpath_var=
12356: shlibpath_overrides_runpath=unknown
12357: version_type=none
12358: dynamic_linker="$host_os ld.so"
12359: sys_lib_dlsearch_path_spec="/lib /usr/lib"
12360: if test "$GCC" = yes; then
12361: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12362: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12363: # if the path contains ";" then we assume it to be the separator
12364: # otherwise default to the standard path separator (i.e. ":") - it is
12365: # assumed that no part of a normal pathname contains ";" but that should
12366: # okay in the real world where ";" in dirpaths is itself problematic.
12367: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12368: else
12369: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12370: fi
12371: else
12372: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12373: fi
12374: need_lib_prefix=unknown
12375: hardcode_into_libs=no
12376:
12377: # when you set need_version to no, make sure it does not cause -set_version
12378: # flags to be left without arguments
12379: need_version=unknown
12380:
12381: case $host_os in
12382: aix3*)
12383: version_type=linux
12384: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12385: shlibpath_var=LIBPATH
12386:
12387: # AIX 3 has no versioning support, so we append a major version to the name.
12388: soname_spec='${libname}${release}${shared_ext}$major'
12389: ;;
12390:
12391: aix4* | aix5*)
12392: version_type=linux
12393: need_lib_prefix=no
12394: need_version=no
12395: hardcode_into_libs=yes
12396: if test "$host_cpu" = ia64; then
12397: # AIX 5 supports IA64
12398: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12399: shlibpath_var=LD_LIBRARY_PATH
12400: else
12401: # With GCC up to 2.95.x, collect2 would create an import file
12402: # for dependence libraries. The import file would start with
12403: # the line `#! .'. This would cause the generated library to
12404: # depend on `.', always an invalid library. This was fixed in
12405: # development snapshots of GCC prior to 3.0.
12406: case $host_os in
12407: aix4 | aix4.[01] | aix4.[01].*)
12408: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12409: echo ' yes '
12410: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12411: :
12412: else
12413: can_build_shared=no
12414: fi
12415: ;;
12416: esac
12417: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12418: # soname into executable. Probably we can add versioning support to
12419: # collect2, so additional links can be useful in future.
12420: if test "$aix_use_runtimelinking" = yes; then
12421: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12422: # instead of lib<name>.a to let people know that these are not
12423: # typical AIX shared libraries.
12424: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425: else
12426: # We preserve .a as extension for shared libraries through AIX4.2
12427: # and later when we are not doing run time linking.
12428: library_names_spec='${libname}${release}.a $libname.a'
12429: soname_spec='${libname}${release}${shared_ext}$major'
12430: fi
12431: shlibpath_var=LIBPATH
12432: fi
12433: ;;
12434:
12435: amigaos*)
12436: library_names_spec='$libname.ixlibrary $libname.a'
12437: # Create ${libname}_ixlibrary.a entries in /sys/libs.
12438: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12439: ;;
12440:
12441: beos*)
12442: library_names_spec='${libname}${shared_ext}'
12443: dynamic_linker="$host_os ld.so"
12444: shlibpath_var=LIBRARY_PATH
12445: ;;
12446:
12447: bsdi4*)
12448: version_type=linux
12449: need_version=no
12450: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451: soname_spec='${libname}${release}${shared_ext}$major'
12452: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12453: shlibpath_var=LD_LIBRARY_PATH
12454: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12455: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12456: # the default ld.so.conf also contains /usr/contrib/lib and
12457: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12458: # libtool to hard-code these into programs
12459: ;;
12460:
12461: cygwin* | mingw* | pw32*)
12462: version_type=windows
12463: shrext=".dll"
12464: need_version=no
12465: need_lib_prefix=no
12466:
12467: case $GCC,$host_os in
12468: yes,cygwin* | yes,mingw* | yes,pw32*)
12469: library_names_spec='$libname.dll.a'
12470: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12471: postinstall_cmds='base_file=`basename \${file}`~
12472: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12473: dldir=$destdir/`dirname \$dlpath`~
12474: test -d \$dldir || mkdir -p \$dldir~
12475: $install_prog $dir/$dlname \$dldir/$dlname'
12476: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12477: dlpath=$dir/\$dldll~
12478: $rm \$dlpath'
12479: shlibpath_overrides_runpath=yes
12480:
12481: case $host_os in
12482: cygwin*)
12483: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12484: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12485: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
12486: ;;
12487: mingw*)
12488: # MinGW DLLs use traditional 'lib' prefix
12489: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12490: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12491: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12492: # It is most probably a Windows format PATH printed by
12493: # mingw gcc, but we are running on Cygwin. Gcc prints its search
12494: # path with ; separators, and with drive letters. We can handle the
12495: # drive letters (cygwin fileutils understands them), so leave them,
12496: # especially as we might pass files found there to a mingw objdump,
12497: # which wouldn't understand a cygwinified path. Ahh.
12498: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12499: else
12500: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12501: fi
12502: ;;
12503: pw32*)
12504: # pw32 DLLs use 'pw' prefix rather than 'lib'
12505: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12506: ;;
12507: esac
12508: ;;
12509:
12510: *)
12511: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12512: ;;
12513: esac
12514: dynamic_linker='Win32 ld.exe'
12515: # FIXME: first we should search . and the directory the executable is in
12516: shlibpath_var=PATH
12517: ;;
12518:
12519: darwin* | rhapsody*)
12520: dynamic_linker="$host_os dyld"
12521: version_type=darwin
12522: need_lib_prefix=no
12523: need_version=no
12524: # FIXME: Relying on posixy $() will cause problems for
12525: # cross-compilation, but unfortunately the echo tests do not
12526: # yet detect zsh echo's removal of \ escapes.
12527: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12528: soname_spec='${libname}${release}${major}$shared_ext'
12529: shlibpath_overrides_runpath=yes
12530: shlibpath_var=DYLD_LIBRARY_PATH
12531: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12532: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12533: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
12534: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12535: fi
12536: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12537: ;;
12538:
12539: dgux*)
12540: version_type=linux
12541: need_lib_prefix=no
12542: need_version=no
12543: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12544: soname_spec='${libname}${release}${shared_ext}$major'
12545: shlibpath_var=LD_LIBRARY_PATH
12546: ;;
12547:
12548: freebsd1*)
12549: dynamic_linker=no
12550: ;;
12551:
12552: freebsd*)
12553: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12554: version_type=freebsd-$objformat
12555: case $version_type in
12556: freebsd-elf*)
12557: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12558: need_version=no
12559: need_lib_prefix=no
12560: ;;
12561: freebsd-*)
12562: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12563: need_version=yes
12564: ;;
12565: esac
12566: shlibpath_var=LD_LIBRARY_PATH
12567: case $host_os in
12568: freebsd2*)
12569: shlibpath_overrides_runpath=yes
12570: ;;
12571: freebsd3.01* | freebsdelf3.01*)
12572: shlibpath_overrides_runpath=yes
12573: hardcode_into_libs=yes
12574: ;;
12575: *) # from 3.2 on
12576: shlibpath_overrides_runpath=no
12577: hardcode_into_libs=yes
12578: ;;
12579: esac
12580: ;;
12581:
12582: gnu*)
12583: version_type=linux
12584: need_lib_prefix=no
12585: need_version=no
12586: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12587: soname_spec='${libname}${release}${shared_ext}$major'
12588: shlibpath_var=LD_LIBRARY_PATH
12589: hardcode_into_libs=yes
12590: ;;
12591:
12592: hpux9* | hpux10* | hpux11*)
12593: # Give a soname corresponding to the major version so that dld.sl refuses to
12594: # link against other versions.
12595: version_type=sunos
12596: need_lib_prefix=no
12597: need_version=no
12598: case "$host_cpu" in
12599: ia64*)
12600: shrext='.so'
12601: hardcode_into_libs=yes
12602: dynamic_linker="$host_os dld.so"
12603: shlibpath_var=LD_LIBRARY_PATH
12604: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12605: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606: soname_spec='${libname}${release}${shared_ext}$major'
12607: if test "X$HPUX_IA64_MODE" = X32; then
12608: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12609: else
12610: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12611: fi
12612: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12613: ;;
12614: hppa*64*)
12615: shrext='.sl'
12616: hardcode_into_libs=yes
12617: dynamic_linker="$host_os dld.sl"
12618: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12619: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12620: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12621: soname_spec='${libname}${release}${shared_ext}$major'
12622: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12623: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12624: ;;
12625: *)
12626: shrext='.sl'
12627: dynamic_linker="$host_os dld.sl"
12628: shlibpath_var=SHLIB_PATH
12629: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12630: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631: soname_spec='${libname}${release}${shared_ext}$major'
12632: ;;
12633: esac
12634: # HP-UX runs *really* slowly unless shared libraries are mode 555.
12635: postinstall_cmds='chmod 555 $lib'
12636: ;;
12637:
12638: irix5* | irix6* | nonstopux*)
12639: case $host_os in
12640: nonstopux*) version_type=nonstopux ;;
12641: *)
12642: if test "$lt_cv_prog_gnu_ld" = yes; then
12643: version_type=linux
12644: else
12645: version_type=irix
12646: fi ;;
12647: esac
12648: need_lib_prefix=no
12649: need_version=no
12650: soname_spec='${libname}${release}${shared_ext}$major'
12651: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12652: case $host_os in
12653: irix5* | nonstopux*)
12654: libsuff= shlibsuff=
12655: ;;
12656: *)
12657: case $LD in # libtool.m4 will add one of these switches to LD
12658: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12659: libsuff= shlibsuff= libmagic=32-bit;;
12660: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12661: libsuff=32 shlibsuff=N32 libmagic=N32;;
12662: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12663: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12664: *) libsuff= shlibsuff= libmagic=never-match;;
12665: esac
12666: ;;
12667: esac
12668: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12669: shlibpath_overrides_runpath=no
12670: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12671: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12672: hardcode_into_libs=yes
12673: ;;
12674:
12675: # No shared lib support for Linux oldld, aout, or coff.
12676: linux*oldld* | linux*aout* | linux*coff*)
12677: dynamic_linker=no
12678: ;;
12679:
12680: # This must be Linux ELF.
12681: linux*)
12682: version_type=linux
12683: need_lib_prefix=no
12684: need_version=no
12685: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686: soname_spec='${libname}${release}${shared_ext}$major'
12687: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12688: shlibpath_var=LD_LIBRARY_PATH
12689: shlibpath_overrides_runpath=no
12690: # This implies no fast_install, which is unacceptable.
12691: # Some rework will be needed to allow for fast_install
12692: # before this can be enabled.
12693: hardcode_into_libs=yes
12694:
12695: # We used to test for /lib/ld.so.1 and disable shared libraries on
12696: # powerpc, because MkLinux only supported shared libraries with the
12697: # GNU dynamic linker. Since this was broken with cross compilers,
12698: # most powerpc-linux boxes support dynamic linking these days and
12699: # people can always --disable-shared, the test was removed, and we
12700: # assume the GNU/Linux dynamic linker is in use.
12701: dynamic_linker='GNU/Linux ld.so'
12702: ;;
12703:
12704: netbsd*)
12705: version_type=sunos
12706: need_lib_prefix=no
12707: need_version=no
12708: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12709: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12710: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12711: dynamic_linker='NetBSD (a.out) ld.so'
12712: else
12713: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12714: soname_spec='${libname}${release}${shared_ext}$major'
12715: dynamic_linker='NetBSD ld.elf_so'
12716: fi
12717: shlibpath_var=LD_LIBRARY_PATH
12718: shlibpath_overrides_runpath=yes
12719: hardcode_into_libs=yes
12720: ;;
12721:
12722: newsos6)
12723: version_type=linux
12724: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12725: shlibpath_var=LD_LIBRARY_PATH
12726: shlibpath_overrides_runpath=yes
12727: ;;
12728:
12729: nto-qnx)
12730: version_type=linux
12731: need_lib_prefix=no
12732: need_version=no
12733: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12734: soname_spec='${libname}${release}${shared_ext}$major'
12735: shlibpath_var=LD_LIBRARY_PATH
12736: shlibpath_overrides_runpath=yes
12737: ;;
12738:
12739: openbsd*)
12740: version_type=sunos
12741: need_lib_prefix=no
12742: need_version=no
12743: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12744: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12745: shlibpath_var=LD_LIBRARY_PATH
12746: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12747: case $host_os in
12748: openbsd2.[89] | openbsd2.[89].*)
12749: shlibpath_overrides_runpath=no
12750: ;;
12751: *)
12752: shlibpath_overrides_runpath=yes
12753: ;;
12754: esac
12755: else
12756: shlibpath_overrides_runpath=yes
12757: fi
12758: ;;
12759:
12760: os2*)
12761: libname_spec='$name'
12762: shrext=".dll"
12763: need_lib_prefix=no
12764: library_names_spec='$libname${shared_ext} $libname.a'
12765: dynamic_linker='OS/2 ld.exe'
12766: shlibpath_var=LIBPATH
12767: ;;
12768:
12769: osf3* | osf4* | osf5*)
12770: version_type=osf
12771: need_lib_prefix=no
12772: need_version=no
12773: soname_spec='${libname}${release}${shared_ext}$major'
12774: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775: shlibpath_var=LD_LIBRARY_PATH
12776: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12777: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12778: ;;
12779:
12780: sco3.2v5*)
12781: version_type=osf
12782: soname_spec='${libname}${release}${shared_ext}$major'
12783: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784: shlibpath_var=LD_LIBRARY_PATH
12785: ;;
12786:
12787: solaris*)
12788: version_type=linux
12789: need_lib_prefix=no
12790: need_version=no
12791: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12792: soname_spec='${libname}${release}${shared_ext}$major'
12793: shlibpath_var=LD_LIBRARY_PATH
12794: shlibpath_overrides_runpath=yes
12795: hardcode_into_libs=yes
12796: # ldd complains unless libraries are executable
12797: postinstall_cmds='chmod +x $lib'
12798: ;;
12799:
12800: sunos4*)
12801: version_type=sunos
12802: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12803: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12804: shlibpath_var=LD_LIBRARY_PATH
12805: shlibpath_overrides_runpath=yes
12806: if test "$with_gnu_ld" = yes; then
12807: need_lib_prefix=no
12808: fi
12809: need_version=yes
12810: ;;
12811:
12812: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12813: version_type=linux
12814: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815: soname_spec='${libname}${release}${shared_ext}$major'
12816: shlibpath_var=LD_LIBRARY_PATH
12817: case $host_vendor in
12818: sni)
12819: shlibpath_overrides_runpath=no
12820: need_lib_prefix=no
12821: export_dynamic_flag_spec='${wl}-Blargedynsym'
12822: runpath_var=LD_RUN_PATH
12823: ;;
12824: siemens)
12825: need_lib_prefix=no
12826: ;;
12827: motorola)
12828: need_lib_prefix=no
12829: need_version=no
12830: shlibpath_overrides_runpath=no
12831: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12832: ;;
12833: esac
12834: ;;
12835:
12836: sysv4*MP*)
12837: if test -d /usr/nec ;then
12838: version_type=linux
12839: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12840: soname_spec='$libname${shared_ext}.$major'
12841: shlibpath_var=LD_LIBRARY_PATH
12842: fi
12843: ;;
12844:
12845: uts4*)
12846: version_type=linux
12847: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12848: soname_spec='${libname}${release}${shared_ext}$major'
12849: shlibpath_var=LD_LIBRARY_PATH
12850: ;;
12851:
12852: *)
12853: dynamic_linker=no
12854: ;;
12855: esac
12856: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12857: echo "${ECHO_T}$dynamic_linker" >&6
12858: test "$dynamic_linker" = no && can_build_shared=no
12859:
12860: if test "x$enable_dlopen" != xyes; then
12861: enable_dlopen=unknown
12862: enable_dlopen_self=unknown
12863: enable_dlopen_self_static=unknown
12864: else
12865: lt_cv_dlopen=no
12866: lt_cv_dlopen_libs=
12867:
12868: case $host_os in
12869: beos*)
12870: lt_cv_dlopen="load_add_on"
12871: lt_cv_dlopen_libs=
12872: lt_cv_dlopen_self=yes
12873: ;;
12874:
12875: mingw* | pw32*)
12876: lt_cv_dlopen="LoadLibrary"
12877: lt_cv_dlopen_libs=
12878: ;;
12879:
12880: cygwin*)
12881: lt_cv_dlopen="dlopen"
12882: lt_cv_dlopen_libs=
12883: ;;
12884:
12885: darwin*)
12886: # if libdl is installed we need to link against it
12887: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12888: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12889: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12890: echo $ECHO_N "(cached) $ECHO_C" >&6
12891: else
12892: ac_check_lib_save_LIBS=$LIBS
12893: LIBS="-ldl $LIBS"
12894: cat >conftest.$ac_ext <<_ACEOF
12895: #line $LINENO "configure"
12896: /* confdefs.h. */
12897: _ACEOF
12898: cat confdefs.h >>conftest.$ac_ext
12899: cat >>conftest.$ac_ext <<_ACEOF
12900: /* end confdefs.h. */
12901:
12902: /* Override any gcc2 internal prototype to avoid an error. */
12903: #ifdef __cplusplus
12904: extern "C"
12905: #endif
12906: /* We use char because int might match the return type of a gcc2
12907: builtin and then its argument prototype would still apply. */
12908: char dlopen ();
12909: int
12910: main ()
12911: {
12912: dlopen ();
12913: ;
12914: return 0;
12915: }
12916: _ACEOF
12917: rm -f conftest.$ac_objext conftest$ac_exeext
12918: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919: (eval $ac_link) 2>&5
12920: ac_status=$?
12921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922: (exit $ac_status); } &&
12923: { ac_try='test -s conftest$ac_exeext'
12924: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925: (eval $ac_try) 2>&5
12926: ac_status=$?
12927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928: (exit $ac_status); }; }; then
12929: ac_cv_lib_dl_dlopen=yes
12930: else
12931: echo "$as_me: failed program was:" >&5
12932: sed 's/^/| /' conftest.$ac_ext >&5
12933:
12934: ac_cv_lib_dl_dlopen=no
12935: fi
12936: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12937: LIBS=$ac_check_lib_save_LIBS
12938: fi
12939: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12940: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12941: if test $ac_cv_lib_dl_dlopen = yes; then
12942: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12943: else
12944:
12945: lt_cv_dlopen="dyld"
12946: lt_cv_dlopen_libs=
12947: lt_cv_dlopen_self=yes
12948:
12949: fi
12950:
12951: ;;
12952:
12953: *)
12954: echo "$as_me:$LINENO: checking for shl_load" >&5
12955: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12956: if test "${ac_cv_func_shl_load+set}" = set; then
12957: echo $ECHO_N "(cached) $ECHO_C" >&6
12958: else
12959: cat >conftest.$ac_ext <<_ACEOF
12960: #line $LINENO "configure"
12961: /* confdefs.h. */
12962: _ACEOF
12963: cat confdefs.h >>conftest.$ac_ext
12964: cat >>conftest.$ac_ext <<_ACEOF
12965: /* end confdefs.h. */
12966: /* System header to define __stub macros and hopefully few prototypes,
12967: which can conflict with char shl_load (); below.
12968: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12969: <limits.h> exists even on freestanding compilers. */
12970: #ifdef __STDC__
12971: # include <limits.h>
12972: #else
12973: # include <assert.h>
12974: #endif
12975: /* Override any gcc2 internal prototype to avoid an error. */
12976: #ifdef __cplusplus
12977: extern "C"
12978: {
12979: #endif
12980: /* We use char because int might match the return type of a gcc2
12981: builtin and then its argument prototype would still apply. */
12982: char shl_load ();
12983: /* The GNU C library defines this for functions which it implements
12984: to always fail with ENOSYS. Some functions are actually named
12985: something starting with __ and the normal name is an alias. */
12986: #if defined (__stub_shl_load) || defined (__stub___shl_load)
12987: choke me
12988: #else
12989: char (*f) () = shl_load;
12990: #endif
12991: #ifdef __cplusplus
12992: }
12993: #endif
12994:
12995: int
12996: main ()
12997: {
12998: return f != shl_load;
12999: ;
13000: return 0;
13001: }
13002: _ACEOF
13003: rm -f conftest.$ac_objext conftest$ac_exeext
13004: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13005: (eval $ac_link) 2>&5
13006: ac_status=$?
13007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008: (exit $ac_status); } &&
13009: { ac_try='test -s conftest$ac_exeext'
13010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011: (eval $ac_try) 2>&5
13012: ac_status=$?
13013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014: (exit $ac_status); }; }; then
13015: ac_cv_func_shl_load=yes
13016: else
13017: echo "$as_me: failed program was:" >&5
13018: sed 's/^/| /' conftest.$ac_ext >&5
13019:
13020: ac_cv_func_shl_load=no
13021: fi
13022: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13023: fi
13024: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13025: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13026: if test $ac_cv_func_shl_load = yes; then
13027: lt_cv_dlopen="shl_load"
13028: else
13029: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13030: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13031: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13032: echo $ECHO_N "(cached) $ECHO_C" >&6
13033: else
13034: ac_check_lib_save_LIBS=$LIBS
13035: LIBS="-ldld $LIBS"
13036: cat >conftest.$ac_ext <<_ACEOF
13037: #line $LINENO "configure"
13038: /* confdefs.h. */
13039: _ACEOF
13040: cat confdefs.h >>conftest.$ac_ext
13041: cat >>conftest.$ac_ext <<_ACEOF
13042: /* end confdefs.h. */
13043:
13044: /* Override any gcc2 internal prototype to avoid an error. */
13045: #ifdef __cplusplus
13046: extern "C"
13047: #endif
13048: /* We use char because int might match the return type of a gcc2
13049: builtin and then its argument prototype would still apply. */
13050: char shl_load ();
13051: int
13052: main ()
13053: {
13054: shl_load ();
13055: ;
13056: return 0;
13057: }
13058: _ACEOF
13059: rm -f conftest.$ac_objext conftest$ac_exeext
13060: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061: (eval $ac_link) 2>&5
13062: ac_status=$?
13063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064: (exit $ac_status); } &&
13065: { ac_try='test -s conftest$ac_exeext'
13066: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067: (eval $ac_try) 2>&5
13068: ac_status=$?
13069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070: (exit $ac_status); }; }; then
13071: ac_cv_lib_dld_shl_load=yes
13072: else
13073: echo "$as_me: failed program was:" >&5
13074: sed 's/^/| /' conftest.$ac_ext >&5
13075:
13076: ac_cv_lib_dld_shl_load=no
13077: fi
13078: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13079: LIBS=$ac_check_lib_save_LIBS
13080: fi
13081: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13082: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13083: if test $ac_cv_lib_dld_shl_load = yes; then
13084: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13085: else
13086: echo "$as_me:$LINENO: checking for dlopen" >&5
13087: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13088: if test "${ac_cv_func_dlopen+set}" = set; then
13089: echo $ECHO_N "(cached) $ECHO_C" >&6
13090: else
13091: cat >conftest.$ac_ext <<_ACEOF
13092: #line $LINENO "configure"
13093: /* confdefs.h. */
13094: _ACEOF
13095: cat confdefs.h >>conftest.$ac_ext
13096: cat >>conftest.$ac_ext <<_ACEOF
13097: /* end confdefs.h. */
13098: /* System header to define __stub macros and hopefully few prototypes,
13099: which can conflict with char dlopen (); below.
13100: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13101: <limits.h> exists even on freestanding compilers. */
13102: #ifdef __STDC__
13103: # include <limits.h>
13104: #else
13105: # include <assert.h>
13106: #endif
13107: /* Override any gcc2 internal prototype to avoid an error. */
13108: #ifdef __cplusplus
13109: extern "C"
13110: {
13111: #endif
13112: /* We use char because int might match the return type of a gcc2
13113: builtin and then its argument prototype would still apply. */
13114: char dlopen ();
13115: /* The GNU C library defines this for functions which it implements
13116: to always fail with ENOSYS. Some functions are actually named
13117: something starting with __ and the normal name is an alias. */
13118: #if defined (__stub_dlopen) || defined (__stub___dlopen)
13119: choke me
13120: #else
13121: char (*f) () = dlopen;
13122: #endif
13123: #ifdef __cplusplus
13124: }
13125: #endif
13126:
13127: int
13128: main ()
13129: {
13130: return f != dlopen;
13131: ;
13132: return 0;
13133: }
13134: _ACEOF
13135: rm -f conftest.$ac_objext conftest$ac_exeext
13136: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137: (eval $ac_link) 2>&5
13138: ac_status=$?
13139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140: (exit $ac_status); } &&
13141: { ac_try='test -s conftest$ac_exeext'
13142: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143: (eval $ac_try) 2>&5
13144: ac_status=$?
13145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146: (exit $ac_status); }; }; then
13147: ac_cv_func_dlopen=yes
13148: else
13149: echo "$as_me: failed program was:" >&5
13150: sed 's/^/| /' conftest.$ac_ext >&5
13151:
13152: ac_cv_func_dlopen=no
13153: fi
13154: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13155: fi
13156: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13157: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13158: if test $ac_cv_func_dlopen = yes; then
13159: lt_cv_dlopen="dlopen"
13160: else
13161: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13162: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13163: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13164: echo $ECHO_N "(cached) $ECHO_C" >&6
13165: else
13166: ac_check_lib_save_LIBS=$LIBS
13167: LIBS="-ldl $LIBS"
13168: cat >conftest.$ac_ext <<_ACEOF
13169: #line $LINENO "configure"
13170: /* confdefs.h. */
13171: _ACEOF
13172: cat confdefs.h >>conftest.$ac_ext
13173: cat >>conftest.$ac_ext <<_ACEOF
13174: /* end confdefs.h. */
13175:
13176: /* Override any gcc2 internal prototype to avoid an error. */
13177: #ifdef __cplusplus
13178: extern "C"
13179: #endif
13180: /* We use char because int might match the return type of a gcc2
13181: builtin and then its argument prototype would still apply. */
13182: char dlopen ();
13183: int
13184: main ()
13185: {
13186: dlopen ();
13187: ;
13188: return 0;
13189: }
13190: _ACEOF
13191: rm -f conftest.$ac_objext conftest$ac_exeext
13192: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13193: (eval $ac_link) 2>&5
13194: ac_status=$?
13195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196: (exit $ac_status); } &&
13197: { ac_try='test -s conftest$ac_exeext'
13198: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199: (eval $ac_try) 2>&5
13200: ac_status=$?
13201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202: (exit $ac_status); }; }; then
13203: ac_cv_lib_dl_dlopen=yes
13204: else
13205: echo "$as_me: failed program was:" >&5
13206: sed 's/^/| /' conftest.$ac_ext >&5
13207:
13208: ac_cv_lib_dl_dlopen=no
13209: fi
13210: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13211: LIBS=$ac_check_lib_save_LIBS
13212: fi
13213: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13214: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13215: if test $ac_cv_lib_dl_dlopen = yes; then
13216: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13217: else
13218: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13219: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13220: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13221: echo $ECHO_N "(cached) $ECHO_C" >&6
13222: else
13223: ac_check_lib_save_LIBS=$LIBS
13224: LIBS="-lsvld $LIBS"
13225: cat >conftest.$ac_ext <<_ACEOF
13226: #line $LINENO "configure"
13227: /* confdefs.h. */
13228: _ACEOF
13229: cat confdefs.h >>conftest.$ac_ext
13230: cat >>conftest.$ac_ext <<_ACEOF
13231: /* end confdefs.h. */
13232:
13233: /* Override any gcc2 internal prototype to avoid an error. */
13234: #ifdef __cplusplus
13235: extern "C"
13236: #endif
13237: /* We use char because int might match the return type of a gcc2
13238: builtin and then its argument prototype would still apply. */
13239: char dlopen ();
13240: int
13241: main ()
13242: {
13243: dlopen ();
13244: ;
13245: return 0;
13246: }
13247: _ACEOF
13248: rm -f conftest.$ac_objext conftest$ac_exeext
13249: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13250: (eval $ac_link) 2>&5
13251: ac_status=$?
13252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253: (exit $ac_status); } &&
13254: { ac_try='test -s conftest$ac_exeext'
13255: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256: (eval $ac_try) 2>&5
13257: ac_status=$?
13258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259: (exit $ac_status); }; }; then
13260: ac_cv_lib_svld_dlopen=yes
13261: else
13262: echo "$as_me: failed program was:" >&5
13263: sed 's/^/| /' conftest.$ac_ext >&5
13264:
13265: ac_cv_lib_svld_dlopen=no
13266: fi
13267: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13268: LIBS=$ac_check_lib_save_LIBS
13269: fi
13270: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13271: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13272: if test $ac_cv_lib_svld_dlopen = yes; then
13273: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13274: else
13275: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13276: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13277: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13278: echo $ECHO_N "(cached) $ECHO_C" >&6
13279: else
13280: ac_check_lib_save_LIBS=$LIBS
13281: LIBS="-ldld $LIBS"
13282: cat >conftest.$ac_ext <<_ACEOF
13283: #line $LINENO "configure"
13284: /* confdefs.h. */
13285: _ACEOF
13286: cat confdefs.h >>conftest.$ac_ext
13287: cat >>conftest.$ac_ext <<_ACEOF
13288: /* end confdefs.h. */
13289:
13290: /* Override any gcc2 internal prototype to avoid an error. */
13291: #ifdef __cplusplus
13292: extern "C"
13293: #endif
13294: /* We use char because int might match the return type of a gcc2
13295: builtin and then its argument prototype would still apply. */
13296: char dld_link ();
13297: int
13298: main ()
13299: {
13300: dld_link ();
13301: ;
13302: return 0;
13303: }
13304: _ACEOF
13305: rm -f conftest.$ac_objext conftest$ac_exeext
13306: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13307: (eval $ac_link) 2>&5
13308: ac_status=$?
13309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310: (exit $ac_status); } &&
13311: { ac_try='test -s conftest$ac_exeext'
13312: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313: (eval $ac_try) 2>&5
13314: ac_status=$?
13315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316: (exit $ac_status); }; }; then
13317: ac_cv_lib_dld_dld_link=yes
13318: else
13319: echo "$as_me: failed program was:" >&5
13320: sed 's/^/| /' conftest.$ac_ext >&5
13321:
13322: ac_cv_lib_dld_dld_link=no
13323: fi
13324: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13325: LIBS=$ac_check_lib_save_LIBS
13326: fi
13327: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13328: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13329: if test $ac_cv_lib_dld_dld_link = yes; then
13330: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13331: fi
13332:
13333:
13334: fi
13335:
13336:
13337: fi
13338:
13339:
13340: fi
13341:
13342:
13343: fi
13344:
13345:
13346: fi
13347:
13348: ;;
13349: esac
13350:
13351: if test "x$lt_cv_dlopen" != xno; then
13352: enable_dlopen=yes
13353: else
13354: enable_dlopen=no
13355: fi
13356:
13357: case $lt_cv_dlopen in
13358: dlopen)
13359: save_CPPFLAGS="$CPPFLAGS"
13360: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13361:
13362: save_LDFLAGS="$LDFLAGS"
13363: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13364:
13365: save_LIBS="$LIBS"
13366: LIBS="$lt_cv_dlopen_libs $LIBS"
13367:
13368: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13369: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13370: if test "${lt_cv_dlopen_self+set}" = set; then
13371: echo $ECHO_N "(cached) $ECHO_C" >&6
13372: else
13373: if test "$cross_compiling" = yes; then :
13374: lt_cv_dlopen_self=cross
13375: else
13376: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13377: lt_status=$lt_dlunknown
13378: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 13379: #line 13379 "configure"
1.1 root 13380: #include "confdefs.h"
13381:
13382: #if HAVE_DLFCN_H
13383: #include <dlfcn.h>
13384: #endif
13385:
13386: #include <stdio.h>
13387:
13388: #ifdef RTLD_GLOBAL
13389: # define LT_DLGLOBAL RTLD_GLOBAL
13390: #else
13391: # ifdef DL_GLOBAL
13392: # define LT_DLGLOBAL DL_GLOBAL
13393: # else
13394: # define LT_DLGLOBAL 0
13395: # endif
13396: #endif
13397:
13398: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13399: find out it does not work in some platform. */
13400: #ifndef LT_DLLAZY_OR_NOW
13401: # ifdef RTLD_LAZY
13402: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13403: # else
13404: # ifdef DL_LAZY
13405: # define LT_DLLAZY_OR_NOW DL_LAZY
13406: # else
13407: # ifdef RTLD_NOW
13408: # define LT_DLLAZY_OR_NOW RTLD_NOW
13409: # else
13410: # ifdef DL_NOW
13411: # define LT_DLLAZY_OR_NOW DL_NOW
13412: # else
13413: # define LT_DLLAZY_OR_NOW 0
13414: # endif
13415: # endif
13416: # endif
13417: # endif
13418: #endif
13419:
13420: #ifdef __cplusplus
13421: extern "C" void exit (int);
13422: #endif
13423:
13424: void fnord() { int i=42;}
13425: int main ()
13426: {
13427: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13428: int status = $lt_dlunknown;
13429:
13430: if (self)
13431: {
13432: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13433: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13434: /* dlclose (self); */
13435: }
13436:
13437: exit (status);
13438: }
13439: EOF
13440: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441: (eval $ac_link) 2>&5
13442: ac_status=$?
13443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13445: (./conftest; exit; ) 2>/dev/null
13446: lt_status=$?
13447: case x$lt_status in
13448: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13449: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13450: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13451: esac
13452: else :
13453: # compilation failed
13454: lt_cv_dlopen_self=no
13455: fi
13456: fi
13457: rm -fr conftest*
13458:
13459:
13460: fi
13461: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13462: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13463:
13464: if test "x$lt_cv_dlopen_self" = xyes; then
13465: LDFLAGS="$LDFLAGS $link_static_flag"
13466: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13467: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13468: if test "${lt_cv_dlopen_self_static+set}" = set; then
13469: echo $ECHO_N "(cached) $ECHO_C" >&6
13470: else
13471: if test "$cross_compiling" = yes; then :
13472: lt_cv_dlopen_self_static=cross
13473: else
13474: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13475: lt_status=$lt_dlunknown
13476: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 13477: #line 13477 "configure"
1.1 root 13478: #include "confdefs.h"
13479:
13480: #if HAVE_DLFCN_H
13481: #include <dlfcn.h>
13482: #endif
13483:
13484: #include <stdio.h>
13485:
13486: #ifdef RTLD_GLOBAL
13487: # define LT_DLGLOBAL RTLD_GLOBAL
13488: #else
13489: # ifdef DL_GLOBAL
13490: # define LT_DLGLOBAL DL_GLOBAL
13491: # else
13492: # define LT_DLGLOBAL 0
13493: # endif
13494: #endif
13495:
13496: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13497: find out it does not work in some platform. */
13498: #ifndef LT_DLLAZY_OR_NOW
13499: # ifdef RTLD_LAZY
13500: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13501: # else
13502: # ifdef DL_LAZY
13503: # define LT_DLLAZY_OR_NOW DL_LAZY
13504: # else
13505: # ifdef RTLD_NOW
13506: # define LT_DLLAZY_OR_NOW RTLD_NOW
13507: # else
13508: # ifdef DL_NOW
13509: # define LT_DLLAZY_OR_NOW DL_NOW
13510: # else
13511: # define LT_DLLAZY_OR_NOW 0
13512: # endif
13513: # endif
13514: # endif
13515: # endif
13516: #endif
13517:
13518: #ifdef __cplusplus
13519: extern "C" void exit (int);
13520: #endif
13521:
13522: void fnord() { int i=42;}
13523: int main ()
13524: {
13525: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13526: int status = $lt_dlunknown;
13527:
13528: if (self)
13529: {
13530: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13531: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13532: /* dlclose (self); */
13533: }
13534:
13535: exit (status);
13536: }
13537: EOF
13538: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539: (eval $ac_link) 2>&5
13540: ac_status=$?
13541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13543: (./conftest; exit; ) 2>/dev/null
13544: lt_status=$?
13545: case x$lt_status in
13546: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13547: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13548: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13549: esac
13550: else :
13551: # compilation failed
13552: lt_cv_dlopen_self_static=no
13553: fi
13554: fi
13555: rm -fr conftest*
13556:
13557:
13558: fi
13559: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13560: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13561: fi
13562:
13563: CPPFLAGS="$save_CPPFLAGS"
13564: LDFLAGS="$save_LDFLAGS"
13565: LIBS="$save_LIBS"
13566: ;;
13567: esac
13568:
13569: case $lt_cv_dlopen_self in
13570: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13571: *) enable_dlopen_self=unknown ;;
13572: esac
13573:
13574: case $lt_cv_dlopen_self_static in
13575: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13576: *) enable_dlopen_self_static=unknown ;;
13577: esac
13578: fi
13579:
13580:
13581: # Report which librarie types wil actually be built
13582: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13583: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13584: echo "$as_me:$LINENO: result: $can_build_shared" >&5
13585: echo "${ECHO_T}$can_build_shared" >&6
13586:
13587: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13588: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13589: test "$can_build_shared" = "no" && enable_shared=no
13590:
13591: # On AIX, shared libraries and static libraries use the same namespace, and
13592: # are all built from PIC.
13593: case "$host_os" in
13594: aix3*)
13595: test "$enable_shared" = yes && enable_static=no
13596: if test -n "$RANLIB"; then
13597: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13598: postinstall_cmds='$RANLIB $lib'
13599: fi
13600: ;;
13601:
13602: aix4*)
13603: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13604: test "$enable_shared" = yes && enable_static=no
13605: fi
13606: ;;
13607: darwin* | rhapsody*)
13608: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13609: archive_cmds_need_lc=no
13610: case "$host_os" in
13611: rhapsody* | darwin1.[012])
13612: allow_undefined_flag='-undefined suppress'
13613: ;;
13614: *) # Darwin 1.3 on
13615: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
13616: ;;
13617: esac
13618: # FIXME: Relying on posixy $() will cause problems for
13619: # cross-compilation, but unfortunately the echo tests do not
13620: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13621: # `"' quotes if we put them in here... so don't!
13622: output_verbose_link_cmd='echo'
13623: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
13624: module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13625: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13626: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13627: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13628: hardcode_direct=no
13629: hardcode_automatic=yes
13630: hardcode_shlibpath_var=unsupported
13631: whole_archive_flag_spec='-all_load $convenience'
13632: link_all_deplibs=yes
13633: fi
13634: ;;
13635: esac
13636: echo "$as_me:$LINENO: result: $enable_shared" >&5
13637: echo "${ECHO_T}$enable_shared" >&6
13638:
13639: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13640: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13641: # Make sure either enable_shared or enable_static is yes.
13642: test "$enable_shared" = yes || enable_static=yes
13643: echo "$as_me:$LINENO: result: $enable_static" >&5
13644: echo "${ECHO_T}$enable_static" >&6
13645:
13646: # The else clause should only fire when bootstrapping the
13647: # libtool distribution, otherwise you forgot to ship ltmain.sh
13648: # with your package, and you will get complaints that there are
13649: # no rules to generate ltmain.sh.
13650: if test -f "$ltmain"; then
13651: # See if we are running on zsh, and set the options which allow our commands through
13652: # without removal of \ escapes.
13653: if test -n "${ZSH_VERSION+set}" ; then
13654: setopt NO_GLOB_SUBST
13655: fi
13656: # Now quote all the things that may contain metacharacters while being
13657: # careful not to overquote the AC_SUBSTed values. We take copies of the
13658: # variables and quote the copies for generation of the libtool script.
13659: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13660: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13661: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13662: deplibs_check_method reload_flag reload_cmds need_locks \
13663: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13664: lt_cv_sys_global_symbol_to_c_name_address \
13665: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13666: old_postinstall_cmds old_postuninstall_cmds \
13667: compiler \
13668: CC \
13669: LD \
13670: lt_prog_compiler_wl \
13671: lt_prog_compiler_pic \
13672: lt_prog_compiler_static \
13673: lt_prog_compiler_no_builtin_flag \
13674: export_dynamic_flag_spec \
13675: thread_safe_flag_spec \
13676: whole_archive_flag_spec \
13677: enable_shared_with_static_runtimes \
13678: old_archive_cmds \
13679: old_archive_from_new_cmds \
13680: predep_objects \
13681: postdep_objects \
13682: predeps \
13683: postdeps \
13684: compiler_lib_search_path \
13685: archive_cmds \
13686: archive_expsym_cmds \
13687: postinstall_cmds \
13688: postuninstall_cmds \
13689: old_archive_from_expsyms_cmds \
13690: allow_undefined_flag \
13691: no_undefined_flag \
13692: export_symbols_cmds \
13693: hardcode_libdir_flag_spec \
13694: hardcode_libdir_flag_spec_ld \
13695: hardcode_libdir_separator \
13696: hardcode_automatic \
13697: module_cmds \
13698: module_expsym_cmds \
13699: lt_cv_prog_compiler_c_o \
13700: exclude_expsyms \
13701: include_expsyms; do
13702:
13703: case $var in
13704: old_archive_cmds | \
13705: old_archive_from_new_cmds | \
13706: archive_cmds | \
13707: archive_expsym_cmds | \
13708: module_cmds | \
13709: module_expsym_cmds | \
13710: old_archive_from_expsyms_cmds | \
13711: export_symbols_cmds | \
13712: extract_expsyms_cmds | reload_cmds | finish_cmds | \
13713: postinstall_cmds | postuninstall_cmds | \
13714: old_postinstall_cmds | old_postuninstall_cmds | \
13715: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13716: # Double-quote double-evaled strings.
13717: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13718: ;;
13719: *)
13720: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13721: ;;
13722: esac
13723: done
13724:
13725: case $lt_echo in
13726: *'\$0 --fallback-echo"')
13727: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13728: ;;
13729: esac
13730:
13731: cfgfile="${ofile}T"
13732: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13733: $rm -f "$cfgfile"
13734: { echo "$as_me:$LINENO: creating $ofile" >&5
13735: echo "$as_me: creating $ofile" >&6;}
13736:
13737: cat <<__EOF__ >> "$cfgfile"
13738: #! $SHELL
13739:
13740: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13741: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13742: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13743: #
13744: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13745: # Free Software Foundation, Inc.
13746: #
13747: # This file is part of GNU Libtool:
13748: # Originally by Gordon Matzigkeit <[email protected]>, 1996
13749: #
13750: # This program is free software; you can redistribute it and/or modify
13751: # it under the terms of the GNU General Public License as published by
13752: # the Free Software Foundation; either version 2 of the License, or
13753: # (at your option) any later version.
13754: #
13755: # This program is distributed in the hope that it will be useful, but
13756: # WITHOUT ANY WARRANTY; without even the implied warranty of
13757: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13758: # General Public License for more details.
13759: #
13760: # You should have received a copy of the GNU General Public License
13761: # along with this program; if not, write to the Free Software
13762: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13763: #
13764: # As a special exception to the GNU General Public License, if you
13765: # distribute this file as part of a program that contains a
13766: # configuration script generated by Autoconf, you may include it under
13767: # the same distribution terms that you use for the rest of that program.
13768:
13769: # A sed program that does not truncate output.
13770: SED=$lt_SED
13771:
13772: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13773: Xsed="$SED -e s/^X//"
13774:
13775: # The HP-UX ksh and POSIX shell print the target directory to stdout
13776: # if CDPATH is set.
13777: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
13778:
13779: # The names of the tagged configurations supported by this script.
13780: available_tags=
13781:
13782: # ### BEGIN LIBTOOL CONFIG
13783:
13784: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13785:
13786: # Shell to use when invoking shell scripts.
13787: SHELL=$lt_SHELL
13788:
13789: # Whether or not to build shared libraries.
13790: build_libtool_libs=$enable_shared
13791:
13792: # Whether or not to build static libraries.
13793: build_old_libs=$enable_static
13794:
13795: # Whether or not to add -lc for building shared libraries.
13796: build_libtool_need_lc=$archive_cmds_need_lc
13797:
13798: # Whether or not to disallow shared libs when runtime libs are static
13799: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13800:
13801: # Whether or not to optimize for fast installation.
13802: fast_install=$enable_fast_install
13803:
13804: # The host system.
13805: host_alias=$host_alias
13806: host=$host
13807:
13808: # An echo program that does not interpret backslashes.
13809: echo=$lt_echo
13810:
13811: # The archiver.
13812: AR=$lt_AR
13813: AR_FLAGS=$lt_AR_FLAGS
13814:
13815: # A C compiler.
13816: LTCC=$lt_LTCC
13817:
13818: # A language-specific compiler.
13819: CC=$lt_compiler
13820:
13821: # Is the compiler the GNU C compiler?
13822: with_gcc=$GCC
13823:
13824: # An ERE matcher.
13825: EGREP=$lt_EGREP
13826:
13827: # The linker used to build libraries.
13828: LD=$lt_LD
13829:
13830: # Whether we need hard or soft links.
13831: LN_S=$lt_LN_S
13832:
13833: # A BSD-compatible nm program.
13834: NM=$lt_NM
13835:
13836: # A symbol stripping program
13837: STRIP=$STRIP
13838:
13839: # Used to examine libraries when file_magic_cmd begins "file"
13840: MAGIC_CMD=$MAGIC_CMD
13841:
13842: # Used on cygwin: DLL creation program.
13843: DLLTOOL="$DLLTOOL"
13844:
13845: # Used on cygwin: object dumper.
13846: OBJDUMP="$OBJDUMP"
13847:
13848: # Used on cygwin: assembler.
13849: AS="$AS"
13850:
13851: # The name of the directory that contains temporary libtool files.
13852: objdir=$objdir
13853:
13854: # How to create reloadable object files.
13855: reload_flag=$lt_reload_flag
13856: reload_cmds=$lt_reload_cmds
13857:
13858: # How to pass a linker flag through the compiler.
13859: wl=$lt_lt_prog_compiler_wl
13860:
13861: # Object file suffix (normally "o").
13862: objext="$ac_objext"
13863:
13864: # Old archive suffix (normally "a").
13865: libext="$libext"
13866:
13867: # Shared library suffix (normally ".so").
13868: shrext='$shrext'
13869:
13870: # Executable file suffix (normally "").
13871: exeext="$exeext"
13872:
13873: # Additional compiler flags for building library objects.
13874: pic_flag=$lt_lt_prog_compiler_pic
13875: pic_mode=$pic_mode
13876:
13877: # What is the maximum length of a command?
13878: max_cmd_len=$lt_cv_sys_max_cmd_len
13879:
13880: # Does compiler simultaneously support -c and -o options?
13881: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13882:
13883: # Must we lock files when doing compilation ?
13884: need_locks=$lt_need_locks
13885:
13886: # Do we need the lib prefix for modules?
13887: need_lib_prefix=$need_lib_prefix
13888:
13889: # Do we need a version for libraries?
13890: need_version=$need_version
13891:
13892: # Whether dlopen is supported.
13893: dlopen_support=$enable_dlopen
13894:
13895: # Whether dlopen of programs is supported.
13896: dlopen_self=$enable_dlopen_self
13897:
13898: # Whether dlopen of statically linked programs is supported.
13899: dlopen_self_static=$enable_dlopen_self_static
13900:
13901: # Compiler flag to prevent dynamic linking.
13902: link_static_flag=$lt_lt_prog_compiler_static
13903:
13904: # Compiler flag to turn off builtin functions.
13905: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13906:
13907: # Compiler flag to allow reflexive dlopens.
13908: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13909:
13910: # Compiler flag to generate shared objects directly from archives.
13911: whole_archive_flag_spec=$lt_whole_archive_flag_spec
13912:
13913: # Compiler flag to generate thread-safe objects.
13914: thread_safe_flag_spec=$lt_thread_safe_flag_spec
13915:
13916: # Library versioning type.
13917: version_type=$version_type
13918:
13919: # Format of library name prefix.
13920: libname_spec=$lt_libname_spec
13921:
13922: # List of archive names. First name is the real one, the rest are links.
13923: # The last name is the one that the linker finds with -lNAME.
13924: library_names_spec=$lt_library_names_spec
13925:
13926: # The coded name of the library, if different from the real name.
13927: soname_spec=$lt_soname_spec
13928:
13929: # Commands used to build and install an old-style archive.
13930: RANLIB=$lt_RANLIB
13931: old_archive_cmds=$lt_old_archive_cmds
13932: old_postinstall_cmds=$lt_old_postinstall_cmds
13933: old_postuninstall_cmds=$lt_old_postuninstall_cmds
13934:
13935: # Create an old-style archive from a shared archive.
13936: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13937:
13938: # Create a temporary old-style archive to link instead of a shared archive.
13939: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13940:
13941: # Commands used to build and install a shared archive.
13942: archive_cmds=$lt_archive_cmds
13943: archive_expsym_cmds=$lt_archive_expsym_cmds
13944: postinstall_cmds=$lt_postinstall_cmds
13945: postuninstall_cmds=$lt_postuninstall_cmds
13946:
13947: # Commands used to build a loadable module (assumed same as above if empty)
13948: module_cmds=$lt_module_cmds
13949: module_expsym_cmds=$lt_module_expsym_cmds
13950:
13951: # Commands to strip libraries.
13952: old_striplib=$lt_old_striplib
13953: striplib=$lt_striplib
13954:
13955: # Dependencies to place before the objects being linked to create a
13956: # shared library.
13957: predep_objects=$lt_predep_objects
13958:
13959: # Dependencies to place after the objects being linked to create a
13960: # shared library.
13961: postdep_objects=$lt_postdep_objects
13962:
13963: # Dependencies to place before the objects being linked to create a
13964: # shared library.
13965: predeps=$lt_predeps
13966:
13967: # Dependencies to place after the objects being linked to create a
13968: # shared library.
13969: postdeps=$lt_postdeps
13970:
13971: # The library search path used internally by the compiler when linking
13972: # a shared library.
13973: compiler_lib_search_path=$lt_compiler_lib_search_path
13974:
13975: # Method to check whether dependent libraries are shared objects.
13976: deplibs_check_method=$lt_deplibs_check_method
13977:
13978: # Command to use when deplibs_check_method == file_magic.
13979: file_magic_cmd=$lt_file_magic_cmd
13980:
13981: # Flag that allows shared libraries with undefined symbols to be built.
13982: allow_undefined_flag=$lt_allow_undefined_flag
13983:
13984: # Flag that forces no undefined symbols.
13985: no_undefined_flag=$lt_no_undefined_flag
13986:
13987: # Commands used to finish a libtool library installation in a directory.
13988: finish_cmds=$lt_finish_cmds
13989:
13990: # Same as above, but a single script fragment to be evaled but not shown.
13991: finish_eval=$lt_finish_eval
13992:
13993: # Take the output of nm and produce a listing of raw symbols and C names.
13994: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13995:
13996: # Transform the output of nm in a proper C declaration
13997: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13998:
13999: # Transform the output of nm in a C name address pair
14000: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14001:
14002: # This is the shared library runtime path variable.
14003: runpath_var=$runpath_var
14004:
14005: # This is the shared library path variable.
14006: shlibpath_var=$shlibpath_var
14007:
14008: # Is shlibpath searched before the hard-coded library search path?
14009: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14010:
14011: # How to hardcode a shared library path into an executable.
14012: hardcode_action=$hardcode_action
14013:
14014: # Whether we should hardcode library paths into libraries.
14015: hardcode_into_libs=$hardcode_into_libs
14016:
14017: # Flag to hardcode \$libdir into a binary during linking.
14018: # This must work even if \$libdir does not exist.
14019: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14020:
14021: # If ld is used when linking, flag to hardcode \$libdir into
14022: # a binary during linking. This must work even if \$libdir does
14023: # not exist.
14024: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14025:
14026: # Whether we need a single -rpath flag with a separated argument.
14027: hardcode_libdir_separator=$lt_hardcode_libdir_separator
14028:
14029: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14030: # resulting binary.
14031: hardcode_direct=$hardcode_direct
14032:
14033: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14034: # resulting binary.
14035: hardcode_minus_L=$hardcode_minus_L
14036:
14037: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14038: # the resulting binary.
14039: hardcode_shlibpath_var=$hardcode_shlibpath_var
14040:
14041: # Set to yes if building a shared library automatically hardcodes DIR into the library
14042: # and all subsequent libraries and executables linked against it.
14043: hardcode_automatic=$hardcode_automatic
14044:
14045: # Variables whose values should be saved in libtool wrapper scripts and
14046: # restored at relink time.
14047: variables_saved_for_relink="$variables_saved_for_relink"
14048:
14049: # Whether libtool must link a program against all its dependency libraries.
14050: link_all_deplibs=$link_all_deplibs
14051:
14052: # Compile-time system search path for libraries
14053: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14054:
14055: # Run-time system search path for libraries
14056: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14057:
14058: # Fix the shell variable \$srcfile for the compiler.
14059: fix_srcfile_path="$fix_srcfile_path"
14060:
14061: # Set to yes if exported symbols are required.
14062: always_export_symbols=$always_export_symbols
14063:
14064: # The commands to list exported symbols.
14065: export_symbols_cmds=$lt_export_symbols_cmds
14066:
14067: # The commands to extract the exported symbol list from a shared archive.
14068: extract_expsyms_cmds=$lt_extract_expsyms_cmds
14069:
14070: # Symbols that should not be listed in the preloaded symbols.
14071: exclude_expsyms=$lt_exclude_expsyms
14072:
14073: # Symbols that must always be exported.
14074: include_expsyms=$lt_include_expsyms
14075:
14076: # ### END LIBTOOL CONFIG
14077:
14078: __EOF__
14079:
14080:
14081: case $host_os in
14082: aix3*)
14083: cat <<\EOF >> "$cfgfile"
14084:
14085: # AIX sometimes has problems with the GCC collect2 program. For some
14086: # reason, if we set the COLLECT_NAMES environment variable, the problems
14087: # vanish in a puff of smoke.
14088: if test "X${COLLECT_NAMES+set}" != Xset; then
14089: COLLECT_NAMES=
14090: export COLLECT_NAMES
14091: fi
14092: EOF
14093: ;;
14094: esac
14095:
14096: # We use sed instead of cat because bash on DJGPP gets confused if
14097: # if finds mixed CR/LF and LF-only lines. Since sed operates in
14098: # text mode, it properly converts lines to CR/LF. This bash problem
14099: # is reportedly fixed, but why not run on old versions too?
14100: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14101:
14102: mv -f "$cfgfile" "$ofile" || \
14103: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14104: chmod +x "$ofile"
14105:
14106: else
14107: # If there is no Makefile yet, we rely on a make rule to execute
14108: # `config.status --recheck' to rerun these tests and create the
14109: # libtool script then.
14110: test -f Makefile && make "$ltmain"
14111: fi
14112:
14113:
14114: ac_ext=c
14115: ac_cpp='$CPP $CPPFLAGS'
14116: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14117: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14118: ac_compiler_gnu=$ac_cv_c_compiler_gnu
14119:
14120: CC="$lt_save_CC"
14121:
14122:
14123: # Check whether --with-tags or --without-tags was given.
14124: if test "${with_tags+set}" = set; then
14125: withval="$with_tags"
14126: tagnames="$withval"
14127: fi;
14128:
14129: if test -f "$ltmain" && test -n "$tagnames"; then
14130: if test ! -f "${ofile}"; then
14131: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14132: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14133: fi
14134:
14135: if test -z "$LTCC"; then
14136: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14137: if test -z "$LTCC"; then
14138: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14139: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14140: else
14141: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14142: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14143: fi
14144: fi
14145:
14146: # Extract list of available tagged configurations in $ofile.
14147: # Note that this assumes the entire list is on one line.
14148: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14149:
14150: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14151: for tagname in $tagnames; do
14152: IFS="$lt_save_ifs"
14153: # Check whether tagname contains only valid characters
14154: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14155: "") ;;
14156: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14157: echo "$as_me: error: invalid tag name: $tagname" >&2;}
14158: { (exit 1); exit 1; }; }
14159: ;;
14160: esac
14161:
14162: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14163: then
14164: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14165: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14166: { (exit 1); exit 1; }; }
14167: fi
14168:
14169: # Update the list of available tags.
14170: if test -n "$tagname"; then
14171: echo appending configuration tag \"$tagname\" to $ofile
14172:
14173: case $tagname in
14174: CXX)
14175: if test -n "$CXX" && test "X$CXX" != "Xno"; then
14176: ac_ext=cc
14177: ac_cpp='$CXXCPP $CPPFLAGS'
14178: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14179: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14180: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14181:
14182:
14183:
14184:
14185: archive_cmds_need_lc_CXX=no
14186: allow_undefined_flag_CXX=
14187: always_export_symbols_CXX=no
14188: archive_expsym_cmds_CXX=
14189: export_dynamic_flag_spec_CXX=
14190: hardcode_direct_CXX=no
14191: hardcode_libdir_flag_spec_CXX=
14192: hardcode_libdir_flag_spec_ld_CXX=
14193: hardcode_libdir_separator_CXX=
14194: hardcode_minus_L_CXX=no
14195: hardcode_automatic_CXX=no
14196: module_cmds_CXX=
14197: module_expsym_cmds_CXX=
14198: link_all_deplibs_CXX=unknown
14199: old_archive_cmds_CXX=$old_archive_cmds
14200: no_undefined_flag_CXX=
14201: whole_archive_flag_spec_CXX=
14202: enable_shared_with_static_runtimes_CXX=no
14203:
14204: # Dependencies to place before and after the object being linked:
14205: predep_objects_CXX=
14206: postdep_objects_CXX=
14207: predeps_CXX=
14208: postdeps_CXX=
14209: compiler_lib_search_path_CXX=
14210:
14211: # Source file extension for C++ test sources.
14212: ac_ext=cc
14213:
14214: # Object file extension for compiled C++ test sources.
14215: objext=o
14216: objext_CXX=$objext
14217:
14218: # Code to be used in simple compile tests
14219: lt_simple_compile_test_code="int some_variable = 0;\n"
14220:
14221: # Code to be used in simple link tests
14222: lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14223:
14224: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14225:
14226: # If no C compiler was specified, use CC.
14227: LTCC=${LTCC-"$CC"}
14228:
14229: # Allow CC to be a program name with arguments.
14230: compiler=$CC
14231:
14232:
14233: # Allow CC to be a program name with arguments.
14234: lt_save_CC=$CC
14235: lt_save_LD=$LD
14236: lt_save_GCC=$GCC
14237: GCC=$GXX
14238: lt_save_with_gnu_ld=$with_gnu_ld
14239: lt_save_path_LD=$lt_cv_path_LD
14240: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14241: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14242: else
14243: unset lt_cv_prog_gnu_ld
14244: fi
14245: if test -n "${lt_cv_path_LDCXX+set}"; then
14246: lt_cv_path_LD=$lt_cv_path_LDCXX
14247: else
14248: unset lt_cv_path_LD
14249: fi
14250: test -z "${LDCXX+set}" || LD=$LDCXX
14251: CC=${CXX-"c++"}
14252: compiler=$CC
14253: compiler_CXX=$CC
14254: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14255:
14256: # We don't want -fno-exception wen compiling C++ code, so set the
14257: # no_builtin_flag separately
14258: if test "$GXX" = yes; then
14259: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14260: else
14261: lt_prog_compiler_no_builtin_flag_CXX=
14262: fi
14263:
14264: if test "$GXX" = yes; then
14265: # Set up default GNU C++ configuration
14266:
14267:
14268: # Check whether --with-gnu-ld or --without-gnu-ld was given.
14269: if test "${with_gnu_ld+set}" = set; then
14270: withval="$with_gnu_ld"
14271: test "$withval" = no || with_gnu_ld=yes
14272: else
14273: with_gnu_ld=no
14274: fi;
14275: ac_prog=ld
14276: if test "$GCC" = yes; then
14277: # Check if gcc -print-prog-name=ld gives a path.
14278: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14279: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14280: case $host in
14281: *-*-mingw*)
14282: # gcc leaves a trailing carriage return which upsets mingw
14283: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14284: *)
14285: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14286: esac
14287: case $ac_prog in
14288: # Accept absolute paths.
14289: [\\/]* | ?:[\\/]*)
14290: re_direlt='/[^/][^/]*/\.\./'
14291: # Canonicalize the path of ld
14292: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14293: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14294: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14295: done
14296: test -z "$LD" && LD="$ac_prog"
14297: ;;
14298: "")
14299: # If it fails, then pretend we aren't using GCC.
14300: ac_prog=ld
14301: ;;
14302: *)
14303: # If it is relative, then search for the first ld in PATH.
14304: with_gnu_ld=unknown
14305: ;;
14306: esac
14307: elif test "$with_gnu_ld" = yes; then
14308: echo "$as_me:$LINENO: checking for GNU ld" >&5
14309: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14310: else
14311: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14312: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14313: fi
14314: if test "${lt_cv_path_LD+set}" = set; then
14315: echo $ECHO_N "(cached) $ECHO_C" >&6
14316: else
14317: if test -z "$LD"; then
14318: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14319: for ac_dir in $PATH; do
14320: IFS="$lt_save_ifs"
14321: test -z "$ac_dir" && ac_dir=.
14322: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14323: lt_cv_path_LD="$ac_dir/$ac_prog"
14324: # Check to see if the program is GNU ld. I'd rather use --version,
14325: # but apparently some GNU ld's only accept -v.
14326: # Break only if it was the GNU/non-GNU ld that we prefer.
14327: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14328: *GNU* | *'with BFD'*)
14329: test "$with_gnu_ld" != no && break
14330: ;;
14331: *)
14332: test "$with_gnu_ld" != yes && break
14333: ;;
14334: esac
14335: fi
14336: done
14337: IFS="$lt_save_ifs"
14338: else
14339: lt_cv_path_LD="$LD" # Let the user override the test with a path.
14340: fi
14341: fi
14342:
14343: LD="$lt_cv_path_LD"
14344: if test -n "$LD"; then
14345: echo "$as_me:$LINENO: result: $LD" >&5
14346: echo "${ECHO_T}$LD" >&6
14347: else
14348: echo "$as_me:$LINENO: result: no" >&5
14349: echo "${ECHO_T}no" >&6
14350: fi
14351: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14352: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14353: { (exit 1); exit 1; }; }
14354: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14355: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14356: if test "${lt_cv_prog_gnu_ld+set}" = set; then
14357: echo $ECHO_N "(cached) $ECHO_C" >&6
14358: else
14359: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14360: case `"$LD" -v 2>&1 </dev/null` in
14361: *GNU* | *'with BFD'*)
14362: lt_cv_prog_gnu_ld=yes
14363: ;;
14364: *)
14365: lt_cv_prog_gnu_ld=no
14366: ;;
14367: esac
14368: fi
14369: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14370: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14371: with_gnu_ld=$lt_cv_prog_gnu_ld
14372:
14373:
14374:
14375: # Check if GNU C++ uses GNU ld as the underlying linker, since the
14376: # archiving commands below assume that GNU ld is being used.
14377: if test "$with_gnu_ld" = yes; then
14378: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380:
14381: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14382: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14383:
14384: # If archive_cmds runs LD, not CC, wlarc should be empty
14385: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14386: # investigate it a little bit more. (MM)
14387: wlarc='${wl}'
14388:
14389: # ancient GNU ld didn't support --whole-archive et. al.
14390: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14391: grep 'no-whole-archive' > /dev/null; then
14392: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14393: else
14394: whole_archive_flag_spec_CXX=
14395: fi
14396: else
14397: with_gnu_ld=no
14398: wlarc=
14399:
14400: # A generic and very simple default shared library creation
14401: # command for GNU C++ for the case where it uses the native
14402: # linker, instead of GNU ld. If possible, this setting should
14403: # overridden to take advantage of the native linker features on
14404: # the platform it is being used on.
14405: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14406: fi
14407:
14408: # Commands to make compiler produce verbose output that lists
14409: # what "hidden" libraries, object files and flags are used when
14410: # linking a shared library.
14411: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14412:
14413: else
14414: GXX=no
14415: with_gnu_ld=no
14416: wlarc=
14417: fi
14418:
14419: # PORTME: fill in a description of your system's C++ link characteristics
14420: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14421: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14422: ld_shlibs_CXX=yes
14423: case $host_os in
14424: aix3*)
14425: # FIXME: insert proper C++ library support
14426: ld_shlibs_CXX=no
14427: ;;
14428: aix4* | aix5*)
14429: if test "$host_cpu" = ia64; then
14430: # On IA64, the linker does run time linking by default, so we don't
14431: # have to do anything special.
14432: aix_use_runtimelinking=no
14433: exp_sym_flag='-Bexport'
14434: no_entry_flag=""
14435: else
14436: aix_use_runtimelinking=no
14437:
14438: # Test if we are trying to use run time linking or normal
14439: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14440: # need to do runtime linking.
14441: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14442: for ld_flag in $LDFLAGS; do
14443: case $ld_flag in
14444: *-brtl*)
14445: aix_use_runtimelinking=yes
14446: break
14447: ;;
14448: esac
14449: done
14450: esac
14451:
14452: exp_sym_flag='-bexport'
14453: no_entry_flag='-bnoentry'
14454: fi
14455:
14456: # When large executables or shared objects are built, AIX ld can
14457: # have problems creating the table of contents. If linking a library
14458: # or program results in "error TOC overflow" add -mminimal-toc to
14459: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14460: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14461:
14462: archive_cmds_CXX=''
14463: hardcode_direct_CXX=yes
14464: hardcode_libdir_separator_CXX=':'
14465: link_all_deplibs_CXX=yes
14466:
14467: if test "$GXX" = yes; then
14468: case $host_os in aix4.012|aix4.012.*)
14469: # We only want to do this on AIX 4.2 and lower, the check
14470: # below for broken collect2 doesn't work under 4.3+
14471: collect2name=`${CC} -print-prog-name=collect2`
14472: if test -f "$collect2name" && \
14473: strings "$collect2name" | grep resolve_lib_name >/dev/null
14474: then
14475: # We have reworked collect2
14476: hardcode_direct_CXX=yes
14477: else
14478: # We have old collect2
14479: hardcode_direct_CXX=unsupported
14480: # It fails to find uninstalled libraries when the uninstalled
14481: # path is not listed in the libpath. Setting hardcode_minus_L
14482: # to unsupported forces relinking
14483: hardcode_minus_L_CXX=yes
14484: hardcode_libdir_flag_spec_CXX='-L$libdir'
14485: hardcode_libdir_separator_CXX=
14486: fi
14487: esac
14488: shared_flag='-shared'
14489: else
14490: # not using gcc
14491: if test "$host_cpu" = ia64; then
14492: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14493: # chokes on -Wl,-G. The following line is correct:
14494: shared_flag='-G'
14495: else
14496: if test "$aix_use_runtimelinking" = yes; then
14497: shared_flag='${wl}-G'
14498: else
14499: shared_flag='${wl}-bM:SRE'
14500: fi
14501: fi
14502: fi
14503:
14504: # It seems that -bexpall does not export symbols beginning with
14505: # underscore (_), so it is better to generate a list of symbols to export.
14506: always_export_symbols_CXX=yes
14507: if test "$aix_use_runtimelinking" = yes; then
14508: # Warning - without using the other runtime loading flags (-brtl),
14509: # -berok will link without error, but may produce a broken library.
14510: allow_undefined_flag_CXX='-berok'
14511: # Determine the default libpath from the value encoded in an empty executable.
14512: cat >conftest.$ac_ext <<_ACEOF
14513: #line $LINENO "configure"
14514: /* confdefs.h. */
14515: _ACEOF
14516: cat confdefs.h >>conftest.$ac_ext
14517: cat >>conftest.$ac_ext <<_ACEOF
14518: /* end confdefs.h. */
14519:
14520: int
14521: main ()
14522: {
14523:
14524: ;
14525: return 0;
14526: }
14527: _ACEOF
14528: rm -f conftest.$ac_objext conftest$ac_exeext
14529: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530: (eval $ac_link) 2>&5
14531: ac_status=$?
14532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533: (exit $ac_status); } &&
14534: { ac_try='test -s conftest$ac_exeext'
14535: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536: (eval $ac_try) 2>&5
14537: ac_status=$?
14538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539: (exit $ac_status); }; }; then
14540:
14541: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14542: }'`
14543: # Check for a 64-bit object if we didn't find anything.
14544: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14545: }'`; fi
14546: else
14547: echo "$as_me: failed program was:" >&5
14548: sed 's/^/| /' conftest.$ac_ext >&5
14549:
14550: fi
14551: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14552: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14553:
14554: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14555:
14556: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14557: else
14558: if test "$host_cpu" = ia64; then
14559: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14560: allow_undefined_flag_CXX="-z nodefs"
14561: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14562: else
14563: # Determine the default libpath from the value encoded in an empty executable.
14564: cat >conftest.$ac_ext <<_ACEOF
14565: #line $LINENO "configure"
14566: /* confdefs.h. */
14567: _ACEOF
14568: cat confdefs.h >>conftest.$ac_ext
14569: cat >>conftest.$ac_ext <<_ACEOF
14570: /* end confdefs.h. */
14571:
14572: int
14573: main ()
14574: {
14575:
14576: ;
14577: return 0;
14578: }
14579: _ACEOF
14580: rm -f conftest.$ac_objext conftest$ac_exeext
14581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14582: (eval $ac_link) 2>&5
14583: ac_status=$?
14584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585: (exit $ac_status); } &&
14586: { ac_try='test -s conftest$ac_exeext'
14587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588: (eval $ac_try) 2>&5
14589: ac_status=$?
14590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591: (exit $ac_status); }; }; then
14592:
14593: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14594: }'`
14595: # Check for a 64-bit object if we didn't find anything.
14596: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14597: }'`; fi
14598: else
14599: echo "$as_me: failed program was:" >&5
14600: sed 's/^/| /' conftest.$ac_ext >&5
14601:
14602: fi
14603: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14605:
14606: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14607: # Warning - without using the other run time loading flags,
14608: # -berok will link without error, but may produce a broken library.
14609: no_undefined_flag_CXX=' ${wl}-bernotok'
14610: allow_undefined_flag_CXX=' ${wl}-berok'
14611: # -bexpall does not export symbols beginning with underscore (_)
14612: always_export_symbols_CXX=yes
14613: # Exported symbols can be pulled into shared objects from archives
14614: whole_archive_flag_spec_CXX=' '
14615: archive_cmds_need_lc_CXX=yes
14616: # This is similar to how AIX traditionally builds it's shared libraries.
14617: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14618: fi
14619: fi
14620: ;;
14621: chorus*)
14622: case $cc_basename in
14623: *)
14624: # FIXME: insert proper C++ library support
14625: ld_shlibs_CXX=no
14626: ;;
14627: esac
14628: ;;
14629:
14630: cygwin* | mingw* | pw32*)
14631: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14632: # as there is no search path for DLLs.
14633: hardcode_libdir_flag_spec_CXX='-L$libdir'
14634: allow_undefined_flag_CXX=unsupported
14635: always_export_symbols_CXX=no
14636: enable_shared_with_static_runtimes_CXX=yes
14637:
14638: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14639: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14640: # If the export-symbols file already is a .def file (1st line
14641: # is EXPORTS), use it as is; otherwise, prepend...
14642: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14643: cp $export_symbols $output_objdir/$soname.def;
14644: else
14645: echo EXPORTS > $output_objdir/$soname.def;
14646: cat $export_symbols >> $output_objdir/$soname.def;
14647: fi~
14648: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14649: else
14650: ld_shlibs_CXX=no
14651: fi
14652: ;;
14653:
14654: darwin* | rhapsody*)
14655: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14656: archive_cmds_need_lc_CXX=no
14657: case "$host_os" in
14658: rhapsody* | darwin1.[012])
14659: allow_undefined_flag_CXX='-undefined suppress'
14660: ;;
14661: *) # Darwin 1.3 on
14662: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
14663: ;;
14664: esac
14665: lt_int_apple_cc_single_mod=no
14666: output_verbose_link_cmd='echo'
14667: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14668: lt_int_apple_cc_single_mod=yes
14669: fi
14670: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14671: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14672: else
14673: archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
14674: fi
14675: module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14676:
14677: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14678: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14679: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14680: else
14681: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14682: fi
14683: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14684: hardcode_direct_CXX=no
14685: hardcode_automatic_CXX=yes
14686: hardcode_shlibpath_var_CXX=unsupported
14687: whole_archive_flag_spec_CXX='-all_load $convenience'
14688: link_all_deplibs_CXX=yes
14689: fi
14690: ;;
14691:
14692: dgux*)
14693: case $cc_basename in
14694: ec++)
14695: # FIXME: insert proper C++ library support
14696: ld_shlibs_CXX=no
14697: ;;
14698: ghcx)
14699: # Green Hills C++ Compiler
14700: # FIXME: insert proper C++ library support
14701: ld_shlibs_CXX=no
14702: ;;
14703: *)
14704: # FIXME: insert proper C++ library support
14705: ld_shlibs_CXX=no
14706: ;;
14707: esac
14708: ;;
14709: freebsd12*)
14710: # C++ shared libraries reported to be fairly broken before switch to ELF
14711: ld_shlibs_CXX=no
14712: ;;
14713: freebsd-elf*)
14714: archive_cmds_need_lc_CXX=no
14715: ;;
14716: freebsd*)
14717: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14718: # conventions
14719: ld_shlibs_CXX=yes
14720: ;;
14721: gnu*)
14722: ;;
14723: hpux9*)
14724: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14725: hardcode_libdir_separator_CXX=:
14726: export_dynamic_flag_spec_CXX='${wl}-E'
14727: hardcode_direct_CXX=yes
14728: hardcode_minus_L_CXX=yes # Not in the search PATH,
14729: # but as the default
14730: # location of the library.
14731:
14732: case $cc_basename in
14733: CC)
14734: # FIXME: insert proper C++ library support
14735: ld_shlibs_CXX=no
14736: ;;
14737: aCC)
14738: 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'
14739: # Commands to make compiler produce verbose output that lists
14740: # what "hidden" libraries, object files and flags are used when
14741: # linking a shared library.
14742: #
14743: # There doesn't appear to be a way to prevent this compiler from
14744: # explicitly linking system object files so we need to strip them
14745: # from the output so that they don't get included in the library
14746: # dependencies.
14747: 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; echo $list'
14748: ;;
14749: *)
14750: if test "$GXX" = yes; then
14751: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
14752: else
14753: # FIXME: insert proper C++ library support
14754: ld_shlibs_CXX=no
14755: fi
14756: ;;
14757: esac
14758: ;;
14759: hpux10*|hpux11*)
14760: if test $with_gnu_ld = no; then
14761: case "$host_cpu" in
14762: hppa*64*)
14763: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14764: hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14765: hardcode_libdir_separator_CXX=:
14766: ;;
14767: ia64*)
14768: hardcode_libdir_flag_spec_CXX='-L$libdir'
14769: ;;
14770: *)
14771: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14772: hardcode_libdir_separator_CXX=:
14773: export_dynamic_flag_spec_CXX='${wl}-E'
14774: ;;
14775: esac
14776: fi
14777: case "$host_cpu" in
14778: hppa*64*)
14779: hardcode_direct_CXX=no
14780: hardcode_shlibpath_var_CXX=no
14781: ;;
14782: ia64*)
14783: hardcode_direct_CXX=no
14784: hardcode_shlibpath_var_CXX=no
14785: hardcode_minus_L_CXX=yes # Not in the search PATH,
14786: # but as the default
14787: # location of the library.
14788: ;;
14789: *)
14790: hardcode_direct_CXX=yes
14791: hardcode_minus_L_CXX=yes # Not in the search PATH,
14792: # but as the default
14793: # location of the library.
14794: ;;
14795: esac
14796:
14797: case $cc_basename in
14798: CC)
14799: # FIXME: insert proper C++ library support
14800: ld_shlibs_CXX=no
14801: ;;
14802: aCC)
14803: case "$host_cpu" in
14804: hppa*64*|ia64*)
14805: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14806: ;;
14807: *)
14808: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14809: ;;
14810: esac
14811: # Commands to make compiler produce verbose output that lists
14812: # what "hidden" libraries, object files and flags are used when
14813: # linking a shared library.
14814: #
14815: # There doesn't appear to be a way to prevent this compiler from
14816: # explicitly linking system object files so we need to strip them
14817: # from the output so that they don't get included in the library
14818: # dependencies.
14819: 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; echo $list'
14820: ;;
14821: *)
14822: if test "$GXX" = yes; then
14823: if test $with_gnu_ld = no; then
14824: case "$host_cpu" in
14825: ia64*|hppa*64*)
14826: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14827: ;;
14828: *)
14829: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14830: ;;
14831: esac
14832: fi
14833: else
14834: # FIXME: insert proper C++ library support
14835: ld_shlibs_CXX=no
14836: fi
14837: ;;
14838: esac
14839: ;;
14840: irix5* | irix6*)
14841: case $cc_basename in
14842: CC)
14843: # SGI C++
14844: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14845:
14846: # Archives containing C++ object files must be created using
14847: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14848: # necessary to make sure instantiated templates are included
14849: # in the archive.
14850: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14851: ;;
14852: *)
14853: if test "$GXX" = yes; then
14854: if test "$with_gnu_ld" = no; then
14855: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14856: else
14857: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14858: fi
14859: fi
14860: link_all_deplibs_CXX=yes
14861: ;;
14862: esac
14863: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14864: hardcode_libdir_separator_CXX=:
14865: ;;
14866: linux*)
14867: case $cc_basename in
14868: KCC)
14869: # Kuck and Associates, Inc. (KAI) C++ Compiler
14870:
14871: # KCC will only create a shared library if the output file
14872: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14873: # to its proper name (with version) after linking.
14874: 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'
14875: 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'
14876: # Commands to make compiler produce verbose output that lists
14877: # what "hidden" libraries, object files and flags are used when
14878: # linking a shared library.
14879: #
14880: # There doesn't appear to be a way to prevent this compiler from
14881: # explicitly linking system object files so we need to strip them
14882: # from the output so that they don't get included in the library
14883: # dependencies.
14884: 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; echo $list'
14885:
14886: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14887: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14888:
14889: # Archives containing C++ object files must be created using
14890: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14891: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14892: ;;
14893: icpc)
14894: # Intel C++
14895: with_gnu_ld=yes
14896: archive_cmds_need_lc_CXX=no
14897: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898: 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'
14899: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14900: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14901: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14902: ;;
14903: cxx)
14904: # Compaq C++
14905: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14906: 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'
14907:
14908: runpath_var=LD_RUN_PATH
14909: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14910: hardcode_libdir_separator_CXX=:
14911:
14912: # Commands to make compiler produce verbose output that lists
14913: # what "hidden" libraries, object files and flags are used when
14914: # linking a shared library.
14915: #
14916: # There doesn't appear to be a way to prevent this compiler from
14917: # explicitly linking system object files so we need to strip them
14918: # from the output so that they don't get included in the library
14919: # dependencies.
14920: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
14921: ;;
14922: esac
14923: ;;
14924: lynxos*)
14925: # FIXME: insert proper C++ library support
14926: ld_shlibs_CXX=no
14927: ;;
14928: m88k*)
14929: # FIXME: insert proper C++ library support
14930: ld_shlibs_CXX=no
14931: ;;
14932: mvs*)
14933: case $cc_basename in
14934: cxx)
14935: # FIXME: insert proper C++ library support
14936: ld_shlibs_CXX=no
14937: ;;
14938: *)
14939: # FIXME: insert proper C++ library support
14940: ld_shlibs_CXX=no
14941: ;;
14942: esac
14943: ;;
14944: netbsd*)
14945: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14946: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14947: wlarc=
14948: hardcode_libdir_flag_spec_CXX='-R$libdir'
14949: hardcode_direct_CXX=yes
14950: hardcode_shlibpath_var_CXX=no
14951: fi
14952: # Workaround some broken pre-1.5 toolchains
14953: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14954: ;;
14955: osf3*)
14956: case $cc_basename in
14957: KCC)
14958: # Kuck and Associates, Inc. (KAI) C++ Compiler
14959:
14960: # KCC will only create a shared library if the output file
14961: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14962: # to its proper name (with version) after linking.
14963: 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'
14964:
14965: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14966: hardcode_libdir_separator_CXX=:
14967:
14968: # Archives containing C++ object files must be created using
14969: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14970: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14971:
14972: ;;
14973: RCC)
14974: # Rational C++ 2.4.1
14975: # FIXME: insert proper C++ library support
14976: ld_shlibs_CXX=no
14977: ;;
14978: cxx)
14979: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14980: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14981:
14982: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14983: hardcode_libdir_separator_CXX=:
14984:
14985: # Commands to make compiler produce verbose output that lists
14986: # what "hidden" libraries, object files and flags are used when
14987: # linking a shared library.
14988: #
14989: # There doesn't appear to be a way to prevent this compiler from
14990: # explicitly linking system object files so we need to strip them
14991: # from the output so that they don't get included in the library
14992: # dependencies.
14993: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
14994: ;;
14995: *)
14996: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14997: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14998: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14999:
15000: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15001: hardcode_libdir_separator_CXX=:
15002:
15003: # Commands to make compiler produce verbose output that lists
15004: # what "hidden" libraries, object files and flags are used when
15005: # linking a shared library.
15006: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15007:
15008: else
15009: # FIXME: insert proper C++ library support
15010: ld_shlibs_CXX=no
15011: fi
15012: ;;
15013: esac
15014: ;;
15015: osf4* | osf5*)
15016: case $cc_basename in
15017: KCC)
15018: # Kuck and Associates, Inc. (KAI) C++ Compiler
15019:
15020: # KCC will only create a shared library if the output file
15021: # ends with ".so" (or ".sl" for HP-UX), so rename the library
15022: # to its proper name (with version) after linking.
15023: 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'
15024:
15025: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15026: hardcode_libdir_separator_CXX=:
15027:
15028: # Archives containing C++ object files must be created using
15029: # the KAI C++ compiler.
15030: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15031: ;;
15032: RCC)
15033: # Rational C++ 2.4.1
15034: # FIXME: insert proper C++ library support
15035: ld_shlibs_CXX=no
15036: ;;
15037: cxx)
15038: allow_undefined_flag_CXX=' -expect_unresolved \*'
15039: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
15040: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15041: echo "-hidden">> $lib.exp~
15042: $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 $objdir/so_locations -o $lib~
15043: $rm $lib.exp'
15044:
15045: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15046: hardcode_libdir_separator_CXX=:
15047:
15048: # Commands to make compiler produce verbose output that lists
15049: # what "hidden" libraries, object files and flags are used when
15050: # linking a shared library.
15051: #
15052: # There doesn't appear to be a way to prevent this compiler from
15053: # explicitly linking system object files so we need to strip them
15054: # from the output so that they don't get included in the library
15055: # dependencies.
15056: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
15057: ;;
15058: *)
15059: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15060: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15061: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15062:
15063: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15064: hardcode_libdir_separator_CXX=:
15065:
15066: # Commands to make compiler produce verbose output that lists
15067: # what "hidden" libraries, object files and flags are used when
15068: # linking a shared library.
15069: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15070:
15071: else
15072: # FIXME: insert proper C++ library support
15073: ld_shlibs_CXX=no
15074: fi
15075: ;;
15076: esac
15077: ;;
15078: psos*)
15079: # FIXME: insert proper C++ library support
15080: ld_shlibs_CXX=no
15081: ;;
15082: sco*)
15083: archive_cmds_need_lc_CXX=no
15084: case $cc_basename in
15085: CC)
15086: # FIXME: insert proper C++ library support
15087: ld_shlibs_CXX=no
15088: ;;
15089: *)
15090: # FIXME: insert proper C++ library support
15091: ld_shlibs_CXX=no
15092: ;;
15093: esac
15094: ;;
15095: sunos4*)
15096: case $cc_basename in
15097: CC)
15098: # Sun C++ 4.x
15099: # FIXME: insert proper C++ library support
15100: ld_shlibs_CXX=no
15101: ;;
15102: lcc)
15103: # Lucid
15104: # FIXME: insert proper C++ library support
15105: ld_shlibs_CXX=no
15106: ;;
15107: *)
15108: # FIXME: insert proper C++ library support
15109: ld_shlibs_CXX=no
15110: ;;
15111: esac
15112: ;;
15113: solaris*)
15114: case $cc_basename in
15115: CC)
15116: # Sun C++ 4.2, 5.x and Centerline C++
15117: no_undefined_flag_CXX=' -zdefs'
15118: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15119: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15120: $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15121:
15122: hardcode_libdir_flag_spec_CXX='-R$libdir'
15123: hardcode_shlibpath_var_CXX=no
15124: case $host_os in
15125: solaris2.0-5 | solaris2.0-5.*) ;;
15126: *)
15127: # The C++ compiler is used as linker so we must use $wl
15128: # flag to pass the commands to the underlying system
15129: # linker.
15130: # Supported since Solaris 2.6 (maybe 2.5.1?)
15131: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15132: ;;
15133: esac
15134: link_all_deplibs_CXX=yes
15135:
15136: # Commands to make compiler produce verbose output that lists
15137: # what "hidden" libraries, object files and flags are used when
15138: # linking a shared library.
15139: #
15140: # There doesn't appear to be a way to prevent this compiler from
15141: # explicitly linking system object files so we need to strip them
15142: # from the output so that they don't get included in the library
15143: # dependencies.
15144: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
15145:
15146: # Archives containing C++ object files must be created using
15147: # "CC -xar", where "CC" is the Sun C++ compiler. This is
15148: # necessary to make sure instantiated templates are included
15149: # in the archive.
15150: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15151: ;;
15152: gcx)
15153: # Green Hills C++ Compiler
15154: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15155:
15156: # The C++ compiler must be used to create the archive.
15157: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15158: ;;
15159: *)
15160: # GNU C++ compiler with Solaris linker
15161: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15162: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15163: if $CC --version | grep -v '^2\.7' > /dev/null; then
15164: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15165: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15166: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15167:
15168: # Commands to make compiler produce verbose output that lists
15169: # what "hidden" libraries, object files and flags are used when
15170: # linking a shared library.
15171: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15172: else
15173: # g++ 2.7 appears to require `-G' NOT `-shared' on this
15174: # platform.
15175: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15176: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15177: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15178:
15179: # Commands to make compiler produce verbose output that lists
15180: # what "hidden" libraries, object files and flags are used when
15181: # linking a shared library.
15182: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15183: fi
15184:
15185: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15186: fi
15187: ;;
15188: esac
15189: ;;
15190: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15191: archive_cmds_need_lc_CXX=no
15192: ;;
15193: tandem*)
15194: case $cc_basename in
15195: NCC)
15196: # NonStop-UX NCC 3.20
15197: # FIXME: insert proper C++ library support
15198: ld_shlibs_CXX=no
15199: ;;
15200: *)
15201: # FIXME: insert proper C++ library support
15202: ld_shlibs_CXX=no
15203: ;;
15204: esac
15205: ;;
15206: vxworks*)
15207: # FIXME: insert proper C++ library support
15208: ld_shlibs_CXX=no
15209: ;;
15210: *)
15211: # FIXME: insert proper C++ library support
15212: ld_shlibs_CXX=no
15213: ;;
15214: esac
15215: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15216: echo "${ECHO_T}$ld_shlibs_CXX" >&6
15217: test "$ld_shlibs_CXX" = no && can_build_shared=no
15218:
15219: GCC_CXX="$GXX"
15220: LD_CXX="$LD"
15221:
15222:
15223: cat > conftest.$ac_ext <<EOF
15224: class Foo
15225: {
15226: public:
15227: Foo (void) { a = 0; }
15228: private:
15229: int a;
15230: };
15231: EOF
15232:
15233: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234: (eval $ac_compile) 2>&5
15235: ac_status=$?
15236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237: (exit $ac_status); }; then
15238: # Parse the compiler output and extract the necessary
15239: # objects, libraries and library flags.
15240:
15241: # Sentinel used to keep track of whether or not we are before
15242: # the conftest object file.
15243: pre_test_object_deps_done=no
15244:
15245: # The `*' in the case matches for architectures that use `case' in
15246: # $output_verbose_cmd can trigger glob expansion during the loop
15247: # eval without this substitution.
15248: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
15249:
15250: for p in `eval $output_verbose_link_cmd`; do
15251: case $p in
15252:
15253: -L* | -R* | -l*)
15254: # Some compilers place space between "-{L,R}" and the path.
15255: # Remove the space.
15256: if test $p = "-L" \
15257: || test $p = "-R"; then
15258: prev=$p
15259: continue
15260: else
15261: prev=
15262: fi
15263:
15264: if test "$pre_test_object_deps_done" = no; then
15265: case $p in
15266: -L* | -R*)
15267: # Internal compiler library paths should come after those
15268: # provided the user. The postdeps already come after the
15269: # user supplied libs so there is no need to process them.
15270: if test -z "$compiler_lib_search_path_CXX"; then
15271: compiler_lib_search_path_CXX="${prev}${p}"
15272: else
15273: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15274: fi
15275: ;;
15276: # The "-l" case would never come before the object being
15277: # linked, so don't bother handling this case.
15278: esac
15279: else
15280: if test -z "$postdeps_CXX"; then
15281: postdeps_CXX="${prev}${p}"
15282: else
15283: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15284: fi
15285: fi
15286: ;;
15287:
15288: *.$objext)
15289: # This assumes that the test object file only shows up
15290: # once in the compiler output.
15291: if test "$p" = "conftest.$objext"; then
15292: pre_test_object_deps_done=yes
15293: continue
15294: fi
15295:
15296: if test "$pre_test_object_deps_done" = no; then
15297: if test -z "$predep_objects_CXX"; then
15298: predep_objects_CXX="$p"
15299: else
15300: predep_objects_CXX="$predep_objects_CXX $p"
15301: fi
15302: else
15303: if test -z "$postdep_objects_CXX"; then
15304: postdep_objects_CXX="$p"
15305: else
15306: postdep_objects_CXX="$postdep_objects_CXX $p"
15307: fi
15308: fi
15309: ;;
15310:
15311: *) ;; # Ignore the rest.
15312:
15313: esac
15314: done
15315:
15316: # Clean up.
15317: rm -f a.out a.exe
15318: else
15319: echo "libtool.m4: error: problem compiling CXX test program"
15320: fi
15321:
15322: $rm -f confest.$objext
15323:
15324: case " $postdeps_CXX " in
15325: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15326: esac
15327:
15328: lt_prog_compiler_wl_CXX=
15329: lt_prog_compiler_pic_CXX=
15330: lt_prog_compiler_static_CXX=
15331:
15332: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15333: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15334:
15335: # C++ specific cases for pic, static, wl, etc.
15336: if test "$GXX" = yes; then
15337: lt_prog_compiler_wl_CXX='-Wl,'
15338: lt_prog_compiler_static_CXX='-static'
15339:
15340: case $host_os in
15341: aix*)
15342: # All AIX code is PIC.
15343: if test "$host_cpu" = ia64; then
15344: # AIX 5 now supports IA64 processor
15345: lt_prog_compiler_static_CXX='-Bstatic'
15346: fi
15347: ;;
15348: amigaos*)
15349: # FIXME: we need at least 68020 code to build shared libraries, but
15350: # adding the `-m68020' flag to GCC prevents building anything better,
15351: # like `-m68040'.
15352: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15353: ;;
15354: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15355: # PIC is the default for these OSes.
15356: ;;
15357: mingw* | os2* | pw32*)
15358: # This hack is so that the source file can tell whether it is being
15359: # built for inclusion in a dll (and should export symbols for example).
15360: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15361: ;;
15362: darwin* | rhapsody*)
15363: # PIC is the default on this platform
15364: # Common symbols not allowed in MH_DYLIB files
15365: lt_prog_compiler_pic_CXX='-fno-common'
15366: ;;
15367: *djgpp*)
15368: # DJGPP does not support shared libraries at all
15369: lt_prog_compiler_pic_CXX=
15370: ;;
15371: sysv4*MP*)
15372: if test -d /usr/nec; then
15373: lt_prog_compiler_pic_CXX=-Kconform_pic
15374: fi
15375: ;;
15376: hpux*)
15377: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15378: # not for PA HP-UX.
15379: case "$host_cpu" in
15380: hppa*64*|ia64*)
15381: ;;
15382: *)
15383: lt_prog_compiler_pic_CXX='-fPIC'
15384: ;;
15385: esac
15386: ;;
15387: *)
15388: lt_prog_compiler_pic_CXX='-fPIC'
15389: ;;
15390: esac
15391: else
15392: case $host_os in
15393: aix4* | aix5*)
15394: # All AIX code is PIC.
15395: if test "$host_cpu" = ia64; then
15396: # AIX 5 now supports IA64 processor
15397: lt_prog_compiler_static_CXX='-Bstatic'
15398: else
15399: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15400: fi
15401: ;;
15402: chorus*)
15403: case $cc_basename in
15404: cxch68)
15405: # Green Hills C++ Compiler
15406: # _LT_AC_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"
15407: ;;
15408: esac
15409: ;;
15410: dgux*)
15411: case $cc_basename in
15412: ec++)
15413: lt_prog_compiler_pic_CXX='-KPIC'
15414: ;;
15415: ghcx)
15416: # Green Hills C++ Compiler
15417: lt_prog_compiler_pic_CXX='-pic'
15418: ;;
15419: *)
15420: ;;
15421: esac
15422: ;;
15423: freebsd*)
15424: # FreeBSD uses GNU C++
15425: ;;
15426: hpux9* | hpux10* | hpux11*)
15427: case $cc_basename in
15428: CC)
15429: lt_prog_compiler_wl_CXX='-Wl,'
15430: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
15431: if test "$host_cpu" != ia64; then
15432: lt_prog_compiler_pic_CXX='+Z'
15433: fi
15434: ;;
15435: aCC)
15436: lt_prog_compiler_wl_CXX='-Wl,'
15437: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
15438: case "$host_cpu" in
15439: hppa*64*|ia64*)
15440: # +Z the default
15441: ;;
15442: *)
15443: lt_prog_compiler_pic_CXX='+Z'
15444: ;;
15445: esac
15446: ;;
15447: *)
15448: ;;
15449: esac
15450: ;;
15451: irix5* | irix6* | nonstopux*)
15452: case $cc_basename in
15453: CC)
15454: lt_prog_compiler_wl_CXX='-Wl,'
15455: lt_prog_compiler_static_CXX='-non_shared'
15456: # CC pic flag -KPIC is the default.
15457: ;;
15458: *)
15459: ;;
15460: esac
15461: ;;
15462: linux*)
15463: case $cc_basename in
15464: KCC)
15465: # KAI C++ Compiler
15466: lt_prog_compiler_wl_CXX='--backend -Wl,'
15467: lt_prog_compiler_pic_CXX='-fPIC'
15468: ;;
15469: icpc)
15470: # Intel C++
15471: lt_prog_compiler_wl_CXX='-Wl,'
15472: lt_prog_compiler_pic_CXX='-KPIC'
15473: lt_prog_compiler_static_CXX='-static'
15474: ;;
15475: cxx)
15476: # Compaq C++
15477: # Make sure the PIC flag is empty. It appears that all Alpha
15478: # Linux and Compaq Tru64 Unix objects are PIC.
15479: lt_prog_compiler_pic_CXX=
15480: lt_prog_compiler_static_CXX='-non_shared'
15481: ;;
15482: *)
15483: ;;
15484: esac
15485: ;;
15486: lynxos*)
15487: ;;
15488: m88k*)
15489: ;;
15490: mvs*)
15491: case $cc_basename in
15492: cxx)
15493: lt_prog_compiler_pic_CXX='-W c,exportall'
15494: ;;
15495: *)
15496: ;;
15497: esac
15498: ;;
15499: netbsd*)
15500: ;;
15501: osf3* | osf4* | osf5*)
15502: case $cc_basename in
15503: KCC)
15504: lt_prog_compiler_wl_CXX='--backend -Wl,'
15505: ;;
15506: RCC)
15507: # Rational C++ 2.4.1
15508: lt_prog_compiler_pic_CXX='-pic'
15509: ;;
15510: cxx)
15511: # Digital/Compaq C++
15512: lt_prog_compiler_wl_CXX='-Wl,'
15513: # Make sure the PIC flag is empty. It appears that all Alpha
15514: # Linux and Compaq Tru64 Unix objects are PIC.
15515: lt_prog_compiler_pic_CXX=
15516: lt_prog_compiler_static_CXX='-non_shared'
15517: ;;
15518: *)
15519: ;;
15520: esac
15521: ;;
15522: psos*)
15523: ;;
15524: sco*)
15525: case $cc_basename in
15526: CC)
15527: lt_prog_compiler_pic_CXX='-fPIC'
15528: ;;
15529: *)
15530: ;;
15531: esac
15532: ;;
15533: solaris*)
15534: case $cc_basename in
15535: CC)
15536: # Sun C++ 4.2, 5.x and Centerline C++
15537: lt_prog_compiler_pic_CXX='-KPIC'
15538: lt_prog_compiler_static_CXX='-Bstatic'
15539: lt_prog_compiler_wl_CXX='-Qoption ld '
15540: ;;
15541: gcx)
15542: # Green Hills C++ Compiler
15543: lt_prog_compiler_pic_CXX='-PIC'
15544: ;;
15545: *)
15546: ;;
15547: esac
15548: ;;
15549: sunos4*)
15550: case $cc_basename in
15551: CC)
15552: # Sun C++ 4.x
15553: lt_prog_compiler_pic_CXX='-pic'
15554: lt_prog_compiler_static_CXX='-Bstatic'
15555: ;;
15556: lcc)
15557: # Lucid
15558: lt_prog_compiler_pic_CXX='-pic'
15559: ;;
15560: *)
15561: ;;
15562: esac
15563: ;;
15564: tandem*)
15565: case $cc_basename in
15566: NCC)
15567: # NonStop-UX NCC 3.20
15568: lt_prog_compiler_pic_CXX='-KPIC'
15569: ;;
15570: *)
15571: ;;
15572: esac
15573: ;;
15574: unixware*)
15575: ;;
15576: vxworks*)
15577: ;;
15578: *)
15579: lt_prog_compiler_can_build_shared_CXX=no
15580: ;;
15581: esac
15582: fi
15583:
15584: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15585: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15586:
15587: #
15588: # Check to make sure the PIC flag actually works.
15589: #
15590: if test -n "$lt_prog_compiler_pic_CXX"; then
15591: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15592: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15593: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15594: echo $ECHO_N "(cached) $ECHO_C" >&6
15595: else
15596: lt_prog_compiler_pic_works_CXX=no
15597: ac_outfile=conftest.$ac_objext
15598: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15599: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15600: # Insert the option either (1) after the last *FLAGS variable, or
15601: # (2) before a word containing "conftest.", or (3) at the end.
15602: # Note that $ac_compile itself does not contain backslashes and begins
15603: # with a dollar sign (not a hyphen), so the echo should work correctly.
15604: # The option is referenced via a variable to avoid confusing sed.
15605: lt_compile=`echo "$ac_compile" | $SED \
15606: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15607: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 15609: (eval echo "\"\$as_me:15609: $lt_compile\"" >&5)
1.1 root 15610: (eval "$lt_compile" 2>conftest.err)
15611: ac_status=$?
15612: cat conftest.err >&5
1.1.1.2 ! root 15613: echo "$as_me:15613: \$? = $ac_status" >&5
1.1 root 15614: if (exit $ac_status) && test -s "$ac_outfile"; then
15615: # The compiler can only warn and ignore the option if not recognized
15616: # So say no if there are warnings
15617: if test ! -s conftest.err; then
15618: lt_prog_compiler_pic_works_CXX=yes
15619: fi
15620: fi
15621: $rm conftest*
15622:
15623: fi
15624: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15625: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
15626:
15627: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15628: case $lt_prog_compiler_pic_CXX in
15629: "" | " "*) ;;
15630: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15631: esac
15632: else
15633: lt_prog_compiler_pic_CXX=
15634: lt_prog_compiler_can_build_shared_CXX=no
15635: fi
15636:
15637: fi
15638: case "$host_os" in
15639: # For platforms which do not support PIC, -DPIC is meaningless:
15640: *djgpp*)
15641: lt_prog_compiler_pic_CXX=
15642: ;;
15643: *)
15644: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15645: ;;
15646: esac
15647:
15648: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15649: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15650: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15651: echo $ECHO_N "(cached) $ECHO_C" >&6
15652: else
15653: lt_cv_prog_compiler_c_o_CXX=no
15654: $rm -r conftest 2>/dev/null
15655: mkdir conftest
15656: cd conftest
15657: mkdir out
15658: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15659:
15660: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15661: # that will create temporary files in the current directory regardless of
15662: # the output directory. Thus, making CWD read-only will cause this test
15663: # to fail, enabling locking or at least warning the user not to do parallel
15664: # builds.
15665: chmod -w .
15666:
15667: lt_compiler_flag="-o out/conftest2.$ac_objext"
15668: # Insert the option either (1) after the last *FLAGS variable, or
15669: # (2) before a word containing "conftest.", or (3) at the end.
15670: # Note that $ac_compile itself does not contain backslashes and begins
15671: # with a dollar sign (not a hyphen), so the echo should work correctly.
15672: lt_compile=`echo "$ac_compile" | $SED \
15673: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15674: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15675: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 15676: (eval echo "\"\$as_me:15676: $lt_compile\"" >&5)
1.1 root 15677: (eval "$lt_compile" 2>out/conftest.err)
15678: ac_status=$?
15679: cat out/conftest.err >&5
1.1.1.2 ! root 15680: echo "$as_me:15680: \$? = $ac_status" >&5
1.1 root 15681: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15682: then
15683: # The compiler can only warn and ignore the option if not recognized
15684: # So say no if there are warnings
15685: if test ! -s out/conftest.err; then
15686: lt_cv_prog_compiler_c_o_CXX=yes
15687: fi
15688: fi
15689: chmod u+w .
15690: $rm conftest* out/*
15691: rmdir out
15692: cd ..
15693: rmdir conftest
15694: $rm conftest*
15695:
15696: fi
15697: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15698: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15699:
15700:
15701: hard_links="nottested"
15702: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15703: # do not overwrite the value of need_locks provided by the user
15704: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15705: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15706: hard_links=yes
15707: $rm conftest*
15708: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15709: touch conftest.a
15710: ln conftest.a conftest.b 2>&5 || hard_links=no
15711: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15712: echo "$as_me:$LINENO: result: $hard_links" >&5
15713: echo "${ECHO_T}$hard_links" >&6
15714: if test "$hard_links" = no; then
15715: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15716: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15717: need_locks=warn
15718: fi
15719: else
15720: need_locks=no
15721: fi
15722:
15723: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15724: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15725:
15726: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15727: case $host_os in
15728: aix4* | aix5*)
15729: # If we're using GNU nm, then we don't want the "-C" option.
15730: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15731: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15732: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15733: else
15734: 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'
15735: fi
15736: ;;
15737: pw32*)
15738: export_symbols_cmds_CXX="$ltdll_cmds"
15739: ;;
15740: cygwin* | mingw*)
15741: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15742: ;;
15743: *)
15744: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15745: ;;
15746: esac
15747:
15748: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15749: echo "${ECHO_T}$ld_shlibs_CXX" >&6
15750: test "$ld_shlibs_CXX" = no && can_build_shared=no
15751:
15752: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15753: if test "$GCC" = yes; then
15754: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15755: fi
15756:
15757: #
15758: # Do we need to explicitly link libc?
15759: #
15760: case "x$archive_cmds_need_lc_CXX" in
15761: x|xyes)
15762: # Assume -lc should be added
15763: archive_cmds_need_lc_CXX=yes
15764:
15765: if test "$enable_shared" = yes && test "$GCC" = yes; then
15766: case $archive_cmds_CXX in
15767: *'~'*)
15768: # FIXME: we may have to deal with multi-command sequences.
15769: ;;
15770: '$CC '*)
15771: # Test whether the compiler implicitly links with -lc since on some
15772: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15773: # to ld, don't add -lc before -lgcc.
15774: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15775: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15776: $rm conftest*
15777: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15778:
15779: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15780: (eval $ac_compile) 2>&5
15781: ac_status=$?
15782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783: (exit $ac_status); } 2>conftest.err; then
15784: soname=conftest
15785: lib=conftest
15786: libobjs=conftest.$ac_objext
15787: deplibs=
15788: wl=$lt_prog_compiler_wl_CXX
15789: compiler_flags=-v
15790: linker_flags=-v
15791: verstring=
15792: output_objdir=.
15793: libname=conftest
15794: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15795: allow_undefined_flag_CXX=
15796: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15797: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15798: ac_status=$?
15799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800: (exit $ac_status); }
15801: then
15802: archive_cmds_need_lc_CXX=no
15803: else
15804: archive_cmds_need_lc_CXX=yes
15805: fi
15806: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15807: else
15808: cat conftest.err 1>&5
15809: fi
15810: $rm conftest*
15811: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15812: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15813: ;;
15814: esac
15815: fi
15816: ;;
15817: esac
15818:
15819: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15820: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15821: hardcode_action_CXX=
15822: if test -n "$hardcode_libdir_flag_spec_CXX" || \
15823: test -n "$runpath_var CXX" || \
15824: test "X$hardcode_automatic_CXX"="Xyes" ; then
15825:
15826: # We can hardcode non-existant directories.
15827: if test "$hardcode_direct_CXX" != no &&
15828: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15829: # have to relink, otherwise we might link with an installed library
15830: # when we should be linking with a yet-to-be-installed one
15831: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15832: test "$hardcode_minus_L_CXX" != no; then
15833: # Linking always hardcodes the temporary library directory.
15834: hardcode_action_CXX=relink
15835: else
15836: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15837: hardcode_action_CXX=immediate
15838: fi
15839: else
15840: # We cannot hardcode anything, or else we can only hardcode existing
15841: # directories.
15842: hardcode_action_CXX=unsupported
15843: fi
15844: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15845: echo "${ECHO_T}$hardcode_action_CXX" >&6
15846:
15847: if test "$hardcode_action_CXX" = relink; then
15848: # Fast installation is not supported
15849: enable_fast_install=no
15850: elif test "$shlibpath_overrides_runpath" = yes ||
15851: test "$enable_shared" = no; then
15852: # Fast installation is not necessary
15853: enable_fast_install=needless
15854: fi
15855:
15856: striplib=
15857: old_striplib=
15858: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15859: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15860: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15861: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15862: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15863: echo "$as_me:$LINENO: result: yes" >&5
15864: echo "${ECHO_T}yes" >&6
15865: else
15866: # FIXME - insert some real tests, host_os isn't really good enough
15867: case $host_os in
15868: darwin*)
15869: if test -n "$STRIP" ; then
15870: striplib="$STRIP -x"
15871: echo "$as_me:$LINENO: result: yes" >&5
15872: echo "${ECHO_T}yes" >&6
15873: else
15874: echo "$as_me:$LINENO: result: no" >&5
15875: echo "${ECHO_T}no" >&6
15876: fi
15877: ;;
15878: *)
15879: echo "$as_me:$LINENO: result: no" >&5
15880: echo "${ECHO_T}no" >&6
15881: ;;
15882: esac
15883: fi
15884:
15885: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15886: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15887: library_names_spec=
15888: libname_spec='lib$name'
15889: soname_spec=
15890: shrext=".so"
15891: postinstall_cmds=
15892: postuninstall_cmds=
15893: finish_cmds=
15894: finish_eval=
15895: shlibpath_var=
15896: shlibpath_overrides_runpath=unknown
15897: version_type=none
15898: dynamic_linker="$host_os ld.so"
15899: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15900: if test "$GCC" = yes; then
15901: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15902: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15903: # if the path contains ";" then we assume it to be the separator
15904: # otherwise default to the standard path separator (i.e. ":") - it is
15905: # assumed that no part of a normal pathname contains ";" but that should
15906: # okay in the real world where ";" in dirpaths is itself problematic.
15907: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15908: else
15909: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15910: fi
15911: else
15912: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15913: fi
15914: need_lib_prefix=unknown
15915: hardcode_into_libs=no
15916:
15917: # when you set need_version to no, make sure it does not cause -set_version
15918: # flags to be left without arguments
15919: need_version=unknown
15920:
15921: case $host_os in
15922: aix3*)
15923: version_type=linux
15924: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15925: shlibpath_var=LIBPATH
15926:
15927: # AIX 3 has no versioning support, so we append a major version to the name.
15928: soname_spec='${libname}${release}${shared_ext}$major'
15929: ;;
15930:
15931: aix4* | aix5*)
15932: version_type=linux
15933: need_lib_prefix=no
15934: need_version=no
15935: hardcode_into_libs=yes
15936: if test "$host_cpu" = ia64; then
15937: # AIX 5 supports IA64
15938: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15939: shlibpath_var=LD_LIBRARY_PATH
15940: else
15941: # With GCC up to 2.95.x, collect2 would create an import file
15942: # for dependence libraries. The import file would start with
15943: # the line `#! .'. This would cause the generated library to
15944: # depend on `.', always an invalid library. This was fixed in
15945: # development snapshots of GCC prior to 3.0.
15946: case $host_os in
15947: aix4 | aix4.[01] | aix4.[01].*)
15948: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15949: echo ' yes '
15950: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15951: :
15952: else
15953: can_build_shared=no
15954: fi
15955: ;;
15956: esac
15957: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15958: # soname into executable. Probably we can add versioning support to
15959: # collect2, so additional links can be useful in future.
15960: if test "$aix_use_runtimelinking" = yes; then
15961: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15962: # instead of lib<name>.a to let people know that these are not
15963: # typical AIX shared libraries.
15964: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965: else
15966: # We preserve .a as extension for shared libraries through AIX4.2
15967: # and later when we are not doing run time linking.
15968: library_names_spec='${libname}${release}.a $libname.a'
15969: soname_spec='${libname}${release}${shared_ext}$major'
15970: fi
15971: shlibpath_var=LIBPATH
15972: fi
15973: ;;
15974:
15975: amigaos*)
15976: library_names_spec='$libname.ixlibrary $libname.a'
15977: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15978: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15979: ;;
15980:
15981: beos*)
15982: library_names_spec='${libname}${shared_ext}'
15983: dynamic_linker="$host_os ld.so"
15984: shlibpath_var=LIBRARY_PATH
15985: ;;
15986:
15987: bsdi4*)
15988: version_type=linux
15989: need_version=no
15990: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991: soname_spec='${libname}${release}${shared_ext}$major'
15992: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15993: shlibpath_var=LD_LIBRARY_PATH
15994: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15995: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15996: # the default ld.so.conf also contains /usr/contrib/lib and
15997: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15998: # libtool to hard-code these into programs
15999: ;;
16000:
16001: cygwin* | mingw* | pw32*)
16002: version_type=windows
16003: shrext=".dll"
16004: need_version=no
16005: need_lib_prefix=no
16006:
16007: case $GCC,$host_os in
16008: yes,cygwin* | yes,mingw* | yes,pw32*)
16009: library_names_spec='$libname.dll.a'
16010: # DLL is installed to $(libdir)/../bin by postinstall_cmds
16011: postinstall_cmds='base_file=`basename \${file}`~
16012: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16013: dldir=$destdir/`dirname \$dlpath`~
16014: test -d \$dldir || mkdir -p \$dldir~
16015: $install_prog $dir/$dlname \$dldir/$dlname'
16016: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16017: dlpath=$dir/\$dldll~
16018: $rm \$dlpath'
16019: shlibpath_overrides_runpath=yes
16020:
16021: case $host_os in
16022: cygwin*)
16023: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16024: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16025: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16026: ;;
16027: mingw*)
16028: # MinGW DLLs use traditional 'lib' prefix
16029: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16030: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16031: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16032: # It is most probably a Windows format PATH printed by
16033: # mingw gcc, but we are running on Cygwin. Gcc prints its search
16034: # path with ; separators, and with drive letters. We can handle the
16035: # drive letters (cygwin fileutils understands them), so leave them,
16036: # especially as we might pass files found there to a mingw objdump,
16037: # which wouldn't understand a cygwinified path. Ahh.
16038: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16039: else
16040: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16041: fi
16042: ;;
16043: pw32*)
16044: # pw32 DLLs use 'pw' prefix rather than 'lib'
16045: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16046: ;;
16047: esac
16048: ;;
16049:
16050: *)
16051: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16052: ;;
16053: esac
16054: dynamic_linker='Win32 ld.exe'
16055: # FIXME: first we should search . and the directory the executable is in
16056: shlibpath_var=PATH
16057: ;;
16058:
16059: darwin* | rhapsody*)
16060: dynamic_linker="$host_os dyld"
16061: version_type=darwin
16062: need_lib_prefix=no
16063: need_version=no
16064: # FIXME: Relying on posixy $() will cause problems for
16065: # cross-compilation, but unfortunately the echo tests do not
16066: # yet detect zsh echo's removal of \ escapes.
16067: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16068: soname_spec='${libname}${release}${major}$shared_ext'
16069: shlibpath_overrides_runpath=yes
16070: shlibpath_var=DYLD_LIBRARY_PATH
16071: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16072: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16073: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16074: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16075: fi
16076: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16077: ;;
16078:
16079: dgux*)
16080: version_type=linux
16081: need_lib_prefix=no
16082: need_version=no
16083: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16084: soname_spec='${libname}${release}${shared_ext}$major'
16085: shlibpath_var=LD_LIBRARY_PATH
16086: ;;
16087:
16088: freebsd1*)
16089: dynamic_linker=no
16090: ;;
16091:
16092: freebsd*)
16093: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16094: version_type=freebsd-$objformat
16095: case $version_type in
16096: freebsd-elf*)
16097: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16098: need_version=no
16099: need_lib_prefix=no
16100: ;;
16101: freebsd-*)
16102: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16103: need_version=yes
16104: ;;
16105: esac
16106: shlibpath_var=LD_LIBRARY_PATH
16107: case $host_os in
16108: freebsd2*)
16109: shlibpath_overrides_runpath=yes
16110: ;;
16111: freebsd3.01* | freebsdelf3.01*)
16112: shlibpath_overrides_runpath=yes
16113: hardcode_into_libs=yes
16114: ;;
16115: *) # from 3.2 on
16116: shlibpath_overrides_runpath=no
16117: hardcode_into_libs=yes
16118: ;;
16119: esac
16120: ;;
16121:
16122: gnu*)
16123: version_type=linux
16124: need_lib_prefix=no
16125: need_version=no
16126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16127: soname_spec='${libname}${release}${shared_ext}$major'
16128: shlibpath_var=LD_LIBRARY_PATH
16129: hardcode_into_libs=yes
16130: ;;
16131:
16132: hpux9* | hpux10* | hpux11*)
16133: # Give a soname corresponding to the major version so that dld.sl refuses to
16134: # link against other versions.
16135: version_type=sunos
16136: need_lib_prefix=no
16137: need_version=no
16138: case "$host_cpu" in
16139: ia64*)
16140: shrext='.so'
16141: hardcode_into_libs=yes
16142: dynamic_linker="$host_os dld.so"
16143: shlibpath_var=LD_LIBRARY_PATH
16144: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16145: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146: soname_spec='${libname}${release}${shared_ext}$major'
16147: if test "X$HPUX_IA64_MODE" = X32; then
16148: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16149: else
16150: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16151: fi
16152: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16153: ;;
16154: hppa*64*)
16155: shrext='.sl'
16156: hardcode_into_libs=yes
16157: dynamic_linker="$host_os dld.sl"
16158: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16159: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16160: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161: soname_spec='${libname}${release}${shared_ext}$major'
16162: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16163: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16164: ;;
16165: *)
16166: shrext='.sl'
16167: dynamic_linker="$host_os dld.sl"
16168: shlibpath_var=SHLIB_PATH
16169: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16170: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171: soname_spec='${libname}${release}${shared_ext}$major'
16172: ;;
16173: esac
16174: # HP-UX runs *really* slowly unless shared libraries are mode 555.
16175: postinstall_cmds='chmod 555 $lib'
16176: ;;
16177:
16178: irix5* | irix6* | nonstopux*)
16179: case $host_os in
16180: nonstopux*) version_type=nonstopux ;;
16181: *)
16182: if test "$lt_cv_prog_gnu_ld" = yes; then
16183: version_type=linux
16184: else
16185: version_type=irix
16186: fi ;;
16187: esac
16188: need_lib_prefix=no
16189: need_version=no
16190: soname_spec='${libname}${release}${shared_ext}$major'
16191: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16192: case $host_os in
16193: irix5* | nonstopux*)
16194: libsuff= shlibsuff=
16195: ;;
16196: *)
16197: case $LD in # libtool.m4 will add one of these switches to LD
16198: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16199: libsuff= shlibsuff= libmagic=32-bit;;
16200: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16201: libsuff=32 shlibsuff=N32 libmagic=N32;;
16202: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16203: libsuff=64 shlibsuff=64 libmagic=64-bit;;
16204: *) libsuff= shlibsuff= libmagic=never-match;;
16205: esac
16206: ;;
16207: esac
16208: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16209: shlibpath_overrides_runpath=no
16210: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16211: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16212: hardcode_into_libs=yes
16213: ;;
16214:
16215: # No shared lib support for Linux oldld, aout, or coff.
16216: linux*oldld* | linux*aout* | linux*coff*)
16217: dynamic_linker=no
16218: ;;
16219:
16220: # This must be Linux ELF.
16221: linux*)
16222: version_type=linux
16223: need_lib_prefix=no
16224: need_version=no
16225: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226: soname_spec='${libname}${release}${shared_ext}$major'
16227: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16228: shlibpath_var=LD_LIBRARY_PATH
16229: shlibpath_overrides_runpath=no
16230: # This implies no fast_install, which is unacceptable.
16231: # Some rework will be needed to allow for fast_install
16232: # before this can be enabled.
16233: hardcode_into_libs=yes
16234:
16235: # We used to test for /lib/ld.so.1 and disable shared libraries on
16236: # powerpc, because MkLinux only supported shared libraries with the
16237: # GNU dynamic linker. Since this was broken with cross compilers,
16238: # most powerpc-linux boxes support dynamic linking these days and
16239: # people can always --disable-shared, the test was removed, and we
16240: # assume the GNU/Linux dynamic linker is in use.
16241: dynamic_linker='GNU/Linux ld.so'
16242: ;;
16243:
16244: netbsd*)
16245: version_type=sunos
16246: need_lib_prefix=no
16247: need_version=no
16248: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16249: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251: dynamic_linker='NetBSD (a.out) ld.so'
16252: else
16253: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16254: soname_spec='${libname}${release}${shared_ext}$major'
16255: dynamic_linker='NetBSD ld.elf_so'
16256: fi
16257: shlibpath_var=LD_LIBRARY_PATH
16258: shlibpath_overrides_runpath=yes
16259: hardcode_into_libs=yes
16260: ;;
16261:
16262: newsos6)
16263: version_type=linux
16264: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265: shlibpath_var=LD_LIBRARY_PATH
16266: shlibpath_overrides_runpath=yes
16267: ;;
16268:
16269: nto-qnx)
16270: version_type=linux
16271: need_lib_prefix=no
16272: need_version=no
16273: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274: soname_spec='${libname}${release}${shared_ext}$major'
16275: shlibpath_var=LD_LIBRARY_PATH
16276: shlibpath_overrides_runpath=yes
16277: ;;
16278:
16279: openbsd*)
16280: version_type=sunos
16281: need_lib_prefix=no
16282: need_version=no
16283: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16284: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16285: shlibpath_var=LD_LIBRARY_PATH
16286: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16287: case $host_os in
16288: openbsd2.[89] | openbsd2.[89].*)
16289: shlibpath_overrides_runpath=no
16290: ;;
16291: *)
16292: shlibpath_overrides_runpath=yes
16293: ;;
16294: esac
16295: else
16296: shlibpath_overrides_runpath=yes
16297: fi
16298: ;;
16299:
16300: os2*)
16301: libname_spec='$name'
16302: shrext=".dll"
16303: need_lib_prefix=no
16304: library_names_spec='$libname${shared_ext} $libname.a'
16305: dynamic_linker='OS/2 ld.exe'
16306: shlibpath_var=LIBPATH
16307: ;;
16308:
16309: osf3* | osf4* | osf5*)
16310: version_type=osf
16311: need_lib_prefix=no
16312: need_version=no
16313: soname_spec='${libname}${release}${shared_ext}$major'
16314: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315: shlibpath_var=LD_LIBRARY_PATH
16316: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16317: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16318: ;;
16319:
16320: sco3.2v5*)
16321: version_type=osf
16322: soname_spec='${libname}${release}${shared_ext}$major'
16323: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324: shlibpath_var=LD_LIBRARY_PATH
16325: ;;
16326:
16327: solaris*)
16328: version_type=linux
16329: need_lib_prefix=no
16330: need_version=no
16331: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332: soname_spec='${libname}${release}${shared_ext}$major'
16333: shlibpath_var=LD_LIBRARY_PATH
16334: shlibpath_overrides_runpath=yes
16335: hardcode_into_libs=yes
16336: # ldd complains unless libraries are executable
16337: postinstall_cmds='chmod +x $lib'
16338: ;;
16339:
16340: sunos4*)
16341: version_type=sunos
16342: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16344: shlibpath_var=LD_LIBRARY_PATH
16345: shlibpath_overrides_runpath=yes
16346: if test "$with_gnu_ld" = yes; then
16347: need_lib_prefix=no
16348: fi
16349: need_version=yes
16350: ;;
16351:
16352: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16353: version_type=linux
16354: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355: soname_spec='${libname}${release}${shared_ext}$major'
16356: shlibpath_var=LD_LIBRARY_PATH
16357: case $host_vendor in
16358: sni)
16359: shlibpath_overrides_runpath=no
16360: need_lib_prefix=no
16361: export_dynamic_flag_spec='${wl}-Blargedynsym'
16362: runpath_var=LD_RUN_PATH
16363: ;;
16364: siemens)
16365: need_lib_prefix=no
16366: ;;
16367: motorola)
16368: need_lib_prefix=no
16369: need_version=no
16370: shlibpath_overrides_runpath=no
16371: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16372: ;;
16373: esac
16374: ;;
16375:
16376: sysv4*MP*)
16377: if test -d /usr/nec ;then
16378: version_type=linux
16379: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16380: soname_spec='$libname${shared_ext}.$major'
16381: shlibpath_var=LD_LIBRARY_PATH
16382: fi
16383: ;;
16384:
16385: uts4*)
16386: version_type=linux
16387: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388: soname_spec='${libname}${release}${shared_ext}$major'
16389: shlibpath_var=LD_LIBRARY_PATH
16390: ;;
16391:
16392: *)
16393: dynamic_linker=no
16394: ;;
16395: esac
16396: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16397: echo "${ECHO_T}$dynamic_linker" >&6
16398: test "$dynamic_linker" = no && can_build_shared=no
16399:
16400: if test "x$enable_dlopen" != xyes; then
16401: enable_dlopen=unknown
16402: enable_dlopen_self=unknown
16403: enable_dlopen_self_static=unknown
16404: else
16405: lt_cv_dlopen=no
16406: lt_cv_dlopen_libs=
16407:
16408: case $host_os in
16409: beos*)
16410: lt_cv_dlopen="load_add_on"
16411: lt_cv_dlopen_libs=
16412: lt_cv_dlopen_self=yes
16413: ;;
16414:
16415: mingw* | pw32*)
16416: lt_cv_dlopen="LoadLibrary"
16417: lt_cv_dlopen_libs=
16418: ;;
16419:
16420: cygwin*)
16421: lt_cv_dlopen="dlopen"
16422: lt_cv_dlopen_libs=
16423: ;;
16424:
16425: darwin*)
16426: # if libdl is installed we need to link against it
16427: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16428: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16429: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16430: echo $ECHO_N "(cached) $ECHO_C" >&6
16431: else
16432: ac_check_lib_save_LIBS=$LIBS
16433: LIBS="-ldl $LIBS"
16434: cat >conftest.$ac_ext <<_ACEOF
16435: #line $LINENO "configure"
16436: /* confdefs.h. */
16437: _ACEOF
16438: cat confdefs.h >>conftest.$ac_ext
16439: cat >>conftest.$ac_ext <<_ACEOF
16440: /* end confdefs.h. */
16441:
16442: /* Override any gcc2 internal prototype to avoid an error. */
16443: #ifdef __cplusplus
16444: extern "C"
16445: #endif
16446: /* We use char because int might match the return type of a gcc2
16447: builtin and then its argument prototype would still apply. */
16448: char dlopen ();
16449: int
16450: main ()
16451: {
16452: dlopen ();
16453: ;
16454: return 0;
16455: }
16456: _ACEOF
16457: rm -f conftest.$ac_objext conftest$ac_exeext
16458: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16459: (eval $ac_link) 2>&5
16460: ac_status=$?
16461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462: (exit $ac_status); } &&
16463: { ac_try='test -s conftest$ac_exeext'
16464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465: (eval $ac_try) 2>&5
16466: ac_status=$?
16467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468: (exit $ac_status); }; }; then
16469: ac_cv_lib_dl_dlopen=yes
16470: else
16471: echo "$as_me: failed program was:" >&5
16472: sed 's/^/| /' conftest.$ac_ext >&5
16473:
16474: ac_cv_lib_dl_dlopen=no
16475: fi
16476: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16477: LIBS=$ac_check_lib_save_LIBS
16478: fi
16479: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16480: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16481: if test $ac_cv_lib_dl_dlopen = yes; then
16482: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16483: else
16484:
16485: lt_cv_dlopen="dyld"
16486: lt_cv_dlopen_libs=
16487: lt_cv_dlopen_self=yes
16488:
16489: fi
16490:
16491: ;;
16492:
16493: *)
16494: echo "$as_me:$LINENO: checking for shl_load" >&5
16495: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16496: if test "${ac_cv_func_shl_load+set}" = set; then
16497: echo $ECHO_N "(cached) $ECHO_C" >&6
16498: else
16499: cat >conftest.$ac_ext <<_ACEOF
16500: #line $LINENO "configure"
16501: /* confdefs.h. */
16502: _ACEOF
16503: cat confdefs.h >>conftest.$ac_ext
16504: cat >>conftest.$ac_ext <<_ACEOF
16505: /* end confdefs.h. */
16506: /* System header to define __stub macros and hopefully few prototypes,
16507: which can conflict with char shl_load (); below.
16508: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16509: <limits.h> exists even on freestanding compilers. */
16510: #ifdef __STDC__
16511: # include <limits.h>
16512: #else
16513: # include <assert.h>
16514: #endif
16515: /* Override any gcc2 internal prototype to avoid an error. */
16516: #ifdef __cplusplus
16517: extern "C"
16518: {
16519: #endif
16520: /* We use char because int might match the return type of a gcc2
16521: builtin and then its argument prototype would still apply. */
16522: char shl_load ();
16523: /* The GNU C library defines this for functions which it implements
16524: to always fail with ENOSYS. Some functions are actually named
16525: something starting with __ and the normal name is an alias. */
16526: #if defined (__stub_shl_load) || defined (__stub___shl_load)
16527: choke me
16528: #else
16529: char (*f) () = shl_load;
16530: #endif
16531: #ifdef __cplusplus
16532: }
16533: #endif
16534:
16535: int
16536: main ()
16537: {
16538: return f != shl_load;
16539: ;
16540: return 0;
16541: }
16542: _ACEOF
16543: rm -f conftest.$ac_objext conftest$ac_exeext
16544: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545: (eval $ac_link) 2>&5
16546: ac_status=$?
16547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548: (exit $ac_status); } &&
16549: { ac_try='test -s conftest$ac_exeext'
16550: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551: (eval $ac_try) 2>&5
16552: ac_status=$?
16553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554: (exit $ac_status); }; }; then
16555: ac_cv_func_shl_load=yes
16556: else
16557: echo "$as_me: failed program was:" >&5
16558: sed 's/^/| /' conftest.$ac_ext >&5
16559:
16560: ac_cv_func_shl_load=no
16561: fi
16562: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16563: fi
16564: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16565: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16566: if test $ac_cv_func_shl_load = yes; then
16567: lt_cv_dlopen="shl_load"
16568: else
16569: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16570: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16571: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16572: echo $ECHO_N "(cached) $ECHO_C" >&6
16573: else
16574: ac_check_lib_save_LIBS=$LIBS
16575: LIBS="-ldld $LIBS"
16576: cat >conftest.$ac_ext <<_ACEOF
16577: #line $LINENO "configure"
16578: /* confdefs.h. */
16579: _ACEOF
16580: cat confdefs.h >>conftest.$ac_ext
16581: cat >>conftest.$ac_ext <<_ACEOF
16582: /* end confdefs.h. */
16583:
16584: /* Override any gcc2 internal prototype to avoid an error. */
16585: #ifdef __cplusplus
16586: extern "C"
16587: #endif
16588: /* We use char because int might match the return type of a gcc2
16589: builtin and then its argument prototype would still apply. */
16590: char shl_load ();
16591: int
16592: main ()
16593: {
16594: shl_load ();
16595: ;
16596: return 0;
16597: }
16598: _ACEOF
16599: rm -f conftest.$ac_objext conftest$ac_exeext
16600: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601: (eval $ac_link) 2>&5
16602: ac_status=$?
16603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604: (exit $ac_status); } &&
16605: { ac_try='test -s conftest$ac_exeext'
16606: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607: (eval $ac_try) 2>&5
16608: ac_status=$?
16609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610: (exit $ac_status); }; }; then
16611: ac_cv_lib_dld_shl_load=yes
16612: else
16613: echo "$as_me: failed program was:" >&5
16614: sed 's/^/| /' conftest.$ac_ext >&5
16615:
16616: ac_cv_lib_dld_shl_load=no
16617: fi
16618: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16619: LIBS=$ac_check_lib_save_LIBS
16620: fi
16621: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16622: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16623: if test $ac_cv_lib_dld_shl_load = yes; then
16624: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16625: else
16626: echo "$as_me:$LINENO: checking for dlopen" >&5
16627: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16628: if test "${ac_cv_func_dlopen+set}" = set; then
16629: echo $ECHO_N "(cached) $ECHO_C" >&6
16630: else
16631: cat >conftest.$ac_ext <<_ACEOF
16632: #line $LINENO "configure"
16633: /* confdefs.h. */
16634: _ACEOF
16635: cat confdefs.h >>conftest.$ac_ext
16636: cat >>conftest.$ac_ext <<_ACEOF
16637: /* end confdefs.h. */
16638: /* System header to define __stub macros and hopefully few prototypes,
16639: which can conflict with char dlopen (); below.
16640: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16641: <limits.h> exists even on freestanding compilers. */
16642: #ifdef __STDC__
16643: # include <limits.h>
16644: #else
16645: # include <assert.h>
16646: #endif
16647: /* Override any gcc2 internal prototype to avoid an error. */
16648: #ifdef __cplusplus
16649: extern "C"
16650: {
16651: #endif
16652: /* We use char because int might match the return type of a gcc2
16653: builtin and then its argument prototype would still apply. */
16654: char dlopen ();
16655: /* The GNU C library defines this for functions which it implements
16656: to always fail with ENOSYS. Some functions are actually named
16657: something starting with __ and the normal name is an alias. */
16658: #if defined (__stub_dlopen) || defined (__stub___dlopen)
16659: choke me
16660: #else
16661: char (*f) () = dlopen;
16662: #endif
16663: #ifdef __cplusplus
16664: }
16665: #endif
16666:
16667: int
16668: main ()
16669: {
16670: return f != dlopen;
16671: ;
16672: return 0;
16673: }
16674: _ACEOF
16675: rm -f conftest.$ac_objext conftest$ac_exeext
16676: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677: (eval $ac_link) 2>&5
16678: ac_status=$?
16679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680: (exit $ac_status); } &&
16681: { ac_try='test -s conftest$ac_exeext'
16682: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683: (eval $ac_try) 2>&5
16684: ac_status=$?
16685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686: (exit $ac_status); }; }; then
16687: ac_cv_func_dlopen=yes
16688: else
16689: echo "$as_me: failed program was:" >&5
16690: sed 's/^/| /' conftest.$ac_ext >&5
16691:
16692: ac_cv_func_dlopen=no
16693: fi
16694: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16695: fi
16696: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16697: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16698: if test $ac_cv_func_dlopen = yes; then
16699: lt_cv_dlopen="dlopen"
16700: else
16701: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16702: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16703: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16704: echo $ECHO_N "(cached) $ECHO_C" >&6
16705: else
16706: ac_check_lib_save_LIBS=$LIBS
16707: LIBS="-ldl $LIBS"
16708: cat >conftest.$ac_ext <<_ACEOF
16709: #line $LINENO "configure"
16710: /* confdefs.h. */
16711: _ACEOF
16712: cat confdefs.h >>conftest.$ac_ext
16713: cat >>conftest.$ac_ext <<_ACEOF
16714: /* end confdefs.h. */
16715:
16716: /* Override any gcc2 internal prototype to avoid an error. */
16717: #ifdef __cplusplus
16718: extern "C"
16719: #endif
16720: /* We use char because int might match the return type of a gcc2
16721: builtin and then its argument prototype would still apply. */
16722: char dlopen ();
16723: int
16724: main ()
16725: {
16726: dlopen ();
16727: ;
16728: return 0;
16729: }
16730: _ACEOF
16731: rm -f conftest.$ac_objext conftest$ac_exeext
16732: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733: (eval $ac_link) 2>&5
16734: ac_status=$?
16735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736: (exit $ac_status); } &&
16737: { ac_try='test -s conftest$ac_exeext'
16738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739: (eval $ac_try) 2>&5
16740: ac_status=$?
16741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742: (exit $ac_status); }; }; then
16743: ac_cv_lib_dl_dlopen=yes
16744: else
16745: echo "$as_me: failed program was:" >&5
16746: sed 's/^/| /' conftest.$ac_ext >&5
16747:
16748: ac_cv_lib_dl_dlopen=no
16749: fi
16750: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751: LIBS=$ac_check_lib_save_LIBS
16752: fi
16753: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16754: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16755: if test $ac_cv_lib_dl_dlopen = yes; then
16756: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16757: else
16758: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16759: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16760: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16761: echo $ECHO_N "(cached) $ECHO_C" >&6
16762: else
16763: ac_check_lib_save_LIBS=$LIBS
16764: LIBS="-lsvld $LIBS"
16765: cat >conftest.$ac_ext <<_ACEOF
16766: #line $LINENO "configure"
16767: /* confdefs.h. */
16768: _ACEOF
16769: cat confdefs.h >>conftest.$ac_ext
16770: cat >>conftest.$ac_ext <<_ACEOF
16771: /* end confdefs.h. */
16772:
16773: /* Override any gcc2 internal prototype to avoid an error. */
16774: #ifdef __cplusplus
16775: extern "C"
16776: #endif
16777: /* We use char because int might match the return type of a gcc2
16778: builtin and then its argument prototype would still apply. */
16779: char dlopen ();
16780: int
16781: main ()
16782: {
16783: dlopen ();
16784: ;
16785: return 0;
16786: }
16787: _ACEOF
16788: rm -f conftest.$ac_objext conftest$ac_exeext
16789: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790: (eval $ac_link) 2>&5
16791: ac_status=$?
16792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793: (exit $ac_status); } &&
16794: { ac_try='test -s conftest$ac_exeext'
16795: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796: (eval $ac_try) 2>&5
16797: ac_status=$?
16798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799: (exit $ac_status); }; }; then
16800: ac_cv_lib_svld_dlopen=yes
16801: else
16802: echo "$as_me: failed program was:" >&5
16803: sed 's/^/| /' conftest.$ac_ext >&5
16804:
16805: ac_cv_lib_svld_dlopen=no
16806: fi
16807: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16808: LIBS=$ac_check_lib_save_LIBS
16809: fi
16810: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16811: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16812: if test $ac_cv_lib_svld_dlopen = yes; then
16813: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16814: else
16815: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16816: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16817: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16818: echo $ECHO_N "(cached) $ECHO_C" >&6
16819: else
16820: ac_check_lib_save_LIBS=$LIBS
16821: LIBS="-ldld $LIBS"
16822: cat >conftest.$ac_ext <<_ACEOF
16823: #line $LINENO "configure"
16824: /* confdefs.h. */
16825: _ACEOF
16826: cat confdefs.h >>conftest.$ac_ext
16827: cat >>conftest.$ac_ext <<_ACEOF
16828: /* end confdefs.h. */
16829:
16830: /* Override any gcc2 internal prototype to avoid an error. */
16831: #ifdef __cplusplus
16832: extern "C"
16833: #endif
16834: /* We use char because int might match the return type of a gcc2
16835: builtin and then its argument prototype would still apply. */
16836: char dld_link ();
16837: int
16838: main ()
16839: {
16840: dld_link ();
16841: ;
16842: return 0;
16843: }
16844: _ACEOF
16845: rm -f conftest.$ac_objext conftest$ac_exeext
16846: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847: (eval $ac_link) 2>&5
16848: ac_status=$?
16849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850: (exit $ac_status); } &&
16851: { ac_try='test -s conftest$ac_exeext'
16852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853: (eval $ac_try) 2>&5
16854: ac_status=$?
16855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856: (exit $ac_status); }; }; then
16857: ac_cv_lib_dld_dld_link=yes
16858: else
16859: echo "$as_me: failed program was:" >&5
16860: sed 's/^/| /' conftest.$ac_ext >&5
16861:
16862: ac_cv_lib_dld_dld_link=no
16863: fi
16864: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16865: LIBS=$ac_check_lib_save_LIBS
16866: fi
16867: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16868: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16869: if test $ac_cv_lib_dld_dld_link = yes; then
16870: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16871: fi
16872:
16873:
16874: fi
16875:
16876:
16877: fi
16878:
16879:
16880: fi
16881:
16882:
16883: fi
16884:
16885:
16886: fi
16887:
16888: ;;
16889: esac
16890:
16891: if test "x$lt_cv_dlopen" != xno; then
16892: enable_dlopen=yes
16893: else
16894: enable_dlopen=no
16895: fi
16896:
16897: case $lt_cv_dlopen in
16898: dlopen)
16899: save_CPPFLAGS="$CPPFLAGS"
16900: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16901:
16902: save_LDFLAGS="$LDFLAGS"
16903: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16904:
16905: save_LIBS="$LIBS"
16906: LIBS="$lt_cv_dlopen_libs $LIBS"
16907:
16908: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16909: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16910: if test "${lt_cv_dlopen_self+set}" = set; then
16911: echo $ECHO_N "(cached) $ECHO_C" >&6
16912: else
16913: if test "$cross_compiling" = yes; then :
16914: lt_cv_dlopen_self=cross
16915: else
16916: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16917: lt_status=$lt_dlunknown
16918: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 16919: #line 16919 "configure"
1.1 root 16920: #include "confdefs.h"
16921:
16922: #if HAVE_DLFCN_H
16923: #include <dlfcn.h>
16924: #endif
16925:
16926: #include <stdio.h>
16927:
16928: #ifdef RTLD_GLOBAL
16929: # define LT_DLGLOBAL RTLD_GLOBAL
16930: #else
16931: # ifdef DL_GLOBAL
16932: # define LT_DLGLOBAL DL_GLOBAL
16933: # else
16934: # define LT_DLGLOBAL 0
16935: # endif
16936: #endif
16937:
16938: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16939: find out it does not work in some platform. */
16940: #ifndef LT_DLLAZY_OR_NOW
16941: # ifdef RTLD_LAZY
16942: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16943: # else
16944: # ifdef DL_LAZY
16945: # define LT_DLLAZY_OR_NOW DL_LAZY
16946: # else
16947: # ifdef RTLD_NOW
16948: # define LT_DLLAZY_OR_NOW RTLD_NOW
16949: # else
16950: # ifdef DL_NOW
16951: # define LT_DLLAZY_OR_NOW DL_NOW
16952: # else
16953: # define LT_DLLAZY_OR_NOW 0
16954: # endif
16955: # endif
16956: # endif
16957: # endif
16958: #endif
16959:
16960: #ifdef __cplusplus
16961: extern "C" void exit (int);
16962: #endif
16963:
16964: void fnord() { int i=42;}
16965: int main ()
16966: {
16967: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16968: int status = $lt_dlunknown;
16969:
16970: if (self)
16971: {
16972: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16973: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16974: /* dlclose (self); */
16975: }
16976:
16977: exit (status);
16978: }
16979: EOF
16980: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16981: (eval $ac_link) 2>&5
16982: ac_status=$?
16983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16985: (./conftest; exit; ) 2>/dev/null
16986: lt_status=$?
16987: case x$lt_status in
16988: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16989: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16990: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16991: esac
16992: else :
16993: # compilation failed
16994: lt_cv_dlopen_self=no
16995: fi
16996: fi
16997: rm -fr conftest*
16998:
16999:
17000: fi
17001: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17002: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17003:
17004: if test "x$lt_cv_dlopen_self" = xyes; then
17005: LDFLAGS="$LDFLAGS $link_static_flag"
17006: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17007: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17008: if test "${lt_cv_dlopen_self_static+set}" = set; then
17009: echo $ECHO_N "(cached) $ECHO_C" >&6
17010: else
17011: if test "$cross_compiling" = yes; then :
17012: lt_cv_dlopen_self_static=cross
17013: else
17014: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17015: lt_status=$lt_dlunknown
17016: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 17017: #line 17017 "configure"
1.1 root 17018: #include "confdefs.h"
17019:
17020: #if HAVE_DLFCN_H
17021: #include <dlfcn.h>
17022: #endif
17023:
17024: #include <stdio.h>
17025:
17026: #ifdef RTLD_GLOBAL
17027: # define LT_DLGLOBAL RTLD_GLOBAL
17028: #else
17029: # ifdef DL_GLOBAL
17030: # define LT_DLGLOBAL DL_GLOBAL
17031: # else
17032: # define LT_DLGLOBAL 0
17033: # endif
17034: #endif
17035:
17036: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17037: find out it does not work in some platform. */
17038: #ifndef LT_DLLAZY_OR_NOW
17039: # ifdef RTLD_LAZY
17040: # define LT_DLLAZY_OR_NOW RTLD_LAZY
17041: # else
17042: # ifdef DL_LAZY
17043: # define LT_DLLAZY_OR_NOW DL_LAZY
17044: # else
17045: # ifdef RTLD_NOW
17046: # define LT_DLLAZY_OR_NOW RTLD_NOW
17047: # else
17048: # ifdef DL_NOW
17049: # define LT_DLLAZY_OR_NOW DL_NOW
17050: # else
17051: # define LT_DLLAZY_OR_NOW 0
17052: # endif
17053: # endif
17054: # endif
17055: # endif
17056: #endif
17057:
17058: #ifdef __cplusplus
17059: extern "C" void exit (int);
17060: #endif
17061:
17062: void fnord() { int i=42;}
17063: int main ()
17064: {
17065: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17066: int status = $lt_dlunknown;
17067:
17068: if (self)
17069: {
17070: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17071: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17072: /* dlclose (self); */
17073: }
17074:
17075: exit (status);
17076: }
17077: EOF
17078: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079: (eval $ac_link) 2>&5
17080: ac_status=$?
17081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17083: (./conftest; exit; ) 2>/dev/null
17084: lt_status=$?
17085: case x$lt_status in
17086: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17087: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17088: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17089: esac
17090: else :
17091: # compilation failed
17092: lt_cv_dlopen_self_static=no
17093: fi
17094: fi
17095: rm -fr conftest*
17096:
17097:
17098: fi
17099: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17100: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17101: fi
17102:
17103: CPPFLAGS="$save_CPPFLAGS"
17104: LDFLAGS="$save_LDFLAGS"
17105: LIBS="$save_LIBS"
17106: ;;
17107: esac
17108:
17109: case $lt_cv_dlopen_self in
17110: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17111: *) enable_dlopen_self=unknown ;;
17112: esac
17113:
17114: case $lt_cv_dlopen_self_static in
17115: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17116: *) enable_dlopen_self_static=unknown ;;
17117: esac
17118: fi
17119:
17120:
17121: # The else clause should only fire when bootstrapping the
17122: # libtool distribution, otherwise you forgot to ship ltmain.sh
17123: # with your package, and you will get complaints that there are
17124: # no rules to generate ltmain.sh.
17125: if test -f "$ltmain"; then
17126: # See if we are running on zsh, and set the options which allow our commands through
17127: # without removal of \ escapes.
17128: if test -n "${ZSH_VERSION+set}" ; then
17129: setopt NO_GLOB_SUBST
17130: fi
17131: # Now quote all the things that may contain metacharacters while being
17132: # careful not to overquote the AC_SUBSTed values. We take copies of the
17133: # variables and quote the copies for generation of the libtool script.
17134: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17135: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17136: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17137: deplibs_check_method reload_flag reload_cmds need_locks \
17138: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17139: lt_cv_sys_global_symbol_to_c_name_address \
17140: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17141: old_postinstall_cmds old_postuninstall_cmds \
17142: compiler_CXX \
17143: CC_CXX \
17144: LD_CXX \
17145: lt_prog_compiler_wl_CXX \
17146: lt_prog_compiler_pic_CXX \
17147: lt_prog_compiler_static_CXX \
17148: lt_prog_compiler_no_builtin_flag_CXX \
17149: export_dynamic_flag_spec_CXX \
17150: thread_safe_flag_spec_CXX \
17151: whole_archive_flag_spec_CXX \
17152: enable_shared_with_static_runtimes_CXX \
17153: old_archive_cmds_CXX \
17154: old_archive_from_new_cmds_CXX \
17155: predep_objects_CXX \
17156: postdep_objects_CXX \
17157: predeps_CXX \
17158: postdeps_CXX \
17159: compiler_lib_search_path_CXX \
17160: archive_cmds_CXX \
17161: archive_expsym_cmds_CXX \
17162: postinstall_cmds_CXX \
17163: postuninstall_cmds_CXX \
17164: old_archive_from_expsyms_cmds_CXX \
17165: allow_undefined_flag_CXX \
17166: no_undefined_flag_CXX \
17167: export_symbols_cmds_CXX \
17168: hardcode_libdir_flag_spec_CXX \
17169: hardcode_libdir_flag_spec_ld_CXX \
17170: hardcode_libdir_separator_CXX \
17171: hardcode_automatic_CXX \
17172: module_cmds_CXX \
17173: module_expsym_cmds_CXX \
17174: lt_cv_prog_compiler_c_o_CXX \
17175: exclude_expsyms_CXX \
17176: include_expsyms_CXX; do
17177:
17178: case $var in
17179: old_archive_cmds_CXX | \
17180: old_archive_from_new_cmds_CXX | \
17181: archive_cmds_CXX | \
17182: archive_expsym_cmds_CXX | \
17183: module_cmds_CXX | \
17184: module_expsym_cmds_CXX | \
17185: old_archive_from_expsyms_cmds_CXX | \
17186: export_symbols_cmds_CXX | \
17187: extract_expsyms_cmds | reload_cmds | finish_cmds | \
17188: postinstall_cmds | postuninstall_cmds | \
17189: old_postinstall_cmds | old_postuninstall_cmds | \
17190: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17191: # Double-quote double-evaled strings.
17192: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17193: ;;
17194: *)
17195: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17196: ;;
17197: esac
17198: done
17199:
17200: case $lt_echo in
17201: *'\$0 --fallback-echo"')
17202: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17203: ;;
17204: esac
17205:
17206: cfgfile="$ofile"
17207:
17208: cat <<__EOF__ >> "$cfgfile"
17209: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17210:
17211: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17212:
17213: # Shell to use when invoking shell scripts.
17214: SHELL=$lt_SHELL
17215:
17216: # Whether or not to build shared libraries.
17217: build_libtool_libs=$enable_shared
17218:
17219: # Whether or not to build static libraries.
17220: build_old_libs=$enable_static
17221:
17222: # Whether or not to add -lc for building shared libraries.
17223: build_libtool_need_lc=$archive_cmds_need_lc_CXX
17224:
17225: # Whether or not to disallow shared libs when runtime libs are static
17226: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17227:
17228: # Whether or not to optimize for fast installation.
17229: fast_install=$enable_fast_install
17230:
17231: # The host system.
17232: host_alias=$host_alias
17233: host=$host
17234:
17235: # An echo program that does not interpret backslashes.
17236: echo=$lt_echo
17237:
17238: # The archiver.
17239: AR=$lt_AR
17240: AR_FLAGS=$lt_AR_FLAGS
17241:
17242: # A C compiler.
17243: LTCC=$lt_LTCC
17244:
17245: # A language-specific compiler.
17246: CC=$lt_compiler_CXX
17247:
17248: # Is the compiler the GNU C compiler?
17249: with_gcc=$GCC_CXX
17250:
17251: # An ERE matcher.
17252: EGREP=$lt_EGREP
17253:
17254: # The linker used to build libraries.
17255: LD=$lt_LD_CXX
17256:
17257: # Whether we need hard or soft links.
17258: LN_S=$lt_LN_S
17259:
17260: # A BSD-compatible nm program.
17261: NM=$lt_NM
17262:
17263: # A symbol stripping program
17264: STRIP=$STRIP
17265:
17266: # Used to examine libraries when file_magic_cmd begins "file"
17267: MAGIC_CMD=$MAGIC_CMD
17268:
17269: # Used on cygwin: DLL creation program.
17270: DLLTOOL="$DLLTOOL"
17271:
17272: # Used on cygwin: object dumper.
17273: OBJDUMP="$OBJDUMP"
17274:
17275: # Used on cygwin: assembler.
17276: AS="$AS"
17277:
17278: # The name of the directory that contains temporary libtool files.
17279: objdir=$objdir
17280:
17281: # How to create reloadable object files.
17282: reload_flag=$lt_reload_flag
17283: reload_cmds=$lt_reload_cmds
17284:
17285: # How to pass a linker flag through the compiler.
17286: wl=$lt_lt_prog_compiler_wl_CXX
17287:
17288: # Object file suffix (normally "o").
17289: objext="$ac_objext"
17290:
17291: # Old archive suffix (normally "a").
17292: libext="$libext"
17293:
17294: # Shared library suffix (normally ".so").
17295: shrext='$shrext'
17296:
17297: # Executable file suffix (normally "").
17298: exeext="$exeext"
17299:
17300: # Additional compiler flags for building library objects.
17301: pic_flag=$lt_lt_prog_compiler_pic_CXX
17302: pic_mode=$pic_mode
17303:
17304: # What is the maximum length of a command?
17305: max_cmd_len=$lt_cv_sys_max_cmd_len
17306:
17307: # Does compiler simultaneously support -c and -o options?
17308: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17309:
17310: # Must we lock files when doing compilation ?
17311: need_locks=$lt_need_locks
17312:
17313: # Do we need the lib prefix for modules?
17314: need_lib_prefix=$need_lib_prefix
17315:
17316: # Do we need a version for libraries?
17317: need_version=$need_version
17318:
17319: # Whether dlopen is supported.
17320: dlopen_support=$enable_dlopen
17321:
17322: # Whether dlopen of programs is supported.
17323: dlopen_self=$enable_dlopen_self
17324:
17325: # Whether dlopen of statically linked programs is supported.
17326: dlopen_self_static=$enable_dlopen_self_static
17327:
17328: # Compiler flag to prevent dynamic linking.
17329: link_static_flag=$lt_lt_prog_compiler_static_CXX
17330:
17331: # Compiler flag to turn off builtin functions.
17332: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17333:
17334: # Compiler flag to allow reflexive dlopens.
17335: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17336:
17337: # Compiler flag to generate shared objects directly from archives.
17338: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17339:
17340: # Compiler flag to generate thread-safe objects.
17341: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
17342:
17343: # Library versioning type.
17344: version_type=$version_type
17345:
17346: # Format of library name prefix.
17347: libname_spec=$lt_libname_spec
17348:
17349: # List of archive names. First name is the real one, the rest are links.
17350: # The last name is the one that the linker finds with -lNAME.
17351: library_names_spec=$lt_library_names_spec
17352:
17353: # The coded name of the library, if different from the real name.
17354: soname_spec=$lt_soname_spec
17355:
17356: # Commands used to build and install an old-style archive.
17357: RANLIB=$lt_RANLIB
17358: old_archive_cmds=$lt_old_archive_cmds_CXX
17359: old_postinstall_cmds=$lt_old_postinstall_cmds
17360: old_postuninstall_cmds=$lt_old_postuninstall_cmds
17361:
17362: # Create an old-style archive from a shared archive.
17363: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17364:
17365: # Create a temporary old-style archive to link instead of a shared archive.
17366: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17367:
17368: # Commands used to build and install a shared archive.
17369: archive_cmds=$lt_archive_cmds_CXX
17370: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17371: postinstall_cmds=$lt_postinstall_cmds
17372: postuninstall_cmds=$lt_postuninstall_cmds
17373:
17374: # Commands used to build a loadable module (assumed same as above if empty)
17375: module_cmds=$lt_module_cmds_CXX
17376: module_expsym_cmds=$lt_module_expsym_cmds_CXX
17377:
17378: # Commands to strip libraries.
17379: old_striplib=$lt_old_striplib
17380: striplib=$lt_striplib
17381:
17382: # Dependencies to place before the objects being linked to create a
17383: # shared library.
17384: predep_objects=$lt_predep_objects_CXX
17385:
17386: # Dependencies to place after the objects being linked to create a
17387: # shared library.
17388: postdep_objects=$lt_postdep_objects_CXX
17389:
17390: # Dependencies to place before the objects being linked to create a
17391: # shared library.
17392: predeps=$lt_predeps_CXX
17393:
17394: # Dependencies to place after the objects being linked to create a
17395: # shared library.
17396: postdeps=$lt_postdeps_CXX
17397:
17398: # The library search path used internally by the compiler when linking
17399: # a shared library.
17400: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17401:
17402: # Method to check whether dependent libraries are shared objects.
17403: deplibs_check_method=$lt_deplibs_check_method
17404:
17405: # Command to use when deplibs_check_method == file_magic.
17406: file_magic_cmd=$lt_file_magic_cmd
17407:
17408: # Flag that allows shared libraries with undefined symbols to be built.
17409: allow_undefined_flag=$lt_allow_undefined_flag_CXX
17410:
17411: # Flag that forces no undefined symbols.
17412: no_undefined_flag=$lt_no_undefined_flag_CXX
17413:
17414: # Commands used to finish a libtool library installation in a directory.
17415: finish_cmds=$lt_finish_cmds
17416:
17417: # Same as above, but a single script fragment to be evaled but not shown.
17418: finish_eval=$lt_finish_eval
17419:
17420: # Take the output of nm and produce a listing of raw symbols and C names.
17421: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17422:
17423: # Transform the output of nm in a proper C declaration
17424: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17425:
17426: # Transform the output of nm in a C name address pair
17427: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17428:
17429: # This is the shared library runtime path variable.
17430: runpath_var=$runpath_var
17431:
17432: # This is the shared library path variable.
17433: shlibpath_var=$shlibpath_var
17434:
17435: # Is shlibpath searched before the hard-coded library search path?
17436: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17437:
17438: # How to hardcode a shared library path into an executable.
17439: hardcode_action=$hardcode_action_CXX
17440:
17441: # Whether we should hardcode library paths into libraries.
17442: hardcode_into_libs=$hardcode_into_libs
17443:
17444: # Flag to hardcode \$libdir into a binary during linking.
17445: # This must work even if \$libdir does not exist.
17446: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17447:
17448: # If ld is used when linking, flag to hardcode \$libdir into
17449: # a binary during linking. This must work even if \$libdir does
17450: # not exist.
17451: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17452:
17453: # Whether we need a single -rpath flag with a separated argument.
17454: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17455:
17456: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17457: # resulting binary.
17458: hardcode_direct=$hardcode_direct_CXX
17459:
17460: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17461: # resulting binary.
17462: hardcode_minus_L=$hardcode_minus_L_CXX
17463:
17464: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17465: # the resulting binary.
17466: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17467:
17468: # Set to yes if building a shared library automatically hardcodes DIR into the library
17469: # and all subsequent libraries and executables linked against it.
17470: hardcode_automatic=$hardcode_automatic_CXX
17471:
17472: # Variables whose values should be saved in libtool wrapper scripts and
17473: # restored at relink time.
17474: variables_saved_for_relink="$variables_saved_for_relink"
17475:
17476: # Whether libtool must link a program against all its dependency libraries.
17477: link_all_deplibs=$link_all_deplibs_CXX
17478:
17479: # Compile-time system search path for libraries
17480: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17481:
17482: # Run-time system search path for libraries
17483: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17484:
17485: # Fix the shell variable \$srcfile for the compiler.
17486: fix_srcfile_path="$fix_srcfile_path_CXX"
17487:
17488: # Set to yes if exported symbols are required.
17489: always_export_symbols=$always_export_symbols_CXX
17490:
17491: # The commands to list exported symbols.
17492: export_symbols_cmds=$lt_export_symbols_cmds_CXX
17493:
17494: # The commands to extract the exported symbol list from a shared archive.
17495: extract_expsyms_cmds=$lt_extract_expsyms_cmds
17496:
17497: # Symbols that should not be listed in the preloaded symbols.
17498: exclude_expsyms=$lt_exclude_expsyms_CXX
17499:
17500: # Symbols that must always be exported.
17501: include_expsyms=$lt_include_expsyms_CXX
17502:
17503: # ### END LIBTOOL TAG CONFIG: $tagname
17504:
17505: __EOF__
17506:
17507:
17508: else
17509: # If there is no Makefile yet, we rely on a make rule to execute
17510: # `config.status --recheck' to rerun these tests and create the
17511: # libtool script then.
17512: test -f Makefile && make "$ltmain"
17513: fi
17514:
17515:
17516: ac_ext=c
17517: ac_cpp='$CPP $CPPFLAGS'
17518: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17519: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17520: ac_compiler_gnu=$ac_cv_c_compiler_gnu
17521:
17522: CC=$lt_save_CC
17523: LDCXX=$LD
17524: LD=$lt_save_LD
17525: GCC=$lt_save_GCC
17526: with_gnu_ldcxx=$with_gnu_ld
17527: with_gnu_ld=$lt_save_with_gnu_ld
17528: lt_cv_path_LDCXX=$lt_cv_path_LD
17529: lt_cv_path_LD=$lt_save_path_LD
17530: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17531: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17532:
17533: else
17534: tagname=""
17535: fi
17536: ;;
17537:
17538: F77)
17539: if test -n "$F77" && test "X$F77" != "Xno"; then
17540:
17541: ac_ext=f
17542: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17543: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17545:
17546:
17547: archive_cmds_need_lc_F77=no
17548: allow_undefined_flag_F77=
17549: always_export_symbols_F77=no
17550: archive_expsym_cmds_F77=
17551: export_dynamic_flag_spec_F77=
17552: hardcode_direct_F77=no
17553: hardcode_libdir_flag_spec_F77=
17554: hardcode_libdir_flag_spec_ld_F77=
17555: hardcode_libdir_separator_F77=
17556: hardcode_minus_L_F77=no
17557: hardcode_automatic_F77=no
17558: module_cmds_F77=
17559: module_expsym_cmds_F77=
17560: link_all_deplibs_F77=unknown
17561: old_archive_cmds_F77=$old_archive_cmds
17562: no_undefined_flag_F77=
17563: whole_archive_flag_spec_F77=
17564: enable_shared_with_static_runtimes_F77=no
17565:
17566: # Source file extension for f77 test sources.
17567: ac_ext=f
17568:
17569: # Object file extension for compiled f77 test sources.
17570: objext=o
17571: objext_F77=$objext
17572:
17573: # Code to be used in simple compile tests
17574: lt_simple_compile_test_code=" subroutine t\n return\n end\n"
17575:
17576: # Code to be used in simple link tests
17577: lt_simple_link_test_code=" program t\n end\n"
17578:
17579: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17580:
17581: # If no C compiler was specified, use CC.
17582: LTCC=${LTCC-"$CC"}
17583:
17584: # Allow CC to be a program name with arguments.
17585: compiler=$CC
17586:
17587:
17588: # Allow CC to be a program name with arguments.
17589: lt_save_CC="$CC"
17590: CC=${F77-"f77"}
17591: compiler=$CC
17592: compiler_F77=$CC
17593: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
17594:
17595: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17596: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17597: echo "$as_me:$LINENO: result: $can_build_shared" >&5
17598: echo "${ECHO_T}$can_build_shared" >&6
17599:
17600: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17601: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17602: test "$can_build_shared" = "no" && enable_shared=no
17603:
17604: # On AIX, shared libraries and static libraries use the same namespace, and
17605: # are all built from PIC.
17606: case "$host_os" in
17607: aix3*)
17608: test "$enable_shared" = yes && enable_static=no
17609: if test -n "$RANLIB"; then
17610: archive_cmds="$archive_cmds~\$RANLIB \$lib"
17611: postinstall_cmds='$RANLIB $lib'
17612: fi
17613: ;;
17614: aix4*)
17615: test "$enable_shared" = yes && enable_static=no
17616: ;;
17617: esac
17618: echo "$as_me:$LINENO: result: $enable_shared" >&5
17619: echo "${ECHO_T}$enable_shared" >&6
17620:
17621: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17622: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17623: # Make sure either enable_shared or enable_static is yes.
17624: test "$enable_shared" = yes || enable_static=yes
17625: echo "$as_me:$LINENO: result: $enable_static" >&5
17626: echo "${ECHO_T}$enable_static" >&6
17627:
17628: test "$ld_shlibs_F77" = no && can_build_shared=no
17629:
17630: GCC_F77="$G77"
17631: LD_F77="$LD"
17632:
17633: lt_prog_compiler_wl_F77=
17634: lt_prog_compiler_pic_F77=
17635: lt_prog_compiler_static_F77=
17636:
17637: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17638: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17639:
17640: if test "$GCC" = yes; then
17641: lt_prog_compiler_wl_F77='-Wl,'
17642: lt_prog_compiler_static_F77='-static'
17643:
17644: case $host_os in
17645: aix*)
17646: # All AIX code is PIC.
17647: if test "$host_cpu" = ia64; then
17648: # AIX 5 now supports IA64 processor
17649: lt_prog_compiler_static_F77='-Bstatic'
17650: fi
17651: ;;
17652:
17653: amigaos*)
17654: # FIXME: we need at least 68020 code to build shared libraries, but
17655: # adding the `-m68020' flag to GCC prevents building anything better,
17656: # like `-m68040'.
17657: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17658: ;;
17659:
17660: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17661: # PIC is the default for these OSes.
17662: ;;
17663:
17664: mingw* | pw32* | os2*)
17665: # This hack is so that the source file can tell whether it is being
17666: # built for inclusion in a dll (and should export symbols for example).
17667: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17668: ;;
17669:
17670: darwin* | rhapsody*)
17671: # PIC is the default on this platform
17672: # Common symbols not allowed in MH_DYLIB files
17673: lt_prog_compiler_pic_F77='-fno-common'
17674: ;;
17675:
17676: msdosdjgpp*)
17677: # Just because we use GCC doesn't mean we suddenly get shared libraries
17678: # on systems that don't support them.
17679: lt_prog_compiler_can_build_shared_F77=no
17680: enable_shared=no
17681: ;;
17682:
17683: sysv4*MP*)
17684: if test -d /usr/nec; then
17685: lt_prog_compiler_pic_F77=-Kconform_pic
17686: fi
17687: ;;
17688:
17689: hpux*)
17690: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17691: # not for PA HP-UX.
17692: case "$host_cpu" in
17693: hppa*64*|ia64*)
17694: # +Z the default
17695: ;;
17696: *)
17697: lt_prog_compiler_pic_F77='-fPIC'
17698: ;;
17699: esac
17700: ;;
17701:
17702: *)
17703: lt_prog_compiler_pic_F77='-fPIC'
17704: ;;
17705: esac
17706: else
17707: # PORTME Check for flag to pass linker flags through the system compiler.
17708: case $host_os in
17709: aix*)
17710: lt_prog_compiler_wl_F77='-Wl,'
17711: if test "$host_cpu" = ia64; then
17712: # AIX 5 now supports IA64 processor
17713: lt_prog_compiler_static_F77='-Bstatic'
17714: else
17715: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17716: fi
17717: ;;
17718:
17719: mingw* | pw32* | os2*)
17720: # This hack is so that the source file can tell whether it is being
17721: # built for inclusion in a dll (and should export symbols for example).
17722: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17723: ;;
17724:
17725: hpux9* | hpux10* | hpux11*)
17726: lt_prog_compiler_wl_F77='-Wl,'
17727: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17728: # not for PA HP-UX.
17729: case "$host_cpu" in
17730: hppa*64*|ia64*)
17731: # +Z the default
17732: ;;
17733: *)
17734: lt_prog_compiler_pic_F77='+Z'
17735: ;;
17736: esac
17737: # Is there a better lt_prog_compiler_static that works with the bundled CC?
17738: lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17739: ;;
17740:
17741: irix5* | irix6* | nonstopux*)
17742: lt_prog_compiler_wl_F77='-Wl,'
17743: # PIC (with -KPIC) is the default.
17744: lt_prog_compiler_static_F77='-non_shared'
17745: ;;
17746:
17747: newsos6)
17748: lt_prog_compiler_pic_F77='-KPIC'
17749: lt_prog_compiler_static_F77='-Bstatic'
17750: ;;
17751:
17752: linux*)
17753: case $CC in
17754: icc|ecc)
17755: lt_prog_compiler_wl_F77='-Wl,'
17756: lt_prog_compiler_pic_F77='-KPIC'
17757: lt_prog_compiler_static_F77='-static'
17758: ;;
17759: ccc)
17760: lt_prog_compiler_wl_F77='-Wl,'
17761: # All Alpha code is PIC.
17762: lt_prog_compiler_static_F77='-non_shared'
17763: ;;
17764: esac
17765: ;;
17766:
17767: osf3* | osf4* | osf5*)
17768: lt_prog_compiler_wl_F77='-Wl,'
17769: # All OSF/1 code is PIC.
17770: lt_prog_compiler_static_F77='-non_shared'
17771: ;;
17772:
17773: sco3.2v5*)
17774: lt_prog_compiler_pic_F77='-Kpic'
17775: lt_prog_compiler_static_F77='-dn'
17776: ;;
17777:
17778: solaris*)
17779: lt_prog_compiler_wl_F77='-Wl,'
17780: lt_prog_compiler_pic_F77='-KPIC'
17781: lt_prog_compiler_static_F77='-Bstatic'
17782: ;;
17783:
17784: sunos4*)
17785: lt_prog_compiler_wl_F77='-Qoption ld '
17786: lt_prog_compiler_pic_F77='-PIC'
17787: lt_prog_compiler_static_F77='-Bstatic'
17788: ;;
17789:
17790: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17791: lt_prog_compiler_wl_F77='-Wl,'
17792: lt_prog_compiler_pic_F77='-KPIC'
17793: lt_prog_compiler_static_F77='-Bstatic'
17794: ;;
17795:
17796: sysv4*MP*)
17797: if test -d /usr/nec ;then
17798: lt_prog_compiler_pic_F77='-Kconform_pic'
17799: lt_prog_compiler_static_F77='-Bstatic'
17800: fi
17801: ;;
17802:
17803: uts4*)
17804: lt_prog_compiler_pic_F77='-pic'
17805: lt_prog_compiler_static_F77='-Bstatic'
17806: ;;
17807:
17808: *)
17809: lt_prog_compiler_can_build_shared_F77=no
17810: ;;
17811: esac
17812: fi
17813:
17814: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17815: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
17816:
17817: #
17818: # Check to make sure the PIC flag actually works.
17819: #
17820: if test -n "$lt_prog_compiler_pic_F77"; then
17821: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17822: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
17823: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17824: echo $ECHO_N "(cached) $ECHO_C" >&6
17825: else
17826: lt_prog_compiler_pic_works_F77=no
17827: ac_outfile=conftest.$ac_objext
17828: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17829: lt_compiler_flag="$lt_prog_compiler_pic_F77"
17830: # Insert the option either (1) after the last *FLAGS variable, or
17831: # (2) before a word containing "conftest.", or (3) at the end.
17832: # Note that $ac_compile itself does not contain backslashes and begins
17833: # with a dollar sign (not a hyphen), so the echo should work correctly.
17834: # The option is referenced via a variable to avoid confusing sed.
17835: lt_compile=`echo "$ac_compile" | $SED \
17836: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17837: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17838: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 17839: (eval echo "\"\$as_me:17839: $lt_compile\"" >&5)
1.1 root 17840: (eval "$lt_compile" 2>conftest.err)
17841: ac_status=$?
17842: cat conftest.err >&5
1.1.1.2 ! root 17843: echo "$as_me:17843: \$? = $ac_status" >&5
1.1 root 17844: if (exit $ac_status) && test -s "$ac_outfile"; then
17845: # The compiler can only warn and ignore the option if not recognized
17846: # So say no if there are warnings
17847: if test ! -s conftest.err; then
17848: lt_prog_compiler_pic_works_F77=yes
17849: fi
17850: fi
17851: $rm conftest*
17852:
17853: fi
17854: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17855: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
17856:
17857: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17858: case $lt_prog_compiler_pic_F77 in
17859: "" | " "*) ;;
17860: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17861: esac
17862: else
17863: lt_prog_compiler_pic_F77=
17864: lt_prog_compiler_can_build_shared_F77=no
17865: fi
17866:
17867: fi
17868: case "$host_os" in
17869: # For platforms which do not support PIC, -DPIC is meaningless:
17870: *djgpp*)
17871: lt_prog_compiler_pic_F77=
17872: ;;
17873: *)
17874: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17875: ;;
17876: esac
17877:
17878: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17879: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17880: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17881: echo $ECHO_N "(cached) $ECHO_C" >&6
17882: else
17883: lt_cv_prog_compiler_c_o_F77=no
17884: $rm -r conftest 2>/dev/null
17885: mkdir conftest
17886: cd conftest
17887: mkdir out
17888: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17889:
17890: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
17891: # that will create temporary files in the current directory regardless of
17892: # the output directory. Thus, making CWD read-only will cause this test
17893: # to fail, enabling locking or at least warning the user not to do parallel
17894: # builds.
17895: chmod -w .
17896:
17897: lt_compiler_flag="-o out/conftest2.$ac_objext"
17898: # Insert the option either (1) after the last *FLAGS variable, or
17899: # (2) before a word containing "conftest.", or (3) at the end.
17900: # Note that $ac_compile itself does not contain backslashes and begins
17901: # with a dollar sign (not a hyphen), so the echo should work correctly.
17902: lt_compile=`echo "$ac_compile" | $SED \
17903: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17904: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17905: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 17906: (eval echo "\"\$as_me:17906: $lt_compile\"" >&5)
1.1 root 17907: (eval "$lt_compile" 2>out/conftest.err)
17908: ac_status=$?
17909: cat out/conftest.err >&5
1.1.1.2 ! root 17910: echo "$as_me:17910: \$? = $ac_status" >&5
1.1 root 17911: if (exit $ac_status) && test -s out/conftest2.$ac_objext
17912: then
17913: # The compiler can only warn and ignore the option if not recognized
17914: # So say no if there are warnings
17915: if test ! -s out/conftest.err; then
17916: lt_cv_prog_compiler_c_o_F77=yes
17917: fi
17918: fi
17919: chmod u+w .
17920: $rm conftest* out/*
17921: rmdir out
17922: cd ..
17923: rmdir conftest
17924: $rm conftest*
17925:
17926: fi
17927: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17928: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
17929:
17930:
17931: hard_links="nottested"
17932: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17933: # do not overwrite the value of need_locks provided by the user
17934: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17935: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17936: hard_links=yes
17937: $rm conftest*
17938: ln conftest.a conftest.b 2>/dev/null && hard_links=no
17939: touch conftest.a
17940: ln conftest.a conftest.b 2>&5 || hard_links=no
17941: ln conftest.a conftest.b 2>/dev/null && hard_links=no
17942: echo "$as_me:$LINENO: result: $hard_links" >&5
17943: echo "${ECHO_T}$hard_links" >&6
17944: if test "$hard_links" = no; then
17945: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17946: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17947: need_locks=warn
17948: fi
17949: else
17950: need_locks=no
17951: fi
17952:
17953: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17954: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17955:
17956: runpath_var=
17957: allow_undefined_flag_F77=
17958: enable_shared_with_static_runtimes_F77=no
17959: archive_cmds_F77=
17960: archive_expsym_cmds_F77=
17961: old_archive_From_new_cmds_F77=
17962: old_archive_from_expsyms_cmds_F77=
17963: export_dynamic_flag_spec_F77=
17964: whole_archive_flag_spec_F77=
17965: thread_safe_flag_spec_F77=
17966: hardcode_libdir_flag_spec_F77=
17967: hardcode_libdir_flag_spec_ld_F77=
17968: hardcode_libdir_separator_F77=
17969: hardcode_direct_F77=no
17970: hardcode_minus_L_F77=no
17971: hardcode_shlibpath_var_F77=unsupported
17972: link_all_deplibs_F77=unknown
17973: hardcode_automatic_F77=no
17974: module_cmds_F77=
17975: module_expsym_cmds_F77=
17976: always_export_symbols_F77=no
17977: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17978: # include_expsyms should be a list of space-separated symbols to be *always*
17979: # included in the symbol list
17980: include_expsyms_F77=
17981: # exclude_expsyms can be an extended regexp of symbols to exclude
17982: # it will be wrapped by ` (' and `)$', so one must not match beginning or
17983: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17984: # as well as any symbol that contains `d'.
17985: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17986: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17987: # platforms (ab)use it in PIC code, but their linkers get confused if
17988: # the symbol is explicitly referenced. Since portable code cannot
17989: # rely on this symbol name, it's probably fine to never include it in
17990: # preloaded symbol tables.
17991: extract_expsyms_cmds=
17992:
17993: case $host_os in
17994: cygwin* | mingw* | pw32*)
17995: # FIXME: the MSVC++ port hasn't been tested in a loooong time
17996: # When not using gcc, we currently assume that we are using
17997: # Microsoft Visual C++.
17998: if test "$GCC" != yes; then
17999: with_gnu_ld=no
18000: fi
18001: ;;
18002: openbsd*)
18003: with_gnu_ld=no
18004: ;;
18005: esac
18006:
18007: ld_shlibs_F77=yes
18008: if test "$with_gnu_ld" = yes; then
18009: # If archive_cmds runs LD, not CC, wlarc should be empty
18010: wlarc='${wl}'
18011:
18012: # See if GNU ld supports shared libraries.
18013: case $host_os in
18014: aix3* | aix4* | aix5*)
18015: # On AIX/PPC, the GNU linker is very broken
18016: if test "$host_cpu" != ia64; then
18017: ld_shlibs_F77=no
18018: cat <<EOF 1>&2
18019:
18020: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18021: *** to be unable to reliably create shared libraries on AIX.
18022: *** Therefore, libtool is disabling shared libraries support. If you
18023: *** really care for shared libraries, you may want to modify your PATH
18024: *** so that a non-GNU linker is found, and then restart.
18025:
18026: EOF
18027: fi
18028: ;;
18029:
18030: amigaos*)
18031: archive_cmds_F77='$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)'
18032: hardcode_libdir_flag_spec_F77='-L$libdir'
18033: hardcode_minus_L_F77=yes
18034:
18035: # Samuel A. Falvo II <[email protected]> reports
18036: # that the semantics of dynamic libraries on AmigaOS, at least up
18037: # to version 4, is to share data among multiple programs linked
18038: # with the same dynamic library. Since this doesn't match the
18039: # behavior of shared libraries on other platforms, we can't use
18040: # them.
18041: ld_shlibs_F77=no
18042: ;;
18043:
18044: beos*)
18045: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18046: allow_undefined_flag_F77=unsupported
18047: # Joseph Beckenbach <[email protected]> says some releases of gcc
18048: # support --undefined. This deserves some investigation. FIXME
18049: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050: else
18051: ld_shlibs_F77=no
18052: fi
18053: ;;
18054:
18055: cygwin* | mingw* | pw32*)
18056: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18057: # as there is no search path for DLLs.
18058: hardcode_libdir_flag_spec_F77='-L$libdir'
18059: allow_undefined_flag_F77=unsupported
18060: always_export_symbols_F77=no
18061: enable_shared_with_static_runtimes_F77=yes
18062: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18063:
18064: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18065: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18066: # If the export-symbols file already is a .def file (1st line
18067: # is EXPORTS), use it as is; otherwise, prepend...
18068: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18069: cp $export_symbols $output_objdir/$soname.def;
18070: else
18071: echo EXPORTS > $output_objdir/$soname.def;
18072: cat $export_symbols >> $output_objdir/$soname.def;
18073: fi~
18074: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18075: else
18076: ld_shlibs=no
18077: fi
18078: ;;
18079:
18080: netbsd*)
18081: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18082: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18083: wlarc=
18084: else
18085: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18086: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18087: fi
18088: ;;
18089:
18090: solaris* | sysv5*)
18091: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18092: ld_shlibs_F77=no
18093: cat <<EOF 1>&2
18094:
18095: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18096: *** create shared libraries on Solaris systems. Therefore, libtool
18097: *** is disabling shared libraries support. We urge you to upgrade GNU
18098: *** binutils to release 2.9.1 or newer. Another option is to modify
18099: *** your PATH or compiler configuration so that the native linker is
18100: *** used, and then restart.
18101:
18102: EOF
18103: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18104: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18105: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18106: else
18107: ld_shlibs_F77=no
18108: fi
18109: ;;
18110:
18111: sunos4*)
18112: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18113: wlarc=
18114: hardcode_direct_F77=yes
18115: hardcode_shlibpath_var_F77=no
18116: ;;
18117:
18118: *)
18119: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18120: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18121: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18122: else
18123: ld_shlibs_F77=no
18124: fi
18125: ;;
18126: esac
18127:
18128: if test "$ld_shlibs_F77" = yes; then
18129: runpath_var=LD_RUN_PATH
18130: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
18131: export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18132: # ancient GNU ld didn't support --whole-archive et. al.
18133: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18134: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18135: else
18136: whole_archive_flag_spec_F77=
18137: fi
18138: fi
18139: else
18140: # PORTME fill in a description of your system's linker (not GNU ld)
18141: case $host_os in
18142: aix3*)
18143: allow_undefined_flag_F77=unsupported
18144: always_export_symbols_F77=yes
18145: archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18146: # Note: this linker hardcodes the directories in LIBPATH if there
18147: # are no directories specified by -L.
18148: hardcode_minus_L_F77=yes
18149: if test "$GCC" = yes && test -z "$link_static_flag"; then
18150: # Neither direct hardcoding nor static linking is supported with a
18151: # broken collect2.
18152: hardcode_direct_F77=unsupported
18153: fi
18154: ;;
18155:
18156: aix4* | aix5*)
18157: if test "$host_cpu" = ia64; then
18158: # On IA64, the linker does run time linking by default, so we don't
18159: # have to do anything special.
18160: aix_use_runtimelinking=no
18161: exp_sym_flag='-Bexport'
18162: no_entry_flag=""
18163: else
18164: # If we're using GNU nm, then we don't want the "-C" option.
18165: # -C means demangle to AIX nm, but means don't demangle with GNU nm
18166: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18167: export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18168: else
18169: export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18170: fi
18171: aix_use_runtimelinking=no
18172:
18173: # Test if we are trying to use run time linking or normal
18174: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18175: # need to do runtime linking.
18176: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18177: for ld_flag in $LDFLAGS; do
18178: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18179: aix_use_runtimelinking=yes
18180: break
18181: fi
18182: done
18183: esac
18184:
18185: exp_sym_flag='-bexport'
18186: no_entry_flag='-bnoentry'
18187: fi
18188:
18189: # When large executables or shared objects are built, AIX ld can
18190: # have problems creating the table of contents. If linking a library
18191: # or program results in "error TOC overflow" add -mminimal-toc to
18192: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18193: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18194:
18195: archive_cmds_F77=''
18196: hardcode_direct_F77=yes
18197: hardcode_libdir_separator_F77=':'
18198: link_all_deplibs_F77=yes
18199:
18200: if test "$GCC" = yes; then
18201: case $host_os in aix4.012|aix4.012.*)
18202: # We only want to do this on AIX 4.2 and lower, the check
18203: # below for broken collect2 doesn't work under 4.3+
18204: collect2name=`${CC} -print-prog-name=collect2`
18205: if test -f "$collect2name" && \
18206: strings "$collect2name" | grep resolve_lib_name >/dev/null
18207: then
18208: # We have reworked collect2
18209: hardcode_direct_F77=yes
18210: else
18211: # We have old collect2
18212: hardcode_direct_F77=unsupported
18213: # It fails to find uninstalled libraries when the uninstalled
18214: # path is not listed in the libpath. Setting hardcode_minus_L
18215: # to unsupported forces relinking
18216: hardcode_minus_L_F77=yes
18217: hardcode_libdir_flag_spec_F77='-L$libdir'
18218: hardcode_libdir_separator_F77=
18219: fi
18220: esac
18221: shared_flag='-shared'
18222: else
18223: # not using gcc
18224: if test "$host_cpu" = ia64; then
18225: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18226: # chokes on -Wl,-G. The following line is correct:
18227: shared_flag='-G'
18228: else
18229: if test "$aix_use_runtimelinking" = yes; then
18230: shared_flag='${wl}-G'
18231: else
18232: shared_flag='${wl}-bM:SRE'
18233: fi
18234: fi
18235: fi
18236:
18237: # It seems that -bexpall does not export symbols beginning with
18238: # underscore (_), so it is better to generate a list of symbols to export.
18239: always_export_symbols_F77=yes
18240: if test "$aix_use_runtimelinking" = yes; then
18241: # Warning - without using the other runtime loading flags (-brtl),
18242: # -berok will link without error, but may produce a broken library.
18243: allow_undefined_flag_F77='-berok'
18244: # Determine the default libpath from the value encoded in an empty executable.
18245: cat >conftest.$ac_ext <<_ACEOF
18246: program main
18247:
18248: end
18249: _ACEOF
18250: rm -f conftest.$ac_objext conftest$ac_exeext
18251: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252: (eval $ac_link) 2>&5
18253: ac_status=$?
18254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255: (exit $ac_status); } &&
18256: { ac_try='test -s conftest$ac_exeext'
18257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258: (eval $ac_try) 2>&5
18259: ac_status=$?
18260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261: (exit $ac_status); }; }; then
18262:
18263: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18264: }'`
18265: # Check for a 64-bit object if we didn't find anything.
18266: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18267: }'`; fi
18268: else
18269: echo "$as_me: failed program was:" >&5
18270: sed 's/^/| /' conftest.$ac_ext >&5
18271:
18272: fi
18273: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18274: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18275:
18276: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18277: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18278: else
18279: if test "$host_cpu" = ia64; then
18280: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18281: allow_undefined_flag_F77="-z nodefs"
18282: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18283: else
18284: # Determine the default libpath from the value encoded in an empty executable.
18285: cat >conftest.$ac_ext <<_ACEOF
18286: program main
18287:
18288: end
18289: _ACEOF
18290: rm -f conftest.$ac_objext conftest$ac_exeext
18291: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18292: (eval $ac_link) 2>&5
18293: ac_status=$?
18294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295: (exit $ac_status); } &&
18296: { ac_try='test -s conftest$ac_exeext'
18297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298: (eval $ac_try) 2>&5
18299: ac_status=$?
18300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301: (exit $ac_status); }; }; then
18302:
18303: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18304: }'`
18305: # Check for a 64-bit object if we didn't find anything.
18306: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18307: }'`; fi
18308: else
18309: echo "$as_me: failed program was:" >&5
18310: sed 's/^/| /' conftest.$ac_ext >&5
18311:
18312: fi
18313: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18314: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18315:
18316: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18317: # Warning - without using the other run time loading flags,
18318: # -berok will link without error, but may produce a broken library.
18319: no_undefined_flag_F77=' ${wl}-bernotok'
18320: allow_undefined_flag_F77=' ${wl}-berok'
18321: # -bexpall does not export symbols beginning with underscore (_)
18322: always_export_symbols_F77=yes
18323: # Exported symbols can be pulled into shared objects from archives
18324: whole_archive_flag_spec_F77=' '
18325: archive_cmds_need_lc_F77=yes
18326: # This is similar to how AIX traditionally builds it's shared libraries.
18327: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18328: fi
18329: fi
18330: ;;
18331:
18332: amigaos*)
18333: archive_cmds_F77='$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)'
18334: hardcode_libdir_flag_spec_F77='-L$libdir'
18335: hardcode_minus_L_F77=yes
18336: # see comment about different semantics on the GNU ld section
18337: ld_shlibs_F77=no
18338: ;;
18339:
18340: bsdi4*)
18341: export_dynamic_flag_spec_F77=-rdynamic
18342: ;;
18343:
18344: cygwin* | mingw* | pw32*)
18345: # When not using gcc, we currently assume that we are using
18346: # Microsoft Visual C++.
18347: # hardcode_libdir_flag_spec is actually meaningless, as there is
18348: # no search path for DLLs.
18349: hardcode_libdir_flag_spec_F77=' '
18350: allow_undefined_flag_F77=unsupported
18351: # Tell ltmain to make .lib files, not .a files.
18352: libext=lib
18353: # Tell ltmain to make .dll files, not .so files.
18354: shrext=".dll"
18355: # FIXME: Setting linknames here is a bad hack.
18356: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18357: # The linker will automatically build a .lib file if we build a DLL.
18358: old_archive_From_new_cmds_F77='true'
18359: # FIXME: Should let the user specify the lib program.
18360: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
18361: fix_srcfile_path='`cygpath -w "$srcfile"`'
18362: enable_shared_with_static_runtimes_F77=yes
18363: ;;
18364:
18365: darwin* | rhapsody*)
18366: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
18367: archive_cmds_need_lc_F77=no
18368: case "$host_os" in
18369: rhapsody* | darwin1.[012])
18370: allow_undefined_flag_F77='-undefined suppress'
18371: ;;
18372: *) # Darwin 1.3 on
18373: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
18374: ;;
18375: esac
18376: # FIXME: Relying on posixy $() will cause problems for
18377: # cross-compilation, but unfortunately the echo tests do not
18378: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
18379: # `"' quotes if we put them in here... so don't!
18380: lt_int_apple_cc_single_mod=no
18381: output_verbose_link_cmd='echo'
18382: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18383: lt_int_apple_cc_single_mod=yes
18384: fi
18385: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18386: archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18387: else
18388: archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
18389: fi
18390: module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
18391: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18392: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18393: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18394: else
18395: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18396: fi
18397: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18398: hardcode_direct_F77=no
18399: hardcode_automatic_F77=yes
18400: hardcode_shlibpath_var_F77=unsupported
18401: whole_archive_flag_spec_F77='-all_load $convenience'
18402: link_all_deplibs_F77=yes
18403: fi
18404: ;;
18405:
18406: dgux*)
18407: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408: hardcode_libdir_flag_spec_F77='-L$libdir'
18409: hardcode_shlibpath_var_F77=no
18410: ;;
18411:
18412: freebsd1*)
18413: ld_shlibs_F77=no
18414: ;;
18415:
18416: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18417: # support. Future versions do this automatically, but an explicit c++rt0.o
18418: # does not break anything, and helps significantly (at the cost of a little
18419: # extra space).
18420: freebsd2.2*)
18421: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18422: hardcode_libdir_flag_spec_F77='-R$libdir'
18423: hardcode_direct_F77=yes
18424: hardcode_shlibpath_var_F77=no
18425: ;;
18426:
18427: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18428: freebsd2*)
18429: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18430: hardcode_direct_F77=yes
18431: hardcode_minus_L_F77=yes
18432: hardcode_shlibpath_var_F77=no
18433: ;;
18434:
18435: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18436: freebsd*)
18437: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18438: hardcode_libdir_flag_spec_F77='-R$libdir'
18439: hardcode_direct_F77=yes
18440: hardcode_shlibpath_var_F77=no
18441: ;;
18442:
18443: hpux9*)
18444: if test "$GCC" = yes; then
18445: archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18446: else
18447: archive_cmds_F77='$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'
18448: fi
18449: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18450: hardcode_libdir_separator_F77=:
18451: hardcode_direct_F77=yes
18452:
18453: # hardcode_minus_L: Not really in the search PATH,
18454: # but as the default location of the library.
18455: hardcode_minus_L_F77=yes
18456: export_dynamic_flag_spec_F77='${wl}-E'
18457: ;;
18458:
18459: hpux10* | hpux11*)
18460: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18461: case "$host_cpu" in
18462: hppa*64*|ia64*)
18463: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18464: ;;
18465: *)
18466: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18467: ;;
18468: esac
18469: else
18470: case "$host_cpu" in
18471: hppa*64*|ia64*)
18472: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18473: ;;
18474: *)
18475: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18476: ;;
18477: esac
18478: fi
18479: if test "$with_gnu_ld" = no; then
18480: case "$host_cpu" in
18481: hppa*64*)
18482: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18483: hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18484: hardcode_libdir_separator_F77=:
18485: hardcode_direct_F77=no
18486: hardcode_shlibpath_var_F77=no
18487: ;;
18488: ia64*)
18489: hardcode_libdir_flag_spec_F77='-L$libdir'
18490: hardcode_direct_F77=no
18491: hardcode_shlibpath_var_F77=no
18492:
18493: # hardcode_minus_L: Not really in the search PATH,
18494: # but as the default location of the library.
18495: hardcode_minus_L_F77=yes
18496: ;;
18497: *)
18498: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18499: hardcode_libdir_separator_F77=:
18500: hardcode_direct_F77=yes
18501: export_dynamic_flag_spec_F77='${wl}-E'
18502:
18503: # hardcode_minus_L: Not really in the search PATH,
18504: # but as the default location of the library.
18505: hardcode_minus_L_F77=yes
18506: ;;
18507: esac
18508: fi
18509: ;;
18510:
18511: irix5* | irix6* | nonstopux*)
18512: if test "$GCC" = yes; then
18513: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18514: else
18515: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18516: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18517: fi
18518: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18519: hardcode_libdir_separator_F77=:
18520: link_all_deplibs_F77=yes
18521: ;;
18522:
18523: netbsd*)
18524: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18525: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18526: else
18527: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18528: fi
18529: hardcode_libdir_flag_spec_F77='-R$libdir'
18530: hardcode_direct_F77=yes
18531: hardcode_shlibpath_var_F77=no
18532: ;;
18533:
18534: newsos6)
18535: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18536: hardcode_direct_F77=yes
18537: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18538: hardcode_libdir_separator_F77=:
18539: hardcode_shlibpath_var_F77=no
18540: ;;
18541:
18542: openbsd*)
18543: hardcode_direct_F77=yes
18544: hardcode_shlibpath_var_F77=no
18545: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18546: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18547: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18548: export_dynamic_flag_spec_F77='${wl}-E'
18549: else
18550: case $host_os in
18551: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18552: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18553: hardcode_libdir_flag_spec_F77='-R$libdir'
18554: ;;
18555: *)
18556: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18557: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18558: ;;
18559: esac
18560: fi
18561: ;;
18562:
18563: os2*)
18564: hardcode_libdir_flag_spec_F77='-L$libdir'
18565: hardcode_minus_L_F77=yes
18566: allow_undefined_flag_F77=unsupported
18567: archive_cmds_F77='$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'
18568: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18569: ;;
18570:
18571: osf3*)
18572: if test "$GCC" = yes; then
18573: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18574: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18575: else
18576: allow_undefined_flag_F77=' -expect_unresolved \*'
18577: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18578: fi
18579: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18580: hardcode_libdir_separator_F77=:
18581: ;;
18582:
18583: osf4* | osf5*) # as osf3* with the addition of -msym flag
18584: if test "$GCC" = yes; then
18585: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18586: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18587: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18588: else
18589: allow_undefined_flag_F77=' -expect_unresolved \*'
18590: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18591: archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18592: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18593:
18594: # Both c and cxx compiler support -rpath directly
18595: hardcode_libdir_flag_spec_F77='-rpath $libdir'
18596: fi
18597: hardcode_libdir_separator_F77=:
18598: ;;
18599:
18600: sco3.2v5*)
18601: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18602: hardcode_shlibpath_var_F77=no
18603: export_dynamic_flag_spec_F77='${wl}-Bexport'
18604: runpath_var=LD_RUN_PATH
18605: hardcode_runpath_var=yes
18606: ;;
18607:
18608: solaris*)
18609: no_undefined_flag_F77=' -z text'
18610: if test "$GCC" = yes; then
18611: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18612: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18613: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18614: else
18615: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18616: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18617: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18618: fi
18619: hardcode_libdir_flag_spec_F77='-R$libdir'
18620: hardcode_shlibpath_var_F77=no
18621: case $host_os in
18622: solaris2.[0-5] | solaris2.[0-5].*) ;;
18623: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18624: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18625: esac
18626: link_all_deplibs_F77=yes
18627: ;;
18628:
18629: sunos4*)
18630: if test "x$host_vendor" = xsequent; then
18631: # Use $CC to link under sequent, because it throws in some extra .o
18632: # files that make .init and .fini sections work.
18633: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18634: else
18635: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18636: fi
18637: hardcode_libdir_flag_spec_F77='-L$libdir'
18638: hardcode_direct_F77=yes
18639: hardcode_minus_L_F77=yes
18640: hardcode_shlibpath_var_F77=no
18641: ;;
18642:
18643: sysv4)
18644: case $host_vendor in
18645: sni)
18646: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18647: hardcode_direct_F77=yes # is this really true???
18648: ;;
18649: siemens)
18650: ## LD is ld it makes a PLAMLIB
18651: ## CC just makes a GrossModule.
18652: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18653: reload_cmds_F77='$CC -r -o $output$reload_objs'
18654: hardcode_direct_F77=no
18655: ;;
18656: motorola)
18657: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18658: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18659: ;;
18660: esac
18661: runpath_var='LD_RUN_PATH'
18662: hardcode_shlibpath_var_F77=no
18663: ;;
18664:
18665: sysv4.3*)
18666: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18667: hardcode_shlibpath_var_F77=no
18668: export_dynamic_flag_spec_F77='-Bexport'
18669: ;;
18670:
18671: sysv4*MP*)
18672: if test -d /usr/nec; then
18673: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18674: hardcode_shlibpath_var_F77=no
18675: runpath_var=LD_RUN_PATH
18676: hardcode_runpath_var=yes
18677: ld_shlibs_F77=yes
18678: fi
18679: ;;
18680:
18681: sysv4.2uw2*)
18682: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18683: hardcode_direct_F77=yes
18684: hardcode_minus_L_F77=no
18685: hardcode_shlibpath_var_F77=no
18686: hardcode_runpath_var=yes
18687: runpath_var=LD_RUN_PATH
18688: ;;
18689:
18690: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18691: no_undefined_flag_F77='${wl}-z ${wl}text'
18692: if test "$GCC" = yes; then
18693: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18694: else
18695: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18696: fi
18697: runpath_var='LD_RUN_PATH'
18698: hardcode_shlibpath_var_F77=no
18699: ;;
18700:
18701: sysv5*)
18702: no_undefined_flag_F77=' -z text'
18703: # $CC -shared without GNU ld will not create a library from C++
18704: # object files and a static libstdc++, better avoid it by now
18705: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18706: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18707: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18708: hardcode_libdir_flag_spec_F77=
18709: hardcode_shlibpath_var_F77=no
18710: runpath_var='LD_RUN_PATH'
18711: ;;
18712:
18713: uts4*)
18714: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18715: hardcode_libdir_flag_spec_F77='-L$libdir'
18716: hardcode_shlibpath_var_F77=no
18717: ;;
18718:
18719: *)
18720: ld_shlibs_F77=no
18721: ;;
18722: esac
18723: fi
18724:
18725: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18726: echo "${ECHO_T}$ld_shlibs_F77" >&6
18727: test "$ld_shlibs_F77" = no && can_build_shared=no
18728:
18729: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18730: if test "$GCC" = yes; then
18731: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18732: fi
18733:
18734: #
18735: # Do we need to explicitly link libc?
18736: #
18737: case "x$archive_cmds_need_lc_F77" in
18738: x|xyes)
18739: # Assume -lc should be added
18740: archive_cmds_need_lc_F77=yes
18741:
18742: if test "$enable_shared" = yes && test "$GCC" = yes; then
18743: case $archive_cmds_F77 in
18744: *'~'*)
18745: # FIXME: we may have to deal with multi-command sequences.
18746: ;;
18747: '$CC '*)
18748: # Test whether the compiler implicitly links with -lc since on some
18749: # systems, -lgcc has to come before -lc. If gcc already passes -lc
18750: # to ld, don't add -lc before -lgcc.
18751: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18752: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18753: $rm conftest*
18754: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18755:
18756: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757: (eval $ac_compile) 2>&5
18758: ac_status=$?
18759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760: (exit $ac_status); } 2>conftest.err; then
18761: soname=conftest
18762: lib=conftest
18763: libobjs=conftest.$ac_objext
18764: deplibs=
18765: wl=$lt_prog_compiler_wl_F77
18766: compiler_flags=-v
18767: linker_flags=-v
18768: verstring=
18769: output_objdir=.
18770: libname=conftest
18771: lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18772: allow_undefined_flag_F77=
18773: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18774: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18775: ac_status=$?
18776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777: (exit $ac_status); }
18778: then
18779: archive_cmds_need_lc_F77=no
18780: else
18781: archive_cmds_need_lc_F77=yes
18782: fi
18783: allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18784: else
18785: cat conftest.err 1>&5
18786: fi
18787: $rm conftest*
18788: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18789: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
18790: ;;
18791: esac
18792: fi
18793: ;;
18794: esac
18795:
18796: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18797: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18798: hardcode_action_F77=
18799: if test -n "$hardcode_libdir_flag_spec_F77" || \
18800: test -n "$runpath_var F77" || \
18801: test "X$hardcode_automatic_F77"="Xyes" ; then
18802:
18803: # We can hardcode non-existant directories.
18804: if test "$hardcode_direct_F77" != no &&
18805: # If the only mechanism to avoid hardcoding is shlibpath_var, we
18806: # have to relink, otherwise we might link with an installed library
18807: # when we should be linking with a yet-to-be-installed one
18808: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18809: test "$hardcode_minus_L_F77" != no; then
18810: # Linking always hardcodes the temporary library directory.
18811: hardcode_action_F77=relink
18812: else
18813: # We can link without hardcoding, and we can hardcode nonexisting dirs.
18814: hardcode_action_F77=immediate
18815: fi
18816: else
18817: # We cannot hardcode anything, or else we can only hardcode existing
18818: # directories.
18819: hardcode_action_F77=unsupported
18820: fi
18821: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18822: echo "${ECHO_T}$hardcode_action_F77" >&6
18823:
18824: if test "$hardcode_action_F77" = relink; then
18825: # Fast installation is not supported
18826: enable_fast_install=no
18827: elif test "$shlibpath_overrides_runpath" = yes ||
18828: test "$enable_shared" = no; then
18829: # Fast installation is not necessary
18830: enable_fast_install=needless
18831: fi
18832:
18833: striplib=
18834: old_striplib=
18835: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18836: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18837: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18838: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18839: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18840: echo "$as_me:$LINENO: result: yes" >&5
18841: echo "${ECHO_T}yes" >&6
18842: else
18843: # FIXME - insert some real tests, host_os isn't really good enough
18844: case $host_os in
18845: darwin*)
18846: if test -n "$STRIP" ; then
18847: striplib="$STRIP -x"
18848: echo "$as_me:$LINENO: result: yes" >&5
18849: echo "${ECHO_T}yes" >&6
18850: else
18851: echo "$as_me:$LINENO: result: no" >&5
18852: echo "${ECHO_T}no" >&6
18853: fi
18854: ;;
18855: *)
18856: echo "$as_me:$LINENO: result: no" >&5
18857: echo "${ECHO_T}no" >&6
18858: ;;
18859: esac
18860: fi
18861:
18862: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18863: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18864: library_names_spec=
18865: libname_spec='lib$name'
18866: soname_spec=
18867: shrext=".so"
18868: postinstall_cmds=
18869: postuninstall_cmds=
18870: finish_cmds=
18871: finish_eval=
18872: shlibpath_var=
18873: shlibpath_overrides_runpath=unknown
18874: version_type=none
18875: dynamic_linker="$host_os ld.so"
18876: sys_lib_dlsearch_path_spec="/lib /usr/lib"
18877: if test "$GCC" = yes; then
18878: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18879: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18880: # if the path contains ";" then we assume it to be the separator
18881: # otherwise default to the standard path separator (i.e. ":") - it is
18882: # assumed that no part of a normal pathname contains ";" but that should
18883: # okay in the real world where ";" in dirpaths is itself problematic.
18884: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18885: else
18886: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18887: fi
18888: else
18889: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18890: fi
18891: need_lib_prefix=unknown
18892: hardcode_into_libs=no
18893:
18894: # when you set need_version to no, make sure it does not cause -set_version
18895: # flags to be left without arguments
18896: need_version=unknown
18897:
18898: case $host_os in
18899: aix3*)
18900: version_type=linux
18901: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18902: shlibpath_var=LIBPATH
18903:
18904: # AIX 3 has no versioning support, so we append a major version to the name.
18905: soname_spec='${libname}${release}${shared_ext}$major'
18906: ;;
18907:
18908: aix4* | aix5*)
18909: version_type=linux
18910: need_lib_prefix=no
18911: need_version=no
18912: hardcode_into_libs=yes
18913: if test "$host_cpu" = ia64; then
18914: # AIX 5 supports IA64
18915: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18916: shlibpath_var=LD_LIBRARY_PATH
18917: else
18918: # With GCC up to 2.95.x, collect2 would create an import file
18919: # for dependence libraries. The import file would start with
18920: # the line `#! .'. This would cause the generated library to
18921: # depend on `.', always an invalid library. This was fixed in
18922: # development snapshots of GCC prior to 3.0.
18923: case $host_os in
18924: aix4 | aix4.[01] | aix4.[01].*)
18925: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18926: echo ' yes '
18927: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18928: :
18929: else
18930: can_build_shared=no
18931: fi
18932: ;;
18933: esac
18934: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18935: # soname into executable. Probably we can add versioning support to
18936: # collect2, so additional links can be useful in future.
18937: if test "$aix_use_runtimelinking" = yes; then
18938: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18939: # instead of lib<name>.a to let people know that these are not
18940: # typical AIX shared libraries.
18941: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942: else
18943: # We preserve .a as extension for shared libraries through AIX4.2
18944: # and later when we are not doing run time linking.
18945: library_names_spec='${libname}${release}.a $libname.a'
18946: soname_spec='${libname}${release}${shared_ext}$major'
18947: fi
18948: shlibpath_var=LIBPATH
18949: fi
18950: ;;
18951:
18952: amigaos*)
18953: library_names_spec='$libname.ixlibrary $libname.a'
18954: # Create ${libname}_ixlibrary.a entries in /sys/libs.
18955: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18956: ;;
18957:
18958: beos*)
18959: library_names_spec='${libname}${shared_ext}'
18960: dynamic_linker="$host_os ld.so"
18961: shlibpath_var=LIBRARY_PATH
18962: ;;
18963:
18964: bsdi4*)
18965: version_type=linux
18966: need_version=no
18967: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968: soname_spec='${libname}${release}${shared_ext}$major'
18969: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18970: shlibpath_var=LD_LIBRARY_PATH
18971: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18972: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18973: # the default ld.so.conf also contains /usr/contrib/lib and
18974: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18975: # libtool to hard-code these into programs
18976: ;;
18977:
18978: cygwin* | mingw* | pw32*)
18979: version_type=windows
18980: shrext=".dll"
18981: need_version=no
18982: need_lib_prefix=no
18983:
18984: case $GCC,$host_os in
18985: yes,cygwin* | yes,mingw* | yes,pw32*)
18986: library_names_spec='$libname.dll.a'
18987: # DLL is installed to $(libdir)/../bin by postinstall_cmds
18988: postinstall_cmds='base_file=`basename \${file}`~
18989: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18990: dldir=$destdir/`dirname \$dlpath`~
18991: test -d \$dldir || mkdir -p \$dldir~
18992: $install_prog $dir/$dlname \$dldir/$dlname'
18993: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18994: dlpath=$dir/\$dldll~
18995: $rm \$dlpath'
18996: shlibpath_overrides_runpath=yes
18997:
18998: case $host_os in
18999: cygwin*)
19000: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19001: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19002: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
19003: ;;
19004: mingw*)
19005: # MinGW DLLs use traditional 'lib' prefix
19006: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19007: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19008: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19009: # It is most probably a Windows format PATH printed by
19010: # mingw gcc, but we are running on Cygwin. Gcc prints its search
19011: # path with ; separators, and with drive letters. We can handle the
19012: # drive letters (cygwin fileutils understands them), so leave them,
19013: # especially as we might pass files found there to a mingw objdump,
19014: # which wouldn't understand a cygwinified path. Ahh.
19015: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19016: else
19017: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19018: fi
19019: ;;
19020: pw32*)
19021: # pw32 DLLs use 'pw' prefix rather than 'lib'
19022: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19023: ;;
19024: esac
19025: ;;
19026:
19027: *)
19028: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19029: ;;
19030: esac
19031: dynamic_linker='Win32 ld.exe'
19032: # FIXME: first we should search . and the directory the executable is in
19033: shlibpath_var=PATH
19034: ;;
19035:
19036: darwin* | rhapsody*)
19037: dynamic_linker="$host_os dyld"
19038: version_type=darwin
19039: need_lib_prefix=no
19040: need_version=no
19041: # FIXME: Relying on posixy $() will cause problems for
19042: # cross-compilation, but unfortunately the echo tests do not
19043: # yet detect zsh echo's removal of \ escapes.
19044: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19045: soname_spec='${libname}${release}${major}$shared_ext'
19046: shlibpath_overrides_runpath=yes
19047: shlibpath_var=DYLD_LIBRARY_PATH
19048: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
19049: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19050: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
19051: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19052: fi
19053: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19054: ;;
19055:
19056: dgux*)
19057: version_type=linux
19058: need_lib_prefix=no
19059: need_version=no
19060: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19061: soname_spec='${libname}${release}${shared_ext}$major'
19062: shlibpath_var=LD_LIBRARY_PATH
19063: ;;
19064:
19065: freebsd1*)
19066: dynamic_linker=no
19067: ;;
19068:
19069: freebsd*)
19070: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19071: version_type=freebsd-$objformat
19072: case $version_type in
19073: freebsd-elf*)
19074: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19075: need_version=no
19076: need_lib_prefix=no
19077: ;;
19078: freebsd-*)
19079: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19080: need_version=yes
19081: ;;
19082: esac
19083: shlibpath_var=LD_LIBRARY_PATH
19084: case $host_os in
19085: freebsd2*)
19086: shlibpath_overrides_runpath=yes
19087: ;;
19088: freebsd3.01* | freebsdelf3.01*)
19089: shlibpath_overrides_runpath=yes
19090: hardcode_into_libs=yes
19091: ;;
19092: *) # from 3.2 on
19093: shlibpath_overrides_runpath=no
19094: hardcode_into_libs=yes
19095: ;;
19096: esac
19097: ;;
19098:
19099: gnu*)
19100: version_type=linux
19101: need_lib_prefix=no
19102: need_version=no
19103: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19104: soname_spec='${libname}${release}${shared_ext}$major'
19105: shlibpath_var=LD_LIBRARY_PATH
19106: hardcode_into_libs=yes
19107: ;;
19108:
19109: hpux9* | hpux10* | hpux11*)
19110: # Give a soname corresponding to the major version so that dld.sl refuses to
19111: # link against other versions.
19112: version_type=sunos
19113: need_lib_prefix=no
19114: need_version=no
19115: case "$host_cpu" in
19116: ia64*)
19117: shrext='.so'
19118: hardcode_into_libs=yes
19119: dynamic_linker="$host_os dld.so"
19120: shlibpath_var=LD_LIBRARY_PATH
19121: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19122: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19123: soname_spec='${libname}${release}${shared_ext}$major'
19124: if test "X$HPUX_IA64_MODE" = X32; then
19125: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19126: else
19127: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19128: fi
19129: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19130: ;;
19131: hppa*64*)
19132: shrext='.sl'
19133: hardcode_into_libs=yes
19134: dynamic_linker="$host_os dld.sl"
19135: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19136: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19138: soname_spec='${libname}${release}${shared_ext}$major'
19139: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19140: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19141: ;;
19142: *)
19143: shrext='.sl'
19144: dynamic_linker="$host_os dld.sl"
19145: shlibpath_var=SHLIB_PATH
19146: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19147: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19148: soname_spec='${libname}${release}${shared_ext}$major'
19149: ;;
19150: esac
19151: # HP-UX runs *really* slowly unless shared libraries are mode 555.
19152: postinstall_cmds='chmod 555 $lib'
19153: ;;
19154:
19155: irix5* | irix6* | nonstopux*)
19156: case $host_os in
19157: nonstopux*) version_type=nonstopux ;;
19158: *)
19159: if test "$lt_cv_prog_gnu_ld" = yes; then
19160: version_type=linux
19161: else
19162: version_type=irix
19163: fi ;;
19164: esac
19165: need_lib_prefix=no
19166: need_version=no
19167: soname_spec='${libname}${release}${shared_ext}$major'
19168: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19169: case $host_os in
19170: irix5* | nonstopux*)
19171: libsuff= shlibsuff=
19172: ;;
19173: *)
19174: case $LD in # libtool.m4 will add one of these switches to LD
19175: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19176: libsuff= shlibsuff= libmagic=32-bit;;
19177: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19178: libsuff=32 shlibsuff=N32 libmagic=N32;;
19179: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19180: libsuff=64 shlibsuff=64 libmagic=64-bit;;
19181: *) libsuff= shlibsuff= libmagic=never-match;;
19182: esac
19183: ;;
19184: esac
19185: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19186: shlibpath_overrides_runpath=no
19187: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19188: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19189: hardcode_into_libs=yes
19190: ;;
19191:
19192: # No shared lib support for Linux oldld, aout, or coff.
19193: linux*oldld* | linux*aout* | linux*coff*)
19194: dynamic_linker=no
19195: ;;
19196:
19197: # This must be Linux ELF.
19198: linux*)
19199: version_type=linux
19200: need_lib_prefix=no
19201: need_version=no
19202: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203: soname_spec='${libname}${release}${shared_ext}$major'
19204: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19205: shlibpath_var=LD_LIBRARY_PATH
19206: shlibpath_overrides_runpath=no
19207: # This implies no fast_install, which is unacceptable.
19208: # Some rework will be needed to allow for fast_install
19209: # before this can be enabled.
19210: hardcode_into_libs=yes
19211:
19212: # We used to test for /lib/ld.so.1 and disable shared libraries on
19213: # powerpc, because MkLinux only supported shared libraries with the
19214: # GNU dynamic linker. Since this was broken with cross compilers,
19215: # most powerpc-linux boxes support dynamic linking these days and
19216: # people can always --disable-shared, the test was removed, and we
19217: # assume the GNU/Linux dynamic linker is in use.
19218: dynamic_linker='GNU/Linux ld.so'
19219: ;;
19220:
19221: netbsd*)
19222: version_type=sunos
19223: need_lib_prefix=no
19224: need_version=no
19225: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19226: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19227: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19228: dynamic_linker='NetBSD (a.out) ld.so'
19229: else
19230: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
19231: soname_spec='${libname}${release}${shared_ext}$major'
19232: dynamic_linker='NetBSD ld.elf_so'
19233: fi
19234: shlibpath_var=LD_LIBRARY_PATH
19235: shlibpath_overrides_runpath=yes
19236: hardcode_into_libs=yes
19237: ;;
19238:
19239: newsos6)
19240: version_type=linux
19241: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19242: shlibpath_var=LD_LIBRARY_PATH
19243: shlibpath_overrides_runpath=yes
19244: ;;
19245:
19246: nto-qnx)
19247: version_type=linux
19248: need_lib_prefix=no
19249: need_version=no
19250: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19251: soname_spec='${libname}${release}${shared_ext}$major'
19252: shlibpath_var=LD_LIBRARY_PATH
19253: shlibpath_overrides_runpath=yes
19254: ;;
19255:
19256: openbsd*)
19257: version_type=sunos
19258: need_lib_prefix=no
19259: need_version=no
19260: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19261: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19262: shlibpath_var=LD_LIBRARY_PATH
19263: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19264: case $host_os in
19265: openbsd2.[89] | openbsd2.[89].*)
19266: shlibpath_overrides_runpath=no
19267: ;;
19268: *)
19269: shlibpath_overrides_runpath=yes
19270: ;;
19271: esac
19272: else
19273: shlibpath_overrides_runpath=yes
19274: fi
19275: ;;
19276:
19277: os2*)
19278: libname_spec='$name'
19279: shrext=".dll"
19280: need_lib_prefix=no
19281: library_names_spec='$libname${shared_ext} $libname.a'
19282: dynamic_linker='OS/2 ld.exe'
19283: shlibpath_var=LIBPATH
19284: ;;
19285:
19286: osf3* | osf4* | osf5*)
19287: version_type=osf
19288: need_lib_prefix=no
19289: need_version=no
19290: soname_spec='${libname}${release}${shared_ext}$major'
19291: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19292: shlibpath_var=LD_LIBRARY_PATH
19293: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19294: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19295: ;;
19296:
19297: sco3.2v5*)
19298: version_type=osf
19299: soname_spec='${libname}${release}${shared_ext}$major'
19300: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301: shlibpath_var=LD_LIBRARY_PATH
19302: ;;
19303:
19304: solaris*)
19305: version_type=linux
19306: need_lib_prefix=no
19307: need_version=no
19308: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309: soname_spec='${libname}${release}${shared_ext}$major'
19310: shlibpath_var=LD_LIBRARY_PATH
19311: shlibpath_overrides_runpath=yes
19312: hardcode_into_libs=yes
19313: # ldd complains unless libraries are executable
19314: postinstall_cmds='chmod +x $lib'
19315: ;;
19316:
19317: sunos4*)
19318: version_type=sunos
19319: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19320: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19321: shlibpath_var=LD_LIBRARY_PATH
19322: shlibpath_overrides_runpath=yes
19323: if test "$with_gnu_ld" = yes; then
19324: need_lib_prefix=no
19325: fi
19326: need_version=yes
19327: ;;
19328:
19329: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19330: version_type=linux
19331: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19332: soname_spec='${libname}${release}${shared_ext}$major'
19333: shlibpath_var=LD_LIBRARY_PATH
19334: case $host_vendor in
19335: sni)
19336: shlibpath_overrides_runpath=no
19337: need_lib_prefix=no
19338: export_dynamic_flag_spec='${wl}-Blargedynsym'
19339: runpath_var=LD_RUN_PATH
19340: ;;
19341: siemens)
19342: need_lib_prefix=no
19343: ;;
19344: motorola)
19345: need_lib_prefix=no
19346: need_version=no
19347: shlibpath_overrides_runpath=no
19348: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19349: ;;
19350: esac
19351: ;;
19352:
19353: sysv4*MP*)
19354: if test -d /usr/nec ;then
19355: version_type=linux
19356: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19357: soname_spec='$libname${shared_ext}.$major'
19358: shlibpath_var=LD_LIBRARY_PATH
19359: fi
19360: ;;
19361:
19362: uts4*)
19363: version_type=linux
19364: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19365: soname_spec='${libname}${release}${shared_ext}$major'
19366: shlibpath_var=LD_LIBRARY_PATH
19367: ;;
19368:
19369: *)
19370: dynamic_linker=no
19371: ;;
19372: esac
19373: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19374: echo "${ECHO_T}$dynamic_linker" >&6
19375: test "$dynamic_linker" = no && can_build_shared=no
19376:
19377:
19378: # The else clause should only fire when bootstrapping the
19379: # libtool distribution, otherwise you forgot to ship ltmain.sh
19380: # with your package, and you will get complaints that there are
19381: # no rules to generate ltmain.sh.
19382: if test -f "$ltmain"; then
19383: # See if we are running on zsh, and set the options which allow our commands through
19384: # without removal of \ escapes.
19385: if test -n "${ZSH_VERSION+set}" ; then
19386: setopt NO_GLOB_SUBST
19387: fi
19388: # Now quote all the things that may contain metacharacters while being
19389: # careful not to overquote the AC_SUBSTed values. We take copies of the
19390: # variables and quote the copies for generation of the libtool script.
19391: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19392: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19393: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19394: deplibs_check_method reload_flag reload_cmds need_locks \
19395: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19396: lt_cv_sys_global_symbol_to_c_name_address \
19397: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19398: old_postinstall_cmds old_postuninstall_cmds \
19399: compiler_F77 \
19400: CC_F77 \
19401: LD_F77 \
19402: lt_prog_compiler_wl_F77 \
19403: lt_prog_compiler_pic_F77 \
19404: lt_prog_compiler_static_F77 \
19405: lt_prog_compiler_no_builtin_flag_F77 \
19406: export_dynamic_flag_spec_F77 \
19407: thread_safe_flag_spec_F77 \
19408: whole_archive_flag_spec_F77 \
19409: enable_shared_with_static_runtimes_F77 \
19410: old_archive_cmds_F77 \
19411: old_archive_from_new_cmds_F77 \
19412: predep_objects_F77 \
19413: postdep_objects_F77 \
19414: predeps_F77 \
19415: postdeps_F77 \
19416: compiler_lib_search_path_F77 \
19417: archive_cmds_F77 \
19418: archive_expsym_cmds_F77 \
19419: postinstall_cmds_F77 \
19420: postuninstall_cmds_F77 \
19421: old_archive_from_expsyms_cmds_F77 \
19422: allow_undefined_flag_F77 \
19423: no_undefined_flag_F77 \
19424: export_symbols_cmds_F77 \
19425: hardcode_libdir_flag_spec_F77 \
19426: hardcode_libdir_flag_spec_ld_F77 \
19427: hardcode_libdir_separator_F77 \
19428: hardcode_automatic_F77 \
19429: module_cmds_F77 \
19430: module_expsym_cmds_F77 \
19431: lt_cv_prog_compiler_c_o_F77 \
19432: exclude_expsyms_F77 \
19433: include_expsyms_F77; do
19434:
19435: case $var in
19436: old_archive_cmds_F77 | \
19437: old_archive_from_new_cmds_F77 | \
19438: archive_cmds_F77 | \
19439: archive_expsym_cmds_F77 | \
19440: module_cmds_F77 | \
19441: module_expsym_cmds_F77 | \
19442: old_archive_from_expsyms_cmds_F77 | \
19443: export_symbols_cmds_F77 | \
19444: extract_expsyms_cmds | reload_cmds | finish_cmds | \
19445: postinstall_cmds | postuninstall_cmds | \
19446: old_postinstall_cmds | old_postuninstall_cmds | \
19447: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19448: # Double-quote double-evaled strings.
19449: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19450: ;;
19451: *)
19452: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19453: ;;
19454: esac
19455: done
19456:
19457: case $lt_echo in
19458: *'\$0 --fallback-echo"')
19459: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19460: ;;
19461: esac
19462:
19463: cfgfile="$ofile"
19464:
19465: cat <<__EOF__ >> "$cfgfile"
19466: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19467:
19468: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19469:
19470: # Shell to use when invoking shell scripts.
19471: SHELL=$lt_SHELL
19472:
19473: # Whether or not to build shared libraries.
19474: build_libtool_libs=$enable_shared
19475:
19476: # Whether or not to build static libraries.
19477: build_old_libs=$enable_static
19478:
19479: # Whether or not to add -lc for building shared libraries.
19480: build_libtool_need_lc=$archive_cmds_need_lc_F77
19481:
19482: # Whether or not to disallow shared libs when runtime libs are static
19483: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19484:
19485: # Whether or not to optimize for fast installation.
19486: fast_install=$enable_fast_install
19487:
19488: # The host system.
19489: host_alias=$host_alias
19490: host=$host
19491:
19492: # An echo program that does not interpret backslashes.
19493: echo=$lt_echo
19494:
19495: # The archiver.
19496: AR=$lt_AR
19497: AR_FLAGS=$lt_AR_FLAGS
19498:
19499: # A C compiler.
19500: LTCC=$lt_LTCC
19501:
19502: # A language-specific compiler.
19503: CC=$lt_compiler_F77
19504:
19505: # Is the compiler the GNU C compiler?
19506: with_gcc=$GCC_F77
19507:
19508: # An ERE matcher.
19509: EGREP=$lt_EGREP
19510:
19511: # The linker used to build libraries.
19512: LD=$lt_LD_F77
19513:
19514: # Whether we need hard or soft links.
19515: LN_S=$lt_LN_S
19516:
19517: # A BSD-compatible nm program.
19518: NM=$lt_NM
19519:
19520: # A symbol stripping program
19521: STRIP=$STRIP
19522:
19523: # Used to examine libraries when file_magic_cmd begins "file"
19524: MAGIC_CMD=$MAGIC_CMD
19525:
19526: # Used on cygwin: DLL creation program.
19527: DLLTOOL="$DLLTOOL"
19528:
19529: # Used on cygwin: object dumper.
19530: OBJDUMP="$OBJDUMP"
19531:
19532: # Used on cygwin: assembler.
19533: AS="$AS"
19534:
19535: # The name of the directory that contains temporary libtool files.
19536: objdir=$objdir
19537:
19538: # How to create reloadable object files.
19539: reload_flag=$lt_reload_flag
19540: reload_cmds=$lt_reload_cmds
19541:
19542: # How to pass a linker flag through the compiler.
19543: wl=$lt_lt_prog_compiler_wl_F77
19544:
19545: # Object file suffix (normally "o").
19546: objext="$ac_objext"
19547:
19548: # Old archive suffix (normally "a").
19549: libext="$libext"
19550:
19551: # Shared library suffix (normally ".so").
19552: shrext='$shrext'
19553:
19554: # Executable file suffix (normally "").
19555: exeext="$exeext"
19556:
19557: # Additional compiler flags for building library objects.
19558: pic_flag=$lt_lt_prog_compiler_pic_F77
19559: pic_mode=$pic_mode
19560:
19561: # What is the maximum length of a command?
19562: max_cmd_len=$lt_cv_sys_max_cmd_len
19563:
19564: # Does compiler simultaneously support -c and -o options?
19565: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19566:
19567: # Must we lock files when doing compilation ?
19568: need_locks=$lt_need_locks
19569:
19570: # Do we need the lib prefix for modules?
19571: need_lib_prefix=$need_lib_prefix
19572:
19573: # Do we need a version for libraries?
19574: need_version=$need_version
19575:
19576: # Whether dlopen is supported.
19577: dlopen_support=$enable_dlopen
19578:
19579: # Whether dlopen of programs is supported.
19580: dlopen_self=$enable_dlopen_self
19581:
19582: # Whether dlopen of statically linked programs is supported.
19583: dlopen_self_static=$enable_dlopen_self_static
19584:
19585: # Compiler flag to prevent dynamic linking.
19586: link_static_flag=$lt_lt_prog_compiler_static_F77
19587:
19588: # Compiler flag to turn off builtin functions.
19589: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19590:
19591: # Compiler flag to allow reflexive dlopens.
19592: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19593:
19594: # Compiler flag to generate shared objects directly from archives.
19595: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19596:
19597: # Compiler flag to generate thread-safe objects.
19598: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19599:
19600: # Library versioning type.
19601: version_type=$version_type
19602:
19603: # Format of library name prefix.
19604: libname_spec=$lt_libname_spec
19605:
19606: # List of archive names. First name is the real one, the rest are links.
19607: # The last name is the one that the linker finds with -lNAME.
19608: library_names_spec=$lt_library_names_spec
19609:
19610: # The coded name of the library, if different from the real name.
19611: soname_spec=$lt_soname_spec
19612:
19613: # Commands used to build and install an old-style archive.
19614: RANLIB=$lt_RANLIB
19615: old_archive_cmds=$lt_old_archive_cmds_F77
19616: old_postinstall_cmds=$lt_old_postinstall_cmds
19617: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19618:
19619: # Create an old-style archive from a shared archive.
19620: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19621:
19622: # Create a temporary old-style archive to link instead of a shared archive.
19623: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19624:
19625: # Commands used to build and install a shared archive.
19626: archive_cmds=$lt_archive_cmds_F77
19627: archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19628: postinstall_cmds=$lt_postinstall_cmds
19629: postuninstall_cmds=$lt_postuninstall_cmds
19630:
19631: # Commands used to build a loadable module (assumed same as above if empty)
19632: module_cmds=$lt_module_cmds_F77
19633: module_expsym_cmds=$lt_module_expsym_cmds_F77
19634:
19635: # Commands to strip libraries.
19636: old_striplib=$lt_old_striplib
19637: striplib=$lt_striplib
19638:
19639: # Dependencies to place before the objects being linked to create a
19640: # shared library.
19641: predep_objects=$lt_predep_objects_F77
19642:
19643: # Dependencies to place after the objects being linked to create a
19644: # shared library.
19645: postdep_objects=$lt_postdep_objects_F77
19646:
19647: # Dependencies to place before the objects being linked to create a
19648: # shared library.
19649: predeps=$lt_predeps_F77
19650:
19651: # Dependencies to place after the objects being linked to create a
19652: # shared library.
19653: postdeps=$lt_postdeps_F77
19654:
19655: # The library search path used internally by the compiler when linking
19656: # a shared library.
19657: compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19658:
19659: # Method to check whether dependent libraries are shared objects.
19660: deplibs_check_method=$lt_deplibs_check_method
19661:
19662: # Command to use when deplibs_check_method == file_magic.
19663: file_magic_cmd=$lt_file_magic_cmd
19664:
19665: # Flag that allows shared libraries with undefined symbols to be built.
19666: allow_undefined_flag=$lt_allow_undefined_flag_F77
19667:
19668: # Flag that forces no undefined symbols.
19669: no_undefined_flag=$lt_no_undefined_flag_F77
19670:
19671: # Commands used to finish a libtool library installation in a directory.
19672: finish_cmds=$lt_finish_cmds
19673:
19674: # Same as above, but a single script fragment to be evaled but not shown.
19675: finish_eval=$lt_finish_eval
19676:
19677: # Take the output of nm and produce a listing of raw symbols and C names.
19678: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19679:
19680: # Transform the output of nm in a proper C declaration
19681: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19682:
19683: # Transform the output of nm in a C name address pair
19684: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19685:
19686: # This is the shared library runtime path variable.
19687: runpath_var=$runpath_var
19688:
19689: # This is the shared library path variable.
19690: shlibpath_var=$shlibpath_var
19691:
19692: # Is shlibpath searched before the hard-coded library search path?
19693: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19694:
19695: # How to hardcode a shared library path into an executable.
19696: hardcode_action=$hardcode_action_F77
19697:
19698: # Whether we should hardcode library paths into libraries.
19699: hardcode_into_libs=$hardcode_into_libs
19700:
19701: # Flag to hardcode \$libdir into a binary during linking.
19702: # This must work even if \$libdir does not exist.
19703: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19704:
19705: # If ld is used when linking, flag to hardcode \$libdir into
19706: # a binary during linking. This must work even if \$libdir does
19707: # not exist.
19708: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19709:
19710: # Whether we need a single -rpath flag with a separated argument.
19711: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19712:
19713: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19714: # resulting binary.
19715: hardcode_direct=$hardcode_direct_F77
19716:
19717: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19718: # resulting binary.
19719: hardcode_minus_L=$hardcode_minus_L_F77
19720:
19721: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19722: # the resulting binary.
19723: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19724:
19725: # Set to yes if building a shared library automatically hardcodes DIR into the library
19726: # and all subsequent libraries and executables linked against it.
19727: hardcode_automatic=$hardcode_automatic_F77
19728:
19729: # Variables whose values should be saved in libtool wrapper scripts and
19730: # restored at relink time.
19731: variables_saved_for_relink="$variables_saved_for_relink"
19732:
19733: # Whether libtool must link a program against all its dependency libraries.
19734: link_all_deplibs=$link_all_deplibs_F77
19735:
19736: # Compile-time system search path for libraries
19737: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19738:
19739: # Run-time system search path for libraries
19740: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19741:
19742: # Fix the shell variable \$srcfile for the compiler.
19743: fix_srcfile_path="$fix_srcfile_path_F77"
19744:
19745: # Set to yes if exported symbols are required.
19746: always_export_symbols=$always_export_symbols_F77
19747:
19748: # The commands to list exported symbols.
19749: export_symbols_cmds=$lt_export_symbols_cmds_F77
19750:
19751: # The commands to extract the exported symbol list from a shared archive.
19752: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19753:
19754: # Symbols that should not be listed in the preloaded symbols.
19755: exclude_expsyms=$lt_exclude_expsyms_F77
19756:
19757: # Symbols that must always be exported.
19758: include_expsyms=$lt_include_expsyms_F77
19759:
19760: # ### END LIBTOOL TAG CONFIG: $tagname
19761:
19762: __EOF__
19763:
19764:
19765: else
19766: # If there is no Makefile yet, we rely on a make rule to execute
19767: # `config.status --recheck' to rerun these tests and create the
19768: # libtool script then.
19769: test -f Makefile && make "$ltmain"
19770: fi
19771:
19772:
19773: ac_ext=c
19774: ac_cpp='$CPP $CPPFLAGS'
19775: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19778:
19779: CC="$lt_save_CC"
19780:
19781: else
19782: tagname=""
19783: fi
19784: ;;
19785:
19786: GCJ)
19787: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19788:
19789:
19790:
19791: # Source file extension for Java test sources.
19792: ac_ext=java
19793:
19794: # Object file extension for compiled Java test sources.
19795: objext=o
19796: objext_GCJ=$objext
19797:
19798: # Code to be used in simple compile tests
19799: lt_simple_compile_test_code="class foo {}\n"
19800:
19801: # Code to be used in simple link tests
19802: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
19803:
19804: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19805:
19806: # If no C compiler was specified, use CC.
19807: LTCC=${LTCC-"$CC"}
19808:
19809: # Allow CC to be a program name with arguments.
19810: compiler=$CC
19811:
19812:
19813: # Allow CC to be a program name with arguments.
19814: lt_save_CC="$CC"
19815: CC=${GCJ-"gcj"}
19816: compiler=$CC
19817: compiler_GCJ=$CC
19818:
19819: # GCJ did not exist at the time GCC didn't implicitly link libc in.
19820: archive_cmds_need_lc_GCJ=no
19821:
19822:
19823: lt_prog_compiler_no_builtin_flag_GCJ=
19824:
19825: if test "$GCC" = yes; then
19826: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19827:
19828: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19829: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
19830: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19831: echo $ECHO_N "(cached) $ECHO_C" >&6
19832: else
19833: lt_cv_prog_compiler_rtti_exceptions=no
19834: ac_outfile=conftest.$ac_objext
19835: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19836: lt_compiler_flag="-fno-rtti -fno-exceptions"
19837: # Insert the option either (1) after the last *FLAGS variable, or
19838: # (2) before a word containing "conftest.", or (3) at the end.
19839: # Note that $ac_compile itself does not contain backslashes and begins
19840: # with a dollar sign (not a hyphen), so the echo should work correctly.
19841: # The option is referenced via a variable to avoid confusing sed.
19842: lt_compile=`echo "$ac_compile" | $SED \
19843: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19844: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19845: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 19846: (eval echo "\"\$as_me:19846: $lt_compile\"" >&5)
1.1 root 19847: (eval "$lt_compile" 2>conftest.err)
19848: ac_status=$?
19849: cat conftest.err >&5
1.1.1.2 ! root 19850: echo "$as_me:19850: \$? = $ac_status" >&5
1.1 root 19851: if (exit $ac_status) && test -s "$ac_outfile"; then
19852: # The compiler can only warn and ignore the option if not recognized
19853: # So say no if there are warnings
19854: if test ! -s conftest.err; then
19855: lt_cv_prog_compiler_rtti_exceptions=yes
19856: fi
19857: fi
19858: $rm conftest*
19859:
19860: fi
19861: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19862: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
19863:
19864: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19865: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19866: else
19867: :
19868: fi
19869:
19870: fi
19871:
19872: lt_prog_compiler_wl_GCJ=
19873: lt_prog_compiler_pic_GCJ=
19874: lt_prog_compiler_static_GCJ=
19875:
19876: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19877: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19878:
19879: if test "$GCC" = yes; then
19880: lt_prog_compiler_wl_GCJ='-Wl,'
19881: lt_prog_compiler_static_GCJ='-static'
19882:
19883: case $host_os in
19884: aix*)
19885: # All AIX code is PIC.
19886: if test "$host_cpu" = ia64; then
19887: # AIX 5 now supports IA64 processor
19888: lt_prog_compiler_static_GCJ='-Bstatic'
19889: fi
19890: ;;
19891:
19892: amigaos*)
19893: # FIXME: we need at least 68020 code to build shared libraries, but
19894: # adding the `-m68020' flag to GCC prevents building anything better,
19895: # like `-m68040'.
19896: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19897: ;;
19898:
19899: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19900: # PIC is the default for these OSes.
19901: ;;
19902:
19903: mingw* | pw32* | os2*)
19904: # This hack is so that the source file can tell whether it is being
19905: # built for inclusion in a dll (and should export symbols for example).
19906: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19907: ;;
19908:
19909: darwin* | rhapsody*)
19910: # PIC is the default on this platform
19911: # Common symbols not allowed in MH_DYLIB files
19912: lt_prog_compiler_pic_GCJ='-fno-common'
19913: ;;
19914:
19915: msdosdjgpp*)
19916: # Just because we use GCC doesn't mean we suddenly get shared libraries
19917: # on systems that don't support them.
19918: lt_prog_compiler_can_build_shared_GCJ=no
19919: enable_shared=no
19920: ;;
19921:
19922: sysv4*MP*)
19923: if test -d /usr/nec; then
19924: lt_prog_compiler_pic_GCJ=-Kconform_pic
19925: fi
19926: ;;
19927:
19928: hpux*)
19929: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19930: # not for PA HP-UX.
19931: case "$host_cpu" in
19932: hppa*64*|ia64*)
19933: # +Z the default
19934: ;;
19935: *)
19936: lt_prog_compiler_pic_GCJ='-fPIC'
19937: ;;
19938: esac
19939: ;;
19940:
19941: *)
19942: lt_prog_compiler_pic_GCJ='-fPIC'
19943: ;;
19944: esac
19945: else
19946: # PORTME Check for flag to pass linker flags through the system compiler.
19947: case $host_os in
19948: aix*)
19949: lt_prog_compiler_wl_GCJ='-Wl,'
19950: if test "$host_cpu" = ia64; then
19951: # AIX 5 now supports IA64 processor
19952: lt_prog_compiler_static_GCJ='-Bstatic'
19953: else
19954: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19955: fi
19956: ;;
19957:
19958: mingw* | pw32* | os2*)
19959: # This hack is so that the source file can tell whether it is being
19960: # built for inclusion in a dll (and should export symbols for example).
19961: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19962: ;;
19963:
19964: hpux9* | hpux10* | hpux11*)
19965: lt_prog_compiler_wl_GCJ='-Wl,'
19966: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19967: # not for PA HP-UX.
19968: case "$host_cpu" in
19969: hppa*64*|ia64*)
19970: # +Z the default
19971: ;;
19972: *)
19973: lt_prog_compiler_pic_GCJ='+Z'
19974: ;;
19975: esac
19976: # Is there a better lt_prog_compiler_static that works with the bundled CC?
19977: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19978: ;;
19979:
19980: irix5* | irix6* | nonstopux*)
19981: lt_prog_compiler_wl_GCJ='-Wl,'
19982: # PIC (with -KPIC) is the default.
19983: lt_prog_compiler_static_GCJ='-non_shared'
19984: ;;
19985:
19986: newsos6)
19987: lt_prog_compiler_pic_GCJ='-KPIC'
19988: lt_prog_compiler_static_GCJ='-Bstatic'
19989: ;;
19990:
19991: linux*)
19992: case $CC in
19993: icc|ecc)
19994: lt_prog_compiler_wl_GCJ='-Wl,'
19995: lt_prog_compiler_pic_GCJ='-KPIC'
19996: lt_prog_compiler_static_GCJ='-static'
19997: ;;
19998: ccc)
19999: lt_prog_compiler_wl_GCJ='-Wl,'
20000: # All Alpha code is PIC.
20001: lt_prog_compiler_static_GCJ='-non_shared'
20002: ;;
20003: esac
20004: ;;
20005:
20006: osf3* | osf4* | osf5*)
20007: lt_prog_compiler_wl_GCJ='-Wl,'
20008: # All OSF/1 code is PIC.
20009: lt_prog_compiler_static_GCJ='-non_shared'
20010: ;;
20011:
20012: sco3.2v5*)
20013: lt_prog_compiler_pic_GCJ='-Kpic'
20014: lt_prog_compiler_static_GCJ='-dn'
20015: ;;
20016:
20017: solaris*)
20018: lt_prog_compiler_wl_GCJ='-Wl,'
20019: lt_prog_compiler_pic_GCJ='-KPIC'
20020: lt_prog_compiler_static_GCJ='-Bstatic'
20021: ;;
20022:
20023: sunos4*)
20024: lt_prog_compiler_wl_GCJ='-Qoption ld '
20025: lt_prog_compiler_pic_GCJ='-PIC'
20026: lt_prog_compiler_static_GCJ='-Bstatic'
20027: ;;
20028:
20029: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20030: lt_prog_compiler_wl_GCJ='-Wl,'
20031: lt_prog_compiler_pic_GCJ='-KPIC'
20032: lt_prog_compiler_static_GCJ='-Bstatic'
20033: ;;
20034:
20035: sysv4*MP*)
20036: if test -d /usr/nec ;then
20037: lt_prog_compiler_pic_GCJ='-Kconform_pic'
20038: lt_prog_compiler_static_GCJ='-Bstatic'
20039: fi
20040: ;;
20041:
20042: uts4*)
20043: lt_prog_compiler_pic_GCJ='-pic'
20044: lt_prog_compiler_static_GCJ='-Bstatic'
20045: ;;
20046:
20047: *)
20048: lt_prog_compiler_can_build_shared_GCJ=no
20049: ;;
20050: esac
20051: fi
20052:
20053: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20054: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
20055:
20056: #
20057: # Check to make sure the PIC flag actually works.
20058: #
20059: if test -n "$lt_prog_compiler_pic_GCJ"; then
20060: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20061: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
20062: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
20063: echo $ECHO_N "(cached) $ECHO_C" >&6
20064: else
20065: lt_prog_compiler_pic_works_GCJ=no
20066: ac_outfile=conftest.$ac_objext
20067: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20068: lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
20069: # Insert the option either (1) after the last *FLAGS variable, or
20070: # (2) before a word containing "conftest.", or (3) at the end.
20071: # Note that $ac_compile itself does not contain backslashes and begins
20072: # with a dollar sign (not a hyphen), so the echo should work correctly.
20073: # The option is referenced via a variable to avoid confusing sed.
20074: lt_compile=`echo "$ac_compile" | $SED \
20075: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20076: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20077: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 20078: (eval echo "\"\$as_me:20078: $lt_compile\"" >&5)
1.1 root 20079: (eval "$lt_compile" 2>conftest.err)
20080: ac_status=$?
20081: cat conftest.err >&5
1.1.1.2 ! root 20082: echo "$as_me:20082: \$? = $ac_status" >&5
1.1 root 20083: if (exit $ac_status) && test -s "$ac_outfile"; then
20084: # The compiler can only warn and ignore the option if not recognized
20085: # So say no if there are warnings
20086: if test ! -s conftest.err; then
20087: lt_prog_compiler_pic_works_GCJ=yes
20088: fi
20089: fi
20090: $rm conftest*
20091:
20092: fi
20093: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
20094: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
20095:
20096: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
20097: case $lt_prog_compiler_pic_GCJ in
20098: "" | " "*) ;;
20099: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20100: esac
20101: else
20102: lt_prog_compiler_pic_GCJ=
20103: lt_prog_compiler_can_build_shared_GCJ=no
20104: fi
20105:
20106: fi
20107: case "$host_os" in
20108: # For platforms which do not support PIC, -DPIC is meaningless:
20109: *djgpp*)
20110: lt_prog_compiler_pic_GCJ=
20111: ;;
20112: *)
20113: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20114: ;;
20115: esac
20116:
20117: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20118: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20119: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20120: echo $ECHO_N "(cached) $ECHO_C" >&6
20121: else
20122: lt_cv_prog_compiler_c_o_GCJ=no
20123: $rm -r conftest 2>/dev/null
20124: mkdir conftest
20125: cd conftest
20126: mkdir out
20127: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20128:
20129: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
20130: # that will create temporary files in the current directory regardless of
20131: # the output directory. Thus, making CWD read-only will cause this test
20132: # to fail, enabling locking or at least warning the user not to do parallel
20133: # builds.
20134: chmod -w .
20135:
20136: lt_compiler_flag="-o out/conftest2.$ac_objext"
20137: # Insert the option either (1) after the last *FLAGS variable, or
20138: # (2) before a word containing "conftest.", or (3) at the end.
20139: # Note that $ac_compile itself does not contain backslashes and begins
20140: # with a dollar sign (not a hyphen), so the echo should work correctly.
20141: lt_compile=`echo "$ac_compile" | $SED \
20142: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20143: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20144: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 20145: (eval echo "\"\$as_me:20145: $lt_compile\"" >&5)
1.1 root 20146: (eval "$lt_compile" 2>out/conftest.err)
20147: ac_status=$?
20148: cat out/conftest.err >&5
1.1.1.2 ! root 20149: echo "$as_me:20149: \$? = $ac_status" >&5
1.1 root 20150: if (exit $ac_status) && test -s out/conftest2.$ac_objext
20151: then
20152: # The compiler can only warn and ignore the option if not recognized
20153: # So say no if there are warnings
20154: if test ! -s out/conftest.err; then
20155: lt_cv_prog_compiler_c_o_GCJ=yes
20156: fi
20157: fi
20158: chmod u+w .
20159: $rm conftest* out/*
20160: rmdir out
20161: cd ..
20162: rmdir conftest
20163: $rm conftest*
20164:
20165: fi
20166: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20167: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
20168:
20169:
20170: hard_links="nottested"
20171: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20172: # do not overwrite the value of need_locks provided by the user
20173: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20174: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20175: hard_links=yes
20176: $rm conftest*
20177: ln conftest.a conftest.b 2>/dev/null && hard_links=no
20178: touch conftest.a
20179: ln conftest.a conftest.b 2>&5 || hard_links=no
20180: ln conftest.a conftest.b 2>/dev/null && hard_links=no
20181: echo "$as_me:$LINENO: result: $hard_links" >&5
20182: echo "${ECHO_T}$hard_links" >&6
20183: if test "$hard_links" = no; then
20184: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20185: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20186: need_locks=warn
20187: fi
20188: else
20189: need_locks=no
20190: fi
20191:
20192: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20193: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20194:
20195: runpath_var=
20196: allow_undefined_flag_GCJ=
20197: enable_shared_with_static_runtimes_GCJ=no
20198: archive_cmds_GCJ=
20199: archive_expsym_cmds_GCJ=
20200: old_archive_From_new_cmds_GCJ=
20201: old_archive_from_expsyms_cmds_GCJ=
20202: export_dynamic_flag_spec_GCJ=
20203: whole_archive_flag_spec_GCJ=
20204: thread_safe_flag_spec_GCJ=
20205: hardcode_libdir_flag_spec_GCJ=
20206: hardcode_libdir_flag_spec_ld_GCJ=
20207: hardcode_libdir_separator_GCJ=
20208: hardcode_direct_GCJ=no
20209: hardcode_minus_L_GCJ=no
20210: hardcode_shlibpath_var_GCJ=unsupported
20211: link_all_deplibs_GCJ=unknown
20212: hardcode_automatic_GCJ=no
20213: module_cmds_GCJ=
20214: module_expsym_cmds_GCJ=
20215: always_export_symbols_GCJ=no
20216: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20217: # include_expsyms should be a list of space-separated symbols to be *always*
20218: # included in the symbol list
20219: include_expsyms_GCJ=
20220: # exclude_expsyms can be an extended regexp of symbols to exclude
20221: # it will be wrapped by ` (' and `)$', so one must not match beginning or
20222: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20223: # as well as any symbol that contains `d'.
20224: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
20225: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20226: # platforms (ab)use it in PIC code, but their linkers get confused if
20227: # the symbol is explicitly referenced. Since portable code cannot
20228: # rely on this symbol name, it's probably fine to never include it in
20229: # preloaded symbol tables.
20230: extract_expsyms_cmds=
20231:
20232: case $host_os in
20233: cygwin* | mingw* | pw32*)
20234: # FIXME: the MSVC++ port hasn't been tested in a loooong time
20235: # When not using gcc, we currently assume that we are using
20236: # Microsoft Visual C++.
20237: if test "$GCC" != yes; then
20238: with_gnu_ld=no
20239: fi
20240: ;;
20241: openbsd*)
20242: with_gnu_ld=no
20243: ;;
20244: esac
20245:
20246: ld_shlibs_GCJ=yes
20247: if test "$with_gnu_ld" = yes; then
20248: # If archive_cmds runs LD, not CC, wlarc should be empty
20249: wlarc='${wl}'
20250:
20251: # See if GNU ld supports shared libraries.
20252: case $host_os in
20253: aix3* | aix4* | aix5*)
20254: # On AIX/PPC, the GNU linker is very broken
20255: if test "$host_cpu" != ia64; then
20256: ld_shlibs_GCJ=no
20257: cat <<EOF 1>&2
20258:
20259: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20260: *** to be unable to reliably create shared libraries on AIX.
20261: *** Therefore, libtool is disabling shared libraries support. If you
20262: *** really care for shared libraries, you may want to modify your PATH
20263: *** so that a non-GNU linker is found, and then restart.
20264:
20265: EOF
20266: fi
20267: ;;
20268:
20269: amigaos*)
20270: archive_cmds_GCJ='$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)'
20271: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20272: hardcode_minus_L_GCJ=yes
20273:
20274: # Samuel A. Falvo II <[email protected]> reports
20275: # that the semantics of dynamic libraries on AmigaOS, at least up
20276: # to version 4, is to share data among multiple programs linked
20277: # with the same dynamic library. Since this doesn't match the
20278: # behavior of shared libraries on other platforms, we can't use
20279: # them.
20280: ld_shlibs_GCJ=no
20281: ;;
20282:
20283: beos*)
20284: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20285: allow_undefined_flag_GCJ=unsupported
20286: # Joseph Beckenbach <[email protected]> says some releases of gcc
20287: # support --undefined. This deserves some investigation. FIXME
20288: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20289: else
20290: ld_shlibs_GCJ=no
20291: fi
20292: ;;
20293:
20294: cygwin* | mingw* | pw32*)
20295: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20296: # as there is no search path for DLLs.
20297: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20298: allow_undefined_flag_GCJ=unsupported
20299: always_export_symbols_GCJ=no
20300: enable_shared_with_static_runtimes_GCJ=yes
20301: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20302:
20303: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20304: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20305: # If the export-symbols file already is a .def file (1st line
20306: # is EXPORTS), use it as is; otherwise, prepend...
20307: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20308: cp $export_symbols $output_objdir/$soname.def;
20309: else
20310: echo EXPORTS > $output_objdir/$soname.def;
20311: cat $export_symbols >> $output_objdir/$soname.def;
20312: fi~
20313: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20314: else
20315: ld_shlibs=no
20316: fi
20317: ;;
20318:
20319: netbsd*)
20320: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20321: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20322: wlarc=
20323: else
20324: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20325: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20326: fi
20327: ;;
20328:
20329: solaris* | sysv5*)
20330: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20331: ld_shlibs_GCJ=no
20332: cat <<EOF 1>&2
20333:
20334: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20335: *** create shared libraries on Solaris systems. Therefore, libtool
20336: *** is disabling shared libraries support. We urge you to upgrade GNU
20337: *** binutils to release 2.9.1 or newer. Another option is to modify
20338: *** your PATH or compiler configuration so that the native linker is
20339: *** used, and then restart.
20340:
20341: EOF
20342: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20343: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20344: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20345: else
20346: ld_shlibs_GCJ=no
20347: fi
20348: ;;
20349:
20350: sunos4*)
20351: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20352: wlarc=
20353: hardcode_direct_GCJ=yes
20354: hardcode_shlibpath_var_GCJ=no
20355: ;;
20356:
20357: *)
20358: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20359: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20360: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20361: else
20362: ld_shlibs_GCJ=no
20363: fi
20364: ;;
20365: esac
20366:
20367: if test "$ld_shlibs_GCJ" = yes; then
20368: runpath_var=LD_RUN_PATH
20369: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20370: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20371: # ancient GNU ld didn't support --whole-archive et. al.
20372: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20373: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20374: else
20375: whole_archive_flag_spec_GCJ=
20376: fi
20377: fi
20378: else
20379: # PORTME fill in a description of your system's linker (not GNU ld)
20380: case $host_os in
20381: aix3*)
20382: allow_undefined_flag_GCJ=unsupported
20383: always_export_symbols_GCJ=yes
20384: archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20385: # Note: this linker hardcodes the directories in LIBPATH if there
20386: # are no directories specified by -L.
20387: hardcode_minus_L_GCJ=yes
20388: if test "$GCC" = yes && test -z "$link_static_flag"; then
20389: # Neither direct hardcoding nor static linking is supported with a
20390: # broken collect2.
20391: hardcode_direct_GCJ=unsupported
20392: fi
20393: ;;
20394:
20395: aix4* | aix5*)
20396: if test "$host_cpu" = ia64; then
20397: # On IA64, the linker does run time linking by default, so we don't
20398: # have to do anything special.
20399: aix_use_runtimelinking=no
20400: exp_sym_flag='-Bexport'
20401: no_entry_flag=""
20402: else
20403: # If we're using GNU nm, then we don't want the "-C" option.
20404: # -C means demangle to AIX nm, but means don't demangle with GNU nm
20405: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20406: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20407: else
20408: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20409: fi
20410: aix_use_runtimelinking=no
20411:
20412: # Test if we are trying to use run time linking or normal
20413: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20414: # need to do runtime linking.
20415: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20416: for ld_flag in $LDFLAGS; do
20417: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20418: aix_use_runtimelinking=yes
20419: break
20420: fi
20421: done
20422: esac
20423:
20424: exp_sym_flag='-bexport'
20425: no_entry_flag='-bnoentry'
20426: fi
20427:
20428: # When large executables or shared objects are built, AIX ld can
20429: # have problems creating the table of contents. If linking a library
20430: # or program results in "error TOC overflow" add -mminimal-toc to
20431: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20432: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20433:
20434: archive_cmds_GCJ=''
20435: hardcode_direct_GCJ=yes
20436: hardcode_libdir_separator_GCJ=':'
20437: link_all_deplibs_GCJ=yes
20438:
20439: if test "$GCC" = yes; then
20440: case $host_os in aix4.012|aix4.012.*)
20441: # We only want to do this on AIX 4.2 and lower, the check
20442: # below for broken collect2 doesn't work under 4.3+
20443: collect2name=`${CC} -print-prog-name=collect2`
20444: if test -f "$collect2name" && \
20445: strings "$collect2name" | grep resolve_lib_name >/dev/null
20446: then
20447: # We have reworked collect2
20448: hardcode_direct_GCJ=yes
20449: else
20450: # We have old collect2
20451: hardcode_direct_GCJ=unsupported
20452: # It fails to find uninstalled libraries when the uninstalled
20453: # path is not listed in the libpath. Setting hardcode_minus_L
20454: # to unsupported forces relinking
20455: hardcode_minus_L_GCJ=yes
20456: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20457: hardcode_libdir_separator_GCJ=
20458: fi
20459: esac
20460: shared_flag='-shared'
20461: else
20462: # not using gcc
20463: if test "$host_cpu" = ia64; then
20464: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20465: # chokes on -Wl,-G. The following line is correct:
20466: shared_flag='-G'
20467: else
20468: if test "$aix_use_runtimelinking" = yes; then
20469: shared_flag='${wl}-G'
20470: else
20471: shared_flag='${wl}-bM:SRE'
20472: fi
20473: fi
20474: fi
20475:
20476: # It seems that -bexpall does not export symbols beginning with
20477: # underscore (_), so it is better to generate a list of symbols to export.
20478: always_export_symbols_GCJ=yes
20479: if test "$aix_use_runtimelinking" = yes; then
20480: # Warning - without using the other runtime loading flags (-brtl),
20481: # -berok will link without error, but may produce a broken library.
20482: allow_undefined_flag_GCJ='-berok'
20483: # Determine the default libpath from the value encoded in an empty executable.
20484: cat >conftest.$ac_ext <<_ACEOF
20485: #line $LINENO "configure"
20486: /* confdefs.h. */
20487: _ACEOF
20488: cat confdefs.h >>conftest.$ac_ext
20489: cat >>conftest.$ac_ext <<_ACEOF
20490: /* end confdefs.h. */
20491:
20492: int
20493: main ()
20494: {
20495:
20496: ;
20497: return 0;
20498: }
20499: _ACEOF
20500: rm -f conftest.$ac_objext conftest$ac_exeext
20501: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502: (eval $ac_link) 2>&5
20503: ac_status=$?
20504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505: (exit $ac_status); } &&
20506: { ac_try='test -s conftest$ac_exeext'
20507: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508: (eval $ac_try) 2>&5
20509: ac_status=$?
20510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511: (exit $ac_status); }; }; then
20512:
20513: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20514: }'`
20515: # Check for a 64-bit object if we didn't find anything.
20516: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20517: }'`; fi
20518: else
20519: echo "$as_me: failed program was:" >&5
20520: sed 's/^/| /' conftest.$ac_ext >&5
20521:
20522: fi
20523: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20524: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20525:
20526: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20527: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20528: else
20529: if test "$host_cpu" = ia64; then
20530: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20531: allow_undefined_flag_GCJ="-z nodefs"
20532: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20533: else
20534: # Determine the default libpath from the value encoded in an empty executable.
20535: cat >conftest.$ac_ext <<_ACEOF
20536: #line $LINENO "configure"
20537: /* confdefs.h. */
20538: _ACEOF
20539: cat confdefs.h >>conftest.$ac_ext
20540: cat >>conftest.$ac_ext <<_ACEOF
20541: /* end confdefs.h. */
20542:
20543: int
20544: main ()
20545: {
20546:
20547: ;
20548: return 0;
20549: }
20550: _ACEOF
20551: rm -f conftest.$ac_objext conftest$ac_exeext
20552: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553: (eval $ac_link) 2>&5
20554: ac_status=$?
20555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556: (exit $ac_status); } &&
20557: { ac_try='test -s conftest$ac_exeext'
20558: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559: (eval $ac_try) 2>&5
20560: ac_status=$?
20561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562: (exit $ac_status); }; }; then
20563:
20564: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20565: }'`
20566: # Check for a 64-bit object if we didn't find anything.
20567: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20568: }'`; fi
20569: else
20570: echo "$as_me: failed program was:" >&5
20571: sed 's/^/| /' conftest.$ac_ext >&5
20572:
20573: fi
20574: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20575: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20576:
20577: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20578: # Warning - without using the other run time loading flags,
20579: # -berok will link without error, but may produce a broken library.
20580: no_undefined_flag_GCJ=' ${wl}-bernotok'
20581: allow_undefined_flag_GCJ=' ${wl}-berok'
20582: # -bexpall does not export symbols beginning with underscore (_)
20583: always_export_symbols_GCJ=yes
20584: # Exported symbols can be pulled into shared objects from archives
20585: whole_archive_flag_spec_GCJ=' '
20586: archive_cmds_need_lc_GCJ=yes
20587: # This is similar to how AIX traditionally builds it's shared libraries.
20588: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20589: fi
20590: fi
20591: ;;
20592:
20593: amigaos*)
20594: archive_cmds_GCJ='$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)'
20595: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20596: hardcode_minus_L_GCJ=yes
20597: # see comment about different semantics on the GNU ld section
20598: ld_shlibs_GCJ=no
20599: ;;
20600:
20601: bsdi4*)
20602: export_dynamic_flag_spec_GCJ=-rdynamic
20603: ;;
20604:
20605: cygwin* | mingw* | pw32*)
20606: # When not using gcc, we currently assume that we are using
20607: # Microsoft Visual C++.
20608: # hardcode_libdir_flag_spec is actually meaningless, as there is
20609: # no search path for DLLs.
20610: hardcode_libdir_flag_spec_GCJ=' '
20611: allow_undefined_flag_GCJ=unsupported
20612: # Tell ltmain to make .lib files, not .a files.
20613: libext=lib
20614: # Tell ltmain to make .dll files, not .so files.
20615: shrext=".dll"
20616: # FIXME: Setting linknames here is a bad hack.
20617: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20618: # The linker will automatically build a .lib file if we build a DLL.
20619: old_archive_From_new_cmds_GCJ='true'
20620: # FIXME: Should let the user specify the lib program.
20621: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20622: fix_srcfile_path='`cygpath -w "$srcfile"`'
20623: enable_shared_with_static_runtimes_GCJ=yes
20624: ;;
20625:
20626: darwin* | rhapsody*)
20627: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
20628: archive_cmds_need_lc_GCJ=no
20629: case "$host_os" in
20630: rhapsody* | darwin1.[012])
20631: allow_undefined_flag_GCJ='-undefined suppress'
20632: ;;
20633: *) # Darwin 1.3 on
20634: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
20635: ;;
20636: esac
20637: # FIXME: Relying on posixy $() will cause problems for
20638: # cross-compilation, but unfortunately the echo tests do not
20639: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
20640: # `"' quotes if we put them in here... so don't!
20641: lt_int_apple_cc_single_mod=no
20642: output_verbose_link_cmd='echo'
20643: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20644: lt_int_apple_cc_single_mod=yes
20645: fi
20646: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20647: archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20648: else
20649: archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
20650: fi
20651: module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
20652: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20653: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20654: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20655: else
20656: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20657: fi
20658: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20659: hardcode_direct_GCJ=no
20660: hardcode_automatic_GCJ=yes
20661: hardcode_shlibpath_var_GCJ=unsupported
20662: whole_archive_flag_spec_GCJ='-all_load $convenience'
20663: link_all_deplibs_GCJ=yes
20664: fi
20665: ;;
20666:
20667: dgux*)
20668: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20669: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20670: hardcode_shlibpath_var_GCJ=no
20671: ;;
20672:
20673: freebsd1*)
20674: ld_shlibs_GCJ=no
20675: ;;
20676:
20677: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20678: # support. Future versions do this automatically, but an explicit c++rt0.o
20679: # does not break anything, and helps significantly (at the cost of a little
20680: # extra space).
20681: freebsd2.2*)
20682: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20683: hardcode_libdir_flag_spec_GCJ='-R$libdir'
20684: hardcode_direct_GCJ=yes
20685: hardcode_shlibpath_var_GCJ=no
20686: ;;
20687:
20688: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20689: freebsd2*)
20690: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20691: hardcode_direct_GCJ=yes
20692: hardcode_minus_L_GCJ=yes
20693: hardcode_shlibpath_var_GCJ=no
20694: ;;
20695:
20696: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20697: freebsd*)
20698: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20699: hardcode_libdir_flag_spec_GCJ='-R$libdir'
20700: hardcode_direct_GCJ=yes
20701: hardcode_shlibpath_var_GCJ=no
20702: ;;
20703:
20704: hpux9*)
20705: if test "$GCC" = yes; then
20706: archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20707: else
20708: archive_cmds_GCJ='$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'
20709: fi
20710: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20711: hardcode_libdir_separator_GCJ=:
20712: hardcode_direct_GCJ=yes
20713:
20714: # hardcode_minus_L: Not really in the search PATH,
20715: # but as the default location of the library.
20716: hardcode_minus_L_GCJ=yes
20717: export_dynamic_flag_spec_GCJ='${wl}-E'
20718: ;;
20719:
20720: hpux10* | hpux11*)
20721: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20722: case "$host_cpu" in
20723: hppa*64*|ia64*)
20724: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20725: ;;
20726: *)
20727: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20728: ;;
20729: esac
20730: else
20731: case "$host_cpu" in
20732: hppa*64*|ia64*)
20733: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20734: ;;
20735: *)
20736: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20737: ;;
20738: esac
20739: fi
20740: if test "$with_gnu_ld" = no; then
20741: case "$host_cpu" in
20742: hppa*64*)
20743: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20744: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20745: hardcode_libdir_separator_GCJ=:
20746: hardcode_direct_GCJ=no
20747: hardcode_shlibpath_var_GCJ=no
20748: ;;
20749: ia64*)
20750: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20751: hardcode_direct_GCJ=no
20752: hardcode_shlibpath_var_GCJ=no
20753:
20754: # hardcode_minus_L: Not really in the search PATH,
20755: # but as the default location of the library.
20756: hardcode_minus_L_GCJ=yes
20757: ;;
20758: *)
20759: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20760: hardcode_libdir_separator_GCJ=:
20761: hardcode_direct_GCJ=yes
20762: export_dynamic_flag_spec_GCJ='${wl}-E'
20763:
20764: # hardcode_minus_L: Not really in the search PATH,
20765: # but as the default location of the library.
20766: hardcode_minus_L_GCJ=yes
20767: ;;
20768: esac
20769: fi
20770: ;;
20771:
20772: irix5* | irix6* | nonstopux*)
20773: if test "$GCC" = yes; then
20774: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20775: else
20776: archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20777: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20778: fi
20779: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20780: hardcode_libdir_separator_GCJ=:
20781: link_all_deplibs_GCJ=yes
20782: ;;
20783:
20784: netbsd*)
20785: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20786: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20787: else
20788: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20789: fi
20790: hardcode_libdir_flag_spec_GCJ='-R$libdir'
20791: hardcode_direct_GCJ=yes
20792: hardcode_shlibpath_var_GCJ=no
20793: ;;
20794:
20795: newsos6)
20796: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20797: hardcode_direct_GCJ=yes
20798: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20799: hardcode_libdir_separator_GCJ=:
20800: hardcode_shlibpath_var_GCJ=no
20801: ;;
20802:
20803: openbsd*)
20804: hardcode_direct_GCJ=yes
20805: hardcode_shlibpath_var_GCJ=no
20806: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20807: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20808: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20809: export_dynamic_flag_spec_GCJ='${wl}-E'
20810: else
20811: case $host_os in
20812: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20813: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20814: hardcode_libdir_flag_spec_GCJ='-R$libdir'
20815: ;;
20816: *)
20817: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20818: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20819: ;;
20820: esac
20821: fi
20822: ;;
20823:
20824: os2*)
20825: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20826: hardcode_minus_L_GCJ=yes
20827: allow_undefined_flag_GCJ=unsupported
20828: archive_cmds_GCJ='$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'
20829: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20830: ;;
20831:
20832: osf3*)
20833: if test "$GCC" = yes; then
20834: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20835: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20836: else
20837: allow_undefined_flag_GCJ=' -expect_unresolved \*'
20838: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20839: fi
20840: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20841: hardcode_libdir_separator_GCJ=:
20842: ;;
20843:
20844: osf4* | osf5*) # as osf3* with the addition of -msym flag
20845: if test "$GCC" = yes; then
20846: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20847: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20848: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20849: else
20850: allow_undefined_flag_GCJ=' -expect_unresolved \*'
20851: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20852: archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20853: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
20854:
20855: # Both c and cxx compiler support -rpath directly
20856: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20857: fi
20858: hardcode_libdir_separator_GCJ=:
20859: ;;
20860:
20861: sco3.2v5*)
20862: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20863: hardcode_shlibpath_var_GCJ=no
20864: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20865: runpath_var=LD_RUN_PATH
20866: hardcode_runpath_var=yes
20867: ;;
20868:
20869: solaris*)
20870: no_undefined_flag_GCJ=' -z text'
20871: if test "$GCC" = yes; then
20872: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20873: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20874: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20875: else
20876: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20877: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20878: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20879: fi
20880: hardcode_libdir_flag_spec_GCJ='-R$libdir'
20881: hardcode_shlibpath_var_GCJ=no
20882: case $host_os in
20883: solaris2.[0-5] | solaris2.[0-5].*) ;;
20884: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20885: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20886: esac
20887: link_all_deplibs_GCJ=yes
20888: ;;
20889:
20890: sunos4*)
20891: if test "x$host_vendor" = xsequent; then
20892: # Use $CC to link under sequent, because it throws in some extra .o
20893: # files that make .init and .fini sections work.
20894: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20895: else
20896: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20897: fi
20898: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20899: hardcode_direct_GCJ=yes
20900: hardcode_minus_L_GCJ=yes
20901: hardcode_shlibpath_var_GCJ=no
20902: ;;
20903:
20904: sysv4)
20905: case $host_vendor in
20906: sni)
20907: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20908: hardcode_direct_GCJ=yes # is this really true???
20909: ;;
20910: siemens)
20911: ## LD is ld it makes a PLAMLIB
20912: ## CC just makes a GrossModule.
20913: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20914: reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20915: hardcode_direct_GCJ=no
20916: ;;
20917: motorola)
20918: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20919: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20920: ;;
20921: esac
20922: runpath_var='LD_RUN_PATH'
20923: hardcode_shlibpath_var_GCJ=no
20924: ;;
20925:
20926: sysv4.3*)
20927: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20928: hardcode_shlibpath_var_GCJ=no
20929: export_dynamic_flag_spec_GCJ='-Bexport'
20930: ;;
20931:
20932: sysv4*MP*)
20933: if test -d /usr/nec; then
20934: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20935: hardcode_shlibpath_var_GCJ=no
20936: runpath_var=LD_RUN_PATH
20937: hardcode_runpath_var=yes
20938: ld_shlibs_GCJ=yes
20939: fi
20940: ;;
20941:
20942: sysv4.2uw2*)
20943: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20944: hardcode_direct_GCJ=yes
20945: hardcode_minus_L_GCJ=no
20946: hardcode_shlibpath_var_GCJ=no
20947: hardcode_runpath_var=yes
20948: runpath_var=LD_RUN_PATH
20949: ;;
20950:
20951: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20952: no_undefined_flag_GCJ='${wl}-z ${wl}text'
20953: if test "$GCC" = yes; then
20954: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20955: else
20956: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20957: fi
20958: runpath_var='LD_RUN_PATH'
20959: hardcode_shlibpath_var_GCJ=no
20960: ;;
20961:
20962: sysv5*)
20963: no_undefined_flag_GCJ=' -z text'
20964: # $CC -shared without GNU ld will not create a library from C++
20965: # object files and a static libstdc++, better avoid it by now
20966: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20967: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20968: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20969: hardcode_libdir_flag_spec_GCJ=
20970: hardcode_shlibpath_var_GCJ=no
20971: runpath_var='LD_RUN_PATH'
20972: ;;
20973:
20974: uts4*)
20975: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20976: hardcode_libdir_flag_spec_GCJ='-L$libdir'
20977: hardcode_shlibpath_var_GCJ=no
20978: ;;
20979:
20980: *)
20981: ld_shlibs_GCJ=no
20982: ;;
20983: esac
20984: fi
20985:
20986: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20987: echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20988: test "$ld_shlibs_GCJ" = no && can_build_shared=no
20989:
20990: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20991: if test "$GCC" = yes; then
20992: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20993: fi
20994:
20995: #
20996: # Do we need to explicitly link libc?
20997: #
20998: case "x$archive_cmds_need_lc_GCJ" in
20999: x|xyes)
21000: # Assume -lc should be added
21001: archive_cmds_need_lc_GCJ=yes
21002:
21003: if test "$enable_shared" = yes && test "$GCC" = yes; then
21004: case $archive_cmds_GCJ in
21005: *'~'*)
21006: # FIXME: we may have to deal with multi-command sequences.
21007: ;;
21008: '$CC '*)
21009: # Test whether the compiler implicitly links with -lc since on some
21010: # systems, -lgcc has to come before -lc. If gcc already passes -lc
21011: # to ld, don't add -lc before -lgcc.
21012: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21013: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21014: $rm conftest*
21015: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21016:
21017: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21018: (eval $ac_compile) 2>&5
21019: ac_status=$?
21020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021: (exit $ac_status); } 2>conftest.err; then
21022: soname=conftest
21023: lib=conftest
21024: libobjs=conftest.$ac_objext
21025: deplibs=
21026: wl=$lt_prog_compiler_wl_GCJ
21027: compiler_flags=-v
21028: linker_flags=-v
21029: verstring=
21030: output_objdir=.
21031: libname=conftest
21032: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21033: allow_undefined_flag_GCJ=
21034: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21035: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21036: ac_status=$?
21037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038: (exit $ac_status); }
21039: then
21040: archive_cmds_need_lc_GCJ=no
21041: else
21042: archive_cmds_need_lc_GCJ=yes
21043: fi
21044: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21045: else
21046: cat conftest.err 1>&5
21047: fi
21048: $rm conftest*
21049: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21050: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
21051: ;;
21052: esac
21053: fi
21054: ;;
21055: esac
21056:
21057: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21058: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21059: hardcode_action_GCJ=
21060: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21061: test -n "$runpath_var GCJ" || \
21062: test "X$hardcode_automatic_GCJ"="Xyes" ; then
21063:
21064: # We can hardcode non-existant directories.
21065: if test "$hardcode_direct_GCJ" != no &&
21066: # If the only mechanism to avoid hardcoding is shlibpath_var, we
21067: # have to relink, otherwise we might link with an installed library
21068: # when we should be linking with a yet-to-be-installed one
21069: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21070: test "$hardcode_minus_L_GCJ" != no; then
21071: # Linking always hardcodes the temporary library directory.
21072: hardcode_action_GCJ=relink
21073: else
21074: # We can link without hardcoding, and we can hardcode nonexisting dirs.
21075: hardcode_action_GCJ=immediate
21076: fi
21077: else
21078: # We cannot hardcode anything, or else we can only hardcode existing
21079: # directories.
21080: hardcode_action_GCJ=unsupported
21081: fi
21082: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21083: echo "${ECHO_T}$hardcode_action_GCJ" >&6
21084:
21085: if test "$hardcode_action_GCJ" = relink; then
21086: # Fast installation is not supported
21087: enable_fast_install=no
21088: elif test "$shlibpath_overrides_runpath" = yes ||
21089: test "$enable_shared" = no; then
21090: # Fast installation is not necessary
21091: enable_fast_install=needless
21092: fi
21093:
21094: striplib=
21095: old_striplib=
21096: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21097: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21098: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21099: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21100: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21101: echo "$as_me:$LINENO: result: yes" >&5
21102: echo "${ECHO_T}yes" >&6
21103: else
21104: # FIXME - insert some real tests, host_os isn't really good enough
21105: case $host_os in
21106: darwin*)
21107: if test -n "$STRIP" ; then
21108: striplib="$STRIP -x"
21109: echo "$as_me:$LINENO: result: yes" >&5
21110: echo "${ECHO_T}yes" >&6
21111: else
21112: echo "$as_me:$LINENO: result: no" >&5
21113: echo "${ECHO_T}no" >&6
21114: fi
21115: ;;
21116: *)
21117: echo "$as_me:$LINENO: result: no" >&5
21118: echo "${ECHO_T}no" >&6
21119: ;;
21120: esac
21121: fi
21122:
21123: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21124: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21125: library_names_spec=
21126: libname_spec='lib$name'
21127: soname_spec=
21128: shrext=".so"
21129: postinstall_cmds=
21130: postuninstall_cmds=
21131: finish_cmds=
21132: finish_eval=
21133: shlibpath_var=
21134: shlibpath_overrides_runpath=unknown
21135: version_type=none
21136: dynamic_linker="$host_os ld.so"
21137: sys_lib_dlsearch_path_spec="/lib /usr/lib"
21138: if test "$GCC" = yes; then
21139: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21140: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21141: # if the path contains ";" then we assume it to be the separator
21142: # otherwise default to the standard path separator (i.e. ":") - it is
21143: # assumed that no part of a normal pathname contains ";" but that should
21144: # okay in the real world where ";" in dirpaths is itself problematic.
21145: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21146: else
21147: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21148: fi
21149: else
21150: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21151: fi
21152: need_lib_prefix=unknown
21153: hardcode_into_libs=no
21154:
21155: # when you set need_version to no, make sure it does not cause -set_version
21156: # flags to be left without arguments
21157: need_version=unknown
21158:
21159: case $host_os in
21160: aix3*)
21161: version_type=linux
21162: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21163: shlibpath_var=LIBPATH
21164:
21165: # AIX 3 has no versioning support, so we append a major version to the name.
21166: soname_spec='${libname}${release}${shared_ext}$major'
21167: ;;
21168:
21169: aix4* | aix5*)
21170: version_type=linux
21171: need_lib_prefix=no
21172: need_version=no
21173: hardcode_into_libs=yes
21174: if test "$host_cpu" = ia64; then
21175: # AIX 5 supports IA64
21176: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21177: shlibpath_var=LD_LIBRARY_PATH
21178: else
21179: # With GCC up to 2.95.x, collect2 would create an import file
21180: # for dependence libraries. The import file would start with
21181: # the line `#! .'. This would cause the generated library to
21182: # depend on `.', always an invalid library. This was fixed in
21183: # development snapshots of GCC prior to 3.0.
21184: case $host_os in
21185: aix4 | aix4.[01] | aix4.[01].*)
21186: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21187: echo ' yes '
21188: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21189: :
21190: else
21191: can_build_shared=no
21192: fi
21193: ;;
21194: esac
21195: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21196: # soname into executable. Probably we can add versioning support to
21197: # collect2, so additional links can be useful in future.
21198: if test "$aix_use_runtimelinking" = yes; then
21199: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21200: # instead of lib<name>.a to let people know that these are not
21201: # typical AIX shared libraries.
21202: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21203: else
21204: # We preserve .a as extension for shared libraries through AIX4.2
21205: # and later when we are not doing run time linking.
21206: library_names_spec='${libname}${release}.a $libname.a'
21207: soname_spec='${libname}${release}${shared_ext}$major'
21208: fi
21209: shlibpath_var=LIBPATH
21210: fi
21211: ;;
21212:
21213: amigaos*)
21214: library_names_spec='$libname.ixlibrary $libname.a'
21215: # Create ${libname}_ixlibrary.a entries in /sys/libs.
21216: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
21217: ;;
21218:
21219: beos*)
21220: library_names_spec='${libname}${shared_ext}'
21221: dynamic_linker="$host_os ld.so"
21222: shlibpath_var=LIBRARY_PATH
21223: ;;
21224:
21225: bsdi4*)
21226: version_type=linux
21227: need_version=no
21228: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21229: soname_spec='${libname}${release}${shared_ext}$major'
21230: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21231: shlibpath_var=LD_LIBRARY_PATH
21232: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21233: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21234: # the default ld.so.conf also contains /usr/contrib/lib and
21235: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21236: # libtool to hard-code these into programs
21237: ;;
21238:
21239: cygwin* | mingw* | pw32*)
21240: version_type=windows
21241: shrext=".dll"
21242: need_version=no
21243: need_lib_prefix=no
21244:
21245: case $GCC,$host_os in
21246: yes,cygwin* | yes,mingw* | yes,pw32*)
21247: library_names_spec='$libname.dll.a'
21248: # DLL is installed to $(libdir)/../bin by postinstall_cmds
21249: postinstall_cmds='base_file=`basename \${file}`~
21250: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21251: dldir=$destdir/`dirname \$dlpath`~
21252: test -d \$dldir || mkdir -p \$dldir~
21253: $install_prog $dir/$dlname \$dldir/$dlname'
21254: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21255: dlpath=$dir/\$dldll~
21256: $rm \$dlpath'
21257: shlibpath_overrides_runpath=yes
21258:
21259: case $host_os in
21260: cygwin*)
21261: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21262: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21263: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
21264: ;;
21265: mingw*)
21266: # MinGW DLLs use traditional 'lib' prefix
21267: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21268: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21269: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21270: # It is most probably a Windows format PATH printed by
21271: # mingw gcc, but we are running on Cygwin. Gcc prints its search
21272: # path with ; separators, and with drive letters. We can handle the
21273: # drive letters (cygwin fileutils understands them), so leave them,
21274: # especially as we might pass files found there to a mingw objdump,
21275: # which wouldn't understand a cygwinified path. Ahh.
21276: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21277: else
21278: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21279: fi
21280: ;;
21281: pw32*)
21282: # pw32 DLLs use 'pw' prefix rather than 'lib'
21283: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21284: ;;
21285: esac
21286: ;;
21287:
21288: *)
21289: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21290: ;;
21291: esac
21292: dynamic_linker='Win32 ld.exe'
21293: # FIXME: first we should search . and the directory the executable is in
21294: shlibpath_var=PATH
21295: ;;
21296:
21297: darwin* | rhapsody*)
21298: dynamic_linker="$host_os dyld"
21299: version_type=darwin
21300: need_lib_prefix=no
21301: need_version=no
21302: # FIXME: Relying on posixy $() will cause problems for
21303: # cross-compilation, but unfortunately the echo tests do not
21304: # yet detect zsh echo's removal of \ escapes.
21305: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21306: soname_spec='${libname}${release}${major}$shared_ext'
21307: shlibpath_overrides_runpath=yes
21308: shlibpath_var=DYLD_LIBRARY_PATH
21309: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
21310: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21311: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
21312: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
21313: fi
21314: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21315: ;;
21316:
21317: dgux*)
21318: version_type=linux
21319: need_lib_prefix=no
21320: need_version=no
21321: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21322: soname_spec='${libname}${release}${shared_ext}$major'
21323: shlibpath_var=LD_LIBRARY_PATH
21324: ;;
21325:
21326: freebsd1*)
21327: dynamic_linker=no
21328: ;;
21329:
21330: freebsd*)
21331: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21332: version_type=freebsd-$objformat
21333: case $version_type in
21334: freebsd-elf*)
21335: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21336: need_version=no
21337: need_lib_prefix=no
21338: ;;
21339: freebsd-*)
21340: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21341: need_version=yes
21342: ;;
21343: esac
21344: shlibpath_var=LD_LIBRARY_PATH
21345: case $host_os in
21346: freebsd2*)
21347: shlibpath_overrides_runpath=yes
21348: ;;
21349: freebsd3.01* | freebsdelf3.01*)
21350: shlibpath_overrides_runpath=yes
21351: hardcode_into_libs=yes
21352: ;;
21353: *) # from 3.2 on
21354: shlibpath_overrides_runpath=no
21355: hardcode_into_libs=yes
21356: ;;
21357: esac
21358: ;;
21359:
21360: gnu*)
21361: version_type=linux
21362: need_lib_prefix=no
21363: need_version=no
21364: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21365: soname_spec='${libname}${release}${shared_ext}$major'
21366: shlibpath_var=LD_LIBRARY_PATH
21367: hardcode_into_libs=yes
21368: ;;
21369:
21370: hpux9* | hpux10* | hpux11*)
21371: # Give a soname corresponding to the major version so that dld.sl refuses to
21372: # link against other versions.
21373: version_type=sunos
21374: need_lib_prefix=no
21375: need_version=no
21376: case "$host_cpu" in
21377: ia64*)
21378: shrext='.so'
21379: hardcode_into_libs=yes
21380: dynamic_linker="$host_os dld.so"
21381: shlibpath_var=LD_LIBRARY_PATH
21382: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21383: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21384: soname_spec='${libname}${release}${shared_ext}$major'
21385: if test "X$HPUX_IA64_MODE" = X32; then
21386: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21387: else
21388: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21389: fi
21390: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21391: ;;
21392: hppa*64*)
21393: shrext='.sl'
21394: hardcode_into_libs=yes
21395: dynamic_linker="$host_os dld.sl"
21396: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21397: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21398: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21399: soname_spec='${libname}${release}${shared_ext}$major'
21400: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21401: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21402: ;;
21403: *)
21404: shrext='.sl'
21405: dynamic_linker="$host_os dld.sl"
21406: shlibpath_var=SHLIB_PATH
21407: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21408: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21409: soname_spec='${libname}${release}${shared_ext}$major'
21410: ;;
21411: esac
21412: # HP-UX runs *really* slowly unless shared libraries are mode 555.
21413: postinstall_cmds='chmod 555 $lib'
21414: ;;
21415:
21416: irix5* | irix6* | nonstopux*)
21417: case $host_os in
21418: nonstopux*) version_type=nonstopux ;;
21419: *)
21420: if test "$lt_cv_prog_gnu_ld" = yes; then
21421: version_type=linux
21422: else
21423: version_type=irix
21424: fi ;;
21425: esac
21426: need_lib_prefix=no
21427: need_version=no
21428: soname_spec='${libname}${release}${shared_ext}$major'
21429: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21430: case $host_os in
21431: irix5* | nonstopux*)
21432: libsuff= shlibsuff=
21433: ;;
21434: *)
21435: case $LD in # libtool.m4 will add one of these switches to LD
21436: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21437: libsuff= shlibsuff= libmagic=32-bit;;
21438: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21439: libsuff=32 shlibsuff=N32 libmagic=N32;;
21440: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21441: libsuff=64 shlibsuff=64 libmagic=64-bit;;
21442: *) libsuff= shlibsuff= libmagic=never-match;;
21443: esac
21444: ;;
21445: esac
21446: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21447: shlibpath_overrides_runpath=no
21448: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21449: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21450: hardcode_into_libs=yes
21451: ;;
21452:
21453: # No shared lib support for Linux oldld, aout, or coff.
21454: linux*oldld* | linux*aout* | linux*coff*)
21455: dynamic_linker=no
21456: ;;
21457:
21458: # This must be Linux ELF.
21459: linux*)
21460: version_type=linux
21461: need_lib_prefix=no
21462: need_version=no
21463: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21464: soname_spec='${libname}${release}${shared_ext}$major'
21465: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21466: shlibpath_var=LD_LIBRARY_PATH
21467: shlibpath_overrides_runpath=no
21468: # This implies no fast_install, which is unacceptable.
21469: # Some rework will be needed to allow for fast_install
21470: # before this can be enabled.
21471: hardcode_into_libs=yes
21472:
21473: # We used to test for /lib/ld.so.1 and disable shared libraries on
21474: # powerpc, because MkLinux only supported shared libraries with the
21475: # GNU dynamic linker. Since this was broken with cross compilers,
21476: # most powerpc-linux boxes support dynamic linking these days and
21477: # people can always --disable-shared, the test was removed, and we
21478: # assume the GNU/Linux dynamic linker is in use.
21479: dynamic_linker='GNU/Linux ld.so'
21480: ;;
21481:
21482: netbsd*)
21483: version_type=sunos
21484: need_lib_prefix=no
21485: need_version=no
21486: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21487: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21488: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21489: dynamic_linker='NetBSD (a.out) ld.so'
21490: else
21491: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
21492: soname_spec='${libname}${release}${shared_ext}$major'
21493: dynamic_linker='NetBSD ld.elf_so'
21494: fi
21495: shlibpath_var=LD_LIBRARY_PATH
21496: shlibpath_overrides_runpath=yes
21497: hardcode_into_libs=yes
21498: ;;
21499:
21500: newsos6)
21501: version_type=linux
21502: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21503: shlibpath_var=LD_LIBRARY_PATH
21504: shlibpath_overrides_runpath=yes
21505: ;;
21506:
21507: nto-qnx)
21508: version_type=linux
21509: need_lib_prefix=no
21510: need_version=no
21511: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512: soname_spec='${libname}${release}${shared_ext}$major'
21513: shlibpath_var=LD_LIBRARY_PATH
21514: shlibpath_overrides_runpath=yes
21515: ;;
21516:
21517: openbsd*)
21518: version_type=sunos
21519: need_lib_prefix=no
21520: need_version=no
21521: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21522: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21523: shlibpath_var=LD_LIBRARY_PATH
21524: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21525: case $host_os in
21526: openbsd2.[89] | openbsd2.[89].*)
21527: shlibpath_overrides_runpath=no
21528: ;;
21529: *)
21530: shlibpath_overrides_runpath=yes
21531: ;;
21532: esac
21533: else
21534: shlibpath_overrides_runpath=yes
21535: fi
21536: ;;
21537:
21538: os2*)
21539: libname_spec='$name'
21540: shrext=".dll"
21541: need_lib_prefix=no
21542: library_names_spec='$libname${shared_ext} $libname.a'
21543: dynamic_linker='OS/2 ld.exe'
21544: shlibpath_var=LIBPATH
21545: ;;
21546:
21547: osf3* | osf4* | osf5*)
21548: version_type=osf
21549: need_lib_prefix=no
21550: need_version=no
21551: soname_spec='${libname}${release}${shared_ext}$major'
21552: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21553: shlibpath_var=LD_LIBRARY_PATH
21554: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21555: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21556: ;;
21557:
21558: sco3.2v5*)
21559: version_type=osf
21560: soname_spec='${libname}${release}${shared_ext}$major'
21561: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21562: shlibpath_var=LD_LIBRARY_PATH
21563: ;;
21564:
21565: solaris*)
21566: version_type=linux
21567: need_lib_prefix=no
21568: need_version=no
21569: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21570: soname_spec='${libname}${release}${shared_ext}$major'
21571: shlibpath_var=LD_LIBRARY_PATH
21572: shlibpath_overrides_runpath=yes
21573: hardcode_into_libs=yes
21574: # ldd complains unless libraries are executable
21575: postinstall_cmds='chmod +x $lib'
21576: ;;
21577:
21578: sunos4*)
21579: version_type=sunos
21580: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21581: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21582: shlibpath_var=LD_LIBRARY_PATH
21583: shlibpath_overrides_runpath=yes
21584: if test "$with_gnu_ld" = yes; then
21585: need_lib_prefix=no
21586: fi
21587: need_version=yes
21588: ;;
21589:
21590: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21591: version_type=linux
21592: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21593: soname_spec='${libname}${release}${shared_ext}$major'
21594: shlibpath_var=LD_LIBRARY_PATH
21595: case $host_vendor in
21596: sni)
21597: shlibpath_overrides_runpath=no
21598: need_lib_prefix=no
21599: export_dynamic_flag_spec='${wl}-Blargedynsym'
21600: runpath_var=LD_RUN_PATH
21601: ;;
21602: siemens)
21603: need_lib_prefix=no
21604: ;;
21605: motorola)
21606: need_lib_prefix=no
21607: need_version=no
21608: shlibpath_overrides_runpath=no
21609: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21610: ;;
21611: esac
21612: ;;
21613:
21614: sysv4*MP*)
21615: if test -d /usr/nec ;then
21616: version_type=linux
21617: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21618: soname_spec='$libname${shared_ext}.$major'
21619: shlibpath_var=LD_LIBRARY_PATH
21620: fi
21621: ;;
21622:
21623: uts4*)
21624: version_type=linux
21625: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21626: soname_spec='${libname}${release}${shared_ext}$major'
21627: shlibpath_var=LD_LIBRARY_PATH
21628: ;;
21629:
21630: *)
21631: dynamic_linker=no
21632: ;;
21633: esac
21634: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21635: echo "${ECHO_T}$dynamic_linker" >&6
21636: test "$dynamic_linker" = no && can_build_shared=no
21637:
21638: if test "x$enable_dlopen" != xyes; then
21639: enable_dlopen=unknown
21640: enable_dlopen_self=unknown
21641: enable_dlopen_self_static=unknown
21642: else
21643: lt_cv_dlopen=no
21644: lt_cv_dlopen_libs=
21645:
21646: case $host_os in
21647: beos*)
21648: lt_cv_dlopen="load_add_on"
21649: lt_cv_dlopen_libs=
21650: lt_cv_dlopen_self=yes
21651: ;;
21652:
21653: mingw* | pw32*)
21654: lt_cv_dlopen="LoadLibrary"
21655: lt_cv_dlopen_libs=
21656: ;;
21657:
21658: cygwin*)
21659: lt_cv_dlopen="dlopen"
21660: lt_cv_dlopen_libs=
21661: ;;
21662:
21663: darwin*)
21664: # if libdl is installed we need to link against it
21665: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21666: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21667: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21668: echo $ECHO_N "(cached) $ECHO_C" >&6
21669: else
21670: ac_check_lib_save_LIBS=$LIBS
21671: LIBS="-ldl $LIBS"
21672: cat >conftest.$ac_ext <<_ACEOF
21673: #line $LINENO "configure"
21674: /* confdefs.h. */
21675: _ACEOF
21676: cat confdefs.h >>conftest.$ac_ext
21677: cat >>conftest.$ac_ext <<_ACEOF
21678: /* end confdefs.h. */
21679:
21680: /* Override any gcc2 internal prototype to avoid an error. */
21681: #ifdef __cplusplus
21682: extern "C"
21683: #endif
21684: /* We use char because int might match the return type of a gcc2
21685: builtin and then its argument prototype would still apply. */
21686: char dlopen ();
21687: int
21688: main ()
21689: {
21690: dlopen ();
21691: ;
21692: return 0;
21693: }
21694: _ACEOF
21695: rm -f conftest.$ac_objext conftest$ac_exeext
21696: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21697: (eval $ac_link) 2>&5
21698: ac_status=$?
21699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700: (exit $ac_status); } &&
21701: { ac_try='test -s conftest$ac_exeext'
21702: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703: (eval $ac_try) 2>&5
21704: ac_status=$?
21705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706: (exit $ac_status); }; }; then
21707: ac_cv_lib_dl_dlopen=yes
21708: else
21709: echo "$as_me: failed program was:" >&5
21710: sed 's/^/| /' conftest.$ac_ext >&5
21711:
21712: ac_cv_lib_dl_dlopen=no
21713: fi
21714: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21715: LIBS=$ac_check_lib_save_LIBS
21716: fi
21717: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21718: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21719: if test $ac_cv_lib_dl_dlopen = yes; then
21720: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21721: else
21722:
21723: lt_cv_dlopen="dyld"
21724: lt_cv_dlopen_libs=
21725: lt_cv_dlopen_self=yes
21726:
21727: fi
21728:
21729: ;;
21730:
21731: *)
21732: echo "$as_me:$LINENO: checking for shl_load" >&5
21733: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
21734: if test "${ac_cv_func_shl_load+set}" = set; then
21735: echo $ECHO_N "(cached) $ECHO_C" >&6
21736: else
21737: cat >conftest.$ac_ext <<_ACEOF
21738: #line $LINENO "configure"
21739: /* confdefs.h. */
21740: _ACEOF
21741: cat confdefs.h >>conftest.$ac_ext
21742: cat >>conftest.$ac_ext <<_ACEOF
21743: /* end confdefs.h. */
21744: /* System header to define __stub macros and hopefully few prototypes,
21745: which can conflict with char shl_load (); below.
21746: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21747: <limits.h> exists even on freestanding compilers. */
21748: #ifdef __STDC__
21749: # include <limits.h>
21750: #else
21751: # include <assert.h>
21752: #endif
21753: /* Override any gcc2 internal prototype to avoid an error. */
21754: #ifdef __cplusplus
21755: extern "C"
21756: {
21757: #endif
21758: /* We use char because int might match the return type of a gcc2
21759: builtin and then its argument prototype would still apply. */
21760: char shl_load ();
21761: /* The GNU C library defines this for functions which it implements
21762: to always fail with ENOSYS. Some functions are actually named
21763: something starting with __ and the normal name is an alias. */
21764: #if defined (__stub_shl_load) || defined (__stub___shl_load)
21765: choke me
21766: #else
21767: char (*f) () = shl_load;
21768: #endif
21769: #ifdef __cplusplus
21770: }
21771: #endif
21772:
21773: int
21774: main ()
21775: {
21776: return f != shl_load;
21777: ;
21778: return 0;
21779: }
21780: _ACEOF
21781: rm -f conftest.$ac_objext conftest$ac_exeext
21782: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21783: (eval $ac_link) 2>&5
21784: ac_status=$?
21785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786: (exit $ac_status); } &&
21787: { ac_try='test -s conftest$ac_exeext'
21788: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789: (eval $ac_try) 2>&5
21790: ac_status=$?
21791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792: (exit $ac_status); }; }; then
21793: ac_cv_func_shl_load=yes
21794: else
21795: echo "$as_me: failed program was:" >&5
21796: sed 's/^/| /' conftest.$ac_ext >&5
21797:
21798: ac_cv_func_shl_load=no
21799: fi
21800: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21801: fi
21802: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21803: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21804: if test $ac_cv_func_shl_load = yes; then
21805: lt_cv_dlopen="shl_load"
21806: else
21807: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21808: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21809: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21810: echo $ECHO_N "(cached) $ECHO_C" >&6
21811: else
21812: ac_check_lib_save_LIBS=$LIBS
21813: LIBS="-ldld $LIBS"
21814: cat >conftest.$ac_ext <<_ACEOF
21815: #line $LINENO "configure"
21816: /* confdefs.h. */
21817: _ACEOF
21818: cat confdefs.h >>conftest.$ac_ext
21819: cat >>conftest.$ac_ext <<_ACEOF
21820: /* end confdefs.h. */
21821:
21822: /* Override any gcc2 internal prototype to avoid an error. */
21823: #ifdef __cplusplus
21824: extern "C"
21825: #endif
21826: /* We use char because int might match the return type of a gcc2
21827: builtin and then its argument prototype would still apply. */
21828: char shl_load ();
21829: int
21830: main ()
21831: {
21832: shl_load ();
21833: ;
21834: return 0;
21835: }
21836: _ACEOF
21837: rm -f conftest.$ac_objext conftest$ac_exeext
21838: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21839: (eval $ac_link) 2>&5
21840: ac_status=$?
21841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842: (exit $ac_status); } &&
21843: { ac_try='test -s conftest$ac_exeext'
21844: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845: (eval $ac_try) 2>&5
21846: ac_status=$?
21847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848: (exit $ac_status); }; }; then
21849: ac_cv_lib_dld_shl_load=yes
21850: else
21851: echo "$as_me: failed program was:" >&5
21852: sed 's/^/| /' conftest.$ac_ext >&5
21853:
21854: ac_cv_lib_dld_shl_load=no
21855: fi
21856: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21857: LIBS=$ac_check_lib_save_LIBS
21858: fi
21859: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21860: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21861: if test $ac_cv_lib_dld_shl_load = yes; then
21862: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21863: else
21864: echo "$as_me:$LINENO: checking for dlopen" >&5
21865: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21866: if test "${ac_cv_func_dlopen+set}" = set; then
21867: echo $ECHO_N "(cached) $ECHO_C" >&6
21868: else
21869: cat >conftest.$ac_ext <<_ACEOF
21870: #line $LINENO "configure"
21871: /* confdefs.h. */
21872: _ACEOF
21873: cat confdefs.h >>conftest.$ac_ext
21874: cat >>conftest.$ac_ext <<_ACEOF
21875: /* end confdefs.h. */
21876: /* System header to define __stub macros and hopefully few prototypes,
21877: which can conflict with char dlopen (); below.
21878: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21879: <limits.h> exists even on freestanding compilers. */
21880: #ifdef __STDC__
21881: # include <limits.h>
21882: #else
21883: # include <assert.h>
21884: #endif
21885: /* Override any gcc2 internal prototype to avoid an error. */
21886: #ifdef __cplusplus
21887: extern "C"
21888: {
21889: #endif
21890: /* We use char because int might match the return type of a gcc2
21891: builtin and then its argument prototype would still apply. */
21892: char dlopen ();
21893: /* The GNU C library defines this for functions which it implements
21894: to always fail with ENOSYS. Some functions are actually named
21895: something starting with __ and the normal name is an alias. */
21896: #if defined (__stub_dlopen) || defined (__stub___dlopen)
21897: choke me
21898: #else
21899: char (*f) () = dlopen;
21900: #endif
21901: #ifdef __cplusplus
21902: }
21903: #endif
21904:
21905: int
21906: main ()
21907: {
21908: return f != dlopen;
21909: ;
21910: return 0;
21911: }
21912: _ACEOF
21913: rm -f conftest.$ac_objext conftest$ac_exeext
21914: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915: (eval $ac_link) 2>&5
21916: ac_status=$?
21917: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918: (exit $ac_status); } &&
21919: { ac_try='test -s conftest$ac_exeext'
21920: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921: (eval $ac_try) 2>&5
21922: ac_status=$?
21923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924: (exit $ac_status); }; }; then
21925: ac_cv_func_dlopen=yes
21926: else
21927: echo "$as_me: failed program was:" >&5
21928: sed 's/^/| /' conftest.$ac_ext >&5
21929:
21930: ac_cv_func_dlopen=no
21931: fi
21932: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21933: fi
21934: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21935: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21936: if test $ac_cv_func_dlopen = yes; then
21937: lt_cv_dlopen="dlopen"
21938: else
21939: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21940: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21941: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21942: echo $ECHO_N "(cached) $ECHO_C" >&6
21943: else
21944: ac_check_lib_save_LIBS=$LIBS
21945: LIBS="-ldl $LIBS"
21946: cat >conftest.$ac_ext <<_ACEOF
21947: #line $LINENO "configure"
21948: /* confdefs.h. */
21949: _ACEOF
21950: cat confdefs.h >>conftest.$ac_ext
21951: cat >>conftest.$ac_ext <<_ACEOF
21952: /* end confdefs.h. */
21953:
21954: /* Override any gcc2 internal prototype to avoid an error. */
21955: #ifdef __cplusplus
21956: extern "C"
21957: #endif
21958: /* We use char because int might match the return type of a gcc2
21959: builtin and then its argument prototype would still apply. */
21960: char dlopen ();
21961: int
21962: main ()
21963: {
21964: dlopen ();
21965: ;
21966: return 0;
21967: }
21968: _ACEOF
21969: rm -f conftest.$ac_objext conftest$ac_exeext
21970: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21971: (eval $ac_link) 2>&5
21972: ac_status=$?
21973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974: (exit $ac_status); } &&
21975: { ac_try='test -s conftest$ac_exeext'
21976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21977: (eval $ac_try) 2>&5
21978: ac_status=$?
21979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980: (exit $ac_status); }; }; then
21981: ac_cv_lib_dl_dlopen=yes
21982: else
21983: echo "$as_me: failed program was:" >&5
21984: sed 's/^/| /' conftest.$ac_ext >&5
21985:
21986: ac_cv_lib_dl_dlopen=no
21987: fi
21988: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21989: LIBS=$ac_check_lib_save_LIBS
21990: fi
21991: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21992: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21993: if test $ac_cv_lib_dl_dlopen = yes; then
21994: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21995: else
21996: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21997: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21998: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21999: echo $ECHO_N "(cached) $ECHO_C" >&6
22000: else
22001: ac_check_lib_save_LIBS=$LIBS
22002: LIBS="-lsvld $LIBS"
22003: cat >conftest.$ac_ext <<_ACEOF
22004: #line $LINENO "configure"
22005: /* confdefs.h. */
22006: _ACEOF
22007: cat confdefs.h >>conftest.$ac_ext
22008: cat >>conftest.$ac_ext <<_ACEOF
22009: /* end confdefs.h. */
22010:
22011: /* Override any gcc2 internal prototype to avoid an error. */
22012: #ifdef __cplusplus
22013: extern "C"
22014: #endif
22015: /* We use char because int might match the return type of a gcc2
22016: builtin and then its argument prototype would still apply. */
22017: char dlopen ();
22018: int
22019: main ()
22020: {
22021: dlopen ();
22022: ;
22023: return 0;
22024: }
22025: _ACEOF
22026: rm -f conftest.$ac_objext conftest$ac_exeext
22027: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22028: (eval $ac_link) 2>&5
22029: ac_status=$?
22030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031: (exit $ac_status); } &&
22032: { ac_try='test -s conftest$ac_exeext'
22033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034: (eval $ac_try) 2>&5
22035: ac_status=$?
22036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037: (exit $ac_status); }; }; then
22038: ac_cv_lib_svld_dlopen=yes
22039: else
22040: echo "$as_me: failed program was:" >&5
22041: sed 's/^/| /' conftest.$ac_ext >&5
22042:
22043: ac_cv_lib_svld_dlopen=no
22044: fi
22045: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22046: LIBS=$ac_check_lib_save_LIBS
22047: fi
22048: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
22049: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
22050: if test $ac_cv_lib_svld_dlopen = yes; then
22051: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22052: else
22053: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
22054: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
22055: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
22056: echo $ECHO_N "(cached) $ECHO_C" >&6
22057: else
22058: ac_check_lib_save_LIBS=$LIBS
22059: LIBS="-ldld $LIBS"
22060: cat >conftest.$ac_ext <<_ACEOF
22061: #line $LINENO "configure"
22062: /* confdefs.h. */
22063: _ACEOF
22064: cat confdefs.h >>conftest.$ac_ext
22065: cat >>conftest.$ac_ext <<_ACEOF
22066: /* end confdefs.h. */
22067:
22068: /* Override any gcc2 internal prototype to avoid an error. */
22069: #ifdef __cplusplus
22070: extern "C"
22071: #endif
22072: /* We use char because int might match the return type of a gcc2
22073: builtin and then its argument prototype would still apply. */
22074: char dld_link ();
22075: int
22076: main ()
22077: {
22078: dld_link ();
22079: ;
22080: return 0;
22081: }
22082: _ACEOF
22083: rm -f conftest.$ac_objext conftest$ac_exeext
22084: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085: (eval $ac_link) 2>&5
22086: ac_status=$?
22087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088: (exit $ac_status); } &&
22089: { ac_try='test -s conftest$ac_exeext'
22090: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091: (eval $ac_try) 2>&5
22092: ac_status=$?
22093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094: (exit $ac_status); }; }; then
22095: ac_cv_lib_dld_dld_link=yes
22096: else
22097: echo "$as_me: failed program was:" >&5
22098: sed 's/^/| /' conftest.$ac_ext >&5
22099:
22100: ac_cv_lib_dld_dld_link=no
22101: fi
22102: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22103: LIBS=$ac_check_lib_save_LIBS
22104: fi
22105: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
22106: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
22107: if test $ac_cv_lib_dld_dld_link = yes; then
22108: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
22109: fi
22110:
22111:
22112: fi
22113:
22114:
22115: fi
22116:
22117:
22118: fi
22119:
22120:
22121: fi
22122:
22123:
22124: fi
22125:
22126: ;;
22127: esac
22128:
22129: if test "x$lt_cv_dlopen" != xno; then
22130: enable_dlopen=yes
22131: else
22132: enable_dlopen=no
22133: fi
22134:
22135: case $lt_cv_dlopen in
22136: dlopen)
22137: save_CPPFLAGS="$CPPFLAGS"
22138: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22139:
22140: save_LDFLAGS="$LDFLAGS"
22141: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22142:
22143: save_LIBS="$LIBS"
22144: LIBS="$lt_cv_dlopen_libs $LIBS"
22145:
22146: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
22147: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
22148: if test "${lt_cv_dlopen_self+set}" = set; then
22149: echo $ECHO_N "(cached) $ECHO_C" >&6
22150: else
22151: if test "$cross_compiling" = yes; then :
22152: lt_cv_dlopen_self=cross
22153: else
22154: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22155: lt_status=$lt_dlunknown
22156: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 22157: #line 22157 "configure"
1.1 root 22158: #include "confdefs.h"
22159:
22160: #if HAVE_DLFCN_H
22161: #include <dlfcn.h>
22162: #endif
22163:
22164: #include <stdio.h>
22165:
22166: #ifdef RTLD_GLOBAL
22167: # define LT_DLGLOBAL RTLD_GLOBAL
22168: #else
22169: # ifdef DL_GLOBAL
22170: # define LT_DLGLOBAL DL_GLOBAL
22171: # else
22172: # define LT_DLGLOBAL 0
22173: # endif
22174: #endif
22175:
22176: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22177: find out it does not work in some platform. */
22178: #ifndef LT_DLLAZY_OR_NOW
22179: # ifdef RTLD_LAZY
22180: # define LT_DLLAZY_OR_NOW RTLD_LAZY
22181: # else
22182: # ifdef DL_LAZY
22183: # define LT_DLLAZY_OR_NOW DL_LAZY
22184: # else
22185: # ifdef RTLD_NOW
22186: # define LT_DLLAZY_OR_NOW RTLD_NOW
22187: # else
22188: # ifdef DL_NOW
22189: # define LT_DLLAZY_OR_NOW DL_NOW
22190: # else
22191: # define LT_DLLAZY_OR_NOW 0
22192: # endif
22193: # endif
22194: # endif
22195: # endif
22196: #endif
22197:
22198: #ifdef __cplusplus
22199: extern "C" void exit (int);
22200: #endif
22201:
22202: void fnord() { int i=42;}
22203: int main ()
22204: {
22205: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22206: int status = $lt_dlunknown;
22207:
22208: if (self)
22209: {
22210: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22211: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22212: /* dlclose (self); */
22213: }
22214:
22215: exit (status);
22216: }
22217: EOF
22218: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22219: (eval $ac_link) 2>&5
22220: ac_status=$?
22221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22223: (./conftest; exit; ) 2>/dev/null
22224: lt_status=$?
22225: case x$lt_status in
22226: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22227: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22228: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
22229: esac
22230: else :
22231: # compilation failed
22232: lt_cv_dlopen_self=no
22233: fi
22234: fi
22235: rm -fr conftest*
22236:
22237:
22238: fi
22239: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
22240: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
22241:
22242: if test "x$lt_cv_dlopen_self" = xyes; then
22243: LDFLAGS="$LDFLAGS $link_static_flag"
22244: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
22245: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22246: if test "${lt_cv_dlopen_self_static+set}" = set; then
22247: echo $ECHO_N "(cached) $ECHO_C" >&6
22248: else
22249: if test "$cross_compiling" = yes; then :
22250: lt_cv_dlopen_self_static=cross
22251: else
22252: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22253: lt_status=$lt_dlunknown
22254: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 22255: #line 22255 "configure"
1.1 root 22256: #include "confdefs.h"
22257:
22258: #if HAVE_DLFCN_H
22259: #include <dlfcn.h>
22260: #endif
22261:
22262: #include <stdio.h>
22263:
22264: #ifdef RTLD_GLOBAL
22265: # define LT_DLGLOBAL RTLD_GLOBAL
22266: #else
22267: # ifdef DL_GLOBAL
22268: # define LT_DLGLOBAL DL_GLOBAL
22269: # else
22270: # define LT_DLGLOBAL 0
22271: # endif
22272: #endif
22273:
22274: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22275: find out it does not work in some platform. */
22276: #ifndef LT_DLLAZY_OR_NOW
22277: # ifdef RTLD_LAZY
22278: # define LT_DLLAZY_OR_NOW RTLD_LAZY
22279: # else
22280: # ifdef DL_LAZY
22281: # define LT_DLLAZY_OR_NOW DL_LAZY
22282: # else
22283: # ifdef RTLD_NOW
22284: # define LT_DLLAZY_OR_NOW RTLD_NOW
22285: # else
22286: # ifdef DL_NOW
22287: # define LT_DLLAZY_OR_NOW DL_NOW
22288: # else
22289: # define LT_DLLAZY_OR_NOW 0
22290: # endif
22291: # endif
22292: # endif
22293: # endif
22294: #endif
22295:
22296: #ifdef __cplusplus
22297: extern "C" void exit (int);
22298: #endif
22299:
22300: void fnord() { int i=42;}
22301: int main ()
22302: {
22303: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22304: int status = $lt_dlunknown;
22305:
22306: if (self)
22307: {
22308: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22309: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22310: /* dlclose (self); */
22311: }
22312:
22313: exit (status);
22314: }
22315: EOF
22316: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22317: (eval $ac_link) 2>&5
22318: ac_status=$?
22319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22321: (./conftest; exit; ) 2>/dev/null
22322: lt_status=$?
22323: case x$lt_status in
22324: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22325: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22326: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
22327: esac
22328: else :
22329: # compilation failed
22330: lt_cv_dlopen_self_static=no
22331: fi
22332: fi
22333: rm -fr conftest*
22334:
22335:
22336: fi
22337: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
22338: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
22339: fi
22340:
22341: CPPFLAGS="$save_CPPFLAGS"
22342: LDFLAGS="$save_LDFLAGS"
22343: LIBS="$save_LIBS"
22344: ;;
22345: esac
22346:
22347: case $lt_cv_dlopen_self in
22348: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22349: *) enable_dlopen_self=unknown ;;
22350: esac
22351:
22352: case $lt_cv_dlopen_self_static in
22353: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22354: *) enable_dlopen_self_static=unknown ;;
22355: esac
22356: fi
22357:
22358:
22359: # The else clause should only fire when bootstrapping the
22360: # libtool distribution, otherwise you forgot to ship ltmain.sh
22361: # with your package, and you will get complaints that there are
22362: # no rules to generate ltmain.sh.
22363: if test -f "$ltmain"; then
22364: # See if we are running on zsh, and set the options which allow our commands through
22365: # without removal of \ escapes.
22366: if test -n "${ZSH_VERSION+set}" ; then
22367: setopt NO_GLOB_SUBST
22368: fi
22369: # Now quote all the things that may contain metacharacters while being
22370: # careful not to overquote the AC_SUBSTed values. We take copies of the
22371: # variables and quote the copies for generation of the libtool script.
22372: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22373: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22374: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22375: deplibs_check_method reload_flag reload_cmds need_locks \
22376: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22377: lt_cv_sys_global_symbol_to_c_name_address \
22378: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22379: old_postinstall_cmds old_postuninstall_cmds \
22380: compiler_GCJ \
22381: CC_GCJ \
22382: LD_GCJ \
22383: lt_prog_compiler_wl_GCJ \
22384: lt_prog_compiler_pic_GCJ \
22385: lt_prog_compiler_static_GCJ \
22386: lt_prog_compiler_no_builtin_flag_GCJ \
22387: export_dynamic_flag_spec_GCJ \
22388: thread_safe_flag_spec_GCJ \
22389: whole_archive_flag_spec_GCJ \
22390: enable_shared_with_static_runtimes_GCJ \
22391: old_archive_cmds_GCJ \
22392: old_archive_from_new_cmds_GCJ \
22393: predep_objects_GCJ \
22394: postdep_objects_GCJ \
22395: predeps_GCJ \
22396: postdeps_GCJ \
22397: compiler_lib_search_path_GCJ \
22398: archive_cmds_GCJ \
22399: archive_expsym_cmds_GCJ \
22400: postinstall_cmds_GCJ \
22401: postuninstall_cmds_GCJ \
22402: old_archive_from_expsyms_cmds_GCJ \
22403: allow_undefined_flag_GCJ \
22404: no_undefined_flag_GCJ \
22405: export_symbols_cmds_GCJ \
22406: hardcode_libdir_flag_spec_GCJ \
22407: hardcode_libdir_flag_spec_ld_GCJ \
22408: hardcode_libdir_separator_GCJ \
22409: hardcode_automatic_GCJ \
22410: module_cmds_GCJ \
22411: module_expsym_cmds_GCJ \
22412: lt_cv_prog_compiler_c_o_GCJ \
22413: exclude_expsyms_GCJ \
22414: include_expsyms_GCJ; do
22415:
22416: case $var in
22417: old_archive_cmds_GCJ | \
22418: old_archive_from_new_cmds_GCJ | \
22419: archive_cmds_GCJ | \
22420: archive_expsym_cmds_GCJ | \
22421: module_cmds_GCJ | \
22422: module_expsym_cmds_GCJ | \
22423: old_archive_from_expsyms_cmds_GCJ | \
22424: export_symbols_cmds_GCJ | \
22425: extract_expsyms_cmds | reload_cmds | finish_cmds | \
22426: postinstall_cmds | postuninstall_cmds | \
22427: old_postinstall_cmds | old_postuninstall_cmds | \
22428: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22429: # Double-quote double-evaled strings.
22430: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22431: ;;
22432: *)
22433: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22434: ;;
22435: esac
22436: done
22437:
22438: case $lt_echo in
22439: *'\$0 --fallback-echo"')
22440: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22441: ;;
22442: esac
22443:
22444: cfgfile="$ofile"
22445:
22446: cat <<__EOF__ >> "$cfgfile"
22447: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22448:
22449: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22450:
22451: # Shell to use when invoking shell scripts.
22452: SHELL=$lt_SHELL
22453:
22454: # Whether or not to build shared libraries.
22455: build_libtool_libs=$enable_shared
22456:
22457: # Whether or not to build static libraries.
22458: build_old_libs=$enable_static
22459:
22460: # Whether or not to add -lc for building shared libraries.
22461: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
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_GCJ
22465:
22466: # Whether or not to optimize for fast installation.
22467: fast_install=$enable_fast_install
22468:
22469: # The host system.
22470: host_alias=$host_alias
22471: host=$host
22472:
22473: # An echo program that does not interpret backslashes.
22474: echo=$lt_echo
22475:
22476: # The archiver.
22477: AR=$lt_AR
22478: AR_FLAGS=$lt_AR_FLAGS
22479:
22480: # A C compiler.
22481: LTCC=$lt_LTCC
22482:
22483: # A language-specific compiler.
22484: CC=$lt_compiler_GCJ
22485:
22486: # Is the compiler the GNU C compiler?
22487: with_gcc=$GCC_GCJ
22488:
22489: # An ERE matcher.
22490: EGREP=$lt_EGREP
22491:
22492: # The linker used to build libraries.
22493: LD=$lt_LD_GCJ
22494:
22495: # Whether we need hard or soft links.
22496: LN_S=$lt_LN_S
22497:
22498: # A BSD-compatible nm program.
22499: NM=$lt_NM
22500:
22501: # A symbol stripping program
22502: STRIP=$STRIP
22503:
22504: # Used to examine libraries when file_magic_cmd begins "file"
22505: MAGIC_CMD=$MAGIC_CMD
22506:
22507: # Used on cygwin: DLL creation program.
22508: DLLTOOL="$DLLTOOL"
22509:
22510: # Used on cygwin: object dumper.
22511: OBJDUMP="$OBJDUMP"
22512:
22513: # Used on cygwin: assembler.
22514: AS="$AS"
22515:
22516: # The name of the directory that contains temporary libtool files.
22517: objdir=$objdir
22518:
22519: # How to create reloadable object files.
22520: reload_flag=$lt_reload_flag
22521: reload_cmds=$lt_reload_cmds
22522:
22523: # How to pass a linker flag through the compiler.
22524: wl=$lt_lt_prog_compiler_wl_GCJ
22525:
22526: # Object file suffix (normally "o").
22527: objext="$ac_objext"
22528:
22529: # Old archive suffix (normally "a").
22530: libext="$libext"
22531:
22532: # Shared library suffix (normally ".so").
22533: shrext='$shrext'
22534:
22535: # Executable file suffix (normally "").
22536: exeext="$exeext"
22537:
22538: # Additional compiler flags for building library objects.
22539: pic_flag=$lt_lt_prog_compiler_pic_GCJ
22540: pic_mode=$pic_mode
22541:
22542: # What is the maximum length of a command?
22543: max_cmd_len=$lt_cv_sys_max_cmd_len
22544:
22545: # Does compiler simultaneously support -c and -o options?
22546: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22547:
22548: # Must we lock files when doing compilation ?
22549: need_locks=$lt_need_locks
22550:
22551: # Do we need the lib prefix for modules?
22552: need_lib_prefix=$need_lib_prefix
22553:
22554: # Do we need a version for libraries?
22555: need_version=$need_version
22556:
22557: # Whether dlopen is supported.
22558: dlopen_support=$enable_dlopen
22559:
22560: # Whether dlopen of programs is supported.
22561: dlopen_self=$enable_dlopen_self
22562:
22563: # Whether dlopen of statically linked programs is supported.
22564: dlopen_self_static=$enable_dlopen_self_static
22565:
22566: # Compiler flag to prevent dynamic linking.
22567: link_static_flag=$lt_lt_prog_compiler_static_GCJ
22568:
22569: # Compiler flag to turn off builtin functions.
22570: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22571:
22572: # Compiler flag to allow reflexive dlopens.
22573: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22574:
22575: # Compiler flag to generate shared objects directly from archives.
22576: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22577:
22578: # Compiler flag to generate thread-safe objects.
22579: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22580:
22581: # Library versioning type.
22582: version_type=$version_type
22583:
22584: # Format of library name prefix.
22585: libname_spec=$lt_libname_spec
22586:
22587: # List of archive names. First name is the real one, the rest are links.
22588: # The last name is the one that the linker finds with -lNAME.
22589: library_names_spec=$lt_library_names_spec
22590:
22591: # The coded name of the library, if different from the real name.
22592: soname_spec=$lt_soname_spec
22593:
22594: # Commands used to build and install an old-style archive.
22595: RANLIB=$lt_RANLIB
22596: old_archive_cmds=$lt_old_archive_cmds_GCJ
22597: old_postinstall_cmds=$lt_old_postinstall_cmds
22598: old_postuninstall_cmds=$lt_old_postuninstall_cmds
22599:
22600: # Create an old-style archive from a shared archive.
22601: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22602:
22603: # Create a temporary old-style archive to link instead of a shared archive.
22604: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22605:
22606: # Commands used to build and install a shared archive.
22607: archive_cmds=$lt_archive_cmds_GCJ
22608: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22609: postinstall_cmds=$lt_postinstall_cmds
22610: postuninstall_cmds=$lt_postuninstall_cmds
22611:
22612: # Commands used to build a loadable module (assumed same as above if empty)
22613: module_cmds=$lt_module_cmds_GCJ
22614: module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22615:
22616: # Commands to strip libraries.
22617: old_striplib=$lt_old_striplib
22618: striplib=$lt_striplib
22619:
22620: # Dependencies to place before the objects being linked to create a
22621: # shared library.
22622: predep_objects=$lt_predep_objects_GCJ
22623:
22624: # Dependencies to place after the objects being linked to create a
22625: # shared library.
22626: postdep_objects=$lt_postdep_objects_GCJ
22627:
22628: # Dependencies to place before the objects being linked to create a
22629: # shared library.
22630: predeps=$lt_predeps_GCJ
22631:
22632: # Dependencies to place after the objects being linked to create a
22633: # shared library.
22634: postdeps=$lt_postdeps_GCJ
22635:
22636: # The library search path used internally by the compiler when linking
22637: # a shared library.
22638: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22639:
22640: # Method to check whether dependent libraries are shared objects.
22641: deplibs_check_method=$lt_deplibs_check_method
22642:
22643: # Command to use when deplibs_check_method == file_magic.
22644: file_magic_cmd=$lt_file_magic_cmd
22645:
22646: # Flag that allows shared libraries with undefined symbols to be built.
22647: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22648:
22649: # Flag that forces no undefined symbols.
22650: no_undefined_flag=$lt_no_undefined_flag_GCJ
22651:
22652: # Commands used to finish a libtool library installation in a directory.
22653: finish_cmds=$lt_finish_cmds
22654:
22655: # Same as above, but a single script fragment to be evaled but not shown.
22656: finish_eval=$lt_finish_eval
22657:
22658: # Take the output of nm and produce a listing of raw symbols and C names.
22659: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22660:
22661: # Transform the output of nm in a proper C declaration
22662: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22663:
22664: # Transform the output of nm in a C name address pair
22665: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22666:
22667: # This is the shared library runtime path variable.
22668: runpath_var=$runpath_var
22669:
22670: # This is the shared library path variable.
22671: shlibpath_var=$shlibpath_var
22672:
22673: # Is shlibpath searched before the hard-coded library search path?
22674: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22675:
22676: # How to hardcode a shared library path into an executable.
22677: hardcode_action=$hardcode_action_GCJ
22678:
22679: # Whether we should hardcode library paths into libraries.
22680: hardcode_into_libs=$hardcode_into_libs
22681:
22682: # Flag to hardcode \$libdir into a binary during linking.
22683: # This must work even if \$libdir does not exist.
22684: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22685:
22686: # If ld is used when linking, flag to hardcode \$libdir into
22687: # a binary during linking. This must work even if \$libdir does
22688: # not exist.
22689: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22690:
22691: # Whether we need a single -rpath flag with a separated argument.
22692: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22693:
22694: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22695: # resulting binary.
22696: hardcode_direct=$hardcode_direct_GCJ
22697:
22698: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22699: # resulting binary.
22700: hardcode_minus_L=$hardcode_minus_L_GCJ
22701:
22702: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22703: # the resulting binary.
22704: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22705:
22706: # Set to yes if building a shared library automatically hardcodes DIR into the library
22707: # and all subsequent libraries and executables linked against it.
22708: hardcode_automatic=$hardcode_automatic_GCJ
22709:
22710: # Variables whose values should be saved in libtool wrapper scripts and
22711: # restored at relink time.
22712: variables_saved_for_relink="$variables_saved_for_relink"
22713:
22714: # Whether libtool must link a program against all its dependency libraries.
22715: link_all_deplibs=$link_all_deplibs_GCJ
22716:
22717: # Compile-time system search path for libraries
22718: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22719:
22720: # Run-time system search path for libraries
22721: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22722:
22723: # Fix the shell variable \$srcfile for the compiler.
22724: fix_srcfile_path="$fix_srcfile_path_GCJ"
22725:
22726: # Set to yes if exported symbols are required.
22727: always_export_symbols=$always_export_symbols_GCJ
22728:
22729: # The commands to list exported symbols.
22730: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22731:
22732: # The commands to extract the exported symbol list from a shared archive.
22733: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22734:
22735: # Symbols that should not be listed in the preloaded symbols.
22736: exclude_expsyms=$lt_exclude_expsyms_GCJ
22737:
22738: # Symbols that must always be exported.
22739: include_expsyms=$lt_include_expsyms_GCJ
22740:
22741: # ### END LIBTOOL TAG CONFIG: $tagname
22742:
22743: __EOF__
22744:
22745:
22746: else
22747: # If there is no Makefile yet, we rely on a make rule to execute
22748: # `config.status --recheck' to rerun these tests and create the
22749: # libtool script then.
22750: test -f Makefile && make "$ltmain"
22751: fi
22752:
22753:
22754: ac_ext=c
22755: ac_cpp='$CPP $CPPFLAGS'
22756: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22757: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22758: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22759:
22760: CC="$lt_save_CC"
22761:
22762: else
22763: tagname=""
22764: fi
22765: ;;
22766:
22767: RC)
22768:
22769:
22770:
22771: # Source file extension for RC test sources.
22772: ac_ext=rc
22773:
22774: # Object file extension for compiled RC test sources.
22775: objext=o
22776: objext_RC=$objext
22777:
22778: # Code to be used in simple compile tests
22779: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22780:
22781: # Code to be used in simple link tests
22782: lt_simple_link_test_code="$lt_simple_compile_test_code"
22783:
22784: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22785:
22786: # If no C compiler was specified, use CC.
22787: LTCC=${LTCC-"$CC"}
22788:
22789: # Allow CC to be a program name with arguments.
22790: compiler=$CC
22791:
22792:
22793: # Allow CC to be a program name with arguments.
22794: lt_save_CC="$CC"
22795: CC=${RC-"windres"}
22796: compiler=$CC
22797: compiler_RC=$CC
22798: lt_cv_prog_compiler_c_o_RC=yes
22799:
22800: # The else clause should only fire when bootstrapping the
22801: # libtool distribution, otherwise you forgot to ship ltmain.sh
22802: # with your package, and you will get complaints that there are
22803: # no rules to generate ltmain.sh.
22804: if test -f "$ltmain"; then
22805: # See if we are running on zsh, and set the options which allow our commands through
22806: # without removal of \ escapes.
22807: if test -n "${ZSH_VERSION+set}" ; then
22808: setopt NO_GLOB_SUBST
22809: fi
22810: # Now quote all the things that may contain metacharacters while being
22811: # careful not to overquote the AC_SUBSTed values. We take copies of the
22812: # variables and quote the copies for generation of the libtool script.
22813: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22814: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22815: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22816: deplibs_check_method reload_flag reload_cmds need_locks \
22817: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22818: lt_cv_sys_global_symbol_to_c_name_address \
22819: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22820: old_postinstall_cmds old_postuninstall_cmds \
22821: compiler_RC \
22822: CC_RC \
22823: LD_RC \
22824: lt_prog_compiler_wl_RC \
22825: lt_prog_compiler_pic_RC \
22826: lt_prog_compiler_static_RC \
22827: lt_prog_compiler_no_builtin_flag_RC \
22828: export_dynamic_flag_spec_RC \
22829: thread_safe_flag_spec_RC \
22830: whole_archive_flag_spec_RC \
22831: enable_shared_with_static_runtimes_RC \
22832: old_archive_cmds_RC \
22833: old_archive_from_new_cmds_RC \
22834: predep_objects_RC \
22835: postdep_objects_RC \
22836: predeps_RC \
22837: postdeps_RC \
22838: compiler_lib_search_path_RC \
22839: archive_cmds_RC \
22840: archive_expsym_cmds_RC \
22841: postinstall_cmds_RC \
22842: postuninstall_cmds_RC \
22843: old_archive_from_expsyms_cmds_RC \
22844: allow_undefined_flag_RC \
22845: no_undefined_flag_RC \
22846: export_symbols_cmds_RC \
22847: hardcode_libdir_flag_spec_RC \
22848: hardcode_libdir_flag_spec_ld_RC \
22849: hardcode_libdir_separator_RC \
22850: hardcode_automatic_RC \
22851: module_cmds_RC \
22852: module_expsym_cmds_RC \
22853: lt_cv_prog_compiler_c_o_RC \
22854: exclude_expsyms_RC \
22855: include_expsyms_RC; do
22856:
22857: case $var in
22858: old_archive_cmds_RC | \
22859: old_archive_from_new_cmds_RC | \
22860: archive_cmds_RC | \
22861: archive_expsym_cmds_RC | \
22862: module_cmds_RC | \
22863: module_expsym_cmds_RC | \
22864: old_archive_from_expsyms_cmds_RC | \
22865: export_symbols_cmds_RC | \
22866: extract_expsyms_cmds | reload_cmds | finish_cmds | \
22867: postinstall_cmds | postuninstall_cmds | \
22868: old_postinstall_cmds | old_postuninstall_cmds | \
22869: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22870: # Double-quote double-evaled strings.
22871: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22872: ;;
22873: *)
22874: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22875: ;;
22876: esac
22877: done
22878:
22879: case $lt_echo in
22880: *'\$0 --fallback-echo"')
22881: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22882: ;;
22883: esac
22884:
22885: cfgfile="$ofile"
22886:
22887: cat <<__EOF__ >> "$cfgfile"
22888: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22889:
22890: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22891:
22892: # Shell to use when invoking shell scripts.
22893: SHELL=$lt_SHELL
22894:
22895: # Whether or not to build shared libraries.
22896: build_libtool_libs=$enable_shared
22897:
22898: # Whether or not to build static libraries.
22899: build_old_libs=$enable_static
22900:
22901: # Whether or not to add -lc for building shared libraries.
22902: build_libtool_need_lc=$archive_cmds_need_lc_RC
22903:
22904: # Whether or not to disallow shared libs when runtime libs are static
22905: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22906:
22907: # Whether or not to optimize for fast installation.
22908: fast_install=$enable_fast_install
22909:
22910: # The host system.
22911: host_alias=$host_alias
22912: host=$host
22913:
22914: # An echo program that does not interpret backslashes.
22915: echo=$lt_echo
22916:
22917: # The archiver.
22918: AR=$lt_AR
22919: AR_FLAGS=$lt_AR_FLAGS
22920:
22921: # A C compiler.
22922: LTCC=$lt_LTCC
22923:
22924: # A language-specific compiler.
22925: CC=$lt_compiler_RC
22926:
22927: # Is the compiler the GNU C compiler?
22928: with_gcc=$GCC_RC
22929:
22930: # An ERE matcher.
22931: EGREP=$lt_EGREP
22932:
22933: # The linker used to build libraries.
22934: LD=$lt_LD_RC
22935:
22936: # Whether we need hard or soft links.
22937: LN_S=$lt_LN_S
22938:
22939: # A BSD-compatible nm program.
22940: NM=$lt_NM
22941:
22942: # A symbol stripping program
22943: STRIP=$STRIP
22944:
22945: # Used to examine libraries when file_magic_cmd begins "file"
22946: MAGIC_CMD=$MAGIC_CMD
22947:
22948: # Used on cygwin: DLL creation program.
22949: DLLTOOL="$DLLTOOL"
22950:
22951: # Used on cygwin: object dumper.
22952: OBJDUMP="$OBJDUMP"
22953:
22954: # Used on cygwin: assembler.
22955: AS="$AS"
22956:
22957: # The name of the directory that contains temporary libtool files.
22958: objdir=$objdir
22959:
22960: # How to create reloadable object files.
22961: reload_flag=$lt_reload_flag
22962: reload_cmds=$lt_reload_cmds
22963:
22964: # How to pass a linker flag through the compiler.
22965: wl=$lt_lt_prog_compiler_wl_RC
22966:
22967: # Object file suffix (normally "o").
22968: objext="$ac_objext"
22969:
22970: # Old archive suffix (normally "a").
22971: libext="$libext"
22972:
22973: # Shared library suffix (normally ".so").
22974: shrext='$shrext'
22975:
22976: # Executable file suffix (normally "").
22977: exeext="$exeext"
22978:
22979: # Additional compiler flags for building library objects.
22980: pic_flag=$lt_lt_prog_compiler_pic_RC
22981: pic_mode=$pic_mode
22982:
22983: # What is the maximum length of a command?
22984: max_cmd_len=$lt_cv_sys_max_cmd_len
22985:
22986: # Does compiler simultaneously support -c and -o options?
22987: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22988:
22989: # Must we lock files when doing compilation ?
22990: need_locks=$lt_need_locks
22991:
22992: # Do we need the lib prefix for modules?
22993: need_lib_prefix=$need_lib_prefix
22994:
22995: # Do we need a version for libraries?
22996: need_version=$need_version
22997:
22998: # Whether dlopen is supported.
22999: dlopen_support=$enable_dlopen
23000:
23001: # Whether dlopen of programs is supported.
23002: dlopen_self=$enable_dlopen_self
23003:
23004: # Whether dlopen of statically linked programs is supported.
23005: dlopen_self_static=$enable_dlopen_self_static
23006:
23007: # Compiler flag to prevent dynamic linking.
23008: link_static_flag=$lt_lt_prog_compiler_static_RC
23009:
23010: # Compiler flag to turn off builtin functions.
23011: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
23012:
23013: # Compiler flag to allow reflexive dlopens.
23014: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
23015:
23016: # Compiler flag to generate shared objects directly from archives.
23017: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
23018:
23019: # Compiler flag to generate thread-safe objects.
23020: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
23021:
23022: # Library versioning type.
23023: version_type=$version_type
23024:
23025: # Format of library name prefix.
23026: libname_spec=$lt_libname_spec
23027:
23028: # List of archive names. First name is the real one, the rest are links.
23029: # The last name is the one that the linker finds with -lNAME.
23030: library_names_spec=$lt_library_names_spec
23031:
23032: # The coded name of the library, if different from the real name.
23033: soname_spec=$lt_soname_spec
23034:
23035: # Commands used to build and install an old-style archive.
23036: RANLIB=$lt_RANLIB
23037: old_archive_cmds=$lt_old_archive_cmds_RC
23038: old_postinstall_cmds=$lt_old_postinstall_cmds
23039: old_postuninstall_cmds=$lt_old_postuninstall_cmds
23040:
23041: # Create an old-style archive from a shared archive.
23042: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
23043:
23044: # Create a temporary old-style archive to link instead of a shared archive.
23045: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
23046:
23047: # Commands used to build and install a shared archive.
23048: archive_cmds=$lt_archive_cmds_RC
23049: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
23050: postinstall_cmds=$lt_postinstall_cmds
23051: postuninstall_cmds=$lt_postuninstall_cmds
23052:
23053: # Commands used to build a loadable module (assumed same as above if empty)
23054: module_cmds=$lt_module_cmds_RC
23055: module_expsym_cmds=$lt_module_expsym_cmds_RC
23056:
23057: # Commands to strip libraries.
23058: old_striplib=$lt_old_striplib
23059: striplib=$lt_striplib
23060:
23061: # Dependencies to place before the objects being linked to create a
23062: # shared library.
23063: predep_objects=$lt_predep_objects_RC
23064:
23065: # Dependencies to place after the objects being linked to create a
23066: # shared library.
23067: postdep_objects=$lt_postdep_objects_RC
23068:
23069: # Dependencies to place before the objects being linked to create a
23070: # shared library.
23071: predeps=$lt_predeps_RC
23072:
23073: # Dependencies to place after the objects being linked to create a
23074: # shared library.
23075: postdeps=$lt_postdeps_RC
23076:
23077: # The library search path used internally by the compiler when linking
23078: # a shared library.
23079: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
23080:
23081: # Method to check whether dependent libraries are shared objects.
23082: deplibs_check_method=$lt_deplibs_check_method
23083:
23084: # Command to use when deplibs_check_method == file_magic.
23085: file_magic_cmd=$lt_file_magic_cmd
23086:
23087: # Flag that allows shared libraries with undefined symbols to be built.
23088: allow_undefined_flag=$lt_allow_undefined_flag_RC
23089:
23090: # Flag that forces no undefined symbols.
23091: no_undefined_flag=$lt_no_undefined_flag_RC
23092:
23093: # Commands used to finish a libtool library installation in a directory.
23094: finish_cmds=$lt_finish_cmds
23095:
23096: # Same as above, but a single script fragment to be evaled but not shown.
23097: finish_eval=$lt_finish_eval
23098:
23099: # Take the output of nm and produce a listing of raw symbols and C names.
23100: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23101:
23102: # Transform the output of nm in a proper C declaration
23103: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23104:
23105: # Transform the output of nm in a C name address pair
23106: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23107:
23108: # This is the shared library runtime path variable.
23109: runpath_var=$runpath_var
23110:
23111: # This is the shared library path variable.
23112: shlibpath_var=$shlibpath_var
23113:
23114: # Is shlibpath searched before the hard-coded library search path?
23115: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23116:
23117: # How to hardcode a shared library path into an executable.
23118: hardcode_action=$hardcode_action_RC
23119:
23120: # Whether we should hardcode library paths into libraries.
23121: hardcode_into_libs=$hardcode_into_libs
23122:
23123: # Flag to hardcode \$libdir into a binary during linking.
23124: # This must work even if \$libdir does not exist.
23125: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
23126:
23127: # If ld is used when linking, flag to hardcode \$libdir into
23128: # a binary during linking. This must work even if \$libdir does
23129: # not exist.
23130: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
23131:
23132: # Whether we need a single -rpath flag with a separated argument.
23133: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
23134:
23135: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23136: # resulting binary.
23137: hardcode_direct=$hardcode_direct_RC
23138:
23139: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23140: # resulting binary.
23141: hardcode_minus_L=$hardcode_minus_L_RC
23142:
23143: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23144: # the resulting binary.
23145: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
23146:
23147: # Set to yes if building a shared library automatically hardcodes DIR into the library
23148: # and all subsequent libraries and executables linked against it.
23149: hardcode_automatic=$hardcode_automatic_RC
23150:
23151: # Variables whose values should be saved in libtool wrapper scripts and
23152: # restored at relink time.
23153: variables_saved_for_relink="$variables_saved_for_relink"
23154:
23155: # Whether libtool must link a program against all its dependency libraries.
23156: link_all_deplibs=$link_all_deplibs_RC
23157:
23158: # Compile-time system search path for libraries
23159: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23160:
23161: # Run-time system search path for libraries
23162: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23163:
23164: # Fix the shell variable \$srcfile for the compiler.
23165: fix_srcfile_path="$fix_srcfile_path_RC"
23166:
23167: # Set to yes if exported symbols are required.
23168: always_export_symbols=$always_export_symbols_RC
23169:
23170: # The commands to list exported symbols.
23171: export_symbols_cmds=$lt_export_symbols_cmds_RC
23172:
23173: # The commands to extract the exported symbol list from a shared archive.
23174: extract_expsyms_cmds=$lt_extract_expsyms_cmds
23175:
23176: # Symbols that should not be listed in the preloaded symbols.
23177: exclude_expsyms=$lt_exclude_expsyms_RC
23178:
23179: # Symbols that must always be exported.
23180: include_expsyms=$lt_include_expsyms_RC
23181:
23182: # ### END LIBTOOL TAG CONFIG: $tagname
23183:
23184: __EOF__
23185:
23186:
23187: else
23188: # If there is no Makefile yet, we rely on a make rule to execute
23189: # `config.status --recheck' to rerun these tests and create the
23190: # libtool script then.
23191: test -f Makefile && make "$ltmain"
23192: fi
23193:
23194:
23195: ac_ext=c
23196: ac_cpp='$CPP $CPPFLAGS'
23197: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23198: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23199: ac_compiler_gnu=$ac_cv_c_compiler_gnu
23200:
23201: CC="$lt_save_CC"
23202:
23203: ;;
23204:
23205: *)
23206: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
23207: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23208: { (exit 1); exit 1; }; }
23209: ;;
23210: esac
23211:
23212: # Append the new tag name to the list of available tags.
23213: if test -n "$tagname" ; then
23214: available_tags="$available_tags $tagname"
23215: fi
23216: fi
23217: done
23218: IFS="$lt_save_ifs"
23219:
23220: # Now substitute the updated list of available tags.
23221: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23222: mv "${ofile}T" "$ofile"
23223: chmod +x "$ofile"
23224: else
23225: rm -f "${ofile}T"
23226: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
23227: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23228: { (exit 1); exit 1; }; }
23229: fi
23230: fi
23231:
23232:
23233:
23234: # This can be used to rebuild libtool when needed
23235: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23236:
23237: # Always use our own libtool.
23238: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23239:
23240: # Prevent multiple expansion
23241:
23242:
23243:
23244:
23245:
23246:
23247:
23248:
23249:
23250:
23251:
23252:
23253:
23254:
23255:
23256:
23257:
23258:
23259:
23260:
23261:
23262:
23263:
23264: subdirs="$subdirs libltdl"
23265:
23266: TME_PREOPEN=
23267: if test $enable_shared = no; then
23268: TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`'
23269: fi
23270:
23271:
23272: # Check whether --enable-debug or --disable-debug was given.
23273: if test "${enable_debug+set}" = set; then
23274: enableval="$enable_debug"
23275:
23276: else
23277: enable_debug=yes
23278: fi;
23279: if test "x$enable_debug" = "xyes"; then
23280: CFLAGS="${CFLAGS-} -g -O0"
23281: CXXFLAGS="${CXXFLAGS-} -g3 -O0"
23282: fi
23283: # Check whether --enable-warnings or --disable-warnings was given.
23284: if test "${enable_warnings+set}" = set; then
23285: enableval="$enable_warnings"
23286:
23287: else
23288: enable_warnings=yes
23289: fi;
23290: if test "x$enable_warnings" = "xyes" -a "x$GCC" = "xyes"; then
23291: CFLAGS="${CFLAGS-} -Wall -Werror"
23292: CXXFLAGS="${CXXFLAGS-} -W"
23293: fi
23294:
23295: ac_config_commands="$ac_config_commands default-1"
23296:
23297:
1.1.1.2 ! root 23298: ac_config_files="$ac_config_files Makefile tme/Makefile tme/ic/Makefile tme/machine/Makefile tme/generic/Makefile tme/scsi/Makefile libtme/Makefile ic/Makefile ic/m68k/Makefile machine/Makefile machine/sun/Makefile machine/sun2/Makefile host/Makefile host/posix/Makefile host/bsd/Makefile host/gtk/Makefile bus/Makefile bus/multibus/Makefile serial/Makefile scsi/Makefile generic/Makefile tmesh/Makefile"
1.1 root 23299: cat >confcache <<\_ACEOF
23300: # This file is a shell script that caches the results of configure
23301: # tests run on this system so they can be shared between configure
23302: # scripts and configure runs, see configure's option --config-cache.
23303: # It is not useful on other systems. If it contains results you don't
23304: # want to keep, you may remove or edit it.
23305: #
23306: # config.status only pays attention to the cache file if you give it
23307: # the --recheck option to rerun configure.
23308: #
23309: # `ac_cv_env_foo' variables (set or unset) will be overridden when
23310: # loading this file, other *unset* `ac_cv_foo' will be assigned the
23311: # following values.
23312:
23313: _ACEOF
23314:
23315: # The following way of writing the cache mishandles newlines in values,
23316: # but we know of no workaround that is simple, portable, and efficient.
23317: # So, don't put newlines in cache variables' values.
23318: # Ultrix sh set writes to stderr and can't be redirected directly,
23319: # and sets the high bit in the cache file unless we assign to the vars.
23320: {
23321: (set) 2>&1 |
23322: case `(ac_space=' '; set | grep ac_space) 2>&1` in
23323: *ac_space=\ *)
23324: # `set' does not quote correctly, so add quotes (double-quote
23325: # substitution turns \\\\ into \\, and sed turns \\ into \).
23326: sed -n \
23327: "s/'/'\\\\''/g;
23328: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23329: ;;
23330: *)
23331: # `set' quotes correctly as required by POSIX, so do not add quotes.
23332: sed -n \
23333: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23334: ;;
23335: esac;
23336: } |
23337: sed '
23338: t clear
23339: : clear
23340: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23341: t end
23342: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23343: : end' >>confcache
23344: if diff $cache_file confcache >/dev/null 2>&1; then :; else
23345: if test -w $cache_file; then
23346: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23347: cat confcache >$cache_file
23348: else
23349: echo "not updating unwritable cache $cache_file"
23350: fi
23351: fi
23352: rm -f confcache
23353:
23354: test "x$prefix" = xNONE && prefix=$ac_default_prefix
23355: # Let make expand exec_prefix.
23356: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23357:
23358: # VPATH may cause trouble with some makes, so we remove $(srcdir),
23359: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23360: # trailing colons and then remove the whole line if VPATH becomes empty
23361: # (actually we leave an empty line to preserve line numbers).
23362: if test "x$srcdir" = x.; then
23363: ac_vpsub='/^[ ]*VPATH[ ]*=/{
23364: s/:*\$(srcdir):*/:/;
23365: s/:*\${srcdir}:*/:/;
23366: s/:*@srcdir@:*/:/;
23367: s/^\([^=]*=[ ]*\):*/\1/;
23368: s/:*$//;
23369: s/^[^=]*=[ ]*$//;
23370: }'
23371: fi
23372:
23373: DEFS=-DHAVE_CONFIG_H
23374:
23375: ac_libobjs=
23376: ac_ltlibobjs=
23377: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23378: # 1. Remove the extension, and $U if already installed.
23379: ac_i=`echo "$ac_i" |
23380: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23381: # 2. Add them.
23382: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23383: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23384: done
23385: LIBOBJS=$ac_libobjs
23386:
23387: LTLIBOBJS=$ac_ltlibobjs
23388:
23389:
23390: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23391: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23392: Usually this means the macro was only invoked conditionally." >&5
23393: echo "$as_me: error: conditional \"AMDEP\" was never defined.
23394: Usually this means the macro was only invoked conditionally." >&2;}
23395: { (exit 1); exit 1; }; }
23396: fi
23397: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23398: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23399: Usually this means the macro was only invoked conditionally." >&5
23400: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23401: Usually this means the macro was only invoked conditionally." >&2;}
23402: { (exit 1); exit 1; }; }
23403: fi
23404: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23405: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23406: Usually this means the macro was only invoked conditionally." >&5
23407: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23408: Usually this means the macro was only invoked conditionally." >&2;}
23409: { (exit 1); exit 1; }; }
23410: fi
23411:
23412: : ${CONFIG_STATUS=./config.status}
23413: ac_clean_files_save=$ac_clean_files
23414: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23415: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23416: echo "$as_me: creating $CONFIG_STATUS" >&6;}
23417: cat >$CONFIG_STATUS <<_ACEOF
23418: #! $SHELL
23419: # Generated by $as_me.
23420: # Run this file to recreate the current configuration.
23421: # Compiler output produced by configure, useful for debugging
23422: # configure, is in config.log if it exists.
23423:
23424: debug=false
23425: ac_cs_recheck=false
23426: ac_cs_silent=false
23427: SHELL=\${CONFIG_SHELL-$SHELL}
23428: _ACEOF
23429:
23430: cat >>$CONFIG_STATUS <<\_ACEOF
23431: ## --------------------- ##
23432: ## M4sh Initialization. ##
23433: ## --------------------- ##
23434:
23435: # Be Bourne compatible
23436: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23437: emulate sh
23438: NULLCMD=:
23439: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23440: # is contrary to our usage. Disable this feature.
23441: alias -g '${1+"$@"}'='"$@"'
23442: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23443: set -o posix
23444: fi
23445:
23446: # Support unset when possible.
23447: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23448: as_unset=unset
23449: else
23450: as_unset=false
23451: fi
23452:
23453:
23454: # Work around bugs in pre-3.0 UWIN ksh.
23455: $as_unset ENV MAIL MAILPATH
23456: PS1='$ '
23457: PS2='> '
23458: PS4='+ '
23459:
23460: # NLS nuisances.
23461: for as_var in \
23462: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23463: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23464: LC_TELEPHONE LC_TIME
23465: do
23466: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23467: eval $as_var=C; export $as_var
23468: else
23469: $as_unset $as_var
23470: fi
23471: done
23472:
23473: # Required to use basename.
23474: if expr a : '\(a\)' >/dev/null 2>&1; then
23475: as_expr=expr
23476: else
23477: as_expr=false
23478: fi
23479:
23480: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23481: as_basename=basename
23482: else
23483: as_basename=false
23484: fi
23485:
23486:
23487: # Name of the executable.
23488: as_me=`$as_basename "$0" ||
23489: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23490: X"$0" : 'X\(//\)$' \| \
23491: X"$0" : 'X\(/\)$' \| \
23492: . : '\(.\)' 2>/dev/null ||
23493: echo X/"$0" |
23494: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23495: /^X\/\(\/\/\)$/{ s//\1/; q; }
23496: /^X\/\(\/\).*/{ s//\1/; q; }
23497: s/.*/./; q'`
23498:
23499:
23500: # PATH needs CR, and LINENO needs CR and PATH.
23501: # Avoid depending upon Character Ranges.
23502: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23503: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23504: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23505: as_cr_digits='0123456789'
23506: as_cr_alnum=$as_cr_Letters$as_cr_digits
23507:
23508: # The user is always right.
23509: if test "${PATH_SEPARATOR+set}" != set; then
23510: echo "#! /bin/sh" >conf$$.sh
23511: echo "exit 0" >>conf$$.sh
23512: chmod +x conf$$.sh
23513: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23514: PATH_SEPARATOR=';'
23515: else
23516: PATH_SEPARATOR=:
23517: fi
23518: rm -f conf$$.sh
23519: fi
23520:
23521:
23522: as_lineno_1=$LINENO
23523: as_lineno_2=$LINENO
23524: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23525: test "x$as_lineno_1" != "x$as_lineno_2" &&
23526: test "x$as_lineno_3" = "x$as_lineno_2" || {
23527: # Find who we are. Look in the path if we contain no path at all
23528: # relative or not.
23529: case $0 in
23530: *[\\/]* ) as_myself=$0 ;;
23531: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23532: for as_dir in $PATH
23533: do
23534: IFS=$as_save_IFS
23535: test -z "$as_dir" && as_dir=.
23536: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23537: done
23538:
23539: ;;
23540: esac
23541: # We did not find ourselves, most probably we were run as `sh COMMAND'
23542: # in which case we are not to be found in the path.
23543: if test "x$as_myself" = x; then
23544: as_myself=$0
23545: fi
23546: if test ! -f "$as_myself"; then
23547: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23548: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23549: { (exit 1); exit 1; }; }
23550: fi
23551: case $CONFIG_SHELL in
23552: '')
23553: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23554: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23555: do
23556: IFS=$as_save_IFS
23557: test -z "$as_dir" && as_dir=.
23558: for as_base in sh bash ksh sh5; do
23559: case $as_dir in
23560: /*)
23561: if ("$as_dir/$as_base" -c '
23562: as_lineno_1=$LINENO
23563: as_lineno_2=$LINENO
23564: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23565: test "x$as_lineno_1" != "x$as_lineno_2" &&
23566: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23567: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23568: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23569: CONFIG_SHELL=$as_dir/$as_base
23570: export CONFIG_SHELL
23571: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23572: fi;;
23573: esac
23574: done
23575: done
23576: ;;
23577: esac
23578:
23579: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23580: # uniformly replaced by the line number. The first 'sed' inserts a
23581: # line-number line before each line; the second 'sed' does the real
23582: # work. The second script uses 'N' to pair each line-number line
23583: # with the numbered line, and appends trailing '-' during
23584: # substitution so that $LINENO is not a special case at line end.
23585: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23586: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23587: sed '=' <$as_myself |
23588: sed '
23589: N
23590: s,$,-,
23591: : loop
23592: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23593: t loop
23594: s,-$,,
23595: s,^['$as_cr_digits']*\n,,
23596: ' >$as_me.lineno &&
23597: chmod +x $as_me.lineno ||
23598: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23599: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23600: { (exit 1); exit 1; }; }
23601:
23602: # Don't try to exec as it changes $[0], causing all sort of problems
23603: # (the dirname of $[0] is not the place where we might find the
23604: # original and so on. Autoconf is especially sensible to this).
23605: . ./$as_me.lineno
23606: # Exit status is that of the last command.
23607: exit
23608: }
23609:
23610:
23611: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23612: *c*,-n*) ECHO_N= ECHO_C='
23613: ' ECHO_T=' ' ;;
23614: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23615: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23616: esac
23617:
23618: if expr a : '\(a\)' >/dev/null 2>&1; then
23619: as_expr=expr
23620: else
23621: as_expr=false
23622: fi
23623:
23624: rm -f conf$$ conf$$.exe conf$$.file
23625: echo >conf$$.file
23626: if ln -s conf$$.file conf$$ 2>/dev/null; then
23627: # We could just check for DJGPP; but this test a) works b) is more generic
23628: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23629: if test -f conf$$.exe; then
23630: # Don't use ln at all; we don't have any links
23631: as_ln_s='cp -p'
23632: else
23633: as_ln_s='ln -s'
23634: fi
23635: elif ln conf$$.file conf$$ 2>/dev/null; then
23636: as_ln_s=ln
23637: else
23638: as_ln_s='cp -p'
23639: fi
23640: rm -f conf$$ conf$$.exe conf$$.file
23641:
23642: if mkdir -p . 2>/dev/null; then
23643: as_mkdir_p=:
23644: else
23645: as_mkdir_p=false
23646: fi
23647:
23648: as_executable_p="test -f"
23649:
23650: # Sed expression to map a string onto a valid CPP name.
23651: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23652:
23653: # Sed expression to map a string onto a valid variable name.
23654: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23655:
23656:
23657: # IFS
23658: # We need space, tab and new line, in precisely that order.
23659: as_nl='
23660: '
23661: IFS=" $as_nl"
23662:
23663: # CDPATH.
23664: $as_unset CDPATH
23665:
23666: exec 6>&1
23667:
23668: # Open the log real soon, to keep \$[0] and so on meaningful, and to
23669: # report actual input values of CONFIG_FILES etc. instead of their
23670: # values after options handling. Logging --version etc. is OK.
23671: exec 5>>config.log
23672: {
23673: echo
23674: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23675: ## Running $as_me. ##
23676: _ASBOX
23677: } >&5
23678: cat >&5 <<_CSEOF
23679:
23680: This file was extended by $as_me, which was
23681: generated by GNU Autoconf 2.57. Invocation command line was
23682:
23683: CONFIG_FILES = $CONFIG_FILES
23684: CONFIG_HEADERS = $CONFIG_HEADERS
23685: CONFIG_LINKS = $CONFIG_LINKS
23686: CONFIG_COMMANDS = $CONFIG_COMMANDS
23687: $ $0 $@
23688:
23689: _CSEOF
23690: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23691: echo >&5
23692: _ACEOF
23693:
23694: # Files that config.status was made for.
23695: if test -n "$ac_config_files"; then
23696: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23697: fi
23698:
23699: if test -n "$ac_config_headers"; then
23700: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23701: fi
23702:
23703: if test -n "$ac_config_links"; then
23704: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23705: fi
23706:
23707: if test -n "$ac_config_commands"; then
23708: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23709: fi
23710:
23711: cat >>$CONFIG_STATUS <<\_ACEOF
23712:
23713: ac_cs_usage="\
23714: \`$as_me' instantiates files from templates according to the
23715: current configuration.
23716:
23717: Usage: $0 [OPTIONS] [FILE]...
23718:
23719: -h, --help print this help, then exit
23720: -V, --version print version number, then exit
23721: -q, --quiet do not print progress messages
23722: -d, --debug don't remove temporary files
23723: --recheck update $as_me by reconfiguring in the same conditions
23724: --file=FILE[:TEMPLATE]
23725: instantiate the configuration file FILE
23726: --header=FILE[:TEMPLATE]
23727: instantiate the configuration header FILE
23728:
23729: Configuration files:
23730: $config_files
23731:
23732: Configuration headers:
23733: $config_headers
23734:
23735: Configuration commands:
23736: $config_commands
23737:
23738: Report bugs to <[email protected]>."
23739: _ACEOF
23740:
23741: cat >>$CONFIG_STATUS <<_ACEOF
23742: ac_cs_version="\\
23743: config.status
23744: configured by $0, generated by GNU Autoconf 2.57,
23745: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23746:
23747: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23748: Free Software Foundation, Inc.
23749: This config.status script is free software; the Free Software Foundation
23750: gives unlimited permission to copy, distribute and modify it."
23751: srcdir=$srcdir
23752: INSTALL="$INSTALL"
23753: _ACEOF
23754:
23755: cat >>$CONFIG_STATUS <<\_ACEOF
23756: # If no file are specified by the user, then we need to provide default
23757: # value. By we need to know if files were specified by the user.
23758: ac_need_defaults=:
23759: while test $# != 0
23760: do
23761: case $1 in
23762: --*=*)
23763: ac_option=`expr "x$1" : 'x\([^=]*\)='`
23764: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23765: ac_shift=:
23766: ;;
23767: -*)
23768: ac_option=$1
23769: ac_optarg=$2
23770: ac_shift=shift
23771: ;;
23772: *) # This is not an option, so the user has probably given explicit
23773: # arguments.
23774: ac_option=$1
23775: ac_need_defaults=false;;
23776: esac
23777:
23778: case $ac_option in
23779: # Handling of the options.
23780: _ACEOF
23781: cat >>$CONFIG_STATUS <<\_ACEOF
23782: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23783: ac_cs_recheck=: ;;
23784: --version | --vers* | -V )
23785: echo "$ac_cs_version"; exit 0 ;;
23786: --he | --h)
23787: # Conflict between --help and --header
23788: { { echo "$as_me:$LINENO: error: ambiguous option: $1
23789: Try \`$0 --help' for more information." >&5
23790: echo "$as_me: error: ambiguous option: $1
23791: Try \`$0 --help' for more information." >&2;}
23792: { (exit 1); exit 1; }; };;
23793: --help | --hel | -h )
23794: echo "$ac_cs_usage"; exit 0 ;;
23795: --debug | --d* | -d )
23796: debug=: ;;
23797: --file | --fil | --fi | --f )
23798: $ac_shift
23799: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23800: ac_need_defaults=false;;
23801: --header | --heade | --head | --hea )
23802: $ac_shift
23803: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23804: ac_need_defaults=false;;
23805: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23806: | -silent | --silent | --silen | --sile | --sil | --si | --s)
23807: ac_cs_silent=: ;;
23808:
23809: # This is an error.
23810: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23811: Try \`$0 --help' for more information." >&5
23812: echo "$as_me: error: unrecognized option: $1
23813: Try \`$0 --help' for more information." >&2;}
23814: { (exit 1); exit 1; }; } ;;
23815:
23816: *) ac_config_targets="$ac_config_targets $1" ;;
23817:
23818: esac
23819: shift
23820: done
23821:
23822: ac_configure_extra_args=
23823:
23824: if $ac_cs_silent; then
23825: exec 6>/dev/null
23826: ac_configure_extra_args="$ac_configure_extra_args --silent"
23827: fi
23828:
23829: _ACEOF
23830: cat >>$CONFIG_STATUS <<_ACEOF
23831: if \$ac_cs_recheck; then
23832: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23833: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23834: fi
23835:
23836: _ACEOF
23837:
23838: cat >>$CONFIG_STATUS <<_ACEOF
23839: #
23840: # INIT-COMMANDS section.
23841: #
23842:
23843: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23844:
23845: PACKAGE="$PACKAGE"
23846: VERSION="$VERSION"
23847: target="$target"
23848: ac_cv_sizeof_int="$ac_cv_sizeof_int"
23849: ac_cv_sizeof_long="$ac_cv_sizeof_long"
23850: ac_cv_sizeof_short="$ac_cv_sizeof_short"
23851:
23852:
23853: _ACEOF
23854:
23855:
23856:
23857: cat >>$CONFIG_STATUS <<\_ACEOF
23858: for ac_config_target in $ac_config_targets
23859: do
23860: case "$ac_config_target" in
23861: # Handling of arguments.
23862: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23863: "tme/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/Makefile" ;;
23864: "tme/ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/ic/Makefile" ;;
23865: "tme/machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/machine/Makefile" ;;
23866: "tme/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/generic/Makefile" ;;
1.1.1.2 ! root 23867: "tme/scsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/scsi/Makefile" ;;
1.1 root 23868: "libtme/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtme/Makefile" ;;
23869: "ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/Makefile" ;;
23870: "ic/m68k/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/m68k/Makefile" ;;
23871: "machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/Makefile" ;;
23872: "machine/sun/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun/Makefile" ;;
23873: "machine/sun2/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun2/Makefile" ;;
23874: "host/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
23875: "host/posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/posix/Makefile" ;;
23876: "host/bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/bsd/Makefile" ;;
1.1.1.2 ! root 23877: "host/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/gtk/Makefile" ;;
1.1 root 23878: "bus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;;
23879: "bus/multibus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/multibus/Makefile" ;;
1.1.1.2 ! root 23880: "serial/Makefile" ) CONFIG_FILES="$CONFIG_FILES serial/Makefile" ;;
! 23881: "scsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES scsi/Makefile" ;;
1.1 root 23882: "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
23883: "tmesh/Makefile" ) CONFIG_FILES="$CONFIG_FILES tmesh/Makefile" ;;
23884: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23885: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23886: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23887: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23888: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23889: { (exit 1); exit 1; }; };;
23890: esac
23891: done
23892:
23893: # If the user did not use the arguments to specify the items to instantiate,
23894: # then the envvar interface is used. Set only those that are not.
23895: # We use the long form for the default assignment because of an extremely
23896: # bizarre bug on SunOS 4.1.3.
23897: if $ac_need_defaults; then
23898: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23899: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23900: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23901: fi
23902:
23903: # Have a temporary directory for convenience. Make it in the build tree
23904: # simply because there is no reason to put it here, and in addition,
23905: # creating and moving files from /tmp can sometimes cause problems.
23906: # Create a temporary directory, and hook for its removal unless debugging.
23907: $debug ||
23908: {
23909: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23910: trap '{ (exit 1); exit 1; }' 1 2 13 15
23911: }
23912:
23913: # Create a (secure) tmp directory for tmp files.
23914:
23915: {
23916: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23917: test -n "$tmp" && test -d "$tmp"
23918: } ||
23919: {
23920: tmp=./confstat$$-$RANDOM
23921: (umask 077 && mkdir $tmp)
23922: } ||
23923: {
23924: echo "$me: cannot create a temporary directory in ." >&2
23925: { (exit 1); exit 1; }
23926: }
23927:
23928: _ACEOF
23929:
23930: cat >>$CONFIG_STATUS <<_ACEOF
23931:
23932: #
23933: # CONFIG_FILES section.
23934: #
23935:
23936: # No need to generate the scripts if there are no CONFIG_FILES.
23937: # This happens for instance when ./config.status config.h
23938: if test -n "\$CONFIG_FILES"; then
23939: # Protect against being on the right side of a sed subst in config.status.
23940: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23941: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23942: s,@SHELL@,$SHELL,;t t
23943: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23944: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23945: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23946: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23947: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23948: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23949: s,@exec_prefix@,$exec_prefix,;t t
23950: s,@prefix@,$prefix,;t t
23951: s,@program_transform_name@,$program_transform_name,;t t
23952: s,@bindir@,$bindir,;t t
23953: s,@sbindir@,$sbindir,;t t
23954: s,@libexecdir@,$libexecdir,;t t
23955: s,@datadir@,$datadir,;t t
23956: s,@sysconfdir@,$sysconfdir,;t t
23957: s,@sharedstatedir@,$sharedstatedir,;t t
23958: s,@localstatedir@,$localstatedir,;t t
23959: s,@libdir@,$libdir,;t t
23960: s,@includedir@,$includedir,;t t
23961: s,@oldincludedir@,$oldincludedir,;t t
23962: s,@infodir@,$infodir,;t t
23963: s,@mandir@,$mandir,;t t
23964: s,@build_alias@,$build_alias,;t t
23965: s,@host_alias@,$host_alias,;t t
23966: s,@target_alias@,$target_alias,;t t
23967: s,@DEFS@,$DEFS,;t t
23968: s,@ECHO_C@,$ECHO_C,;t t
23969: s,@ECHO_N@,$ECHO_N,;t t
23970: s,@ECHO_T@,$ECHO_T,;t t
23971: s,@LIBS@,$LIBS,;t t
23972: s,@build@,$build,;t t
23973: s,@build_cpu@,$build_cpu,;t t
23974: s,@build_vendor@,$build_vendor,;t t
23975: s,@build_os@,$build_os,;t t
23976: s,@host@,$host,;t t
23977: s,@host_cpu@,$host_cpu,;t t
23978: s,@host_vendor@,$host_vendor,;t t
23979: s,@host_os@,$host_os,;t t
23980: s,@target@,$target,;t t
23981: s,@target_cpu@,$target_cpu,;t t
23982: s,@target_vendor@,$target_vendor,;t t
23983: s,@target_os@,$target_os,;t t
23984: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23985: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23986: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23987: s,@CYGPATH_W@,$CYGPATH_W,;t t
23988: s,@PACKAGE@,$PACKAGE,;t t
23989: s,@VERSION@,$VERSION,;t t
23990: s,@ACLOCAL@,$ACLOCAL,;t t
23991: s,@AUTOCONF@,$AUTOCONF,;t t
23992: s,@AUTOMAKE@,$AUTOMAKE,;t t
23993: s,@AUTOHEADER@,$AUTOHEADER,;t t
23994: s,@MAKEINFO@,$MAKEINFO,;t t
23995: s,@AMTAR@,$AMTAR,;t t
23996: s,@install_sh@,$install_sh,;t t
23997: s,@STRIP@,$STRIP,;t t
23998: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23999: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24000: s,@AWK@,$AWK,;t t
24001: s,@SET_MAKE@,$SET_MAKE,;t t
24002: s,@CC@,$CC,;t t
24003: s,@CFLAGS@,$CFLAGS,;t t
24004: s,@LDFLAGS@,$LDFLAGS,;t t
24005: s,@CPPFLAGS@,$CPPFLAGS,;t t
24006: s,@ac_ct_CC@,$ac_ct_CC,;t t
24007: s,@EXEEXT@,$EXEEXT,;t t
24008: s,@OBJEXT@,$OBJEXT,;t t
24009: s,@DEPDIR@,$DEPDIR,;t t
24010: s,@am__include@,$am__include,;t t
24011: s,@am__quote@,$am__quote,;t t
24012: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24013: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24014: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24015: s,@CCDEPMODE@,$CCDEPMODE,;t t
24016: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24017: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24018: s,@CPP@,$CPP,;t t
24019: s,@YACC@,$YACC,;t t
24020: s,@EGREP@,$EGREP,;t t
24021: s,@LIBOBJS@,$LIBOBJS,;t t
24022: s,@PERL@,$PERL,;t t
1.1.1.2 ! root 24023: s,@X_CFLAGS@,$X_CFLAGS,;t t
! 24024: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
! 24025: s,@X_LIBS@,$X_LIBS,;t t
! 24026: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
! 24027: s,@GTK_CONFIG@,$GTK_CONFIG,;t t
! 24028: s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
! 24029: s,@GTK_LIBS@,$GTK_LIBS,;t t
! 24030: s,@TME_FB_XLAT_DST@,$TME_FB_XLAT_DST,;t t
1.1 root 24031: s,@TME_MACHINE_SUBDIRS@,$TME_MACHINE_SUBDIRS,;t t
24032: s,@TME_IC_SUBDIRS@,$TME_IC_SUBDIRS,;t t
24033: s,@TME_ICS@,$TME_ICS,;t t
1.1.1.2 ! root 24034: s,@TME_SERIAL_SUBDIRS@,$TME_SERIAL_SUBDIRS,;t t
! 24035: s,@TME_SERIALS@,$TME_SERIALS,;t t
1.1 root 24036: s,@TME_BUS_SUBDIRS@,$TME_BUS_SUBDIRS,;t t
1.1.1.2 ! root 24037: s,@TME_FB_XLAT_SRC@,$TME_FB_XLAT_SRC,;t t
1.1 root 24038: s,@TME_HOSTS@,$TME_HOSTS,;t t
24039: s,@INCLTDL@,$INCLTDL,;t t
24040: s,@LIBLTDL@,$LIBLTDL,;t t
24041: s,@LN_S@,$LN_S,;t t
24042: s,@ECHO@,$ECHO,;t t
24043: s,@AR@,$AR,;t t
24044: s,@ac_ct_AR@,$ac_ct_AR,;t t
24045: s,@RANLIB@,$RANLIB,;t t
24046: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24047: s,@CXX@,$CXX,;t t
24048: s,@CXXFLAGS@,$CXXFLAGS,;t t
24049: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24050: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24051: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24052: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24053: s,@CXXCPP@,$CXXCPP,;t t
24054: s,@F77@,$F77,;t t
24055: s,@FFLAGS@,$FFLAGS,;t t
24056: s,@ac_ct_F77@,$ac_ct_F77,;t t
24057: s,@LIBTOOL@,$LIBTOOL,;t t
24058: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24059: s,@subdirs@,$subdirs,;t t
24060: s,@TME_PREOPEN@,$TME_PREOPEN,;t t
24061: CEOF
24062:
24063: _ACEOF
24064:
24065: cat >>$CONFIG_STATUS <<\_ACEOF
24066: # Split the substitutions into bite-sized pieces for seds with
24067: # small command number limits, like on Digital OSF/1 and HP-UX.
24068: ac_max_sed_lines=48
24069: ac_sed_frag=1 # Number of current file.
24070: ac_beg=1 # First line for current file.
24071: ac_end=$ac_max_sed_lines # Line after last line for current file.
24072: ac_more_lines=:
24073: ac_sed_cmds=
24074: while $ac_more_lines; do
24075: if test $ac_beg -gt 1; then
24076: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24077: else
24078: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24079: fi
24080: if test ! -s $tmp/subs.frag; then
24081: ac_more_lines=false
24082: else
24083: # The purpose of the label and of the branching condition is to
24084: # speed up the sed processing (if there are no `@' at all, there
24085: # is no need to browse any of the substitutions).
24086: # These are the two extra sed commands mentioned above.
24087: (echo ':t
24088: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24089: if test -z "$ac_sed_cmds"; then
24090: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24091: else
24092: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24093: fi
24094: ac_sed_frag=`expr $ac_sed_frag + 1`
24095: ac_beg=$ac_end
24096: ac_end=`expr $ac_end + $ac_max_sed_lines`
24097: fi
24098: done
24099: if test -z "$ac_sed_cmds"; then
24100: ac_sed_cmds=cat
24101: fi
24102: fi # test -n "$CONFIG_FILES"
24103:
24104: _ACEOF
24105: cat >>$CONFIG_STATUS <<\_ACEOF
24106: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24107: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24108: case $ac_file in
24109: - | *:- | *:-:* ) # input from stdin
24110: cat >$tmp/stdin
24111: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24112: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24113: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24114: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24115: * ) ac_file_in=$ac_file.in ;;
24116: esac
24117:
24118: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24119: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24120: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24121: X"$ac_file" : 'X\(//\)[^/]' \| \
24122: X"$ac_file" : 'X\(//\)$' \| \
24123: X"$ac_file" : 'X\(/\)' \| \
24124: . : '\(.\)' 2>/dev/null ||
24125: echo X"$ac_file" |
24126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24127: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24128: /^X\(\/\/\)$/{ s//\1/; q; }
24129: /^X\(\/\).*/{ s//\1/; q; }
24130: s/.*/./; q'`
24131: { if $as_mkdir_p; then
24132: mkdir -p "$ac_dir"
24133: else
24134: as_dir="$ac_dir"
24135: as_dirs=
24136: while test ! -d "$as_dir"; do
24137: as_dirs="$as_dir $as_dirs"
24138: as_dir=`(dirname "$as_dir") 2>/dev/null ||
24139: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24140: X"$as_dir" : 'X\(//\)[^/]' \| \
24141: X"$as_dir" : 'X\(//\)$' \| \
24142: X"$as_dir" : 'X\(/\)' \| \
24143: . : '\(.\)' 2>/dev/null ||
24144: echo X"$as_dir" |
24145: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24146: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24147: /^X\(\/\/\)$/{ s//\1/; q; }
24148: /^X\(\/\).*/{ s//\1/; q; }
24149: s/.*/./; q'`
24150: done
24151: test ! -n "$as_dirs" || mkdir $as_dirs
24152: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24153: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24154: { (exit 1); exit 1; }; }; }
24155:
24156: ac_builddir=.
24157:
24158: if test "$ac_dir" != .; then
24159: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24160: # A "../" for each directory in $ac_dir_suffix.
24161: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24162: else
24163: ac_dir_suffix= ac_top_builddir=
24164: fi
24165:
24166: case $srcdir in
24167: .) # No --srcdir option. We are building in place.
24168: ac_srcdir=.
24169: if test -z "$ac_top_builddir"; then
24170: ac_top_srcdir=.
24171: else
24172: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24173: fi ;;
24174: [\\/]* | ?:[\\/]* ) # Absolute path.
24175: ac_srcdir=$srcdir$ac_dir_suffix;
24176: ac_top_srcdir=$srcdir ;;
24177: *) # Relative path.
24178: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24179: ac_top_srcdir=$ac_top_builddir$srcdir ;;
24180: esac
24181: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24182: # absolute.
24183: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24184: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24185: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24186: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24187:
24188:
24189: case $INSTALL in
24190: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24191: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24192: esac
24193:
24194: if test x"$ac_file" != x-; then
24195: { echo "$as_me:$LINENO: creating $ac_file" >&5
24196: echo "$as_me: creating $ac_file" >&6;}
24197: rm -f "$ac_file"
24198: fi
24199: # Let's still pretend it is `configure' which instantiates (i.e., don't
24200: # use $as_me), people would be surprised to read:
24201: # /* config.h. Generated by config.status. */
24202: if test x"$ac_file" = x-; then
24203: configure_input=
24204: else
24205: configure_input="$ac_file. "
24206: fi
24207: configure_input=$configure_input"Generated from `echo $ac_file_in |
24208: sed 's,.*/,,'` by configure."
24209:
24210: # First look for the input files in the build tree, otherwise in the
24211: # src tree.
24212: ac_file_inputs=`IFS=:
24213: for f in $ac_file_in; do
24214: case $f in
24215: -) echo $tmp/stdin ;;
24216: [\\/$]*)
24217: # Absolute (can't be DOS-style, as IFS=:)
24218: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24219: echo "$as_me: error: cannot find input file: $f" >&2;}
24220: { (exit 1); exit 1; }; }
24221: echo $f;;
24222: *) # Relative
24223: if test -f "$f"; then
24224: # Build tree
24225: echo $f
24226: elif test -f "$srcdir/$f"; then
24227: # Source tree
24228: echo $srcdir/$f
24229: else
24230: # /dev/null tree
24231: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24232: echo "$as_me: error: cannot find input file: $f" >&2;}
24233: { (exit 1); exit 1; }; }
24234: fi;;
24235: esac
24236: done` || { (exit 1); exit 1; }
24237: _ACEOF
24238: cat >>$CONFIG_STATUS <<_ACEOF
24239: sed "$ac_vpsub
24240: $extrasub
24241: _ACEOF
24242: cat >>$CONFIG_STATUS <<\_ACEOF
24243: :t
24244: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24245: s,@configure_input@,$configure_input,;t t
24246: s,@srcdir@,$ac_srcdir,;t t
24247: s,@abs_srcdir@,$ac_abs_srcdir,;t t
24248: s,@top_srcdir@,$ac_top_srcdir,;t t
24249: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24250: s,@builddir@,$ac_builddir,;t t
24251: s,@abs_builddir@,$ac_abs_builddir,;t t
24252: s,@top_builddir@,$ac_top_builddir,;t t
24253: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24254: s,@INSTALL@,$ac_INSTALL,;t t
24255: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24256: rm -f $tmp/stdin
24257: if test x"$ac_file" != x-; then
24258: mv $tmp/out $ac_file
24259: else
24260: cat $tmp/out
24261: rm -f $tmp/out
24262: fi
24263:
24264: done
24265: _ACEOF
24266: cat >>$CONFIG_STATUS <<\_ACEOF
24267:
24268: #
24269: # CONFIG_HEADER section.
24270: #
24271:
24272: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24273: # NAME is the cpp macro being defined and VALUE is the value it is being given.
24274: #
24275: # ac_d sets the value in "#define NAME VALUE" lines.
24276: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24277: ac_dB='[ ].*$,\1#\2'
24278: ac_dC=' '
24279: ac_dD=',;t'
24280: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24281: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24282: ac_uB='$,\1#\2define\3'
24283: ac_uC=' '
24284: ac_uD=',;t'
24285:
24286: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24287: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24288: case $ac_file in
24289: - | *:- | *:-:* ) # input from stdin
24290: cat >$tmp/stdin
24291: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24292: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24293: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24294: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24295: * ) ac_file_in=$ac_file.in ;;
24296: esac
24297:
24298: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24299: echo "$as_me: creating $ac_file" >&6;}
24300:
24301: # First look for the input files in the build tree, otherwise in the
24302: # src tree.
24303: ac_file_inputs=`IFS=:
24304: for f in $ac_file_in; do
24305: case $f in
24306: -) echo $tmp/stdin ;;
24307: [\\/$]*)
24308: # Absolute (can't be DOS-style, as IFS=:)
24309: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24310: echo "$as_me: error: cannot find input file: $f" >&2;}
24311: { (exit 1); exit 1; }; }
24312: echo $f;;
24313: *) # Relative
24314: if test -f "$f"; then
24315: # Build tree
24316: echo $f
24317: elif test -f "$srcdir/$f"; then
24318: # Source tree
24319: echo $srcdir/$f
24320: else
24321: # /dev/null tree
24322: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24323: echo "$as_me: error: cannot find input file: $f" >&2;}
24324: { (exit 1); exit 1; }; }
24325: fi;;
24326: esac
24327: done` || { (exit 1); exit 1; }
24328: # Remove the trailing spaces.
24329: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24330:
24331: _ACEOF
24332:
24333: # Transform confdefs.h into two sed scripts, `conftest.defines' and
24334: # `conftest.undefs', that substitutes the proper values into
24335: # config.h.in to produce config.h. The first handles `#define'
24336: # templates, and the second `#undef' templates.
24337: # And first: Protect against being on the right side of a sed subst in
24338: # config.status. Protect against being in an unquoted here document
24339: # in config.status.
24340: rm -f conftest.defines conftest.undefs
24341: # Using a here document instead of a string reduces the quoting nightmare.
24342: # Putting comments in sed scripts is not portable.
24343: #
24344: # `end' is used to avoid that the second main sed command (meant for
24345: # 0-ary CPP macros) applies to n-ary macro definitions.
24346: # See the Autoconf documentation for `clear'.
24347: cat >confdef2sed.sed <<\_ACEOF
24348: s/[\\&,]/\\&/g
24349: s,[\\$`],\\&,g
24350: t clear
24351: : clear
24352: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24353: t end
24354: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24355: : end
24356: _ACEOF
24357: # If some macros were called several times there might be several times
24358: # the same #defines, which is useless. Nevertheless, we may not want to
24359: # sort them, since we want the *last* AC-DEFINE to be honored.
24360: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24361: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24362: rm -f confdef2sed.sed
24363:
24364: # This sed command replaces #undef with comments. This is necessary, for
24365: # example, in the case of _POSIX_SOURCE, which is predefined and required
24366: # on some systems where configure will not decide to define it.
24367: cat >>conftest.undefs <<\_ACEOF
24368: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24369: _ACEOF
24370:
24371: # Break up conftest.defines because some shells have a limit on the size
24372: # of here documents, and old seds have small limits too (100 cmds).
24373: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24374: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24375: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24376: echo ' :' >>$CONFIG_STATUS
24377: rm -f conftest.tail
24378: while grep . conftest.defines >/dev/null
24379: do
24380: # Write a limited-size here document to $tmp/defines.sed.
24381: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24382: # Speed up: don't consider the non `#define' lines.
24383: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24384: # Work around the forget-to-reset-the-flag bug.
24385: echo 't clr' >>$CONFIG_STATUS
24386: echo ': clr' >>$CONFIG_STATUS
24387: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24388: echo 'CEOF
24389: sed -f $tmp/defines.sed $tmp/in >$tmp/out
24390: rm -f $tmp/in
24391: mv $tmp/out $tmp/in
24392: ' >>$CONFIG_STATUS
24393: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24394: rm -f conftest.defines
24395: mv conftest.tail conftest.defines
24396: done
24397: rm -f conftest.defines
24398: echo ' fi # grep' >>$CONFIG_STATUS
24399: echo >>$CONFIG_STATUS
24400:
24401: # Break up conftest.undefs because some shells have a limit on the size
24402: # of here documents, and old seds have small limits too (100 cmds).
24403: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24404: rm -f conftest.tail
24405: while grep . conftest.undefs >/dev/null
24406: do
24407: # Write a limited-size here document to $tmp/undefs.sed.
24408: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24409: # Speed up: don't consider the non `#undef'
24410: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24411: # Work around the forget-to-reset-the-flag bug.
24412: echo 't clr' >>$CONFIG_STATUS
24413: echo ': clr' >>$CONFIG_STATUS
24414: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24415: echo 'CEOF
24416: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24417: rm -f $tmp/in
24418: mv $tmp/out $tmp/in
24419: ' >>$CONFIG_STATUS
24420: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24421: rm -f conftest.undefs
24422: mv conftest.tail conftest.undefs
24423: done
24424: rm -f conftest.undefs
24425:
24426: cat >>$CONFIG_STATUS <<\_ACEOF
24427: # Let's still pretend it is `configure' which instantiates (i.e., don't
24428: # use $as_me), people would be surprised to read:
24429: # /* config.h. Generated by config.status. */
24430: if test x"$ac_file" = x-; then
24431: echo "/* Generated by configure. */" >$tmp/config.h
24432: else
24433: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24434: fi
24435: cat $tmp/in >>$tmp/config.h
24436: rm -f $tmp/in
24437: if test x"$ac_file" != x-; then
24438: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24439: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24440: echo "$as_me: $ac_file is unchanged" >&6;}
24441: else
24442: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24443: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24444: X"$ac_file" : 'X\(//\)[^/]' \| \
24445: X"$ac_file" : 'X\(//\)$' \| \
24446: X"$ac_file" : 'X\(/\)' \| \
24447: . : '\(.\)' 2>/dev/null ||
24448: echo X"$ac_file" |
24449: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24450: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24451: /^X\(\/\/\)$/{ s//\1/; q; }
24452: /^X\(\/\).*/{ s//\1/; q; }
24453: s/.*/./; q'`
24454: { if $as_mkdir_p; then
24455: mkdir -p "$ac_dir"
24456: else
24457: as_dir="$ac_dir"
24458: as_dirs=
24459: while test ! -d "$as_dir"; do
24460: as_dirs="$as_dir $as_dirs"
24461: as_dir=`(dirname "$as_dir") 2>/dev/null ||
24462: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24463: X"$as_dir" : 'X\(//\)[^/]' \| \
24464: X"$as_dir" : 'X\(//\)$' \| \
24465: X"$as_dir" : 'X\(/\)' \| \
24466: . : '\(.\)' 2>/dev/null ||
24467: echo X"$as_dir" |
24468: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24469: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24470: /^X\(\/\/\)$/{ s//\1/; q; }
24471: /^X\(\/\).*/{ s//\1/; q; }
24472: s/.*/./; q'`
24473: done
24474: test ! -n "$as_dirs" || mkdir $as_dirs
24475: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24476: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24477: { (exit 1); exit 1; }; }; }
24478:
24479: rm -f $ac_file
24480: mv $tmp/config.h $ac_file
24481: fi
24482: else
24483: cat $tmp/config.h
24484: rm -f $tmp/config.h
24485: fi
24486: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
24487: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24488: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24489: X$ac_file : 'X\(//\)[^/]' \| \
24490: X$ac_file : 'X\(//\)$' \| \
24491: X$ac_file : 'X\(/\)' \| \
24492: . : '\(.\)' 2>/dev/null ||
24493: echo X$ac_file |
24494: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24495: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24496: /^X\(\/\/\)$/{ s//\1/; q; }
24497: /^X\(\/\).*/{ s//\1/; q; }
24498: s/.*/./; q'`/stamp-h$_am_stamp_count
24499: done
24500: _ACEOF
24501: cat >>$CONFIG_STATUS <<\_ACEOF
24502:
24503: #
24504: # CONFIG_COMMANDS section.
24505: #
24506: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24507: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24508: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24509: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24510: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24511: X"$ac_dest" : 'X\(//\)[^/]' \| \
24512: X"$ac_dest" : 'X\(//\)$' \| \
24513: X"$ac_dest" : 'X\(/\)' \| \
24514: . : '\(.\)' 2>/dev/null ||
24515: echo X"$ac_dest" |
24516: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24517: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24518: /^X\(\/\/\)$/{ s//\1/; q; }
24519: /^X\(\/\).*/{ s//\1/; q; }
24520: s/.*/./; q'`
24521: ac_builddir=.
24522:
24523: if test "$ac_dir" != .; then
24524: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24525: # A "../" for each directory in $ac_dir_suffix.
24526: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24527: else
24528: ac_dir_suffix= ac_top_builddir=
24529: fi
24530:
24531: case $srcdir in
24532: .) # No --srcdir option. We are building in place.
24533: ac_srcdir=.
24534: if test -z "$ac_top_builddir"; then
24535: ac_top_srcdir=.
24536: else
24537: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24538: fi ;;
24539: [\\/]* | ?:[\\/]* ) # Absolute path.
24540: ac_srcdir=$srcdir$ac_dir_suffix;
24541: ac_top_srcdir=$srcdir ;;
24542: *) # Relative path.
24543: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24544: ac_top_srcdir=$ac_top_builddir$srcdir ;;
24545: esac
24546: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24547: # absolute.
24548: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24549: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24550: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24551: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24552:
24553:
24554: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24555: echo "$as_me: executing $ac_dest commands" >&6;}
24556: case $ac_dest in
24557: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24558: # Strip MF so we end up with the name of the file.
24559: mf=`echo "$mf" | sed -e 's/:.*$//'`
24560: # Check whether this is an Automake generated Makefile or not.
24561: # We used to match only the files named `Makefile.in', but
24562: # some people rename them; so instead we look at the file content.
24563: # Grep'ing the first line is not enough: some people post-process
24564: # each Makefile.in and add a new line on top of each file to say so.
24565: # So let's grep whole file.
24566: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24567: dirpart=`(dirname "$mf") 2>/dev/null ||
24568: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24569: X"$mf" : 'X\(//\)[^/]' \| \
24570: X"$mf" : 'X\(//\)$' \| \
24571: X"$mf" : 'X\(/\)' \| \
24572: . : '\(.\)' 2>/dev/null ||
24573: echo X"$mf" |
24574: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24575: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24576: /^X\(\/\/\)$/{ s//\1/; q; }
24577: /^X\(\/\).*/{ s//\1/; q; }
24578: s/.*/./; q'`
24579: else
24580: continue
24581: fi
24582: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24583: # Extract the definition of DEP_FILES from the Makefile without
24584: # running `make'.
24585: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24586: test -z "$DEPDIR" && continue
24587: # When using ansi2knr, U may be empty or an underscore; expand it
24588: U=`sed -n -e '/^U = / s///p' < "$mf"`
24589: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24590: # We invoke sed twice because it is the simplest approach to
24591: # changing $(DEPDIR) to its actual value in the expansion.
24592: for file in `sed -n -e '
24593: /^DEP_FILES = .*\\\\$/ {
24594: s/^DEP_FILES = //
24595: :loop
24596: s/\\\\$//
24597: p
24598: n
24599: /\\\\$/ b loop
24600: p
24601: }
24602: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24603: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24604: # Make sure the directory exists.
24605: test -f "$dirpart/$file" && continue
24606: fdir=`(dirname "$file") 2>/dev/null ||
24607: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24608: X"$file" : 'X\(//\)[^/]' \| \
24609: X"$file" : 'X\(//\)$' \| \
24610: X"$file" : 'X\(/\)' \| \
24611: . : '\(.\)' 2>/dev/null ||
24612: echo X"$file" |
24613: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24614: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24615: /^X\(\/\/\)$/{ s//\1/; q; }
24616: /^X\(\/\).*/{ s//\1/; q; }
24617: s/.*/./; q'`
24618: { if $as_mkdir_p; then
24619: mkdir -p $dirpart/$fdir
24620: else
24621: as_dir=$dirpart/$fdir
24622: as_dirs=
24623: while test ! -d "$as_dir"; do
24624: as_dirs="$as_dir $as_dirs"
24625: as_dir=`(dirname "$as_dir") 2>/dev/null ||
24626: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24627: X"$as_dir" : 'X\(//\)[^/]' \| \
24628: X"$as_dir" : 'X\(//\)$' \| \
24629: X"$as_dir" : 'X\(/\)' \| \
24630: . : '\(.\)' 2>/dev/null ||
24631: echo X"$as_dir" |
24632: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24633: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24634: /^X\(\/\/\)$/{ s//\1/; q; }
24635: /^X\(\/\).*/{ s//\1/; q; }
24636: s/.*/./; q'`
24637: done
24638: test ! -n "$as_dirs" || mkdir $as_dirs
24639: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24640: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24641: { (exit 1); exit 1; }; }; }
24642:
24643: # echo "creating $dirpart/$file"
24644: echo '# dummy' > "$dirpart/$file"
24645: done
24646: done
24647: ;;
24648: default-1 )
24649:
24650: ## Generate our configure-time sources in two
24651: ## cases:
24652: ## 1. `config.status' is run either explicitly, or via configure.
24653: ## Esp. not when it is run in `Makefile' to generate makefiles and
24654: ## config.h
24655: ## 2. CONFIG_OTHER is set explicitly
24656: ##
24657: ## Case 1 is difficult. We know that `automake' sets one of
24658: ## CONFIG_FILES or CONFIG_HEADERS to empty. This heuristic works
24659: ## only when AM_CONFIG_HEADER is set, however.
24660:
24661: case "x$CONFIG_OTHER" in
24662: *tmeconfig.h) gen_tmeconfig_h=yes
24663: ;;
24664: esac
24665: if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
24666: # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
24667: if test "x${CONFIG_OTHER}" = x; then
24668: gen_tmeconfig_h=yes
24669: fi
24670: fi
24671:
24672: ## If we're generating tmeconfig.h:
24673: if test "x$gen_tmeconfig_h" = xyes; then
24674: outfile=tmeconfig.h
24675: echo "$as_me: creating $outfile"
24676: cat <<TMEEOF > ${outfile}-tmp
24677: /* tmeconfig.h
24678: *
24679: * This is an automatically generated file - please modify 'configure.in'.
24680: */
24681:
24682: #ifndef _TMECONFIG_H
24683: #define _TMECONFIG_H
24684:
24685: TMEEOF
1.1.1.2 ! root 24686: (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ SIZEOF_ WORDS_BIGENDIAN; do \
1.1 root 24687: grep $word config.h | sed 's/#define[ ]\{1,\}/&_TME_/' ; \
24688: done) | sort | uniq >> ${outfile}-tmp
24689: echo '#define TME_RELEASE_MAJOR (' \
24690: `echo $VERSION | sed -e 's,^\([0-9][0-9]*\)\.[0-9][0-9]*$,\1,'` ')' >> ${outfile}-tmp
24691: echo '#define TME_RELEASE_MINOR (' \
24692: `echo $VERSION | sed -e 's,^[0-9][0-9]*\.\([0-9][0-9]*\)$,\1,'` ')' >> ${outfile}-tmp
24693: echo '#define TME_BUILD_TARGET "'$target'"' >> ${outfile}-tmp
1.1.1.2 ! root 24694: if test $ac_cv_sizeof_long = 8; then
! 24695: echo '#define TME_HAVE_INT64_T' >> ${outfile}-tmp
! 24696: echo 'typedef signed long tme_int64_t;' >> ${outfile}-tmp
! 24697: echo 'typedef unsigned long tme_uint64_t;' >> ${outfile}-tmp
! 24698: fi
1.1 root 24699: if test $ac_cv_sizeof_int = 4; then
24700: echo 'typedef signed int tme_int32_t;' >> ${outfile}-tmp
24701: echo 'typedef unsigned int tme_uint32_t;' >> ${outfile}-tmp
24702: elif test $ac_cv_sizeof_long = 4; then
24703: echo 'typedef signed long tme_int32_t;' >> ${outfile}-tmp
24704: echo 'typedef unsigned long tme_uint32_t;' >> ${outfile}-tmp
24705: fi
24706: if test $ac_cv_sizeof_int = 2; then
24707: echo 'typedef signed int tme_int16_t;' >> ${outfile}-tmp
24708: echo 'typedef unsigned int tme_uint16_t;' >> ${outfile}-tmp
24709: elif test $ac_cv_sizeof_short = 2; then
24710: echo 'typedef signed short tme_int16_t;' >> ${outfile}-tmp
24711: echo 'typedef unsigned short tme_uint16_t;' >> ${outfile}-tmp
24712: fi
24713: echo 'typedef signed char tme_int8_t;' >> ${outfile}-tmp
24714: echo 'typedef unsigned char tme_uint8_t;' >> ${outfile}-tmp
24715: cat <<TMEEOF >> ${outfile}-tmp
24716:
24717: /* features that aren't currently controlled by a configure option: */
24718: #define TME_THREADS_SJLJ
24719:
24720: #endif /* !_TMECONFIG_H */
24721: TMEEOF
24722: if cmp -s ${outfile}-tmp $outfile; then
24723: echo "$as_me: $outfile is unchanged"
24724: rm -f ${outfile}-tmp
24725: else
24726: mv ${outfile}-tmp ${outfile}
24727: fi
24728: fi
24729: ;;
24730: esac
24731: done
24732: _ACEOF
24733:
24734: cat >>$CONFIG_STATUS <<\_ACEOF
24735:
24736: { (exit 0); exit 0; }
24737: _ACEOF
24738: chmod +x $CONFIG_STATUS
24739: ac_clean_files=$ac_clean_files_save
24740:
24741:
24742: # configure is writing to config.log, and then calls config.status.
24743: # config.status does its own redirection, appending to config.log.
24744: # Unfortunately, on DOS this fails, as config.log is still kept open
24745: # by configure, so config.status won't be able to write to it; its
24746: # output is simply discarded. So we exec the FD to /dev/null,
24747: # effectively closing config.log, so it can be properly (re)opened and
24748: # appended to by config.status. When coming back to configure, we
24749: # need to make the FD available again.
24750: if test "$no_create" != yes; then
24751: ac_cs_success=:
24752: ac_config_status_args=
24753: test "$silent" = yes &&
24754: ac_config_status_args="$ac_config_status_args --quiet"
24755: exec 5>/dev/null
24756: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24757: exec 5>>config.log
24758: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24759: # would make configure fail if this is the last instruction.
24760: $ac_cs_success || { (exit 1); exit 1; }
24761: fi
24762:
24763: #
24764: # CONFIG_SUBDIRS section.
24765: #
24766: if test "$no_recursion" != yes; then
24767:
24768: # Remove --cache-file and --srcdir arguments so they do not pile up.
24769: ac_sub_configure_args=
24770: ac_prev=
24771: for ac_arg in $ac_configure_args; do
24772: if test -n "$ac_prev"; then
24773: ac_prev=
24774: continue
24775: fi
24776: case $ac_arg in
24777: -cache-file | --cache-file | --cache-fil | --cache-fi \
24778: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24779: ac_prev=cache_file ;;
24780: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24781: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24782: | --c=*)
24783: ;;
24784: --config-cache | -C)
24785: ;;
24786: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24787: ac_prev=srcdir ;;
24788: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24789: ;;
24790: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24791: ac_prev=prefix ;;
24792: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24793: ;;
24794: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24795: esac
24796: done
24797:
24798: # Always prepend --prefix to ensure using the same prefix
24799: # in subdir configurations.
24800: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24801:
24802: ac_popdir=`pwd`
24803: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24804:
24805: # Do not complain, so a configure script can configure whichever
24806: # parts of a large source tree are present.
24807: test -d $srcdir/$ac_dir || continue
24808:
24809: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24810: echo "$as_me: configuring in $ac_dir" >&6;}
24811: { if $as_mkdir_p; then
24812: mkdir -p "$ac_dir"
24813: else
24814: as_dir="$ac_dir"
24815: as_dirs=
24816: while test ! -d "$as_dir"; do
24817: as_dirs="$as_dir $as_dirs"
24818: as_dir=`(dirname "$as_dir") 2>/dev/null ||
24819: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24820: X"$as_dir" : 'X\(//\)[^/]' \| \
24821: X"$as_dir" : 'X\(//\)$' \| \
24822: X"$as_dir" : 'X\(/\)' \| \
24823: . : '\(.\)' 2>/dev/null ||
24824: echo X"$as_dir" |
24825: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24826: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24827: /^X\(\/\/\)$/{ s//\1/; q; }
24828: /^X\(\/\).*/{ s//\1/; q; }
24829: s/.*/./; q'`
24830: done
24831: test ! -n "$as_dirs" || mkdir $as_dirs
24832: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24833: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24834: { (exit 1); exit 1; }; }; }
24835:
24836: ac_builddir=.
24837:
24838: if test "$ac_dir" != .; then
24839: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24840: # A "../" for each directory in $ac_dir_suffix.
24841: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24842: else
24843: ac_dir_suffix= ac_top_builddir=
24844: fi
24845:
24846: case $srcdir in
24847: .) # No --srcdir option. We are building in place.
24848: ac_srcdir=.
24849: if test -z "$ac_top_builddir"; then
24850: ac_top_srcdir=.
24851: else
24852: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24853: fi ;;
24854: [\\/]* | ?:[\\/]* ) # Absolute path.
24855: ac_srcdir=$srcdir$ac_dir_suffix;
24856: ac_top_srcdir=$srcdir ;;
24857: *) # Relative path.
24858: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24859: ac_top_srcdir=$ac_top_builddir$srcdir ;;
24860: esac
24861: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24862: # absolute.
24863: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24864: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24865: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24866: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24867:
24868:
24869: cd $ac_dir
24870:
24871: # Check for guested configure; otherwise get Cygnus style configure.
24872: if test -f $ac_srcdir/configure.gnu; then
24873: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24874: elif test -f $ac_srcdir/configure; then
24875: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24876: elif test -f $ac_srcdir/configure.in; then
24877: ac_sub_configure=$ac_configure
24878: else
24879: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24880: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24881: ac_sub_configure=
24882: fi
24883:
24884: # The recursion is here.
24885: if test -n "$ac_sub_configure"; then
24886: # Make the cache file name correct relative to the subdirectory.
24887: case $cache_file in
24888: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24889: *) # Relative path.
24890: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24891: esac
24892:
24893: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24894: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24895: # The eval makes quoting arguments work.
24896: eval $ac_sub_configure $ac_sub_configure_args \
24897: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24898: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24899: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24900: { (exit 1); exit 1; }; }
24901: fi
24902:
24903: cd $ac_popdir
24904: done
24905: fi
24906:
24907:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.