Annotation of fam/configure, Revision 1.1.1.1
1.1 trev 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: # Find the correct PATH separator. Usually this is `:', but
244: # DJGPP uses `;' like DOS.
245: if test "X${PATH_SEPARATOR+set}" != Xset; then
246: UNAME=${UNAME-`uname 2>/dev/null`}
247: case X$UNAME in
248: *-DOS) lt_cv_sys_path_separator=';' ;;
249: *) lt_cv_sys_path_separator=':' ;;
250: esac
251: PATH_SEPARATOR=$lt_cv_sys_path_separator
252: fi
253:
254:
255: # Check that we are running under the correct shell.
256: SHELL=${CONFIG_SHELL-/bin/sh}
257:
258: case X$ECHO in
259: X*--fallback-echo)
260: # Remove one level of quotation (which was required for Make).
261: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262: ;;
263: esac
264:
265: echo=${ECHO-echo}
266: if test "X$1" = X--no-reexec; then
267: # Discard the --no-reexec flag, and continue.
268: shift
269: elif test "X$1" = X--fallback-echo; then
270: # Avoid inline document here, it may be left over
271: :
272: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273: # Yippee, $echo works!
274: :
275: else
276: # Restart under the correct shell.
277: exec $SHELL "$0" --no-reexec ${1+"$@"}
278: fi
279:
280: if test "X$1" = X--fallback-echo; then
281: # used as fallback echo
282: shift
283: cat <<EOF
284:
285: EOF
286: exit 0
287: fi
288:
289: # The HP-UX ksh and POSIX shell print the target directory to stdout
290: # if CDPATH is set.
291: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292:
293: if test -z "$ECHO"; then
294: if test "X${echo_test_string+set}" != Xset; then
295: # find a string as large as possible, as long as the shell can cope with it
296: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299: echo_test_string="`eval $cmd`" &&
300: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301: then
302: break
303: fi
304: done
305: fi
306:
307: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309: test "X$echo_testing_string" = "X$echo_test_string"; then
310: :
311: else
312: # The Solaris, AIX, and Digital Unix default echo programs unquote
313: # backslashes. This makes it impossible to quote backslashes using
314: # echo "$something" | sed 's/\\/\\\\/g'
315: #
316: # So, first we look for a working echo in the user's PATH.
317:
318: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319: for dir in $PATH /usr/ucb; do
320: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323: test "X$echo_testing_string" = "X$echo_test_string"; then
324: echo="$dir/echo"
325: break
326: fi
327: done
328: IFS="$save_ifs"
329:
330: if test "X$echo" = Xecho; then
331: # We didn't find a better echo, so look for alternatives.
332: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334: test "X$echo_testing_string" = "X$echo_test_string"; then
335: # This shell has a builtin print -r that does the trick.
336: echo='print -r'
337: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338: test "X$CONFIG_SHELL" != X/bin/ksh; then
339: # If we have ksh, try running configure again with it.
340: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341: export ORIGINAL_CONFIG_SHELL
342: CONFIG_SHELL=/bin/ksh
343: export CONFIG_SHELL
344: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345: else
346: # Try using printf.
347: echo='printf %s\n'
348: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350: test "X$echo_testing_string" = "X$echo_test_string"; then
351: # Cool, printf works
352: :
353: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354: test "X$echo_testing_string" = 'X\t' &&
355: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356: test "X$echo_testing_string" = "X$echo_test_string"; then
357: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358: export CONFIG_SHELL
359: SHELL="$CONFIG_SHELL"
360: export SHELL
361: echo="$CONFIG_SHELL $0 --fallback-echo"
362: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363: test "X$echo_testing_string" = 'X\t' &&
364: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365: test "X$echo_testing_string" = "X$echo_test_string"; then
366: echo="$CONFIG_SHELL $0 --fallback-echo"
367: else
368: # maybe with a smaller string...
369: prev=:
370:
371: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373: then
374: break
375: fi
376: prev="$cmd"
377: done
378:
379: if test "$prev" != 'sed 50q "$0"'; then
380: echo_test_string=`eval $prev`
381: export echo_test_string
382: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383: else
384: # Oops. We lost completely, so just stick with echo.
385: echo=echo
386: fi
387: fi
388: fi
389: fi
390: fi
391: fi
392:
393: # Copy echo and quote the copy suitably for passing to libtool from
394: # the Makefile, instead of quoting the original, which is used later.
395: ECHO=$echo
396: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398: fi
399:
400:
401:
402: # Name of the host.
403: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404: # so uname gets run too.
405: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406:
407: exec 6>&1
408:
409: #
410: # Initializations.
411: #
412: ac_default_prefix=/usr/local
413: ac_config_libobj_dir=.
414: cross_compiling=no
415: subdirs=
416: MFLAGS=
417: MAKEFLAGS=
418: SHELL=${CONFIG_SHELL-/bin/sh}
419:
420: # Maximum number of lines to put in a shell here document.
421: # This variable seems obsolete. It should probably be removed, and
422: # only ac_max_sed_lines should be used.
423: : ${ac_max_here_lines=38}
424:
425: # Identity of this package.
426: PACKAGE_NAME=
427: PACKAGE_TARNAME=
428: PACKAGE_VERSION=
429: PACKAGE_STRING=
430: PACKAGE_BUGREPORT=
431:
432: ac_unique_file="libfam/fam.c++"
433: # Factoring default headers for most tests.
434: ac_includes_default="\
435: #include <stdio.h>
436: #if HAVE_SYS_TYPES_H
437: # include <sys/types.h>
438: #endif
439: #if HAVE_SYS_STAT_H
440: # include <sys/stat.h>
441: #endif
442: #if STDC_HEADERS
443: # include <stdlib.h>
444: # include <stddef.h>
445: #else
446: # if HAVE_STDLIB_H
447: # include <stdlib.h>
448: # endif
449: #endif
450: #if HAVE_STRING_H
451: # if !STDC_HEADERS && HAVE_MEMORY_H
452: # include <memory.h>
453: # endif
454: # include <string.h>
455: #endif
456: #if HAVE_STRINGS_H
457: # include <strings.h>
458: #endif
459: #if HAVE_INTTYPES_H
460: # include <inttypes.h>
461: #else
462: # if HAVE_STDINT_H
463: # include <stdint.h>
464: # endif
465: #endif
466: #if HAVE_UNISTD_H
467: # include <unistd.h>
468: #endif"
469:
470: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL FAMPROTOINC FAM_CONF CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP TAR LDCONFIG IMON_FUNCS MKDEPFILE snprintf_o foo_o LIBOBJS LTLIBOBJS'
471: ac_subst_files=''
472:
473: # Initialize some variables set by options.
474: ac_init_help=
475: ac_init_version=false
476: # The variables have the same names as the options, with
477: # dashes changed to underlines.
478: cache_file=/dev/null
479: exec_prefix=NONE
480: no_create=
481: no_recursion=
482: prefix=NONE
483: program_prefix=NONE
484: program_suffix=NONE
485: program_transform_name=s,x,x,
486: silent=
487: site=
488: srcdir=
489: verbose=
490: x_includes=NONE
491: x_libraries=NONE
492:
493: # Installation directory options.
494: # These are left unexpanded so users can "make install exec_prefix=/foo"
495: # and all the variables that are supposed to be based on exec_prefix
496: # by default will actually change.
497: # Use braces instead of parens because sh, perl, etc. also accept them.
498: bindir='${exec_prefix}/bin'
499: sbindir='${exec_prefix}/sbin'
500: libexecdir='${exec_prefix}/libexec'
501: datadir='${prefix}/share'
502: sysconfdir='${prefix}/etc'
503: sharedstatedir='${prefix}/com'
504: localstatedir='${prefix}/var'
505: libdir='${exec_prefix}/lib'
506: includedir='${prefix}/include'
507: oldincludedir='/usr/include'
508: infodir='${prefix}/info'
509: mandir='${prefix}/man'
510:
511: ac_prev=
512: for ac_option
513: do
514: # If the previous option needs an argument, assign it.
515: if test -n "$ac_prev"; then
516: eval "$ac_prev=\$ac_option"
517: ac_prev=
518: continue
519: fi
520:
521: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522:
523: # Accept the important Cygnus configure options, so we can diagnose typos.
524:
525: case $ac_option in
526:
527: -bindir | --bindir | --bindi | --bind | --bin | --bi)
528: ac_prev=bindir ;;
529: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530: bindir=$ac_optarg ;;
531:
532: -build | --build | --buil | --bui | --bu)
533: ac_prev=build_alias ;;
534: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535: build_alias=$ac_optarg ;;
536:
537: -cache-file | --cache-file | --cache-fil | --cache-fi \
538: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539: ac_prev=cache_file ;;
540: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542: cache_file=$ac_optarg ;;
543:
544: --config-cache | -C)
545: cache_file=config.cache ;;
546:
547: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548: ac_prev=datadir ;;
549: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550: | --da=*)
551: datadir=$ac_optarg ;;
552:
553: -disable-* | --disable-*)
554: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555: # Reject names that are not valid shell variable names.
556: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558: { (exit 1); exit 1; }; }
559: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560: eval "enable_$ac_feature=no" ;;
561:
562: -enable-* | --enable-*)
563: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564: # Reject names that are not valid shell variable names.
565: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567: { (exit 1); exit 1; }; }
568: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569: case $ac_option in
570: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571: *) ac_optarg=yes ;;
572: esac
573: eval "enable_$ac_feature='$ac_optarg'" ;;
574:
575: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577: | --exec | --exe | --ex)
578: ac_prev=exec_prefix ;;
579: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581: | --exec=* | --exe=* | --ex=*)
582: exec_prefix=$ac_optarg ;;
583:
584: -gas | --gas | --ga | --g)
585: # Obsolete; use --with-gas.
586: with_gas=yes ;;
587:
588: -help | --help | --hel | --he | -h)
589: ac_init_help=long ;;
590: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591: ac_init_help=recursive ;;
592: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593: ac_init_help=short ;;
594:
595: -host | --host | --hos | --ho)
596: ac_prev=host_alias ;;
597: -host=* | --host=* | --hos=* | --ho=*)
598: host_alias=$ac_optarg ;;
599:
600: -includedir | --includedir | --includedi | --included | --include \
601: | --includ | --inclu | --incl | --inc)
602: ac_prev=includedir ;;
603: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604: | --includ=* | --inclu=* | --incl=* | --inc=*)
605: includedir=$ac_optarg ;;
606:
607: -infodir | --infodir | --infodi | --infod | --info | --inf)
608: ac_prev=infodir ;;
609: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610: infodir=$ac_optarg ;;
611:
612: -libdir | --libdir | --libdi | --libd)
613: ac_prev=libdir ;;
614: -libdir=* | --libdir=* | --libdi=* | --libd=*)
615: libdir=$ac_optarg ;;
616:
617: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618: | --libexe | --libex | --libe)
619: ac_prev=libexecdir ;;
620: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621: | --libexe=* | --libex=* | --libe=*)
622: libexecdir=$ac_optarg ;;
623:
624: -localstatedir | --localstatedir | --localstatedi | --localstated \
625: | --localstate | --localstat | --localsta | --localst \
626: | --locals | --local | --loca | --loc | --lo)
627: ac_prev=localstatedir ;;
628: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631: localstatedir=$ac_optarg ;;
632:
633: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634: ac_prev=mandir ;;
635: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636: mandir=$ac_optarg ;;
637:
638: -nfp | --nfp | --nf)
639: # Obsolete; use --without-fp.
640: with_fp=no ;;
641:
642: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643: | --no-cr | --no-c | -n)
644: no_create=yes ;;
645:
646: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648: no_recursion=yes ;;
649:
650: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652: | --oldin | --oldi | --old | --ol | --o)
653: ac_prev=oldincludedir ;;
654: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657: oldincludedir=$ac_optarg ;;
658:
659: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660: ac_prev=prefix ;;
661: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662: prefix=$ac_optarg ;;
663:
664: -program-prefix | --program-prefix | --program-prefi | --program-pref \
665: | --program-pre | --program-pr | --program-p)
666: ac_prev=program_prefix ;;
667: -program-prefix=* | --program-prefix=* | --program-prefi=* \
668: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669: program_prefix=$ac_optarg ;;
670:
671: -program-suffix | --program-suffix | --program-suffi | --program-suff \
672: | --program-suf | --program-su | --program-s)
673: ac_prev=program_suffix ;;
674: -program-suffix=* | --program-suffix=* | --program-suffi=* \
675: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676: program_suffix=$ac_optarg ;;
677:
678: -program-transform-name | --program-transform-name \
679: | --program-transform-nam | --program-transform-na \
680: | --program-transform-n | --program-transform- \
681: | --program-transform | --program-transfor \
682: | --program-transfo | --program-transf \
683: | --program-trans | --program-tran \
684: | --progr-tra | --program-tr | --program-t)
685: ac_prev=program_transform_name ;;
686: -program-transform-name=* | --program-transform-name=* \
687: | --program-transform-nam=* | --program-transform-na=* \
688: | --program-transform-n=* | --program-transform-=* \
689: | --program-transform=* | --program-transfor=* \
690: | --program-transfo=* | --program-transf=* \
691: | --program-trans=* | --program-tran=* \
692: | --progr-tra=* | --program-tr=* | --program-t=*)
693: program_transform_name=$ac_optarg ;;
694:
695: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696: | -silent | --silent | --silen | --sile | --sil)
697: silent=yes ;;
698:
699: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700: ac_prev=sbindir ;;
701: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702: | --sbi=* | --sb=*)
703: sbindir=$ac_optarg ;;
704:
705: -sharedstatedir | --sharedstatedir | --sharedstatedi \
706: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707: | --sharedst | --shareds | --shared | --share | --shar \
708: | --sha | --sh)
709: ac_prev=sharedstatedir ;;
710: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713: | --sha=* | --sh=*)
714: sharedstatedir=$ac_optarg ;;
715:
716: -site | --site | --sit)
717: ac_prev=site ;;
718: -site=* | --site=* | --sit=*)
719: site=$ac_optarg ;;
720:
721: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722: ac_prev=srcdir ;;
723: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724: srcdir=$ac_optarg ;;
725:
726: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727: | --syscon | --sysco | --sysc | --sys | --sy)
728: ac_prev=sysconfdir ;;
729: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731: sysconfdir=$ac_optarg ;;
732:
733: -target | --target | --targe | --targ | --tar | --ta | --t)
734: ac_prev=target_alias ;;
735: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736: target_alias=$ac_optarg ;;
737:
738: -v | -verbose | --verbose | --verbos | --verbo | --verb)
739: verbose=yes ;;
740:
741: -version | --version | --versio | --versi | --vers | -V)
742: ac_init_version=: ;;
743:
744: -with-* | --with-*)
745: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746: # Reject names that are not valid shell variable names.
747: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748: { echo "$as_me: error: invalid package name: $ac_package" >&2
749: { (exit 1); exit 1; }; }
750: ac_package=`echo $ac_package| sed 's/-/_/g'`
751: case $ac_option in
752: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753: *) ac_optarg=yes ;;
754: esac
755: eval "with_$ac_package='$ac_optarg'" ;;
756:
757: -without-* | --without-*)
758: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759: # Reject names that are not valid shell variable names.
760: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761: { echo "$as_me: error: invalid package name: $ac_package" >&2
762: { (exit 1); exit 1; }; }
763: ac_package=`echo $ac_package | sed 's/-/_/g'`
764: eval "with_$ac_package=no" ;;
765:
766: --x)
767: # Obsolete; use --with-x.
768: with_x=yes ;;
769:
770: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771: | --x-incl | --x-inc | --x-in | --x-i)
772: ac_prev=x_includes ;;
773: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775: x_includes=$ac_optarg ;;
776:
777: -x-libraries | --x-libraries | --x-librarie | --x-librari \
778: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779: ac_prev=x_libraries ;;
780: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782: x_libraries=$ac_optarg ;;
783:
784: -*) { echo "$as_me: error: unrecognized option: $ac_option
785: Try \`$0 --help' for more information." >&2
786: { (exit 1); exit 1; }; }
787: ;;
788:
789: *=*)
790: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791: # Reject names that are not valid shell variable names.
792: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794: { (exit 1); exit 1; }; }
795: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796: eval "$ac_envvar='$ac_optarg'"
797: export $ac_envvar ;;
798:
799: *)
800: # FIXME: should be removed in autoconf 3.0.
801: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805: ;;
806:
807: esac
808: done
809:
810: if test -n "$ac_prev"; then
811: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812: { echo "$as_me: error: missing argument to $ac_option" >&2
813: { (exit 1); exit 1; }; }
814: fi
815:
816: # Be sure to have absolute paths.
817: for ac_var in exec_prefix prefix
818: do
819: eval ac_val=$`echo $ac_var`
820: case $ac_val in
821: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823: { (exit 1); exit 1; }; };;
824: esac
825: done
826:
827: # Be sure to have absolute paths.
828: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829: localstatedir libdir includedir oldincludedir infodir mandir
830: do
831: eval ac_val=$`echo $ac_var`
832: case $ac_val in
833: [\\/$]* | ?:[\\/]* ) ;;
834: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835: { (exit 1); exit 1; }; };;
836: esac
837: done
838:
839: # There might be people who depend on the old broken behavior: `$host'
840: # used to hold the argument of --host etc.
841: # FIXME: To remove some day.
842: build=$build_alias
843: host=$host_alias
844: target=$target_alias
845:
846: # FIXME: To remove some day.
847: if test "x$host_alias" != x; then
848: if test "x$build_alias" = x; then
849: cross_compiling=maybe
850: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851: If a cross compiler is detected then cross compile mode will be used." >&2
852: elif test "x$build_alias" != "x$host_alias"; then
853: cross_compiling=yes
854: fi
855: fi
856:
857: ac_tool_prefix=
858: test -n "$host_alias" && ac_tool_prefix=$host_alias-
859:
860: test "$silent" = yes && exec 6>/dev/null
861:
862:
863: # Find the source files, if location was not specified.
864: if test -z "$srcdir"; then
865: ac_srcdir_defaulted=yes
866: # Try the directory containing this script, then its parent.
867: ac_confdir=`(dirname "$0") 2>/dev/null ||
868: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869: X"$0" : 'X\(//\)[^/]' \| \
870: X"$0" : 'X\(//\)$' \| \
871: X"$0" : 'X\(/\)' \| \
872: . : '\(.\)' 2>/dev/null ||
873: echo X"$0" |
874: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876: /^X\(\/\/\)$/{ s//\1/; q; }
877: /^X\(\/\).*/{ s//\1/; q; }
878: s/.*/./; q'`
879: srcdir=$ac_confdir
880: if test ! -r $srcdir/$ac_unique_file; then
881: srcdir=..
882: fi
883: else
884: ac_srcdir_defaulted=no
885: fi
886: if test ! -r $srcdir/$ac_unique_file; then
887: if test "$ac_srcdir_defaulted" = yes; then
888: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889: { (exit 1); exit 1; }; }
890: else
891: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892: { (exit 1); exit 1; }; }
893: fi
894: fi
895: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897: { (exit 1); exit 1; }; }
898: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899: ac_env_build_alias_set=${build_alias+set}
900: ac_env_build_alias_value=$build_alias
901: ac_cv_env_build_alias_set=${build_alias+set}
902: ac_cv_env_build_alias_value=$build_alias
903: ac_env_host_alias_set=${host_alias+set}
904: ac_env_host_alias_value=$host_alias
905: ac_cv_env_host_alias_set=${host_alias+set}
906: ac_cv_env_host_alias_value=$host_alias
907: ac_env_target_alias_set=${target_alias+set}
908: ac_env_target_alias_value=$target_alias
909: ac_cv_env_target_alias_set=${target_alias+set}
910: ac_cv_env_target_alias_value=$target_alias
911: ac_env_CC_set=${CC+set}
912: ac_env_CC_value=$CC
913: ac_cv_env_CC_set=${CC+set}
914: ac_cv_env_CC_value=$CC
915: ac_env_CFLAGS_set=${CFLAGS+set}
916: ac_env_CFLAGS_value=$CFLAGS
917: ac_cv_env_CFLAGS_set=${CFLAGS+set}
918: ac_cv_env_CFLAGS_value=$CFLAGS
919: ac_env_LDFLAGS_set=${LDFLAGS+set}
920: ac_env_LDFLAGS_value=$LDFLAGS
921: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922: ac_cv_env_LDFLAGS_value=$LDFLAGS
923: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924: ac_env_CPPFLAGS_value=$CPPFLAGS
925: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927: ac_env_CPP_set=${CPP+set}
928: ac_env_CPP_value=$CPP
929: ac_cv_env_CPP_set=${CPP+set}
930: ac_cv_env_CPP_value=$CPP
931: ac_env_CXX_set=${CXX+set}
932: ac_env_CXX_value=$CXX
933: ac_cv_env_CXX_set=${CXX+set}
934: ac_cv_env_CXX_value=$CXX
935: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936: ac_env_CXXFLAGS_value=$CXXFLAGS
937: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939: ac_env_CXXCPP_set=${CXXCPP+set}
940: ac_env_CXXCPP_value=$CXXCPP
941: ac_cv_env_CXXCPP_set=${CXXCPP+set}
942: ac_cv_env_CXXCPP_value=$CXXCPP
943:
944: #
945: # Report the --help message.
946: #
947: if test "$ac_init_help" = "long"; then
948: # Omit some internal or obsolete options to make the list less imposing.
949: # This message is too long to be a string in the A/UX 3.1 sh.
950: cat <<_ACEOF
951: \`configure' configures this package to adapt to many kinds of systems.
952:
953: Usage: $0 [OPTION]... [VAR=VALUE]...
954:
955: To assign environment variables (e.g., CC, CFLAGS...), specify them as
956: VAR=VALUE. See below for descriptions of some of the useful variables.
957:
958: Defaults for the options are specified in brackets.
959:
960: Configuration:
961: -h, --help display this help and exit
962: --help=short display options specific to this package
963: --help=recursive display the short help of all the included packages
964: -V, --version display version information and exit
965: -q, --quiet, --silent do not print \`checking...' messages
966: --cache-file=FILE cache test results in FILE [disabled]
967: -C, --config-cache alias for \`--cache-file=config.cache'
968: -n, --no-create do not create output files
969: --srcdir=DIR find the sources in DIR [configure dir or \`..']
970:
971: _ACEOF
972:
973: cat <<_ACEOF
974: Installation directories:
975: --prefix=PREFIX install architecture-independent files in PREFIX
976: [$ac_default_prefix]
977: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
978: [PREFIX]
979:
980: By default, \`make install' will install all the files in
981: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
982: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
983: for instance \`--prefix=\$HOME'.
984:
985: For better control, use the options below.
986:
987: Fine tuning of the installation directories:
988: --bindir=DIR user executables [EPREFIX/bin]
989: --sbindir=DIR system admin executables [EPREFIX/sbin]
990: --libexecdir=DIR program executables [EPREFIX/libexec]
991: --datadir=DIR read-only architecture-independent data [PREFIX/share]
992: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
993: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
994: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
995: --libdir=DIR object code libraries [EPREFIX/lib]
996: --includedir=DIR C header files [PREFIX/include]
997: --oldincludedir=DIR C header files for non-gcc [/usr/include]
998: --infodir=DIR info documentation [PREFIX/info]
999: --mandir=DIR man documentation [PREFIX/man]
1000: _ACEOF
1001:
1002: cat <<\_ACEOF
1003:
1004: Program names:
1005: --program-prefix=PREFIX prepend PREFIX to installed program names
1006: --program-suffix=SUFFIX append SUFFIX to installed program names
1007: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1008:
1009: System types:
1010: --build=BUILD configure for building on BUILD [guessed]
1011: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012: _ACEOF
1013: fi
1014:
1015: if test -n "$ac_init_help"; then
1016:
1017: cat <<\_ACEOF
1018:
1019: Optional Features:
1020: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022: --enable-shared=PKGS build shared libraries default=yes
1023: --enable-static=PKGS build static libraries default=yes
1024: --enable-fast-install=PKGS optimize for fast installation default=yes
1025: --disable-dependency-tracking Speeds up one-time builds
1026: --enable-dependency-tracking Do not reject slow dependency extractors
1027: --disable-libtool-lock avoid locking (might break parallel builds)
1028:
1029: Optional Packages:
1030: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1031: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1032: --with-gnu-ld assume the C compiler uses GNU ld default=no
1033: --with-pic try to use only PIC/non-PIC objects default=use both
1034: --with-CFLAGS=\"flags\" set CFLAGS and CXXFLAGS to the given value
1035:
1036: Some influential environment variables:
1037: CC C compiler command
1038: CFLAGS C compiler flags
1039: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040: nonstandard directory <lib dir>
1041: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042: headers in a nonstandard directory <include dir>
1043: CPP C preprocessor
1044: CXX C++ compiler command
1045: CXXFLAGS C++ compiler flags
1046: CXXCPP C++ preprocessor
1047:
1048: Use these variables to override the choices made by `configure' or to help
1049: it to find libraries and programs with nonstandard names/locations.
1050:
1051: _ACEOF
1052: fi
1053:
1054: if test "$ac_init_help" = "recursive"; then
1055: # If there are subdirs, report their specific --help.
1056: ac_popdir=`pwd`
1057: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058: test -d $ac_dir || continue
1059: ac_builddir=.
1060:
1061: if test "$ac_dir" != .; then
1062: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063: # A "../" for each directory in $ac_dir_suffix.
1064: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065: else
1066: ac_dir_suffix= ac_top_builddir=
1067: fi
1068:
1069: case $srcdir in
1070: .) # No --srcdir option. We are building in place.
1071: ac_srcdir=.
1072: if test -z "$ac_top_builddir"; then
1073: ac_top_srcdir=.
1074: else
1075: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076: fi ;;
1077: [\\/]* | ?:[\\/]* ) # Absolute path.
1078: ac_srcdir=$srcdir$ac_dir_suffix;
1079: ac_top_srcdir=$srcdir ;;
1080: *) # Relative path.
1081: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083: esac
1084: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1085: # absolute.
1086: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1087: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1088: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1089: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1090:
1091: cd $ac_dir
1092: # Check for guested configure; otherwise get Cygnus style configure.
1093: if test -f $ac_srcdir/configure.gnu; then
1094: echo
1095: $SHELL $ac_srcdir/configure.gnu --help=recursive
1096: elif test -f $ac_srcdir/configure; then
1097: echo
1098: $SHELL $ac_srcdir/configure --help=recursive
1099: elif test -f $ac_srcdir/configure.ac ||
1100: test -f $ac_srcdir/configure.in; then
1101: echo
1102: $ac_configure --help
1103: else
1104: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1105: fi
1106: cd $ac_popdir
1107: done
1108: fi
1109:
1110: test -n "$ac_init_help" && exit 0
1111: if $ac_init_version; then
1112: cat <<\_ACEOF
1113:
1114: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1115: Free Software Foundation, Inc.
1116: This configure script is free software; the Free Software Foundation
1117: gives unlimited permission to copy, distribute and modify it.
1118: _ACEOF
1119: exit 0
1120: fi
1121: exec 5>config.log
1122: cat >&5 <<_ACEOF
1123: This file contains any messages produced by compilers while
1124: running configure, to aid debugging if configure makes a mistake.
1125:
1126: It was created by $as_me, which was
1127: generated by GNU Autoconf 2.57. Invocation command line was
1128:
1129: $ $0 $@
1130:
1131: _ACEOF
1132: {
1133: cat <<_ASUNAME
1134: ## --------- ##
1135: ## Platform. ##
1136: ## --------- ##
1137:
1138: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1139: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1140: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1141: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1142: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1143:
1144: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1145: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1146:
1147: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1148: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1149: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1150: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1151: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1152: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1153: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1154:
1155: _ASUNAME
1156:
1157: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1158: for as_dir in $PATH
1159: do
1160: IFS=$as_save_IFS
1161: test -z "$as_dir" && as_dir=.
1162: echo "PATH: $as_dir"
1163: done
1164:
1165: } >&5
1166:
1167: cat >&5 <<_ACEOF
1168:
1169:
1170: ## ----------- ##
1171: ## Core tests. ##
1172: ## ----------- ##
1173:
1174: _ACEOF
1175:
1176:
1177: # Keep a trace of the command line.
1178: # Strip out --no-create and --no-recursion so they do not pile up.
1179: # Strip out --silent because we don't want to record it for future runs.
1180: # Also quote any args containing shell meta-characters.
1181: # Make two passes to allow for proper duplicate-argument suppression.
1182: ac_configure_args=
1183: ac_configure_args0=
1184: ac_configure_args1=
1185: ac_sep=
1186: ac_must_keep_next=false
1187: for ac_pass in 1 2
1188: do
1189: for ac_arg
1190: do
1191: case $ac_arg in
1192: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1193: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194: | -silent | --silent | --silen | --sile | --sil)
1195: continue ;;
1196: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1197: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1198: esac
1199: case $ac_pass in
1200: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1201: 2)
1202: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1203: if test $ac_must_keep_next = true; then
1204: ac_must_keep_next=false # Got value, back to normal.
1205: else
1206: case $ac_arg in
1207: *=* | --config-cache | -C | -disable-* | --disable-* \
1208: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1209: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1210: | -with-* | --with-* | -without-* | --without-* | --x)
1211: case "$ac_configure_args0 " in
1212: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1213: esac
1214: ;;
1215: -* ) ac_must_keep_next=true ;;
1216: esac
1217: fi
1218: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1219: # Get rid of the leading space.
1220: ac_sep=" "
1221: ;;
1222: esac
1223: done
1224: done
1225: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1226: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1227:
1228: # When interrupted or exit'd, cleanup temporary files, and complete
1229: # config.log. We remove comments because anyway the quotes in there
1230: # would cause problems or look ugly.
1231: # WARNING: Be sure not to use single quotes in there, as some shells,
1232: # such as our DU 5.0 friend, will then `close' the trap.
1233: trap 'exit_status=$?
1234: # Save into config.log some information that might help in debugging.
1235: {
1236: echo
1237:
1238: cat <<\_ASBOX
1239: ## ---------------- ##
1240: ## Cache variables. ##
1241: ## ---------------- ##
1242: _ASBOX
1243: echo
1244: # The following way of writing the cache mishandles newlines in values,
1245: {
1246: (set) 2>&1 |
1247: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1248: *ac_space=\ *)
1249: sed -n \
1250: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1251: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1252: ;;
1253: *)
1254: sed -n \
1255: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1256: ;;
1257: esac;
1258: }
1259: echo
1260:
1261: cat <<\_ASBOX
1262: ## ----------------- ##
1263: ## Output variables. ##
1264: ## ----------------- ##
1265: _ASBOX
1266: echo
1267: for ac_var in $ac_subst_vars
1268: do
1269: eval ac_val=$`echo $ac_var`
1270: echo "$ac_var='"'"'$ac_val'"'"'"
1271: done | sort
1272: echo
1273:
1274: if test -n "$ac_subst_files"; then
1275: cat <<\_ASBOX
1276: ## ------------- ##
1277: ## Output files. ##
1278: ## ------------- ##
1279: _ASBOX
1280: echo
1281: for ac_var in $ac_subst_files
1282: do
1283: eval ac_val=$`echo $ac_var`
1284: echo "$ac_var='"'"'$ac_val'"'"'"
1285: done | sort
1286: echo
1287: fi
1288:
1289: if test -s confdefs.h; then
1290: cat <<\_ASBOX
1291: ## ----------- ##
1292: ## confdefs.h. ##
1293: ## ----------- ##
1294: _ASBOX
1295: echo
1296: sed "/^$/d" confdefs.h | sort
1297: echo
1298: fi
1299: test "$ac_signal" != 0 &&
1300: echo "$as_me: caught signal $ac_signal"
1301: echo "$as_me: exit $exit_status"
1302: } >&5
1303: rm -f core core.* *.core &&
1304: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1305: exit $exit_status
1306: ' 0
1307: for ac_signal in 1 2 13 15; do
1308: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1309: done
1310: ac_signal=0
1311:
1312: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1313: rm -rf conftest* confdefs.h
1314: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1315: echo >confdefs.h
1316:
1317: # Predefined preprocessor variables.
1318:
1319: cat >>confdefs.h <<_ACEOF
1320: #define PACKAGE_NAME "$PACKAGE_NAME"
1321: _ACEOF
1322:
1323:
1324: cat >>confdefs.h <<_ACEOF
1325: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1326: _ACEOF
1327:
1328:
1329: cat >>confdefs.h <<_ACEOF
1330: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1331: _ACEOF
1332:
1333:
1334: cat >>confdefs.h <<_ACEOF
1335: #define PACKAGE_STRING "$PACKAGE_STRING"
1336: _ACEOF
1337:
1338:
1339: cat >>confdefs.h <<_ACEOF
1340: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1341: _ACEOF
1342:
1343:
1344: # Let the site file select an alternate cache file if it wants to.
1345: # Prefer explicitly selected file to automatically selected ones.
1346: if test -z "$CONFIG_SITE"; then
1347: if test "x$prefix" != xNONE; then
1348: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1349: else
1350: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1351: fi
1352: fi
1353: for ac_site_file in $CONFIG_SITE; do
1354: if test -r "$ac_site_file"; then
1355: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1356: echo "$as_me: loading site script $ac_site_file" >&6;}
1357: sed 's/^/| /' "$ac_site_file" >&5
1358: . "$ac_site_file"
1359: fi
1360: done
1361:
1362: if test -r "$cache_file"; then
1363: # Some versions of bash will fail to source /dev/null (special
1364: # files actually), so we avoid doing that.
1365: if test -f "$cache_file"; then
1366: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1367: echo "$as_me: loading cache $cache_file" >&6;}
1368: case $cache_file in
1369: [\\/]* | ?:[\\/]* ) . $cache_file;;
1370: *) . ./$cache_file;;
1371: esac
1372: fi
1373: else
1374: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1375: echo "$as_me: creating cache $cache_file" >&6;}
1376: >$cache_file
1377: fi
1378:
1379: # Check that the precious variables saved in the cache have kept the same
1380: # value.
1381: ac_cache_corrupted=false
1382: for ac_var in `(set) 2>&1 |
1383: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1384: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1385: eval ac_new_set=\$ac_env_${ac_var}_set
1386: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1387: eval ac_new_val="\$ac_env_${ac_var}_value"
1388: case $ac_old_set,$ac_new_set in
1389: set,)
1390: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1391: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1392: ac_cache_corrupted=: ;;
1393: ,set)
1394: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1395: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1396: ac_cache_corrupted=: ;;
1397: ,);;
1398: *)
1399: if test "x$ac_old_val" != "x$ac_new_val"; then
1400: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1401: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1402: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1403: echo "$as_me: former value: $ac_old_val" >&2;}
1404: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1405: echo "$as_me: current value: $ac_new_val" >&2;}
1406: ac_cache_corrupted=:
1407: fi;;
1408: esac
1409: # Pass precious variables to config.status.
1410: if test "$ac_new_set" = set; then
1411: case $ac_new_val in
1412: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1413: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1414: *) ac_arg=$ac_var=$ac_new_val ;;
1415: esac
1416: case " $ac_configure_args " in
1417: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1418: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1419: esac
1420: fi
1421: done
1422: if $ac_cache_corrupted; then
1423: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1424: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1425: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1426: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1427: { (exit 1); exit 1; }; }
1428: fi
1429:
1430: ac_ext=c
1431: ac_cpp='$CPP $CPPFLAGS'
1432: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435:
1436:
1437:
1438:
1439:
1440:
1441:
1442:
1443:
1444:
1445:
1446:
1447:
1448:
1449:
1450:
1451:
1452:
1453:
1454: am__api_version="1.6"
1455: ac_aux_dir=
1456: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1457: if test -f $ac_dir/install-sh; then
1458: ac_aux_dir=$ac_dir
1459: ac_install_sh="$ac_aux_dir/install-sh -c"
1460: break
1461: elif test -f $ac_dir/install.sh; then
1462: ac_aux_dir=$ac_dir
1463: ac_install_sh="$ac_aux_dir/install.sh -c"
1464: break
1465: elif test -f $ac_dir/shtool; then
1466: ac_aux_dir=$ac_dir
1467: ac_install_sh="$ac_aux_dir/shtool install -c"
1468: break
1469: fi
1470: done
1471: if test -z "$ac_aux_dir"; then
1472: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1473: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1474: { (exit 1); exit 1; }; }
1475: fi
1476: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1477: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1478: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1479:
1480: # Find a good install program. We prefer a C program (faster),
1481: # so one script is as good as another. But avoid the broken or
1482: # incompatible versions:
1483: # SysV /etc/install, /usr/sbin/install
1484: # SunOS /usr/etc/install
1485: # IRIX /sbin/install
1486: # AIX /bin/install
1487: # AmigaOS /C/install, which installs bootblocks on floppy discs
1488: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1489: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1491: # ./install, which can be erroneously created by make from ./install.sh.
1492: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1493: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1494: if test -z "$INSTALL"; then
1495: if test "${ac_cv_path_install+set}" = set; then
1496: echo $ECHO_N "(cached) $ECHO_C" >&6
1497: else
1498: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499: for as_dir in $PATH
1500: do
1501: IFS=$as_save_IFS
1502: test -z "$as_dir" && as_dir=.
1503: # Account for people who put trailing slashes in PATH elements.
1504: case $as_dir/ in
1505: ./ | .// | /cC/* | \
1506: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1507: /usr/ucb/* ) ;;
1508: *)
1509: # OSF1 and SCO ODT 3.0 have their own names for install.
1510: # Don't use installbsd from OSF since it installs stuff as root
1511: # by default.
1512: for ac_prog in ginstall scoinst install; do
1513: for ac_exec_ext in '' $ac_executable_extensions; do
1514: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1515: if test $ac_prog = install &&
1516: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1517: # AIX install. It has an incompatible calling convention.
1518: :
1519: elif test $ac_prog = install &&
1520: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1521: # program-specific install script used by HP pwplus--don't use.
1522: :
1523: else
1524: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1525: break 3
1526: fi
1527: fi
1528: done
1529: done
1530: ;;
1531: esac
1532: done
1533:
1534:
1535: fi
1536: if test "${ac_cv_path_install+set}" = set; then
1537: INSTALL=$ac_cv_path_install
1538: else
1539: # As a last resort, use the slow shell script. We don't cache a
1540: # path for INSTALL within a source directory, because that will
1541: # break other packages using the cache if that directory is
1542: # removed, or if the path is relative.
1543: INSTALL=$ac_install_sh
1544: fi
1545: fi
1546: echo "$as_me:$LINENO: result: $INSTALL" >&5
1547: echo "${ECHO_T}$INSTALL" >&6
1548:
1549: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1550: # It thinks the first close brace ends the variable substitution.
1551: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1552:
1553: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1554:
1555: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1556:
1557: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1558: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1559: # Just in case
1560: sleep 1
1561: echo timestamp > conftest.file
1562: # Do `set' in a subshell so we don't clobber the current shell's
1563: # arguments. Must try -L first in case configure is actually a
1564: # symlink; some systems play weird games with the mod time of symlinks
1565: # (eg FreeBSD returns the mod time of the symlink's containing
1566: # directory).
1567: if (
1568: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1569: if test "$*" = "X"; then
1570: # -L didn't work.
1571: set X `ls -t $srcdir/configure conftest.file`
1572: fi
1573: rm -f conftest.file
1574: if test "$*" != "X $srcdir/configure conftest.file" \
1575: && test "$*" != "X conftest.file $srcdir/configure"; then
1576:
1577: # If neither matched, then we have a broken ls. This can happen
1578: # if, for instance, CONFIG_SHELL is bash and it inherits a
1579: # broken ls alias from the environment. This has actually
1580: # happened. Such a system could not be considered "sane".
1581: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1582: alias in your environment" >&5
1583: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1584: alias in your environment" >&2;}
1585: { (exit 1); exit 1; }; }
1586: fi
1587:
1588: test "$2" = conftest.file
1589: )
1590: then
1591: # Ok.
1592: :
1593: else
1594: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1595: Check your system clock" >&5
1596: echo "$as_me: error: newly created file is older than distributed files!
1597: Check your system clock" >&2;}
1598: { (exit 1); exit 1; }; }
1599: fi
1600: echo "$as_me:$LINENO: result: yes" >&5
1601: echo "${ECHO_T}yes" >&6
1602: test "$program_prefix" != NONE &&
1603: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1604: # Use a double $ so make ignores it.
1605: test "$program_suffix" != NONE &&
1606: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1607: # Double any \ or $. echo might interpret backslashes.
1608: # By default was `s,x,x', remove it if useless.
1609: cat <<\_ACEOF >conftest.sed
1610: s/[\\$]/&&/g;s/;s,x,x,$//
1611: _ACEOF
1612: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1613: rm conftest.sed
1614:
1615:
1616: # expand $ac_aux_dir to an absolute path
1617: am_aux_dir=`cd $ac_aux_dir && pwd`
1618:
1619: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1620: # Use eval to expand $SHELL
1621: if eval "$MISSING --run true"; then
1622: am_missing_run="$MISSING --run "
1623: else
1624: am_missing_run=
1625: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1626: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1627: fi
1628:
1629: for ac_prog in gawk mawk nawk awk
1630: do
1631: # Extract the first word of "$ac_prog", so it can be a program name with args.
1632: set dummy $ac_prog; ac_word=$2
1633: echo "$as_me:$LINENO: checking for $ac_word" >&5
1634: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635: if test "${ac_cv_prog_AWK+set}" = set; then
1636: echo $ECHO_N "(cached) $ECHO_C" >&6
1637: else
1638: if test -n "$AWK"; then
1639: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1640: else
1641: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642: for as_dir in $PATH
1643: do
1644: IFS=$as_save_IFS
1645: test -z "$as_dir" && as_dir=.
1646: for ac_exec_ext in '' $ac_executable_extensions; do
1647: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648: ac_cv_prog_AWK="$ac_prog"
1649: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650: break 2
1651: fi
1652: done
1653: done
1654:
1655: fi
1656: fi
1657: AWK=$ac_cv_prog_AWK
1658: if test -n "$AWK"; then
1659: echo "$as_me:$LINENO: result: $AWK" >&5
1660: echo "${ECHO_T}$AWK" >&6
1661: else
1662: echo "$as_me:$LINENO: result: no" >&5
1663: echo "${ECHO_T}no" >&6
1664: fi
1665:
1666: test -n "$AWK" && break
1667: done
1668:
1669: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1672: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673: echo $ECHO_N "(cached) $ECHO_C" >&6
1674: else
1675: cat >conftest.make <<\_ACEOF
1676: all:
1677: @echo 'ac_maketemp="$(MAKE)"'
1678: _ACEOF
1679: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681: if test -n "$ac_maketemp"; then
1682: eval ac_cv_prog_make_${ac_make}_set=yes
1683: else
1684: eval ac_cv_prog_make_${ac_make}_set=no
1685: fi
1686: rm -f conftest.make
1687: fi
1688: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689: echo "$as_me:$LINENO: result: yes" >&5
1690: echo "${ECHO_T}yes" >&6
1691: SET_MAKE=
1692: else
1693: echo "$as_me:$LINENO: result: no" >&5
1694: echo "${ECHO_T}no" >&6
1695: SET_MAKE="MAKE=${MAKE-make}"
1696: fi
1697:
1698: # test to see if srcdir already configured
1699: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1700: test -f $srcdir/config.status; then
1701: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1702: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1703: { (exit 1); exit 1; }; }
1704: fi
1705:
1706: # Define the identity of the package.
1707: PACKAGE=fam
1708: VERSION=2.6.10
1709:
1710:
1711: cat >>confdefs.h <<_ACEOF
1712: #define PACKAGE "$PACKAGE"
1713: _ACEOF
1714:
1715:
1716: cat >>confdefs.h <<_ACEOF
1717: #define VERSION "$VERSION"
1718: _ACEOF
1719:
1720: # Some tools Automake needs.
1721:
1722: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1723:
1724:
1725: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1726:
1727:
1728: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1729:
1730:
1731: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1732:
1733:
1734: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1735:
1736:
1737: AMTAR=${AMTAR-"${am_missing_run}tar"}
1738:
1739: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1740:
1741: # Installed binaries are usually stripped using `strip' when the user
1742: # run `make install-strip'. However `strip' might not be the right
1743: # tool to use in cross-compilation environments, therefore Automake
1744: # will honor the `STRIP' environment variable to overrule this program.
1745: if test "$cross_compiling" != no; then
1746: if test -n "$ac_tool_prefix"; then
1747: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1748: set dummy ${ac_tool_prefix}strip; ac_word=$2
1749: echo "$as_me:$LINENO: checking for $ac_word" >&5
1750: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751: if test "${ac_cv_prog_STRIP+set}" = set; then
1752: echo $ECHO_N "(cached) $ECHO_C" >&6
1753: else
1754: if test -n "$STRIP"; then
1755: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1756: else
1757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758: for as_dir in $PATH
1759: do
1760: IFS=$as_save_IFS
1761: test -z "$as_dir" && as_dir=.
1762: for ac_exec_ext in '' $ac_executable_extensions; do
1763: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1765: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766: break 2
1767: fi
1768: done
1769: done
1770:
1771: fi
1772: fi
1773: STRIP=$ac_cv_prog_STRIP
1774: if test -n "$STRIP"; then
1775: echo "$as_me:$LINENO: result: $STRIP" >&5
1776: echo "${ECHO_T}$STRIP" >&6
1777: else
1778: echo "$as_me:$LINENO: result: no" >&5
1779: echo "${ECHO_T}no" >&6
1780: fi
1781:
1782: fi
1783: if test -z "$ac_cv_prog_STRIP"; then
1784: ac_ct_STRIP=$STRIP
1785: # Extract the first word of "strip", so it can be a program name with args.
1786: set dummy strip; ac_word=$2
1787: echo "$as_me:$LINENO: checking for $ac_word" >&5
1788: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1790: echo $ECHO_N "(cached) $ECHO_C" >&6
1791: else
1792: if test -n "$ac_ct_STRIP"; then
1793: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1794: else
1795: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796: for as_dir in $PATH
1797: do
1798: IFS=$as_save_IFS
1799: test -z "$as_dir" && as_dir=.
1800: for ac_exec_ext in '' $ac_executable_extensions; do
1801: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802: ac_cv_prog_ac_ct_STRIP="strip"
1803: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804: break 2
1805: fi
1806: done
1807: done
1808:
1809: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1810: fi
1811: fi
1812: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1813: if test -n "$ac_ct_STRIP"; then
1814: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1815: echo "${ECHO_T}$ac_ct_STRIP" >&6
1816: else
1817: echo "$as_me:$LINENO: result: no" >&5
1818: echo "${ECHO_T}no" >&6
1819: fi
1820:
1821: STRIP=$ac_ct_STRIP
1822: else
1823: STRIP="$ac_cv_prog_STRIP"
1824: fi
1825:
1826: fi
1827: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1828:
1829: # We need awk for the "check" target. The system "awk" is bad on
1830: # some platforms.
1831:
1832:
1833:
1834:
1835: # Add the stamp file to the list of files AC keeps track of,
1836: # along with our hook.
1837: ac_config_headers="$ac_config_headers config.h"
1838:
1839:
1840:
1841:
1842: # Check whether --enable-shared or --disable-shared was given.
1843: if test "${enable_shared+set}" = set; then
1844: enableval="$enable_shared"
1845: p=${PACKAGE-default}
1846: case $enableval in
1847: yes) enable_shared=yes ;;
1848: no) enable_shared=no ;;
1849: *)
1850: enable_shared=no
1851: # Look at the argument we got. We use all the common list separators.
1852: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1853: for pkg in $enableval; do
1854: if test "X$pkg" = "X$p"; then
1855: enable_shared=yes
1856: fi
1857: done
1858: IFS="$ac_save_ifs"
1859: ;;
1860: esac
1861: else
1862: enable_shared=yes
1863: fi;
1864: # Check whether --enable-static or --disable-static was given.
1865: if test "${enable_static+set}" = set; then
1866: enableval="$enable_static"
1867: p=${PACKAGE-default}
1868: case $enableval in
1869: yes) enable_static=yes ;;
1870: no) enable_static=no ;;
1871: *)
1872: enable_static=no
1873: # Look at the argument we got. We use all the common list separators.
1874: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1875: for pkg in $enableval; do
1876: if test "X$pkg" = "X$p"; then
1877: enable_static=yes
1878: fi
1879: done
1880: IFS="$ac_save_ifs"
1881: ;;
1882: esac
1883: else
1884: enable_static=yes
1885: fi;
1886: # Check whether --enable-fast-install or --disable-fast-install was given.
1887: if test "${enable_fast_install+set}" = set; then
1888: enableval="$enable_fast_install"
1889: p=${PACKAGE-default}
1890: case $enableval in
1891: yes) enable_fast_install=yes ;;
1892: no) enable_fast_install=no ;;
1893: *)
1894: enable_fast_install=no
1895: # Look at the argument we got. We use all the common list separators.
1896: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1897: for pkg in $enableval; do
1898: if test "X$pkg" = "X$p"; then
1899: enable_fast_install=yes
1900: fi
1901: done
1902: IFS="$ac_save_ifs"
1903: ;;
1904: esac
1905: else
1906: enable_fast_install=yes
1907: fi;
1908: # Make sure we can run config.sub.
1909: $ac_config_sub sun4 >/dev/null 2>&1 ||
1910: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1911: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1912: { (exit 1); exit 1; }; }
1913:
1914: echo "$as_me:$LINENO: checking build system type" >&5
1915: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1916: if test "${ac_cv_build+set}" = set; then
1917: echo $ECHO_N "(cached) $ECHO_C" >&6
1918: else
1919: ac_cv_build_alias=$build_alias
1920: test -z "$ac_cv_build_alias" &&
1921: ac_cv_build_alias=`$ac_config_guess`
1922: test -z "$ac_cv_build_alias" &&
1923: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1924: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1925: { (exit 1); exit 1; }; }
1926: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1927: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1928: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1929: { (exit 1); exit 1; }; }
1930:
1931: fi
1932: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1933: echo "${ECHO_T}$ac_cv_build" >&6
1934: build=$ac_cv_build
1935: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1936: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1937: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1938:
1939:
1940: echo "$as_me:$LINENO: checking host system type" >&5
1941: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1942: if test "${ac_cv_host+set}" = set; then
1943: echo $ECHO_N "(cached) $ECHO_C" >&6
1944: else
1945: ac_cv_host_alias=$host_alias
1946: test -z "$ac_cv_host_alias" &&
1947: ac_cv_host_alias=$ac_cv_build_alias
1948: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1949: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1950: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1951: { (exit 1); exit 1; }; }
1952:
1953: fi
1954: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1955: echo "${ECHO_T}$ac_cv_host" >&6
1956: host=$ac_cv_host
1957: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1958: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1959: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1960:
1961:
1962: rm -f .deps 2>/dev/null
1963: mkdir .deps 2>/dev/null
1964: if test -d .deps; then
1965: DEPDIR=.deps
1966: else
1967: # MS-DOS does not allow filenames that begin with a dot.
1968: DEPDIR=_deps
1969: fi
1970: rmdir .deps 2>/dev/null
1971:
1972:
1973: ac_config_commands="$ac_config_commands depfiles"
1974:
1975:
1976: am_make=${MAKE-make}
1977: cat > confinc << 'END'
1978: doit:
1979: @echo done
1980: END
1981: # If we don't find an include directive, just comment out the code.
1982: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1983: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1984: am__include="#"
1985: am__quote=
1986: _am_result=none
1987: # First try GNU make style include.
1988: echo "include confinc" > confmf
1989: # We grep out `Entering directory' and `Leaving directory'
1990: # messages which can occur if `w' ends up in MAKEFLAGS.
1991: # In particular we don't look at `^make:' because GNU make might
1992: # be invoked under some other name (usually "gmake"), in which
1993: # case it prints its new name instead of `make'.
1994: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1995: am__include=include
1996: am__quote=
1997: _am_result=GNU
1998: fi
1999: # Now try BSD make style include.
2000: if test "$am__include" = "#"; then
2001: echo '.include "confinc"' > confmf
2002: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2003: am__include=.include
2004: am__quote="\""
2005: _am_result=BSD
2006: fi
2007: fi
2008:
2009:
2010: echo "$as_me:$LINENO: result: $_am_result" >&5
2011: echo "${ECHO_T}$_am_result" >&6
2012: rm -f confinc confmf
2013:
2014: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2015: if test "${enable_dependency_tracking+set}" = set; then
2016: enableval="$enable_dependency_tracking"
2017:
2018: fi;
2019: if test "x$enable_dependency_tracking" != xno; then
2020: am_depcomp="$ac_aux_dir/depcomp"
2021: AMDEPBACKSLASH='\'
2022: fi
2023:
2024:
2025: if test "x$enable_dependency_tracking" != xno; then
2026: AMDEP_TRUE=
2027: AMDEP_FALSE='#'
2028: else
2029: AMDEP_TRUE='#'
2030: AMDEP_FALSE=
2031: fi
2032:
2033:
2034:
2035: ac_ext=c
2036: ac_cpp='$CPP $CPPFLAGS'
2037: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040: if test -n "$ac_tool_prefix"; then
2041: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043: echo "$as_me:$LINENO: checking for $ac_word" >&5
2044: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045: if test "${ac_cv_prog_CC+set}" = set; then
2046: echo $ECHO_N "(cached) $ECHO_C" >&6
2047: else
2048: if test -n "$CC"; then
2049: ac_cv_prog_CC="$CC" # Let the user override the test.
2050: else
2051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052: for as_dir in $PATH
2053: do
2054: IFS=$as_save_IFS
2055: test -z "$as_dir" && as_dir=.
2056: for ac_exec_ext in '' $ac_executable_extensions; do
2057: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060: break 2
2061: fi
2062: done
2063: done
2064:
2065: fi
2066: fi
2067: CC=$ac_cv_prog_CC
2068: if test -n "$CC"; then
2069: echo "$as_me:$LINENO: result: $CC" >&5
2070: echo "${ECHO_T}$CC" >&6
2071: else
2072: echo "$as_me:$LINENO: result: no" >&5
2073: echo "${ECHO_T}no" >&6
2074: fi
2075:
2076: fi
2077: if test -z "$ac_cv_prog_CC"; then
2078: ac_ct_CC=$CC
2079: # Extract the first word of "gcc", so it can be a program name with args.
2080: set dummy gcc; ac_word=$2
2081: echo "$as_me:$LINENO: checking for $ac_word" >&5
2082: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084: echo $ECHO_N "(cached) $ECHO_C" >&6
2085: else
2086: if test -n "$ac_ct_CC"; then
2087: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088: else
2089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090: for as_dir in $PATH
2091: do
2092: IFS=$as_save_IFS
2093: test -z "$as_dir" && as_dir=.
2094: for ac_exec_ext in '' $ac_executable_extensions; do
2095: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096: ac_cv_prog_ac_ct_CC="gcc"
2097: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098: break 2
2099: fi
2100: done
2101: done
2102:
2103: fi
2104: fi
2105: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106: if test -n "$ac_ct_CC"; then
2107: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108: echo "${ECHO_T}$ac_ct_CC" >&6
2109: else
2110: echo "$as_me:$LINENO: result: no" >&5
2111: echo "${ECHO_T}no" >&6
2112: fi
2113:
2114: CC=$ac_ct_CC
2115: else
2116: CC="$ac_cv_prog_CC"
2117: fi
2118:
2119: if test -z "$CC"; then
2120: if test -n "$ac_tool_prefix"; then
2121: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2122: set dummy ${ac_tool_prefix}cc; ac_word=$2
2123: echo "$as_me:$LINENO: checking for $ac_word" >&5
2124: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125: if test "${ac_cv_prog_CC+set}" = set; then
2126: echo $ECHO_N "(cached) $ECHO_C" >&6
2127: else
2128: if test -n "$CC"; then
2129: ac_cv_prog_CC="$CC" # Let the user override the test.
2130: else
2131: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132: for as_dir in $PATH
2133: do
2134: IFS=$as_save_IFS
2135: test -z "$as_dir" && as_dir=.
2136: for ac_exec_ext in '' $ac_executable_extensions; do
2137: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138: ac_cv_prog_CC="${ac_tool_prefix}cc"
2139: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140: break 2
2141: fi
2142: done
2143: done
2144:
2145: fi
2146: fi
2147: CC=$ac_cv_prog_CC
2148: if test -n "$CC"; then
2149: echo "$as_me:$LINENO: result: $CC" >&5
2150: echo "${ECHO_T}$CC" >&6
2151: else
2152: echo "$as_me:$LINENO: result: no" >&5
2153: echo "${ECHO_T}no" >&6
2154: fi
2155:
2156: fi
2157: if test -z "$ac_cv_prog_CC"; then
2158: ac_ct_CC=$CC
2159: # Extract the first word of "cc", so it can be a program name with args.
2160: set dummy cc; ac_word=$2
2161: echo "$as_me:$LINENO: checking for $ac_word" >&5
2162: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2164: echo $ECHO_N "(cached) $ECHO_C" >&6
2165: else
2166: if test -n "$ac_ct_CC"; then
2167: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2168: else
2169: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170: for as_dir in $PATH
2171: do
2172: IFS=$as_save_IFS
2173: test -z "$as_dir" && as_dir=.
2174: for ac_exec_ext in '' $ac_executable_extensions; do
2175: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176: ac_cv_prog_ac_ct_CC="cc"
2177: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178: break 2
2179: fi
2180: done
2181: done
2182:
2183: fi
2184: fi
2185: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2186: if test -n "$ac_ct_CC"; then
2187: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2188: echo "${ECHO_T}$ac_ct_CC" >&6
2189: else
2190: echo "$as_me:$LINENO: result: no" >&5
2191: echo "${ECHO_T}no" >&6
2192: fi
2193:
2194: CC=$ac_ct_CC
2195: else
2196: CC="$ac_cv_prog_CC"
2197: fi
2198:
2199: fi
2200: if test -z "$CC"; then
2201: # Extract the first word of "cc", so it can be a program name with args.
2202: set dummy cc; ac_word=$2
2203: echo "$as_me:$LINENO: checking for $ac_word" >&5
2204: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205: if test "${ac_cv_prog_CC+set}" = set; then
2206: echo $ECHO_N "(cached) $ECHO_C" >&6
2207: else
2208: if test -n "$CC"; then
2209: ac_cv_prog_CC="$CC" # Let the user override the test.
2210: else
2211: ac_prog_rejected=no
2212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213: for as_dir in $PATH
2214: do
2215: IFS=$as_save_IFS
2216: test -z "$as_dir" && as_dir=.
2217: for ac_exec_ext in '' $ac_executable_extensions; do
2218: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2220: ac_prog_rejected=yes
2221: continue
2222: fi
2223: ac_cv_prog_CC="cc"
2224: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225: break 2
2226: fi
2227: done
2228: done
2229:
2230: if test $ac_prog_rejected = yes; then
2231: # We found a bogon in the path, so make sure we never use it.
2232: set dummy $ac_cv_prog_CC
2233: shift
2234: if test $# != 0; then
2235: # We chose a different compiler from the bogus one.
2236: # However, it has the same basename, so the bogon will be chosen
2237: # first if we set CC to just the basename; use the full file name.
2238: shift
2239: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2240: fi
2241: fi
2242: fi
2243: fi
2244: CC=$ac_cv_prog_CC
2245: if test -n "$CC"; then
2246: echo "$as_me:$LINENO: result: $CC" >&5
2247: echo "${ECHO_T}$CC" >&6
2248: else
2249: echo "$as_me:$LINENO: result: no" >&5
2250: echo "${ECHO_T}no" >&6
2251: fi
2252:
2253: fi
2254: if test -z "$CC"; then
2255: if test -n "$ac_tool_prefix"; then
2256: for ac_prog in cl
2257: do
2258: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2259: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2260: echo "$as_me:$LINENO: checking for $ac_word" >&5
2261: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262: if test "${ac_cv_prog_CC+set}" = set; then
2263: echo $ECHO_N "(cached) $ECHO_C" >&6
2264: else
2265: if test -n "$CC"; then
2266: ac_cv_prog_CC="$CC" # Let the user override the test.
2267: else
2268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269: for as_dir in $PATH
2270: do
2271: IFS=$as_save_IFS
2272: test -z "$as_dir" && as_dir=.
2273: for ac_exec_ext in '' $ac_executable_extensions; do
2274: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2276: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277: break 2
2278: fi
2279: done
2280: done
2281:
2282: fi
2283: fi
2284: CC=$ac_cv_prog_CC
2285: if test -n "$CC"; then
2286: echo "$as_me:$LINENO: result: $CC" >&5
2287: echo "${ECHO_T}$CC" >&6
2288: else
2289: echo "$as_me:$LINENO: result: no" >&5
2290: echo "${ECHO_T}no" >&6
2291: fi
2292:
2293: test -n "$CC" && break
2294: done
2295: fi
2296: if test -z "$CC"; then
2297: ac_ct_CC=$CC
2298: for ac_prog in cl
2299: do
2300: # Extract the first word of "$ac_prog", so it can be a program name with args.
2301: set dummy $ac_prog; ac_word=$2
2302: echo "$as_me:$LINENO: checking for $ac_word" >&5
2303: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2305: echo $ECHO_N "(cached) $ECHO_C" >&6
2306: else
2307: if test -n "$ac_ct_CC"; then
2308: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2309: else
2310: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311: for as_dir in $PATH
2312: do
2313: IFS=$as_save_IFS
2314: test -z "$as_dir" && as_dir=.
2315: for ac_exec_ext in '' $ac_executable_extensions; do
2316: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317: ac_cv_prog_ac_ct_CC="$ac_prog"
2318: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319: break 2
2320: fi
2321: done
2322: done
2323:
2324: fi
2325: fi
2326: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2327: if test -n "$ac_ct_CC"; then
2328: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2329: echo "${ECHO_T}$ac_ct_CC" >&6
2330: else
2331: echo "$as_me:$LINENO: result: no" >&5
2332: echo "${ECHO_T}no" >&6
2333: fi
2334:
2335: test -n "$ac_ct_CC" && break
2336: done
2337:
2338: CC=$ac_ct_CC
2339: fi
2340:
2341: fi
2342:
2343:
2344: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345: See \`config.log' for more details." >&5
2346: echo "$as_me: error: no acceptable C compiler found in \$PATH
2347: See \`config.log' for more details." >&2;}
2348: { (exit 1); exit 1; }; }
2349:
2350: # Provide some information about the compiler.
2351: echo "$as_me:$LINENO:" \
2352: "checking for C compiler version" >&5
2353: ac_compiler=`set X $ac_compile; echo $2`
2354: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2355: (eval $ac_compiler --version </dev/null >&5) 2>&5
2356: ac_status=$?
2357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358: (exit $ac_status); }
2359: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2360: (eval $ac_compiler -v </dev/null >&5) 2>&5
2361: ac_status=$?
2362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363: (exit $ac_status); }
2364: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2365: (eval $ac_compiler -V </dev/null >&5) 2>&5
2366: ac_status=$?
2367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368: (exit $ac_status); }
2369:
2370: cat >conftest.$ac_ext <<_ACEOF
2371: #line $LINENO "configure"
2372: /* confdefs.h. */
2373: _ACEOF
2374: cat confdefs.h >>conftest.$ac_ext
2375: cat >>conftest.$ac_ext <<_ACEOF
2376: /* end confdefs.h. */
2377:
2378: int
2379: main ()
2380: {
2381:
2382: ;
2383: return 0;
2384: }
2385: _ACEOF
2386: ac_clean_files_save=$ac_clean_files
2387: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2388: # Try to create an executable without -o first, disregard a.out.
2389: # It will help us diagnose broken compilers, and finding out an intuition
2390: # of exeext.
2391: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2392: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2393: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395: (eval $ac_link_default) 2>&5
2396: ac_status=$?
2397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398: (exit $ac_status); }; then
2399: # Find the output, starting from the most likely. This scheme is
2400: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401: # resort.
2402:
2403: # Be careful to initialize this variable, since it used to be cached.
2404: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405: ac_cv_exeext=
2406: # b.out is created by i960 compilers.
2407: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408: do
2409: test -f "$ac_file" || continue
2410: case $ac_file in
2411: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412: ;;
2413: conftest.$ac_ext )
2414: # This is the source file.
2415: ;;
2416: [ab].out )
2417: # We found the default executable, but exeext='' is most
2418: # certainly right.
2419: break;;
2420: *.* )
2421: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422: # FIXME: I believe we export ac_cv_exeext for Libtool,
2423: # but it would be cool to find out if it's true. Does anybody
2424: # maintain Libtool? --akim.
2425: export ac_cv_exeext
2426: break;;
2427: * )
2428: break;;
2429: esac
2430: done
2431: else
2432: echo "$as_me: failed program was:" >&5
2433: sed 's/^/| /' conftest.$ac_ext >&5
2434:
2435: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2436: See \`config.log' for more details." >&5
2437: echo "$as_me: error: C compiler cannot create executables
2438: See \`config.log' for more details." >&2;}
2439: { (exit 77); exit 77; }; }
2440: fi
2441:
2442: ac_exeext=$ac_cv_exeext
2443: echo "$as_me:$LINENO: result: $ac_file" >&5
2444: echo "${ECHO_T}$ac_file" >&6
2445:
2446: # Check the compiler produces executables we can run. If not, either
2447: # the compiler is broken, or we cross compile.
2448: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2450: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451: # If not cross compiling, check that we can run a simple program.
2452: if test "$cross_compiling" != yes; then
2453: if { ac_try='./$ac_file'
2454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455: (eval $ac_try) 2>&5
2456: ac_status=$?
2457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458: (exit $ac_status); }; }; then
2459: cross_compiling=no
2460: else
2461: if test "$cross_compiling" = maybe; then
2462: cross_compiling=yes
2463: else
2464: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2465: If you meant to cross compile, use \`--host'.
2466: See \`config.log' for more details." >&5
2467: echo "$as_me: error: cannot run C compiled programs.
2468: If you meant to cross compile, use \`--host'.
2469: See \`config.log' for more details." >&2;}
2470: { (exit 1); exit 1; }; }
2471: fi
2472: fi
2473: fi
2474: echo "$as_me:$LINENO: result: yes" >&5
2475: echo "${ECHO_T}yes" >&6
2476:
2477: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2478: ac_clean_files=$ac_clean_files_save
2479: # Check the compiler produces executables we can run. If not, either
2480: # the compiler is broken, or we cross compile.
2481: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484: echo "${ECHO_T}$cross_compiling" >&6
2485:
2486: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489: (eval $ac_link) 2>&5
2490: ac_status=$?
2491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492: (exit $ac_status); }; then
2493: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2495: # work properly (i.e., refer to `conftest.exe'), while it won't with
2496: # `rm'.
2497: for ac_file in conftest.exe conftest conftest.*; do
2498: test -f "$ac_file" || continue
2499: case $ac_file in
2500: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2501: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502: export ac_cv_exeext
2503: break;;
2504: * ) break;;
2505: esac
2506: done
2507: else
2508: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509: See \`config.log' for more details." >&5
2510: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511: See \`config.log' for more details." >&2;}
2512: { (exit 1); exit 1; }; }
2513: fi
2514:
2515: rm -f conftest$ac_cv_exeext
2516: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517: echo "${ECHO_T}$ac_cv_exeext" >&6
2518:
2519: rm -f conftest.$ac_ext
2520: EXEEXT=$ac_cv_exeext
2521: ac_exeext=$EXEEXT
2522: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524: if test "${ac_cv_objext+set}" = set; then
2525: echo $ECHO_N "(cached) $ECHO_C" >&6
2526: else
2527: cat >conftest.$ac_ext <<_ACEOF
2528: #line $LINENO "configure"
2529: /* confdefs.h. */
2530: _ACEOF
2531: cat confdefs.h >>conftest.$ac_ext
2532: cat >>conftest.$ac_ext <<_ACEOF
2533: /* end confdefs.h. */
2534:
2535: int
2536: main ()
2537: {
2538:
2539: ;
2540: return 0;
2541: }
2542: _ACEOF
2543: rm -f conftest.o conftest.obj
2544: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545: (eval $ac_compile) 2>&5
2546: ac_status=$?
2547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548: (exit $ac_status); }; then
2549: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550: case $ac_file in
2551: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553: break;;
2554: esac
2555: done
2556: else
2557: echo "$as_me: failed program was:" >&5
2558: sed 's/^/| /' conftest.$ac_ext >&5
2559:
2560: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561: See \`config.log' for more details." >&5
2562: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563: See \`config.log' for more details." >&2;}
2564: { (exit 1); exit 1; }; }
2565: fi
2566:
2567: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568: fi
2569: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570: echo "${ECHO_T}$ac_cv_objext" >&6
2571: OBJEXT=$ac_cv_objext
2572: ac_objext=$OBJEXT
2573: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576: echo $ECHO_N "(cached) $ECHO_C" >&6
2577: else
2578: cat >conftest.$ac_ext <<_ACEOF
2579: #line $LINENO "configure"
2580: /* confdefs.h. */
2581: _ACEOF
2582: cat confdefs.h >>conftest.$ac_ext
2583: cat >>conftest.$ac_ext <<_ACEOF
2584: /* end confdefs.h. */
2585:
2586: int
2587: main ()
2588: {
2589: #ifndef __GNUC__
2590: choke me
2591: #endif
2592:
2593: ;
2594: return 0;
2595: }
2596: _ACEOF
2597: rm -f conftest.$ac_objext
2598: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599: (eval $ac_compile) 2>&5
2600: ac_status=$?
2601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602: (exit $ac_status); } &&
2603: { ac_try='test -s conftest.$ac_objext'
2604: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605: (eval $ac_try) 2>&5
2606: ac_status=$?
2607: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608: (exit $ac_status); }; }; then
2609: ac_compiler_gnu=yes
2610: else
2611: echo "$as_me: failed program was:" >&5
2612: sed 's/^/| /' conftest.$ac_ext >&5
2613:
2614: ac_compiler_gnu=no
2615: fi
2616: rm -f conftest.$ac_objext conftest.$ac_ext
2617: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2618:
2619: fi
2620: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622: GCC=`test $ac_compiler_gnu = yes && echo yes`
2623: ac_test_CFLAGS=${CFLAGS+set}
2624: ac_save_CFLAGS=$CFLAGS
2625: CFLAGS="-g"
2626: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628: if test "${ac_cv_prog_cc_g+set}" = set; then
2629: echo $ECHO_N "(cached) $ECHO_C" >&6
2630: else
2631: cat >conftest.$ac_ext <<_ACEOF
2632: #line $LINENO "configure"
2633: /* confdefs.h. */
2634: _ACEOF
2635: cat confdefs.h >>conftest.$ac_ext
2636: cat >>conftest.$ac_ext <<_ACEOF
2637: /* end confdefs.h. */
2638:
2639: int
2640: main ()
2641: {
2642:
2643: ;
2644: return 0;
2645: }
2646: _ACEOF
2647: rm -f conftest.$ac_objext
2648: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649: (eval $ac_compile) 2>&5
2650: ac_status=$?
2651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652: (exit $ac_status); } &&
2653: { ac_try='test -s conftest.$ac_objext'
2654: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655: (eval $ac_try) 2>&5
2656: ac_status=$?
2657: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658: (exit $ac_status); }; }; then
2659: ac_cv_prog_cc_g=yes
2660: else
2661: echo "$as_me: failed program was:" >&5
2662: sed 's/^/| /' conftest.$ac_ext >&5
2663:
2664: ac_cv_prog_cc_g=no
2665: fi
2666: rm -f conftest.$ac_objext conftest.$ac_ext
2667: fi
2668: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2670: if test "$ac_test_CFLAGS" = set; then
2671: CFLAGS=$ac_save_CFLAGS
2672: elif test $ac_cv_prog_cc_g = yes; then
2673: if test "$GCC" = yes; then
2674: CFLAGS="-g -O2"
2675: else
2676: CFLAGS="-g"
2677: fi
2678: else
2679: if test "$GCC" = yes; then
2680: CFLAGS="-O2"
2681: else
2682: CFLAGS=
2683: fi
2684: fi
2685: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2686: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2687: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2688: echo $ECHO_N "(cached) $ECHO_C" >&6
2689: else
2690: ac_cv_prog_cc_stdc=no
2691: ac_save_CC=$CC
2692: cat >conftest.$ac_ext <<_ACEOF
2693: #line $LINENO "configure"
2694: /* confdefs.h. */
2695: _ACEOF
2696: cat confdefs.h >>conftest.$ac_ext
2697: cat >>conftest.$ac_ext <<_ACEOF
2698: /* end confdefs.h. */
2699: #include <stdarg.h>
2700: #include <stdio.h>
2701: #include <sys/types.h>
2702: #include <sys/stat.h>
2703: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704: struct buf { int x; };
2705: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706: static char *e (p, i)
2707: char **p;
2708: int i;
2709: {
2710: return p[i];
2711: }
2712: static char *f (char * (*g) (char **, int), char **p, ...)
2713: {
2714: char *s;
2715: va_list v;
2716: va_start (v,p);
2717: s = g (p, va_arg (v,int));
2718: va_end (v);
2719: return s;
2720: }
2721: int test (int i, double x);
2722: struct s1 {int (*f) (int a);};
2723: struct s2 {int (*f) (double a);};
2724: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725: int argc;
2726: char **argv;
2727: int
2728: main ()
2729: {
2730: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731: ;
2732: return 0;
2733: }
2734: _ACEOF
2735: # Don't try gcc -ansi; that turns off useful extensions and
2736: # breaks some systems' header files.
2737: # AIX -qlanglvl=ansi
2738: # Ultrix and OSF/1 -std1
2739: # HP-UX 10.20 and later -Ae
2740: # HP-UX older versions -Aa -D_HPUX_SOURCE
2741: # SVR4 -Xc -D__EXTENSIONS__
2742: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743: do
2744: CC="$ac_save_CC $ac_arg"
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: ac_cv_prog_cc_stdc=$ac_arg
2758: break
2759: else
2760: echo "$as_me: failed program was:" >&5
2761: sed 's/^/| /' conftest.$ac_ext >&5
2762:
2763: fi
2764: rm -f conftest.$ac_objext
2765: done
2766: rm -f conftest.$ac_ext conftest.$ac_objext
2767: CC=$ac_save_CC
2768:
2769: fi
2770:
2771: case "x$ac_cv_prog_cc_stdc" in
2772: x|xno)
2773: echo "$as_me:$LINENO: result: none needed" >&5
2774: echo "${ECHO_T}none needed" >&6 ;;
2775: *)
2776: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778: CC="$CC $ac_cv_prog_cc_stdc" ;;
2779: esac
2780:
2781: # Some people use a C++ compiler to compile C. Since we use `exit',
2782: # in C++ we need to declare it. In case someone uses the same compiler
2783: # for both compiling C and C++ we need to have the C++ compiler decide
2784: # the declaration of exit, since it's the most demanding environment.
2785: cat >conftest.$ac_ext <<_ACEOF
2786: #ifndef __cplusplus
2787: choke me
2788: #endif
2789: _ACEOF
2790: rm -f conftest.$ac_objext
2791: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792: (eval $ac_compile) 2>&5
2793: ac_status=$?
2794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795: (exit $ac_status); } &&
2796: { ac_try='test -s conftest.$ac_objext'
2797: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798: (eval $ac_try) 2>&5
2799: ac_status=$?
2800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801: (exit $ac_status); }; }; then
2802: for ac_declaration in \
2803: ''\
2804: '#include <stdlib.h>' \
2805: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2806: 'extern "C" void std::exit (int); using std::exit;' \
2807: 'extern "C" void exit (int) throw ();' \
2808: 'extern "C" void exit (int);' \
2809: 'void exit (int);'
2810: do
2811: cat >conftest.$ac_ext <<_ACEOF
2812: #line $LINENO "configure"
2813: /* confdefs.h. */
2814: _ACEOF
2815: cat confdefs.h >>conftest.$ac_ext
2816: cat >>conftest.$ac_ext <<_ACEOF
2817: /* end confdefs.h. */
2818: #include <stdlib.h>
2819: $ac_declaration
2820: int
2821: main ()
2822: {
2823: exit (42);
2824: ;
2825: return 0;
2826: }
2827: _ACEOF
2828: rm -f conftest.$ac_objext
2829: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830: (eval $ac_compile) 2>&5
2831: ac_status=$?
2832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833: (exit $ac_status); } &&
2834: { ac_try='test -s conftest.$ac_objext'
2835: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836: (eval $ac_try) 2>&5
2837: ac_status=$?
2838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839: (exit $ac_status); }; }; then
2840: :
2841: else
2842: echo "$as_me: failed program was:" >&5
2843: sed 's/^/| /' conftest.$ac_ext >&5
2844:
2845: continue
2846: fi
2847: rm -f conftest.$ac_objext conftest.$ac_ext
2848: cat >conftest.$ac_ext <<_ACEOF
2849: #line $LINENO "configure"
2850: /* confdefs.h. */
2851: _ACEOF
2852: cat confdefs.h >>conftest.$ac_ext
2853: cat >>conftest.$ac_ext <<_ACEOF
2854: /* end confdefs.h. */
2855: $ac_declaration
2856: int
2857: main ()
2858: {
2859: exit (42);
2860: ;
2861: return 0;
2862: }
2863: _ACEOF
2864: rm -f conftest.$ac_objext
2865: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866: (eval $ac_compile) 2>&5
2867: ac_status=$?
2868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869: (exit $ac_status); } &&
2870: { ac_try='test -s conftest.$ac_objext'
2871: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872: (eval $ac_try) 2>&5
2873: ac_status=$?
2874: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875: (exit $ac_status); }; }; then
2876: break
2877: else
2878: echo "$as_me: failed program was:" >&5
2879: sed 's/^/| /' conftest.$ac_ext >&5
2880:
2881: fi
2882: rm -f conftest.$ac_objext conftest.$ac_ext
2883: done
2884: rm -f conftest*
2885: if test -n "$ac_declaration"; then
2886: echo '#ifdef __cplusplus' >>confdefs.h
2887: echo $ac_declaration >>confdefs.h
2888: echo '#endif' >>confdefs.h
2889: fi
2890:
2891: else
2892: echo "$as_me: failed program was:" >&5
2893: sed 's/^/| /' conftest.$ac_ext >&5
2894:
2895: fi
2896: rm -f conftest.$ac_objext conftest.$ac_ext
2897: ac_ext=c
2898: ac_cpp='$CPP $CPPFLAGS'
2899: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902:
2903: depcc="$CC" am_compiler_list=
2904:
2905: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2906: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2907: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2908: echo $ECHO_N "(cached) $ECHO_C" >&6
2909: else
2910: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2911: # We make a subdir and do the tests there. Otherwise we can end up
2912: # making bogus files that we don't know about and never remove. For
2913: # instance it was reported that on HP-UX the gcc test will end up
2914: # making a dummy file named `D' -- because `-MD' means `put the output
2915: # in D'.
2916: mkdir conftest.dir
2917: # Copy depcomp to subdir because otherwise we won't find it if we're
2918: # using a relative directory.
2919: cp "$am_depcomp" conftest.dir
2920: cd conftest.dir
2921:
2922: am_cv_CC_dependencies_compiler_type=none
2923: if test "$am_compiler_list" = ""; then
2924: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2925: fi
2926: for depmode in $am_compiler_list; do
2927: # We need to recreate these files for each test, as the compiler may
2928: # overwrite some of them when testing with obscure command lines.
2929: # This happens at least with the AIX C compiler.
2930: echo '#include "conftest.h"' > conftest.c
2931: echo 'int i;' > conftest.h
2932: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2933:
2934: case $depmode in
2935: nosideeffect)
2936: # after this tag, mechanisms are not by side-effect, so they'll
2937: # only be used when explicitly requested
2938: if test "x$enable_dependency_tracking" = xyes; then
2939: continue
2940: else
2941: break
2942: fi
2943: ;;
2944: none) break ;;
2945: esac
2946: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2947: # mode. It turns out that the SunPro C++ compiler does not properly
2948: # handle `-M -o', and we need to detect this.
2949: if depmode=$depmode \
2950: source=conftest.c object=conftest.o \
2951: depfile=conftest.Po tmpdepfile=conftest.TPo \
2952: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2953: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2954: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2955: am_cv_CC_dependencies_compiler_type=$depmode
2956: break
2957: fi
2958: done
2959:
2960: cd ..
2961: rm -rf conftest.dir
2962: else
2963: am_cv_CC_dependencies_compiler_type=none
2964: fi
2965:
2966: fi
2967: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2968: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2969: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2970:
2971:
2972: # Find the correct PATH separator. Usually this is `:', but
2973: # DJGPP uses `;' like DOS.
2974: if test "X${PATH_SEPARATOR+set}" != Xset; then
2975: UNAME=${UNAME-`uname 2>/dev/null`}
2976: case X$UNAME in
2977: *-DOS) lt_cv_sys_path_separator=';' ;;
2978: *) lt_cv_sys_path_separator=':' ;;
2979: esac
2980: PATH_SEPARATOR=$lt_cv_sys_path_separator
2981: fi
2982:
2983:
2984: # Check whether --with-gnu-ld or --without-gnu-ld was given.
2985: if test "${with_gnu_ld+set}" = set; then
2986: withval="$with_gnu_ld"
2987: test "$withval" = no || with_gnu_ld=yes
2988: else
2989: with_gnu_ld=no
2990: fi;
2991: ac_prog=ld
2992: if test "$GCC" = yes; then
2993: # Check if gcc -print-prog-name=ld gives a path.
2994: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2995: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2996: case $host in
2997: *-*-mingw*)
2998: # gcc leaves a trailing carriage return which upsets mingw
2999: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3000: *)
3001: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3002: esac
3003: case $ac_prog in
3004: # Accept absolute paths.
3005: [\\/]* | [A-Za-z]:[\\/]*)
3006: re_direlt='/[^/][^/]*/\.\./'
3007: # Canonicalize the path of ld
3008: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3009: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3010: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3011: done
3012: test -z "$LD" && LD="$ac_prog"
3013: ;;
3014: "")
3015: # If it fails, then pretend we aren't using GCC.
3016: ac_prog=ld
3017: ;;
3018: *)
3019: # If it is relative, then search for the first ld in PATH.
3020: with_gnu_ld=unknown
3021: ;;
3022: esac
3023: elif test "$with_gnu_ld" = yes; then
3024: echo "$as_me:$LINENO: checking for GNU ld" >&5
3025: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3026: else
3027: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3028: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3029: fi
3030: if test "${lt_cv_path_LD+set}" = set; then
3031: echo $ECHO_N "(cached) $ECHO_C" >&6
3032: else
3033: if test -z "$LD"; then
3034: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3035: for ac_dir in $PATH; do
3036: test -z "$ac_dir" && ac_dir=.
3037: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3038: lt_cv_path_LD="$ac_dir/$ac_prog"
3039: # Check to see if the program is GNU ld. I'd rather use --version,
3040: # but apparently some GNU ld's only accept -v.
3041: # Break only if it was the GNU/non-GNU ld that we prefer.
3042: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3043: test "$with_gnu_ld" != no && break
3044: else
3045: test "$with_gnu_ld" != yes && break
3046: fi
3047: fi
3048: done
3049: IFS="$ac_save_ifs"
3050: else
3051: lt_cv_path_LD="$LD" # Let the user override the test with a path.
3052: fi
3053: fi
3054:
3055: LD="$lt_cv_path_LD"
3056: if test -n "$LD"; then
3057: echo "$as_me:$LINENO: result: $LD" >&5
3058: echo "${ECHO_T}$LD" >&6
3059: else
3060: echo "$as_me:$LINENO: result: no" >&5
3061: echo "${ECHO_T}no" >&6
3062: fi
3063: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3064: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3065: { (exit 1); exit 1; }; }
3066: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3067: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3068: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3069: echo $ECHO_N "(cached) $ECHO_C" >&6
3070: else
3071: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3072: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3073: lt_cv_prog_gnu_ld=yes
3074: else
3075: lt_cv_prog_gnu_ld=no
3076: fi
3077: fi
3078: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3079: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3080: with_gnu_ld=$lt_cv_prog_gnu_ld
3081:
3082:
3083: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3084: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3085: if test "${lt_cv_ld_reload_flag+set}" = set; then
3086: echo $ECHO_N "(cached) $ECHO_C" >&6
3087: else
3088: lt_cv_ld_reload_flag='-r'
3089: fi
3090: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3091: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3092: reload_flag=$lt_cv_ld_reload_flag
3093: test -n "$reload_flag" && reload_flag=" $reload_flag"
3094:
3095: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3096: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3097: if test "${lt_cv_path_NM+set}" = set; then
3098: echo $ECHO_N "(cached) $ECHO_C" >&6
3099: else
3100: if test -n "$NM"; then
3101: # Let the user override the test.
3102: lt_cv_path_NM="$NM"
3103: else
3104: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3105: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3106: test -z "$ac_dir" && ac_dir=.
3107: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3108: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3109: # Check to see if the nm accepts a BSD-compat flag.
3110: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3111: # nm: unknown option "B" ignored
3112: # Tru64's nm complains that /dev/null is an invalid object file
3113: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3114: lt_cv_path_NM="$tmp_nm -B"
3115: break
3116: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3117: lt_cv_path_NM="$tmp_nm -p"
3118: break
3119: else
3120: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3121: continue # so that we can try to find one that supports BSD flags
3122: fi
3123: fi
3124: done
3125: IFS="$ac_save_ifs"
3126: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3127: fi
3128: fi
3129:
3130: NM="$lt_cv_path_NM"
3131: echo "$as_me:$LINENO: result: $NM" >&5
3132: echo "${ECHO_T}$NM" >&6
3133:
3134: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3135: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3136: if test "${lt_cv_path_SED+set}" = set; then
3137: echo $ECHO_N "(cached) $ECHO_C" >&6
3138: else
3139: # Loop through the user's path and test for sed and gsed.
3140: # Then use that list of sed's as ones to test for truncation.
3141: as_executable_p="test -f"
3142: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143: for as_dir in $PATH
3144: do
3145: IFS=$as_save_IFS
3146: test -z "$as_dir" && as_dir=.
3147: for ac_prog in sed gsed; do
3148: for ac_exec_ext in '' $ac_executable_extensions; do
3149: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3150: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3151: fi
3152: done
3153: done
3154: done
3155:
3156: # Create a temporary directory, and hook for its removal unless debugging.
3157: $debug ||
3158: {
3159: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3160: trap '{ (exit 1); exit 1; }' 1 2 13 15
3161: }
3162:
3163: # Create a (secure) tmp directory for tmp files.
3164: : ${TMPDIR=/tmp}
3165: {
3166: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3167: test -n "$tmp" && test -d "$tmp"
3168: } ||
3169: {
3170: tmp=$TMPDIR/sed$$-$RANDOM
3171: (umask 077 && mkdir $tmp)
3172: } ||
3173: {
3174: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3175: { (exit 1); exit 1; }
3176: }
3177: _max=0
3178: _count=0
3179: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3180: # along with /bin/sed that truncates output.
3181: for _sed in $_sed_list /usr/xpg4/bin/sed; do
3182: test ! -f ${_sed} && break
3183: cat /dev/null > "$tmp/sed.in"
3184: _count=0
3185: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3186: # Check for GNU sed and select it if it is found.
3187: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3188: lt_cv_path_SED=${_sed}
3189: break
3190: fi
3191: while true; do
3192: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3193: mv "$tmp/sed.tmp" "$tmp/sed.in"
3194: cp "$tmp/sed.in" "$tmp/sed.nl"
3195: echo >>"$tmp/sed.nl"
3196: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3197: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3198: # 40000 chars as input seems more than enough
3199: test $_count -gt 10 && break
3200: _count=`expr $_count + 1`
3201: if test $_count -gt $_max; then
3202: _max=$_count
3203: lt_cv_path_SED=$_sed
3204: fi
3205: done
3206: done
3207: rm -rf "$tmp"
3208:
3209: fi
3210:
3211: if test "X$SED" != "X"; then
3212: lt_cv_path_SED=$SED
3213: else
3214: SED=$lt_cv_path_SED
3215: fi
3216: echo "$as_me:$LINENO: result: $SED" >&5
3217: echo "${ECHO_T}$SED" >&6
3218:
3219: echo "$as_me:$LINENO: checking whether ln -s works" >&5
3220: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3221: LN_S=$as_ln_s
3222: if test "$LN_S" = "ln -s"; then
3223: echo "$as_me:$LINENO: result: yes" >&5
3224: echo "${ECHO_T}yes" >&6
3225: else
3226: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3227: echo "${ECHO_T}no, using $LN_S" >&6
3228: fi
3229:
3230: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3231: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3232: if test "${lt_cv_deplibs_check_method+set}" = set; then
3233: echo $ECHO_N "(cached) $ECHO_C" >&6
3234: else
3235: lt_cv_file_magic_cmd='$MAGIC_CMD'
3236: lt_cv_file_magic_test_file=
3237: lt_cv_deplibs_check_method='unknown'
3238: # Need to set the preceding variable on all platforms that support
3239: # interlibrary dependencies.
3240: # 'none' -- dependencies not supported.
3241: # `unknown' -- same as none, but documents that we really don't know.
3242: # 'pass_all' -- all dependencies passed with no checks.
3243: # 'test_compile' -- check by making test program.
3244: # 'file_magic [[regex]]' -- check by looking for files in library path
3245: # which responds to the $file_magic_cmd with a given egrep regex.
3246: # If you have `file' or equivalent on your system and you're not sure
3247: # whether `pass_all' will *always* work, you probably want this one.
3248:
3249: case $host_os in
3250: aix4* | aix5*)
3251: lt_cv_deplibs_check_method=pass_all
3252: ;;
3253:
3254: beos*)
3255: lt_cv_deplibs_check_method=pass_all
3256: ;;
3257:
3258: bsdi4*)
3259: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3260: lt_cv_file_magic_cmd='/usr/bin/file -L'
3261: lt_cv_file_magic_test_file=/shlib/libc.so
3262: ;;
3263:
3264: cygwin* | mingw* | pw32*)
3265: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3266: lt_cv_file_magic_cmd='$OBJDUMP -f'
3267: ;;
3268:
3269: darwin* | rhapsody*)
3270: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3271: lt_cv_file_magic_cmd='/usr/bin/file -L'
3272: case "$host_os" in
3273: rhapsody* | darwin1.[012])
3274: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3275: ;;
3276: *) # Darwin 1.3 on
3277: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3278: ;;
3279: esac
3280: ;;
3281:
3282: freebsd*)
3283: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3284: case $host_cpu in
3285: i*86 )
3286: # Not sure whether the presence of OpenBSD here was a mistake.
3287: # Let's accept both of them until this is cleared up.
3288: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3289: lt_cv_file_magic_cmd=/usr/bin/file
3290: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3291: ;;
3292: esac
3293: else
3294: lt_cv_deplibs_check_method=pass_all
3295: fi
3296: ;;
3297:
3298: gnu*)
3299: lt_cv_deplibs_check_method=pass_all
3300: ;;
3301:
3302: hpux10.20*|hpux11*)
3303: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3304: lt_cv_file_magic_cmd=/usr/bin/file
3305: lt_cv_file_magic_test_file=/usr/lib/libc.sl
3306: ;;
3307:
3308: irix5* | irix6* | nonstopux*)
3309: case $host_os in
3310: irix5* | nonstopux*)
3311: # this will be overridden with pass_all, but let us keep it just in case
3312: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3313: ;;
3314: *)
3315: case $LD in
3316: *-32|*"-32 ") libmagic=32-bit;;
3317: *-n32|*"-n32 ") libmagic=N32;;
3318: *-64|*"-64 ") libmagic=64-bit;;
3319: *) libmagic=never-match;;
3320: esac
3321: # this will be overridden with pass_all, but let us keep it just in case
3322: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3323: ;;
3324: esac
3325: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3326: lt_cv_deplibs_check_method=pass_all
3327: ;;
3328:
3329: # This must be Linux ELF.
3330: linux-gnu*)
3331: case $host_cpu in
3332: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3333: lt_cv_deplibs_check_method=pass_all ;;
3334: *)
3335: # glibc up to 2.1.1 does not perform some relocations on ARM
3336: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3337: esac
3338: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3339: ;;
3340:
3341: netbsd*)
3342: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3343: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3344: else
3345: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3346: fi
3347: ;;
3348:
3349: newos6*)
3350: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3351: lt_cv_file_magic_cmd=/usr/bin/file
3352: lt_cv_file_magic_test_file=/usr/lib/libnls.so
3353: ;;
3354:
3355: openbsd*)
3356: lt_cv_file_magic_cmd=/usr/bin/file
3357: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3358: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3359: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3360: else
3361: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3362: fi
3363: ;;
3364:
3365: osf3* | osf4* | osf5*)
3366: # this will be overridden with pass_all, but let us keep it just in case
3367: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3368: lt_cv_file_magic_test_file=/shlib/libc.so
3369: lt_cv_deplibs_check_method=pass_all
3370: ;;
3371:
3372: sco3.2v5*)
3373: lt_cv_deplibs_check_method=pass_all
3374: ;;
3375:
3376: solaris*)
3377: lt_cv_deplibs_check_method=pass_all
3378: lt_cv_file_magic_test_file=/lib/libc.so
3379: ;;
3380:
3381: sysv5uw[78]* | sysv4*uw2*)
3382: lt_cv_deplibs_check_method=pass_all
3383: ;;
3384:
3385: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3386: case $host_vendor in
3387: motorola)
3388: 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]'
3389: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3390: ;;
3391: ncr)
3392: lt_cv_deplibs_check_method=pass_all
3393: ;;
3394: sequent)
3395: lt_cv_file_magic_cmd='/bin/file'
3396: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3397: ;;
3398: sni)
3399: lt_cv_file_magic_cmd='/bin/file'
3400: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3401: lt_cv_file_magic_test_file=/lib/libc.so
3402: ;;
3403: siemens)
3404: lt_cv_deplibs_check_method=pass_all
3405: ;;
3406: esac
3407: ;;
3408: esac
3409:
3410: fi
3411: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3412: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3413: file_magic_cmd=$lt_cv_file_magic_cmd
3414: deplibs_check_method=$lt_cv_deplibs_check_method
3415:
3416:
3417:
3418:
3419:
3420:
3421:
3422:
3423: # Check for command to grab the raw symbol name followed by C symbol from nm.
3424: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3425: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3426: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3427: echo $ECHO_N "(cached) $ECHO_C" >&6
3428: else
3429:
3430: # These are sane defaults that work on at least a few old systems.
3431: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3432:
3433: # Character class describing NM global symbol codes.
3434: symcode='[BCDEGRST]'
3435:
3436: # Regexp to match symbols that can be accessed directly from C.
3437: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3438:
3439: # Transform the above into a raw symbol and a C symbol.
3440: symxfrm='\1 \2\3 \3'
3441:
3442: # Transform an extracted symbol line into a proper C declaration
3443: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3444:
3445: # Transform an extracted symbol line into symbol name and symbol address
3446: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3447:
3448: # Define system-specific variables.
3449: case $host_os in
3450: aix*)
3451: symcode='[BCDT]'
3452: ;;
3453: cygwin* | mingw* | pw32*)
3454: symcode='[ABCDGISTW]'
3455: ;;
3456: hpux*) # Its linker distinguishes data from code symbols
3457: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3458: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3459: ;;
3460: irix* | nonstopux*)
3461: symcode='[BCDEGRST]'
3462: ;;
3463: osf*)
3464: symcode='[BCDEGQRST]'
3465: ;;
3466: solaris* | sysv5*)
3467: symcode='[BDT]'
3468: ;;
3469: sysv4)
3470: symcode='[DFNSTU]'
3471: ;;
3472: esac
3473:
3474: # Handle CRLF in mingw tool chain
3475: opt_cr=
3476: case $host_os in
3477: mingw*)
3478: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3479: ;;
3480: esac
3481:
3482: # If we're using GNU nm, then use its standard symbol codes.
3483: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3484: symcode='[ABCDGISTW]'
3485: fi
3486:
3487: # Try without a prefix undercore, then with it.
3488: for ac_symprfx in "" "_"; do
3489:
3490: # Write the raw and C identifiers.
3491: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3492:
3493: # Check to see that the pipe works correctly.
3494: pipe_works=no
3495: rm -f conftest*
3496: cat > conftest.$ac_ext <<EOF
3497: #ifdef __cplusplus
3498: extern "C" {
3499: #endif
3500: char nm_test_var;
3501: void nm_test_func(){}
3502: #ifdef __cplusplus
3503: }
3504: #endif
3505: int main(){nm_test_var='a';nm_test_func();return(0);}
3506: EOF
3507:
3508: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509: (eval $ac_compile) 2>&5
3510: ac_status=$?
3511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512: (exit $ac_status); }; then
3513: # Now try to grab the symbols.
3514: nlist=conftest.nm
3515: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3516: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3517: ac_status=$?
3518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519: (exit $ac_status); } && test -s "$nlist"; then
3520: # Try sorting and uniquifying the output.
3521: if sort "$nlist" | uniq > "$nlist"T; then
3522: mv -f "$nlist"T "$nlist"
3523: else
3524: rm -f "$nlist"T
3525: fi
3526:
3527: # Make sure that we snagged all the symbols we need.
3528: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3529: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3530: cat <<EOF > conftest.$ac_ext
3531: #ifdef __cplusplus
3532: extern "C" {
3533: #endif
3534:
3535: EOF
3536: # Now generate the symbol file.
3537: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3538:
3539: cat <<EOF >> conftest.$ac_ext
3540: #if defined (__STDC__) && __STDC__
3541: # define lt_ptr void *
3542: #else
3543: # define lt_ptr char *
3544: # define const
3545: #endif
3546:
3547: /* The mapping between symbol names and symbols. */
3548: const struct {
3549: const char *name;
3550: lt_ptr address;
3551: }
3552: lt_preloaded_symbols[] =
3553: {
3554: EOF
3555: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3556: cat <<\EOF >> conftest.$ac_ext
3557: {0, (lt_ptr) 0}
3558: };
3559:
3560: #ifdef __cplusplus
3561: }
3562: #endif
3563: EOF
3564: # Now try linking the two files.
3565: mv conftest.$ac_objext conftstm.$ac_objext
3566: save_LIBS="$LIBS"
3567: save_CFLAGS="$CFLAGS"
3568: LIBS="conftstm.$ac_objext"
3569: CFLAGS="$CFLAGS$no_builtin_flag"
3570: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3571: (eval $ac_link) 2>&5
3572: ac_status=$?
3573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574: (exit $ac_status); } && test -s conftest$ac_exeext; then
3575: pipe_works=yes
3576: fi
3577: LIBS="$save_LIBS"
3578: CFLAGS="$save_CFLAGS"
3579: else
3580: echo "cannot find nm_test_func in $nlist" >&5
3581: fi
3582: else
3583: echo "cannot find nm_test_var in $nlist" >&5
3584: fi
3585: else
3586: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3587: fi
3588: else
3589: echo "$progname: failed program was:" >&5
3590: cat conftest.$ac_ext >&5
3591: fi
3592: rm -f conftest* conftst*
3593:
3594: # Do not use the global_symbol_pipe unless it works.
3595: if test "$pipe_works" = yes; then
3596: break
3597: else
3598: lt_cv_sys_global_symbol_pipe=
3599: fi
3600: done
3601:
3602: fi
3603:
3604: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3605: if test -z "$lt_cv_sys_global_symbol_pipe"; then
3606: global_symbol_to_cdecl=
3607: global_symbol_to_c_name_address=
3608: else
3609: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3610: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3611: fi
3612: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3613: then
3614: echo "$as_me:$LINENO: result: failed" >&5
3615: echo "${ECHO_T}failed" >&6
3616: else
3617: echo "$as_me:$LINENO: result: ok" >&5
3618: echo "${ECHO_T}ok" >&6
3619: fi
3620:
3621: ac_ext=c
3622: ac_cpp='$CPP $CPPFLAGS'
3623: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3627: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3628: # On Suns, sometimes $CPP names a directory.
3629: if test -n "$CPP" && test -d "$CPP"; then
3630: CPP=
3631: fi
3632: if test -z "$CPP"; then
3633: if test "${ac_cv_prog_CPP+set}" = set; then
3634: echo $ECHO_N "(cached) $ECHO_C" >&6
3635: else
3636: # Double quotes because CPP needs to be expanded
3637: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3638: do
3639: ac_preproc_ok=false
3640: for ac_c_preproc_warn_flag in '' yes
3641: do
3642: # Use a header file that comes with gcc, so configuring glibc
3643: # with a fresh cross-compiler works.
3644: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645: # <limits.h> exists even on freestanding compilers.
3646: # On the NeXT, cc -E runs the code through the compiler's parser,
3647: # not just through cpp. "Syntax error" is here to catch this case.
3648: cat >conftest.$ac_ext <<_ACEOF
3649: #line $LINENO "configure"
3650: /* confdefs.h. */
3651: _ACEOF
3652: cat confdefs.h >>conftest.$ac_ext
3653: cat >>conftest.$ac_ext <<_ACEOF
3654: /* end confdefs.h. */
3655: #ifdef __STDC__
3656: # include <limits.h>
3657: #else
3658: # include <assert.h>
3659: #endif
3660: Syntax error
3661: _ACEOF
3662: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3663: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3664: ac_status=$?
3665: grep -v '^ *+' conftest.er1 >conftest.err
3666: rm -f conftest.er1
3667: cat conftest.err >&5
3668: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669: (exit $ac_status); } >/dev/null; then
3670: if test -s conftest.err; then
3671: ac_cpp_err=$ac_c_preproc_warn_flag
3672: else
3673: ac_cpp_err=
3674: fi
3675: else
3676: ac_cpp_err=yes
3677: fi
3678: if test -z "$ac_cpp_err"; then
3679: :
3680: else
3681: echo "$as_me: failed program was:" >&5
3682: sed 's/^/| /' conftest.$ac_ext >&5
3683:
3684: # Broken: fails on valid input.
3685: continue
3686: fi
3687: rm -f conftest.err conftest.$ac_ext
3688:
3689: # OK, works on sane cases. Now check whether non-existent headers
3690: # can be detected and how.
3691: cat >conftest.$ac_ext <<_ACEOF
3692: #line $LINENO "configure"
3693: /* confdefs.h. */
3694: _ACEOF
3695: cat confdefs.h >>conftest.$ac_ext
3696: cat >>conftest.$ac_ext <<_ACEOF
3697: /* end confdefs.h. */
3698: #include <ac_nonexistent.h>
3699: _ACEOF
3700: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3701: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3702: ac_status=$?
3703: grep -v '^ *+' conftest.er1 >conftest.err
3704: rm -f conftest.er1
3705: cat conftest.err >&5
3706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707: (exit $ac_status); } >/dev/null; then
3708: if test -s conftest.err; then
3709: ac_cpp_err=$ac_c_preproc_warn_flag
3710: else
3711: ac_cpp_err=
3712: fi
3713: else
3714: ac_cpp_err=yes
3715: fi
3716: if test -z "$ac_cpp_err"; then
3717: # Broken: success on invalid input.
3718: continue
3719: else
3720: echo "$as_me: failed program was:" >&5
3721: sed 's/^/| /' conftest.$ac_ext >&5
3722:
3723: # Passes both tests.
3724: ac_preproc_ok=:
3725: break
3726: fi
3727: rm -f conftest.err conftest.$ac_ext
3728:
3729: done
3730: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731: rm -f conftest.err conftest.$ac_ext
3732: if $ac_preproc_ok; then
3733: break
3734: fi
3735:
3736: done
3737: ac_cv_prog_CPP=$CPP
3738:
3739: fi
3740: CPP=$ac_cv_prog_CPP
3741: else
3742: ac_cv_prog_CPP=$CPP
3743: fi
3744: echo "$as_me:$LINENO: result: $CPP" >&5
3745: echo "${ECHO_T}$CPP" >&6
3746: ac_preproc_ok=false
3747: for ac_c_preproc_warn_flag in '' yes
3748: do
3749: # Use a header file that comes with gcc, so configuring glibc
3750: # with a fresh cross-compiler works.
3751: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752: # <limits.h> exists even on freestanding compilers.
3753: # On the NeXT, cc -E runs the code through the compiler's parser,
3754: # not just through cpp. "Syntax error" is here to catch this case.
3755: cat >conftest.$ac_ext <<_ACEOF
3756: #line $LINENO "configure"
3757: /* confdefs.h. */
3758: _ACEOF
3759: cat confdefs.h >>conftest.$ac_ext
3760: cat >>conftest.$ac_ext <<_ACEOF
3761: /* end confdefs.h. */
3762: #ifdef __STDC__
3763: # include <limits.h>
3764: #else
3765: # include <assert.h>
3766: #endif
3767: Syntax error
3768: _ACEOF
3769: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3770: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3771: ac_status=$?
3772: grep -v '^ *+' conftest.er1 >conftest.err
3773: rm -f conftest.er1
3774: cat conftest.err >&5
3775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776: (exit $ac_status); } >/dev/null; then
3777: if test -s conftest.err; then
3778: ac_cpp_err=$ac_c_preproc_warn_flag
3779: else
3780: ac_cpp_err=
3781: fi
3782: else
3783: ac_cpp_err=yes
3784: fi
3785: if test -z "$ac_cpp_err"; then
3786: :
3787: else
3788: echo "$as_me: failed program was:" >&5
3789: sed 's/^/| /' conftest.$ac_ext >&5
3790:
3791: # Broken: fails on valid input.
3792: continue
3793: fi
3794: rm -f conftest.err conftest.$ac_ext
3795:
3796: # OK, works on sane cases. Now check whether non-existent headers
3797: # can be detected and how.
3798: cat >conftest.$ac_ext <<_ACEOF
3799: #line $LINENO "configure"
3800: /* confdefs.h. */
3801: _ACEOF
3802: cat confdefs.h >>conftest.$ac_ext
3803: cat >>conftest.$ac_ext <<_ACEOF
3804: /* end confdefs.h. */
3805: #include <ac_nonexistent.h>
3806: _ACEOF
3807: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3808: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3809: ac_status=$?
3810: grep -v '^ *+' conftest.er1 >conftest.err
3811: rm -f conftest.er1
3812: cat conftest.err >&5
3813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814: (exit $ac_status); } >/dev/null; then
3815: if test -s conftest.err; then
3816: ac_cpp_err=$ac_c_preproc_warn_flag
3817: else
3818: ac_cpp_err=
3819: fi
3820: else
3821: ac_cpp_err=yes
3822: fi
3823: if test -z "$ac_cpp_err"; then
3824: # Broken: success on invalid input.
3825: continue
3826: else
3827: echo "$as_me: failed program was:" >&5
3828: sed 's/^/| /' conftest.$ac_ext >&5
3829:
3830: # Passes both tests.
3831: ac_preproc_ok=:
3832: break
3833: fi
3834: rm -f conftest.err conftest.$ac_ext
3835:
3836: done
3837: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3838: rm -f conftest.err conftest.$ac_ext
3839: if $ac_preproc_ok; then
3840: :
3841: else
3842: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3843: See \`config.log' for more details." >&5
3844: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3845: See \`config.log' for more details." >&2;}
3846: { (exit 1); exit 1; }; }
3847: fi
3848:
3849: ac_ext=c
3850: ac_cpp='$CPP $CPPFLAGS'
3851: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854:
3855:
3856: echo "$as_me:$LINENO: checking for egrep" >&5
3857: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3858: if test "${ac_cv_prog_egrep+set}" = set; then
3859: echo $ECHO_N "(cached) $ECHO_C" >&6
3860: else
3861: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3862: then ac_cv_prog_egrep='grep -E'
3863: else ac_cv_prog_egrep='egrep'
3864: fi
3865: fi
3866: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3867: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3868: EGREP=$ac_cv_prog_egrep
3869:
3870:
3871: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3872: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3873: if test "${ac_cv_header_stdc+set}" = set; then
3874: echo $ECHO_N "(cached) $ECHO_C" >&6
3875: else
3876: cat >conftest.$ac_ext <<_ACEOF
3877: #line $LINENO "configure"
3878: /* confdefs.h. */
3879: _ACEOF
3880: cat confdefs.h >>conftest.$ac_ext
3881: cat >>conftest.$ac_ext <<_ACEOF
3882: /* end confdefs.h. */
3883: #include <stdlib.h>
3884: #include <stdarg.h>
3885: #include <string.h>
3886: #include <float.h>
3887:
3888: int
3889: main ()
3890: {
3891:
3892: ;
3893: return 0;
3894: }
3895: _ACEOF
3896: rm -f conftest.$ac_objext
3897: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898: (eval $ac_compile) 2>&5
3899: ac_status=$?
3900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901: (exit $ac_status); } &&
3902: { ac_try='test -s conftest.$ac_objext'
3903: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904: (eval $ac_try) 2>&5
3905: ac_status=$?
3906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907: (exit $ac_status); }; }; then
3908: ac_cv_header_stdc=yes
3909: else
3910: echo "$as_me: failed program was:" >&5
3911: sed 's/^/| /' conftest.$ac_ext >&5
3912:
3913: ac_cv_header_stdc=no
3914: fi
3915: rm -f conftest.$ac_objext conftest.$ac_ext
3916:
3917: if test $ac_cv_header_stdc = yes; then
3918: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3919: cat >conftest.$ac_ext <<_ACEOF
3920: #line $LINENO "configure"
3921: /* confdefs.h. */
3922: _ACEOF
3923: cat confdefs.h >>conftest.$ac_ext
3924: cat >>conftest.$ac_ext <<_ACEOF
3925: /* end confdefs.h. */
3926: #include <string.h>
3927:
3928: _ACEOF
3929: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930: $EGREP "memchr" >/dev/null 2>&1; then
3931: :
3932: else
3933: ac_cv_header_stdc=no
3934: fi
3935: rm -f conftest*
3936:
3937: fi
3938:
3939: if test $ac_cv_header_stdc = yes; then
3940: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3941: cat >conftest.$ac_ext <<_ACEOF
3942: #line $LINENO "configure"
3943: /* confdefs.h. */
3944: _ACEOF
3945: cat confdefs.h >>conftest.$ac_ext
3946: cat >>conftest.$ac_ext <<_ACEOF
3947: /* end confdefs.h. */
3948: #include <stdlib.h>
3949:
3950: _ACEOF
3951: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952: $EGREP "free" >/dev/null 2>&1; then
3953: :
3954: else
3955: ac_cv_header_stdc=no
3956: fi
3957: rm -f conftest*
3958:
3959: fi
3960:
3961: if test $ac_cv_header_stdc = yes; then
3962: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3963: if test "$cross_compiling" = yes; then
3964: :
3965: else
3966: cat >conftest.$ac_ext <<_ACEOF
3967: #line $LINENO "configure"
3968: /* confdefs.h. */
3969: _ACEOF
3970: cat confdefs.h >>conftest.$ac_ext
3971: cat >>conftest.$ac_ext <<_ACEOF
3972: /* end confdefs.h. */
3973: #include <ctype.h>
3974: #if ((' ' & 0x0FF) == 0x020)
3975: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3976: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3977: #else
3978: # define ISLOWER(c) \
3979: (('a' <= (c) && (c) <= 'i') \
3980: || ('j' <= (c) && (c) <= 'r') \
3981: || ('s' <= (c) && (c) <= 'z'))
3982: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3983: #endif
3984:
3985: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3986: int
3987: main ()
3988: {
3989: int i;
3990: for (i = 0; i < 256; i++)
3991: if (XOR (islower (i), ISLOWER (i))
3992: || toupper (i) != TOUPPER (i))
3993: exit(2);
3994: exit (0);
3995: }
3996: _ACEOF
3997: rm -f conftest$ac_exeext
3998: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999: (eval $ac_link) 2>&5
4000: ac_status=$?
4001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4003: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004: (eval $ac_try) 2>&5
4005: ac_status=$?
4006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007: (exit $ac_status); }; }; then
4008: :
4009: else
4010: echo "$as_me: program exited with status $ac_status" >&5
4011: echo "$as_me: failed program was:" >&5
4012: sed 's/^/| /' conftest.$ac_ext >&5
4013:
4014: ( exit $ac_status )
4015: ac_cv_header_stdc=no
4016: fi
4017: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4018: fi
4019: fi
4020: fi
4021: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4022: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4023: if test $ac_cv_header_stdc = yes; then
4024:
4025: cat >>confdefs.h <<\_ACEOF
4026: #define STDC_HEADERS 1
4027: _ACEOF
4028:
4029: fi
4030:
4031: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4032:
4033:
4034:
4035:
4036:
4037:
4038:
4039:
4040:
4041: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4042: inttypes.h stdint.h unistd.h
4043: do
4044: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045: echo "$as_me:$LINENO: checking for $ac_header" >&5
4046: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4047: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4048: echo $ECHO_N "(cached) $ECHO_C" >&6
4049: else
4050: cat >conftest.$ac_ext <<_ACEOF
4051: #line $LINENO "configure"
4052: /* confdefs.h. */
4053: _ACEOF
4054: cat confdefs.h >>conftest.$ac_ext
4055: cat >>conftest.$ac_ext <<_ACEOF
4056: /* end confdefs.h. */
4057: $ac_includes_default
4058:
4059: #include <$ac_header>
4060: _ACEOF
4061: rm -f conftest.$ac_objext
4062: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063: (eval $ac_compile) 2>&5
4064: ac_status=$?
4065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066: (exit $ac_status); } &&
4067: { ac_try='test -s conftest.$ac_objext'
4068: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069: (eval $ac_try) 2>&5
4070: ac_status=$?
4071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072: (exit $ac_status); }; }; then
4073: eval "$as_ac_Header=yes"
4074: else
4075: echo "$as_me: failed program was:" >&5
4076: sed 's/^/| /' conftest.$ac_ext >&5
4077:
4078: eval "$as_ac_Header=no"
4079: fi
4080: rm -f conftest.$ac_objext conftest.$ac_ext
4081: fi
4082: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4083: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4084: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4085: cat >>confdefs.h <<_ACEOF
4086: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4087: _ACEOF
4088:
4089: fi
4090:
4091: done
4092:
4093:
4094:
4095: for ac_header in dlfcn.h
4096: do
4097: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4099: echo "$as_me:$LINENO: checking for $ac_header" >&5
4100: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4101: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4102: echo $ECHO_N "(cached) $ECHO_C" >&6
4103: fi
4104: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4105: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4106: else
4107: # Is the header compilable?
4108: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4109: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4110: cat >conftest.$ac_ext <<_ACEOF
4111: #line $LINENO "configure"
4112: /* confdefs.h. */
4113: _ACEOF
4114: cat confdefs.h >>conftest.$ac_ext
4115: cat >>conftest.$ac_ext <<_ACEOF
4116: /* end confdefs.h. */
4117: $ac_includes_default
4118: #include <$ac_header>
4119: _ACEOF
4120: rm -f conftest.$ac_objext
4121: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122: (eval $ac_compile) 2>&5
4123: ac_status=$?
4124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125: (exit $ac_status); } &&
4126: { ac_try='test -s conftest.$ac_objext'
4127: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128: (eval $ac_try) 2>&5
4129: ac_status=$?
4130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131: (exit $ac_status); }; }; then
4132: ac_header_compiler=yes
4133: else
4134: echo "$as_me: failed program was:" >&5
4135: sed 's/^/| /' conftest.$ac_ext >&5
4136:
4137: ac_header_compiler=no
4138: fi
4139: rm -f conftest.$ac_objext conftest.$ac_ext
4140: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4141: echo "${ECHO_T}$ac_header_compiler" >&6
4142:
4143: # Is the header present?
4144: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4145: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4146: cat >conftest.$ac_ext <<_ACEOF
4147: #line $LINENO "configure"
4148: /* confdefs.h. */
4149: _ACEOF
4150: cat confdefs.h >>conftest.$ac_ext
4151: cat >>conftest.$ac_ext <<_ACEOF
4152: /* end confdefs.h. */
4153: #include <$ac_header>
4154: _ACEOF
4155: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4156: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157: ac_status=$?
4158: grep -v '^ *+' conftest.er1 >conftest.err
4159: rm -f conftest.er1
4160: cat conftest.err >&5
4161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162: (exit $ac_status); } >/dev/null; then
4163: if test -s conftest.err; then
4164: ac_cpp_err=$ac_c_preproc_warn_flag
4165: else
4166: ac_cpp_err=
4167: fi
4168: else
4169: ac_cpp_err=yes
4170: fi
4171: if test -z "$ac_cpp_err"; then
4172: ac_header_preproc=yes
4173: else
4174: echo "$as_me: failed program was:" >&5
4175: sed 's/^/| /' conftest.$ac_ext >&5
4176:
4177: ac_header_preproc=no
4178: fi
4179: rm -f conftest.err conftest.$ac_ext
4180: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4181: echo "${ECHO_T}$ac_header_preproc" >&6
4182:
4183: # So? What about this header?
4184: case $ac_header_compiler:$ac_header_preproc in
4185: yes:no )
4186: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4187: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4188: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4189: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4190: (
4191: cat <<\_ASBOX
4192: ## ------------------------------------ ##
4193: ## Report this to bug-autoconf@gnu.org. ##
4194: ## ------------------------------------ ##
4195: _ASBOX
4196: ) |
4197: sed "s/^/$as_me: WARNING: /" >&2
4198: ;;
4199: no:yes )
4200: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4201: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4202: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4203: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4204: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4205: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4206: (
4207: cat <<\_ASBOX
4208: ## ------------------------------------ ##
4209: ## Report this to bug-autoconf@gnu.org. ##
4210: ## ------------------------------------ ##
4211: _ASBOX
4212: ) |
4213: sed "s/^/$as_me: WARNING: /" >&2
4214: ;;
4215: esac
4216: echo "$as_me:$LINENO: checking for $ac_header" >&5
4217: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4218: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4219: echo $ECHO_N "(cached) $ECHO_C" >&6
4220: else
4221: eval "$as_ac_Header=$ac_header_preproc"
4222: fi
4223: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4224: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4225:
4226: fi
4227: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4228: cat >>confdefs.h <<_ACEOF
4229: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4230: _ACEOF
4231:
4232: fi
4233:
4234: done
4235:
4236:
4237:
4238:
4239:
4240:
4241: # Only perform the check for file, if the check method requires it
4242: case $deplibs_check_method in
4243: file_magic*)
4244: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4245: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4246: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4247: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4248: echo $ECHO_N "(cached) $ECHO_C" >&6
4249: else
4250: case $MAGIC_CMD in
4251: /*)
4252: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4253: ;;
4254: ?:/*)
4255: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4256: ;;
4257: *)
4258: ac_save_MAGIC_CMD="$MAGIC_CMD"
4259: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4260: ac_dummy="/usr/bin:$PATH"
4261: for ac_dir in $ac_dummy; do
4262: test -z "$ac_dir" && ac_dir=.
4263: if test -f $ac_dir/${ac_tool_prefix}file; then
4264: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4265: if test -n "$file_magic_test_file"; then
4266: case $deplibs_check_method in
4267: "file_magic "*)
4268: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4269: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4270: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4271: egrep "$file_magic_regex" > /dev/null; then
4272: :
4273: else
4274: cat <<EOF 1>&2
4275:
4276: *** Warning: the command libtool uses to detect shared libraries,
4277: *** $file_magic_cmd, produces output that libtool cannot recognize.
4278: *** The result is that libtool may fail to recognize shared libraries
4279: *** as such. This will affect the creation of libtool libraries that
4280: *** depend on shared libraries, but programs linked with such libtool
4281: *** libraries will work regardless of this problem. Nevertheless, you
4282: *** may want to report the problem to your system manager and/or to
4283: *** bug-libtool@gnu.org
4284:
4285: EOF
4286: fi ;;
4287: esac
4288: fi
4289: break
4290: fi
4291: done
4292: IFS="$ac_save_ifs"
4293: MAGIC_CMD="$ac_save_MAGIC_CMD"
4294: ;;
4295: esac
4296: fi
4297:
4298: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4299: if test -n "$MAGIC_CMD"; then
4300: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4301: echo "${ECHO_T}$MAGIC_CMD" >&6
4302: else
4303: echo "$as_me:$LINENO: result: no" >&5
4304: echo "${ECHO_T}no" >&6
4305: fi
4306:
4307: if test -z "$lt_cv_path_MAGIC_CMD"; then
4308: if test -n "$ac_tool_prefix"; then
4309: echo "$as_me:$LINENO: checking for file" >&5
4310: echo $ECHO_N "checking for file... $ECHO_C" >&6
4311: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4312: echo $ECHO_N "(cached) $ECHO_C" >&6
4313: else
4314: case $MAGIC_CMD in
4315: /*)
4316: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4317: ;;
4318: ?:/*)
4319: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4320: ;;
4321: *)
4322: ac_save_MAGIC_CMD="$MAGIC_CMD"
4323: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4324: ac_dummy="/usr/bin:$PATH"
4325: for ac_dir in $ac_dummy; do
4326: test -z "$ac_dir" && ac_dir=.
4327: if test -f $ac_dir/file; then
4328: lt_cv_path_MAGIC_CMD="$ac_dir/file"
4329: if test -n "$file_magic_test_file"; then
4330: case $deplibs_check_method in
4331: "file_magic "*)
4332: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4333: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4334: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4335: egrep "$file_magic_regex" > /dev/null; then
4336: :
4337: else
4338: cat <<EOF 1>&2
4339:
4340: *** Warning: the command libtool uses to detect shared libraries,
4341: *** $file_magic_cmd, produces output that libtool cannot recognize.
4342: *** The result is that libtool may fail to recognize shared libraries
4343: *** as such. This will affect the creation of libtool libraries that
4344: *** depend on shared libraries, but programs linked with such libtool
4345: *** libraries will work regardless of this problem. Nevertheless, you
4346: *** may want to report the problem to your system manager and/or to
4347: *** bug-libtool@gnu.org
4348:
4349: EOF
4350: fi ;;
4351: esac
4352: fi
4353: break
4354: fi
4355: done
4356: IFS="$ac_save_ifs"
4357: MAGIC_CMD="$ac_save_MAGIC_CMD"
4358: ;;
4359: esac
4360: fi
4361:
4362: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4363: if test -n "$MAGIC_CMD"; then
4364: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4365: echo "${ECHO_T}$MAGIC_CMD" >&6
4366: else
4367: echo "$as_me:$LINENO: result: no" >&5
4368: echo "${ECHO_T}no" >&6
4369: fi
4370:
4371: else
4372: MAGIC_CMD=:
4373: fi
4374: fi
4375:
4376: fi
4377: ;;
4378: esac
4379:
4380: if test -n "$ac_tool_prefix"; then
4381: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4382: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4383: echo "$as_me:$LINENO: checking for $ac_word" >&5
4384: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4385: if test "${ac_cv_prog_RANLIB+set}" = set; then
4386: echo $ECHO_N "(cached) $ECHO_C" >&6
4387: else
4388: if test -n "$RANLIB"; then
4389: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4390: else
4391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392: for as_dir in $PATH
4393: do
4394: IFS=$as_save_IFS
4395: test -z "$as_dir" && as_dir=.
4396: for ac_exec_ext in '' $ac_executable_extensions; do
4397: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4399: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400: break 2
4401: fi
4402: done
4403: done
4404:
4405: fi
4406: fi
4407: RANLIB=$ac_cv_prog_RANLIB
4408: if test -n "$RANLIB"; then
4409: echo "$as_me:$LINENO: result: $RANLIB" >&5
4410: echo "${ECHO_T}$RANLIB" >&6
4411: else
4412: echo "$as_me:$LINENO: result: no" >&5
4413: echo "${ECHO_T}no" >&6
4414: fi
4415:
4416: fi
4417: if test -z "$ac_cv_prog_RANLIB"; then
4418: ac_ct_RANLIB=$RANLIB
4419: # Extract the first word of "ranlib", so it can be a program name with args.
4420: set dummy ranlib; ac_word=$2
4421: echo "$as_me:$LINENO: checking for $ac_word" >&5
4422: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4424: echo $ECHO_N "(cached) $ECHO_C" >&6
4425: else
4426: if test -n "$ac_ct_RANLIB"; then
4427: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4428: else
4429: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430: for as_dir in $PATH
4431: do
4432: IFS=$as_save_IFS
4433: test -z "$as_dir" && as_dir=.
4434: for ac_exec_ext in '' $ac_executable_extensions; do
4435: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436: ac_cv_prog_ac_ct_RANLIB="ranlib"
4437: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438: break 2
4439: fi
4440: done
4441: done
4442:
4443: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4444: fi
4445: fi
4446: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4447: if test -n "$ac_ct_RANLIB"; then
4448: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4449: echo "${ECHO_T}$ac_ct_RANLIB" >&6
4450: else
4451: echo "$as_me:$LINENO: result: no" >&5
4452: echo "${ECHO_T}no" >&6
4453: fi
4454:
4455: RANLIB=$ac_ct_RANLIB
4456: else
4457: RANLIB="$ac_cv_prog_RANLIB"
4458: fi
4459:
4460: if test -n "$ac_tool_prefix"; then
4461: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4462: set dummy ${ac_tool_prefix}strip; ac_word=$2
4463: echo "$as_me:$LINENO: checking for $ac_word" >&5
4464: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465: if test "${ac_cv_prog_STRIP+set}" = set; then
4466: echo $ECHO_N "(cached) $ECHO_C" >&6
4467: else
4468: if test -n "$STRIP"; then
4469: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4470: else
4471: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472: for as_dir in $PATH
4473: do
4474: IFS=$as_save_IFS
4475: test -z "$as_dir" && as_dir=.
4476: for ac_exec_ext in '' $ac_executable_extensions; do
4477: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4479: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480: break 2
4481: fi
4482: done
4483: done
4484:
4485: fi
4486: fi
4487: STRIP=$ac_cv_prog_STRIP
4488: if test -n "$STRIP"; then
4489: echo "$as_me:$LINENO: result: $STRIP" >&5
4490: echo "${ECHO_T}$STRIP" >&6
4491: else
4492: echo "$as_me:$LINENO: result: no" >&5
4493: echo "${ECHO_T}no" >&6
4494: fi
4495:
4496: fi
4497: if test -z "$ac_cv_prog_STRIP"; then
4498: ac_ct_STRIP=$STRIP
4499: # Extract the first word of "strip", so it can be a program name with args.
4500: set dummy strip; ac_word=$2
4501: echo "$as_me:$LINENO: checking for $ac_word" >&5
4502: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4503: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4504: echo $ECHO_N "(cached) $ECHO_C" >&6
4505: else
4506: if test -n "$ac_ct_STRIP"; then
4507: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4508: else
4509: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510: for as_dir in $PATH
4511: do
4512: IFS=$as_save_IFS
4513: test -z "$as_dir" && as_dir=.
4514: for ac_exec_ext in '' $ac_executable_extensions; do
4515: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516: ac_cv_prog_ac_ct_STRIP="strip"
4517: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518: break 2
4519: fi
4520: done
4521: done
4522:
4523: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4524: fi
4525: fi
4526: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4527: if test -n "$ac_ct_STRIP"; then
4528: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4529: echo "${ECHO_T}$ac_ct_STRIP" >&6
4530: else
4531: echo "$as_me:$LINENO: result: no" >&5
4532: echo "${ECHO_T}no" >&6
4533: fi
4534:
4535: STRIP=$ac_ct_STRIP
4536: else
4537: STRIP="$ac_cv_prog_STRIP"
4538: fi
4539:
4540:
4541: enable_dlopen=no
4542: enable_win32_dll=no
4543:
4544: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4545: if test "${enable_libtool_lock+set}" = set; then
4546: enableval="$enable_libtool_lock"
4547:
4548: fi;
4549: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4550:
4551: # Some flags need to be propagated to the compiler or linker for good
4552: # libtool support.
4553: case $host in
4554: *-*-irix6*)
4555: # Find out which ABI we are using.
4556: echo '#line 4556 "configure"' > conftest.$ac_ext
4557: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558: (eval $ac_compile) 2>&5
4559: ac_status=$?
4560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561: (exit $ac_status); }; then
4562: case `/usr/bin/file conftest.$ac_objext` in
4563: *32-bit*)
4564: LD="${LD-ld} -32"
4565: ;;
4566: *N32*)
4567: LD="${LD-ld} -n32"
4568: ;;
4569: *64-bit*)
4570: LD="${LD-ld} -64"
4571: ;;
4572: esac
4573: fi
4574: rm -rf conftest*
4575: ;;
4576:
4577: *-*-sco3.2v5*)
4578: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4579: SAVE_CFLAGS="$CFLAGS"
4580: CFLAGS="$CFLAGS -belf"
4581: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4582: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4583: if test "${lt_cv_cc_needs_belf+set}" = set; then
4584: echo $ECHO_N "(cached) $ECHO_C" >&6
4585: else
4586:
4587:
4588: ac_ext=c
4589: ac_cpp='$CPP $CPPFLAGS'
4590: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593:
4594: cat >conftest.$ac_ext <<_ACEOF
4595: #line $LINENO "configure"
4596: /* confdefs.h. */
4597: _ACEOF
4598: cat confdefs.h >>conftest.$ac_ext
4599: cat >>conftest.$ac_ext <<_ACEOF
4600: /* end confdefs.h. */
4601:
4602: int
4603: main ()
4604: {
4605:
4606: ;
4607: return 0;
4608: }
4609: _ACEOF
4610: rm -f conftest.$ac_objext conftest$ac_exeext
4611: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612: (eval $ac_link) 2>&5
4613: ac_status=$?
4614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615: (exit $ac_status); } &&
4616: { ac_try='test -s conftest$ac_exeext'
4617: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618: (eval $ac_try) 2>&5
4619: ac_status=$?
4620: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621: (exit $ac_status); }; }; then
4622: lt_cv_cc_needs_belf=yes
4623: else
4624: echo "$as_me: failed program was:" >&5
4625: sed 's/^/| /' conftest.$ac_ext >&5
4626:
4627: lt_cv_cc_needs_belf=no
4628: fi
4629: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4630: ac_ext=c
4631: ac_cpp='$CPP $CPPFLAGS'
4632: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635:
4636: fi
4637: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4638: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4639: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4640: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4641: CFLAGS="$SAVE_CFLAGS"
4642: fi
4643: ;;
4644:
4645:
4646: esac
4647:
4648: # Sed substitution that helps us do robust quoting. It backslashifies
4649: # metacharacters that are still active within double-quoted strings.
4650: Xsed='sed -e s/^X//'
4651: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4652:
4653: # Same as above, but do not quote variable references.
4654: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4655:
4656: # Sed substitution to delay expansion of an escaped shell variable in a
4657: # double_quote_subst'ed string.
4658: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4659:
4660: # Constants:
4661: rm="rm -f"
4662:
4663: # Global variables:
4664: default_ofile=libtool
4665: can_build_shared=yes
4666:
4667: # All known linkers require a `.a' archive for static linking (except M$VC,
4668: # which needs '.lib').
4669: libext=a
4670: ltmain="$ac_aux_dir/ltmain.sh"
4671: ofile="$default_ofile"
4672: with_gnu_ld="$lt_cv_prog_gnu_ld"
4673: need_locks="$enable_libtool_lock"
4674:
4675: old_CC="$CC"
4676: old_CFLAGS="$CFLAGS"
4677:
4678: # Set sane defaults for various variables
4679: test -z "$AR" && AR=ar
4680: test -z "$AR_FLAGS" && AR_FLAGS=cru
4681: test -z "$AS" && AS=as
4682: test -z "$CC" && CC=cc
4683: test -z "$DLLTOOL" && DLLTOOL=dlltool
4684: test -z "$LD" && LD=ld
4685: test -z "$LN_S" && LN_S="ln -s"
4686: test -z "$MAGIC_CMD" && MAGIC_CMD=file
4687: test -z "$NM" && NM=nm
4688: test -z "$OBJDUMP" && OBJDUMP=objdump
4689: test -z "$RANLIB" && RANLIB=:
4690: test -z "$STRIP" && STRIP=:
4691: test -z "$ac_objext" && ac_objext=o
4692:
4693: if test x"$host" != x"$build"; then
4694: ac_tool_prefix=${host_alias}-
4695: else
4696: ac_tool_prefix=
4697: fi
4698:
4699: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4700: case $host_os in
4701: linux-gnu*) ;;
4702: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4703: esac
4704:
4705: case $host_os in
4706: aix3*)
4707: # AIX sometimes has problems with the GCC collect2 program. For some
4708: # reason, if we set the COLLECT_NAMES environment variable, the problems
4709: # vanish in a puff of smoke.
4710: if test "X${COLLECT_NAMES+set}" != Xset; then
4711: COLLECT_NAMES=
4712: export COLLECT_NAMES
4713: fi
4714: ;;
4715: esac
4716:
4717: # Determine commands to create old-style static archives.
4718: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4719: old_postinstall_cmds='chmod 644 $oldlib'
4720: old_postuninstall_cmds=
4721:
4722: if test -n "$RANLIB"; then
4723: case $host_os in
4724: openbsd*)
4725: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4726: ;;
4727: *)
4728: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4729: ;;
4730: esac
4731: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4732: fi
4733:
4734: # Allow CC to be a program name with arguments.
4735: set dummy $CC
4736: compiler="$2"
4737:
4738: echo "$as_me:$LINENO: checking for objdir" >&5
4739: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4740: rm -f .libs 2>/dev/null
4741: mkdir .libs 2>/dev/null
4742: if test -d .libs; then
4743: objdir=.libs
4744: else
4745: # MS-DOS does not allow filenames that begin with a dot.
4746: objdir=_libs
4747: fi
4748: rmdir .libs 2>/dev/null
4749: echo "$as_me:$LINENO: result: $objdir" >&5
4750: echo "${ECHO_T}$objdir" >&6
4751:
4752:
4753:
4754: # Check whether --with-pic or --without-pic was given.
4755: if test "${with_pic+set}" = set; then
4756: withval="$with_pic"
4757: pic_mode="$withval"
4758: else
4759: pic_mode=default
4760: fi;
4761: test -z "$pic_mode" && pic_mode=default
4762:
4763: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4764: # in isolation, and that seeing it set (from the cache) indicates that
4765: # the associated values are set (in the cache) correctly too.
4766: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4767: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4768: if test "${lt_cv_prog_cc_pic+set}" = set; then
4769: echo $ECHO_N "(cached) $ECHO_C" >&6
4770: else
4771: lt_cv_prog_cc_pic=
4772: lt_cv_prog_cc_shlib=
4773: lt_cv_prog_cc_wl=
4774: lt_cv_prog_cc_static=
4775: lt_cv_prog_cc_no_builtin=
4776: lt_cv_prog_cc_can_build_shared=$can_build_shared
4777:
4778: if test "$GCC" = yes; then
4779: lt_cv_prog_cc_wl='-Wl,'
4780: lt_cv_prog_cc_static='-static'
4781:
4782: case $host_os in
4783: aix*)
4784: # Below there is a dirty hack to force normal static linking with -ldl
4785: # The problem is because libdl dynamically linked with both libc and
4786: # libC (AIX C++ library), which obviously doesn't included in libraries
4787: # list by gcc. This cause undefined symbols with -static flags.
4788: # This hack allows C programs to be linked with "-static -ldl", but
4789: # not sure about C++ programs.
4790: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4791: ;;
4792: amigaos*)
4793: # FIXME: we need at least 68020 code to build shared libraries, but
4794: # adding the `-m68020' flag to GCC prevents building anything better,
4795: # like `-m68040'.
4796: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4797: ;;
4798: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4799: # PIC is the default for these OSes.
4800: ;;
4801: darwin* | rhapsody*)
4802: # PIC is the default on this platform
4803: # Common symbols not allowed in MH_DYLIB files
4804: lt_cv_prog_cc_pic='-fno-common'
4805: ;;
4806: cygwin* | mingw* | pw32* | os2*)
4807: # This hack is so that the source file can tell whether it is being
4808: # built for inclusion in a dll (and should export symbols for example).
4809: lt_cv_prog_cc_pic='-DDLL_EXPORT'
4810: ;;
4811: sysv4*MP*)
4812: if test -d /usr/nec; then
4813: lt_cv_prog_cc_pic=-Kconform_pic
4814: fi
4815: ;;
4816: *)
4817: lt_cv_prog_cc_pic='-fPIC'
4818: ;;
4819: esac
4820: else
4821: # PORTME Check for PIC flags for the system compiler.
4822: case $host_os in
4823: aix3* | aix4* | aix5*)
4824: lt_cv_prog_cc_wl='-Wl,'
4825: # All AIX code is PIC.
4826: if test "$host_cpu" = ia64; then
4827: # AIX 5 now supports IA64 processor
4828: lt_cv_prog_cc_static='-Bstatic'
4829: else
4830: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4831: fi
4832: ;;
4833:
4834: hpux9* | hpux10* | hpux11*)
4835: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4836: lt_cv_prog_cc_wl='-Wl,'
4837: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4838: lt_cv_prog_cc_pic='+Z'
4839: ;;
4840:
4841: irix5* | irix6* | nonstopux*)
4842: lt_cv_prog_cc_wl='-Wl,'
4843: lt_cv_prog_cc_static='-non_shared'
4844: # PIC (with -KPIC) is the default.
4845: ;;
4846:
4847: cygwin* | mingw* | pw32* | os2*)
4848: # This hack is so that the source file can tell whether it is being
4849: # built for inclusion in a dll (and should export symbols for example).
4850: lt_cv_prog_cc_pic='-DDLL_EXPORT'
4851: ;;
4852:
4853: newsos6)
4854: lt_cv_prog_cc_pic='-KPIC'
4855: lt_cv_prog_cc_static='-Bstatic'
4856: ;;
4857:
4858: osf3* | osf4* | osf5*)
4859: # All OSF/1 code is PIC.
4860: lt_cv_prog_cc_wl='-Wl,'
4861: lt_cv_prog_cc_static='-non_shared'
4862: ;;
4863:
4864: sco3.2v5*)
4865: lt_cv_prog_cc_pic='-Kpic'
4866: lt_cv_prog_cc_static='-dn'
4867: lt_cv_prog_cc_shlib='-belf'
4868: ;;
4869:
4870: solaris*)
4871: lt_cv_prog_cc_pic='-KPIC'
4872: lt_cv_prog_cc_static='-Bstatic'
4873: lt_cv_prog_cc_wl='-Wl,'
4874: ;;
4875:
4876: sunos4*)
4877: lt_cv_prog_cc_pic='-PIC'
4878: lt_cv_prog_cc_static='-Bstatic'
4879: lt_cv_prog_cc_wl='-Qoption ld '
4880: ;;
4881:
4882: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4883: lt_cv_prog_cc_pic='-KPIC'
4884: lt_cv_prog_cc_static='-Bstatic'
4885: lt_cv_prog_cc_wl='-Wl,'
4886: ;;
4887:
4888: uts4*)
4889: lt_cv_prog_cc_pic='-pic'
4890: lt_cv_prog_cc_static='-Bstatic'
4891: ;;
4892:
4893: sysv4*MP*)
4894: if test -d /usr/nec ;then
4895: lt_cv_prog_cc_pic='-Kconform_pic'
4896: lt_cv_prog_cc_static='-Bstatic'
4897: fi
4898: ;;
4899:
4900: *)
4901: lt_cv_prog_cc_can_build_shared=no
4902: ;;
4903: esac
4904: fi
4905:
4906: fi
4907:
4908: if test -z "$lt_cv_prog_cc_pic"; then
4909: echo "$as_me:$LINENO: result: none" >&5
4910: echo "${ECHO_T}none" >&6
4911: else
4912: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4913: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4914:
4915: # Check to make sure the pic_flag actually works.
4916: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4917: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4918: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4919: echo $ECHO_N "(cached) $ECHO_C" >&6
4920: else
4921: save_CFLAGS="$CFLAGS"
4922: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4923: cat >conftest.$ac_ext <<_ACEOF
4924: #line $LINENO "configure"
4925: /* confdefs.h. */
4926: _ACEOF
4927: cat confdefs.h >>conftest.$ac_ext
4928: cat >>conftest.$ac_ext <<_ACEOF
4929: /* end confdefs.h. */
4930:
4931: int
4932: main ()
4933: {
4934:
4935: ;
4936: return 0;
4937: }
4938: _ACEOF
4939: rm -f conftest.$ac_objext
4940: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941: (eval $ac_compile) 2>&5
4942: ac_status=$?
4943: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944: (exit $ac_status); } &&
4945: { ac_try='test -s conftest.$ac_objext'
4946: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947: (eval $ac_try) 2>&5
4948: ac_status=$?
4949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950: (exit $ac_status); }; }; then
4951: case $host_os in
4952: hpux9* | hpux10* | hpux11*)
4953: # On HP-UX, both CC and GCC only warn that PIC is supported... then
4954: # they create non-PIC objects. So, if there were any warnings, we
4955: # assume that PIC is not supported.
4956: if test -s conftest.err; then
4957: lt_cv_prog_cc_pic_works=no
4958: else
4959: lt_cv_prog_cc_pic_works=yes
4960: fi
4961: ;;
4962: *)
4963: lt_cv_prog_cc_pic_works=yes
4964: ;;
4965: esac
4966:
4967: else
4968: echo "$as_me: failed program was:" >&5
4969: sed 's/^/| /' conftest.$ac_ext >&5
4970:
4971: lt_cv_prog_cc_pic_works=no
4972:
4973: fi
4974: rm -f conftest.$ac_objext conftest.$ac_ext
4975: CFLAGS="$save_CFLAGS"
4976:
4977: fi
4978:
4979:
4980: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4981: lt_cv_prog_cc_pic=
4982: lt_cv_prog_cc_can_build_shared=no
4983: else
4984: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4985: fi
4986:
4987: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4988: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4989: fi
4990:
4991: # Check for any special shared library compilation flags.
4992: if test -n "$lt_cv_prog_cc_shlib"; then
4993: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4994: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4995: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4996: else
4997: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4998: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4999: lt_cv_prog_cc_can_build_shared=no
5000: fi
5001: fi
5002:
5003: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5004: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5005: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5006: echo $ECHO_N "(cached) $ECHO_C" >&6
5007: else
5008: lt_cv_prog_cc_static_works=no
5009: save_LDFLAGS="$LDFLAGS"
5010: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5011: cat >conftest.$ac_ext <<_ACEOF
5012: #line $LINENO "configure"
5013: /* confdefs.h. */
5014: _ACEOF
5015: cat confdefs.h >>conftest.$ac_ext
5016: cat >>conftest.$ac_ext <<_ACEOF
5017: /* end confdefs.h. */
5018:
5019: int
5020: main ()
5021: {
5022:
5023: ;
5024: return 0;
5025: }
5026: _ACEOF
5027: rm -f conftest.$ac_objext conftest$ac_exeext
5028: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029: (eval $ac_link) 2>&5
5030: ac_status=$?
5031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032: (exit $ac_status); } &&
5033: { ac_try='test -s conftest$ac_exeext'
5034: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035: (eval $ac_try) 2>&5
5036: ac_status=$?
5037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038: (exit $ac_status); }; }; then
5039: lt_cv_prog_cc_static_works=yes
5040: else
5041: echo "$as_me: failed program was:" >&5
5042: sed 's/^/| /' conftest.$ac_ext >&5
5043:
5044: fi
5045: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5046: LDFLAGS="$save_LDFLAGS"
5047:
5048: fi
5049:
5050:
5051: # Belt *and* braces to stop my trousers falling down:
5052: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5053: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5054: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5055:
5056: pic_flag="$lt_cv_prog_cc_pic"
5057: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5058: wl="$lt_cv_prog_cc_wl"
5059: link_static_flag="$lt_cv_prog_cc_static"
5060: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5061: can_build_shared="$lt_cv_prog_cc_can_build_shared"
5062:
5063:
5064: # Check to see if options -o and -c are simultaneously supported by compiler
5065: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5066: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5067: if test "${lt_cv_compiler_c_o+set}" = set; then
5068: echo $ECHO_N "(cached) $ECHO_C" >&6
5069: else
5070:
5071: $rm -r conftest 2>/dev/null
5072: mkdir conftest
5073: cd conftest
5074: echo "int some_variable = 0;" > conftest.$ac_ext
5075: mkdir out
5076: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5077: # that will create temporary files in the current directory regardless of
5078: # the output directory. Thus, making CWD read-only will cause this test
5079: # to fail, enabling locking or at least warning the user not to do parallel
5080: # builds.
5081: chmod -w .
5082: save_CFLAGS="$CFLAGS"
5083: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5084: compiler_c_o=no
5085: if { (eval echo configure:5085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5086: # The compiler can only warn and ignore the option if not recognized
5087: # So say no if there are warnings
5088: if test -s out/conftest.err; then
5089: lt_cv_compiler_c_o=no
5090: else
5091: lt_cv_compiler_c_o=yes
5092: fi
5093: else
5094: # Append any errors to the config.log.
5095: cat out/conftest.err 1>&5
5096: lt_cv_compiler_c_o=no
5097: fi
5098: CFLAGS="$save_CFLAGS"
5099: chmod u+w .
5100: $rm conftest* out/*
5101: rmdir out
5102: cd ..
5103: rmdir conftest
5104: $rm -r conftest 2>/dev/null
5105:
5106: fi
5107:
5108: compiler_c_o=$lt_cv_compiler_c_o
5109: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5110: echo "${ECHO_T}$compiler_c_o" >&6
5111:
5112: if test x"$compiler_c_o" = x"yes"; then
5113: # Check to see if we can write to a .lo
5114: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5115: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5116: if test "${lt_cv_compiler_o_lo+set}" = set; then
5117: echo $ECHO_N "(cached) $ECHO_C" >&6
5118: else
5119:
5120: lt_cv_compiler_o_lo=no
5121: save_CFLAGS="$CFLAGS"
5122: CFLAGS="$CFLAGS -c -o conftest.lo"
5123: save_objext="$ac_objext"
5124: ac_objext=lo
5125: cat >conftest.$ac_ext <<_ACEOF
5126: #line $LINENO "configure"
5127: /* confdefs.h. */
5128: _ACEOF
5129: cat confdefs.h >>conftest.$ac_ext
5130: cat >>conftest.$ac_ext <<_ACEOF
5131: /* end confdefs.h. */
5132:
5133: int
5134: main ()
5135: {
5136: int some_variable = 0;
5137: ;
5138: return 0;
5139: }
5140: _ACEOF
5141: rm -f conftest.$ac_objext
5142: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143: (eval $ac_compile) 2>&5
5144: ac_status=$?
5145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146: (exit $ac_status); } &&
5147: { ac_try='test -s conftest.$ac_objext'
5148: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149: (eval $ac_try) 2>&5
5150: ac_status=$?
5151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152: (exit $ac_status); }; }; then
5153: # The compiler can only warn and ignore the option if not recognized
5154: # So say no if there are warnings
5155: if test -s conftest.err; then
5156: lt_cv_compiler_o_lo=no
5157: else
5158: lt_cv_compiler_o_lo=yes
5159: fi
5160:
5161: else
5162: echo "$as_me: failed program was:" >&5
5163: sed 's/^/| /' conftest.$ac_ext >&5
5164:
5165: fi
5166: rm -f conftest.$ac_objext conftest.$ac_ext
5167: ac_objext="$save_objext"
5168: CFLAGS="$save_CFLAGS"
5169:
5170: fi
5171:
5172: compiler_o_lo=$lt_cv_compiler_o_lo
5173: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5174: echo "${ECHO_T}$compiler_o_lo" >&6
5175: else
5176: compiler_o_lo=no
5177: fi
5178:
5179: # Check to see if we can do hard links to lock some files if needed
5180: hard_links="nottested"
5181: if test "$compiler_c_o" = no && test "$need_locks" != no; then
5182: # do not overwrite the value of need_locks provided by the user
5183: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5184: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5185: hard_links=yes
5186: $rm conftest*
5187: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5188: touch conftest.a
5189: ln conftest.a conftest.b 2>&5 || hard_links=no
5190: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5191: echo "$as_me:$LINENO: result: $hard_links" >&5
5192: echo "${ECHO_T}$hard_links" >&6
5193: if test "$hard_links" = no; then
5194: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5195: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5196: need_locks=warn
5197: fi
5198: else
5199: need_locks=no
5200: fi
5201:
5202: if test "$GCC" = yes; then
5203: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5204: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5205: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5206: echo "int some_variable = 0;" > conftest.$ac_ext
5207: save_CFLAGS="$CFLAGS"
5208: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5209: compiler_rtti_exceptions=no
5210: cat >conftest.$ac_ext <<_ACEOF
5211: #line $LINENO "configure"
5212: /* confdefs.h. */
5213: _ACEOF
5214: cat confdefs.h >>conftest.$ac_ext
5215: cat >>conftest.$ac_ext <<_ACEOF
5216: /* end confdefs.h. */
5217:
5218: int
5219: main ()
5220: {
5221: int some_variable = 0;
5222: ;
5223: return 0;
5224: }
5225: _ACEOF
5226: rm -f conftest.$ac_objext
5227: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228: (eval $ac_compile) 2>&5
5229: ac_status=$?
5230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231: (exit $ac_status); } &&
5232: { ac_try='test -s conftest.$ac_objext'
5233: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234: (eval $ac_try) 2>&5
5235: ac_status=$?
5236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237: (exit $ac_status); }; }; then
5238: # The compiler can only warn and ignore the option if not recognized
5239: # So say no if there are warnings
5240: if test -s conftest.err; then
5241: compiler_rtti_exceptions=no
5242: else
5243: compiler_rtti_exceptions=yes
5244: fi
5245:
5246: else
5247: echo "$as_me: failed program was:" >&5
5248: sed 's/^/| /' conftest.$ac_ext >&5
5249:
5250: fi
5251: rm -f conftest.$ac_objext conftest.$ac_ext
5252: CFLAGS="$save_CFLAGS"
5253: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5254: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5255:
5256: if test "$compiler_rtti_exceptions" = "yes"; then
5257: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5258: else
5259: no_builtin_flag=' -fno-builtin'
5260: fi
5261: fi
5262:
5263: # See if the linker supports building shared libraries.
5264: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5265: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5266:
5267: allow_undefined_flag=
5268: no_undefined_flag=
5269: need_lib_prefix=unknown
5270: need_version=unknown
5271: # when you set need_version to no, make sure it does not cause -set_version
5272: # flags to be left without arguments
5273: archive_cmds=
5274: archive_expsym_cmds=
5275: old_archive_from_new_cmds=
5276: old_archive_from_expsyms_cmds=
5277: export_dynamic_flag_spec=
5278: whole_archive_flag_spec=
5279: thread_safe_flag_spec=
5280: hardcode_into_libs=no
5281: hardcode_libdir_flag_spec=
5282: hardcode_libdir_separator=
5283: hardcode_direct=no
5284: hardcode_minus_L=no
5285: hardcode_shlibpath_var=unsupported
5286: runpath_var=
5287: link_all_deplibs=unknown
5288: always_export_symbols=no
5289: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5290: # include_expsyms should be a list of space-separated symbols to be *always*
5291: # included in the symbol list
5292: include_expsyms=
5293: # exclude_expsyms can be an egrep regular expression of symbols to exclude
5294: # it will be wrapped by ` (' and `)$', so one must not match beginning or
5295: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5296: # as well as any symbol that contains `d'.
5297: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5298: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5299: # platforms (ab)use it in PIC code, but their linkers get confused if
5300: # the symbol is explicitly referenced. Since portable code cannot
5301: # rely on this symbol name, it's probably fine to never include it in
5302: # preloaded symbol tables.
5303: extract_expsyms_cmds=
5304:
5305: case $host_os in
5306: cygwin* | mingw* | pw32*)
5307: # FIXME: the MSVC++ port hasn't been tested in a loooong time
5308: # When not using gcc, we currently assume that we are using
5309: # Microsoft Visual C++.
5310: if test "$GCC" != yes; then
5311: with_gnu_ld=no
5312: fi
5313: ;;
5314: openbsd*)
5315: with_gnu_ld=no
5316: ;;
5317: esac
5318:
5319: ld_shlibs=yes
5320: if test "$with_gnu_ld" = yes; then
5321: # If archive_cmds runs LD, not CC, wlarc should be empty
5322: wlarc='${wl}'
5323:
5324: # See if GNU ld supports shared libraries.
5325: case $host_os in
5326: aix3* | aix4* | aix5*)
5327: # On AIX, the GNU linker is very broken
5328: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5329: ld_shlibs=no
5330: cat <<EOF 1>&2
5331:
5332: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5333: *** to be unable to reliably create shared libraries on AIX.
5334: *** Therefore, libtool is disabling shared libraries support. If you
5335: *** really care for shared libraries, you may want to modify your PATH
5336: *** so that a non-GNU linker is found, and then restart.
5337:
5338: EOF
5339: ;;
5340:
5341: amigaos*)
5342: 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)'
5343: hardcode_libdir_flag_spec='-L$libdir'
5344: hardcode_minus_L=yes
5345:
5346: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5347: # that the semantics of dynamic libraries on AmigaOS, at least up
5348: # to version 4, is to share data among multiple programs linked
5349: # with the same dynamic library. Since this doesn't match the
5350: # behavior of shared libraries on other platforms, we can use
5351: # them.
5352: ld_shlibs=no
5353: ;;
5354:
5355: beos*)
5356: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5357: allow_undefined_flag=unsupported
5358: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5359: # support --undefined. This deserves some investigation. FIXME
5360: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5361: else
5362: ld_shlibs=no
5363: fi
5364: ;;
5365:
5366: cygwin* | mingw* | pw32*)
5367: # hardcode_libdir_flag_spec is actually meaningless, as there is
5368: # no search path for DLLs.
5369: hardcode_libdir_flag_spec='-L$libdir'
5370: allow_undefined_flag=unsupported
5371: always_export_symbols=yes
5372:
5373: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5374: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5375: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5376: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5377: else $CC -o impgen impgen.c ; fi)~
5378: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5379:
5380: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5381:
5382: # cygwin and mingw dlls have different entry points and sets of symbols
5383: # to exclude.
5384: # FIXME: what about values for MSVC?
5385: dll_entry=__cygwin_dll_entry@12
5386: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5387: case $host_os in
5388: mingw*)
5389: # mingw values
5390: dll_entry=_DllMainCRTStartup@12
5391: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5392: ;;
5393: esac
5394:
5395: # mingw and cygwin differ, and it's simplest to just exclude the union
5396: # of the two symbol sets.
5397: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5398:
5399: # recent cygwin and mingw systems supply a stub DllMain which the user
5400: # can override, but on older systems we have to supply one (in ltdll.c)
5401: if test "x$lt_cv_need_dllmain" = "xyes"; then
5402: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5403: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5404: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5405: else
5406: ltdll_obj=
5407: ltdll_cmds=
5408: fi
5409:
5410: # Extract the symbol export list from an `--export-all' def file,
5411: # then regenerate the def file from the symbol export list, so that
5412: # the compiled dll only exports the symbol export list.
5413: # Be careful not to strip the DATA tag left be newer dlltools.
5414: export_symbols_cmds="$ltdll_cmds"'
5415: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5416: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5417:
5418: # If the export-symbols file already is a .def file (1st line
5419: # is EXPORTS), use it as is.
5420: # If DATA tags from a recent dlltool are present, honour them!
5421: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5422: cp $export_symbols $output_objdir/$soname-def;
5423: else
5424: echo EXPORTS > $output_objdir/$soname-def;
5425: _lt_hint=1;
5426: cat $export_symbols | while read symbol; do
5427: set dummy \$symbol;
5428: case \$# in
5429: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5430: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5431: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5432: esac;
5433: _lt_hint=`expr 1 + \$_lt_hint`;
5434: done;
5435: fi~
5436: '"$ltdll_cmds"'
5437: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5438: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5439: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5440: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5441: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5442: ;;
5443:
5444: netbsd*)
5445: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5446: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5447: wlarc=
5448: else
5449: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5450: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5451: fi
5452: ;;
5453:
5454: solaris* | sysv5*)
5455: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5456: ld_shlibs=no
5457: cat <<EOF 1>&2
5458:
5459: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5460: *** create shared libraries on Solaris systems. Therefore, libtool
5461: *** is disabling shared libraries support. We urge you to upgrade GNU
5462: *** binutils to release 2.9.1 or newer. Another option is to modify
5463: *** your PATH or compiler configuration so that the native linker is
5464: *** used, and then restart.
5465:
5466: EOF
5467: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5468: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5469: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5470: else
5471: ld_shlibs=no
5472: fi
5473: ;;
5474:
5475: sunos4*)
5476: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5477: wlarc=
5478: hardcode_direct=yes
5479: hardcode_shlibpath_var=no
5480: ;;
5481:
5482: *)
5483: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5484: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5485: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5486: else
5487: ld_shlibs=no
5488: fi
5489: ;;
5490: esac
5491:
5492: if test "$ld_shlibs" = yes; then
5493: runpath_var=LD_RUN_PATH
5494: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5495: export_dynamic_flag_spec='${wl}--export-dynamic'
5496: case $host_os in
5497: cygwin* | mingw* | pw32*)
5498: # dlltool doesn't understand --whole-archive et. al.
5499: whole_archive_flag_spec=
5500: ;;
5501: *)
5502: # ancient GNU ld didn't support --whole-archive et. al.
5503: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5504: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5505: else
5506: whole_archive_flag_spec=
5507: fi
5508: ;;
5509: esac
5510: fi
5511: else
5512: # PORTME fill in a description of your system's linker (not GNU ld)
5513: case $host_os in
5514: aix3*)
5515: allow_undefined_flag=unsupported
5516: always_export_symbols=yes
5517: 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'
5518: # Note: this linker hardcodes the directories in LIBPATH if there
5519: # are no directories specified by -L.
5520: hardcode_minus_L=yes
5521: if test "$GCC" = yes && test -z "$link_static_flag"; then
5522: # Neither direct hardcoding nor static linking is supported with a
5523: # broken collect2.
5524: hardcode_direct=unsupported
5525: fi
5526: ;;
5527:
5528: aix4* | aix5*)
5529: if test "$host_cpu" = ia64; then
5530: # On IA64, the linker does run time linking by default, so we don't
5531: # have to do anything special.
5532: aix_use_runtimelinking=no
5533: exp_sym_flag='-Bexport'
5534: no_entry_flag=""
5535: else
5536: aix_use_runtimelinking=no
5537:
5538: # Test if we are trying to use run time linking or normal
5539: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5540: # need to do runtime linking.
5541: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5542: for ld_flag in $LDFLAGS; do
5543: case $ld_flag in
5544: *-brtl*)
5545: aix_use_runtimelinking=yes
5546: break
5547: ;;
5548: esac
5549: done
5550: esac
5551:
5552: exp_sym_flag='-bexport'
5553: no_entry_flag='-bnoentry'
5554: fi
5555:
5556: # When large executables or shared objects are built, AIX ld can
5557: # have problems creating the table of contents. If linking a library
5558: # or program results in "error TOC overflow" add -mminimal-toc to
5559: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5560: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5561:
5562: hardcode_direct=yes
5563: archive_cmds=''
5564: hardcode_libdir_separator=':'
5565: if test "$GCC" = yes; then
5566: case $host_os in aix4.[012]|aix4.[012].*)
5567: collect2name=`${CC} -print-prog-name=collect2`
5568: if test -f "$collect2name" && \
5569: strings "$collect2name" | grep resolve_lib_name >/dev/null
5570: then
5571: # We have reworked collect2
5572: hardcode_direct=yes
5573: else
5574: # We have old collect2
5575: hardcode_direct=unsupported
5576: # It fails to find uninstalled libraries when the uninstalled
5577: # path is not listed in the libpath. Setting hardcode_minus_L
5578: # to unsupported forces relinking
5579: hardcode_minus_L=yes
5580: hardcode_libdir_flag_spec='-L$libdir'
5581: hardcode_libdir_separator=
5582: fi
5583: esac
5584:
5585: shared_flag='-shared'
5586: else
5587: # not using gcc
5588: if test "$host_cpu" = ia64; then
5589: shared_flag='${wl}-G'
5590: else
5591: if test "$aix_use_runtimelinking" = yes; then
5592: shared_flag='${wl}-G'
5593: else
5594: shared_flag='${wl}-bM:SRE'
5595: fi
5596: fi
5597: fi
5598:
5599: # It seems that -bexpall can do strange things, so it is better to
5600: # generate a list of symbols to export.
5601: always_export_symbols=yes
5602: if test "$aix_use_runtimelinking" = yes; then
5603: # Warning - without using the other runtime loading flags (-brtl),
5604: # -berok will link without error, but may produce a broken library.
5605: allow_undefined_flag='-berok'
5606: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5607: 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"
5608: else
5609: if test "$host_cpu" = ia64; then
5610: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5611: allow_undefined_flag="-z nodefs"
5612: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5613: else
5614: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5615: # Warning - without using the other run time loading flags,
5616: # -berok will link without error, but may produce a broken library.
5617: allow_undefined_flag='${wl}-berok'
5618: # This is a bit strange, but is similar to how AIX traditionally builds
5619: # it's shared libraries.
5620: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5621: fi
5622: fi
5623: ;;
5624:
5625: amigaos*)
5626: 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)'
5627: hardcode_libdir_flag_spec='-L$libdir'
5628: hardcode_minus_L=yes
5629: # see comment about different semantics on the GNU ld section
5630: ld_shlibs=no
5631: ;;
5632:
5633: cygwin* | mingw* | pw32*)
5634: # When not using gcc, we currently assume that we are using
5635: # Microsoft Visual C++.
5636: # hardcode_libdir_flag_spec is actually meaningless, as there is
5637: # no search path for DLLs.
5638: hardcode_libdir_flag_spec=' '
5639: allow_undefined_flag=unsupported
5640: # Tell ltmain to make .lib files, not .a files.
5641: libext=lib
5642: # FIXME: Setting linknames here is a bad hack.
5643: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5644: # The linker will automatically build a .lib file if we build a DLL.
5645: old_archive_from_new_cmds='true'
5646: # FIXME: Should let the user specify the lib program.
5647: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5648: fix_srcfile_path='`cygpath -w "$srcfile"`'
5649: ;;
5650:
5651: darwin* | rhapsody*)
5652: case "$host_os" in
5653: rhapsody* | darwin1.[012])
5654: allow_undefined_flag='-undefined suppress'
5655: ;;
5656: *) # Darwin 1.3 on
5657: allow_undefined_flag='-flat_namespace -undefined suppress'
5658: ;;
5659: esac
5660: # FIXME: Relying on posixy $() will cause problems for
5661: # cross-compilation, but unfortunately the echo tests do not
5662: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5663: # `"' quotes if we put them in here... so don't!
5664: archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5665: # We need to add '_' to the symbols in $export_symbols first
5666: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5667: hardcode_direct=yes
5668: hardcode_shlibpath_var=no
5669: whole_archive_flag_spec='-all_load $convenience'
5670: ;;
5671:
5672: freebsd1*)
5673: ld_shlibs=no
5674: ;;
5675:
5676: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5677: # support. Future versions do this automatically, but an explicit c++rt0.o
5678: # does not break anything, and helps significantly (at the cost of a little
5679: # extra space).
5680: freebsd2.2*)
5681: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5682: hardcode_libdir_flag_spec='-R$libdir'
5683: hardcode_direct=yes
5684: hardcode_shlibpath_var=no
5685: ;;
5686:
5687: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5688: freebsd2*)
5689: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5690: hardcode_direct=yes
5691: hardcode_minus_L=yes
5692: hardcode_shlibpath_var=no
5693: ;;
5694:
5695: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5696: freebsd*)
5697: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5698: hardcode_libdir_flag_spec='-R$libdir'
5699: hardcode_direct=yes
5700: hardcode_shlibpath_var=no
5701: ;;
5702:
5703: hpux9* | hpux10* | hpux11*)
5704: case $host_os in
5705: hpux9*) 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' ;;
5706: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5707: esac
5708: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5709: hardcode_libdir_separator=:
5710: hardcode_direct=yes
5711: hardcode_minus_L=yes # Not in the search PATH, but as the default
5712: # location of the library.
5713: export_dynamic_flag_spec='${wl}-E'
5714: ;;
5715:
5716: irix5* | irix6* | nonstopux*)
5717: if test "$GCC" = yes; then
5718: 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'
5719: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5720: else
5721: 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'
5722: hardcode_libdir_flag_spec='-rpath $libdir'
5723: fi
5724: hardcode_libdir_separator=:
5725: link_all_deplibs=yes
5726: ;;
5727:
5728: netbsd*)
5729: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5730: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5731: else
5732: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5733: fi
5734: hardcode_libdir_flag_spec='-R$libdir'
5735: hardcode_direct=yes
5736: hardcode_shlibpath_var=no
5737: ;;
5738:
5739: newsos6)
5740: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5741: hardcode_direct=yes
5742: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5743: hardcode_libdir_separator=:
5744: hardcode_shlibpath_var=no
5745: ;;
5746:
5747: openbsd*)
5748: hardcode_direct=yes
5749: hardcode_shlibpath_var=no
5750: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5751: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5752: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5753: export_dynamic_flag_spec='${wl}-E'
5754: else
5755: case "$host_os" in
5756: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5757: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5758: hardcode_libdir_flag_spec='-R$libdir'
5759: ;;
5760: *)
5761: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5762: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5763: ;;
5764: esac
5765: fi
5766: ;;
5767:
5768: os2*)
5769: hardcode_libdir_flag_spec='-L$libdir'
5770: hardcode_minus_L=yes
5771: allow_undefined_flag=unsupported
5772: 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'
5773: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5774: ;;
5775:
5776: osf3*)
5777: if test "$GCC" = yes; then
5778: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5779: 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'
5780: else
5781: allow_undefined_flag=' -expect_unresolved \*'
5782: 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'
5783: fi
5784: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5785: hardcode_libdir_separator=:
5786: ;;
5787:
5788: osf4* | osf5*) # as osf3* with the addition of -msym flag
5789: if test "$GCC" = yes; then
5790: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5791: 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'
5792: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5793: else
5794: allow_undefined_flag=' -expect_unresolved \*'
5795: 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'
5796: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5797: $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'
5798:
5799: #Both c and cxx compiler support -rpath directly
5800: hardcode_libdir_flag_spec='-rpath $libdir'
5801: fi
5802: hardcode_libdir_separator=:
5803: ;;
5804:
5805: sco3.2v5*)
5806: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5807: hardcode_shlibpath_var=no
5808: runpath_var=LD_RUN_PATH
5809: hardcode_runpath_var=yes
5810: export_dynamic_flag_spec='${wl}-Bexport'
5811: ;;
5812:
5813: solaris*)
5814: # gcc --version < 3.0 without binutils cannot create self contained
5815: # shared libraries reliably, requiring libgcc.a to resolve some of
5816: # the object symbols generated in some cases. Libraries that use
5817: # assert need libgcc.a to resolve __eprintf, for example. Linking
5818: # a copy of libgcc.a into every shared library to guarantee resolving
5819: # such symbols causes other problems: According to Tim Van Holder
5820: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5821: # (to the application) exception stack for one thing.
5822: no_undefined_flag=' -z defs'
5823: if test "$GCC" = yes; then
5824: case `$CC --version 2>/dev/null` in
5825: [12].*)
5826: cat <<EOF 1>&2
5827:
5828: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5829: *** create self contained shared libraries on Solaris systems, without
5830: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5831: *** -no-undefined support, which will at least allow you to build shared
5832: *** libraries. However, you may find that when you link such libraries
5833: *** into an application without using GCC, you have to manually add
5834: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5835: *** upgrade to a newer version of GCC. Another option is to rebuild your
5836: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5837:
5838: EOF
5839: no_undefined_flag=
5840: ;;
5841: esac
5842: fi
5843: # $CC -shared without GNU ld will not create a library from C++
5844: # object files and a static libstdc++, better avoid it by now
5845: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5846: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5847: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5848: hardcode_libdir_flag_spec='-R$libdir'
5849: hardcode_shlibpath_var=no
5850: case $host_os in
5851: solaris2.[0-5] | solaris2.[0-5].*) ;;
5852: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5853: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5854: esac
5855: link_all_deplibs=yes
5856: ;;
5857:
5858: sunos4*)
5859: if test "x$host_vendor" = xsequent; then
5860: # Use $CC to link under sequent, because it throws in some extra .o
5861: # files that make .init and .fini sections work.
5862: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5863: else
5864: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5865: fi
5866: hardcode_libdir_flag_spec='-L$libdir'
5867: hardcode_direct=yes
5868: hardcode_minus_L=yes
5869: hardcode_shlibpath_var=no
5870: ;;
5871:
5872: sysv4)
5873: case $host_vendor in
5874: sni)
5875: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5876: hardcode_direct=yes # is this really true???
5877: ;;
5878: siemens)
5879: ## LD is ld it makes a PLAMLIB
5880: ## CC just makes a GrossModule.
5881: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5882: reload_cmds='$CC -r -o $output$reload_objs'
5883: hardcode_direct=no
5884: ;;
5885: motorola)
5886: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5887: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5888: ;;
5889: esac
5890: runpath_var='LD_RUN_PATH'
5891: hardcode_shlibpath_var=no
5892: ;;
5893:
5894: sysv4.3*)
5895: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5896: hardcode_shlibpath_var=no
5897: export_dynamic_flag_spec='-Bexport'
5898: ;;
5899:
5900: sysv5*)
5901: no_undefined_flag=' -z text'
5902: # $CC -shared without GNU ld will not create a library from C++
5903: # object files and a static libstdc++, better avoid it by now
5904: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5905: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5906: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5907: hardcode_libdir_flag_spec=
5908: hardcode_shlibpath_var=no
5909: runpath_var='LD_RUN_PATH'
5910: ;;
5911:
5912: uts4*)
5913: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5914: hardcode_libdir_flag_spec='-L$libdir'
5915: hardcode_shlibpath_var=no
5916: ;;
5917:
5918: dgux*)
5919: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5920: hardcode_libdir_flag_spec='-L$libdir'
5921: hardcode_shlibpath_var=no
5922: ;;
5923:
5924: sysv4*MP*)
5925: if test -d /usr/nec; then
5926: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5927: hardcode_shlibpath_var=no
5928: runpath_var=LD_RUN_PATH
5929: hardcode_runpath_var=yes
5930: ld_shlibs=yes
5931: fi
5932: ;;
5933:
5934: sysv4.2uw2*)
5935: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5936: hardcode_direct=yes
5937: hardcode_minus_L=no
5938: hardcode_shlibpath_var=no
5939: hardcode_runpath_var=yes
5940: runpath_var=LD_RUN_PATH
5941: ;;
5942:
5943: sysv5uw7* | unixware7*)
5944: no_undefined_flag='${wl}-z ${wl}text'
5945: if test "$GCC" = yes; then
5946: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5947: else
5948: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5949: fi
5950: runpath_var='LD_RUN_PATH'
5951: hardcode_shlibpath_var=no
5952: ;;
5953:
5954: *)
5955: ld_shlibs=no
5956: ;;
5957: esac
5958: fi
5959: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5960: echo "${ECHO_T}$ld_shlibs" >&6
5961: test "$ld_shlibs" = no && can_build_shared=no
5962:
5963: # Check hardcoding attributes.
5964: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5965: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5966: hardcode_action=
5967: if test -n "$hardcode_libdir_flag_spec" || \
5968: test -n "$runpath_var"; then
5969:
5970: # We can hardcode non-existant directories.
5971: if test "$hardcode_direct" != no &&
5972: # If the only mechanism to avoid hardcoding is shlibpath_var, we
5973: # have to relink, otherwise we might link with an installed library
5974: # when we should be linking with a yet-to-be-installed one
5975: ## test "$hardcode_shlibpath_var" != no &&
5976: test "$hardcode_minus_L" != no; then
5977: # Linking always hardcodes the temporary library directory.
5978: hardcode_action=relink
5979: else
5980: # We can link without hardcoding, and we can hardcode nonexisting dirs.
5981: hardcode_action=immediate
5982: fi
5983: else
5984: # We cannot hardcode anything, or else we can only hardcode existing
5985: # directories.
5986: hardcode_action=unsupported
5987: fi
5988: echo "$as_me:$LINENO: result: $hardcode_action" >&5
5989: echo "${ECHO_T}$hardcode_action" >&6
5990:
5991: striplib=
5992: old_striplib=
5993: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5994: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5995: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5996: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5997: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5998: echo "$as_me:$LINENO: result: yes" >&5
5999: echo "${ECHO_T}yes" >&6
6000: else
6001: echo "$as_me:$LINENO: result: no" >&5
6002: echo "${ECHO_T}no" >&6
6003: fi
6004:
6005: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6006: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6007:
6008: # PORTME Fill in your ld.so characteristics
6009: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6010: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6011: library_names_spec=
6012: libname_spec='lib$name'
6013: soname_spec=
6014: postinstall_cmds=
6015: postuninstall_cmds=
6016: finish_cmds=
6017: finish_eval=
6018: shlibpath_var=
6019: shlibpath_overrides_runpath=unknown
6020: version_type=none
6021: dynamic_linker="$host_os ld.so"
6022: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6023: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6024:
6025: case $host_os in
6026: aix3*)
6027: version_type=linux
6028: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6029: shlibpath_var=LIBPATH
6030:
6031: # AIX has no versioning support, so we append a major version to the name.
6032: soname_spec='${libname}${release}.so$major'
6033: ;;
6034:
6035: aix4* | aix5*)
6036: version_type=linux
6037: need_lib_prefix=no
6038: need_version=no
6039: hardcode_into_libs=yes
6040: if test "$host_cpu" = ia64; then
6041: # AIX 5 supports IA64
6042: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6043: shlibpath_var=LD_LIBRARY_PATH
6044: else
6045: # With GCC up to 2.95.x, collect2 would create an import file
6046: # for dependence libraries. The import file would start with
6047: # the line `#! .'. This would cause the generated library to
6048: # depend on `.', always an invalid library. This was fixed in
6049: # development snapshots of GCC prior to 3.0.
6050: case $host_os in
6051: aix4 | aix4.[01] | aix4.[01].*)
6052: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6053: echo ' yes '
6054: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6055: :
6056: else
6057: can_build_shared=no
6058: fi
6059: ;;
6060: esac
6061: # AIX (on Power*) has no versioning support, so currently we can
6062: # not hardcode correct soname into executable. Probably we can
6063: # add versioning support to collect2, so additional links can
6064: # be useful in future.
6065: if test "$aix_use_runtimelinking" = yes; then
6066: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6067: # instead of lib<name>.a to let people know that these are not
6068: # typical AIX shared libraries.
6069: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6070: else
6071: # We preserve .a as extension for shared libraries through AIX4.2
6072: # and later when we are not doing run time linking.
6073: library_names_spec='${libname}${release}.a $libname.a'
6074: soname_spec='${libname}${release}.so$major'
6075: fi
6076: shlibpath_var=LIBPATH
6077: fi
6078: hardcode_into_libs=yes
6079: ;;
6080:
6081: amigaos*)
6082: library_names_spec='$libname.ixlibrary $libname.a'
6083: # Create ${libname}_ixlibrary.a entries in /sys/libs.
6084: 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'
6085: ;;
6086:
6087: beos*)
6088: library_names_spec='${libname}.so'
6089: dynamic_linker="$host_os ld.so"
6090: shlibpath_var=LIBRARY_PATH
6091: ;;
6092:
6093: bsdi4*)
6094: version_type=linux
6095: need_version=no
6096: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6097: soname_spec='${libname}${release}.so$major'
6098: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6099: shlibpath_var=LD_LIBRARY_PATH
6100: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6101: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6102: export_dynamic_flag_spec=-rdynamic
6103: # the default ld.so.conf also contains /usr/contrib/lib and
6104: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6105: # libtool to hard-code these into programs
6106: ;;
6107:
6108: cygwin* | mingw* | pw32*)
6109: version_type=windows
6110: need_version=no
6111: need_lib_prefix=no
6112: case $GCC,$host_os in
6113: yes,cygwin*)
6114: library_names_spec='$libname.dll.a'
6115: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6116: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6117: dldir=$destdir/`dirname \$dlpath`~
6118: test -d \$dldir || mkdir -p \$dldir~
6119: $install_prog .libs/$dlname \$dldir/$dlname'
6120: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6121: dlpath=$dir/\$dldll~
6122: $rm \$dlpath'
6123: ;;
6124: yes,mingw*)
6125: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6126: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6127: ;;
6128: yes,pw32*)
6129: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6130: ;;
6131: *)
6132: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6133: ;;
6134: esac
6135: dynamic_linker='Win32 ld.exe'
6136: # FIXME: first we should search . and the directory the executable is in
6137: shlibpath_var=PATH
6138: ;;
6139:
6140: darwin* | rhapsody*)
6141: dynamic_linker="$host_os dyld"
6142: version_type=darwin
6143: need_lib_prefix=no
6144: need_version=no
6145: # FIXME: Relying on posixy $() will cause problems for
6146: # cross-compilation, but unfortunately the echo tests do not
6147: # yet detect zsh echo's removal of \ escapes.
6148: library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6149: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6150: shlibpath_overrides_runpath=yes
6151: shlibpath_var=DYLD_LIBRARY_PATH
6152: ;;
6153:
6154: freebsd1*)
6155: dynamic_linker=no
6156: ;;
6157:
6158: freebsd*)
6159: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6160: version_type=freebsd-$objformat
6161: case $version_type in
6162: freebsd-elf*)
6163: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6164: need_version=no
6165: need_lib_prefix=no
6166: ;;
6167: freebsd-*)
6168: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6169: need_version=yes
6170: ;;
6171: esac
6172: shlibpath_var=LD_LIBRARY_PATH
6173: case $host_os in
6174: freebsd2*)
6175: shlibpath_overrides_runpath=yes
6176: ;;
6177: *)
6178: shlibpath_overrides_runpath=no
6179: hardcode_into_libs=yes
6180: ;;
6181: esac
6182: ;;
6183:
6184: gnu*)
6185: version_type=linux
6186: need_lib_prefix=no
6187: need_version=no
6188: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6189: soname_spec='${libname}${release}.so$major'
6190: shlibpath_var=LD_LIBRARY_PATH
6191: hardcode_into_libs=yes
6192: ;;
6193:
6194: hpux9* | hpux10* | hpux11*)
6195: # Give a soname corresponding to the major version so that dld.sl refuses to
6196: # link against other versions.
6197: dynamic_linker="$host_os dld.sl"
6198: version_type=sunos
6199: need_lib_prefix=no
6200: need_version=no
6201: shlibpath_var=SHLIB_PATH
6202: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6203: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6204: soname_spec='${libname}${release}.sl$major'
6205: # HP-UX runs *really* slowly unless shared libraries are mode 555.
6206: postinstall_cmds='chmod 555 $lib'
6207: ;;
6208:
6209: irix5* | irix6* | nonstopux*)
6210: case $host_os in
6211: nonstopux*) version_type=nonstopux ;;
6212: *) version_type=irix ;;
6213: esac
6214: need_lib_prefix=no
6215: need_version=no
6216: soname_spec='${libname}${release}.so$major'
6217: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6218: case $host_os in
6219: irix5* | nonstopux*)
6220: libsuff= shlibsuff=
6221: ;;
6222: *)
6223: case $LD in # libtool.m4 will add one of these switches to LD
6224: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6225: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6226: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6227: *) libsuff= shlibsuff= libmagic=never-match;;
6228: esac
6229: ;;
6230: esac
6231: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6232: shlibpath_overrides_runpath=no
6233: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6234: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6235: ;;
6236:
6237: # No shared lib support for Linux oldld, aout, or coff.
6238: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6239: dynamic_linker=no
6240: ;;
6241:
6242: # This must be Linux ELF.
6243: linux-gnu*)
6244: version_type=linux
6245: need_lib_prefix=no
6246: need_version=no
6247: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6248: soname_spec='${libname}${release}.so$major'
6249: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6250: shlibpath_var=LD_LIBRARY_PATH
6251: shlibpath_overrides_runpath=no
6252: # This implies no fast_install, which is unacceptable.
6253: # Some rework will be needed to allow for fast_install
6254: # before this can be enabled.
6255: hardcode_into_libs=yes
6256:
6257: # We used to test for /lib/ld.so.1 and disable shared libraries on
6258: # powerpc, because MkLinux only supported shared libraries with the
6259: # GNU dynamic linker. Since this was broken with cross compilers,
6260: # most powerpc-linux boxes support dynamic linking these days and
6261: # people can always --disable-shared, the test was removed, and we
6262: # assume the GNU/Linux dynamic linker is in use.
6263: dynamic_linker='GNU/Linux ld.so'
6264:
6265: # Find out which ABI we are using (multilib Linux x86_64 hack).
6266: libsuff=
6267: case "$host_cpu" in
6268: x86_64*|s390x*)
6269: echo '#line 6269 "configure"' > conftest.$ac_ext
6270: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271: (eval $ac_compile) 2>&5
6272: ac_status=$?
6273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274: (exit $ac_status); }; then
6275: case `/usr/bin/file conftest.$ac_objext` in
6276: *64-bit*)
6277: libsuff=64
6278: ;;
6279: esac
6280: fi
6281: rm -rf conftest*
6282: ;;
6283: *)
6284: ;;
6285: esac
6286: sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6287: sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6288: ;;
6289:
6290: netbsd*)
6291: version_type=sunos
6292: need_lib_prefix=no
6293: need_version=no
6294: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6295: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6296: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6297: dynamic_linker='NetBSD (a.out) ld.so'
6298: else
6299: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6300: soname_spec='${libname}${release}.so$major'
6301: dynamic_linker='NetBSD ld.elf_so'
6302: fi
6303: shlibpath_var=LD_LIBRARY_PATH
6304: shlibpath_overrides_runpath=yes
6305: hardcode_into_libs=yes
6306: ;;
6307:
6308: newsos6)
6309: version_type=linux
6310: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6311: shlibpath_var=LD_LIBRARY_PATH
6312: shlibpath_overrides_runpath=yes
6313: ;;
6314:
6315: openbsd*)
6316: version_type=sunos
6317: need_lib_prefix=no
6318: need_version=no
6319: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6320: case "$host_os" in
6321: openbsd2.[89] | openbsd2.[89].*)
6322: shlibpath_overrides_runpath=no
6323: ;;
6324: *)
6325: shlibpath_overrides_runpath=yes
6326: ;;
6327: esac
6328: else
6329: shlibpath_overrides_runpath=yes
6330: fi
6331: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6332: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6333: shlibpath_var=LD_LIBRARY_PATH
6334: ;;
6335:
6336: os2*)
6337: libname_spec='$name'
6338: need_lib_prefix=no
6339: library_names_spec='$libname.dll $libname.a'
6340: dynamic_linker='OS/2 ld.exe'
6341: shlibpath_var=LIBPATH
6342: ;;
6343:
6344: osf3* | osf4* | osf5*)
6345: version_type=osf
6346: need_version=no
6347: soname_spec='${libname}${release}.so$major'
6348: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6349: shlibpath_var=LD_LIBRARY_PATH
6350: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6351: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6352: hardcode_into_libs=yes
6353: ;;
6354:
6355: sco3.2v5*)
6356: version_type=osf
6357: soname_spec='${libname}${release}.so$major'
6358: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6359: shlibpath_var=LD_LIBRARY_PATH
6360: ;;
6361:
6362: solaris*)
6363: version_type=linux
6364: need_lib_prefix=no
6365: need_version=no
6366: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6367: soname_spec='${libname}${release}.so$major'
6368: shlibpath_var=LD_LIBRARY_PATH
6369: shlibpath_overrides_runpath=yes
6370: hardcode_into_libs=yes
6371: # ldd complains unless libraries are executable
6372: postinstall_cmds='chmod +x $lib'
6373: ;;
6374:
6375: sunos4*)
6376: version_type=sunos
6377: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6378: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6379: shlibpath_var=LD_LIBRARY_PATH
6380: shlibpath_overrides_runpath=yes
6381: if test "$with_gnu_ld" = yes; then
6382: need_lib_prefix=no
6383: fi
6384: need_version=yes
6385: ;;
6386:
6387: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6388: version_type=linux
6389: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6390: soname_spec='${libname}${release}.so$major'
6391: shlibpath_var=LD_LIBRARY_PATH
6392: case $host_vendor in
6393: sni)
6394: shlibpath_overrides_runpath=no
6395: need_lib_prefix=no
6396: export_dynamic_flag_spec='${wl}-Blargedynsym'
6397: runpath_var=LD_RUN_PATH
6398: ;;
6399: siemens)
6400: need_lib_prefix=no
6401: ;;
6402: motorola)
6403: need_lib_prefix=no
6404: need_version=no
6405: shlibpath_overrides_runpath=no
6406: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6407: ;;
6408: esac
6409: ;;
6410:
6411: uts4*)
6412: version_type=linux
6413: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6414: soname_spec='${libname}${release}.so$major'
6415: shlibpath_var=LD_LIBRARY_PATH
6416: ;;
6417:
6418: dgux*)
6419: version_type=linux
6420: need_lib_prefix=no
6421: need_version=no
6422: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6423: soname_spec='${libname}${release}.so$major'
6424: shlibpath_var=LD_LIBRARY_PATH
6425: ;;
6426:
6427: sysv4*MP*)
6428: if test -d /usr/nec ;then
6429: version_type=linux
6430: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6431: soname_spec='$libname.so.$major'
6432: shlibpath_var=LD_LIBRARY_PATH
6433: fi
6434: ;;
6435:
6436: *)
6437: dynamic_linker=no
6438: ;;
6439: esac
6440: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6441: echo "${ECHO_T}$dynamic_linker" >&6
6442: test "$dynamic_linker" = no && can_build_shared=no
6443:
6444: # Report the final consequences.
6445: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6446: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6447: echo "$as_me:$LINENO: result: $can_build_shared" >&5
6448: echo "${ECHO_T}$can_build_shared" >&6
6449:
6450: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6451: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6452: test "$can_build_shared" = "no" && enable_shared=no
6453:
6454: # On AIX, shared libraries and static libraries use the same namespace, and
6455: # are all built from PIC.
6456: case "$host_os" in
6457: aix3*)
6458: test "$enable_shared" = yes && enable_static=no
6459: if test -n "$RANLIB"; then
6460: archive_cmds="$archive_cmds~\$RANLIB \$lib"
6461: postinstall_cmds='$RANLIB $lib'
6462: fi
6463: ;;
6464:
6465: aix4*)
6466: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6467: test "$enable_shared" = yes && enable_static=no
6468: fi
6469: ;;
6470: esac
6471: echo "$as_me:$LINENO: result: $enable_shared" >&5
6472: echo "${ECHO_T}$enable_shared" >&6
6473:
6474: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6475: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6476: # Make sure either enable_shared or enable_static is yes.
6477: test "$enable_shared" = yes || enable_static=yes
6478: echo "$as_me:$LINENO: result: $enable_static" >&5
6479: echo "${ECHO_T}$enable_static" >&6
6480:
6481: if test "$hardcode_action" = relink; then
6482: # Fast installation is not supported
6483: enable_fast_install=no
6484: elif test "$shlibpath_overrides_runpath" = yes ||
6485: test "$enable_shared" = no; then
6486: # Fast installation is not necessary
6487: enable_fast_install=needless
6488: fi
6489:
6490: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6491: if test "$GCC" = yes; then
6492: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6493: fi
6494:
6495: if test "x$enable_dlopen" != xyes; then
6496: enable_dlopen=unknown
6497: enable_dlopen_self=unknown
6498: enable_dlopen_self_static=unknown
6499: else
6500: lt_cv_dlopen=no
6501: lt_cv_dlopen_libs=
6502:
6503: case $host_os in
6504: beos*)
6505: lt_cv_dlopen="load_add_on"
6506: lt_cv_dlopen_libs=
6507: lt_cv_dlopen_self=yes
6508: ;;
6509:
6510: cygwin* | mingw* | pw32*)
6511: lt_cv_dlopen="LoadLibrary"
6512: lt_cv_dlopen_libs=
6513: ;;
6514:
6515: *)
6516: echo "$as_me:$LINENO: checking for shl_load" >&5
6517: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6518: if test "${ac_cv_func_shl_load+set}" = set; then
6519: echo $ECHO_N "(cached) $ECHO_C" >&6
6520: else
6521: cat >conftest.$ac_ext <<_ACEOF
6522: #line $LINENO "configure"
6523: /* confdefs.h. */
6524: _ACEOF
6525: cat confdefs.h >>conftest.$ac_ext
6526: cat >>conftest.$ac_ext <<_ACEOF
6527: /* end confdefs.h. */
6528: /* System header to define __stub macros and hopefully few prototypes,
6529: which can conflict with char shl_load (); below.
6530: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6531: <limits.h> exists even on freestanding compilers. */
6532: #ifdef __STDC__
6533: # include <limits.h>
6534: #else
6535: # include <assert.h>
6536: #endif
6537: /* Override any gcc2 internal prototype to avoid an error. */
6538: #ifdef __cplusplus
6539: extern "C"
6540: {
6541: #endif
6542: /* We use char because int might match the return type of a gcc2
6543: builtin and then its argument prototype would still apply. */
6544: char shl_load ();
6545: /* The GNU C library defines this for functions which it implements
6546: to always fail with ENOSYS. Some functions are actually named
6547: something starting with __ and the normal name is an alias. */
6548: #if defined (__stub_shl_load) || defined (__stub___shl_load)
6549: choke me
6550: #else
6551: char (*f) () = shl_load;
6552: #endif
6553: #ifdef __cplusplus
6554: }
6555: #endif
6556:
6557: int
6558: main ()
6559: {
6560: return f != shl_load;
6561: ;
6562: return 0;
6563: }
6564: _ACEOF
6565: rm -f conftest.$ac_objext conftest$ac_exeext
6566: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567: (eval $ac_link) 2>&5
6568: ac_status=$?
6569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570: (exit $ac_status); } &&
6571: { ac_try='test -s conftest$ac_exeext'
6572: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573: (eval $ac_try) 2>&5
6574: ac_status=$?
6575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576: (exit $ac_status); }; }; then
6577: ac_cv_func_shl_load=yes
6578: else
6579: echo "$as_me: failed program was:" >&5
6580: sed 's/^/| /' conftest.$ac_ext >&5
6581:
6582: ac_cv_func_shl_load=no
6583: fi
6584: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6585: fi
6586: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6587: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6588: if test $ac_cv_func_shl_load = yes; then
6589: lt_cv_dlopen="shl_load"
6590: else
6591: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6592: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6593: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6594: echo $ECHO_N "(cached) $ECHO_C" >&6
6595: else
6596: ac_check_lib_save_LIBS=$LIBS
6597: LIBS="-ldld $LIBS"
6598: cat >conftest.$ac_ext <<_ACEOF
6599: #line $LINENO "configure"
6600: /* confdefs.h. */
6601: _ACEOF
6602: cat confdefs.h >>conftest.$ac_ext
6603: cat >>conftest.$ac_ext <<_ACEOF
6604: /* end confdefs.h. */
6605:
6606: /* Override any gcc2 internal prototype to avoid an error. */
6607: #ifdef __cplusplus
6608: extern "C"
6609: #endif
6610: /* We use char because int might match the return type of a gcc2
6611: builtin and then its argument prototype would still apply. */
6612: char shl_load ();
6613: int
6614: main ()
6615: {
6616: shl_load ();
6617: ;
6618: return 0;
6619: }
6620: _ACEOF
6621: rm -f conftest.$ac_objext conftest$ac_exeext
6622: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623: (eval $ac_link) 2>&5
6624: ac_status=$?
6625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626: (exit $ac_status); } &&
6627: { ac_try='test -s conftest$ac_exeext'
6628: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629: (eval $ac_try) 2>&5
6630: ac_status=$?
6631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632: (exit $ac_status); }; }; then
6633: ac_cv_lib_dld_shl_load=yes
6634: else
6635: echo "$as_me: failed program was:" >&5
6636: sed 's/^/| /' conftest.$ac_ext >&5
6637:
6638: ac_cv_lib_dld_shl_load=no
6639: fi
6640: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6641: LIBS=$ac_check_lib_save_LIBS
6642: fi
6643: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6644: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6645: if test $ac_cv_lib_dld_shl_load = yes; then
6646: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6647: else
6648: echo "$as_me:$LINENO: checking for dlopen" >&5
6649: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6650: if test "${ac_cv_func_dlopen+set}" = set; then
6651: echo $ECHO_N "(cached) $ECHO_C" >&6
6652: else
6653: cat >conftest.$ac_ext <<_ACEOF
6654: #line $LINENO "configure"
6655: /* confdefs.h. */
6656: _ACEOF
6657: cat confdefs.h >>conftest.$ac_ext
6658: cat >>conftest.$ac_ext <<_ACEOF
6659: /* end confdefs.h. */
6660: /* System header to define __stub macros and hopefully few prototypes,
6661: which can conflict with char dlopen (); below.
6662: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6663: <limits.h> exists even on freestanding compilers. */
6664: #ifdef __STDC__
6665: # include <limits.h>
6666: #else
6667: # include <assert.h>
6668: #endif
6669: /* Override any gcc2 internal prototype to avoid an error. */
6670: #ifdef __cplusplus
6671: extern "C"
6672: {
6673: #endif
6674: /* We use char because int might match the return type of a gcc2
6675: builtin and then its argument prototype would still apply. */
6676: char dlopen ();
6677: /* The GNU C library defines this for functions which it implements
6678: to always fail with ENOSYS. Some functions are actually named
6679: something starting with __ and the normal name is an alias. */
6680: #if defined (__stub_dlopen) || defined (__stub___dlopen)
6681: choke me
6682: #else
6683: char (*f) () = dlopen;
6684: #endif
6685: #ifdef __cplusplus
6686: }
6687: #endif
6688:
6689: int
6690: main ()
6691: {
6692: return f != dlopen;
6693: ;
6694: return 0;
6695: }
6696: _ACEOF
6697: rm -f conftest.$ac_objext conftest$ac_exeext
6698: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699: (eval $ac_link) 2>&5
6700: ac_status=$?
6701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702: (exit $ac_status); } &&
6703: { ac_try='test -s conftest$ac_exeext'
6704: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705: (eval $ac_try) 2>&5
6706: ac_status=$?
6707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708: (exit $ac_status); }; }; then
6709: ac_cv_func_dlopen=yes
6710: else
6711: echo "$as_me: failed program was:" >&5
6712: sed 's/^/| /' conftest.$ac_ext >&5
6713:
6714: ac_cv_func_dlopen=no
6715: fi
6716: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6717: fi
6718: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6719: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6720: if test $ac_cv_func_dlopen = yes; then
6721: lt_cv_dlopen="dlopen"
6722: else
6723: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6724: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6725: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6726: echo $ECHO_N "(cached) $ECHO_C" >&6
6727: else
6728: ac_check_lib_save_LIBS=$LIBS
6729: LIBS="-ldl $LIBS"
6730: cat >conftest.$ac_ext <<_ACEOF
6731: #line $LINENO "configure"
6732: /* confdefs.h. */
6733: _ACEOF
6734: cat confdefs.h >>conftest.$ac_ext
6735: cat >>conftest.$ac_ext <<_ACEOF
6736: /* end confdefs.h. */
6737:
6738: /* Override any gcc2 internal prototype to avoid an error. */
6739: #ifdef __cplusplus
6740: extern "C"
6741: #endif
6742: /* We use char because int might match the return type of a gcc2
6743: builtin and then its argument prototype would still apply. */
6744: char dlopen ();
6745: int
6746: main ()
6747: {
6748: dlopen ();
6749: ;
6750: return 0;
6751: }
6752: _ACEOF
6753: rm -f conftest.$ac_objext conftest$ac_exeext
6754: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755: (eval $ac_link) 2>&5
6756: ac_status=$?
6757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758: (exit $ac_status); } &&
6759: { ac_try='test -s conftest$ac_exeext'
6760: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761: (eval $ac_try) 2>&5
6762: ac_status=$?
6763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764: (exit $ac_status); }; }; then
6765: ac_cv_lib_dl_dlopen=yes
6766: else
6767: echo "$as_me: failed program was:" >&5
6768: sed 's/^/| /' conftest.$ac_ext >&5
6769:
6770: ac_cv_lib_dl_dlopen=no
6771: fi
6772: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6773: LIBS=$ac_check_lib_save_LIBS
6774: fi
6775: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6776: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6777: if test $ac_cv_lib_dl_dlopen = yes; then
6778: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6779: else
6780: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6781: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6782: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6783: echo $ECHO_N "(cached) $ECHO_C" >&6
6784: else
6785: ac_check_lib_save_LIBS=$LIBS
6786: LIBS="-lsvld $LIBS"
6787: cat >conftest.$ac_ext <<_ACEOF
6788: #line $LINENO "configure"
6789: /* confdefs.h. */
6790: _ACEOF
6791: cat confdefs.h >>conftest.$ac_ext
6792: cat >>conftest.$ac_ext <<_ACEOF
6793: /* end confdefs.h. */
6794:
6795: /* Override any gcc2 internal prototype to avoid an error. */
6796: #ifdef __cplusplus
6797: extern "C"
6798: #endif
6799: /* We use char because int might match the return type of a gcc2
6800: builtin and then its argument prototype would still apply. */
6801: char dlopen ();
6802: int
6803: main ()
6804: {
6805: dlopen ();
6806: ;
6807: return 0;
6808: }
6809: _ACEOF
6810: rm -f conftest.$ac_objext conftest$ac_exeext
6811: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812: (eval $ac_link) 2>&5
6813: ac_status=$?
6814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815: (exit $ac_status); } &&
6816: { ac_try='test -s conftest$ac_exeext'
6817: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818: (eval $ac_try) 2>&5
6819: ac_status=$?
6820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821: (exit $ac_status); }; }; then
6822: ac_cv_lib_svld_dlopen=yes
6823: else
6824: echo "$as_me: failed program was:" >&5
6825: sed 's/^/| /' conftest.$ac_ext >&5
6826:
6827: ac_cv_lib_svld_dlopen=no
6828: fi
6829: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6830: LIBS=$ac_check_lib_save_LIBS
6831: fi
6832: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6833: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6834: if test $ac_cv_lib_svld_dlopen = yes; then
6835: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6836: else
6837: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6838: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6839: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6840: echo $ECHO_N "(cached) $ECHO_C" >&6
6841: else
6842: ac_check_lib_save_LIBS=$LIBS
6843: LIBS="-ldld $LIBS"
6844: cat >conftest.$ac_ext <<_ACEOF
6845: #line $LINENO "configure"
6846: /* confdefs.h. */
6847: _ACEOF
6848: cat confdefs.h >>conftest.$ac_ext
6849: cat >>conftest.$ac_ext <<_ACEOF
6850: /* end confdefs.h. */
6851:
6852: /* Override any gcc2 internal prototype to avoid an error. */
6853: #ifdef __cplusplus
6854: extern "C"
6855: #endif
6856: /* We use char because int might match the return type of a gcc2
6857: builtin and then its argument prototype would still apply. */
6858: char dld_link ();
6859: int
6860: main ()
6861: {
6862: dld_link ();
6863: ;
6864: return 0;
6865: }
6866: _ACEOF
6867: rm -f conftest.$ac_objext conftest$ac_exeext
6868: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869: (eval $ac_link) 2>&5
6870: ac_status=$?
6871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872: (exit $ac_status); } &&
6873: { ac_try='test -s conftest$ac_exeext'
6874: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875: (eval $ac_try) 2>&5
6876: ac_status=$?
6877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878: (exit $ac_status); }; }; then
6879: ac_cv_lib_dld_dld_link=yes
6880: else
6881: echo "$as_me: failed program was:" >&5
6882: sed 's/^/| /' conftest.$ac_ext >&5
6883:
6884: ac_cv_lib_dld_dld_link=no
6885: fi
6886: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887: LIBS=$ac_check_lib_save_LIBS
6888: fi
6889: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6890: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6891: if test $ac_cv_lib_dld_dld_link = yes; then
6892: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6893: fi
6894:
6895:
6896: fi
6897:
6898:
6899: fi
6900:
6901:
6902: fi
6903:
6904:
6905: fi
6906:
6907:
6908: fi
6909:
6910: ;;
6911: esac
6912:
6913: if test "x$lt_cv_dlopen" != xno; then
6914: enable_dlopen=yes
6915: else
6916: enable_dlopen=no
6917: fi
6918:
6919: case $lt_cv_dlopen in
6920: dlopen)
6921: save_CPPFLAGS="$CPPFLAGS"
6922: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6923:
6924: save_LDFLAGS="$LDFLAGS"
6925: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6926:
6927: save_LIBS="$LIBS"
6928: LIBS="$lt_cv_dlopen_libs $LIBS"
6929:
6930: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6931: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6932: if test "${lt_cv_dlopen_self+set}" = set; then
6933: echo $ECHO_N "(cached) $ECHO_C" >&6
6934: else
6935: if test "$cross_compiling" = yes; then :
6936: lt_cv_dlopen_self=cross
6937: else
6938: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6939: lt_status=$lt_dlunknown
6940: cat > conftest.$ac_ext <<EOF
6941: #line 6941 "configure"
6942: #include "confdefs.h"
6943:
6944: #if HAVE_DLFCN_H
6945: #include <dlfcn.h>
6946: #endif
6947:
6948: #include <stdio.h>
6949:
6950: #ifdef RTLD_GLOBAL
6951: # define LT_DLGLOBAL RTLD_GLOBAL
6952: #else
6953: # ifdef DL_GLOBAL
6954: # define LT_DLGLOBAL DL_GLOBAL
6955: # else
6956: # define LT_DLGLOBAL 0
6957: # endif
6958: #endif
6959:
6960: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6961: find out it does not work in some platform. */
6962: #ifndef LT_DLLAZY_OR_NOW
6963: # ifdef RTLD_LAZY
6964: # define LT_DLLAZY_OR_NOW RTLD_LAZY
6965: # else
6966: # ifdef DL_LAZY
6967: # define LT_DLLAZY_OR_NOW DL_LAZY
6968: # else
6969: # ifdef RTLD_NOW
6970: # define LT_DLLAZY_OR_NOW RTLD_NOW
6971: # else
6972: # ifdef DL_NOW
6973: # define LT_DLLAZY_OR_NOW DL_NOW
6974: # else
6975: # define LT_DLLAZY_OR_NOW 0
6976: # endif
6977: # endif
6978: # endif
6979: # endif
6980: #endif
6981:
6982: #ifdef __cplusplus
6983: extern "C" void exit (int);
6984: #endif
6985:
6986: void fnord() { int i=42;}
6987: int main ()
6988: {
6989: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6990: int status = $lt_dlunknown;
6991:
6992: if (self)
6993: {
6994: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6995: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6996: /* dlclose (self); */
6997: }
6998:
6999: exit (status);
7000: }
7001: EOF
7002: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003: (eval $ac_link) 2>&5
7004: ac_status=$?
7005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7007: (./conftest; exit; ) 2>/dev/null
7008: lt_status=$?
7009: case x$lt_status in
7010: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7011: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7012: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7013: esac
7014: else :
7015: # compilation failed
7016: lt_cv_dlopen_self=no
7017: fi
7018: fi
7019: rm -fr conftest*
7020:
7021:
7022: fi
7023: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7024: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7025:
7026: if test "x$lt_cv_dlopen_self" = xyes; then
7027: LDFLAGS="$LDFLAGS $link_static_flag"
7028: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7029: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7030: if test "${lt_cv_dlopen_self_static+set}" = set; then
7031: echo $ECHO_N "(cached) $ECHO_C" >&6
7032: else
7033: if test "$cross_compiling" = yes; then :
7034: lt_cv_dlopen_self_static=cross
7035: else
7036: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7037: lt_status=$lt_dlunknown
7038: cat > conftest.$ac_ext <<EOF
7039: #line 7039 "configure"
7040: #include "confdefs.h"
7041:
7042: #if HAVE_DLFCN_H
7043: #include <dlfcn.h>
7044: #endif
7045:
7046: #include <stdio.h>
7047:
7048: #ifdef RTLD_GLOBAL
7049: # define LT_DLGLOBAL RTLD_GLOBAL
7050: #else
7051: # ifdef DL_GLOBAL
7052: # define LT_DLGLOBAL DL_GLOBAL
7053: # else
7054: # define LT_DLGLOBAL 0
7055: # endif
7056: #endif
7057:
7058: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7059: find out it does not work in some platform. */
7060: #ifndef LT_DLLAZY_OR_NOW
7061: # ifdef RTLD_LAZY
7062: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7063: # else
7064: # ifdef DL_LAZY
7065: # define LT_DLLAZY_OR_NOW DL_LAZY
7066: # else
7067: # ifdef RTLD_NOW
7068: # define LT_DLLAZY_OR_NOW RTLD_NOW
7069: # else
7070: # ifdef DL_NOW
7071: # define LT_DLLAZY_OR_NOW DL_NOW
7072: # else
7073: # define LT_DLLAZY_OR_NOW 0
7074: # endif
7075: # endif
7076: # endif
7077: # endif
7078: #endif
7079:
7080: #ifdef __cplusplus
7081: extern "C" void exit (int);
7082: #endif
7083:
7084: void fnord() { int i=42;}
7085: int main ()
7086: {
7087: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7088: int status = $lt_dlunknown;
7089:
7090: if (self)
7091: {
7092: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7093: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7094: /* dlclose (self); */
7095: }
7096:
7097: exit (status);
7098: }
7099: EOF
7100: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7101: (eval $ac_link) 2>&5
7102: ac_status=$?
7103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7105: (./conftest; exit; ) 2>/dev/null
7106: lt_status=$?
7107: case x$lt_status in
7108: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7109: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7110: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7111: esac
7112: else :
7113: # compilation failed
7114: lt_cv_dlopen_self_static=no
7115: fi
7116: fi
7117: rm -fr conftest*
7118:
7119:
7120: fi
7121: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7122: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7123: fi
7124:
7125: CPPFLAGS="$save_CPPFLAGS"
7126: LDFLAGS="$save_LDFLAGS"
7127: LIBS="$save_LIBS"
7128: ;;
7129: esac
7130:
7131: case $lt_cv_dlopen_self in
7132: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7133: *) enable_dlopen_self=unknown ;;
7134: esac
7135:
7136: case $lt_cv_dlopen_self_static in
7137: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7138: *) enable_dlopen_self_static=unknown ;;
7139: esac
7140: fi
7141:
7142:
7143: if test "$enable_shared" = yes && test "$GCC" = yes; then
7144: case $archive_cmds in
7145: *'~'*)
7146: # FIXME: we may have to deal with multi-command sequences.
7147: ;;
7148: '$CC '*)
7149: # Test whether the compiler implicitly links with -lc since on some
7150: # systems, -lgcc has to come before -lc. If gcc already passes -lc
7151: # to ld, don't add -lc before -lgcc.
7152: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7153: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7154: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7155: echo $ECHO_N "(cached) $ECHO_C" >&6
7156: else
7157: $rm conftest*
7158: echo 'static int dummy;' > conftest.$ac_ext
7159:
7160: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7161: (eval $ac_compile) 2>&5
7162: ac_status=$?
7163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164: (exit $ac_status); }; then
7165: soname=conftest
7166: lib=conftest
7167: libobjs=conftest.$ac_objext
7168: deplibs=
7169: wl=$lt_cv_prog_cc_wl
7170: compiler_flags=-v
7171: linker_flags=-v
7172: verstring=
7173: output_objdir=.
7174: libname=conftest
7175: save_allow_undefined_flag=$allow_undefined_flag
7176: allow_undefined_flag=
7177: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7178: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7179: ac_status=$?
7180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181: (exit $ac_status); }
7182: then
7183: lt_cv_archive_cmds_need_lc=no
7184: else
7185: lt_cv_archive_cmds_need_lc=yes
7186: fi
7187: allow_undefined_flag=$save_allow_undefined_flag
7188: else
7189: cat conftest.err 1>&5
7190: fi
7191: fi
7192:
7193: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7194: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7195: ;;
7196: esac
7197: fi
7198: need_lc=${lt_cv_archive_cmds_need_lc-yes}
7199:
7200: # The second clause should only fire when bootstrapping the
7201: # libtool distribution, otherwise you forgot to ship ltmain.sh
7202: # with your package, and you will get complaints that there are
7203: # no rules to generate ltmain.sh.
7204: if test -f "$ltmain"; then
7205: :
7206: else
7207: # If there is no Makefile yet, we rely on a make rule to execute
7208: # `config.status --recheck' to rerun these tests and create the
7209: # libtool script then.
7210: test -f Makefile && make "$ltmain"
7211: fi
7212:
7213: if test -f "$ltmain"; then
7214: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7215: $rm -f "${ofile}T"
7216:
7217: echo creating $ofile
7218:
7219: # Now quote all the things that may contain metacharacters while being
7220: # careful not to overquote the AC_SUBSTed values. We take copies of the
7221: # variables and quote the copies for generation of the libtool script.
7222: for var in echo old_CC old_CFLAGS SED \
7223: AR AR_FLAGS CC LD LN_S NM SHELL \
7224: reload_flag reload_cmds wl \
7225: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7226: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7227: library_names_spec soname_spec \
7228: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7229: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7230: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7231: old_striplib striplib file_magic_cmd export_symbols_cmds \
7232: deplibs_check_method allow_undefined_flag no_undefined_flag \
7233: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7234: global_symbol_to_c_name_address \
7235: hardcode_libdir_flag_spec hardcode_libdir_separator \
7236: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7237: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7238:
7239: case $var in
7240: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7241: old_postinstall_cmds | old_postuninstall_cmds | \
7242: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7243: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7244: postinstall_cmds | postuninstall_cmds | \
7245: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7246: # Double-quote double-evaled strings.
7247: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7248: ;;
7249: *)
7250: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7251: ;;
7252: esac
7253: done
7254:
7255: cat <<__EOF__ > "${ofile}T"
7256: #! $SHELL
7257:
7258: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7259: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7260: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7261: #
7262: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7263: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7264: #
7265: # This program is free software; you can redistribute it and/or modify
7266: # it under the terms of the GNU General Public License as published by
7267: # the Free Software Foundation; either version 2 of the License, or
7268: # (at your option) any later version.
7269: #
7270: # This program is distributed in the hope that it will be useful, but
7271: # WITHOUT ANY WARRANTY; without even the implied warranty of
7272: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7273: # General Public License for more details.
7274: #
7275: # You should have received a copy of the GNU General Public License
7276: # along with this program; if not, write to the Free Software
7277: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7278: #
7279: # As a special exception to the GNU General Public License, if you
7280: # distribute this file as part of a program that contains a
7281: # configuration script generated by Autoconf, you may include it under
7282: # the same distribution terms that you use for the rest of that program.
7283:
7284: # A sed that does not truncate output.
7285: SED=$lt_SED
7286:
7287: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7288: Xsed="${SED} -e s/^X//"
7289:
7290: # The HP-UX ksh and POSIX shell print the target directory to stdout
7291: # if CDPATH is set.
7292: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7293:
7294: # ### BEGIN LIBTOOL CONFIG
7295:
7296: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7297:
7298: # Shell to use when invoking shell scripts.
7299: SHELL=$lt_SHELL
7300:
7301: # Whether or not to build shared libraries.
7302: build_libtool_libs=$enable_shared
7303:
7304: # Whether or not to build static libraries.
7305: build_old_libs=$enable_static
7306:
7307: # Whether or not to add -lc for building shared libraries.
7308: build_libtool_need_lc=$need_lc
7309:
7310: # Whether or not to optimize for fast installation.
7311: fast_install=$enable_fast_install
7312:
7313: # The host system.
7314: host_alias=$host_alias
7315: host=$host
7316:
7317: # An echo program that does not interpret backslashes.
7318: echo=$lt_echo
7319:
7320: # The archiver.
7321: AR=$lt_AR
7322: AR_FLAGS=$lt_AR_FLAGS
7323:
7324: # The default C compiler.
7325: CC=$lt_CC
7326:
7327: # Is the compiler the GNU C compiler?
7328: with_gcc=$GCC
7329:
7330: # The linker used to build libraries.
7331: LD=$lt_LD
7332:
7333: # Whether we need hard or soft links.
7334: LN_S=$lt_LN_S
7335:
7336: # A BSD-compatible nm program.
7337: NM=$lt_NM
7338:
7339: # A symbol stripping program
7340: STRIP=$STRIP
7341:
7342: # Used to examine libraries when file_magic_cmd begins "file"
7343: MAGIC_CMD=$MAGIC_CMD
7344:
7345: # Used on cygwin: DLL creation program.
7346: DLLTOOL="$DLLTOOL"
7347:
7348: # Used on cygwin: object dumper.
7349: OBJDUMP="$OBJDUMP"
7350:
7351: # Used on cygwin: assembler.
7352: AS="$AS"
7353:
7354: # The name of the directory that contains temporary libtool files.
7355: objdir=$objdir
7356:
7357: # How to create reloadable object files.
7358: reload_flag=$lt_reload_flag
7359: reload_cmds=$lt_reload_cmds
7360:
7361: # How to pass a linker flag through the compiler.
7362: wl=$lt_wl
7363:
7364: # Object file suffix (normally "o").
7365: objext="$ac_objext"
7366:
7367: # Old archive suffix (normally "a").
7368: libext="$libext"
7369:
7370: # Executable file suffix (normally "").
7371: exeext="$exeext"
7372:
7373: # Additional compiler flags for building library objects.
7374: pic_flag=$lt_pic_flag
7375: pic_mode=$pic_mode
7376:
7377: # Does compiler simultaneously support -c and -o options?
7378: compiler_c_o=$lt_compiler_c_o
7379:
7380: # Can we write directly to a .lo ?
7381: compiler_o_lo=$lt_compiler_o_lo
7382:
7383: # Must we lock files when doing compilation ?
7384: need_locks=$lt_need_locks
7385:
7386: # Do we need the lib prefix for modules?
7387: need_lib_prefix=$need_lib_prefix
7388:
7389: # Do we need a version for libraries?
7390: need_version=$need_version
7391:
7392: # Whether dlopen is supported.
7393: dlopen_support=$enable_dlopen
7394:
7395: # Whether dlopen of programs is supported.
7396: dlopen_self=$enable_dlopen_self
7397:
7398: # Whether dlopen of statically linked programs is supported.
7399: dlopen_self_static=$enable_dlopen_self_static
7400:
7401: # Compiler flag to prevent dynamic linking.
7402: link_static_flag=$lt_link_static_flag
7403:
7404: # Compiler flag to turn off builtin functions.
7405: no_builtin_flag=$lt_no_builtin_flag
7406:
7407: # Compiler flag to allow reflexive dlopens.
7408: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7409:
7410: # Compiler flag to generate shared objects directly from archives.
7411: whole_archive_flag_spec=$lt_whole_archive_flag_spec
7412:
7413: # Compiler flag to generate thread-safe objects.
7414: thread_safe_flag_spec=$lt_thread_safe_flag_spec
7415:
7416: # Library versioning type.
7417: version_type=$version_type
7418:
7419: # Format of library name prefix.
7420: libname_spec=$lt_libname_spec
7421:
7422: # List of archive names. First name is the real one, the rest are links.
7423: # The last name is the one that the linker finds with -lNAME.
7424: library_names_spec=$lt_library_names_spec
7425:
7426: # The coded name of the library, if different from the real name.
7427: soname_spec=$lt_soname_spec
7428:
7429: # Commands used to build and install an old-style archive.
7430: RANLIB=$lt_RANLIB
7431: old_archive_cmds=$lt_old_archive_cmds
7432: old_postinstall_cmds=$lt_old_postinstall_cmds
7433: old_postuninstall_cmds=$lt_old_postuninstall_cmds
7434:
7435: # Create an old-style archive from a shared archive.
7436: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7437:
7438: # Create a temporary old-style archive to link instead of a shared archive.
7439: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7440:
7441: # Commands used to build and install a shared archive.
7442: archive_cmds=$lt_archive_cmds
7443: archive_expsym_cmds=$lt_archive_expsym_cmds
7444: postinstall_cmds=$lt_postinstall_cmds
7445: postuninstall_cmds=$lt_postuninstall_cmds
7446:
7447: # Commands to strip libraries.
7448: old_striplib=$lt_old_striplib
7449: striplib=$lt_striplib
7450:
7451: # Method to check whether dependent libraries are shared objects.
7452: deplibs_check_method=$lt_deplibs_check_method
7453:
7454: # Command to use when deplibs_check_method == file_magic.
7455: file_magic_cmd=$lt_file_magic_cmd
7456:
7457: # Flag that allows shared libraries with undefined symbols to be built.
7458: allow_undefined_flag=$lt_allow_undefined_flag
7459:
7460: # Flag that forces no undefined symbols.
7461: no_undefined_flag=$lt_no_undefined_flag
7462:
7463: # Commands used to finish a libtool library installation in a directory.
7464: finish_cmds=$lt_finish_cmds
7465:
7466: # Same as above, but a single script fragment to be evaled but not shown.
7467: finish_eval=$lt_finish_eval
7468:
7469: # Take the output of nm and produce a listing of raw symbols and C names.
7470: global_symbol_pipe=$lt_global_symbol_pipe
7471:
7472: # Transform the output of nm in a proper C declaration
7473: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7474:
7475: # Transform the output of nm in a C name address pair
7476: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7477:
7478: # This is the shared library runtime path variable.
7479: runpath_var=$runpath_var
7480:
7481: # This is the shared library path variable.
7482: shlibpath_var=$shlibpath_var
7483:
7484: # Is shlibpath searched before the hard-coded library search path?
7485: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7486:
7487: # How to hardcode a shared library path into an executable.
7488: hardcode_action=$hardcode_action
7489:
7490: # Whether we should hardcode library paths into libraries.
7491: hardcode_into_libs=$hardcode_into_libs
7492:
7493: # Flag to hardcode \$libdir into a binary during linking.
7494: # This must work even if \$libdir does not exist.
7495: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7496:
7497: # Whether we need a single -rpath flag with a separated argument.
7498: hardcode_libdir_separator=$lt_hardcode_libdir_separator
7499:
7500: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7501: # resulting binary.
7502: hardcode_direct=$hardcode_direct
7503:
7504: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7505: # resulting binary.
7506: hardcode_minus_L=$hardcode_minus_L
7507:
7508: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7509: # the resulting binary.
7510: hardcode_shlibpath_var=$hardcode_shlibpath_var
7511:
7512: # Variables whose values should be saved in libtool wrapper scripts and
7513: # restored at relink time.
7514: variables_saved_for_relink="$variables_saved_for_relink"
7515:
7516: # Whether libtool must link a program against all its dependency libraries.
7517: link_all_deplibs=$link_all_deplibs
7518:
7519: # Compile-time system search path for libraries
7520: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7521:
7522: # Run-time system search path for libraries
7523: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7524:
7525: # Fix the shell variable \$srcfile for the compiler.
7526: fix_srcfile_path="$fix_srcfile_path"
7527:
7528: # Set to yes if exported symbols are required.
7529: always_export_symbols=$always_export_symbols
7530:
7531: # The commands to list exported symbols.
7532: export_symbols_cmds=$lt_export_symbols_cmds
7533:
7534: # The commands to extract the exported symbol list from a shared archive.
7535: extract_expsyms_cmds=$lt_extract_expsyms_cmds
7536:
7537: # Symbols that should not be listed in the preloaded symbols.
7538: exclude_expsyms=$lt_exclude_expsyms
7539:
7540: # Symbols that must always be exported.
7541: include_expsyms=$lt_include_expsyms
7542:
7543: # ### END LIBTOOL CONFIG
7544:
7545: __EOF__
7546:
7547: case $host_os in
7548: aix3*)
7549: cat <<\EOF >> "${ofile}T"
7550:
7551: # AIX sometimes has problems with the GCC collect2 program. For some
7552: # reason, if we set the COLLECT_NAMES environment variable, the problems
7553: # vanish in a puff of smoke.
7554: if test "X${COLLECT_NAMES+set}" != Xset; then
7555: COLLECT_NAMES=
7556: export COLLECT_NAMES
7557: fi
7558: EOF
7559: ;;
7560: esac
7561:
7562: case $host_os in
7563: cygwin* | mingw* | pw32* | os2*)
7564: cat <<'EOF' >> "${ofile}T"
7565: # This is a source program that is used to create dlls on Windows
7566: # Don't remove nor modify the starting and closing comments
7567: # /* ltdll.c starts here */
7568: # #define WIN32_LEAN_AND_MEAN
7569: # #include <windows.h>
7570: # #undef WIN32_LEAN_AND_MEAN
7571: # #include <stdio.h>
7572: #
7573: # #ifndef __CYGWIN__
7574: # # ifdef __CYGWIN32__
7575: # # define __CYGWIN__ __CYGWIN32__
7576: # # endif
7577: # #endif
7578: #
7579: # #ifdef __cplusplus
7580: # extern "C" {
7581: # #endif
7582: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7583: # #ifdef __cplusplus
7584: # }
7585: # #endif
7586: #
7587: # #ifdef __CYGWIN__
7588: # #include <cygwin/cygwin_dll.h>
7589: # DECLARE_CYGWIN_DLL( DllMain );
7590: # #endif
7591: # HINSTANCE __hDllInstance_base;
7592: #
7593: # BOOL APIENTRY
7594: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7595: # {
7596: # __hDllInstance_base = hInst;
7597: # return TRUE;
7598: # }
7599: # /* ltdll.c ends here */
7600: # This is a source program that is used to create import libraries
7601: # on Windows for dlls which lack them. Don't remove nor modify the
7602: # starting and closing comments
7603: # /* impgen.c starts here */
7604: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7605: #
7606: # This file is part of GNU libtool.
7607: #
7608: # This program is free software; you can redistribute it and/or modify
7609: # it under the terms of the GNU General Public License as published by
7610: # the Free Software Foundation; either version 2 of the License, or
7611: # (at your option) any later version.
7612: #
7613: # This program is distributed in the hope that it will be useful,
7614: # but WITHOUT ANY WARRANTY; without even the implied warranty of
7615: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7616: # GNU General Public License for more details.
7617: #
7618: # You should have received a copy of the GNU General Public License
7619: # along with this program; if not, write to the Free Software
7620: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7621: # */
7622: #
7623: # #include <stdio.h> /* for printf() */
7624: # #include <unistd.h> /* for open(), lseek(), read() */
7625: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7626: # #include <string.h> /* for strdup() */
7627: #
7628: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7629: # #ifndef O_BINARY
7630: # #define O_BINARY 0
7631: # #endif
7632: #
7633: # static unsigned int
7634: # pe_get16 (fd, offset)
7635: # int fd;
7636: # int offset;
7637: # {
7638: # unsigned char b[2];
7639: # lseek (fd, offset, SEEK_SET);
7640: # read (fd, b, 2);
7641: # return b[0] + (b[1]<<8);
7642: # }
7643: #
7644: # static unsigned int
7645: # pe_get32 (fd, offset)
7646: # int fd;
7647: # int offset;
7648: # {
7649: # unsigned char b[4];
7650: # lseek (fd, offset, SEEK_SET);
7651: # read (fd, b, 4);
7652: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7653: # }
7654: #
7655: # static unsigned int
7656: # pe_as32 (ptr)
7657: # void *ptr;
7658: # {
7659: # unsigned char *b = ptr;
7660: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7661: # }
7662: #
7663: # int
7664: # main (argc, argv)
7665: # int argc;
7666: # char *argv[];
7667: # {
7668: # int dll;
7669: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7670: # unsigned long export_rva, export_size, nsections, secptr, expptr;
7671: # unsigned long name_rvas, nexp;
7672: # unsigned char *expdata, *erva;
7673: # char *filename, *dll_name;
7674: #
7675: # filename = argv[1];
7676: #
7677: # dll = open(filename, O_RDONLY|O_BINARY);
7678: # if (dll < 1)
7679: # return 1;
7680: #
7681: # dll_name = filename;
7682: #
7683: # for (i=0; filename[i]; i++)
7684: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7685: # dll_name = filename + i +1;
7686: #
7687: # pe_header_offset = pe_get32 (dll, 0x3c);
7688: # opthdr_ofs = pe_header_offset + 4 + 20;
7689: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7690: #
7691: # if (num_entries < 1) /* no exports */
7692: # return 1;
7693: #
7694: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7695: # export_size = pe_get32 (dll, opthdr_ofs + 100);
7696: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7697: # secptr = (pe_header_offset + 4 + 20 +
7698: # pe_get16 (dll, pe_header_offset + 4 + 16));
7699: #
7700: # expptr = 0;
7701: # for (i = 0; i < nsections; i++)
7702: # {
7703: # char sname[8];
7704: # unsigned long secptr1 = secptr + 40 * i;
7705: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7706: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7707: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7708: # lseek(dll, secptr1, SEEK_SET);
7709: # read(dll, sname, 8);
7710: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7711: # {
7712: # expptr = fptr + (export_rva - vaddr);
7713: # if (export_rva + export_size > vaddr + vsize)
7714: # export_size = vsize - (export_rva - vaddr);
7715: # break;
7716: # }
7717: # }
7718: #
7719: # expdata = (unsigned char*)malloc(export_size);
7720: # lseek (dll, expptr, SEEK_SET);
7721: # read (dll, expdata, export_size);
7722: # erva = expdata - export_rva;
7723: #
7724: # nexp = pe_as32 (expdata+24);
7725: # name_rvas = pe_as32 (expdata+32);
7726: #
7727: # printf ("EXPORTS\n");
7728: # for (i = 0; i<nexp; i++)
7729: # {
7730: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7731: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7732: # }
7733: #
7734: # return 0;
7735: # }
7736: # /* impgen.c ends here */
7737:
7738: EOF
7739: ;;
7740: esac
7741:
7742: # We use sed instead of cat because bash on DJGPP gets confused if
7743: # if finds mixed CR/LF and LF-only lines. Since sed operates in
7744: # text mode, it properly converts lines to CR/LF. This bash problem
7745: # is reportedly fixed, but why not run on old versions too?
7746: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7747:
7748: mv -f "${ofile}T" "$ofile" || \
7749: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7750: chmod +x "$ofile"
7751: fi
7752:
7753:
7754:
7755:
7756:
7757: # This can be used to rebuild libtool when needed
7758: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7759:
7760: # Always use our own libtool.
7761: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7762:
7763: # Prevent multiple expansion
7764:
7765:
7766:
7767: FAMPROTOINC='-I$(top_srcdir)/include'
7768:
7769:
7770: FAM_CONF=$sysconfdir/fam.conf
7771:
7772:
7773: ac_ext=cc
7774: ac_cpp='$CXXCPP $CPPFLAGS'
7775: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7776: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7777: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7778:
7779:
7780:
7781: # Check whether --with-CFLAGS or --without-CFLAGS was given.
7782: if test "${with_CFLAGS+set}" = set; then
7783: withval="$with_CFLAGS"
7784: CFLAGS=$withval; CXXFLAGS=$withval
7785: fi;
7786:
7787: if test `uname` = 'IRIX' || test `uname` = 'IRIX64'; then
7788: # Extract the first word of "CC", so it can be a program name with args.
7789: set dummy CC; ac_word=$2
7790: echo "$as_me:$LINENO: checking for $ac_word" >&5
7791: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792: if test "${ac_cv_path_CXX+set}" = set; then
7793: echo $ECHO_N "(cached) $ECHO_C" >&6
7794: else
7795: case $CXX in
7796: [\\/]* | ?:[\\/]*)
7797: ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
7798: ;;
7799: *)
7800: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801: for as_dir in $PATH
7802: do
7803: IFS=$as_save_IFS
7804: test -z "$as_dir" && as_dir=.
7805: for ac_exec_ext in '' $ac_executable_extensions; do
7806: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807: ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
7808: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809: break 2
7810: fi
7811: done
7812: done
7813:
7814: ;;
7815: esac
7816: fi
7817: CXX=$ac_cv_path_CXX
7818:
7819: if test -n "$CXX"; then
7820: echo "$as_me:$LINENO: result: $CXX" >&5
7821: echo "${ECHO_T}$CXX" >&6
7822: else
7823: echo "$as_me:$LINENO: result: no" >&5
7824: echo "${ECHO_T}no" >&6
7825: fi
7826:
7827: fi
7828: ac_ext=cc
7829: ac_cpp='$CXXCPP $CPPFLAGS'
7830: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7833: if test -n "$ac_tool_prefix"; then
7834: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7835: do
7836: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7837: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7838: echo "$as_me:$LINENO: checking for $ac_word" >&5
7839: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7840: if test "${ac_cv_prog_CXX+set}" = set; then
7841: echo $ECHO_N "(cached) $ECHO_C" >&6
7842: else
7843: if test -n "$CXX"; then
7844: ac_cv_prog_CXX="$CXX" # Let the user override the test.
7845: else
7846: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847: for as_dir in $PATH
7848: do
7849: IFS=$as_save_IFS
7850: test -z "$as_dir" && as_dir=.
7851: for ac_exec_ext in '' $ac_executable_extensions; do
7852: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7854: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855: break 2
7856: fi
7857: done
7858: done
7859:
7860: fi
7861: fi
7862: CXX=$ac_cv_prog_CXX
7863: if test -n "$CXX"; then
7864: echo "$as_me:$LINENO: result: $CXX" >&5
7865: echo "${ECHO_T}$CXX" >&6
7866: else
7867: echo "$as_me:$LINENO: result: no" >&5
7868: echo "${ECHO_T}no" >&6
7869: fi
7870:
7871: test -n "$CXX" && break
7872: done
7873: fi
7874: if test -z "$CXX"; then
7875: ac_ct_CXX=$CXX
7876: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7877: do
7878: # Extract the first word of "$ac_prog", so it can be a program name with args.
7879: set dummy $ac_prog; ac_word=$2
7880: echo "$as_me:$LINENO: checking for $ac_word" >&5
7881: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7882: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7883: echo $ECHO_N "(cached) $ECHO_C" >&6
7884: else
7885: if test -n "$ac_ct_CXX"; then
7886: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7887: else
7888: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889: for as_dir in $PATH
7890: do
7891: IFS=$as_save_IFS
7892: test -z "$as_dir" && as_dir=.
7893: for ac_exec_ext in '' $ac_executable_extensions; do
7894: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895: ac_cv_prog_ac_ct_CXX="$ac_prog"
7896: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897: break 2
7898: fi
7899: done
7900: done
7901:
7902: fi
7903: fi
7904: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7905: if test -n "$ac_ct_CXX"; then
7906: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7907: echo "${ECHO_T}$ac_ct_CXX" >&6
7908: else
7909: echo "$as_me:$LINENO: result: no" >&5
7910: echo "${ECHO_T}no" >&6
7911: fi
7912:
7913: test -n "$ac_ct_CXX" && break
7914: done
7915: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7916:
7917: CXX=$ac_ct_CXX
7918: fi
7919:
7920:
7921: # Provide some information about the compiler.
7922: echo "$as_me:$LINENO:" \
7923: "checking for C++ compiler version" >&5
7924: ac_compiler=`set X $ac_compile; echo $2`
7925: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7926: (eval $ac_compiler --version </dev/null >&5) 2>&5
7927: ac_status=$?
7928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929: (exit $ac_status); }
7930: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7931: (eval $ac_compiler -v </dev/null >&5) 2>&5
7932: ac_status=$?
7933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934: (exit $ac_status); }
7935: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7936: (eval $ac_compiler -V </dev/null >&5) 2>&5
7937: ac_status=$?
7938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939: (exit $ac_status); }
7940:
7941: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7942: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7943: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7944: echo $ECHO_N "(cached) $ECHO_C" >&6
7945: else
7946: cat >conftest.$ac_ext <<_ACEOF
7947: #line $LINENO "configure"
7948: /* confdefs.h. */
7949: _ACEOF
7950: cat confdefs.h >>conftest.$ac_ext
7951: cat >>conftest.$ac_ext <<_ACEOF
7952: /* end confdefs.h. */
7953:
7954: int
7955: main ()
7956: {
7957: #ifndef __GNUC__
7958: choke me
7959: #endif
7960:
7961: ;
7962: return 0;
7963: }
7964: _ACEOF
7965: rm -f conftest.$ac_objext
7966: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7967: (eval $ac_compile) 2>&5
7968: ac_status=$?
7969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970: (exit $ac_status); } &&
7971: { ac_try='test -s conftest.$ac_objext'
7972: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973: (eval $ac_try) 2>&5
7974: ac_status=$?
7975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976: (exit $ac_status); }; }; then
7977: ac_compiler_gnu=yes
7978: else
7979: echo "$as_me: failed program was:" >&5
7980: sed 's/^/| /' conftest.$ac_ext >&5
7981:
7982: ac_compiler_gnu=no
7983: fi
7984: rm -f conftest.$ac_objext conftest.$ac_ext
7985: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7986:
7987: fi
7988: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7989: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7990: GXX=`test $ac_compiler_gnu = yes && echo yes`
7991: ac_test_CXXFLAGS=${CXXFLAGS+set}
7992: ac_save_CXXFLAGS=$CXXFLAGS
7993: CXXFLAGS="-g"
7994: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7995: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7996: if test "${ac_cv_prog_cxx_g+set}" = set; then
7997: echo $ECHO_N "(cached) $ECHO_C" >&6
7998: else
7999: cat >conftest.$ac_ext <<_ACEOF
8000: #line $LINENO "configure"
8001: /* confdefs.h. */
8002: _ACEOF
8003: cat confdefs.h >>conftest.$ac_ext
8004: cat >>conftest.$ac_ext <<_ACEOF
8005: /* end confdefs.h. */
8006:
8007: int
8008: main ()
8009: {
8010:
8011: ;
8012: return 0;
8013: }
8014: _ACEOF
8015: rm -f conftest.$ac_objext
8016: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017: (eval $ac_compile) 2>&5
8018: ac_status=$?
8019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020: (exit $ac_status); } &&
8021: { ac_try='test -s conftest.$ac_objext'
8022: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023: (eval $ac_try) 2>&5
8024: ac_status=$?
8025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026: (exit $ac_status); }; }; then
8027: ac_cv_prog_cxx_g=yes
8028: else
8029: echo "$as_me: failed program was:" >&5
8030: sed 's/^/| /' conftest.$ac_ext >&5
8031:
8032: ac_cv_prog_cxx_g=no
8033: fi
8034: rm -f conftest.$ac_objext conftest.$ac_ext
8035: fi
8036: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8037: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8038: if test "$ac_test_CXXFLAGS" = set; then
8039: CXXFLAGS=$ac_save_CXXFLAGS
8040: elif test $ac_cv_prog_cxx_g = yes; then
8041: if test "$GXX" = yes; then
8042: CXXFLAGS="-g -O2"
8043: else
8044: CXXFLAGS="-g"
8045: fi
8046: else
8047: if test "$GXX" = yes; then
8048: CXXFLAGS="-O2"
8049: else
8050: CXXFLAGS=
8051: fi
8052: fi
8053: for ac_declaration in \
8054: ''\
8055: '#include <stdlib.h>' \
8056: 'extern "C" void std::exit (int) throw (); using std::exit;' \
8057: 'extern "C" void std::exit (int); using std::exit;' \
8058: 'extern "C" void exit (int) throw ();' \
8059: 'extern "C" void exit (int);' \
8060: 'void exit (int);'
8061: do
8062: cat >conftest.$ac_ext <<_ACEOF
8063: #line $LINENO "configure"
8064: /* confdefs.h. */
8065: _ACEOF
8066: cat confdefs.h >>conftest.$ac_ext
8067: cat >>conftest.$ac_ext <<_ACEOF
8068: /* end confdefs.h. */
8069: #include <stdlib.h>
8070: $ac_declaration
8071: int
8072: main ()
8073: {
8074: exit (42);
8075: ;
8076: return 0;
8077: }
8078: _ACEOF
8079: rm -f conftest.$ac_objext
8080: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8081: (eval $ac_compile) 2>&5
8082: ac_status=$?
8083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084: (exit $ac_status); } &&
8085: { ac_try='test -s conftest.$ac_objext'
8086: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087: (eval $ac_try) 2>&5
8088: ac_status=$?
8089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090: (exit $ac_status); }; }; then
8091: :
8092: else
8093: echo "$as_me: failed program was:" >&5
8094: sed 's/^/| /' conftest.$ac_ext >&5
8095:
8096: continue
8097: fi
8098: rm -f conftest.$ac_objext conftest.$ac_ext
8099: cat >conftest.$ac_ext <<_ACEOF
8100: #line $LINENO "configure"
8101: /* confdefs.h. */
8102: _ACEOF
8103: cat confdefs.h >>conftest.$ac_ext
8104: cat >>conftest.$ac_ext <<_ACEOF
8105: /* end confdefs.h. */
8106: $ac_declaration
8107: int
8108: main ()
8109: {
8110: exit (42);
8111: ;
8112: return 0;
8113: }
8114: _ACEOF
8115: rm -f conftest.$ac_objext
8116: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117: (eval $ac_compile) 2>&5
8118: ac_status=$?
8119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120: (exit $ac_status); } &&
8121: { ac_try='test -s conftest.$ac_objext'
8122: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123: (eval $ac_try) 2>&5
8124: ac_status=$?
8125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126: (exit $ac_status); }; }; then
8127: break
8128: else
8129: echo "$as_me: failed program was:" >&5
8130: sed 's/^/| /' conftest.$ac_ext >&5
8131:
8132: fi
8133: rm -f conftest.$ac_objext conftest.$ac_ext
8134: done
8135: rm -f conftest*
8136: if test -n "$ac_declaration"; then
8137: echo '#ifdef __cplusplus' >>confdefs.h
8138: echo $ac_declaration >>confdefs.h
8139: echo '#endif' >>confdefs.h
8140: fi
8141:
8142: ac_ext=cc
8143: ac_cpp='$CXXCPP $CPPFLAGS'
8144: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8145: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8146: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8147:
8148: depcc="$CXX" am_compiler_list=
8149:
8150: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8151: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8152: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8153: echo $ECHO_N "(cached) $ECHO_C" >&6
8154: else
8155: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8156: # We make a subdir and do the tests there. Otherwise we can end up
8157: # making bogus files that we don't know about and never remove. For
8158: # instance it was reported that on HP-UX the gcc test will end up
8159: # making a dummy file named `D' -- because `-MD' means `put the output
8160: # in D'.
8161: mkdir conftest.dir
8162: # Copy depcomp to subdir because otherwise we won't find it if we're
8163: # using a relative directory.
8164: cp "$am_depcomp" conftest.dir
8165: cd conftest.dir
8166:
8167: am_cv_CXX_dependencies_compiler_type=none
8168: if test "$am_compiler_list" = ""; then
8169: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8170: fi
8171: for depmode in $am_compiler_list; do
8172: # We need to recreate these files for each test, as the compiler may
8173: # overwrite some of them when testing with obscure command lines.
8174: # This happens at least with the AIX C compiler.
8175: echo '#include "conftest.h"' > conftest.c
8176: echo 'int i;' > conftest.h
8177: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8178:
8179: case $depmode in
8180: nosideeffect)
8181: # after this tag, mechanisms are not by side-effect, so they'll
8182: # only be used when explicitly requested
8183: if test "x$enable_dependency_tracking" = xyes; then
8184: continue
8185: else
8186: break
8187: fi
8188: ;;
8189: none) break ;;
8190: esac
8191: # We check with `-c' and `-o' for the sake of the "dashmstdout"
8192: # mode. It turns out that the SunPro C++ compiler does not properly
8193: # handle `-M -o', and we need to detect this.
8194: if depmode=$depmode \
8195: source=conftest.c object=conftest.o \
8196: depfile=conftest.Po tmpdepfile=conftest.TPo \
8197: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
8198: grep conftest.h conftest.Po > /dev/null 2>&1 &&
8199: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8200: am_cv_CXX_dependencies_compiler_type=$depmode
8201: break
8202: fi
8203: done
8204:
8205: cd ..
8206: rm -rf conftest.dir
8207: else
8208: am_cv_CXX_dependencies_compiler_type=none
8209: fi
8210:
8211: fi
8212: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8213: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8214: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8215:
8216:
8217: ac_ext=cc
8218: ac_cpp='$CXXCPP $CPPFLAGS'
8219: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8220: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8221: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8222: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8223: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8224: if test -z "$CXXCPP"; then
8225: if test "${ac_cv_prog_CXXCPP+set}" = set; then
8226: echo $ECHO_N "(cached) $ECHO_C" >&6
8227: else
8228: # Double quotes because CXXCPP needs to be expanded
8229: for CXXCPP in "$CXX -E" "/lib/cpp"
8230: do
8231: ac_preproc_ok=false
8232: for ac_cxx_preproc_warn_flag in '' yes
8233: do
8234: # Use a header file that comes with gcc, so configuring glibc
8235: # with a fresh cross-compiler works.
8236: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8237: # <limits.h> exists even on freestanding compilers.
8238: # On the NeXT, cc -E runs the code through the compiler's parser,
8239: # not just through cpp. "Syntax error" is here to catch this case.
8240: cat >conftest.$ac_ext <<_ACEOF
8241: #line $LINENO "configure"
8242: /* confdefs.h. */
8243: _ACEOF
8244: cat confdefs.h >>conftest.$ac_ext
8245: cat >>conftest.$ac_ext <<_ACEOF
8246: /* end confdefs.h. */
8247: #ifdef __STDC__
8248: # include <limits.h>
8249: #else
8250: # include <assert.h>
8251: #endif
8252: Syntax error
8253: _ACEOF
8254: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8255: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8256: ac_status=$?
8257: grep -v '^ *+' conftest.er1 >conftest.err
8258: rm -f conftest.er1
8259: cat conftest.err >&5
8260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261: (exit $ac_status); } >/dev/null; then
8262: if test -s conftest.err; then
8263: ac_cpp_err=$ac_cxx_preproc_warn_flag
8264: else
8265: ac_cpp_err=
8266: fi
8267: else
8268: ac_cpp_err=yes
8269: fi
8270: if test -z "$ac_cpp_err"; then
8271: :
8272: else
8273: echo "$as_me: failed program was:" >&5
8274: sed 's/^/| /' conftest.$ac_ext >&5
8275:
8276: # Broken: fails on valid input.
8277: continue
8278: fi
8279: rm -f conftest.err conftest.$ac_ext
8280:
8281: # OK, works on sane cases. Now check whether non-existent headers
8282: # can be detected and how.
8283: cat >conftest.$ac_ext <<_ACEOF
8284: #line $LINENO "configure"
8285: /* confdefs.h. */
8286: _ACEOF
8287: cat confdefs.h >>conftest.$ac_ext
8288: cat >>conftest.$ac_ext <<_ACEOF
8289: /* end confdefs.h. */
8290: #include <ac_nonexistent.h>
8291: _ACEOF
8292: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8293: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8294: ac_status=$?
8295: grep -v '^ *+' conftest.er1 >conftest.err
8296: rm -f conftest.er1
8297: cat conftest.err >&5
8298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299: (exit $ac_status); } >/dev/null; then
8300: if test -s conftest.err; then
8301: ac_cpp_err=$ac_cxx_preproc_warn_flag
8302: else
8303: ac_cpp_err=
8304: fi
8305: else
8306: ac_cpp_err=yes
8307: fi
8308: if test -z "$ac_cpp_err"; then
8309: # Broken: success on invalid input.
8310: continue
8311: else
8312: echo "$as_me: failed program was:" >&5
8313: sed 's/^/| /' conftest.$ac_ext >&5
8314:
8315: # Passes both tests.
8316: ac_preproc_ok=:
8317: break
8318: fi
8319: rm -f conftest.err conftest.$ac_ext
8320:
8321: done
8322: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8323: rm -f conftest.err conftest.$ac_ext
8324: if $ac_preproc_ok; then
8325: break
8326: fi
8327:
8328: done
8329: ac_cv_prog_CXXCPP=$CXXCPP
8330:
8331: fi
8332: CXXCPP=$ac_cv_prog_CXXCPP
8333: else
8334: ac_cv_prog_CXXCPP=$CXXCPP
8335: fi
8336: echo "$as_me:$LINENO: result: $CXXCPP" >&5
8337: echo "${ECHO_T}$CXXCPP" >&6
8338: ac_preproc_ok=false
8339: for ac_cxx_preproc_warn_flag in '' yes
8340: do
8341: # Use a header file that comes with gcc, so configuring glibc
8342: # with a fresh cross-compiler works.
8343: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344: # <limits.h> exists even on freestanding compilers.
8345: # On the NeXT, cc -E runs the code through the compiler's parser,
8346: # not just through cpp. "Syntax error" is here to catch this case.
8347: cat >conftest.$ac_ext <<_ACEOF
8348: #line $LINENO "configure"
8349: /* confdefs.h. */
8350: _ACEOF
8351: cat confdefs.h >>conftest.$ac_ext
8352: cat >>conftest.$ac_ext <<_ACEOF
8353: /* end confdefs.h. */
8354: #ifdef __STDC__
8355: # include <limits.h>
8356: #else
8357: # include <assert.h>
8358: #endif
8359: Syntax error
8360: _ACEOF
8361: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8362: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8363: ac_status=$?
8364: grep -v '^ *+' conftest.er1 >conftest.err
8365: rm -f conftest.er1
8366: cat conftest.err >&5
8367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368: (exit $ac_status); } >/dev/null; then
8369: if test -s conftest.err; then
8370: ac_cpp_err=$ac_cxx_preproc_warn_flag
8371: else
8372: ac_cpp_err=
8373: fi
8374: else
8375: ac_cpp_err=yes
8376: fi
8377: if test -z "$ac_cpp_err"; then
8378: :
8379: else
8380: echo "$as_me: failed program was:" >&5
8381: sed 's/^/| /' conftest.$ac_ext >&5
8382:
8383: # Broken: fails on valid input.
8384: continue
8385: fi
8386: rm -f conftest.err conftest.$ac_ext
8387:
8388: # OK, works on sane cases. Now check whether non-existent headers
8389: # can be detected and how.
8390: cat >conftest.$ac_ext <<_ACEOF
8391: #line $LINENO "configure"
8392: /* confdefs.h. */
8393: _ACEOF
8394: cat confdefs.h >>conftest.$ac_ext
8395: cat >>conftest.$ac_ext <<_ACEOF
8396: /* end confdefs.h. */
8397: #include <ac_nonexistent.h>
8398: _ACEOF
8399: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8400: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8401: ac_status=$?
8402: grep -v '^ *+' conftest.er1 >conftest.err
8403: rm -f conftest.er1
8404: cat conftest.err >&5
8405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406: (exit $ac_status); } >/dev/null; then
8407: if test -s conftest.err; then
8408: ac_cpp_err=$ac_cxx_preproc_warn_flag
8409: else
8410: ac_cpp_err=
8411: fi
8412: else
8413: ac_cpp_err=yes
8414: fi
8415: if test -z "$ac_cpp_err"; then
8416: # Broken: success on invalid input.
8417: continue
8418: else
8419: echo "$as_me: failed program was:" >&5
8420: sed 's/^/| /' conftest.$ac_ext >&5
8421:
8422: # Passes both tests.
8423: ac_preproc_ok=:
8424: break
8425: fi
8426: rm -f conftest.err conftest.$ac_ext
8427:
8428: done
8429: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8430: rm -f conftest.err conftest.$ac_ext
8431: if $ac_preproc_ok; then
8432: :
8433: else
8434: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8435: See \`config.log' for more details." >&5
8436: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8437: See \`config.log' for more details." >&2;}
8438: { (exit 1); exit 1; }; }
8439: fi
8440:
8441: ac_ext=cc
8442: ac_cpp='$CXXCPP $CPPFLAGS'
8443: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8444: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8445: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8446:
8447: if test -n "$ac_tool_prefix"; then
8448: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8449: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8450: echo "$as_me:$LINENO: checking for $ac_word" >&5
8451: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8452: if test "${ac_cv_prog_RANLIB+set}" = set; then
8453: echo $ECHO_N "(cached) $ECHO_C" >&6
8454: else
8455: if test -n "$RANLIB"; then
8456: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8457: else
8458: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459: for as_dir in $PATH
8460: do
8461: IFS=$as_save_IFS
8462: test -z "$as_dir" && as_dir=.
8463: for ac_exec_ext in '' $ac_executable_extensions; do
8464: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8466: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8467: break 2
8468: fi
8469: done
8470: done
8471:
8472: fi
8473: fi
8474: RANLIB=$ac_cv_prog_RANLIB
8475: if test -n "$RANLIB"; then
8476: echo "$as_me:$LINENO: result: $RANLIB" >&5
8477: echo "${ECHO_T}$RANLIB" >&6
8478: else
8479: echo "$as_me:$LINENO: result: no" >&5
8480: echo "${ECHO_T}no" >&6
8481: fi
8482:
8483: fi
8484: if test -z "$ac_cv_prog_RANLIB"; then
8485: ac_ct_RANLIB=$RANLIB
8486: # Extract the first word of "ranlib", so it can be a program name with args.
8487: set dummy ranlib; ac_word=$2
8488: echo "$as_me:$LINENO: checking for $ac_word" >&5
8489: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8490: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8491: echo $ECHO_N "(cached) $ECHO_C" >&6
8492: else
8493: if test -n "$ac_ct_RANLIB"; then
8494: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8495: else
8496: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497: for as_dir in $PATH
8498: do
8499: IFS=$as_save_IFS
8500: test -z "$as_dir" && as_dir=.
8501: for ac_exec_ext in '' $ac_executable_extensions; do
8502: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503: ac_cv_prog_ac_ct_RANLIB="ranlib"
8504: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505: break 2
8506: fi
8507: done
8508: done
8509:
8510: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8511: fi
8512: fi
8513: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8514: if test -n "$ac_ct_RANLIB"; then
8515: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8516: echo "${ECHO_T}$ac_ct_RANLIB" >&6
8517: else
8518: echo "$as_me:$LINENO: result: no" >&5
8519: echo "${ECHO_T}no" >&6
8520: fi
8521:
8522: RANLIB=$ac_ct_RANLIB
8523: else
8524: RANLIB="$ac_cv_prog_RANLIB"
8525: fi
8526:
8527:
8528: # Find a good install program. We prefer a C program (faster),
8529: # so one script is as good as another. But avoid the broken or
8530: # incompatible versions:
8531: # SysV /etc/install, /usr/sbin/install
8532: # SunOS /usr/etc/install
8533: # IRIX /sbin/install
8534: # AIX /bin/install
8535: # AmigaOS /C/install, which installs bootblocks on floppy discs
8536: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8537: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8538: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8539: # ./install, which can be erroneously created by make from ./install.sh.
8540: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8541: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8542: if test -z "$INSTALL"; then
8543: if test "${ac_cv_path_install+set}" = set; then
8544: echo $ECHO_N "(cached) $ECHO_C" >&6
8545: else
8546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547: for as_dir in $PATH
8548: do
8549: IFS=$as_save_IFS
8550: test -z "$as_dir" && as_dir=.
8551: # Account for people who put trailing slashes in PATH elements.
8552: case $as_dir/ in
8553: ./ | .// | /cC/* | \
8554: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8555: /usr/ucb/* ) ;;
8556: *)
8557: # OSF1 and SCO ODT 3.0 have their own names for install.
8558: # Don't use installbsd from OSF since it installs stuff as root
8559: # by default.
8560: for ac_prog in ginstall scoinst install; do
8561: for ac_exec_ext in '' $ac_executable_extensions; do
8562: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8563: if test $ac_prog = install &&
8564: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8565: # AIX install. It has an incompatible calling convention.
8566: :
8567: elif test $ac_prog = install &&
8568: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8569: # program-specific install script used by HP pwplus--don't use.
8570: :
8571: else
8572: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8573: break 3
8574: fi
8575: fi
8576: done
8577: done
8578: ;;
8579: esac
8580: done
8581:
8582:
8583: fi
8584: if test "${ac_cv_path_install+set}" = set; then
8585: INSTALL=$ac_cv_path_install
8586: else
8587: # As a last resort, use the slow shell script. We don't cache a
8588: # path for INSTALL within a source directory, because that will
8589: # break other packages using the cache if that directory is
8590: # removed, or if the path is relative.
8591: INSTALL=$ac_install_sh
8592: fi
8593: fi
8594: echo "$as_me:$LINENO: result: $INSTALL" >&5
8595: echo "${ECHO_T}$INSTALL" >&6
8596:
8597: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8598: # It thinks the first close brace ends the variable substitution.
8599: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8600:
8601: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8602:
8603: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8604:
8605: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8606: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8607: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8608: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8609: echo $ECHO_N "(cached) $ECHO_C" >&6
8610: else
8611: cat >conftest.make <<\_ACEOF
8612: all:
8613: @echo 'ac_maketemp="$(MAKE)"'
8614: _ACEOF
8615: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8616: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8617: if test -n "$ac_maketemp"; then
8618: eval ac_cv_prog_make_${ac_make}_set=yes
8619: else
8620: eval ac_cv_prog_make_${ac_make}_set=no
8621: fi
8622: rm -f conftest.make
8623: fi
8624: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8625: echo "$as_me:$LINENO: result: yes" >&5
8626: echo "${ECHO_T}yes" >&6
8627: SET_MAKE=
8628: else
8629: echo "$as_me:$LINENO: result: no" >&5
8630: echo "${ECHO_T}no" >&6
8631: SET_MAKE="MAKE=${MAKE-make}"
8632: fi
8633:
8634:
8635:
8636: # Extract the first word of "tar", so it can be a program name with args.
8637: set dummy tar; ac_word=$2
8638: echo "$as_me:$LINENO: checking for $ac_word" >&5
8639: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640: if test "${ac_cv_path_TAR+set}" = set; then
8641: echo $ECHO_N "(cached) $ECHO_C" >&6
8642: else
8643: case $TAR in
8644: [\\/]* | ?:[\\/]*)
8645: ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
8646: ;;
8647: *)
8648: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649: as_dummy="/usr/freeware/bin:$PATH"
8650: for as_dir in $as_dummy
8651: do
8652: IFS=$as_save_IFS
8653: test -z "$as_dir" && as_dir=.
8654: for ac_exec_ext in '' $ac_executable_extensions; do
8655: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8656: ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
8657: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8658: break 2
8659: fi
8660: done
8661: done
8662:
8663: test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="tar"
8664: ;;
8665: esac
8666: fi
8667: TAR=$ac_cv_path_TAR
8668:
8669: if test -n "$TAR"; then
8670: echo "$as_me:$LINENO: result: $TAR" >&5
8671: echo "${ECHO_T}$TAR" >&6
8672: else
8673: echo "$as_me:$LINENO: result: no" >&5
8674: echo "${ECHO_T}no" >&6
8675: fi
8676:
8677: # Extract the first word of "ldconfig", so it can be a program name with args.
8678: set dummy ldconfig; ac_word=$2
8679: echo "$as_me:$LINENO: checking for $ac_word" >&5
8680: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8681: if test "${ac_cv_path_LDCONFIG+set}" = set; then
8682: echo $ECHO_N "(cached) $ECHO_C" >&6
8683: else
8684: case $LDCONFIG in
8685: [\\/]* | ?:[\\/]*)
8686: ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
8687: ;;
8688: *)
8689: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690: for as_dir in $PATH
8691: do
8692: IFS=$as_save_IFS
8693: test -z "$as_dir" && as_dir=.
8694: for ac_exec_ext in '' $ac_executable_extensions; do
8695: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696: ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
8697: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8698: break 2
8699: fi
8700: done
8701: done
8702:
8703: ;;
8704: esac
8705: fi
8706: LDCONFIG=$ac_cv_path_LDCONFIG
8707:
8708: if test -n "$LDCONFIG"; then
8709: echo "$as_me:$LINENO: result: $LDCONFIG" >&5
8710: echo "${ECHO_T}$LDCONFIG" >&6
8711: else
8712: echo "$as_me:$LINENO: result: no" >&5
8713: echo "${ECHO_T}no" >&6
8714: fi
8715:
8716:
8717:
8718:
8719: if test `uname` = 'IRIX' || test `uname` = 'IRIX64'; then
8720: have_imon=yes
8721: cat >>confdefs.h <<\_ACEOF
8722: #define HAVE_IMON 1
8723: _ACEOF
8724:
8725: IMON_FUNCS=IMonIrix
8726:
8727:
8728: cat >conftest.$ac_ext <<_ACEOF
8729: #line $LINENO "configure"
8730: /* confdefs.h. */
8731: _ACEOF
8732: cat confdefs.h >>conftest.$ac_ext
8733: cat >>conftest.$ac_ext <<_ACEOF
8734: /* end confdefs.h. */
8735: #include <sys/imon.h>
8736:
8737: _ACEOF
8738: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8739: $EGREP "revokdi" >/dev/null 2>&1; then
8740: cat >>confdefs.h <<\_ACEOF
8741: #define HAVE_IMON_REVOKDI 1
8742: _ACEOF
8743:
8744: fi
8745: rm -f conftest*
8746:
8747: fi
8748: if test "$have_imon" != "yes"; then
8749: if test "${ac_cv_header_linux_imon_h+set}" = set; then
8750: echo "$as_me:$LINENO: checking for linux/imon.h" >&5
8751: echo $ECHO_N "checking for linux/imon.h... $ECHO_C" >&6
8752: if test "${ac_cv_header_linux_imon_h+set}" = set; then
8753: echo $ECHO_N "(cached) $ECHO_C" >&6
8754: fi
8755: echo "$as_me:$LINENO: result: $ac_cv_header_linux_imon_h" >&5
8756: echo "${ECHO_T}$ac_cv_header_linux_imon_h" >&6
8757: else
8758: # Is the header compilable?
8759: echo "$as_me:$LINENO: checking linux/imon.h usability" >&5
8760: echo $ECHO_N "checking linux/imon.h usability... $ECHO_C" >&6
8761: cat >conftest.$ac_ext <<_ACEOF
8762: #line $LINENO "configure"
8763: /* confdefs.h. */
8764: _ACEOF
8765: cat confdefs.h >>conftest.$ac_ext
8766: cat >>conftest.$ac_ext <<_ACEOF
8767: /* end confdefs.h. */
8768: $ac_includes_default
8769: #include <linux/imon.h>
8770: _ACEOF
8771: rm -f conftest.$ac_objext
8772: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773: (eval $ac_compile) 2>&5
8774: ac_status=$?
8775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776: (exit $ac_status); } &&
8777: { ac_try='test -s conftest.$ac_objext'
8778: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779: (eval $ac_try) 2>&5
8780: ac_status=$?
8781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782: (exit $ac_status); }; }; then
8783: ac_header_compiler=yes
8784: else
8785: echo "$as_me: failed program was:" >&5
8786: sed 's/^/| /' conftest.$ac_ext >&5
8787:
8788: ac_header_compiler=no
8789: fi
8790: rm -f conftest.$ac_objext conftest.$ac_ext
8791: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792: echo "${ECHO_T}$ac_header_compiler" >&6
8793:
8794: # Is the header present?
8795: echo "$as_me:$LINENO: checking linux/imon.h presence" >&5
8796: echo $ECHO_N "checking linux/imon.h presence... $ECHO_C" >&6
8797: cat >conftest.$ac_ext <<_ACEOF
8798: #line $LINENO "configure"
8799: /* confdefs.h. */
8800: _ACEOF
8801: cat confdefs.h >>conftest.$ac_ext
8802: cat >>conftest.$ac_ext <<_ACEOF
8803: /* end confdefs.h. */
8804: #include <linux/imon.h>
8805: _ACEOF
8806: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8808: ac_status=$?
8809: grep -v '^ *+' conftest.er1 >conftest.err
8810: rm -f conftest.er1
8811: cat conftest.err >&5
8812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813: (exit $ac_status); } >/dev/null; then
8814: if test -s conftest.err; then
8815: ac_cpp_err=$ac_cxx_preproc_warn_flag
8816: else
8817: ac_cpp_err=
8818: fi
8819: else
8820: ac_cpp_err=yes
8821: fi
8822: if test -z "$ac_cpp_err"; then
8823: ac_header_preproc=yes
8824: else
8825: echo "$as_me: failed program was:" >&5
8826: sed 's/^/| /' conftest.$ac_ext >&5
8827:
8828: ac_header_preproc=no
8829: fi
8830: rm -f conftest.err conftest.$ac_ext
8831: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832: echo "${ECHO_T}$ac_header_preproc" >&6
8833:
8834: # So? What about this header?
8835: case $ac_header_compiler:$ac_header_preproc in
8836: yes:no )
8837: { echo "$as_me:$LINENO: WARNING: linux/imon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8838: echo "$as_me: WARNING: linux/imon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839: { echo "$as_me:$LINENO: WARNING: linux/imon.h: proceeding with the preprocessor's result" >&5
8840: echo "$as_me: WARNING: linux/imon.h: proceeding with the preprocessor's result" >&2;}
8841: (
8842: cat <<\_ASBOX
8843: ## ------------------------------------ ##
8844: ## Report this to bug-autoconf@gnu.org. ##
8845: ## ------------------------------------ ##
8846: _ASBOX
8847: ) |
8848: sed "s/^/$as_me: WARNING: /" >&2
8849: ;;
8850: no:yes )
8851: { echo "$as_me:$LINENO: WARNING: linux/imon.h: present but cannot be compiled" >&5
8852: echo "$as_me: WARNING: linux/imon.h: present but cannot be compiled" >&2;}
8853: { echo "$as_me:$LINENO: WARNING: linux/imon.h: check for missing prerequisite headers?" >&5
8854: echo "$as_me: WARNING: linux/imon.h: check for missing prerequisite headers?" >&2;}
8855: { echo "$as_me:$LINENO: WARNING: linux/imon.h: proceeding with the preprocessor's result" >&5
8856: echo "$as_me: WARNING: linux/imon.h: proceeding with the preprocessor's result" >&2;}
8857: (
8858: cat <<\_ASBOX
8859: ## ------------------------------------ ##
8860: ## Report this to bug-autoconf@gnu.org. ##
8861: ## ------------------------------------ ##
8862: _ASBOX
8863: ) |
8864: sed "s/^/$as_me: WARNING: /" >&2
8865: ;;
8866: esac
8867: echo "$as_me:$LINENO: checking for linux/imon.h" >&5
8868: echo $ECHO_N "checking for linux/imon.h... $ECHO_C" >&6
8869: if test "${ac_cv_header_linux_imon_h+set}" = set; then
8870: echo $ECHO_N "(cached) $ECHO_C" >&6
8871: else
8872: ac_cv_header_linux_imon_h=$ac_header_preproc
8873: fi
8874: echo "$as_me:$LINENO: result: $ac_cv_header_linux_imon_h" >&5
8875: echo "${ECHO_T}$ac_cv_header_linux_imon_h" >&6
8876:
8877: fi
8878: if test $ac_cv_header_linux_imon_h = yes; then
8879: have_imon=yes
8880: fi
8881:
8882:
8883: if test "$have_imon" = "yes"; then
8884: cat >>confdefs.h <<\_ACEOF
8885: #define HAVE_IMON 1
8886: _ACEOF
8887:
8888: IMON_FUNCS=IMonLinux
8889: fi
8890: fi
8891: if test "$have_imon" != "yes"; then
8892: have_imon=no
8893: cat >>confdefs.h <<\_ACEOF
8894: #define HAVE_IMON 0
8895: _ACEOF
8896:
8897: IMON_FUNCS=IMonNone
8898: fi
8899:
8900: echo "Using imon support module $IMON_FUNCS"
8901:
8902: if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
8903: echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
8904: echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
8905: if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
8906: echo $ECHO_N "(cached) $ECHO_C" >&6
8907: fi
8908: echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
8909: echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
8910: else
8911: # Is the header compilable?
8912: echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
8913: echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
8914: cat >conftest.$ac_ext <<_ACEOF
8915: #line $LINENO "configure"
8916: /* confdefs.h. */
8917: _ACEOF
8918: cat confdefs.h >>conftest.$ac_ext
8919: cat >>conftest.$ac_ext <<_ACEOF
8920: /* end confdefs.h. */
8921: $ac_includes_default
8922: #include <sys/statvfs.h>
8923: _ACEOF
8924: rm -f conftest.$ac_objext
8925: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926: (eval $ac_compile) 2>&5
8927: ac_status=$?
8928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929: (exit $ac_status); } &&
8930: { ac_try='test -s conftest.$ac_objext'
8931: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932: (eval $ac_try) 2>&5
8933: ac_status=$?
8934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935: (exit $ac_status); }; }; then
8936: ac_header_compiler=yes
8937: else
8938: echo "$as_me: failed program was:" >&5
8939: sed 's/^/| /' conftest.$ac_ext >&5
8940:
8941: ac_header_compiler=no
8942: fi
8943: rm -f conftest.$ac_objext conftest.$ac_ext
8944: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8945: echo "${ECHO_T}$ac_header_compiler" >&6
8946:
8947: # Is the header present?
8948: echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
8949: echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
8950: cat >conftest.$ac_ext <<_ACEOF
8951: #line $LINENO "configure"
8952: /* confdefs.h. */
8953: _ACEOF
8954: cat confdefs.h >>conftest.$ac_ext
8955: cat >>conftest.$ac_ext <<_ACEOF
8956: /* end confdefs.h. */
8957: #include <sys/statvfs.h>
8958: _ACEOF
8959: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8960: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8961: ac_status=$?
8962: grep -v '^ *+' conftest.er1 >conftest.err
8963: rm -f conftest.er1
8964: cat conftest.err >&5
8965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966: (exit $ac_status); } >/dev/null; then
8967: if test -s conftest.err; then
8968: ac_cpp_err=$ac_cxx_preproc_warn_flag
8969: else
8970: ac_cpp_err=
8971: fi
8972: else
8973: ac_cpp_err=yes
8974: fi
8975: if test -z "$ac_cpp_err"; then
8976: ac_header_preproc=yes
8977: else
8978: echo "$as_me: failed program was:" >&5
8979: sed 's/^/| /' conftest.$ac_ext >&5
8980:
8981: ac_header_preproc=no
8982: fi
8983: rm -f conftest.err conftest.$ac_ext
8984: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985: echo "${ECHO_T}$ac_header_preproc" >&6
8986:
8987: # So? What about this header?
8988: case $ac_header_compiler:$ac_header_preproc in
8989: yes:no )
8990: { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8991: echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992: { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
8993: echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
8994: (
8995: cat <<\_ASBOX
8996: ## ------------------------------------ ##
8997: ## Report this to bug-autoconf@gnu.org. ##
8998: ## ------------------------------------ ##
8999: _ASBOX
9000: ) |
9001: sed "s/^/$as_me: WARNING: /" >&2
9002: ;;
9003: no:yes )
9004: { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
9005: echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
9006: { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
9007: echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
9008: { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
9009: echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
9010: (
9011: cat <<\_ASBOX
9012: ## ------------------------------------ ##
9013: ## Report this to bug-autoconf@gnu.org. ##
9014: ## ------------------------------------ ##
9015: _ASBOX
9016: ) |
9017: sed "s/^/$as_me: WARNING: /" >&2
9018: ;;
9019: esac
9020: echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
9021: echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
9022: if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
9023: echo $ECHO_N "(cached) $ECHO_C" >&6
9024: else
9025: ac_cv_header_sys_statvfs_h=$ac_header_preproc
9026: fi
9027: echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
9028: echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
9029:
9030: fi
9031: if test $ac_cv_header_sys_statvfs_h = yes; then
9032: cat >>confdefs.h <<\_ACEOF
9033: #define HAVE_STATVFS 1
9034: _ACEOF
9035: have_statvfs="yes"
9036: else
9037: cat >>confdefs.h <<\_ACEOF
9038: #define HAVE_STATVFS 0
9039: _ACEOF
9040: have_statvfs="no"
9041: fi
9042:
9043:
9044: if test "${ac_cv_header_sys_syssgi_h+set}" = set; then
9045: echo "$as_me:$LINENO: checking for sys/syssgi.h" >&5
9046: echo $ECHO_N "checking for sys/syssgi.h... $ECHO_C" >&6
9047: if test "${ac_cv_header_sys_syssgi_h+set}" = set; then
9048: echo $ECHO_N "(cached) $ECHO_C" >&6
9049: fi
9050: echo "$as_me:$LINENO: result: $ac_cv_header_sys_syssgi_h" >&5
9051: echo "${ECHO_T}$ac_cv_header_sys_syssgi_h" >&6
9052: else
9053: # Is the header compilable?
9054: echo "$as_me:$LINENO: checking sys/syssgi.h usability" >&5
9055: echo $ECHO_N "checking sys/syssgi.h usability... $ECHO_C" >&6
9056: cat >conftest.$ac_ext <<_ACEOF
9057: #line $LINENO "configure"
9058: /* confdefs.h. */
9059: _ACEOF
9060: cat confdefs.h >>conftest.$ac_ext
9061: cat >>conftest.$ac_ext <<_ACEOF
9062: /* end confdefs.h. */
9063: $ac_includes_default
9064: #include <sys/syssgi.h>
9065: _ACEOF
9066: rm -f conftest.$ac_objext
9067: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068: (eval $ac_compile) 2>&5
9069: ac_status=$?
9070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071: (exit $ac_status); } &&
9072: { ac_try='test -s conftest.$ac_objext'
9073: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074: (eval $ac_try) 2>&5
9075: ac_status=$?
9076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077: (exit $ac_status); }; }; then
9078: ac_header_compiler=yes
9079: else
9080: echo "$as_me: failed program was:" >&5
9081: sed 's/^/| /' conftest.$ac_ext >&5
9082:
9083: ac_header_compiler=no
9084: fi
9085: rm -f conftest.$ac_objext conftest.$ac_ext
9086: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9087: echo "${ECHO_T}$ac_header_compiler" >&6
9088:
9089: # Is the header present?
9090: echo "$as_me:$LINENO: checking sys/syssgi.h presence" >&5
9091: echo $ECHO_N "checking sys/syssgi.h presence... $ECHO_C" >&6
9092: cat >conftest.$ac_ext <<_ACEOF
9093: #line $LINENO "configure"
9094: /* confdefs.h. */
9095: _ACEOF
9096: cat confdefs.h >>conftest.$ac_ext
9097: cat >>conftest.$ac_ext <<_ACEOF
9098: /* end confdefs.h. */
9099: #include <sys/syssgi.h>
9100: _ACEOF
9101: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9102: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9103: ac_status=$?
9104: grep -v '^ *+' conftest.er1 >conftest.err
9105: rm -f conftest.er1
9106: cat conftest.err >&5
9107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108: (exit $ac_status); } >/dev/null; then
9109: if test -s conftest.err; then
9110: ac_cpp_err=$ac_cxx_preproc_warn_flag
9111: else
9112: ac_cpp_err=
9113: fi
9114: else
9115: ac_cpp_err=yes
9116: fi
9117: if test -z "$ac_cpp_err"; then
9118: ac_header_preproc=yes
9119: else
9120: echo "$as_me: failed program was:" >&5
9121: sed 's/^/| /' conftest.$ac_ext >&5
9122:
9123: ac_header_preproc=no
9124: fi
9125: rm -f conftest.err conftest.$ac_ext
9126: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9127: echo "${ECHO_T}$ac_header_preproc" >&6
9128:
9129: # So? What about this header?
9130: case $ac_header_compiler:$ac_header_preproc in
9131: yes:no )
9132: { echo "$as_me:$LINENO: WARNING: sys/syssgi.h: accepted by the compiler, rejected by the preprocessor!" >&5
9133: echo "$as_me: WARNING: sys/syssgi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9134: { echo "$as_me:$LINENO: WARNING: sys/syssgi.h: proceeding with the preprocessor's result" >&5
9135: echo "$as_me: WARNING: sys/syssgi.h: proceeding with the preprocessor's result" >&2;}
9136: (
9137: cat <<\_ASBOX
9138: ## ------------------------------------ ##
9139: ## Report this to bug-autoconf@gnu.org. ##
9140: ## ------------------------------------ ##
9141: _ASBOX
9142: ) |
9143: sed "s/^/$as_me: WARNING: /" >&2
9144: ;;
9145: no:yes )
9146: { echo "$as_me:$LINENO: WARNING: sys/syssgi.h: present but cannot be compiled" >&5
9147: echo "$as_me: WARNING: sys/syssgi.h: present but cannot be compiled" >&2;}
9148: { echo "$as_me:$LINENO: WARNING: sys/syssgi.h: check for missing prerequisite headers?" >&5
9149: echo "$as_me: WARNING: sys/syssgi.h: check for missing prerequisite headers?" >&2;}
9150: { echo "$as_me:$LINENO: WARNING: sys/syssgi.h: proceeding with the preprocessor's result" >&5
9151: echo "$as_me: WARNING: sys/syssgi.h: proceeding with the preprocessor's result" >&2;}
9152: (
9153: cat <<\_ASBOX
9154: ## ------------------------------------ ##
9155: ## Report this to bug-autoconf@gnu.org. ##
9156: ## ------------------------------------ ##
9157: _ASBOX
9158: ) |
9159: sed "s/^/$as_me: WARNING: /" >&2
9160: ;;
9161: esac
9162: echo "$as_me:$LINENO: checking for sys/syssgi.h" >&5
9163: echo $ECHO_N "checking for sys/syssgi.h... $ECHO_C" >&6
9164: if test "${ac_cv_header_sys_syssgi_h+set}" = set; then
9165: echo $ECHO_N "(cached) $ECHO_C" >&6
9166: else
9167: ac_cv_header_sys_syssgi_h=$ac_header_preproc
9168: fi
9169: echo "$as_me:$LINENO: result: $ac_cv_header_sys_syssgi_h" >&5
9170: echo "${ECHO_T}$ac_cv_header_sys_syssgi_h" >&6
9171:
9172: fi
9173: if test $ac_cv_header_sys_syssgi_h = yes; then
9174: cat >>confdefs.h <<\_ACEOF
9175: #define HAVE_SYSSGI 1
9176: _ACEOF
9177:
9178: else
9179: cat >>confdefs.h <<\_ACEOF
9180: #define HAVE_SYSSGI 0
9181: _ACEOF
9182:
9183: fi
9184:
9185:
9186: if test "${ac_cv_header_sys_fs_nfs_clnt_h+set}" = set; then
9187: echo "$as_me:$LINENO: checking for sys/fs/nfs_clnt.h" >&5
9188: echo $ECHO_N "checking for sys/fs/nfs_clnt.h... $ECHO_C" >&6
9189: if test "${ac_cv_header_sys_fs_nfs_clnt_h+set}" = set; then
9190: echo $ECHO_N "(cached) $ECHO_C" >&6
9191: fi
9192: echo "$as_me:$LINENO: result: $ac_cv_header_sys_fs_nfs_clnt_h" >&5
9193: echo "${ECHO_T}$ac_cv_header_sys_fs_nfs_clnt_h" >&6
9194: else
9195: # Is the header compilable?
9196: echo "$as_me:$LINENO: checking sys/fs/nfs_clnt.h usability" >&5
9197: echo $ECHO_N "checking sys/fs/nfs_clnt.h usability... $ECHO_C" >&6
9198: cat >conftest.$ac_ext <<_ACEOF
9199: #line $LINENO "configure"
9200: /* confdefs.h. */
9201: _ACEOF
9202: cat confdefs.h >>conftest.$ac_ext
9203: cat >>conftest.$ac_ext <<_ACEOF
9204: /* end confdefs.h. */
9205: $ac_includes_default
9206: #include <sys/fs/nfs_clnt.h>
9207: _ACEOF
9208: rm -f conftest.$ac_objext
9209: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210: (eval $ac_compile) 2>&5
9211: ac_status=$?
9212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213: (exit $ac_status); } &&
9214: { ac_try='test -s conftest.$ac_objext'
9215: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216: (eval $ac_try) 2>&5
9217: ac_status=$?
9218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219: (exit $ac_status); }; }; then
9220: ac_header_compiler=yes
9221: else
9222: echo "$as_me: failed program was:" >&5
9223: sed 's/^/| /' conftest.$ac_ext >&5
9224:
9225: ac_header_compiler=no
9226: fi
9227: rm -f conftest.$ac_objext conftest.$ac_ext
9228: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9229: echo "${ECHO_T}$ac_header_compiler" >&6
9230:
9231: # Is the header present?
9232: echo "$as_me:$LINENO: checking sys/fs/nfs_clnt.h presence" >&5
9233: echo $ECHO_N "checking sys/fs/nfs_clnt.h presence... $ECHO_C" >&6
9234: cat >conftest.$ac_ext <<_ACEOF
9235: #line $LINENO "configure"
9236: /* confdefs.h. */
9237: _ACEOF
9238: cat confdefs.h >>conftest.$ac_ext
9239: cat >>conftest.$ac_ext <<_ACEOF
9240: /* end confdefs.h. */
9241: #include <sys/fs/nfs_clnt.h>
9242: _ACEOF
9243: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9244: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9245: ac_status=$?
9246: grep -v '^ *+' conftest.er1 >conftest.err
9247: rm -f conftest.er1
9248: cat conftest.err >&5
9249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250: (exit $ac_status); } >/dev/null; then
9251: if test -s conftest.err; then
9252: ac_cpp_err=$ac_cxx_preproc_warn_flag
9253: else
9254: ac_cpp_err=
9255: fi
9256: else
9257: ac_cpp_err=yes
9258: fi
9259: if test -z "$ac_cpp_err"; then
9260: ac_header_preproc=yes
9261: else
9262: echo "$as_me: failed program was:" >&5
9263: sed 's/^/| /' conftest.$ac_ext >&5
9264:
9265: ac_header_preproc=no
9266: fi
9267: rm -f conftest.err conftest.$ac_ext
9268: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9269: echo "${ECHO_T}$ac_header_preproc" >&6
9270:
9271: # So? What about this header?
9272: case $ac_header_compiler:$ac_header_preproc in
9273: yes:no )
9274: { echo "$as_me:$LINENO: WARNING: sys/fs/nfs_clnt.h: accepted by the compiler, rejected by the preprocessor!" >&5
9275: echo "$as_me: WARNING: sys/fs/nfs_clnt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9276: { echo "$as_me:$LINENO: WARNING: sys/fs/nfs_clnt.h: proceeding with the preprocessor's result" >&5
9277: echo "$as_me: WARNING: sys/fs/nfs_clnt.h: proceeding with the preprocessor's result" >&2;}
9278: (
9279: cat <<\_ASBOX
9280: ## ------------------------------------ ##
9281: ## Report this to bug-autoconf@gnu.org. ##
9282: ## ------------------------------------ ##
9283: _ASBOX
9284: ) |
9285: sed "s/^/$as_me: WARNING: /" >&2
9286: ;;
9287: no:yes )
9288: { echo "$as_me:$LINENO: WARNING: sys/fs/nfs_clnt.h: present but cannot be compiled" >&5
9289: echo "$as_me: WARNING: sys/fs/nfs_clnt.h: present but cannot be compiled" >&2;}
9290: { echo "$as_me:$LINENO: WARNING: sys/fs/nfs_clnt.h: check for missing prerequisite headers?" >&5
9291: echo "$as_me: WARNING: sys/fs/nfs_clnt.h: check for missing prerequisite headers?" >&2;}
9292: { echo "$as_me:$LINENO: WARNING: sys/fs/nfs_clnt.h: proceeding with the preprocessor's result" >&5
9293: echo "$as_me: WARNING: sys/fs/nfs_clnt.h: proceeding with the preprocessor's result" >&2;}
9294: (
9295: cat <<\_ASBOX
9296: ## ------------------------------------ ##
9297: ## Report this to bug-autoconf@gnu.org. ##
9298: ## ------------------------------------ ##
9299: _ASBOX
9300: ) |
9301: sed "s/^/$as_me: WARNING: /" >&2
9302: ;;
9303: esac
9304: echo "$as_me:$LINENO: checking for sys/fs/nfs_clnt.h" >&5
9305: echo $ECHO_N "checking for sys/fs/nfs_clnt.h... $ECHO_C" >&6
9306: if test "${ac_cv_header_sys_fs_nfs_clnt_h+set}" = set; then
9307: echo $ECHO_N "(cached) $ECHO_C" >&6
9308: else
9309: ac_cv_header_sys_fs_nfs_clnt_h=$ac_header_preproc
9310: fi
9311: echo "$as_me:$LINENO: result: $ac_cv_header_sys_fs_nfs_clnt_h" >&5
9312: echo "${ECHO_T}$ac_cv_header_sys_fs_nfs_clnt_h" >&6
9313:
9314: fi
9315: if test $ac_cv_header_sys_fs_nfs_clnt_h = yes; then
9316: cat >>confdefs.h <<\_ACEOF
9317: #define HAVE_SYS_FS_NFS_CLNT_H 1
9318: _ACEOF
9319:
9320: else
9321: cat >>confdefs.h <<\_ACEOF
9322: #define HAVE_SYS_FS_NFS_CLNT_H 0
9323: _ACEOF
9324:
9325: fi
9326:
9327:
9328:
9329: if test `uname` != 'IRIX' && test `uname` != 'IRIX64'; then
9330: cat >>confdefs.h <<\_ACEOF
9331: #define HAVE_STATVFS 0
9332: _ACEOF
9333:
9334: have_statvfs="no"
9335: fi
9336:
9337: echo "$as_me:$LINENO: checking SGI_NOHANG" >&5
9338: echo $ECHO_N "checking SGI_NOHANG... $ECHO_C" >&6
9339: cat >conftest.$ac_ext <<_ACEOF
9340: #line $LINENO "configure"
9341: /* confdefs.h. */
9342: _ACEOF
9343: cat confdefs.h >>conftest.$ac_ext
9344: cat >>conftest.$ac_ext <<_ACEOF
9345: /* end confdefs.h. */
9346: #include <sys/syssgi.h>
9347: int
9348: main ()
9349: {
9350: int i = SGI_NOHANG;
9351: ;
9352: return 0;
9353: }
9354: _ACEOF
9355: rm -f conftest.$ac_objext
9356: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357: (eval $ac_compile) 2>&5
9358: ac_status=$?
9359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360: (exit $ac_status); } &&
9361: { ac_try='test -s conftest.$ac_objext'
9362: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363: (eval $ac_try) 2>&5
9364: ac_status=$?
9365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366: (exit $ac_status); }; }; then
9367: have_sgi_nohang=yes
9368: else
9369: echo "$as_me: failed program was:" >&5
9370: sed 's/^/| /' conftest.$ac_ext >&5
9371:
9372: have_sgi_nohang=no
9373: fi
9374: rm -f conftest.$ac_objext conftest.$ac_ext
9375: if test "$have_sgi_nohang" = "yes"; then
9376: cat >>confdefs.h <<\_ACEOF
9377: #define HAVE_SGI_NOHANG 1
9378: _ACEOF
9379:
9380: else
9381: cat >>confdefs.h <<\_ACEOF
9382: #define HAVE_SGI_NOHANG 0
9383: _ACEOF
9384:
9385: fi
9386: echo "$as_me:$LINENO: result: $have_sgi_nohang" >&5
9387: echo "${ECHO_T}$have_sgi_nohang" >&6
9388:
9389:
9390:
9391: for ac_func in _daemonize daemon
9392: do
9393: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9394: echo "$as_me:$LINENO: checking for $ac_func" >&5
9395: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9396: if eval "test \"\${$as_ac_var+set}\" = set"; then
9397: echo $ECHO_N "(cached) $ECHO_C" >&6
9398: else
9399: cat >conftest.$ac_ext <<_ACEOF
9400: #line $LINENO "configure"
9401: /* confdefs.h. */
9402: _ACEOF
9403: cat confdefs.h >>conftest.$ac_ext
9404: cat >>conftest.$ac_ext <<_ACEOF
9405: /* end confdefs.h. */
9406: /* System header to define __stub macros and hopefully few prototypes,
9407: which can conflict with char $ac_func (); below.
9408: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409: <limits.h> exists even on freestanding compilers. */
9410: #ifdef __STDC__
9411: # include <limits.h>
9412: #else
9413: # include <assert.h>
9414: #endif
9415: /* Override any gcc2 internal prototype to avoid an error. */
9416: #ifdef __cplusplus
9417: extern "C"
9418: {
9419: #endif
9420: /* We use char because int might match the return type of a gcc2
9421: builtin and then its argument prototype would still apply. */
9422: char $ac_func ();
9423: /* The GNU C library defines this for functions which it implements
9424: to always fail with ENOSYS. Some functions are actually named
9425: something starting with __ and the normal name is an alias. */
9426: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9427: choke me
9428: #else
9429: char (*f) () = $ac_func;
9430: #endif
9431: #ifdef __cplusplus
9432: }
9433: #endif
9434:
9435: int
9436: main ()
9437: {
9438: return f != $ac_func;
9439: ;
9440: return 0;
9441: }
9442: _ACEOF
9443: rm -f conftest.$ac_objext conftest$ac_exeext
9444: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445: (eval $ac_link) 2>&5
9446: ac_status=$?
9447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448: (exit $ac_status); } &&
9449: { ac_try='test -s conftest$ac_exeext'
9450: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451: (eval $ac_try) 2>&5
9452: ac_status=$?
9453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454: (exit $ac_status); }; }; then
9455: eval "$as_ac_var=yes"
9456: else
9457: echo "$as_me: failed program was:" >&5
9458: sed 's/^/| /' conftest.$ac_ext >&5
9459:
9460: eval "$as_ac_var=no"
9461: fi
9462: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9463: fi
9464: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9465: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9466: if test `eval echo '${'$as_ac_var'}'` = yes; then
9467: cat >>confdefs.h <<_ACEOF
9468: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9469: _ACEOF
9470:
9471: fi
9472: done
9473:
9474:
9475:
9476:
9477: for ac_func in getgrmember getgroups
9478: do
9479: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9480: echo "$as_me:$LINENO: checking for $ac_func" >&5
9481: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9482: if eval "test \"\${$as_ac_var+set}\" = set"; then
9483: echo $ECHO_N "(cached) $ECHO_C" >&6
9484: else
9485: cat >conftest.$ac_ext <<_ACEOF
9486: #line $LINENO "configure"
9487: /* confdefs.h. */
9488: _ACEOF
9489: cat confdefs.h >>conftest.$ac_ext
9490: cat >>conftest.$ac_ext <<_ACEOF
9491: /* end confdefs.h. */
9492: /* System header to define __stub macros and hopefully few prototypes,
9493: which can conflict with char $ac_func (); below.
9494: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495: <limits.h> exists even on freestanding compilers. */
9496: #ifdef __STDC__
9497: # include <limits.h>
9498: #else
9499: # include <assert.h>
9500: #endif
9501: /* Override any gcc2 internal prototype to avoid an error. */
9502: #ifdef __cplusplus
9503: extern "C"
9504: {
9505: #endif
9506: /* We use char because int might match the return type of a gcc2
9507: builtin and then its argument prototype would still apply. */
9508: char $ac_func ();
9509: /* The GNU C library defines this for functions which it implements
9510: to always fail with ENOSYS. Some functions are actually named
9511: something starting with __ and the normal name is an alias. */
9512: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9513: choke me
9514: #else
9515: char (*f) () = $ac_func;
9516: #endif
9517: #ifdef __cplusplus
9518: }
9519: #endif
9520:
9521: int
9522: main ()
9523: {
9524: return f != $ac_func;
9525: ;
9526: return 0;
9527: }
9528: _ACEOF
9529: rm -f conftest.$ac_objext conftest$ac_exeext
9530: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531: (eval $ac_link) 2>&5
9532: ac_status=$?
9533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534: (exit $ac_status); } &&
9535: { ac_try='test -s conftest$ac_exeext'
9536: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537: (eval $ac_try) 2>&5
9538: ac_status=$?
9539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540: (exit $ac_status); }; }; then
9541: eval "$as_ac_var=yes"
9542: else
9543: echo "$as_me: failed program was:" >&5
9544: sed 's/^/| /' conftest.$ac_ext >&5
9545:
9546: eval "$as_ac_var=no"
9547: fi
9548: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9549: fi
9550: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9551: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9552: if test `eval echo '${'$as_ac_var'}'` = yes; then
9553: cat >>confdefs.h <<_ACEOF
9554: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9555: _ACEOF
9556:
9557: fi
9558: done
9559:
9560:
9561:
9562:
9563:
9564:
9565: echo "$as_me:$LINENO: checking for stat.st_fstype string" >&5
9566: echo $ECHO_N "checking for stat.st_fstype string... $ECHO_C" >&6
9567: if test "${fam_cv_stat_st_fstype_is_string+set}" = set; then
9568: echo $ECHO_N "(cached) $ECHO_C" >&6
9569: else
9570: cat >conftest.$ac_ext <<_ACEOF
9571: #line $LINENO "configure"
9572: /* confdefs.h. */
9573: _ACEOF
9574: cat confdefs.h >>conftest.$ac_ext
9575: cat >>conftest.$ac_ext <<_ACEOF
9576: /* end confdefs.h. */
9577: #include <sys/stat.h>
9578: int
9579: main ()
9580: {
9581: struct stat st; char *s = st.st_fstype;
9582: ;
9583: return 0;
9584: }
9585: _ACEOF
9586: rm -f conftest.$ac_objext
9587: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588: (eval $ac_compile) 2>&5
9589: ac_status=$?
9590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591: (exit $ac_status); } &&
9592: { ac_try='test -s conftest.$ac_objext'
9593: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594: (eval $ac_try) 2>&5
9595: ac_status=$?
9596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597: (exit $ac_status); }; }; then
9598: fam_cv_stat_st_fstype_is_string=yes
9599: else
9600: echo "$as_me: failed program was:" >&5
9601: sed 's/^/| /' conftest.$ac_ext >&5
9602:
9603: fam_cv_stat_st_fstype_is_string=no
9604: fi
9605: rm -f conftest.$ac_objext conftest.$ac_ext
9606: fi
9607: echo "$as_me:$LINENO: result: $fam_cv_stat_st_fstype_is_string" >&5
9608: echo "${ECHO_T}$fam_cv_stat_st_fstype_is_string" >&6
9609: if test "$fam_cv_stat_st_fstype_is_string" = "yes"; then
9610: cat >>confdefs.h <<\_ACEOF
9611: #define HAVE_STAT_ST_FSTYPE_STRING 1
9612: _ACEOF
9613:
9614: else
9615: cat >>confdefs.h <<\_ACEOF
9616: #define HAVE_STAT_ST_FSTYPE_STRING 0
9617: _ACEOF
9618:
9619: fi
9620:
9621: echo "$as_me:$LINENO: checking for stat.st_ctim.tv_nsec (nanoseconds)" >&5
9622: echo $ECHO_N "checking for stat.st_ctim.tv_nsec (nanoseconds)... $ECHO_C" >&6
9623: if test "${fam_cv_stat_st_ctim_tv_nsec+set}" = set; then
9624: echo $ECHO_N "(cached) $ECHO_C" >&6
9625: else
9626: cat >conftest.$ac_ext <<_ACEOF
9627: #line $LINENO "configure"
9628: /* confdefs.h. */
9629: _ACEOF
9630: cat confdefs.h >>conftest.$ac_ext
9631: cat >>conftest.$ac_ext <<_ACEOF
9632: /* end confdefs.h. */
9633: #include <sys/stat.h>
9634: int
9635: main ()
9636: {
9637: struct stat st; st.st_ctim.tv_nsec = 0;
9638: ;
9639: return 0;
9640: }
9641: _ACEOF
9642: rm -f conftest.$ac_objext
9643: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644: (eval $ac_compile) 2>&5
9645: ac_status=$?
9646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647: (exit $ac_status); } &&
9648: { ac_try='test -s conftest.$ac_objext'
9649: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650: (eval $ac_try) 2>&5
9651: ac_status=$?
9652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653: (exit $ac_status); }; }; then
9654: fam_cv_stat_st_ctim_tv_nsec=yes
9655: else
9656: echo "$as_me: failed program was:" >&5
9657: sed 's/^/| /' conftest.$ac_ext >&5
9658:
9659: fam_cv_stat_st_ctim_tv_nsec=no
9660: fi
9661: rm -f conftest.$ac_objext conftest.$ac_ext
9662: fi
9663: echo "$as_me:$LINENO: result: $fam_cv_stat_st_ctim_tv_nsec" >&5
9664: echo "${ECHO_T}$fam_cv_stat_st_ctim_tv_nsec" >&6
9665: if test "$fam_cv_stat_st_ctim_tv_nsec" = "yes"; then
9666: cat >>confdefs.h <<\_ACEOF
9667: #define HAVE_STAT_ST_CTIM_TV_NSEC 1
9668: _ACEOF
9669:
9670: fi
9671:
9672:
9673: echo "$as_me:$LINENO: checking for mountlist struct" >&5
9674: echo $ECHO_N "checking for mountlist struct... $ECHO_C" >&6
9675: cat >conftest.$ac_ext <<_ACEOF
9676: #line $LINENO "configure"
9677: /* confdefs.h. */
9678: _ACEOF
9679: cat confdefs.h >>conftest.$ac_ext
9680: cat >>conftest.$ac_ext <<_ACEOF
9681: /* end confdefs.h. */
9682:
9683: typedef int fhandle_t;
9684: #include <rpc/rpc.h>
9685: #include <rpcsvc/mount.h>
9686:
9687: int
9688: main ()
9689: {
9690: mountlist ml; char *h = ml.ml_name;
9691: ;
9692: return 0;
9693: }
9694: _ACEOF
9695: rm -f conftest.$ac_objext
9696: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9697: (eval $ac_compile) 2>&5
9698: ac_status=$?
9699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700: (exit $ac_status); } &&
9701: { ac_try='test -s conftest.$ac_objext'
9702: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703: (eval $ac_try) 2>&5
9704: ac_status=$?
9705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706: (exit $ac_status); }; }; then
9707: have_mountlist_struct=yes
9708: else
9709: echo "$as_me: failed program was:" >&5
9710: sed 's/^/| /' conftest.$ac_ext >&5
9711:
9712: have_mountlist_struct=no
9713: fi
9714: rm -f conftest.$ac_objext conftest.$ac_ext
9715: echo "$as_me:$LINENO: result: $have_mountlist_struct" >&5
9716: echo "${ECHO_T}$have_mountlist_struct" >&6
9717: if test "$have_mountlist_struct" = "yes"; then
9718: cat >>confdefs.h <<\_ACEOF
9719: #define HAVE_MOUNTLIST_STRUCT 1
9720: _ACEOF
9721:
9722: cat >>confdefs.h <<\_ACEOF
9723: #define HAVE_MOUNTLIST_PTR 0
9724: _ACEOF
9725:
9726: else
9727: cat >>confdefs.h <<\_ACEOF
9728: #define HAVE_MOUNTLIST_STRUCT 0
9729: _ACEOF
9730:
9731:
9732: echo "$as_me:$LINENO: checking for mountlist pointer" >&5
9733: echo $ECHO_N "checking for mountlist pointer... $ECHO_C" >&6
9734: cat >conftest.$ac_ext <<_ACEOF
9735: #line $LINENO "configure"
9736: /* confdefs.h. */
9737: _ACEOF
9738: cat confdefs.h >>conftest.$ac_ext
9739: cat >>conftest.$ac_ext <<_ACEOF
9740: /* end confdefs.h. */
9741: #include <rpcsvc/mount.h>
9742: int
9743: main ()
9744: {
9745: mountlist ml; char *h = ml->ml_hostname;
9746: ;
9747: return 0;
9748: }
9749: _ACEOF
9750: rm -f conftest.$ac_objext
9751: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752: (eval $ac_compile) 2>&5
9753: ac_status=$?
9754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755: (exit $ac_status); } &&
9756: { ac_try='test -s conftest.$ac_objext'
9757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758: (eval $ac_try) 2>&5
9759: ac_status=$?
9760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761: (exit $ac_status); }; }; then
9762: have_mountlist_ptr=yes
9763: else
9764: echo "$as_me: failed program was:" >&5
9765: sed 's/^/| /' conftest.$ac_ext >&5
9766:
9767: have_mountlist_ptr=no
9768: fi
9769: rm -f conftest.$ac_objext conftest.$ac_ext
9770: echo "$as_me:$LINENO: result: $have_mountlist_ptr" >&5
9771: echo "${ECHO_T}$have_mountlist_ptr" >&6
9772:
9773: if test "$have_mountlist_ptr" = "yes"; then
9774: cat >>confdefs.h <<\_ACEOF
9775: #define HAVE_MOUNTLIST_PTR 1
9776: _ACEOF
9777:
9778: else
9779: cat >>confdefs.h <<\_ACEOF
9780: #define HAVE_MOUNTLIST_PTR 0
9781: _ACEOF
9782:
9783: { { echo "$as_me:$LINENO: error: Didn't find mountlist.ml_name or mountlist->ml_hostname in rpcsvc/mount.h" >&5
9784: echo "$as_me: error: Didn't find mountlist.ml_name or mountlist->ml_hostname in rpcsvc/mount.h" >&2;}
9785: { (exit 1); exit 1; }; }
9786: fi
9787: fi
9788:
9789:
9790:
9791:
9792:
9793:
9794: echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_NFS" >&5
9795: echo $ECHO_N "checking mntent.h for MNTTYPE_NFS... $ECHO_C" >&6
9796: cat >conftest.$ac_ext <<_ACEOF
9797: #line $LINENO "configure"
9798: /* confdefs.h. */
9799: _ACEOF
9800: cat confdefs.h >>conftest.$ac_ext
9801: cat >>conftest.$ac_ext <<_ACEOF
9802: /* end confdefs.h. */
9803: #include <mntent.h>
9804: int
9805: main ()
9806: {
9807: const char *foo = MNTTYPE_NFS;
9808: ;
9809: return 0;
9810: }
9811: _ACEOF
9812: rm -f conftest.$ac_objext
9813: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814: (eval $ac_compile) 2>&5
9815: ac_status=$?
9816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817: (exit $ac_status); } &&
9818: { ac_try='test -s conftest.$ac_objext'
9819: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820: (eval $ac_try) 2>&5
9821: ac_status=$?
9822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823: (exit $ac_status); }; }; then
9824: fam_have_decl_in_mntent=yes
9825: else
9826: echo "$as_me: failed program was:" >&5
9827: sed 's/^/| /' conftest.$ac_ext >&5
9828:
9829: fam_have_decl_in_mntent=no
9830: fi
9831: rm -f conftest.$ac_objext conftest.$ac_ext
9832: echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
9833: echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
9834: if test "$fam_have_decl_in_mntent" = "yes"; then
9835: :
9836: else
9837: { { echo "$as_me:$LINENO: error: Didn't find MNTTYPE_NFS in mntent.h" >&5
9838: echo "$as_me: error: Didn't find MNTTYPE_NFS in mntent.h" >&2;}
9839: { (exit 1); exit 1; }; }
9840: fi
9841:
9842:
9843: echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_NFS2" >&5
9844: echo $ECHO_N "checking mntent.h for MNTTYPE_NFS2... $ECHO_C" >&6
9845: cat >conftest.$ac_ext <<_ACEOF
9846: #line $LINENO "configure"
9847: /* confdefs.h. */
9848: _ACEOF
9849: cat confdefs.h >>conftest.$ac_ext
9850: cat >>conftest.$ac_ext <<_ACEOF
9851: /* end confdefs.h. */
9852: #include <mntent.h>
9853: int
9854: main ()
9855: {
9856: const char *foo = MNTTYPE_NFS2;
9857: ;
9858: return 0;
9859: }
9860: _ACEOF
9861: rm -f conftest.$ac_objext
9862: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863: (eval $ac_compile) 2>&5
9864: ac_status=$?
9865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866: (exit $ac_status); } &&
9867: { ac_try='test -s conftest.$ac_objext'
9868: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869: (eval $ac_try) 2>&5
9870: ac_status=$?
9871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872: (exit $ac_status); }; }; then
9873: fam_have_decl_in_mntent=yes
9874: else
9875: echo "$as_me: failed program was:" >&5
9876: sed 's/^/| /' conftest.$ac_ext >&5
9877:
9878: fam_have_decl_in_mntent=no
9879: fi
9880: rm -f conftest.$ac_objext conftest.$ac_ext
9881: echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
9882: echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
9883: if test "$fam_have_decl_in_mntent" = "yes"; then
9884: cat >>confdefs.h <<\_ACEOF
9885: #define HAVE_MNTTYPE_NFS2 1
9886: _ACEOF
9887:
9888: else
9889: :
9890: fi
9891:
9892:
9893: echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_NFS3" >&5
9894: echo $ECHO_N "checking mntent.h for MNTTYPE_NFS3... $ECHO_C" >&6
9895: cat >conftest.$ac_ext <<_ACEOF
9896: #line $LINENO "configure"
9897: /* confdefs.h. */
9898: _ACEOF
9899: cat confdefs.h >>conftest.$ac_ext
9900: cat >>conftest.$ac_ext <<_ACEOF
9901: /* end confdefs.h. */
9902: #include <mntent.h>
9903: int
9904: main ()
9905: {
9906: const char *foo = MNTTYPE_NFS3;
9907: ;
9908: return 0;
9909: }
9910: _ACEOF
9911: rm -f conftest.$ac_objext
9912: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913: (eval $ac_compile) 2>&5
9914: ac_status=$?
9915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916: (exit $ac_status); } &&
9917: { ac_try='test -s conftest.$ac_objext'
9918: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919: (eval $ac_try) 2>&5
9920: ac_status=$?
9921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922: (exit $ac_status); }; }; then
9923: fam_have_decl_in_mntent=yes
9924: else
9925: echo "$as_me: failed program was:" >&5
9926: sed 's/^/| /' conftest.$ac_ext >&5
9927:
9928: fam_have_decl_in_mntent=no
9929: fi
9930: rm -f conftest.$ac_objext conftest.$ac_ext
9931: echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
9932: echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
9933: if test "$fam_have_decl_in_mntent" = "yes"; then
9934: cat >>confdefs.h <<\_ACEOF
9935: #define HAVE_MNTTYPE_NFS3 1
9936: _ACEOF
9937:
9938: else
9939: :
9940: fi
9941:
9942:
9943: echo "$as_me:$LINENO: checking mntent.h for MNTTYPE_CACHEFS" >&5
9944: echo $ECHO_N "checking mntent.h for MNTTYPE_CACHEFS... $ECHO_C" >&6
9945: cat >conftest.$ac_ext <<_ACEOF
9946: #line $LINENO "configure"
9947: /* confdefs.h. */
9948: _ACEOF
9949: cat confdefs.h >>conftest.$ac_ext
9950: cat >>conftest.$ac_ext <<_ACEOF
9951: /* end confdefs.h. */
9952: #include <mntent.h>
9953: int
9954: main ()
9955: {
9956: const char *foo = MNTTYPE_CACHEFS;
9957: ;
9958: return 0;
9959: }
9960: _ACEOF
9961: rm -f conftest.$ac_objext
9962: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9963: (eval $ac_compile) 2>&5
9964: ac_status=$?
9965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966: (exit $ac_status); } &&
9967: { ac_try='test -s conftest.$ac_objext'
9968: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969: (eval $ac_try) 2>&5
9970: ac_status=$?
9971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972: (exit $ac_status); }; }; then
9973: fam_have_decl_in_mntent=yes
9974: else
9975: echo "$as_me: failed program was:" >&5
9976: sed 's/^/| /' conftest.$ac_ext >&5
9977:
9978: fam_have_decl_in_mntent=no
9979: fi
9980: rm -f conftest.$ac_objext conftest.$ac_ext
9981: echo "$as_me:$LINENO: result: $fam_have_decl_in_mntent" >&5
9982: echo "${ECHO_T}$fam_have_decl_in_mntent" >&6
9983: if test "$fam_have_decl_in_mntent" = "yes"; then
9984: cat >>confdefs.h <<\_ACEOF
9985: #define HAVE_MNTTYPE_CACHEFS 1
9986: _ACEOF
9987:
9988: else
9989: :
9990: fi
9991:
9992:
9993: echo "$as_me:$LINENO: checking netinet/in.h for bindresvport()" >&5
9994: echo $ECHO_N "checking netinet/in.h for bindresvport()... $ECHO_C" >&6
9995: if test "${fam_cv_bindresvport_in_in_h+set}" = set; then
9996: echo $ECHO_N "(cached) $ECHO_C" >&6
9997: else
9998: cat >conftest.$ac_ext <<_ACEOF
9999: #line $LINENO "configure"
10000: /* confdefs.h. */
10001: _ACEOF
10002: cat confdefs.h >>conftest.$ac_ext
10003: cat >>conftest.$ac_ext <<_ACEOF
10004: /* end confdefs.h. */
10005: #include <netinet/in.h>
10006: int
10007: main ()
10008: {
10009: int p = 0; struct sockaddr_in s; bindresvport(p, &s);
10010: ;
10011: return 0;
10012: }
10013: _ACEOF
10014: rm -f conftest.$ac_objext
10015: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016: (eval $ac_compile) 2>&5
10017: ac_status=$?
10018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019: (exit $ac_status); } &&
10020: { ac_try='test -s conftest.$ac_objext'
10021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022: (eval $ac_try) 2>&5
10023: ac_status=$?
10024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025: (exit $ac_status); }; }; then
10026: fam_cv_bindresvport_in_in_h=yes
10027: else
10028: echo "$as_me: failed program was:" >&5
10029: sed 's/^/| /' conftest.$ac_ext >&5
10030:
10031: fam_cv_bindresvport_in_in_h=no
10032: fi
10033: rm -f conftest.$ac_objext conftest.$ac_ext
10034: fi
10035: echo "$as_me:$LINENO: result: $fam_cv_bindresvport_in_in_h" >&5
10036: echo "${ECHO_T}$fam_cv_bindresvport_in_in_h" >&6
10037: if test "$fam_cv_bindresvport_in_in_h" = "yes"; then
10038: cat >>confdefs.h <<\_ACEOF
10039: #define HAVE_BINDRESVPORT_PROTO 1
10040: _ACEOF
10041:
10042: else
10043: cat >>confdefs.h <<\_ACEOF
10044: #define HAVE_BINDRESVPORT_PROTO 0
10045: _ACEOF
10046:
10047: fi
10048:
10049: echo "$as_me:$LINENO: checking for prmap_sgi_t" >&5
10050: echo $ECHO_N "checking for prmap_sgi_t... $ECHO_C" >&6
10051: if test "${fam_cv_have_prmap_sgi_t+set}" = set; then
10052: echo $ECHO_N "(cached) $ECHO_C" >&6
10053: else
10054: cat >conftest.$ac_ext <<_ACEOF
10055: #line $LINENO "configure"
10056: /* confdefs.h. */
10057: _ACEOF
10058: cat confdefs.h >>conftest.$ac_ext
10059: cat >>conftest.$ac_ext <<_ACEOF
10060: /* end confdefs.h. */
10061: #include <sys/procfs.h>
10062: int
10063: main ()
10064: {
10065: prmap_sgi_t f; f.pr_lockcnt = 0;
10066: ;
10067: return 0;
10068: }
10069: _ACEOF
10070: rm -f conftest.$ac_objext
10071: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10072: (eval $ac_compile) 2>&5
10073: ac_status=$?
10074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075: (exit $ac_status); } &&
10076: { ac_try='test -s conftest.$ac_objext'
10077: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078: (eval $ac_try) 2>&5
10079: ac_status=$?
10080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081: (exit $ac_status); }; }; then
10082: fam_cv_have_prmap_sgi_t=yes
10083: else
10084: echo "$as_me: failed program was:" >&5
10085: sed 's/^/| /' conftest.$ac_ext >&5
10086:
10087: fam_cv_have_prmap_sgi_t=no
10088: fi
10089: rm -f conftest.$ac_objext conftest.$ac_ext
10090: fi
10091: echo "$as_me:$LINENO: result: $fam_cv_have_prmap_sgi_t" >&5
10092: echo "${ECHO_T}$fam_cv_have_prmap_sgi_t" >&6
10093: if test "$fam_cv_have_prmap_sgi_t" = "yes"; then
10094: cat >>confdefs.h <<\_ACEOF
10095: #define HAVE_PRMAP_SGI_T 1
10096: _ACEOF
10097:
10098: else
10099: cat >>confdefs.h <<\_ACEOF
10100: #define HAVE_PRMAP_SGI_T 0
10101: _ACEOF
10102:
10103: fi
10104:
10105: echo "$as_me:$LINENO: checking for socklen_t" >&5
10106: echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10107: if test "${fam_cv_have_socklen_t+set}" = set; then
10108: echo $ECHO_N "(cached) $ECHO_C" >&6
10109: else
10110: cat >conftest.$ac_ext <<_ACEOF
10111: #line $LINENO "configure"
10112: /* confdefs.h. */
10113: _ACEOF
10114: cat confdefs.h >>conftest.$ac_ext
10115: cat >>conftest.$ac_ext <<_ACEOF
10116: /* end confdefs.h. */
10117: #include <sys/types.h>
10118: #include <sys/socket.h>
10119: int
10120: main ()
10121: {
10122: socklen_t len; struct sockaddr s; accept(0, &s, &len);
10123: ;
10124: return 0;
10125: }
10126: _ACEOF
10127: rm -f conftest.$ac_objext
10128: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10129: (eval $ac_compile) 2>&5
10130: ac_status=$?
10131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132: (exit $ac_status); } &&
10133: { ac_try='test -s conftest.$ac_objext'
10134: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135: (eval $ac_try) 2>&5
10136: ac_status=$?
10137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138: (exit $ac_status); }; }; then
10139: fam_cv_have_socklen_t=yes
10140: else
10141: echo "$as_me: failed program was:" >&5
10142: sed 's/^/| /' conftest.$ac_ext >&5
10143:
10144: fam_cv_have_socklen_t=no
10145: fi
10146: rm -f conftest.$ac_objext conftest.$ac_ext
10147: fi
10148: echo "$as_me:$LINENO: result: $fam_cv_have_socklen_t" >&5
10149: echo "${ECHO_T}$fam_cv_have_socklen_t" >&6
10150: if test "$fam_cv_have_socklen_t" = "yes"; then
10151: cat >>confdefs.h <<\_ACEOF
10152: #define CONFIG_SOCKLEN_T socklen_t
10153: _ACEOF
10154:
10155: else
10156: cat >>confdefs.h <<\_ACEOF
10157: #define CONFIG_SOCKLEN_T int
10158: _ACEOF
10159:
10160: fi
10161:
10162: echo "$as_me:$LINENO: checking for built-in bool" >&5
10163: echo $ECHO_N "checking for built-in bool... $ECHO_C" >&6
10164: if test "${fam_cv_have_bool+set}" = set; then
10165: echo $ECHO_N "(cached) $ECHO_C" >&6
10166: else
10167: cat >conftest.$ac_ext <<_ACEOF
10168: #line $LINENO "configure"
10169: /* confdefs.h. */
10170: _ACEOF
10171: cat confdefs.h >>conftest.$ac_ext
10172: cat >>conftest.$ac_ext <<_ACEOF
10173: /* end confdefs.h. */
10174:
10175: int
10176: main ()
10177: {
10178: bool foo = true; if(foo) foo = false;
10179: ;
10180: return 0;
10181: }
10182: _ACEOF
10183: rm -f conftest.$ac_objext
10184: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185: (eval $ac_compile) 2>&5
10186: ac_status=$?
10187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188: (exit $ac_status); } &&
10189: { ac_try='test -s conftest.$ac_objext'
10190: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191: (eval $ac_try) 2>&5
10192: ac_status=$?
10193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194: (exit $ac_status); }; }; then
10195: fam_cv_have_bool=yes
10196: else
10197: echo "$as_me: failed program was:" >&5
10198: sed 's/^/| /' conftest.$ac_ext >&5
10199:
10200: fam_cv_have_bool=no
10201: fi
10202: rm -f conftest.$ac_objext conftest.$ac_ext
10203: fi
10204: echo "$as_me:$LINENO: result: $fam_cv_have_bool" >&5
10205: echo "${ECHO_T}$fam_cv_have_bool" >&6
10206: if test "$fam_cv_have_bool" = "yes"; then
10207: cat >>confdefs.h <<\_ACEOF
10208: #define HAVE_BOOL 1
10209: _ACEOF
10210:
10211: else
10212: cat >>confdefs.h <<\_ACEOF
10213: #define HAVE_BOOL 0
10214: _ACEOF
10215:
10216: fi
10217:
10218:
10219: echo "$as_me:$LINENO: checking for C++ namespace support" >&5
10220: echo $ECHO_N "checking for C++ namespace support... $ECHO_C" >&6
10221: if test "${fam_cv_have_namespace+set}" = set; then
10222: echo $ECHO_N "(cached) $ECHO_C" >&6
10223: else
10224: if test "$cross_compiling" = yes; then
10225: fam_cv_have_namespace=no
10226: else
10227: cat >conftest.$ac_ext <<_ACEOF
10228: #line $LINENO "configure"
10229: /* confdefs.h. */
10230: _ACEOF
10231: cat confdefs.h >>conftest.$ac_ext
10232: cat >>conftest.$ac_ext <<_ACEOF
10233: /* end confdefs.h. */
10234: namespace foo { int bar(void) { return 0; } } int main(void) { return foo::bar(); }
10235: _ACEOF
10236: rm -f conftest$ac_exeext
10237: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10238: (eval $ac_link) 2>&5
10239: ac_status=$?
10240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10242: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243: (eval $ac_try) 2>&5
10244: ac_status=$?
10245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246: (exit $ac_status); }; }; then
10247: fam_cv_have_namespace=yes
10248: else
10249: echo "$as_me: program exited with status $ac_status" >&5
10250: echo "$as_me: failed program was:" >&5
10251: sed 's/^/| /' conftest.$ac_ext >&5
10252:
10253: ( exit $ac_status )
10254: fam_cv_have_namespace=no
10255: fi
10256: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10257: fi
10258: fi
10259: echo "$as_me:$LINENO: result: $fam_cv_have_namespace" >&5
10260: echo "${ECHO_T}$fam_cv_have_namespace" >&6
10261: if test "$fam_cv_have_namespace" = "yes"; then
10262: cat >>confdefs.h <<\_ACEOF
10263: #define HAVE_NAMESPACE 1
10264: _ACEOF
10265:
10266: else
10267: cat >>confdefs.h <<\_ACEOF
10268: #define HAVE_NAMESPACE 0
10269: _ACEOF
10270:
10271: fi
10272:
10273: if test `uname` = 'IRIX' || test `uname` = 'IRIX64'; then
10274: cat >>confdefs.h <<\_ACEOF
10275: #define HAVE_IRIX_XTAB_VERIFICATION 1
10276: _ACEOF
10277:
10278: fi
10279:
10280:
10281:
10282:
10283:
10284: # Extract the first word of "echo", so it can be a program name with args.
10285: set dummy echo; ac_word=$2
10286: echo "$as_me:$LINENO: checking for $ac_word" >&5
10287: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10288: if test "${ac_cv_path_ECHO+set}" = set; then
10289: echo $ECHO_N "(cached) $ECHO_C" >&6
10290: else
10291: case $ECHO in
10292: [\\/]* | ?:[\\/]*)
10293: ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
10294: ;;
10295: *)
10296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297: for as_dir in $PATH
10298: do
10299: IFS=$as_save_IFS
10300: test -z "$as_dir" && as_dir=.
10301: for ac_exec_ext in '' $ac_executable_extensions; do
10302: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303: ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
10304: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10305: break 2
10306: fi
10307: done
10308: done
10309:
10310: ;;
10311: esac
10312: fi
10313: ECHO=$ac_cv_path_ECHO
10314:
10315: if test -n "$ECHO"; then
10316: echo "$as_me:$LINENO: result: $ECHO" >&5
10317: echo "${ECHO_T}$ECHO" >&6
10318: else
10319: echo "$as_me:$LINENO: result: no" >&5
10320: echo "${ECHO_T}no" >&6
10321: fi
10322:
10323: echo "$as_me:$LINENO: checking for echo -e flag" >&5
10324: echo $ECHO_N "checking for echo -e flag... $ECHO_C" >&6
10325: if test "`$ECHO -e foo`" = 'foo'; then
10326: ECHO="$ECHO -e"
10327: fi
10328:
10329: echo "$as_me:$LINENO: result: $ECHO" >&5
10330: echo "${ECHO_T}$ECHO" >&6
10331:
10332:
10333:
10334: SUPPORT_OBJS=
10335: snprintf_o=
10336:
10337: foo_o=
10338:
10339:
10340:
10341:
10342: ac_config_commands="$ac_config_commands default-1"
10343:
10344:
10345: ac_config_commands="$ac_config_commands default-2"
10346:
10347:
10348: ac_config_commands="$ac_config_commands default-3"
10349:
10350:
10351: ac_config_files="$ac_config_files Makefile build/Makefile build/rpm/Makefile build/rpm/rpm.spec fam/Makefile fam/fam.conf include/Makefile libfam/Makefile man/Makefile man/fam.1m support/Makefile test/Makefile util/Makefile util/editconf/Makefile"
10352: cat >confcache <<\_ACEOF
10353: # This file is a shell script that caches the results of configure
10354: # tests run on this system so they can be shared between configure
10355: # scripts and configure runs, see configure's option --config-cache.
10356: # It is not useful on other systems. If it contains results you don't
10357: # want to keep, you may remove or edit it.
10358: #
10359: # config.status only pays attention to the cache file if you give it
10360: # the --recheck option to rerun configure.
10361: #
10362: # `ac_cv_env_foo' variables (set or unset) will be overridden when
10363: # loading this file, other *unset* `ac_cv_foo' will be assigned the
10364: # following values.
10365:
10366: _ACEOF
10367:
10368: # The following way of writing the cache mishandles newlines in values,
10369: # but we know of no workaround that is simple, portable, and efficient.
10370: # So, don't put newlines in cache variables' values.
10371: # Ultrix sh set writes to stderr and can't be redirected directly,
10372: # and sets the high bit in the cache file unless we assign to the vars.
10373: {
10374: (set) 2>&1 |
10375: case `(ac_space=' '; set | grep ac_space) 2>&1` in
10376: *ac_space=\ *)
10377: # `set' does not quote correctly, so add quotes (double-quote
10378: # substitution turns \\\\ into \\, and sed turns \\ into \).
10379: sed -n \
10380: "s/'/'\\\\''/g;
10381: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10382: ;;
10383: *)
10384: # `set' quotes correctly as required by POSIX, so do not add quotes.
10385: sed -n \
10386: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10387: ;;
10388: esac;
10389: } |
10390: sed '
10391: t clear
10392: : clear
10393: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10394: t end
10395: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10396: : end' >>confcache
10397: if diff $cache_file confcache >/dev/null 2>&1; then :; else
10398: if test -w $cache_file; then
10399: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10400: cat confcache >$cache_file
10401: else
10402: echo "not updating unwritable cache $cache_file"
10403: fi
10404: fi
10405: rm -f confcache
10406:
10407: test "x$prefix" = xNONE && prefix=$ac_default_prefix
10408: # Let make expand exec_prefix.
10409: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10410:
10411: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10412: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10413: # trailing colons and then remove the whole line if VPATH becomes empty
10414: # (actually we leave an empty line to preserve line numbers).
10415: if test "x$srcdir" = x.; then
10416: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10417: s/:*\$(srcdir):*/:/;
10418: s/:*\${srcdir}:*/:/;
10419: s/:*@srcdir@:*/:/;
10420: s/^\([^=]*=[ ]*\):*/\1/;
10421: s/:*$//;
10422: s/^[^=]*=[ ]*$//;
10423: }'
10424: fi
10425:
10426: DEFS=-DHAVE_CONFIG_H
10427:
10428: ac_libobjs=
10429: ac_ltlibobjs=
10430: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10431: # 1. Remove the extension, and $U if already installed.
10432: ac_i=`echo "$ac_i" |
10433: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10434: # 2. Add them.
10435: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10436: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10437: done
10438: LIBOBJS=$ac_libobjs
10439:
10440: LTLIBOBJS=$ac_ltlibobjs
10441:
10442:
10443: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10444: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10445: Usually this means the macro was only invoked conditionally." >&5
10446: echo "$as_me: error: conditional \"AMDEP\" was never defined.
10447: Usually this means the macro was only invoked conditionally." >&2;}
10448: { (exit 1); exit 1; }; }
10449: fi
10450:
10451: : ${CONFIG_STATUS=./config.status}
10452: ac_clean_files_save=$ac_clean_files
10453: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10454: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10455: echo "$as_me: creating $CONFIG_STATUS" >&6;}
10456: cat >$CONFIG_STATUS <<_ACEOF
10457: #! $SHELL
10458: # Generated by $as_me.
10459: # Run this file to recreate the current configuration.
10460: # Compiler output produced by configure, useful for debugging
10461: # configure, is in config.log if it exists.
10462:
10463: debug=false
10464: ac_cs_recheck=false
10465: ac_cs_silent=false
10466: SHELL=\${CONFIG_SHELL-$SHELL}
10467: _ACEOF
10468:
10469: cat >>$CONFIG_STATUS <<\_ACEOF
10470: ## --------------------- ##
10471: ## M4sh Initialization. ##
10472: ## --------------------- ##
10473:
10474: # Be Bourne compatible
10475: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10476: emulate sh
10477: NULLCMD=:
10478: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10479: # is contrary to our usage. Disable this feature.
10480: alias -g '${1+"$@"}'='"$@"'
10481: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10482: set -o posix
10483: fi
10484:
10485: # Support unset when possible.
10486: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10487: as_unset=unset
10488: else
10489: as_unset=false
10490: fi
10491:
10492:
10493: # Work around bugs in pre-3.0 UWIN ksh.
10494: $as_unset ENV MAIL MAILPATH
10495: PS1='$ '
10496: PS2='> '
10497: PS4='+ '
10498:
10499: # NLS nuisances.
10500: for as_var in \
10501: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10502: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10503: LC_TELEPHONE LC_TIME
10504: do
10505: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10506: eval $as_var=C; export $as_var
10507: else
10508: $as_unset $as_var
10509: fi
10510: done
10511:
10512: # Required to use basename.
10513: if expr a : '\(a\)' >/dev/null 2>&1; then
10514: as_expr=expr
10515: else
10516: as_expr=false
10517: fi
10518:
10519: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10520: as_basename=basename
10521: else
10522: as_basename=false
10523: fi
10524:
10525:
10526: # Name of the executable.
10527: as_me=`$as_basename "$0" ||
10528: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10529: X"$0" : 'X\(//\)$' \| \
10530: X"$0" : 'X\(/\)$' \| \
10531: . : '\(.\)' 2>/dev/null ||
10532: echo X/"$0" |
10533: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10534: /^X\/\(\/\/\)$/{ s//\1/; q; }
10535: /^X\/\(\/\).*/{ s//\1/; q; }
10536: s/.*/./; q'`
10537:
10538:
10539: # PATH needs CR, and LINENO needs CR and PATH.
10540: # Avoid depending upon Character Ranges.
10541: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10542: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10543: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10544: as_cr_digits='0123456789'
10545: as_cr_alnum=$as_cr_Letters$as_cr_digits
10546:
10547: # The user is always right.
10548: if test "${PATH_SEPARATOR+set}" != set; then
10549: echo "#! /bin/sh" >conf$$.sh
10550: echo "exit 0" >>conf$$.sh
10551: chmod +x conf$$.sh
10552: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10553: PATH_SEPARATOR=';'
10554: else
10555: PATH_SEPARATOR=:
10556: fi
10557: rm -f conf$$.sh
10558: fi
10559:
10560:
10561: as_lineno_1=$LINENO
10562: as_lineno_2=$LINENO
10563: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10564: test "x$as_lineno_1" != "x$as_lineno_2" &&
10565: test "x$as_lineno_3" = "x$as_lineno_2" || {
10566: # Find who we are. Look in the path if we contain no path at all
10567: # relative or not.
10568: case $0 in
10569: *[\\/]* ) as_myself=$0 ;;
10570: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571: for as_dir in $PATH
10572: do
10573: IFS=$as_save_IFS
10574: test -z "$as_dir" && as_dir=.
10575: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10576: done
10577:
10578: ;;
10579: esac
10580: # We did not find ourselves, most probably we were run as `sh COMMAND'
10581: # in which case we are not to be found in the path.
10582: if test "x$as_myself" = x; then
10583: as_myself=$0
10584: fi
10585: if test ! -f "$as_myself"; then
10586: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10587: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10588: { (exit 1); exit 1; }; }
10589: fi
10590: case $CONFIG_SHELL in
10591: '')
10592: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10594: do
10595: IFS=$as_save_IFS
10596: test -z "$as_dir" && as_dir=.
10597: for as_base in sh bash ksh sh5; do
10598: case $as_dir in
10599: /*)
10600: if ("$as_dir/$as_base" -c '
10601: as_lineno_1=$LINENO
10602: as_lineno_2=$LINENO
10603: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10604: test "x$as_lineno_1" != "x$as_lineno_2" &&
10605: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10606: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10607: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10608: CONFIG_SHELL=$as_dir/$as_base
10609: export CONFIG_SHELL
10610: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10611: fi;;
10612: esac
10613: done
10614: done
10615: ;;
10616: esac
10617:
10618: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10619: # uniformly replaced by the line number. The first 'sed' inserts a
10620: # line-number line before each line; the second 'sed' does the real
10621: # work. The second script uses 'N' to pair each line-number line
10622: # with the numbered line, and appends trailing '-' during
10623: # substitution so that $LINENO is not a special case at line end.
10624: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10625: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10626: sed '=' <$as_myself |
10627: sed '
10628: N
10629: s,$,-,
10630: : loop
10631: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10632: t loop
10633: s,-$,,
10634: s,^['$as_cr_digits']*\n,,
10635: ' >$as_me.lineno &&
10636: chmod +x $as_me.lineno ||
10637: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10638: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10639: { (exit 1); exit 1; }; }
10640:
10641: # Don't try to exec as it changes $[0], causing all sort of problems
10642: # (the dirname of $[0] is not the place where we might find the
10643: # original and so on. Autoconf is especially sensible to this).
10644: . ./$as_me.lineno
10645: # Exit status is that of the last command.
10646: exit
10647: }
10648:
10649:
10650: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10651: *c*,-n*) ECHO_N= ECHO_C='
10652: ' ECHO_T=' ' ;;
10653: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10654: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10655: esac
10656:
10657: if expr a : '\(a\)' >/dev/null 2>&1; then
10658: as_expr=expr
10659: else
10660: as_expr=false
10661: fi
10662:
10663: rm -f conf$$ conf$$.exe conf$$.file
10664: echo >conf$$.file
10665: if ln -s conf$$.file conf$$ 2>/dev/null; then
10666: # We could just check for DJGPP; but this test a) works b) is more generic
10667: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10668: if test -f conf$$.exe; then
10669: # Don't use ln at all; we don't have any links
10670: as_ln_s='cp -p'
10671: else
10672: as_ln_s='ln -s'
10673: fi
10674: elif ln conf$$.file conf$$ 2>/dev/null; then
10675: as_ln_s=ln
10676: else
10677: as_ln_s='cp -p'
10678: fi
10679: rm -f conf$$ conf$$.exe conf$$.file
10680:
10681: if mkdir -p . 2>/dev/null; then
10682: as_mkdir_p=:
10683: else
10684: as_mkdir_p=false
10685: fi
10686:
10687: as_executable_p="test -f"
10688:
10689: # Sed expression to map a string onto a valid CPP name.
10690: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10691:
10692: # Sed expression to map a string onto a valid variable name.
10693: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10694:
10695:
10696: # IFS
10697: # We need space, tab and new line, in precisely that order.
10698: as_nl='
10699: '
10700: IFS=" $as_nl"
10701:
10702: # CDPATH.
10703: $as_unset CDPATH
10704:
10705: exec 6>&1
10706:
10707: # Open the log real soon, to keep \$[0] and so on meaningful, and to
10708: # report actual input values of CONFIG_FILES etc. instead of their
10709: # values after options handling. Logging --version etc. is OK.
10710: exec 5>>config.log
10711: {
10712: echo
10713: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10714: ## Running $as_me. ##
10715: _ASBOX
10716: } >&5
10717: cat >&5 <<_CSEOF
10718:
10719: This file was extended by $as_me, which was
10720: generated by GNU Autoconf 2.57. Invocation command line was
10721:
10722: CONFIG_FILES = $CONFIG_FILES
10723: CONFIG_HEADERS = $CONFIG_HEADERS
10724: CONFIG_LINKS = $CONFIG_LINKS
10725: CONFIG_COMMANDS = $CONFIG_COMMANDS
10726: $ $0 $@
10727:
10728: _CSEOF
10729: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10730: echo >&5
10731: _ACEOF
10732:
10733: # Files that config.status was made for.
10734: if test -n "$ac_config_files"; then
10735: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10736: fi
10737:
10738: if test -n "$ac_config_headers"; then
10739: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10740: fi
10741:
10742: if test -n "$ac_config_links"; then
10743: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10744: fi
10745:
10746: if test -n "$ac_config_commands"; then
10747: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10748: fi
10749:
10750: cat >>$CONFIG_STATUS <<\_ACEOF
10751:
10752: ac_cs_usage="\
10753: \`$as_me' instantiates files from templates according to the
10754: current configuration.
10755:
10756: Usage: $0 [OPTIONS] [FILE]...
10757:
10758: -h, --help print this help, then exit
10759: -V, --version print version number, then exit
10760: -q, --quiet do not print progress messages
10761: -d, --debug don't remove temporary files
10762: --recheck update $as_me by reconfiguring in the same conditions
10763: --file=FILE[:TEMPLATE]
10764: instantiate the configuration file FILE
10765: --header=FILE[:TEMPLATE]
10766: instantiate the configuration header FILE
10767:
10768: Configuration files:
10769: $config_files
10770:
10771: Configuration headers:
10772: $config_headers
10773:
10774: Configuration commands:
10775: $config_commands
10776:
10777: Report bugs to <bug-autoconf@gnu.org>."
10778: _ACEOF
10779:
10780: cat >>$CONFIG_STATUS <<_ACEOF
10781: ac_cs_version="\\
10782: config.status
10783: configured by $0, generated by GNU Autoconf 2.57,
10784: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10785:
10786: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10787: Free Software Foundation, Inc.
10788: This config.status script is free software; the Free Software Foundation
10789: gives unlimited permission to copy, distribute and modify it."
10790: srcdir=$srcdir
10791: INSTALL="$INSTALL"
10792: _ACEOF
10793:
10794: cat >>$CONFIG_STATUS <<\_ACEOF
10795: # If no file are specified by the user, then we need to provide default
10796: # value. By we need to know if files were specified by the user.
10797: ac_need_defaults=:
10798: while test $# != 0
10799: do
10800: case $1 in
10801: --*=*)
10802: ac_option=`expr "x$1" : 'x\([^=]*\)='`
10803: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10804: ac_shift=:
10805: ;;
10806: -*)
10807: ac_option=$1
10808: ac_optarg=$2
10809: ac_shift=shift
10810: ;;
10811: *) # This is not an option, so the user has probably given explicit
10812: # arguments.
10813: ac_option=$1
10814: ac_need_defaults=false;;
10815: esac
10816:
10817: case $ac_option in
10818: # Handling of the options.
10819: _ACEOF
10820: cat >>$CONFIG_STATUS <<\_ACEOF
10821: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10822: ac_cs_recheck=: ;;
10823: --version | --vers* | -V )
10824: echo "$ac_cs_version"; exit 0 ;;
10825: --he | --h)
10826: # Conflict between --help and --header
10827: { { echo "$as_me:$LINENO: error: ambiguous option: $1
10828: Try \`$0 --help' for more information." >&5
10829: echo "$as_me: error: ambiguous option: $1
10830: Try \`$0 --help' for more information." >&2;}
10831: { (exit 1); exit 1; }; };;
10832: --help | --hel | -h )
10833: echo "$ac_cs_usage"; exit 0 ;;
10834: --debug | --d* | -d )
10835: debug=: ;;
10836: --file | --fil | --fi | --f )
10837: $ac_shift
10838: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10839: ac_need_defaults=false;;
10840: --header | --heade | --head | --hea )
10841: $ac_shift
10842: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10843: ac_need_defaults=false;;
10844: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10845: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10846: ac_cs_silent=: ;;
10847:
10848: # This is an error.
10849: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10850: Try \`$0 --help' for more information." >&5
10851: echo "$as_me: error: unrecognized option: $1
10852: Try \`$0 --help' for more information." >&2;}
10853: { (exit 1); exit 1; }; } ;;
10854:
10855: *) ac_config_targets="$ac_config_targets $1" ;;
10856:
10857: esac
10858: shift
10859: done
10860:
10861: ac_configure_extra_args=
10862:
10863: if $ac_cs_silent; then
10864: exec 6>/dev/null
10865: ac_configure_extra_args="$ac_configure_extra_args --silent"
10866: fi
10867:
10868: _ACEOF
10869: cat >>$CONFIG_STATUS <<_ACEOF
10870: if \$ac_cs_recheck; then
10871: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10872: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10873: fi
10874:
10875: _ACEOF
10876:
10877: cat >>$CONFIG_STATUS <<_ACEOF
10878: #
10879: # INIT-COMMANDS section.
10880: #
10881:
10882: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10883:
10884:
10885: prefix=$prefix ; sysconfdir=$sysconfdir ; FAM_CONF=$FAM_CONF
10886:
10887: _ACEOF
10888:
10889:
10890:
10891: cat >>$CONFIG_STATUS <<\_ACEOF
10892: for ac_config_target in $ac_config_targets
10893: do
10894: case "$ac_config_target" in
10895: # Handling of arguments.
10896: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10897: "build/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
10898: "build/rpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/rpm/Makefile" ;;
10899: "build/rpm/rpm.spec" ) CONFIG_FILES="$CONFIG_FILES build/rpm/rpm.spec" ;;
10900: "fam/Makefile" ) CONFIG_FILES="$CONFIG_FILES fam/Makefile" ;;
10901: "fam/fam.conf" ) CONFIG_FILES="$CONFIG_FILES fam/fam.conf" ;;
10902: "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10903: "libfam/Makefile" ) CONFIG_FILES="$CONFIG_FILES libfam/Makefile" ;;
10904: "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10905: "man/fam.1m" ) CONFIG_FILES="$CONFIG_FILES man/fam.1m" ;;
10906: "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
10907: "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
10908: "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
10909: "util/editconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/editconf/Makefile" ;;
10910: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10911: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10912: "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
10913: "default-3" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;;
10914: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10915: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10916: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10917: { (exit 1); exit 1; }; };;
10918: esac
10919: done
10920:
10921: # If the user did not use the arguments to specify the items to instantiate,
10922: # then the envvar interface is used. Set only those that are not.
10923: # We use the long form for the default assignment because of an extremely
10924: # bizarre bug on SunOS 4.1.3.
10925: if $ac_need_defaults; then
10926: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10927: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10928: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10929: fi
10930:
10931: # Have a temporary directory for convenience. Make it in the build tree
10932: # simply because there is no reason to put it here, and in addition,
10933: # creating and moving files from /tmp can sometimes cause problems.
10934: # Create a temporary directory, and hook for its removal unless debugging.
10935: $debug ||
10936: {
10937: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10938: trap '{ (exit 1); exit 1; }' 1 2 13 15
10939: }
10940:
10941: # Create a (secure) tmp directory for tmp files.
10942:
10943: {
10944: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10945: test -n "$tmp" && test -d "$tmp"
10946: } ||
10947: {
10948: tmp=./confstat$$-$RANDOM
10949: (umask 077 && mkdir $tmp)
10950: } ||
10951: {
10952: echo "$me: cannot create a temporary directory in ." >&2
10953: { (exit 1); exit 1; }
10954: }
10955:
10956: _ACEOF
10957:
10958: cat >>$CONFIG_STATUS <<_ACEOF
10959:
10960: #
10961: # CONFIG_FILES section.
10962: #
10963:
10964: # No need to generate the scripts if there are no CONFIG_FILES.
10965: # This happens for instance when ./config.status config.h
10966: if test -n "\$CONFIG_FILES"; then
10967: # Protect against being on the right side of a sed subst in config.status.
10968: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10969: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10970: s,@SHELL@,$SHELL,;t t
10971: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10972: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10973: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10974: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10975: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10976: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10977: s,@exec_prefix@,$exec_prefix,;t t
10978: s,@prefix@,$prefix,;t t
10979: s,@program_transform_name@,$program_transform_name,;t t
10980: s,@bindir@,$bindir,;t t
10981: s,@sbindir@,$sbindir,;t t
10982: s,@libexecdir@,$libexecdir,;t t
10983: s,@datadir@,$datadir,;t t
10984: s,@sysconfdir@,$sysconfdir,;t t
10985: s,@sharedstatedir@,$sharedstatedir,;t t
10986: s,@localstatedir@,$localstatedir,;t t
10987: s,@libdir@,$libdir,;t t
10988: s,@includedir@,$includedir,;t t
10989: s,@oldincludedir@,$oldincludedir,;t t
10990: s,@infodir@,$infodir,;t t
10991: s,@mandir@,$mandir,;t t
10992: s,@build_alias@,$build_alias,;t t
10993: s,@host_alias@,$host_alias,;t t
10994: s,@target_alias@,$target_alias,;t t
10995: s,@DEFS@,$DEFS,;t t
10996: s,@ECHO_C@,$ECHO_C,;t t
10997: s,@ECHO_N@,$ECHO_N,;t t
10998: s,@ECHO_T@,$ECHO_T,;t t
10999: s,@LIBS@,$LIBS,;t t
11000: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11001: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11002: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11003: s,@PACKAGE@,$PACKAGE,;t t
11004: s,@VERSION@,$VERSION,;t t
11005: s,@ACLOCAL@,$ACLOCAL,;t t
11006: s,@AUTOCONF@,$AUTOCONF,;t t
11007: s,@AUTOMAKE@,$AUTOMAKE,;t t
11008: s,@AUTOHEADER@,$AUTOHEADER,;t t
11009: s,@MAKEINFO@,$MAKEINFO,;t t
11010: s,@AMTAR@,$AMTAR,;t t
11011: s,@install_sh@,$install_sh,;t t
11012: s,@STRIP@,$STRIP,;t t
11013: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11014: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11015: s,@AWK@,$AWK,;t t
11016: s,@SET_MAKE@,$SET_MAKE,;t t
11017: s,@build@,$build,;t t
11018: s,@build_cpu@,$build_cpu,;t t
11019: s,@build_vendor@,$build_vendor,;t t
11020: s,@build_os@,$build_os,;t t
11021: s,@host@,$host,;t t
11022: s,@host_cpu@,$host_cpu,;t t
11023: s,@host_vendor@,$host_vendor,;t t
11024: s,@host_os@,$host_os,;t t
11025: s,@CC@,$CC,;t t
11026: s,@CFLAGS@,$CFLAGS,;t t
11027: s,@LDFLAGS@,$LDFLAGS,;t t
11028: s,@CPPFLAGS@,$CPPFLAGS,;t t
11029: s,@ac_ct_CC@,$ac_ct_CC,;t t
11030: s,@EXEEXT@,$EXEEXT,;t t
11031: s,@OBJEXT@,$OBJEXT,;t t
11032: s,@DEPDIR@,$DEPDIR,;t t
11033: s,@am__include@,$am__include,;t t
11034: s,@am__quote@,$am__quote,;t t
11035: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11036: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11037: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11038: s,@CCDEPMODE@,$CCDEPMODE,;t t
11039: s,@LN_S@,$LN_S,;t t
11040: s,@ECHO@,$ECHO,;t t
11041: s,@RANLIB@,$RANLIB,;t t
11042: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11043: s,@CPP@,$CPP,;t t
11044: s,@EGREP@,$EGREP,;t t
11045: s,@LIBTOOL@,$LIBTOOL,;t t
11046: s,@FAMPROTOINC@,$FAMPROTOINC,;t t
11047: s,@FAM_CONF@,$FAM_CONF,;t t
11048: s,@CXX@,$CXX,;t t
11049: s,@CXXFLAGS@,$CXXFLAGS,;t t
11050: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11051: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11052: s,@CXXCPP@,$CXXCPP,;t t
11053: s,@TAR@,$TAR,;t t
11054: s,@LDCONFIG@,$LDCONFIG,;t t
11055: s,@IMON_FUNCS@,$IMON_FUNCS,;t t
11056: s,@MKDEPFILE@,$MKDEPFILE,;t t
11057: s,@snprintf_o@,$snprintf_o,;t t
11058: s,@foo_o@,$foo_o,;t t
11059: s,@LIBOBJS@,$LIBOBJS,;t t
11060: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11061: CEOF
11062:
11063: _ACEOF
11064:
11065: cat >>$CONFIG_STATUS <<\_ACEOF
11066: # Split the substitutions into bite-sized pieces for seds with
11067: # small command number limits, like on Digital OSF/1 and HP-UX.
11068: ac_max_sed_lines=48
11069: ac_sed_frag=1 # Number of current file.
11070: ac_beg=1 # First line for current file.
11071: ac_end=$ac_max_sed_lines # Line after last line for current file.
11072: ac_more_lines=:
11073: ac_sed_cmds=
11074: while $ac_more_lines; do
11075: if test $ac_beg -gt 1; then
11076: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11077: else
11078: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11079: fi
11080: if test ! -s $tmp/subs.frag; then
11081: ac_more_lines=false
11082: else
11083: # The purpose of the label and of the branching condition is to
11084: # speed up the sed processing (if there are no `@' at all, there
11085: # is no need to browse any of the substitutions).
11086: # These are the two extra sed commands mentioned above.
11087: (echo ':t
11088: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11089: if test -z "$ac_sed_cmds"; then
11090: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11091: else
11092: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11093: fi
11094: ac_sed_frag=`expr $ac_sed_frag + 1`
11095: ac_beg=$ac_end
11096: ac_end=`expr $ac_end + $ac_max_sed_lines`
11097: fi
11098: done
11099: if test -z "$ac_sed_cmds"; then
11100: ac_sed_cmds=cat
11101: fi
11102: fi # test -n "$CONFIG_FILES"
11103:
11104: _ACEOF
11105: cat >>$CONFIG_STATUS <<\_ACEOF
11106: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11107: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11108: case $ac_file in
11109: - | *:- | *:-:* ) # input from stdin
11110: cat >$tmp/stdin
11111: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11112: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11113: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11114: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11115: * ) ac_file_in=$ac_file.in ;;
11116: esac
11117:
11118: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11119: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11120: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11121: X"$ac_file" : 'X\(//\)[^/]' \| \
11122: X"$ac_file" : 'X\(//\)$' \| \
11123: X"$ac_file" : 'X\(/\)' \| \
11124: . : '\(.\)' 2>/dev/null ||
11125: echo X"$ac_file" |
11126: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11127: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11128: /^X\(\/\/\)$/{ s//\1/; q; }
11129: /^X\(\/\).*/{ s//\1/; q; }
11130: s/.*/./; q'`
11131: { if $as_mkdir_p; then
11132: mkdir -p "$ac_dir"
11133: else
11134: as_dir="$ac_dir"
11135: as_dirs=
11136: while test ! -d "$as_dir"; do
11137: as_dirs="$as_dir $as_dirs"
11138: as_dir=`(dirname "$as_dir") 2>/dev/null ||
11139: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11140: X"$as_dir" : 'X\(//\)[^/]' \| \
11141: X"$as_dir" : 'X\(//\)$' \| \
11142: X"$as_dir" : 'X\(/\)' \| \
11143: . : '\(.\)' 2>/dev/null ||
11144: echo X"$as_dir" |
11145: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11146: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11147: /^X\(\/\/\)$/{ s//\1/; q; }
11148: /^X\(\/\).*/{ s//\1/; q; }
11149: s/.*/./; q'`
11150: done
11151: test ! -n "$as_dirs" || mkdir $as_dirs
11152: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11153: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11154: { (exit 1); exit 1; }; }; }
11155:
11156: ac_builddir=.
11157:
11158: if test "$ac_dir" != .; then
11159: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11160: # A "../" for each directory in $ac_dir_suffix.
11161: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11162: else
11163: ac_dir_suffix= ac_top_builddir=
11164: fi
11165:
11166: case $srcdir in
11167: .) # No --srcdir option. We are building in place.
11168: ac_srcdir=.
11169: if test -z "$ac_top_builddir"; then
11170: ac_top_srcdir=.
11171: else
11172: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11173: fi ;;
11174: [\\/]* | ?:[\\/]* ) # Absolute path.
11175: ac_srcdir=$srcdir$ac_dir_suffix;
11176: ac_top_srcdir=$srcdir ;;
11177: *) # Relative path.
11178: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11179: ac_top_srcdir=$ac_top_builddir$srcdir ;;
11180: esac
11181: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11182: # absolute.
11183: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11184: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11185: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11186: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11187:
11188:
11189: case $INSTALL in
11190: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11191: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11192: esac
11193:
11194: if test x"$ac_file" != x-; then
11195: { echo "$as_me:$LINENO: creating $ac_file" >&5
11196: echo "$as_me: creating $ac_file" >&6;}
11197: rm -f "$ac_file"
11198: fi
11199: # Let's still pretend it is `configure' which instantiates (i.e., don't
11200: # use $as_me), people would be surprised to read:
11201: # /* config.h. Generated by config.status. */
11202: if test x"$ac_file" = x-; then
11203: configure_input=
11204: else
11205: configure_input="$ac_file. "
11206: fi
11207: configure_input=$configure_input"Generated from `echo $ac_file_in |
11208: sed 's,.*/,,'` by configure."
11209:
11210: # First look for the input files in the build tree, otherwise in the
11211: # src tree.
11212: ac_file_inputs=`IFS=:
11213: for f in $ac_file_in; do
11214: case $f in
11215: -) echo $tmp/stdin ;;
11216: [\\/$]*)
11217: # Absolute (can't be DOS-style, as IFS=:)
11218: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11219: echo "$as_me: error: cannot find input file: $f" >&2;}
11220: { (exit 1); exit 1; }; }
11221: echo $f;;
11222: *) # Relative
11223: if test -f "$f"; then
11224: # Build tree
11225: echo $f
11226: elif test -f "$srcdir/$f"; then
11227: # Source tree
11228: echo $srcdir/$f
11229: else
11230: # /dev/null tree
11231: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11232: echo "$as_me: error: cannot find input file: $f" >&2;}
11233: { (exit 1); exit 1; }; }
11234: fi;;
11235: esac
11236: done` || { (exit 1); exit 1; }
11237: _ACEOF
11238: cat >>$CONFIG_STATUS <<_ACEOF
11239: sed "$ac_vpsub
11240: $extrasub
11241: _ACEOF
11242: cat >>$CONFIG_STATUS <<\_ACEOF
11243: :t
11244: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11245: s,@configure_input@,$configure_input,;t t
11246: s,@srcdir@,$ac_srcdir,;t t
11247: s,@abs_srcdir@,$ac_abs_srcdir,;t t
11248: s,@top_srcdir@,$ac_top_srcdir,;t t
11249: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11250: s,@builddir@,$ac_builddir,;t t
11251: s,@abs_builddir@,$ac_abs_builddir,;t t
11252: s,@top_builddir@,$ac_top_builddir,;t t
11253: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11254: s,@INSTALL@,$ac_INSTALL,;t t
11255: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11256: rm -f $tmp/stdin
11257: if test x"$ac_file" != x-; then
11258: mv $tmp/out $ac_file
11259: else
11260: cat $tmp/out
11261: rm -f $tmp/out
11262: fi
11263:
11264: done
11265: _ACEOF
11266: cat >>$CONFIG_STATUS <<\_ACEOF
11267:
11268: #
11269: # CONFIG_HEADER section.
11270: #
11271:
11272: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11273: # NAME is the cpp macro being defined and VALUE is the value it is being given.
11274: #
11275: # ac_d sets the value in "#define NAME VALUE" lines.
11276: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11277: ac_dB='[ ].*$,\1#\2'
11278: ac_dC=' '
11279: ac_dD=',;t'
11280: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11281: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11282: ac_uB='$,\1#\2define\3'
11283: ac_uC=' '
11284: ac_uD=',;t'
11285:
11286: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11287: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11288: case $ac_file in
11289: - | *:- | *:-:* ) # input from stdin
11290: cat >$tmp/stdin
11291: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11292: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11293: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11294: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11295: * ) ac_file_in=$ac_file.in ;;
11296: esac
11297:
11298: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11299: echo "$as_me: creating $ac_file" >&6;}
11300:
11301: # First look for the input files in the build tree, otherwise in the
11302: # src tree.
11303: ac_file_inputs=`IFS=:
11304: for f in $ac_file_in; do
11305: case $f in
11306: -) echo $tmp/stdin ;;
11307: [\\/$]*)
11308: # Absolute (can't be DOS-style, as IFS=:)
11309: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11310: echo "$as_me: error: cannot find input file: $f" >&2;}
11311: { (exit 1); exit 1; }; }
11312: echo $f;;
11313: *) # Relative
11314: if test -f "$f"; then
11315: # Build tree
11316: echo $f
11317: elif test -f "$srcdir/$f"; then
11318: # Source tree
11319: echo $srcdir/$f
11320: else
11321: # /dev/null tree
11322: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11323: echo "$as_me: error: cannot find input file: $f" >&2;}
11324: { (exit 1); exit 1; }; }
11325: fi;;
11326: esac
11327: done` || { (exit 1); exit 1; }
11328: # Remove the trailing spaces.
11329: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11330:
11331: _ACEOF
11332:
11333: # Transform confdefs.h into two sed scripts, `conftest.defines' and
11334: # `conftest.undefs', that substitutes the proper values into
11335: # config.h.in to produce config.h. The first handles `#define'
11336: # templates, and the second `#undef' templates.
11337: # And first: Protect against being on the right side of a sed subst in
11338: # config.status. Protect against being in an unquoted here document
11339: # in config.status.
11340: rm -f conftest.defines conftest.undefs
11341: # Using a here document instead of a string reduces the quoting nightmare.
11342: # Putting comments in sed scripts is not portable.
11343: #
11344: # `end' is used to avoid that the second main sed command (meant for
11345: # 0-ary CPP macros) applies to n-ary macro definitions.
11346: # See the Autoconf documentation for `clear'.
11347: cat >confdef2sed.sed <<\_ACEOF
11348: s/[\\&,]/\\&/g
11349: s,[\\$`],\\&,g
11350: t clear
11351: : clear
11352: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11353: t end
11354: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11355: : end
11356: _ACEOF
11357: # If some macros were called several times there might be several times
11358: # the same #defines, which is useless. Nevertheless, we may not want to
11359: # sort them, since we want the *last* AC-DEFINE to be honored.
11360: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11361: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11362: rm -f confdef2sed.sed
11363:
11364: # This sed command replaces #undef with comments. This is necessary, for
11365: # example, in the case of _POSIX_SOURCE, which is predefined and required
11366: # on some systems where configure will not decide to define it.
11367: cat >>conftest.undefs <<\_ACEOF
11368: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11369: _ACEOF
11370:
11371: # Break up conftest.defines because some shells have a limit on the size
11372: # of here documents, and old seds have small limits too (100 cmds).
11373: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11374: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11375: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11376: echo ' :' >>$CONFIG_STATUS
11377: rm -f conftest.tail
11378: while grep . conftest.defines >/dev/null
11379: do
11380: # Write a limited-size here document to $tmp/defines.sed.
11381: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11382: # Speed up: don't consider the non `#define' lines.
11383: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11384: # Work around the forget-to-reset-the-flag bug.
11385: echo 't clr' >>$CONFIG_STATUS
11386: echo ': clr' >>$CONFIG_STATUS
11387: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11388: echo 'CEOF
11389: sed -f $tmp/defines.sed $tmp/in >$tmp/out
11390: rm -f $tmp/in
11391: mv $tmp/out $tmp/in
11392: ' >>$CONFIG_STATUS
11393: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11394: rm -f conftest.defines
11395: mv conftest.tail conftest.defines
11396: done
11397: rm -f conftest.defines
11398: echo ' fi # grep' >>$CONFIG_STATUS
11399: echo >>$CONFIG_STATUS
11400:
11401: # Break up conftest.undefs because some shells have a limit on the size
11402: # of here documents, and old seds have small limits too (100 cmds).
11403: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11404: rm -f conftest.tail
11405: while grep . conftest.undefs >/dev/null
11406: do
11407: # Write a limited-size here document to $tmp/undefs.sed.
11408: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11409: # Speed up: don't consider the non `#undef'
11410: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11411: # Work around the forget-to-reset-the-flag bug.
11412: echo 't clr' >>$CONFIG_STATUS
11413: echo ': clr' >>$CONFIG_STATUS
11414: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11415: echo 'CEOF
11416: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11417: rm -f $tmp/in
11418: mv $tmp/out $tmp/in
11419: ' >>$CONFIG_STATUS
11420: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11421: rm -f conftest.undefs
11422: mv conftest.tail conftest.undefs
11423: done
11424: rm -f conftest.undefs
11425:
11426: cat >>$CONFIG_STATUS <<\_ACEOF
11427: # Let's still pretend it is `configure' which instantiates (i.e., don't
11428: # use $as_me), people would be surprised to read:
11429: # /* config.h. Generated by config.status. */
11430: if test x"$ac_file" = x-; then
11431: echo "/* Generated by configure. */" >$tmp/config.h
11432: else
11433: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11434: fi
11435: cat $tmp/in >>$tmp/config.h
11436: rm -f $tmp/in
11437: if test x"$ac_file" != x-; then
11438: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11439: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11440: echo "$as_me: $ac_file is unchanged" >&6;}
11441: else
11442: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11443: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11444: X"$ac_file" : 'X\(//\)[^/]' \| \
11445: X"$ac_file" : 'X\(//\)$' \| \
11446: X"$ac_file" : 'X\(/\)' \| \
11447: . : '\(.\)' 2>/dev/null ||
11448: echo X"$ac_file" |
11449: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11450: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11451: /^X\(\/\/\)$/{ s//\1/; q; }
11452: /^X\(\/\).*/{ s//\1/; q; }
11453: s/.*/./; q'`
11454: { if $as_mkdir_p; then
11455: mkdir -p "$ac_dir"
11456: else
11457: as_dir="$ac_dir"
11458: as_dirs=
11459: while test ! -d "$as_dir"; do
11460: as_dirs="$as_dir $as_dirs"
11461: as_dir=`(dirname "$as_dir") 2>/dev/null ||
11462: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11463: X"$as_dir" : 'X\(//\)[^/]' \| \
11464: X"$as_dir" : 'X\(//\)$' \| \
11465: X"$as_dir" : 'X\(/\)' \| \
11466: . : '\(.\)' 2>/dev/null ||
11467: echo X"$as_dir" |
11468: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11469: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11470: /^X\(\/\/\)$/{ s//\1/; q; }
11471: /^X\(\/\).*/{ s//\1/; q; }
11472: s/.*/./; q'`
11473: done
11474: test ! -n "$as_dirs" || mkdir $as_dirs
11475: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11476: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11477: { (exit 1); exit 1; }; }; }
11478:
11479: rm -f $ac_file
11480: mv $tmp/config.h $ac_file
11481: fi
11482: else
11483: cat $tmp/config.h
11484: rm -f $tmp/config.h
11485: fi
11486: # Run the commands associated with the file.
11487: case $ac_file in
11488: config.h ) # update the timestamp
11489: echo 'timestamp for config.h' >"./stamp-h1"
11490: ;;
11491: esac
11492: done
11493: _ACEOF
11494: cat >>$CONFIG_STATUS <<\_ACEOF
11495:
11496: #
11497: # CONFIG_COMMANDS section.
11498: #
11499: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11500: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11501: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11502: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11503: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11504: X"$ac_dest" : 'X\(//\)[^/]' \| \
11505: X"$ac_dest" : 'X\(//\)$' \| \
11506: X"$ac_dest" : 'X\(/\)' \| \
11507: . : '\(.\)' 2>/dev/null ||
11508: echo X"$ac_dest" |
11509: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11510: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11511: /^X\(\/\/\)$/{ s//\1/; q; }
11512: /^X\(\/\).*/{ s//\1/; q; }
11513: s/.*/./; q'`
11514: ac_builddir=.
11515:
11516: if test "$ac_dir" != .; then
11517: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11518: # A "../" for each directory in $ac_dir_suffix.
11519: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11520: else
11521: ac_dir_suffix= ac_top_builddir=
11522: fi
11523:
11524: case $srcdir in
11525: .) # No --srcdir option. We are building in place.
11526: ac_srcdir=.
11527: if test -z "$ac_top_builddir"; then
11528: ac_top_srcdir=.
11529: else
11530: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11531: fi ;;
11532: [\\/]* | ?:[\\/]* ) # Absolute path.
11533: ac_srcdir=$srcdir$ac_dir_suffix;
11534: ac_top_srcdir=$srcdir ;;
11535: *) # Relative path.
11536: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11537: ac_top_srcdir=$ac_top_builddir$srcdir ;;
11538: esac
11539: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11540: # absolute.
11541: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11542: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11543: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11544: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11545:
11546:
11547: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11548: echo "$as_me: executing $ac_dest commands" >&6;}
11549: case $ac_dest in
11550: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11551: # Strip MF so we end up with the name of the file.
11552: mf=`echo "$mf" | sed -e 's/:.*$//'`
11553: # Check whether this is an Automake generated Makefile or not.
11554: # We used to match only the files named `Makefile.in', but
11555: # some people rename them; so instead we look at the file content.
11556: # Grep'ing the first line is not enough: some people post-process
11557: # each Makefile.in and add a new line on top of each file to say so.
11558: # So let's grep whole file.
11559: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11560: dirpart=`(dirname "$mf") 2>/dev/null ||
11561: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11562: X"$mf" : 'X\(//\)[^/]' \| \
11563: X"$mf" : 'X\(//\)$' \| \
11564: X"$mf" : 'X\(/\)' \| \
11565: . : '\(.\)' 2>/dev/null ||
11566: echo X"$mf" |
11567: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11568: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11569: /^X\(\/\/\)$/{ s//\1/; q; }
11570: /^X\(\/\).*/{ s//\1/; q; }
11571: s/.*/./; q'`
11572: else
11573: continue
11574: fi
11575: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11576: # Extract the definition of DEP_FILES from the Makefile without
11577: # running `make'.
11578: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11579: test -z "$DEPDIR" && continue
11580: # When using ansi2knr, U may be empty or an underscore; expand it
11581: U=`sed -n -e '/^U = / s///p' < "$mf"`
11582: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11583: # We invoke sed twice because it is the simplest approach to
11584: # changing $(DEPDIR) to its actual value in the expansion.
11585: for file in `sed -n -e '
11586: /^DEP_FILES = .*\\\\$/ {
11587: s/^DEP_FILES = //
11588: :loop
11589: s/\\\\$//
11590: p
11591: n
11592: /\\\\$/ b loop
11593: p
11594: }
11595: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11596: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11597: # Make sure the directory exists.
11598: test -f "$dirpart/$file" && continue
11599: fdir=`(dirname "$file") 2>/dev/null ||
11600: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11601: X"$file" : 'X\(//\)[^/]' \| \
11602: X"$file" : 'X\(//\)$' \| \
11603: X"$file" : 'X\(/\)' \| \
11604: . : '\(.\)' 2>/dev/null ||
11605: echo X"$file" |
11606: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11607: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11608: /^X\(\/\/\)$/{ s//\1/; q; }
11609: /^X\(\/\).*/{ s//\1/; q; }
11610: s/.*/./; q'`
11611: { if $as_mkdir_p; then
11612: mkdir -p $dirpart/$fdir
11613: else
11614: as_dir=$dirpart/$fdir
11615: as_dirs=
11616: while test ! -d "$as_dir"; do
11617: as_dirs="$as_dir $as_dirs"
11618: as_dir=`(dirname "$as_dir") 2>/dev/null ||
11619: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620: X"$as_dir" : 'X\(//\)[^/]' \| \
11621: X"$as_dir" : 'X\(//\)$' \| \
11622: X"$as_dir" : 'X\(/\)' \| \
11623: . : '\(.\)' 2>/dev/null ||
11624: echo X"$as_dir" |
11625: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11626: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11627: /^X\(\/\/\)$/{ s//\1/; q; }
11628: /^X\(\/\).*/{ s//\1/; q; }
11629: s/.*/./; q'`
11630: done
11631: test ! -n "$as_dirs" || mkdir $as_dirs
11632: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11633: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11634: { (exit 1); exit 1; }; }; }
11635:
11636: # echo "creating $dirpart/$file"
11637: echo '# dummy' > "$dirpart/$file"
11638: done
11639: done
11640: ;;
11641: default-1 )
11642: if test `uname` = 'IRIX' || test `uname` = 'IRIX64'; then
11643: TMPFILE=configure.tmp
11644: for f in $CONFIG_FILES; do
11645: if test `basename $f` != 'Makefile'; then
11646: # echo "skipping $f"
11647: continue
11648: fi
11649: echo "adding #!gmake to $f"
11650: if test -s $TMPFILE; then
11651: echo "gahh, file $TMPFILE already exists"
11652: exit 1
11653: fi
11654: mv $f $TMPFILE
11655: echo '#!gmake' > $f
11656: cat $TMPFILE >> $f
11657: rm $TMPFILE
11658: done
11659: fi
11660: ;;
11661: default-2 )
11662: TMPFILE=configure.tmp
11663: for f in $CONFIG_FILES; do
11664: if test `basename $f` != 'fam.conf'; then
11665: continue
11666: fi
11667: echo "removing maintainer comments from $f"
11668: if test -s $TMPFILE; then
11669: echo "gahh, file $TMPFILE already exists"
11670: exit 1
11671: fi
11672: mv $f $TMPFILE
11673: sed -e "/^##/ d" < $TMPFILE > $f
11674: rm $TMPFILE
11675: done
11676: ;;
11677: default-3 )
11678: TMPFILE=configure.tmp
11679: for f in $CONFIG_FILES; do
11680: if test `basename $f` != 'fam.1m'; then
11681: continue
11682: fi
11683: echo "replacing XXX_FAM_CONF with $FAM_CONF and removing maintainer comments in $f"
11684: if test -s $TMPFILE; then
11685: echo "gahh, file $TMPFILE already exists"
11686: exit 1
11687: fi
11688: mv $f $TMPFILE
11689: if test `uname` = 'IRIX' || test `uname` = 'IRIX64'; then
11690: # remove leading .\"IRIX parts so that the lines will be
11691: # printed on IRIX.
11692: sed -e '/^\.\\"##/ d' -e "s#XXX_FAM_CONF#$FAM_CONF#" -e 's/^\.\\"IRIX[ ]\{0,2\}//' < $TMPFILE > $f
11693: else
11694: sed -e '/^\.\\"##/ d' -e "s#XXX_FAM_CONF#$FAM_CONF#" -e '/^\.\\"IRIX/ d' < $TMPFILE > $f
11695: fi
11696: rm $TMPFILE
11697: done
11698: ;;
11699: esac
11700: done
11701: _ACEOF
11702:
11703: cat >>$CONFIG_STATUS <<\_ACEOF
11704:
11705: { (exit 0); exit 0; }
11706: _ACEOF
11707: chmod +x $CONFIG_STATUS
11708: ac_clean_files=$ac_clean_files_save
11709:
11710:
11711: # configure is writing to config.log, and then calls config.status.
11712: # config.status does its own redirection, appending to config.log.
11713: # Unfortunately, on DOS this fails, as config.log is still kept open
11714: # by configure, so config.status won't be able to write to it; its
11715: # output is simply discarded. So we exec the FD to /dev/null,
11716: # effectively closing config.log, so it can be properly (re)opened and
11717: # appended to by config.status. When coming back to configure, we
11718: # need to make the FD available again.
11719: if test "$no_create" != yes; then
11720: ac_cs_success=:
11721: ac_config_status_args=
11722: test "$silent" = yes &&
11723: ac_config_status_args="$ac_config_status_args --quiet"
11724: exec 5>/dev/null
11725: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11726: exec 5>>config.log
11727: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11728: # would make configure fail if this is the last instruction.
11729: $ac_cs_success || { (exit 1); exit 1; }
11730: fi
11731:
11732:
11733: if test "$have_imon" != 'yes'; then
11734: cat << EOF
11735:
11736: ******************************************************************
11737: * *
11738: * Note! Kernel support for imon was not detected. fam should *
11739: * still work, but it will have to poll monitored filesystems *
11740: * instead of receiving file operation events from the kernel. *
11741: * *
11742: * If you think your kernel has imon, see what this script is *
11743: * looking for (on Linux, probably /usr/include/linux/imon.h), *
11744: * fix the problem (perhaps by adding a link), and run this *
11745: * again. (You probably need to remove config.cache first.) *
11746: * *
11747: * See http://oss.sgi.com/projects/fam/ for more information. *
11748: * *
11749: ******************************************************************
11750:
11751: EOF
11752: fi
11753:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>