1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68 for sntp 4.2.6p5.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1
176:
177: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181: PATH=/empty FPATH=/empty; export PATH FPATH
182: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184: if (eval "$as_required") 2>/dev/null; then :
185: as_have_required=yes
186: else
187: as_have_required=no
188: fi
189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190:
191: else
192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193: as_found=false
194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195: do
196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
198: as_found=:
199: case $as_dir in #(
200: /*)
201: for as_base in sh bash ksh sh5; do
202: # Try only shells that exist, to save several forks.
203: as_shell=$as_dir/$as_base
204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206: CONFIG_SHELL=$as_shell as_have_required=yes
207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: break 2
209: fi
210: fi
211: done;;
212: esac
213: as_found=false
214: done
215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217: CONFIG_SHELL=$SHELL as_have_required=yes
218: fi; }
219: IFS=$as_save_IFS
220:
221:
222: if test "x$CONFIG_SHELL" != x; then :
223: # We cannot yet assume a decent shell, so we have to provide a
224: # neutralization value for shells without unset; and this also
225: # works around shells that cannot unset nonexistent variables.
226: # Preserve -v and -x to the replacement shell.
227: BASH_ENV=/dev/null
228: ENV=/dev/null
229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230: export CONFIG_SHELL
231: case $- in # ((((
232: *v*x* | *x*v* ) as_opts=-vx ;;
233: *v* ) as_opts=-v ;;
234: *x* ) as_opts=-x ;;
235: * ) as_opts= ;;
236: esac
237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238: fi
239:
240: if test x$as_have_required = xno; then :
241: $as_echo "$0: This script requires a shell more modern than all"
242: $as_echo "$0: the shells that I found on your system."
243: if test x${ZSH_VERSION+set} = xset ; then
244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246: else
247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248: $0: including any error possibly output before this
249: $0: message. Then install a modern shell, or manually run
250: $0: the script under such a shell if you do have one."
251: fi
252: exit 1
253: fi
254: fi
255: fi
256: SHELL=${CONFIG_SHELL-/bin/sh}
257: export SHELL
258: # Unset more variables known to interfere with behavior of common tools.
259: CLICOLOR_FORCE= GREP_OPTIONS=
260: unset CLICOLOR_FORCE GREP_OPTIONS
261:
262: ## --------------------- ##
263: ## M4sh Shell Functions. ##
264: ## --------------------- ##
265: # as_fn_unset VAR
266: # ---------------
267: # Portably unset VAR.
268: as_fn_unset ()
269: {
270: { eval $1=; unset $1;}
271: }
272: as_unset=as_fn_unset
273:
274: # as_fn_set_status STATUS
275: # -----------------------
276: # Set $? to STATUS, without forking.
277: as_fn_set_status ()
278: {
279: return $1
280: } # as_fn_set_status
281:
282: # as_fn_exit STATUS
283: # -----------------
284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285: as_fn_exit ()
286: {
287: set +e
288: as_fn_set_status $1
289: exit $1
290: } # as_fn_exit
291:
292: # as_fn_mkdir_p
293: # -------------
294: # Create "$as_dir" as a directory, including parents if necessary.
295: as_fn_mkdir_p ()
296: {
297:
298: case $as_dir in #(
299: -*) as_dir=./$as_dir;;
300: esac
301: test -d "$as_dir" || eval $as_mkdir_p || {
302: as_dirs=
303: while :; do
304: case $as_dir in #(
305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306: *) as_qdir=$as_dir;;
307: esac
308: as_dirs="'$as_qdir' $as_dirs"
309: as_dir=`$as_dirname -- "$as_dir" ||
310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311: X"$as_dir" : 'X\(//\)[^/]' \| \
312: X"$as_dir" : 'X\(//\)$' \| \
313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314: $as_echo X"$as_dir" |
315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\/\)[^/].*/{
320: s//\1/
321: q
322: }
323: /^X\(\/\/\)$/{
324: s//\1/
325: q
326: }
327: /^X\(\/\).*/{
328: s//\1/
329: q
330: }
331: s/.*/./; q'`
332: test -d "$as_dir" && break
333: done
334: test -z "$as_dirs" || eval "mkdir $as_dirs"
335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336:
337:
338: } # as_fn_mkdir_p
339: # as_fn_append VAR VALUE
340: # ----------------------
341: # Append the text in VALUE to the end of the definition contained in VAR. Take
342: # advantage of any shell optimizations that allow amortized linear growth over
343: # repeated appends, instead of the typical quadratic growth present in naive
344: # implementations.
345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346: eval 'as_fn_append ()
347: {
348: eval $1+=\$2
349: }'
350: else
351: as_fn_append ()
352: {
353: eval $1=\$$1\$2
354: }
355: fi # as_fn_append
356:
357: # as_fn_arith ARG...
358: # ------------------
359: # Perform arithmetic evaluation on the ARGs, and store the result in the
360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
361: # must be portable across $(()) and expr.
362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363: eval 'as_fn_arith ()
364: {
365: as_val=$(( $* ))
366: }'
367: else
368: as_fn_arith ()
369: {
370: as_val=`expr "$@" || test $? -eq 1`
371: }
372: fi # as_fn_arith
373:
374:
375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
376: # ----------------------------------------
377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379: # script with STATUS, using 1 if that was 0.
380: as_fn_error ()
381: {
382: as_status=$1; test $as_status -eq 0 && as_status=1
383: if test "$4"; then
384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386: fi
387: $as_echo "$as_me: error: $2" >&2
388: as_fn_exit $as_status
389: } # as_fn_error
390:
391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405: as_dirname=dirname
406: else
407: as_dirname=false
408: fi
409:
410: as_me=`$as_basename -- "$0" ||
411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414: $as_echo X/"$0" |
415: sed '/^.*\/\([^/][^/]*\)\/*$/{
416: s//\1/
417: q
418: }
419: /^X\/\(\/\/\)$/{
420: s//\1/
421: q
422: }
423: /^X\/\(\/\).*/{
424: s//\1/
425: q
426: }
427: s/.*/./; q'`
428:
429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
435:
436:
437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
446: sed '
447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
451: N
452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454: t loop
455: s/-\n.*//
456: ' >$as_me.lineno &&
457: chmod +x "$as_me.lineno" ||
458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
464: # Exit status is that of the last command.
465: exit
466: }
467:
468: ECHO_C= ECHO_N= ECHO_T=
469: case `echo -n x` in #(((((
470: -n*)
471: case `echo 'xy\c'` in
472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473: xy) ECHO_C='\c';;
474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475: ECHO_T=' ';;
476: esac;;
477: *)
478: ECHO_N='-n';;
479: esac
480:
481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
484: else
485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
487: fi
488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
507:
508: if mkdir -p . 2>/dev/null; then
509: as_mkdir_p='mkdir -p "$as_dir"'
510: else
511: test -d ./-p && rmdir ./-p
512: as_mkdir_p=false
513: fi
514:
515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
528: case $1 in #(
529: -*)set "./$1";;
530: esac;
531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
535: fi
536: as_executable_p=$as_test_x
537:
538: # Sed expression to map a string onto a valid CPP name.
539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540:
541: # Sed expression to map a string onto a valid variable name.
542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543:
544: SHELL=${CONFIG_SHELL-/bin/sh}
545:
546:
547: test -n "$DJDIR" || exec 7<&0 </dev/null
548: exec 6>&1
549:
550: # Name of the host.
551: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552: # so uname gets run too.
553: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554:
555: #
556: # Initializations.
557: #
558: ac_default_prefix=/usr/local
559: ac_clean_files=
560: ac_config_libobj_dir=.
561: LIBOBJS=
562: cross_compiling=no
563: subdirs=
564: MFLAGS=
565: MAKEFLAGS=
566:
567: # Identity of this package.
568: PACKAGE_NAME='sntp'
569: PACKAGE_TARNAME='sntp'
570: PACKAGE_VERSION='4.2.6p5'
571: PACKAGE_STRING='sntp 4.2.6p5'
572: PACKAGE_BUGREPORT=''
573: PACKAGE_URL=''
574:
575: # Factoring default headers for most tests.
576: ac_includes_default="\
577: #include <stdio.h>
578: #ifdef HAVE_SYS_TYPES_H
579: # include <sys/types.h>
580: #endif
581: #ifdef HAVE_SYS_STAT_H
582: # include <sys/stat.h>
583: #endif
584: #ifdef STDC_HEADERS
585: # include <stdlib.h>
586: # include <stddef.h>
587: #else
588: # ifdef HAVE_STDLIB_H
589: # include <stdlib.h>
590: # endif
591: #endif
592: #ifdef HAVE_STRING_H
593: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594: # include <memory.h>
595: # endif
596: # include <string.h>
597: #endif
598: #ifdef HAVE_STRINGS_H
599: # include <strings.h>
600: #endif
601: #ifdef HAVE_INTTYPES_H
602: # include <inttypes.h>
603: #endif
604: #ifdef HAVE_STDINT_H
605: # include <stdint.h>
606: #endif
607: #ifdef HAVE_UNISTD_H
608: # include <unistd.h>
609: #endif"
610:
611: ac_subst_vars='am__EXEEXT_FALSE
612: am__EXEEXT_TRUE
613: LTLIBOBJS
614: LIBOBJS
615: NTP_BINSUBDIR_IS_BIN_FALSE
616: NTP_BINSUBDIR_IS_BIN_TRUE
617: BINSUBDIR
618: LCRYPTO
619: OPENSSL_LIB
620: OPENSSL_INC
621: OPENSSL
622: HAVE_INLINE
623: LIBM
624: OTOOL64
625: OTOOL
626: LIPO
627: NMEDIT
628: DSYMUTIL
629: MANIFEST_TOOL
630: RANLIB
631: ac_ct_AR
632: AR
633: DLLTOOL
634: OBJDUMP
635: LN_S
636: NM
637: ac_ct_DUMPBIN
638: DUMPBIN
639: LD
640: FGREP
641: LIBTOOL
642: LIBOPTS_DIR
643: LIBOPTS_CFLAGS
644: LIBOPTS_LDADD
645: NEED_LIBOPTS_FALSE
646: NEED_LIBOPTS_TRUE
647: INSTALL_LIBOPTS_FALSE
648: INSTALL_LIBOPTS_TRUE
649: POSIX_SHELL
650: SED
651: EGREP
652: GREP
653: CPP
654: am__fastdepCC_FALSE
655: am__fastdepCC_TRUE
656: CCDEPMODE
657: AMDEPBACKSLASH
658: AMDEP_FALSE
659: AMDEP_TRUE
660: am__quote
661: am__include
662: DEPDIR
663: OBJEXT
664: EXEEXT
665: ac_ct_CC
666: CPPFLAGS
667: LDFLAGS
668: CFLAGS
669: CC
670: host_os
671: host_vendor
672: host_cpu
673: host
674: build_os
675: build_vendor
676: build_cpu
677: build
678: am__untar
679: am__tar
680: AMTAR
681: am__leading_dot
682: SET_MAKE
683: AWK
684: mkdir_p
685: MKDIR_P
686: INSTALL_STRIP_PROGRAM
687: STRIP
688: install_sh
689: MAKEINFO
690: AUTOHEADER
691: AUTOMAKE
692: AUTOCONF
693: ACLOCAL
694: VERSION
695: PACKAGE
696: CYGPATH_W
697: am__isrc
698: INSTALL_DATA
699: INSTALL_SCRIPT
700: INSTALL_PROGRAM
701: target_alias
702: host_alias
703: build_alias
704: LIBS
705: ECHO_T
706: ECHO_N
707: ECHO_C
708: DEFS
709: mandir
710: localedir
711: libdir
712: psdir
713: pdfdir
714: dvidir
715: htmldir
716: infodir
717: docdir
718: oldincludedir
719: includedir
720: localstatedir
721: sharedstatedir
722: sysconfdir
723: datadir
724: datarootdir
725: libexecdir
726: sbindir
727: bindir
728: program_transform_name
729: prefix
730: exec_prefix
731: PACKAGE_URL
732: PACKAGE_BUGREPORT
733: PACKAGE_STRING
734: PACKAGE_VERSION
735: PACKAGE_TARNAME
736: PACKAGE_NAME
737: PATH_SEPARATOR
738: SHELL'
739: ac_subst_files=''
740: ac_user_opts='
741: enable_option_checking
742: enable_dependency_tracking
743: enable_shared
744: enable_local_libopts
745: enable_libopts_install
746: with_autoopts_config
747: with_regex_header
748: with_libregex
749: with_libregex_cflags
750: with_libregex_libs
751: enable_optional_args
752: enable_static
753: with_pic
754: enable_fast_install
755: with_gnu_ld
756: with_sysroot
757: enable_libtool_lock
758: with_openssl_libdir
759: with_openssl_incdir
760: with_crypto
761: enable_ipv6
762: with_kame
763: with_binsubdir
764: '
765: ac_precious_vars='build_alias
766: host_alias
767: target_alias
768: CC
769: CFLAGS
770: LDFLAGS
771: LIBS
772: CPPFLAGS
773: CPP'
774:
775:
776: # Initialize some variables set by options.
777: ac_init_help=
778: ac_init_version=false
779: ac_unrecognized_opts=
780: ac_unrecognized_sep=
781: # The variables have the same names as the options, with
782: # dashes changed to underlines.
783: cache_file=/dev/null
784: exec_prefix=NONE
785: no_create=
786: no_recursion=
787: prefix=NONE
788: program_prefix=NONE
789: program_suffix=NONE
790: program_transform_name=s,x,x,
791: silent=
792: site=
793: srcdir=
794: verbose=
795: x_includes=NONE
796: x_libraries=NONE
797:
798: # Installation directory options.
799: # These are left unexpanded so users can "make install exec_prefix=/foo"
800: # and all the variables that are supposed to be based on exec_prefix
801: # by default will actually change.
802: # Use braces instead of parens because sh, perl, etc. also accept them.
803: # (The list follows the same order as the GNU Coding Standards.)
804: bindir='${exec_prefix}/bin'
805: sbindir='${exec_prefix}/sbin'
806: libexecdir='${exec_prefix}/libexec'
807: datarootdir='${prefix}/share'
808: datadir='${datarootdir}'
809: sysconfdir='${prefix}/etc'
810: sharedstatedir='${prefix}/com'
811: localstatedir='${prefix}/var'
812: includedir='${prefix}/include'
813: oldincludedir='/usr/include'
814: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815: infodir='${datarootdir}/info'
816: htmldir='${docdir}'
817: dvidir='${docdir}'
818: pdfdir='${docdir}'
819: psdir='${docdir}'
820: libdir='${exec_prefix}/lib'
821: localedir='${datarootdir}/locale'
822: mandir='${datarootdir}/man'
823:
824: ac_prev=
825: ac_dashdash=
826: for ac_option
827: do
828: # If the previous option needs an argument, assign it.
829: if test -n "$ac_prev"; then
830: eval $ac_prev=\$ac_option
831: ac_prev=
832: continue
833: fi
834:
835: case $ac_option in
836: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837: *=) ac_optarg= ;;
838: *) ac_optarg=yes ;;
839: esac
840:
841: # Accept the important Cygnus configure options, so we can diagnose typos.
842:
843: case $ac_dashdash$ac_option in
844: --)
845: ac_dashdash=yes ;;
846:
847: -bindir | --bindir | --bindi | --bind | --bin | --bi)
848: ac_prev=bindir ;;
849: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850: bindir=$ac_optarg ;;
851:
852: -build | --build | --buil | --bui | --bu)
853: ac_prev=build_alias ;;
854: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855: build_alias=$ac_optarg ;;
856:
857: -cache-file | --cache-file | --cache-fil | --cache-fi \
858: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859: ac_prev=cache_file ;;
860: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862: cache_file=$ac_optarg ;;
863:
864: --config-cache | -C)
865: cache_file=config.cache ;;
866:
867: -datadir | --datadir | --datadi | --datad)
868: ac_prev=datadir ;;
869: -datadir=* | --datadir=* | --datadi=* | --datad=*)
870: datadir=$ac_optarg ;;
871:
872: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873: | --dataroo | --dataro | --datar)
874: ac_prev=datarootdir ;;
875: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877: datarootdir=$ac_optarg ;;
878:
879: -disable-* | --disable-*)
880: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881: # Reject names that are not valid shell variable names.
882: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883: as_fn_error $? "invalid feature name: $ac_useropt"
884: ac_useropt_orig=$ac_useropt
885: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886: case $ac_user_opts in
887: *"
888: "enable_$ac_useropt"
889: "*) ;;
890: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891: ac_unrecognized_sep=', ';;
892: esac
893: eval enable_$ac_useropt=no ;;
894:
895: -docdir | --docdir | --docdi | --doc | --do)
896: ac_prev=docdir ;;
897: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898: docdir=$ac_optarg ;;
899:
900: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901: ac_prev=dvidir ;;
902: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903: dvidir=$ac_optarg ;;
904:
905: -enable-* | --enable-*)
906: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907: # Reject names that are not valid shell variable names.
908: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909: as_fn_error $? "invalid feature name: $ac_useropt"
910: ac_useropt_orig=$ac_useropt
911: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912: case $ac_user_opts in
913: *"
914: "enable_$ac_useropt"
915: "*) ;;
916: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917: ac_unrecognized_sep=', ';;
918: esac
919: eval enable_$ac_useropt=\$ac_optarg ;;
920:
921: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923: | --exec | --exe | --ex)
924: ac_prev=exec_prefix ;;
925: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927: | --exec=* | --exe=* | --ex=*)
928: exec_prefix=$ac_optarg ;;
929:
930: -gas | --gas | --ga | --g)
931: # Obsolete; use --with-gas.
932: with_gas=yes ;;
933:
934: -help | --help | --hel | --he | -h)
935: ac_init_help=long ;;
936: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937: ac_init_help=recursive ;;
938: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939: ac_init_help=short ;;
940:
941: -host | --host | --hos | --ho)
942: ac_prev=host_alias ;;
943: -host=* | --host=* | --hos=* | --ho=*)
944: host_alias=$ac_optarg ;;
945:
946: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947: ac_prev=htmldir ;;
948: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949: | --ht=*)
950: htmldir=$ac_optarg ;;
951:
952: -includedir | --includedir | --includedi | --included | --include \
953: | --includ | --inclu | --incl | --inc)
954: ac_prev=includedir ;;
955: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956: | --includ=* | --inclu=* | --incl=* | --inc=*)
957: includedir=$ac_optarg ;;
958:
959: -infodir | --infodir | --infodi | --infod | --info | --inf)
960: ac_prev=infodir ;;
961: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962: infodir=$ac_optarg ;;
963:
964: -libdir | --libdir | --libdi | --libd)
965: ac_prev=libdir ;;
966: -libdir=* | --libdir=* | --libdi=* | --libd=*)
967: libdir=$ac_optarg ;;
968:
969: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970: | --libexe | --libex | --libe)
971: ac_prev=libexecdir ;;
972: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973: | --libexe=* | --libex=* | --libe=*)
974: libexecdir=$ac_optarg ;;
975:
976: -localedir | --localedir | --localedi | --localed | --locale)
977: ac_prev=localedir ;;
978: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979: localedir=$ac_optarg ;;
980:
981: -localstatedir | --localstatedir | --localstatedi | --localstated \
982: | --localstate | --localstat | --localsta | --localst | --locals)
983: ac_prev=localstatedir ;;
984: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986: localstatedir=$ac_optarg ;;
987:
988: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989: ac_prev=mandir ;;
990: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991: mandir=$ac_optarg ;;
992:
993: -nfp | --nfp | --nf)
994: # Obsolete; use --without-fp.
995: with_fp=no ;;
996:
997: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998: | --no-cr | --no-c | -n)
999: no_create=yes ;;
1000:
1001: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003: no_recursion=yes ;;
1004:
1005: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007: | --oldin | --oldi | --old | --ol | --o)
1008: ac_prev=oldincludedir ;;
1009: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012: oldincludedir=$ac_optarg ;;
1013:
1014: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015: ac_prev=prefix ;;
1016: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017: prefix=$ac_optarg ;;
1018:
1019: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020: | --program-pre | --program-pr | --program-p)
1021: ac_prev=program_prefix ;;
1022: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024: program_prefix=$ac_optarg ;;
1025:
1026: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027: | --program-suf | --program-su | --program-s)
1028: ac_prev=program_suffix ;;
1029: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031: program_suffix=$ac_optarg ;;
1032:
1033: -program-transform-name | --program-transform-name \
1034: | --program-transform-nam | --program-transform-na \
1035: | --program-transform-n | --program-transform- \
1036: | --program-transform | --program-transfor \
1037: | --program-transfo | --program-transf \
1038: | --program-trans | --program-tran \
1039: | --progr-tra | --program-tr | --program-t)
1040: ac_prev=program_transform_name ;;
1041: -program-transform-name=* | --program-transform-name=* \
1042: | --program-transform-nam=* | --program-transform-na=* \
1043: | --program-transform-n=* | --program-transform-=* \
1044: | --program-transform=* | --program-transfor=* \
1045: | --program-transfo=* | --program-transf=* \
1046: | --program-trans=* | --program-tran=* \
1047: | --progr-tra=* | --program-tr=* | --program-t=*)
1048: program_transform_name=$ac_optarg ;;
1049:
1050: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051: ac_prev=pdfdir ;;
1052: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053: pdfdir=$ac_optarg ;;
1054:
1055: -psdir | --psdir | --psdi | --psd | --ps)
1056: ac_prev=psdir ;;
1057: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058: psdir=$ac_optarg ;;
1059:
1060: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061: | -silent | --silent | --silen | --sile | --sil)
1062: silent=yes ;;
1063:
1064: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065: ac_prev=sbindir ;;
1066: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067: | --sbi=* | --sb=*)
1068: sbindir=$ac_optarg ;;
1069:
1070: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072: | --sharedst | --shareds | --shared | --share | --shar \
1073: | --sha | --sh)
1074: ac_prev=sharedstatedir ;;
1075: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078: | --sha=* | --sh=*)
1079: sharedstatedir=$ac_optarg ;;
1080:
1081: -site | --site | --sit)
1082: ac_prev=site ;;
1083: -site=* | --site=* | --sit=*)
1084: site=$ac_optarg ;;
1085:
1086: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087: ac_prev=srcdir ;;
1088: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089: srcdir=$ac_optarg ;;
1090:
1091: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092: | --syscon | --sysco | --sysc | --sys | --sy)
1093: ac_prev=sysconfdir ;;
1094: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096: sysconfdir=$ac_optarg ;;
1097:
1098: -target | --target | --targe | --targ | --tar | --ta | --t)
1099: ac_prev=target_alias ;;
1100: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101: target_alias=$ac_optarg ;;
1102:
1103: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104: verbose=yes ;;
1105:
1106: -version | --version | --versio | --versi | --vers | -V)
1107: ac_init_version=: ;;
1108:
1109: -with-* | --with-*)
1110: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111: # Reject names that are not valid shell variable names.
1112: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113: as_fn_error $? "invalid package name: $ac_useropt"
1114: ac_useropt_orig=$ac_useropt
1115: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116: case $ac_user_opts in
1117: *"
1118: "with_$ac_useropt"
1119: "*) ;;
1120: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121: ac_unrecognized_sep=', ';;
1122: esac
1123: eval with_$ac_useropt=\$ac_optarg ;;
1124:
1125: -without-* | --without-*)
1126: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127: # Reject names that are not valid shell variable names.
1128: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129: as_fn_error $? "invalid package name: $ac_useropt"
1130: ac_useropt_orig=$ac_useropt
1131: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132: case $ac_user_opts in
1133: *"
1134: "with_$ac_useropt"
1135: "*) ;;
1136: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137: ac_unrecognized_sep=', ';;
1138: esac
1139: eval with_$ac_useropt=no ;;
1140:
1141: --x)
1142: # Obsolete; use --with-x.
1143: with_x=yes ;;
1144:
1145: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146: | --x-incl | --x-inc | --x-in | --x-i)
1147: ac_prev=x_includes ;;
1148: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150: x_includes=$ac_optarg ;;
1151:
1152: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154: ac_prev=x_libraries ;;
1155: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157: x_libraries=$ac_optarg ;;
1158:
1159: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160: Try \`$0 --help' for more information"
1161: ;;
1162:
1163: *=*)
1164: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165: # Reject names that are not valid shell variable names.
1166: case $ac_envvar in #(
1167: '' | [0-9]* | *[!_$as_cr_alnum]* )
1168: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169: esac
1170: eval $ac_envvar=\$ac_optarg
1171: export $ac_envvar ;;
1172:
1173: *)
1174: # FIXME: should be removed in autoconf 3.0.
1175: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179: ;;
1180:
1181: esac
1182: done
1183:
1184: if test -n "$ac_prev"; then
1185: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186: as_fn_error $? "missing argument to $ac_option"
1187: fi
1188:
1189: if test -n "$ac_unrecognized_opts"; then
1190: case $enable_option_checking in
1191: no) ;;
1192: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194: esac
1195: fi
1196:
1197: # Check all directory arguments for consistency.
1198: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199: datadir sysconfdir sharedstatedir localstatedir includedir \
1200: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201: libdir localedir mandir
1202: do
1203: eval ac_val=\$$ac_var
1204: # Remove trailing slashes.
1205: case $ac_val in
1206: */ )
1207: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208: eval $ac_var=\$ac_val;;
1209: esac
1210: # Be sure to have absolute directory names.
1211: case $ac_val in
1212: [\\/$]* | ?:[\\/]* ) continue;;
1213: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214: esac
1215: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216: done
1217:
1218: # There might be people who depend on the old broken behavior: `$host'
1219: # used to hold the argument of --host etc.
1220: # FIXME: To remove some day.
1221: build=$build_alias
1222: host=$host_alias
1223: target=$target_alias
1224:
1225: # FIXME: To remove some day.
1226: if test "x$host_alias" != x; then
1227: if test "x$build_alias" = x; then
1228: cross_compiling=maybe
1229: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230: If a cross compiler is detected then cross compile mode will be used" >&2
1231: elif test "x$build_alias" != "x$host_alias"; then
1232: cross_compiling=yes
1233: fi
1234: fi
1235:
1236: ac_tool_prefix=
1237: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238:
1239: test "$silent" = yes && exec 6>/dev/null
1240:
1241:
1242: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243: ac_ls_di=`ls -di .` &&
1244: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245: as_fn_error $? "working directory cannot be determined"
1246: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247: as_fn_error $? "pwd does not report name of working directory"
1248:
1249:
1250: # Find the source files, if location was not specified.
1251: if test -z "$srcdir"; then
1252: ac_srcdir_defaulted=yes
1253: # Try the directory containing this script, then the parent directory.
1254: ac_confdir=`$as_dirname -- "$as_myself" ||
1255: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256: X"$as_myself" : 'X\(//\)[^/]' \| \
1257: X"$as_myself" : 'X\(//\)$' \| \
1258: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259: $as_echo X"$as_myself" |
1260: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261: s//\1/
1262: q
1263: }
1264: /^X\(\/\/\)[^/].*/{
1265: s//\1/
1266: q
1267: }
1268: /^X\(\/\/\)$/{
1269: s//\1/
1270: q
1271: }
1272: /^X\(\/\).*/{
1273: s//\1/
1274: q
1275: }
1276: s/.*/./; q'`
1277: srcdir=$ac_confdir
1278: if test ! -r "$srcdir/$ac_unique_file"; then
1279: srcdir=..
1280: fi
1281: else
1282: ac_srcdir_defaulted=no
1283: fi
1284: if test ! -r "$srcdir/$ac_unique_file"; then
1285: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287: fi
1288: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289: ac_abs_confdir=`(
1290: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291: pwd)`
1292: # When building in place, set srcdir=.
1293: if test "$ac_abs_confdir" = "$ac_pwd"; then
1294: srcdir=.
1295: fi
1296: # Remove unnecessary trailing slashes from srcdir.
1297: # Double slashes in file names in object file debugging info
1298: # mess up M-x gdb in Emacs.
1299: case $srcdir in
1300: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301: esac
1302: for ac_var in $ac_precious_vars; do
1303: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304: eval ac_env_${ac_var}_value=\$${ac_var}
1305: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307: done
1308:
1309: #
1310: # Report the --help message.
1311: #
1312: if test "$ac_init_help" = "long"; then
1313: # Omit some internal or obsolete options to make the list less imposing.
1314: # This message is too long to be a string in the A/UX 3.1 sh.
1315: cat <<_ACEOF
1316: \`configure' configures sntp 4.2.6p5 to adapt to many kinds of systems.
1317:
1318: Usage: $0 [OPTION]... [VAR=VALUE]...
1319:
1320: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321: VAR=VALUE. See below for descriptions of some of the useful variables.
1322:
1323: Defaults for the options are specified in brackets.
1324:
1325: Configuration:
1326: -h, --help display this help and exit
1327: --help=short display options specific to this package
1328: --help=recursive display the short help of all the included packages
1329: -V, --version display version information and exit
1330: -q, --quiet, --silent do not print \`checking ...' messages
1331: --cache-file=FILE cache test results in FILE [disabled]
1332: -C, --config-cache alias for \`--cache-file=config.cache'
1333: -n, --no-create do not create output files
1334: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335:
1336: Installation directories:
1337: --prefix=PREFIX install architecture-independent files in PREFIX
1338: [$ac_default_prefix]
1339: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340: [PREFIX]
1341:
1342: By default, \`make install' will install all the files in
1343: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345: for instance \`--prefix=\$HOME'.
1346:
1347: For better control, use the options below.
1348:
1349: Fine tuning of the installation directories:
1350: --bindir=DIR user executables [EPREFIX/bin]
1351: --sbindir=DIR system admin executables [EPREFIX/sbin]
1352: --libexecdir=DIR program executables [EPREFIX/libexec]
1353: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356: --libdir=DIR object code libraries [EPREFIX/lib]
1357: --includedir=DIR C header files [PREFIX/include]
1358: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361: --infodir=DIR info documentation [DATAROOTDIR/info]
1362: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363: --mandir=DIR man documentation [DATAROOTDIR/man]
1364: --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1365: --htmldir=DIR html documentation [DOCDIR]
1366: --dvidir=DIR dvi documentation [DOCDIR]
1367: --pdfdir=DIR pdf documentation [DOCDIR]
1368: --psdir=DIR ps documentation [DOCDIR]
1369: _ACEOF
1370:
1371: cat <<\_ACEOF
1372:
1373: Program names:
1374: --program-prefix=PREFIX prepend PREFIX to installed program names
1375: --program-suffix=SUFFIX append SUFFIX to installed program names
1376: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377:
1378: System types:
1379: --build=BUILD configure for building on BUILD [guessed]
1380: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381: _ACEOF
1382: fi
1383:
1384: if test -n "$ac_init_help"; then
1385: case $ac_init_help in
1386: short | recursive ) echo "Configuration of sntp 4.2.6p5:";;
1387: esac
1388: cat <<\_ACEOF
1389:
1390: Optional Features:
1391: --disable-option-checking ignore unrecognized --enable/--with options
1392: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394: --disable-dependency-tracking speeds up one-time build
1395: --enable-dependency-tracking do not reject slow dependency extractors
1396: --enable-shared[=PKGS] build shared libraries [default=no]
1397: --enable-local-libopts Force using the supplied libopts tearoff code
1398: --disable-libopts-install
1399: Do not install libopts with client installation
1400: --disable-optional-args not wanting optional option args
1401: --enable-static[=PKGS] build static libraries [default=yes]
1402: --enable-fast-install[=PKGS]
1403: optimize for fast installation [default=yes]
1404: --disable-libtool-lock avoid locking (might break parallel builds)
1405: --enable-ipv6 s use IPv6?
1406:
1407:
1408: Optional Packages:
1409: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411: --with-autoopts-config specify the config-info script
1412: --with-regex-header a reg expr header is specified
1413: --with-libregex libregex installation prefix
1414: --with-libregex-cflags libregex compile flags
1415: --with-libregex-libs libregex link command arguments
1416: --with-pic try to use only PIC/non-PIC objects [default=use
1417: both]
1418: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419: --with-sysroot=DIR Search for dependent libraries within DIR
1420: (or the compiler's sysroot if not specified).
1421: --with-openssl-libdir + =/something/reasonable
1422: --with-openssl-incdir + =/something/reasonable
1423: --with-crypto + =openssl
1424: --with-kame - =/usr/local/v6
1425: --with-binsubdir bin ={bin,sbin}
1426:
1427: Some influential environment variables:
1428: CC C compiler command
1429: CFLAGS C compiler flags
1430: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431: nonstandard directory <lib dir>
1432: LIBS libraries to pass to the linker, e.g. -l<library>
1433: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434: you have headers in a nonstandard directory <include dir>
1435: CPP C preprocessor
1436:
1437: Use these variables to override the choices made by `configure' or to help
1438: it to find libraries and programs with nonstandard names/locations.
1439:
1440: Report bugs to the package provider.
1441: _ACEOF
1442: ac_status=$?
1443: fi
1444:
1445: if test "$ac_init_help" = "recursive"; then
1446: # If there are subdirs, report their specific --help.
1447: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448: test -d "$ac_dir" ||
1449: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450: continue
1451: ac_builddir=.
1452:
1453: case "$ac_dir" in
1454: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455: *)
1456: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457: # A ".." for each directory in $ac_dir_suffix.
1458: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459: case $ac_top_builddir_sub in
1460: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462: esac ;;
1463: esac
1464: ac_abs_top_builddir=$ac_pwd
1465: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466: # for backward compatibility:
1467: ac_top_builddir=$ac_top_build_prefix
1468:
1469: case $srcdir in
1470: .) # We are building in place.
1471: ac_srcdir=.
1472: ac_top_srcdir=$ac_top_builddir_sub
1473: ac_abs_top_srcdir=$ac_pwd ;;
1474: [\\/]* | ?:[\\/]* ) # Absolute name.
1475: ac_srcdir=$srcdir$ac_dir_suffix;
1476: ac_top_srcdir=$srcdir
1477: ac_abs_top_srcdir=$srcdir ;;
1478: *) # Relative name.
1479: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480: ac_top_srcdir=$ac_top_build_prefix$srcdir
1481: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482: esac
1483: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484:
1485: cd "$ac_dir" || { ac_status=$?; continue; }
1486: # Check for guested configure.
1487: if test -f "$ac_srcdir/configure.gnu"; then
1488: echo &&
1489: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490: elif test -f "$ac_srcdir/configure"; then
1491: echo &&
1492: $SHELL "$ac_srcdir/configure" --help=recursive
1493: else
1494: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495: fi || ac_status=$?
1496: cd "$ac_pwd" || { ac_status=$?; break; }
1497: done
1498: fi
1499:
1500: test -n "$ac_init_help" && exit $ac_status
1501: if $ac_init_version; then
1502: cat <<\_ACEOF
1503: sntp configure 4.2.6p5
1504: generated by GNU Autoconf 2.68
1505:
1506: Copyright (C) 2010 Free Software Foundation, Inc.
1507: This configure script is free software; the Free Software Foundation
1508: gives unlimited permission to copy, distribute and modify it.
1509: _ACEOF
1510: exit
1511: fi
1512:
1513: ## ------------------------ ##
1514: ## Autoconf initialization. ##
1515: ## ------------------------ ##
1516:
1517: # ac_fn_c_try_compile LINENO
1518: # --------------------------
1519: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520: ac_fn_c_try_compile ()
1521: {
1522: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523: rm -f conftest.$ac_objext
1524: if { { ac_try="$ac_compile"
1525: case "(($ac_try" in
1526: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527: *) ac_try_echo=$ac_try;;
1528: esac
1529: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530: $as_echo "$ac_try_echo"; } >&5
1531: (eval "$ac_compile") 2>conftest.err
1532: ac_status=$?
1533: if test -s conftest.err; then
1534: grep -v '^ *+' conftest.err >conftest.er1
1535: cat conftest.er1 >&5
1536: mv -f conftest.er1 conftest.err
1537: fi
1538: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539: test $ac_status = 0; } && {
1540: test -z "$ac_c_werror_flag" ||
1541: test ! -s conftest.err
1542: } && test -s conftest.$ac_objext; then :
1543: ac_retval=0
1544: else
1545: $as_echo "$as_me: failed program was:" >&5
1546: sed 's/^/| /' conftest.$ac_ext >&5
1547:
1548: ac_retval=1
1549: fi
1550: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551: as_fn_set_status $ac_retval
1552:
1553: } # ac_fn_c_try_compile
1554:
1555: # ac_fn_c_try_cpp LINENO
1556: # ----------------------
1557: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558: ac_fn_c_try_cpp ()
1559: {
1560: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561: if { { ac_try="$ac_cpp conftest.$ac_ext"
1562: case "(($ac_try" in
1563: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564: *) ac_try_echo=$ac_try;;
1565: esac
1566: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567: $as_echo "$ac_try_echo"; } >&5
1568: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569: ac_status=$?
1570: if test -s conftest.err; then
1571: grep -v '^ *+' conftest.err >conftest.er1
1572: cat conftest.er1 >&5
1573: mv -f conftest.er1 conftest.err
1574: fi
1575: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576: test $ac_status = 0; } > conftest.i && {
1577: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578: test ! -s conftest.err
1579: }; then :
1580: ac_retval=0
1581: else
1582: $as_echo "$as_me: failed program was:" >&5
1583: sed 's/^/| /' conftest.$ac_ext >&5
1584:
1585: ac_retval=1
1586: fi
1587: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588: as_fn_set_status $ac_retval
1589:
1590: } # ac_fn_c_try_cpp
1591:
1592: # ac_fn_c_try_run LINENO
1593: # ----------------------
1594: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1595: # that executables *can* be run.
1596: ac_fn_c_try_run ()
1597: {
1598: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599: if { { ac_try="$ac_link"
1600: case "(($ac_try" in
1601: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602: *) ac_try_echo=$ac_try;;
1603: esac
1604: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605: $as_echo "$ac_try_echo"; } >&5
1606: (eval "$ac_link") 2>&5
1607: ac_status=$?
1608: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1610: { { case "(($ac_try" in
1611: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612: *) ac_try_echo=$ac_try;;
1613: esac
1614: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615: $as_echo "$ac_try_echo"; } >&5
1616: (eval "$ac_try") 2>&5
1617: ac_status=$?
1618: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619: test $ac_status = 0; }; }; then :
1620: ac_retval=0
1621: else
1622: $as_echo "$as_me: program exited with status $ac_status" >&5
1623: $as_echo "$as_me: failed program was:" >&5
1624: sed 's/^/| /' conftest.$ac_ext >&5
1625:
1626: ac_retval=$ac_status
1627: fi
1628: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630: as_fn_set_status $ac_retval
1631:
1632: } # ac_fn_c_try_run
1633:
1634: # ac_fn_c_try_link LINENO
1635: # -----------------------
1636: # Try to link conftest.$ac_ext, and return whether this succeeded.
1637: ac_fn_c_try_link ()
1638: {
1639: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640: rm -f conftest.$ac_objext conftest$ac_exeext
1641: if { { ac_try="$ac_link"
1642: case "(($ac_try" in
1643: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644: *) ac_try_echo=$ac_try;;
1645: esac
1646: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647: $as_echo "$ac_try_echo"; } >&5
1648: (eval "$ac_link") 2>conftest.err
1649: ac_status=$?
1650: if test -s conftest.err; then
1651: grep -v '^ *+' conftest.err >conftest.er1
1652: cat conftest.er1 >&5
1653: mv -f conftest.er1 conftest.err
1654: fi
1655: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656: test $ac_status = 0; } && {
1657: test -z "$ac_c_werror_flag" ||
1658: test ! -s conftest.err
1659: } && test -s conftest$ac_exeext && {
1660: test "$cross_compiling" = yes ||
1661: $as_test_x conftest$ac_exeext
1662: }; then :
1663: ac_retval=0
1664: else
1665: $as_echo "$as_me: failed program was:" >&5
1666: sed 's/^/| /' conftest.$ac_ext >&5
1667:
1668: ac_retval=1
1669: fi
1670: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672: # interfere with the next link command; also delete a directory that is
1673: # left behind by Apple's compiler. We do this before executing the actions.
1674: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676: as_fn_set_status $ac_retval
1677:
1678: } # ac_fn_c_try_link
1679:
1680: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1681: # -------------------------------------------------------
1682: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1683: # the include files in INCLUDES and setting the cache variable VAR
1684: # accordingly.
1685: ac_fn_c_check_header_mongrel ()
1686: {
1687: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688: if eval \${$3+:} false; then :
1689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690: $as_echo_n "checking for $2... " >&6; }
1691: if eval \${$3+:} false; then :
1692: $as_echo_n "(cached) " >&6
1693: fi
1694: eval ac_res=\$$3
1695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696: $as_echo "$ac_res" >&6; }
1697: else
1698: # Is the header compilable?
1699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1700: $as_echo_n "checking $2 usability... " >&6; }
1701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702: /* end confdefs.h. */
1703: $4
1704: #include <$2>
1705: _ACEOF
1706: if ac_fn_c_try_compile "$LINENO"; then :
1707: ac_header_compiler=yes
1708: else
1709: ac_header_compiler=no
1710: fi
1711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1713: $as_echo "$ac_header_compiler" >&6; }
1714:
1715: # Is the header present?
1716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1717: $as_echo_n "checking $2 presence... " >&6; }
1718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719: /* end confdefs.h. */
1720: #include <$2>
1721: _ACEOF
1722: if ac_fn_c_try_cpp "$LINENO"; then :
1723: ac_header_preproc=yes
1724: else
1725: ac_header_preproc=no
1726: fi
1727: rm -f conftest.err conftest.i conftest.$ac_ext
1728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1729: $as_echo "$ac_header_preproc" >&6; }
1730:
1731: # So? What about this header?
1732: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1733: yes:no: )
1734: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1735: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1736: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738: ;;
1739: no:yes:* )
1740: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1741: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1742: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1743: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1744: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1745: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1746: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1747: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1748: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1749: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1750: ;;
1751: esac
1752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753: $as_echo_n "checking for $2... " >&6; }
1754: if eval \${$3+:} false; then :
1755: $as_echo_n "(cached) " >&6
1756: else
1757: eval "$3=\$ac_header_compiler"
1758: fi
1759: eval ac_res=\$$3
1760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761: $as_echo "$ac_res" >&6; }
1762: fi
1763: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764:
1765: } # ac_fn_c_check_header_mongrel
1766:
1767: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768: # -------------------------------------------------------
1769: # Tests whether HEADER exists and can be compiled using the include files in
1770: # INCLUDES, setting the cache variable VAR accordingly.
1771: ac_fn_c_check_header_compile ()
1772: {
1773: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775: $as_echo_n "checking for $2... " >&6; }
1776: if eval \${$3+:} false; then :
1777: $as_echo_n "(cached) " >&6
1778: else
1779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780: /* end confdefs.h. */
1781: $4
1782: #include <$2>
1783: _ACEOF
1784: if ac_fn_c_try_compile "$LINENO"; then :
1785: eval "$3=yes"
1786: else
1787: eval "$3=no"
1788: fi
1789: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790: fi
1791: eval ac_res=\$$3
1792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793: $as_echo "$ac_res" >&6; }
1794: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795:
1796: } # ac_fn_c_check_header_compile
1797:
1798: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1799: # -------------------------------------------
1800: # Tests whether TYPE exists after having included INCLUDES, setting cache
1801: # variable VAR accordingly.
1802: ac_fn_c_check_type ()
1803: {
1804: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806: $as_echo_n "checking for $2... " >&6; }
1807: if eval \${$3+:} false; then :
1808: $as_echo_n "(cached) " >&6
1809: else
1810: eval "$3=no"
1811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812: /* end confdefs.h. */
1813: $4
1814: int
1815: main ()
1816: {
1817: if (sizeof ($2))
1818: return 0;
1819: ;
1820: return 0;
1821: }
1822: _ACEOF
1823: if ac_fn_c_try_compile "$LINENO"; then :
1824: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825: /* end confdefs.h. */
1826: $4
1827: int
1828: main ()
1829: {
1830: if (sizeof (($2)))
1831: return 0;
1832: ;
1833: return 0;
1834: }
1835: _ACEOF
1836: if ac_fn_c_try_compile "$LINENO"; then :
1837:
1838: else
1839: eval "$3=yes"
1840: fi
1841: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842: fi
1843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844: fi
1845: eval ac_res=\$$3
1846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847: $as_echo "$ac_res" >&6; }
1848: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849:
1850: } # ac_fn_c_check_type
1851:
1852: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1853: # --------------------------------------------
1854: # Tries to find the compile-time value of EXPR in a program that includes
1855: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1856: # computed
1857: ac_fn_c_compute_int ()
1858: {
1859: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860: if test "$cross_compiling" = yes; then
1861: # Depending upon the size, compute the lo and hi bounds.
1862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863: /* end confdefs.h. */
1864: $4
1865: int
1866: main ()
1867: {
1868: static int test_array [1 - 2 * !(($2) >= 0)];
1869: test_array [0] = 0
1870:
1871: ;
1872: return 0;
1873: }
1874: _ACEOF
1875: if ac_fn_c_try_compile "$LINENO"; then :
1876: ac_lo=0 ac_mid=0
1877: while :; do
1878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879: /* end confdefs.h. */
1880: $4
1881: int
1882: main ()
1883: {
1884: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1885: test_array [0] = 0
1886:
1887: ;
1888: return 0;
1889: }
1890: _ACEOF
1891: if ac_fn_c_try_compile "$LINENO"; then :
1892: ac_hi=$ac_mid; break
1893: else
1894: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1895: if test $ac_lo -le $ac_mid; then
1896: ac_lo= ac_hi=
1897: break
1898: fi
1899: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1900: fi
1901: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902: done
1903: else
1904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905: /* end confdefs.h. */
1906: $4
1907: int
1908: main ()
1909: {
1910: static int test_array [1 - 2 * !(($2) < 0)];
1911: test_array [0] = 0
1912:
1913: ;
1914: return 0;
1915: }
1916: _ACEOF
1917: if ac_fn_c_try_compile "$LINENO"; then :
1918: ac_hi=-1 ac_mid=-1
1919: while :; do
1920: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921: /* end confdefs.h. */
1922: $4
1923: int
1924: main ()
1925: {
1926: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1927: test_array [0] = 0
1928:
1929: ;
1930: return 0;
1931: }
1932: _ACEOF
1933: if ac_fn_c_try_compile "$LINENO"; then :
1934: ac_lo=$ac_mid; break
1935: else
1936: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1937: if test $ac_mid -le $ac_hi; then
1938: ac_lo= ac_hi=
1939: break
1940: fi
1941: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1942: fi
1943: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944: done
1945: else
1946: ac_lo= ac_hi=
1947: fi
1948: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949: fi
1950: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951: # Binary search between lo and hi bounds.
1952: while test "x$ac_lo" != "x$ac_hi"; do
1953: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1954: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955: /* end confdefs.h. */
1956: $4
1957: int
1958: main ()
1959: {
1960: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1961: test_array [0] = 0
1962:
1963: ;
1964: return 0;
1965: }
1966: _ACEOF
1967: if ac_fn_c_try_compile "$LINENO"; then :
1968: ac_hi=$ac_mid
1969: else
1970: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1971: fi
1972: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973: done
1974: case $ac_lo in #((
1975: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1976: '') ac_retval=1 ;;
1977: esac
1978: else
1979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980: /* end confdefs.h. */
1981: $4
1982: static long int longval () { return $2; }
1983: static unsigned long int ulongval () { return $2; }
1984: #include <stdio.h>
1985: #include <stdlib.h>
1986: int
1987: main ()
1988: {
1989:
1990: FILE *f = fopen ("conftest.val", "w");
1991: if (! f)
1992: return 1;
1993: if (($2) < 0)
1994: {
1995: long int i = longval ();
1996: if (i != ($2))
1997: return 1;
1998: fprintf (f, "%ld", i);
1999: }
2000: else
2001: {
2002: unsigned long int i = ulongval ();
2003: if (i != ($2))
2004: return 1;
2005: fprintf (f, "%lu", i);
2006: }
2007: /* Do not output a trailing newline, as this causes \r\n confusion
2008: on some platforms. */
2009: return ferror (f) || fclose (f) != 0;
2010:
2011: ;
2012: return 0;
2013: }
2014: _ACEOF
2015: if ac_fn_c_try_run "$LINENO"; then :
2016: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2017: else
2018: ac_retval=1
2019: fi
2020: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2021: conftest.$ac_objext conftest.beam conftest.$ac_ext
2022: rm -f conftest.val
2023:
2024: fi
2025: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026: as_fn_set_status $ac_retval
2027:
2028: } # ac_fn_c_compute_int
2029:
2030: # ac_fn_c_check_func LINENO FUNC VAR
2031: # ----------------------------------
2032: # Tests whether FUNC exists, setting the cache variable VAR accordingly
2033: ac_fn_c_check_func ()
2034: {
2035: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037: $as_echo_n "checking for $2... " >&6; }
2038: if eval \${$3+:} false; then :
2039: $as_echo_n "(cached) " >&6
2040: else
2041: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042: /* end confdefs.h. */
2043: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045: #define $2 innocuous_$2
2046:
2047: /* System header to define __stub macros and hopefully few prototypes,
2048: which can conflict with char $2 (); below.
2049: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050: <limits.h> exists even on freestanding compilers. */
2051:
2052: #ifdef __STDC__
2053: # include <limits.h>
2054: #else
2055: # include <assert.h>
2056: #endif
2057:
2058: #undef $2
2059:
2060: /* Override any GCC internal prototype to avoid an error.
2061: Use char because int might match the return type of a GCC
2062: builtin and then its argument prototype would still apply. */
2063: #ifdef __cplusplus
2064: extern "C"
2065: #endif
2066: char $2 ();
2067: /* The GNU C library defines this for functions which it implements
2068: to always fail with ENOSYS. Some functions are actually named
2069: something starting with __ and the normal name is an alias. */
2070: #if defined __stub_$2 || defined __stub___$2
2071: choke me
2072: #endif
2073:
2074: int
2075: main ()
2076: {
2077: return $2 ();
2078: ;
2079: return 0;
2080: }
2081: _ACEOF
2082: if ac_fn_c_try_link "$LINENO"; then :
2083: eval "$3=yes"
2084: else
2085: eval "$3=no"
2086: fi
2087: rm -f core conftest.err conftest.$ac_objext \
2088: conftest$ac_exeext conftest.$ac_ext
2089: fi
2090: eval ac_res=\$$3
2091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092: $as_echo "$ac_res" >&6; }
2093: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094:
2095: } # ac_fn_c_check_func
2096: cat >config.log <<_ACEOF
2097: This file contains any messages produced by compilers while
2098: running configure, to aid debugging if configure makes a mistake.
2099:
2100: It was created by sntp $as_me 4.2.6p5, which was
2101: generated by GNU Autoconf 2.68. Invocation command line was
2102:
2103: $ $0 $@
2104:
2105: _ACEOF
2106: exec 5>>config.log
2107: {
2108: cat <<_ASUNAME
2109: ## --------- ##
2110: ## Platform. ##
2111: ## --------- ##
2112:
2113: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118:
2119: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2121:
2122: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2123: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2124: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2126: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2127: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2128: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2129:
2130: _ASUNAME
2131:
2132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133: for as_dir in $PATH
2134: do
2135: IFS=$as_save_IFS
2136: test -z "$as_dir" && as_dir=.
2137: $as_echo "PATH: $as_dir"
2138: done
2139: IFS=$as_save_IFS
2140:
2141: } >&5
2142:
2143: cat >&5 <<_ACEOF
2144:
2145:
2146: ## ----------- ##
2147: ## Core tests. ##
2148: ## ----------- ##
2149:
2150: _ACEOF
2151:
2152:
2153: # Keep a trace of the command line.
2154: # Strip out --no-create and --no-recursion so they do not pile up.
2155: # Strip out --silent because we don't want to record it for future runs.
2156: # Also quote any args containing shell meta-characters.
2157: # Make two passes to allow for proper duplicate-argument suppression.
2158: ac_configure_args=
2159: ac_configure_args0=
2160: ac_configure_args1=
2161: ac_must_keep_next=false
2162: for ac_pass in 1 2
2163: do
2164: for ac_arg
2165: do
2166: case $ac_arg in
2167: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169: | -silent | --silent | --silen | --sile | --sil)
2170: continue ;;
2171: *\'*)
2172: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2173: esac
2174: case $ac_pass in
2175: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2176: 2)
2177: as_fn_append ac_configure_args1 " '$ac_arg'"
2178: if test $ac_must_keep_next = true; then
2179: ac_must_keep_next=false # Got value, back to normal.
2180: else
2181: case $ac_arg in
2182: *=* | --config-cache | -C | -disable-* | --disable-* \
2183: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185: | -with-* | --with-* | -without-* | --without-* | --x)
2186: case "$ac_configure_args0 " in
2187: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188: esac
2189: ;;
2190: -* ) ac_must_keep_next=true ;;
2191: esac
2192: fi
2193: as_fn_append ac_configure_args " '$ac_arg'"
2194: ;;
2195: esac
2196: done
2197: done
2198: { ac_configure_args0=; unset ac_configure_args0;}
2199: { ac_configure_args1=; unset ac_configure_args1;}
2200:
2201: # When interrupted or exit'd, cleanup temporary files, and complete
2202: # config.log. We remove comments because anyway the quotes in there
2203: # would cause problems or look ugly.
2204: # WARNING: Use '\'' to represent an apostrophe within the trap.
2205: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2206: trap 'exit_status=$?
2207: # Save into config.log some information that might help in debugging.
2208: {
2209: echo
2210:
2211: $as_echo "## ---------------- ##
2212: ## Cache variables. ##
2213: ## ---------------- ##"
2214: echo
2215: # The following way of writing the cache mishandles newlines in values,
2216: (
2217: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2218: eval ac_val=\$$ac_var
2219: case $ac_val in #(
2220: *${as_nl}*)
2221: case $ac_var in #(
2222: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2223: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2224: esac
2225: case $ac_var in #(
2226: _ | IFS | as_nl) ;; #(
2227: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2228: *) { eval $ac_var=; unset $ac_var;} ;;
2229: esac ;;
2230: esac
2231: done
2232: (set) 2>&1 |
2233: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2234: *${as_nl}ac_space=\ *)
2235: sed -n \
2236: "s/'\''/'\''\\\\'\'''\''/g;
2237: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2238: ;; #(
2239: *)
2240: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241: ;;
2242: esac |
2243: sort
2244: )
2245: echo
2246:
2247: $as_echo "## ----------------- ##
2248: ## Output variables. ##
2249: ## ----------------- ##"
2250: echo
2251: for ac_var in $ac_subst_vars
2252: do
2253: eval ac_val=\$$ac_var
2254: case $ac_val in
2255: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256: esac
2257: $as_echo "$ac_var='\''$ac_val'\''"
2258: done | sort
2259: echo
2260:
2261: if test -n "$ac_subst_files"; then
2262: $as_echo "## ------------------- ##
2263: ## File substitutions. ##
2264: ## ------------------- ##"
2265: echo
2266: for ac_var in $ac_subst_files
2267: do
2268: eval ac_val=\$$ac_var
2269: case $ac_val in
2270: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271: esac
2272: $as_echo "$ac_var='\''$ac_val'\''"
2273: done | sort
2274: echo
2275: fi
2276:
2277: if test -s confdefs.h; then
2278: $as_echo "## ----------- ##
2279: ## confdefs.h. ##
2280: ## ----------- ##"
2281: echo
2282: cat confdefs.h
2283: echo
2284: fi
2285: test "$ac_signal" != 0 &&
2286: $as_echo "$as_me: caught signal $ac_signal"
2287: $as_echo "$as_me: exit $exit_status"
2288: } >&5
2289: rm -f core *.core core.conftest.* &&
2290: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2291: exit $exit_status
2292: ' 0
2293: for ac_signal in 1 2 13 15; do
2294: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2295: done
2296: ac_signal=0
2297:
2298: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2299: rm -f -r conftest* confdefs.h
2300:
2301: $as_echo "/* confdefs.h */" > confdefs.h
2302:
2303: # Predefined preprocessor variables.
2304:
2305: cat >>confdefs.h <<_ACEOF
2306: #define PACKAGE_NAME "$PACKAGE_NAME"
2307: _ACEOF
2308:
2309: cat >>confdefs.h <<_ACEOF
2310: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2311: _ACEOF
2312:
2313: cat >>confdefs.h <<_ACEOF
2314: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2315: _ACEOF
2316:
2317: cat >>confdefs.h <<_ACEOF
2318: #define PACKAGE_STRING "$PACKAGE_STRING"
2319: _ACEOF
2320:
2321: cat >>confdefs.h <<_ACEOF
2322: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2323: _ACEOF
2324:
2325: cat >>confdefs.h <<_ACEOF
2326: #define PACKAGE_URL "$PACKAGE_URL"
2327: _ACEOF
2328:
2329:
2330: # Let the site file select an alternate cache file if it wants to.
2331: # Prefer an explicitly selected file to automatically selected ones.
2332: ac_site_file1=NONE
2333: ac_site_file2=NONE
2334: if test -n "$CONFIG_SITE"; then
2335: # We do not want a PATH search for config.site.
2336: case $CONFIG_SITE in #((
2337: -*) ac_site_file1=./$CONFIG_SITE;;
2338: */*) ac_site_file1=$CONFIG_SITE;;
2339: *) ac_site_file1=./$CONFIG_SITE;;
2340: esac
2341: elif test "x$prefix" != xNONE; then
2342: ac_site_file1=$prefix/share/config.site
2343: ac_site_file2=$prefix/etc/config.site
2344: else
2345: ac_site_file1=$ac_default_prefix/share/config.site
2346: ac_site_file2=$ac_default_prefix/etc/config.site
2347: fi
2348: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349: do
2350: test "x$ac_site_file" = xNONE && continue
2351: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2352: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2354: sed 's/^/| /' "$ac_site_file" >&5
2355: . "$ac_site_file" \
2356: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2357: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2358: as_fn_error $? "failed to load site script $ac_site_file
2359: See \`config.log' for more details" "$LINENO" 5; }
2360: fi
2361: done
2362:
2363: if test -r "$cache_file"; then
2364: # Some versions of bash will fail to source /dev/null (special files
2365: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2366: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2367: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2368: $as_echo "$as_me: loading cache $cache_file" >&6;}
2369: case $cache_file in
2370: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371: *) . "./$cache_file";;
2372: esac
2373: fi
2374: else
2375: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2376: $as_echo "$as_me: creating cache $cache_file" >&6;}
2377: >$cache_file
2378: fi
2379:
2380: # Check that the precious variables saved in the cache have kept the same
2381: # value.
2382: ac_cache_corrupted=false
2383: for ac_var in $ac_precious_vars; do
2384: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2385: eval ac_new_set=\$ac_env_${ac_var}_set
2386: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2387: eval ac_new_val=\$ac_env_${ac_var}_value
2388: case $ac_old_set,$ac_new_set in
2389: set,)
2390: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2391: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2392: ac_cache_corrupted=: ;;
2393: ,set)
2394: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2395: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2396: ac_cache_corrupted=: ;;
2397: ,);;
2398: *)
2399: if test "x$ac_old_val" != "x$ac_new_val"; then
2400: # differences in whitespace do not lead to failure.
2401: ac_old_val_w=`echo x $ac_old_val`
2402: ac_new_val_w=`echo x $ac_new_val`
2403: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2404: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2405: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2406: ac_cache_corrupted=:
2407: else
2408: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2409: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2410: eval $ac_var=\$ac_old_val
2411: fi
2412: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2413: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2414: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2415: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2416: fi;;
2417: esac
2418: # Pass precious variables to config.status.
2419: if test "$ac_new_set" = set; then
2420: case $ac_new_val in
2421: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2422: *) ac_arg=$ac_var=$ac_new_val ;;
2423: esac
2424: case " $ac_configure_args " in
2425: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2426: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2427: esac
2428: fi
2429: done
2430: if $ac_cache_corrupted; then
2431: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2434: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2435: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2436: fi
2437: ## -------------------- ##
2438: ## Main body of script. ##
2439: ## -------------------- ##
2440:
2441: ac_ext=c
2442: ac_cpp='$CPP $CPPFLAGS'
2443: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446:
2447:
2448:
2449: ac_aux_dir=
2450: for ac_dir in . "$srcdir"/.; do
2451: if test -f "$ac_dir/install-sh"; then
2452: ac_aux_dir=$ac_dir
2453: ac_install_sh="$ac_aux_dir/install-sh -c"
2454: break
2455: elif test -f "$ac_dir/install.sh"; then
2456: ac_aux_dir=$ac_dir
2457: ac_install_sh="$ac_aux_dir/install.sh -c"
2458: break
2459: elif test -f "$ac_dir/shtool"; then
2460: ac_aux_dir=$ac_dir
2461: ac_install_sh="$ac_aux_dir/shtool install -c"
2462: break
2463: fi
2464: done
2465: if test -z "$ac_aux_dir"; then
2466: as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2467: fi
2468:
2469: # These three variables are undocumented and unsupported,
2470: # and are intended to be withdrawn in a future Autoconf release.
2471: # They can cause serious problems if a builder's source tree is in a directory
2472: # whose full name contains unusual characters.
2473: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2474: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2475: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2476:
2477:
2478:
2479: # Increment sntp_configure_cache_version by one for each change to
2480: # configure.ac or .m4 files which invalidates cached values from
2481: # previous versions.
2482: #
2483: # If the change affects cache variables used only by the main NTP
2484: # configure.ac, then only its version number should be bumped, while
2485: # the subdir configure.ac version numbers should be unchanged. The
2486: # same is true for a test/variable that is used only by one subdir
2487: # being changed incompatibly; only that subdir's cache version needs
2488: # bumping.
2489: #
2490: # If a change affects variables shared by all NTP configure scripts,
2491: # please bump the version numbers of all three. If you are not sure,
2492: # the safe choice is to bump all three on any cache-invalidating change.
2493: #
2494: # In order to avoid the risk of version stamp collision between -stable
2495: # and -dev branches, do not simply increment the version, instead use
2496: # the date YYYYMMDD optionally with -HHMM if there is more than one
2497: # bump in a day.
2498:
2499: sntp_configure_cache_version=20091117
2500:
2501: # When the version of config.cache and configure do not
2502: # match, NTP_CACHEVERSION will flush the cache.
2503:
2504:
2505:
2506: ntp_cache_flush=1
2507:
2508: case "$ntp_cv_sntp_cache_version" in
2509: $sntp_configure_cache_version)
2510: # same version, good
2511: ntp_cache_flush=0
2512: ;;
2513: '')
2514: # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2515: case "$cache_file" in
2516: /dev/null)
2517: ntp_cache_flush=0
2518: ;;
2519: *)
2520: case "$NTP_CACHEVERSION_PARENT" in
2521: '')
2522: # Do not clear the cache immediately after it is created
2523: # empty as it is noisy. Differentiate a newly-created
2524: # config.cache from one predating the cache version
2525: # mechanism by looking for the first cached variable set
2526: # by Autoconf
2527: case "$ac_cv_path_install" in
2528: '')
2529: # empty config.cache file
2530: ntp_cache_flush=0
2531: esac
2532: ;;
2533: *)
2534: # Parent configure just created cache from empty,
2535: # flushing would be counterproductive.
2536: ntp_cache_flush=0;
2537: esac
2538: esac
2539: ;;
2540: *)
2541: # configure cache version mismatches config.cache version
2542: esac
2543:
2544: case "$ntp_cache_flush" in
2545: 1)
2546: c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2547:
2548: # Do we flush all variables or exclude others' version stamps?
2549:
2550: case "$NTP_CACHEVERSION_PARENT" in
2551: '')
2552: # Clear all *_cv_* variables including our child subdirs'
2553: # ntp_cv_*_cache_version variables. This prevents subdir
2554: # configure scripts from noticing a version mismatch just
2555: # after the top configure in the invocation cleared and
2556: # recreated the cache.
2557:
2558: c_varname_list=`set |
2559: sed -n -e 's/=.*$//' \
2560: -e '/_cv_/p'
2561: `
2562: ;;
2563: *)
2564: # This is not the top configure this particular invocation.
2565: # Clear all *_cv_* variables sparing the version stamps
2566: # of other configure scripts, so we don't trigger
2567: # useless repeated clearings.
2568:
2569: c_varname_list=`set |
2570: sed -n -e 's/=.*$//' \
2571: -e '/ntp_cv_.*_cache_version/d' \
2572: -e '/_cv_/p'
2573: `
2574: esac
2575:
2576: for c_varname in $c_varname_list
2577: do
2578: { eval $c_varname=; unset $c_varname;}
2579: done
2580:
2581: { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2582: $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2583: { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2584: $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2585: { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2586: $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2587: { c_varname=; unset c_varname;}
2588: { c_varname_list=; unset c_varname_list;}
2589: { c_version=; unset c_version;}
2590: esac
2591:
2592: { ntp_cache_flush=; unset ntp_cache_flush;}
2593:
2594: # save configure version in config.cache for next time
2595: ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2596:
2597: # let any subdir configure.ac NTP_CACHEVERSION invocations
2598: # know they are not the top level.
2599: NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2600:
2601:
2602: am__api_version='1.11'
2603:
2604: # Find a good install program. We prefer a C program (faster),
2605: # so one script is as good as another. But avoid the broken or
2606: # incompatible versions:
2607: # SysV /etc/install, /usr/sbin/install
2608: # SunOS /usr/etc/install
2609: # IRIX /sbin/install
2610: # AIX /bin/install
2611: # AmigaOS /C/install, which installs bootblocks on floppy discs
2612: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2613: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2614: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2615: # OS/2's system install, which has a completely different semantic
2616: # ./install, which can be erroneously created by make from ./install.sh.
2617: # Reject install programs that cannot install multiple files.
2618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2619: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2620: if test -z "$INSTALL"; then
2621: if ${ac_cv_path_install+:} false; then :
2622: $as_echo_n "(cached) " >&6
2623: else
2624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625: for as_dir in $PATH
2626: do
2627: IFS=$as_save_IFS
2628: test -z "$as_dir" && as_dir=.
2629: # Account for people who put trailing slashes in PATH elements.
2630: case $as_dir/ in #((
2631: ./ | .// | /[cC]/* | \
2632: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2634: /usr/ucb/* ) ;;
2635: *)
2636: # OSF1 and SCO ODT 3.0 have their own names for install.
2637: # Don't use installbsd from OSF since it installs stuff as root
2638: # by default.
2639: for ac_prog in ginstall scoinst install; do
2640: for ac_exec_ext in '' $ac_executable_extensions; do
2641: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2642: if test $ac_prog = install &&
2643: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644: # AIX install. It has an incompatible calling convention.
2645: :
2646: elif test $ac_prog = install &&
2647: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648: # program-specific install script used by HP pwplus--don't use.
2649: :
2650: else
2651: rm -rf conftest.one conftest.two conftest.dir
2652: echo one > conftest.one
2653: echo two > conftest.two
2654: mkdir conftest.dir
2655: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2656: test -s conftest.one && test -s conftest.two &&
2657: test -s conftest.dir/conftest.one &&
2658: test -s conftest.dir/conftest.two
2659: then
2660: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2661: break 3
2662: fi
2663: fi
2664: fi
2665: done
2666: done
2667: ;;
2668: esac
2669:
2670: done
2671: IFS=$as_save_IFS
2672:
2673: rm -rf conftest.one conftest.two conftest.dir
2674:
2675: fi
2676: if test "${ac_cv_path_install+set}" = set; then
2677: INSTALL=$ac_cv_path_install
2678: else
2679: # As a last resort, use the slow shell script. Don't cache a
2680: # value for INSTALL within a source directory, because that will
2681: # break other packages using the cache if that directory is
2682: # removed, or if the value is a relative name.
2683: INSTALL=$ac_install_sh
2684: fi
2685: fi
2686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2687: $as_echo "$INSTALL" >&6; }
2688:
2689: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2690: # It thinks the first close brace ends the variable substitution.
2691: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2692:
2693: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2694:
2695: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2696:
2697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2698: $as_echo_n "checking whether build environment is sane... " >&6; }
2699: # Just in case
2700: sleep 1
2701: echo timestamp > conftest.file
2702: # Reject unsafe characters in $srcdir or the absolute working directory
2703: # name. Accept space and tab only in the latter.
2704: am_lf='
2705: '
2706: case `pwd` in
2707: *[\\\"\#\$\&\'\`$am_lf]*)
2708: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2709: esac
2710: case $srcdir in
2711: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2712: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2713: esac
2714:
2715: # Do `set' in a subshell so we don't clobber the current shell's
2716: # arguments. Must try -L first in case configure is actually a
2717: # symlink; some systems play weird games with the mod time of symlinks
2718: # (eg FreeBSD returns the mod time of the symlink's containing
2719: # directory).
2720: if (
2721: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2722: if test "$*" = "X"; then
2723: # -L didn't work.
2724: set X `ls -t "$srcdir/configure" conftest.file`
2725: fi
2726: rm -f conftest.file
2727: if test "$*" != "X $srcdir/configure conftest.file" \
2728: && test "$*" != "X conftest.file $srcdir/configure"; then
2729:
2730: # If neither matched, then we have a broken ls. This can happen
2731: # if, for instance, CONFIG_SHELL is bash and it inherits a
2732: # broken ls alias from the environment. This has actually
2733: # happened. Such a system could not be considered "sane".
2734: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2735: alias in your environment" "$LINENO" 5
2736: fi
2737:
2738: test "$2" = conftest.file
2739: )
2740: then
2741: # Ok.
2742: :
2743: else
2744: as_fn_error $? "newly created file is older than distributed files!
2745: Check your system clock" "$LINENO" 5
2746: fi
2747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2748: $as_echo "yes" >&6; }
2749: test "$program_prefix" != NONE &&
2750: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2751: # Use a double $ so make ignores it.
2752: test "$program_suffix" != NONE &&
2753: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2754: # Double any \ or $.
2755: # By default was `s,x,x', remove it if useless.
2756: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2757: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2758:
2759: # expand $ac_aux_dir to an absolute path
2760: am_aux_dir=`cd $ac_aux_dir && pwd`
2761:
2762: if test x"${MISSING+set}" != xset; then
2763: case $am_aux_dir in
2764: *\ * | *\ *)
2765: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2766: *)
2767: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2768: esac
2769: fi
2770: # Use eval to expand $SHELL
2771: if eval "$MISSING --run true"; then
2772: am_missing_run="$MISSING --run "
2773: else
2774: am_missing_run=
2775: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2776: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2777: fi
2778:
2779: if test x"${install_sh}" != xset; then
2780: case $am_aux_dir in
2781: *\ * | *\ *)
2782: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2783: *)
2784: install_sh="\${SHELL} $am_aux_dir/install-sh"
2785: esac
2786: fi
2787:
2788: # Installed binaries are usually stripped using `strip' when the user
2789: # run `make install-strip'. However `strip' might not be the right
2790: # tool to use in cross-compilation environments, therefore Automake
2791: # will honor the `STRIP' environment variable to overrule this program.
2792: if test "$cross_compiling" != no; then
2793: if test -n "$ac_tool_prefix"; then
2794: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2795: set dummy ${ac_tool_prefix}strip; ac_word=$2
2796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797: $as_echo_n "checking for $ac_word... " >&6; }
2798: if ${ac_cv_prog_STRIP+:} false; then :
2799: $as_echo_n "(cached) " >&6
2800: else
2801: if test -n "$STRIP"; then
2802: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2803: else
2804: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805: for as_dir in $PATH
2806: do
2807: IFS=$as_save_IFS
2808: test -z "$as_dir" && as_dir=.
2809: for ac_exec_ext in '' $ac_executable_extensions; do
2810: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2812: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813: break 2
2814: fi
2815: done
2816: done
2817: IFS=$as_save_IFS
2818:
2819: fi
2820: fi
2821: STRIP=$ac_cv_prog_STRIP
2822: if test -n "$STRIP"; then
2823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2824: $as_echo "$STRIP" >&6; }
2825: else
2826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827: $as_echo "no" >&6; }
2828: fi
2829:
2830:
2831: fi
2832: if test -z "$ac_cv_prog_STRIP"; then
2833: ac_ct_STRIP=$STRIP
2834: # Extract the first word of "strip", so it can be a program name with args.
2835: set dummy strip; ac_word=$2
2836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837: $as_echo_n "checking for $ac_word... " >&6; }
2838: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2839: $as_echo_n "(cached) " >&6
2840: else
2841: if test -n "$ac_ct_STRIP"; then
2842: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2843: else
2844: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845: for as_dir in $PATH
2846: do
2847: IFS=$as_save_IFS
2848: test -z "$as_dir" && as_dir=.
2849: for ac_exec_ext in '' $ac_executable_extensions; do
2850: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851: ac_cv_prog_ac_ct_STRIP="strip"
2852: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853: break 2
2854: fi
2855: done
2856: done
2857: IFS=$as_save_IFS
2858:
2859: fi
2860: fi
2861: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862: if test -n "$ac_ct_STRIP"; then
2863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864: $as_echo "$ac_ct_STRIP" >&6; }
2865: else
2866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867: $as_echo "no" >&6; }
2868: fi
2869:
2870: if test "x$ac_ct_STRIP" = x; then
2871: STRIP=":"
2872: else
2873: case $cross_compiling:$ac_tool_warned in
2874: yes:)
2875: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877: ac_tool_warned=yes ;;
2878: esac
2879: STRIP=$ac_ct_STRIP
2880: fi
2881: else
2882: STRIP="$ac_cv_prog_STRIP"
2883: fi
2884:
2885: fi
2886: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2887:
2888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2889: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2890: if test -z "$MKDIR_P"; then
2891: if ${ac_cv_path_mkdir+:} false; then :
2892: $as_echo_n "(cached) " >&6
2893: else
2894: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2896: do
2897: IFS=$as_save_IFS
2898: test -z "$as_dir" && as_dir=.
2899: for ac_prog in mkdir gmkdir; do
2900: for ac_exec_ext in '' $ac_executable_extensions; do
2901: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2902: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2903: 'mkdir (GNU coreutils) '* | \
2904: 'mkdir (coreutils) '* | \
2905: 'mkdir (fileutils) '4.1*)
2906: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2907: break 3;;
2908: esac
2909: done
2910: done
2911: done
2912: IFS=$as_save_IFS
2913:
2914: fi
2915:
2916: test -d ./--version && rmdir ./--version
2917: if test "${ac_cv_path_mkdir+set}" = set; then
2918: MKDIR_P="$ac_cv_path_mkdir -p"
2919: else
2920: # As a last resort, use the slow shell script. Don't cache a
2921: # value for MKDIR_P within a source directory, because that will
2922: # break other packages using the cache if that directory is
2923: # removed, or if the value is a relative name.
2924: MKDIR_P="$ac_install_sh -d"
2925: fi
2926: fi
2927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2928: $as_echo "$MKDIR_P" >&6; }
2929:
2930: mkdir_p="$MKDIR_P"
2931: case $mkdir_p in
2932: [\\/$]* | ?:[\\/]*) ;;
2933: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2934: esac
2935:
2936: for ac_prog in gawk mawk nawk awk
2937: do
2938: # Extract the first word of "$ac_prog", so it can be a program name with args.
2939: set dummy $ac_prog; ac_word=$2
2940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941: $as_echo_n "checking for $ac_word... " >&6; }
2942: if ${ac_cv_prog_AWK+:} false; then :
2943: $as_echo_n "(cached) " >&6
2944: else
2945: if test -n "$AWK"; then
2946: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2947: else
2948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949: for as_dir in $PATH
2950: do
2951: IFS=$as_save_IFS
2952: test -z "$as_dir" && as_dir=.
2953: for ac_exec_ext in '' $ac_executable_extensions; do
2954: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955: ac_cv_prog_AWK="$ac_prog"
2956: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957: break 2
2958: fi
2959: done
2960: done
2961: IFS=$as_save_IFS
2962:
2963: fi
2964: fi
2965: AWK=$ac_cv_prog_AWK
2966: if test -n "$AWK"; then
2967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2968: $as_echo "$AWK" >&6; }
2969: else
2970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971: $as_echo "no" >&6; }
2972: fi
2973:
2974:
2975: test -n "$AWK" && break
2976: done
2977:
2978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2979: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2980: set x ${MAKE-make}
2981: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2982: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2983: $as_echo_n "(cached) " >&6
2984: else
2985: cat >conftest.make <<\_ACEOF
2986: SHELL = /bin/sh
2987: all:
2988: @echo '@@@%%%=$(MAKE)=@@@%%%'
2989: _ACEOF
2990: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2991: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2992: *@@@%%%=?*=@@@%%%*)
2993: eval ac_cv_prog_make_${ac_make}_set=yes;;
2994: *)
2995: eval ac_cv_prog_make_${ac_make}_set=no;;
2996: esac
2997: rm -f conftest.make
2998: fi
2999: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001: $as_echo "yes" >&6; }
3002: SET_MAKE=
3003: else
3004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005: $as_echo "no" >&6; }
3006: SET_MAKE="MAKE=${MAKE-make}"
3007: fi
3008:
3009: rm -rf .tst 2>/dev/null
3010: mkdir .tst 2>/dev/null
3011: if test -d .tst; then
3012: am__leading_dot=.
3013: else
3014: am__leading_dot=_
3015: fi
3016: rmdir .tst 2>/dev/null
3017:
3018: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3019: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3020: # is not polluted with repeated "-I."
3021: am__isrc=' -I$(srcdir)'
3022: # test to see if srcdir already configured
3023: if test -f $srcdir/config.status; then
3024: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3025: fi
3026: fi
3027:
3028: # test whether we have cygpath
3029: if test -z "$CYGPATH_W"; then
3030: if (cygpath --version) >/dev/null 2>/dev/null; then
3031: CYGPATH_W='cygpath -w'
3032: else
3033: CYGPATH_W=echo
3034: fi
3035: fi
3036:
3037:
3038: # Define the identity of the package.
3039: PACKAGE='sntp'
3040: VERSION='4.2.6p5'
3041:
3042:
3043: cat >>confdefs.h <<_ACEOF
3044: #define PACKAGE "$PACKAGE"
3045: _ACEOF
3046:
3047:
3048: cat >>confdefs.h <<_ACEOF
3049: #define VERSION "$VERSION"
3050: _ACEOF
3051:
3052: # Some tools Automake needs.
3053:
3054: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3055:
3056:
3057: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3058:
3059:
3060: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3061:
3062:
3063: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3064:
3065:
3066: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3067:
3068: # We need awk for the "check" target. The system "awk" is bad on
3069: # some platforms.
3070: # Always define AMTAR for backward compatibility.
3071:
3072: AMTAR=${AMTAR-"${am_missing_run}tar"}
3073:
3074: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3075:
3076:
3077:
3078:
3079:
3080: # Make sure we can run config.sub.
3081: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3082: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3083:
3084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085: $as_echo_n "checking build system type... " >&6; }
3086: if ${ac_cv_build+:} false; then :
3087: $as_echo_n "(cached) " >&6
3088: else
3089: ac_build_alias=$build_alias
3090: test "x$ac_build_alias" = x &&
3091: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3092: test "x$ac_build_alias" = x &&
3093: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3094: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3096:
3097: fi
3098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099: $as_echo "$ac_cv_build" >&6; }
3100: case $ac_cv_build in
3101: *-*-*) ;;
3102: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3103: esac
3104: build=$ac_cv_build
3105: ac_save_IFS=$IFS; IFS='-'
3106: set x $ac_cv_build
3107: shift
3108: build_cpu=$1
3109: build_vendor=$2
3110: shift; shift
3111: # Remember, the first character of IFS is used to create $*,
3112: # except with old shells:
3113: build_os=$*
3114: IFS=$ac_save_IFS
3115: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3116:
3117:
3118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119: $as_echo_n "checking host system type... " >&6; }
3120: if ${ac_cv_host+:} false; then :
3121: $as_echo_n "(cached) " >&6
3122: else
3123: if test "x$host_alias" = x; then
3124: ac_cv_host=$ac_cv_build
3125: else
3126: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3128: fi
3129:
3130: fi
3131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132: $as_echo "$ac_cv_host" >&6; }
3133: case $ac_cv_host in
3134: *-*-*) ;;
3135: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3136: esac
3137: host=$ac_cv_host
3138: ac_save_IFS=$IFS; IFS='-'
3139: set x $ac_cv_host
3140: shift
3141: host_cpu=$1
3142: host_vendor=$2
3143: shift; shift
3144: # Remember, the first character of IFS is used to create $*,
3145: # except with old shells:
3146: host_os=$*
3147: IFS=$ac_save_IFS
3148: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3149:
3150:
3151:
3152: cat >>confdefs.h <<_ACEOF
3153: #define STR_SYSTEM "$host"
3154: _ACEOF
3155:
3156: ac_config_headers="$ac_config_headers config.h"
3157:
3158:
3159: # Checks for programs.
3160: DEPDIR="${am__leading_dot}deps"
3161:
3162: ac_config_commands="$ac_config_commands depfiles"
3163:
3164:
3165: am_make=${MAKE-make}
3166: cat > confinc << 'END'
3167: am__doit:
3168: @echo this is the am__doit target
3169: .PHONY: am__doit
3170: END
3171: # If we don't find an include directive, just comment out the code.
3172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3173: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3174: am__include="#"
3175: am__quote=
3176: _am_result=none
3177: # First try GNU make style include.
3178: echo "include confinc" > confmf
3179: # Ignore all kinds of additional output from `make'.
3180: case `$am_make -s -f confmf 2> /dev/null` in #(
3181: *the\ am__doit\ target*)
3182: am__include=include
3183: am__quote=
3184: _am_result=GNU
3185: ;;
3186: esac
3187: # Now try BSD make style include.
3188: if test "$am__include" = "#"; then
3189: echo '.include "confinc"' > confmf
3190: case `$am_make -s -f confmf 2> /dev/null` in #(
3191: *the\ am__doit\ target*)
3192: am__include=.include
3193: am__quote="\""
3194: _am_result=BSD
3195: ;;
3196: esac
3197: fi
3198:
3199:
3200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3201: $as_echo "$_am_result" >&6; }
3202: rm -f confinc confmf
3203:
3204: # Check whether --enable-dependency-tracking was given.
3205: if test "${enable_dependency_tracking+set}" = set; then :
3206: enableval=$enable_dependency_tracking;
3207: fi
3208:
3209: if test "x$enable_dependency_tracking" != xno; then
3210: am_depcomp="$ac_aux_dir/depcomp"
3211: AMDEPBACKSLASH='\'
3212: fi
3213: if test "x$enable_dependency_tracking" != xno; then
3214: AMDEP_TRUE=
3215: AMDEP_FALSE='#'
3216: else
3217: AMDEP_TRUE='#'
3218: AMDEP_FALSE=
3219: fi
3220:
3221:
3222: ac_ext=c
3223: ac_cpp='$CPP $CPPFLAGS'
3224: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227: if test -n "$ac_tool_prefix"; then
3228: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3229: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231: $as_echo_n "checking for $ac_word... " >&6; }
3232: if ${ac_cv_prog_CC+:} false; then :
3233: $as_echo_n "(cached) " >&6
3234: else
3235: if test -n "$CC"; then
3236: ac_cv_prog_CC="$CC" # Let the user override the test.
3237: else
3238: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239: for as_dir in $PATH
3240: do
3241: IFS=$as_save_IFS
3242: test -z "$as_dir" && as_dir=.
3243: for ac_exec_ext in '' $ac_executable_extensions; do
3244: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3246: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247: break 2
3248: fi
3249: done
3250: done
3251: IFS=$as_save_IFS
3252:
3253: fi
3254: fi
3255: CC=$ac_cv_prog_CC
3256: if test -n "$CC"; then
3257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258: $as_echo "$CC" >&6; }
3259: else
3260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261: $as_echo "no" >&6; }
3262: fi
3263:
3264:
3265: fi
3266: if test -z "$ac_cv_prog_CC"; then
3267: ac_ct_CC=$CC
3268: # Extract the first word of "gcc", so it can be a program name with args.
3269: set dummy gcc; ac_word=$2
3270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271: $as_echo_n "checking for $ac_word... " >&6; }
3272: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3273: $as_echo_n "(cached) " >&6
3274: else
3275: if test -n "$ac_ct_CC"; then
3276: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277: else
3278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279: for as_dir in $PATH
3280: do
3281: IFS=$as_save_IFS
3282: test -z "$as_dir" && as_dir=.
3283: for ac_exec_ext in '' $ac_executable_extensions; do
3284: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285: ac_cv_prog_ac_ct_CC="gcc"
3286: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287: break 2
3288: fi
3289: done
3290: done
3291: IFS=$as_save_IFS
3292:
3293: fi
3294: fi
3295: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296: if test -n "$ac_ct_CC"; then
3297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298: $as_echo "$ac_ct_CC" >&6; }
3299: else
3300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301: $as_echo "no" >&6; }
3302: fi
3303:
3304: if test "x$ac_ct_CC" = x; then
3305: CC=""
3306: else
3307: case $cross_compiling:$ac_tool_warned in
3308: yes:)
3309: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311: ac_tool_warned=yes ;;
3312: esac
3313: CC=$ac_ct_CC
3314: fi
3315: else
3316: CC="$ac_cv_prog_CC"
3317: fi
3318:
3319: if test -z "$CC"; then
3320: if test -n "$ac_tool_prefix"; then
3321: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3322: set dummy ${ac_tool_prefix}cc; ac_word=$2
3323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324: $as_echo_n "checking for $ac_word... " >&6; }
3325: if ${ac_cv_prog_CC+:} false; then :
3326: $as_echo_n "(cached) " >&6
3327: else
3328: if test -n "$CC"; then
3329: ac_cv_prog_CC="$CC" # Let the user override the test.
3330: else
3331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332: for as_dir in $PATH
3333: do
3334: IFS=$as_save_IFS
3335: test -z "$as_dir" && as_dir=.
3336: for ac_exec_ext in '' $ac_executable_extensions; do
3337: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338: ac_cv_prog_CC="${ac_tool_prefix}cc"
3339: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340: break 2
3341: fi
3342: done
3343: done
3344: IFS=$as_save_IFS
3345:
3346: fi
3347: fi
3348: CC=$ac_cv_prog_CC
3349: if test -n "$CC"; then
3350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351: $as_echo "$CC" >&6; }
3352: else
3353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354: $as_echo "no" >&6; }
3355: fi
3356:
3357:
3358: fi
3359: fi
3360: if test -z "$CC"; then
3361: # Extract the first word of "cc", so it can be a program name with args.
3362: set dummy cc; ac_word=$2
3363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364: $as_echo_n "checking for $ac_word... " >&6; }
3365: if ${ac_cv_prog_CC+:} false; then :
3366: $as_echo_n "(cached) " >&6
3367: else
3368: if test -n "$CC"; then
3369: ac_cv_prog_CC="$CC" # Let the user override the test.
3370: else
3371: ac_prog_rejected=no
3372: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373: for as_dir in $PATH
3374: do
3375: IFS=$as_save_IFS
3376: test -z "$as_dir" && as_dir=.
3377: for ac_exec_ext in '' $ac_executable_extensions; do
3378: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380: ac_prog_rejected=yes
3381: continue
3382: fi
3383: ac_cv_prog_CC="cc"
3384: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385: break 2
3386: fi
3387: done
3388: done
3389: IFS=$as_save_IFS
3390:
3391: if test $ac_prog_rejected = yes; then
3392: # We found a bogon in the path, so make sure we never use it.
3393: set dummy $ac_cv_prog_CC
3394: shift
3395: if test $# != 0; then
3396: # We chose a different compiler from the bogus one.
3397: # However, it has the same basename, so the bogon will be chosen
3398: # first if we set CC to just the basename; use the full file name.
3399: shift
3400: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401: fi
3402: fi
3403: fi
3404: fi
3405: CC=$ac_cv_prog_CC
3406: if test -n "$CC"; then
3407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408: $as_echo "$CC" >&6; }
3409: else
3410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411: $as_echo "no" >&6; }
3412: fi
3413:
3414:
3415: fi
3416: if test -z "$CC"; then
3417: if test -n "$ac_tool_prefix"; then
3418: for ac_prog in cl.exe
3419: do
3420: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423: $as_echo_n "checking for $ac_word... " >&6; }
3424: if ${ac_cv_prog_CC+:} false; then :
3425: $as_echo_n "(cached) " >&6
3426: else
3427: if test -n "$CC"; then
3428: ac_cv_prog_CC="$CC" # Let the user override the test.
3429: else
3430: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431: for as_dir in $PATH
3432: do
3433: IFS=$as_save_IFS
3434: test -z "$as_dir" && as_dir=.
3435: for ac_exec_ext in '' $ac_executable_extensions; do
3436: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439: break 2
3440: fi
3441: done
3442: done
3443: IFS=$as_save_IFS
3444:
3445: fi
3446: fi
3447: CC=$ac_cv_prog_CC
3448: if test -n "$CC"; then
3449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450: $as_echo "$CC" >&6; }
3451: else
3452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453: $as_echo "no" >&6; }
3454: fi
3455:
3456:
3457: test -n "$CC" && break
3458: done
3459: fi
3460: if test -z "$CC"; then
3461: ac_ct_CC=$CC
3462: for ac_prog in cl.exe
3463: do
3464: # Extract the first word of "$ac_prog", so it can be a program name with args.
3465: set dummy $ac_prog; ac_word=$2
3466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467: $as_echo_n "checking for $ac_word... " >&6; }
3468: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3469: $as_echo_n "(cached) " >&6
3470: else
3471: if test -n "$ac_ct_CC"; then
3472: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473: else
3474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475: for as_dir in $PATH
3476: do
3477: IFS=$as_save_IFS
3478: test -z "$as_dir" && as_dir=.
3479: for ac_exec_ext in '' $ac_executable_extensions; do
3480: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481: ac_cv_prog_ac_ct_CC="$ac_prog"
3482: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483: break 2
3484: fi
3485: done
3486: done
3487: IFS=$as_save_IFS
3488:
3489: fi
3490: fi
3491: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492: if test -n "$ac_ct_CC"; then
3493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494: $as_echo "$ac_ct_CC" >&6; }
3495: else
3496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497: $as_echo "no" >&6; }
3498: fi
3499:
3500:
3501: test -n "$ac_ct_CC" && break
3502: done
3503:
3504: if test "x$ac_ct_CC" = x; then
3505: CC=""
3506: else
3507: case $cross_compiling:$ac_tool_warned in
3508: yes:)
3509: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511: ac_tool_warned=yes ;;
3512: esac
3513: CC=$ac_ct_CC
3514: fi
3515: fi
3516:
3517: fi
3518:
3519:
3520: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522: as_fn_error $? "no acceptable C compiler found in \$PATH
3523: See \`config.log' for more details" "$LINENO" 5; }
3524:
3525: # Provide some information about the compiler.
3526: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3527: set X $ac_compile
3528: ac_compiler=$2
3529: for ac_option in --version -v -V -qversion; do
3530: { { ac_try="$ac_compiler $ac_option >&5"
3531: case "(($ac_try" in
3532: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533: *) ac_try_echo=$ac_try;;
3534: esac
3535: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536: $as_echo "$ac_try_echo"; } >&5
3537: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3538: ac_status=$?
3539: if test -s conftest.err; then
3540: sed '10a\
3541: ... rest of stderr output deleted ...
3542: 10q' conftest.err >conftest.er1
3543: cat conftest.er1 >&5
3544: fi
3545: rm -f conftest.er1 conftest.err
3546: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547: test $ac_status = 0; }
3548: done
3549:
3550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551: /* end confdefs.h. */
3552:
3553: int
3554: main ()
3555: {
3556:
3557: ;
3558: return 0;
3559: }
3560: _ACEOF
3561: ac_clean_files_save=$ac_clean_files
3562: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3563: # Try to create an executable without -o first, disregard a.out.
3564: # It will help us diagnose broken compilers, and finding out an intuition
3565: # of exeext.
3566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3567: $as_echo_n "checking whether the C compiler works... " >&6; }
3568: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3569:
3570: # The possible output files:
3571: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3572:
3573: ac_rmfiles=
3574: for ac_file in $ac_files
3575: do
3576: case $ac_file in
3577: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3579: esac
3580: done
3581: rm -f $ac_rmfiles
3582:
3583: if { { ac_try="$ac_link_default"
3584: case "(($ac_try" in
3585: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586: *) ac_try_echo=$ac_try;;
3587: esac
3588: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589: $as_echo "$ac_try_echo"; } >&5
3590: (eval "$ac_link_default") 2>&5
3591: ac_status=$?
3592: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593: test $ac_status = 0; }; then :
3594: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3597: # so that the user can short-circuit this test for compilers unknown to
3598: # Autoconf.
3599: for ac_file in $ac_files ''
3600: do
3601: test -f "$ac_file" || continue
3602: case $ac_file in
3603: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3604: ;;
3605: [ab].out )
3606: # We found the default executable, but exeext='' is most
3607: # certainly right.
3608: break;;
3609: *.* )
3610: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3611: then :; else
3612: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613: fi
3614: # We set ac_cv_exeext here because the later test for it is not
3615: # safe: cross compilers may not add the suffix if given an `-o'
3616: # argument, so we may need to know it at that point already.
3617: # Even if this section looks crufty: it has the advantage of
3618: # actually working.
3619: break;;
3620: * )
3621: break;;
3622: esac
3623: done
3624: test "$ac_cv_exeext" = no && ac_cv_exeext=
3625:
3626: else
3627: ac_file=''
3628: fi
3629: if test -z "$ac_file"; then :
3630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631: $as_echo "no" >&6; }
3632: $as_echo "$as_me: failed program was:" >&5
3633: sed 's/^/| /' conftest.$ac_ext >&5
3634:
3635: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637: as_fn_error 77 "C compiler cannot create executables
3638: See \`config.log' for more details" "$LINENO" 5; }
3639: else
3640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641: $as_echo "yes" >&6; }
3642: fi
3643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3644: $as_echo_n "checking for C compiler default output file name... " >&6; }
3645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3646: $as_echo "$ac_file" >&6; }
3647: ac_exeext=$ac_cv_exeext
3648:
3649: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3650: ac_clean_files=$ac_clean_files_save
3651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3652: $as_echo_n "checking for suffix of executables... " >&6; }
3653: if { { ac_try="$ac_link"
3654: case "(($ac_try" in
3655: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656: *) ac_try_echo=$ac_try;;
3657: esac
3658: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659: $as_echo "$ac_try_echo"; } >&5
3660: (eval "$ac_link") 2>&5
3661: ac_status=$?
3662: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663: test $ac_status = 0; }; then :
3664: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3665: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3666: # work properly (i.e., refer to `conftest.exe'), while it won't with
3667: # `rm'.
3668: for ac_file in conftest.exe conftest conftest.*; do
3669: test -f "$ac_file" || continue
3670: case $ac_file in
3671: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3672: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3673: break;;
3674: * ) break;;
3675: esac
3676: done
3677: else
3678: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3681: See \`config.log' for more details" "$LINENO" 5; }
3682: fi
3683: rm -f conftest conftest$ac_cv_exeext
3684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3685: $as_echo "$ac_cv_exeext" >&6; }
3686:
3687: rm -f conftest.$ac_ext
3688: EXEEXT=$ac_cv_exeext
3689: ac_exeext=$EXEEXT
3690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691: /* end confdefs.h. */
3692: #include <stdio.h>
3693: int
3694: main ()
3695: {
3696: FILE *f = fopen ("conftest.out", "w");
3697: return ferror (f) || fclose (f) != 0;
3698:
3699: ;
3700: return 0;
3701: }
3702: _ACEOF
3703: ac_clean_files="$ac_clean_files conftest.out"
3704: # Check that the compiler produces executables we can run. If not, either
3705: # the compiler is broken, or we cross compile.
3706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3707: $as_echo_n "checking whether we are cross compiling... " >&6; }
3708: if test "$cross_compiling" != yes; then
3709: { { ac_try="$ac_link"
3710: case "(($ac_try" in
3711: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712: *) ac_try_echo=$ac_try;;
3713: esac
3714: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715: $as_echo "$ac_try_echo"; } >&5
3716: (eval "$ac_link") 2>&5
3717: ac_status=$?
3718: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719: test $ac_status = 0; }
3720: if { ac_try='./conftest$ac_cv_exeext'
3721: { { case "(($ac_try" in
3722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723: *) ac_try_echo=$ac_try;;
3724: esac
3725: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726: $as_echo "$ac_try_echo"; } >&5
3727: (eval "$ac_try") 2>&5
3728: ac_status=$?
3729: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730: test $ac_status = 0; }; }; then
3731: cross_compiling=no
3732: else
3733: if test "$cross_compiling" = maybe; then
3734: cross_compiling=yes
3735: else
3736: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738: as_fn_error $? "cannot run C compiled programs.
3739: If you meant to cross compile, use \`--host'.
3740: See \`config.log' for more details" "$LINENO" 5; }
3741: fi
3742: fi
3743: fi
3744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3745: $as_echo "$cross_compiling" >&6; }
3746:
3747: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3748: ac_clean_files=$ac_clean_files_save
3749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3750: $as_echo_n "checking for suffix of object files... " >&6; }
3751: if ${ac_cv_objext+:} false; then :
3752: $as_echo_n "(cached) " >&6
3753: else
3754: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755: /* end confdefs.h. */
3756:
3757: int
3758: main ()
3759: {
3760:
3761: ;
3762: return 0;
3763: }
3764: _ACEOF
3765: rm -f conftest.o conftest.obj
3766: if { { ac_try="$ac_compile"
3767: case "(($ac_try" in
3768: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769: *) ac_try_echo=$ac_try;;
3770: esac
3771: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772: $as_echo "$ac_try_echo"; } >&5
3773: (eval "$ac_compile") 2>&5
3774: ac_status=$?
3775: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776: test $ac_status = 0; }; then :
3777: for ac_file in conftest.o conftest.obj conftest.*; do
3778: test -f "$ac_file" || continue;
3779: case $ac_file in
3780: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3781: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3782: break;;
3783: esac
3784: done
3785: else
3786: $as_echo "$as_me: failed program was:" >&5
3787: sed 's/^/| /' conftest.$ac_ext >&5
3788:
3789: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791: as_fn_error $? "cannot compute suffix of object files: cannot compile
3792: See \`config.log' for more details" "$LINENO" 5; }
3793: fi
3794: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3795: fi
3796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3797: $as_echo "$ac_cv_objext" >&6; }
3798: OBJEXT=$ac_cv_objext
3799: ac_objext=$OBJEXT
3800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3801: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3802: if ${ac_cv_c_compiler_gnu+:} false; then :
3803: $as_echo_n "(cached) " >&6
3804: else
3805: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806: /* end confdefs.h. */
3807:
3808: int
3809: main ()
3810: {
3811: #ifndef __GNUC__
3812: choke me
3813: #endif
3814:
3815: ;
3816: return 0;
3817: }
3818: _ACEOF
3819: if ac_fn_c_try_compile "$LINENO"; then :
3820: ac_compiler_gnu=yes
3821: else
3822: ac_compiler_gnu=no
3823: fi
3824: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3826:
3827: fi
3828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3829: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3830: if test $ac_compiler_gnu = yes; then
3831: GCC=yes
3832: else
3833: GCC=
3834: fi
3835: ac_test_CFLAGS=${CFLAGS+set}
3836: ac_save_CFLAGS=$CFLAGS
3837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3838: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3839: if ${ac_cv_prog_cc_g+:} false; then :
3840: $as_echo_n "(cached) " >&6
3841: else
3842: ac_save_c_werror_flag=$ac_c_werror_flag
3843: ac_c_werror_flag=yes
3844: ac_cv_prog_cc_g=no
3845: CFLAGS="-g"
3846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847: /* end confdefs.h. */
3848:
3849: int
3850: main ()
3851: {
3852:
3853: ;
3854: return 0;
3855: }
3856: _ACEOF
3857: if ac_fn_c_try_compile "$LINENO"; then :
3858: ac_cv_prog_cc_g=yes
3859: else
3860: CFLAGS=""
3861: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862: /* end confdefs.h. */
3863:
3864: int
3865: main ()
3866: {
3867:
3868: ;
3869: return 0;
3870: }
3871: _ACEOF
3872: if ac_fn_c_try_compile "$LINENO"; then :
3873:
3874: else
3875: ac_c_werror_flag=$ac_save_c_werror_flag
3876: CFLAGS="-g"
3877: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878: /* end confdefs.h. */
3879:
3880: int
3881: main ()
3882: {
3883:
3884: ;
3885: return 0;
3886: }
3887: _ACEOF
3888: if ac_fn_c_try_compile "$LINENO"; then :
3889: ac_cv_prog_cc_g=yes
3890: fi
3891: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892: fi
3893: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894: fi
3895: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896: ac_c_werror_flag=$ac_save_c_werror_flag
3897: fi
3898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3899: $as_echo "$ac_cv_prog_cc_g" >&6; }
3900: if test "$ac_test_CFLAGS" = set; then
3901: CFLAGS=$ac_save_CFLAGS
3902: elif test $ac_cv_prog_cc_g = yes; then
3903: if test "$GCC" = yes; then
3904: CFLAGS="-g -O2"
3905: else
3906: CFLAGS="-g"
3907: fi
3908: else
3909: if test "$GCC" = yes; then
3910: CFLAGS="-O2"
3911: else
3912: CFLAGS=
3913: fi
3914: fi
3915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3916: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3917: if ${ac_cv_prog_cc_c89+:} false; then :
3918: $as_echo_n "(cached) " >&6
3919: else
3920: ac_cv_prog_cc_c89=no
3921: ac_save_CC=$CC
3922: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923: /* end confdefs.h. */
3924: #include <stdarg.h>
3925: #include <stdio.h>
3926: #include <sys/types.h>
3927: #include <sys/stat.h>
3928: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3929: struct buf { int x; };
3930: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3931: static char *e (p, i)
3932: char **p;
3933: int i;
3934: {
3935: return p[i];
3936: }
3937: static char *f (char * (*g) (char **, int), char **p, ...)
3938: {
3939: char *s;
3940: va_list v;
3941: va_start (v,p);
3942: s = g (p, va_arg (v,int));
3943: va_end (v);
3944: return s;
3945: }
3946:
3947: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3948: function prototypes and stuff, but not '\xHH' hex character constants.
3949: These don't provoke an error unfortunately, instead are silently treated
3950: as 'x'. The following induces an error, until -std is added to get
3951: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3952: array size at least. It's necessary to write '\x00'==0 to get something
3953: that's true only with -std. */
3954: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3955:
3956: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3957: inside strings and character constants. */
3958: #define FOO(x) 'x'
3959: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3960:
3961: int test (int i, double x);
3962: struct s1 {int (*f) (int a);};
3963: struct s2 {int (*f) (double a);};
3964: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3965: int argc;
3966: char **argv;
3967: int
3968: main ()
3969: {
3970: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3971: ;
3972: return 0;
3973: }
3974: _ACEOF
3975: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3976: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3977: do
3978: CC="$ac_save_CC $ac_arg"
3979: if ac_fn_c_try_compile "$LINENO"; then :
3980: ac_cv_prog_cc_c89=$ac_arg
3981: fi
3982: rm -f core conftest.err conftest.$ac_objext
3983: test "x$ac_cv_prog_cc_c89" != "xno" && break
3984: done
3985: rm -f conftest.$ac_ext
3986: CC=$ac_save_CC
3987:
3988: fi
3989: # AC_CACHE_VAL
3990: case "x$ac_cv_prog_cc_c89" in
3991: x)
3992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993: $as_echo "none needed" >&6; } ;;
3994: xno)
3995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996: $as_echo "unsupported" >&6; } ;;
3997: *)
3998: CC="$CC $ac_cv_prog_cc_c89"
3999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4000: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4001: esac
4002: if test "x$ac_cv_prog_cc_c89" != xno; then :
4003:
4004: fi
4005:
4006: ac_ext=c
4007: ac_cpp='$CPP $CPPFLAGS'
4008: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011:
4012: depcc="$CC" am_compiler_list=
4013:
4014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4015: $as_echo_n "checking dependency style of $depcc... " >&6; }
4016: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4017: $as_echo_n "(cached) " >&6
4018: else
4019: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4020: # We make a subdir and do the tests there. Otherwise we can end up
4021: # making bogus files that we don't know about and never remove. For
4022: # instance it was reported that on HP-UX the gcc test will end up
4023: # making a dummy file named `D' -- because `-MD' means `put the output
4024: # in D'.
4025: mkdir conftest.dir
4026: # Copy depcomp to subdir because otherwise we won't find it if we're
4027: # using a relative directory.
4028: cp "$am_depcomp" conftest.dir
4029: cd conftest.dir
4030: # We will build objects and dependencies in a subdirectory because
4031: # it helps to detect inapplicable dependency modes. For instance
4032: # both Tru64's cc and ICC support -MD to output dependencies as a
4033: # side effect of compilation, but ICC will put the dependencies in
4034: # the current directory while Tru64 will put them in the object
4035: # directory.
4036: mkdir sub
4037:
4038: am_cv_CC_dependencies_compiler_type=none
4039: if test "$am_compiler_list" = ""; then
4040: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4041: fi
4042: am__universal=false
4043: case " $depcc " in #(
4044: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045: esac
4046:
4047: for depmode in $am_compiler_list; do
4048: # Setup a source with many dependencies, because some compilers
4049: # like to wrap large dependency lists on column 80 (with \), and
4050: # we should not choose a depcomp mode which is confused by this.
4051: #
4052: # We need to recreate these files for each test, as the compiler may
4053: # overwrite some of them when testing with obscure command lines.
4054: # This happens at least with the AIX C compiler.
4055: : > sub/conftest.c
4056: for i in 1 2 3 4 5 6; do
4057: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4059: # Solaris 8's {/usr,}/bin/sh.
4060: touch sub/conftst$i.h
4061: done
4062: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063:
4064: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065: # mode. It turns out that the SunPro C++ compiler does not properly
4066: # handle `-M -o', and we need to detect this. Also, some Intel
4067: # versions had trouble with output in subdirs
4068: am__obj=sub/conftest.${OBJEXT-o}
4069: am__minus_obj="-o $am__obj"
4070: case $depmode in
4071: gcc)
4072: # This depmode causes a compiler race in universal mode.
4073: test "$am__universal" = false || continue
4074: ;;
4075: nosideeffect)
4076: # after this tag, mechanisms are not by side-effect, so they'll
4077: # only be used when explicitly requested
4078: if test "x$enable_dependency_tracking" = xyes; then
4079: continue
4080: else
4081: break
4082: fi
4083: ;;
4084: msvisualcpp | msvcmsys)
4085: # This compiler won't grok `-c -o', but also, the minuso test has
4086: # not run yet. These depmodes are late enough in the game, and
4087: # so weak that their functioning should not be impacted.
4088: am__obj=conftest.${OBJEXT-o}
4089: am__minus_obj=
4090: ;;
4091: none) break ;;
4092: esac
4093: if depmode=$depmode \
4094: source=sub/conftest.c object=$am__obj \
4095: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097: >/dev/null 2>conftest.err &&
4098: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102: # icc doesn't choke on unknown options, it will just issue warnings
4103: # or remarks (even with -Werror). So we grep stderr for any message
4104: # that says an option was ignored or not supported.
4105: # When given -MP, icc 7.0 and 7.1 complain thusly:
4106: # icc: Command line warning: ignoring option '-M'; no argument required
4107: # The diagnosis changed in icc 8.0:
4108: # icc: Command line remark: option '-MP' not supported
4109: if (grep 'ignoring option' conftest.err ||
4110: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111: am_cv_CC_dependencies_compiler_type=$depmode
4112: break
4113: fi
4114: fi
4115: done
4116:
4117: cd ..
4118: rm -rf conftest.dir
4119: else
4120: am_cv_CC_dependencies_compiler_type=none
4121: fi
4122:
4123: fi
4124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4127:
4128: if
4129: test "x$enable_dependency_tracking" != xno \
4130: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131: am__fastdepCC_TRUE=
4132: am__fastdepCC_FALSE='#'
4133: else
4134: am__fastdepCC_TRUE='#'
4135: am__fastdepCC_FALSE=
4136: fi
4137:
4138:
4139: if test "x$CC" != xcc; then
4140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4141: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4142: else
4143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4144: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4145: fi
4146: set dummy $CC; ac_cc=`$as_echo "$2" |
4147: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4148: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4149: $as_echo_n "(cached) " >&6
4150: else
4151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152: /* end confdefs.h. */
4153:
4154: int
4155: main ()
4156: {
4157:
4158: ;
4159: return 0;
4160: }
4161: _ACEOF
4162: # Make sure it works both with $CC and with simple cc.
4163: # We do the test twice because some compilers refuse to overwrite an
4164: # existing .o file with -o, though they will create one.
4165: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4166: rm -f conftest2.*
4167: if { { case "(($ac_try" in
4168: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169: *) ac_try_echo=$ac_try;;
4170: esac
4171: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172: $as_echo "$ac_try_echo"; } >&5
4173: (eval "$ac_try") 2>&5
4174: ac_status=$?
4175: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176: test $ac_status = 0; } &&
4177: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4178: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179: *) ac_try_echo=$ac_try;;
4180: esac
4181: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182: $as_echo "$ac_try_echo"; } >&5
4183: (eval "$ac_try") 2>&5
4184: ac_status=$?
4185: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186: test $ac_status = 0; };
4187: then
4188: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4189: if test "x$CC" != xcc; then
4190: # Test first that cc exists at all.
4191: if { ac_try='cc -c conftest.$ac_ext >&5'
4192: { { case "(($ac_try" in
4193: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194: *) ac_try_echo=$ac_try;;
4195: esac
4196: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197: $as_echo "$ac_try_echo"; } >&5
4198: (eval "$ac_try") 2>&5
4199: ac_status=$?
4200: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201: test $ac_status = 0; }; }; then
4202: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4203: rm -f conftest2.*
4204: if { { case "(($ac_try" in
4205: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206: *) ac_try_echo=$ac_try;;
4207: esac
4208: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209: $as_echo "$ac_try_echo"; } >&5
4210: (eval "$ac_try") 2>&5
4211: ac_status=$?
4212: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213: test $ac_status = 0; } &&
4214: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4215: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216: *) ac_try_echo=$ac_try;;
4217: esac
4218: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219: $as_echo "$ac_try_echo"; } >&5
4220: (eval "$ac_try") 2>&5
4221: ac_status=$?
4222: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223: test $ac_status = 0; };
4224: then
4225: # cc works too.
4226: :
4227: else
4228: # cc exists but doesn't like -o.
4229: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4230: fi
4231: fi
4232: fi
4233: else
4234: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4235: fi
4236: rm -f core conftest*
4237:
4238: fi
4239: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241: $as_echo "yes" >&6; }
4242: else
4243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244: $as_echo "no" >&6; }
4245:
4246: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4247:
4248: fi
4249:
4250: # FIXME: we rely on the cache variable name because
4251: # there is no other way.
4252: set dummy $CC
4253: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4254: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4255: if test "$am_t" != yes; then
4256: # Losing compiler, so override with the script.
4257: # FIXME: It is wrong to rewrite CC.
4258: # But if we don't then we get into trouble of one sort or another.
4259: # A longer-term fix would be to have automake use am__CC in this case,
4260: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4261: CC="$am_aux_dir/compile $CC"
4262: fi
4263:
4264:
4265: ac_ext=c
4266: ac_cpp='$CPP $CPPFLAGS'
4267: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4271: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4272: # On Suns, sometimes $CPP names a directory.
4273: if test -n "$CPP" && test -d "$CPP"; then
4274: CPP=
4275: fi
4276: if test -z "$CPP"; then
4277: if ${ac_cv_prog_CPP+:} false; then :
4278: $as_echo_n "(cached) " >&6
4279: else
4280: # Double quotes because CPP needs to be expanded
4281: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4282: do
4283: ac_preproc_ok=false
4284: for ac_c_preproc_warn_flag in '' yes
4285: do
4286: # Use a header file that comes with gcc, so configuring glibc
4287: # with a fresh cross-compiler works.
4288: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289: # <limits.h> exists even on freestanding compilers.
4290: # On the NeXT, cc -E runs the code through the compiler's parser,
4291: # not just through cpp. "Syntax error" is here to catch this case.
4292: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293: /* end confdefs.h. */
4294: #ifdef __STDC__
4295: # include <limits.h>
4296: #else
4297: # include <assert.h>
4298: #endif
4299: Syntax error
4300: _ACEOF
4301: if ac_fn_c_try_cpp "$LINENO"; then :
4302:
4303: else
4304: # Broken: fails on valid input.
4305: continue
4306: fi
4307: rm -f conftest.err conftest.i conftest.$ac_ext
4308:
4309: # OK, works on sane cases. Now check whether nonexistent headers
4310: # can be detected and how.
4311: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312: /* end confdefs.h. */
4313: #include <ac_nonexistent.h>
4314: _ACEOF
4315: if ac_fn_c_try_cpp "$LINENO"; then :
4316: # Broken: success on invalid input.
4317: continue
4318: else
4319: # Passes both tests.
4320: ac_preproc_ok=:
4321: break
4322: fi
4323: rm -f conftest.err conftest.i conftest.$ac_ext
4324:
4325: done
4326: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327: rm -f conftest.i conftest.err conftest.$ac_ext
4328: if $ac_preproc_ok; then :
4329: break
4330: fi
4331:
4332: done
4333: ac_cv_prog_CPP=$CPP
4334:
4335: fi
4336: CPP=$ac_cv_prog_CPP
4337: else
4338: ac_cv_prog_CPP=$CPP
4339: fi
4340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4341: $as_echo "$CPP" >&6; }
4342: ac_preproc_ok=false
4343: for ac_c_preproc_warn_flag in '' yes
4344: do
4345: # Use a header file that comes with gcc, so configuring glibc
4346: # with a fresh cross-compiler works.
4347: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4348: # <limits.h> exists even on freestanding compilers.
4349: # On the NeXT, cc -E runs the code through the compiler's parser,
4350: # not just through cpp. "Syntax error" is here to catch this case.
4351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352: /* end confdefs.h. */
4353: #ifdef __STDC__
4354: # include <limits.h>
4355: #else
4356: # include <assert.h>
4357: #endif
4358: Syntax error
4359: _ACEOF
4360: if ac_fn_c_try_cpp "$LINENO"; then :
4361:
4362: else
4363: # Broken: fails on valid input.
4364: continue
4365: fi
4366: rm -f conftest.err conftest.i conftest.$ac_ext
4367:
4368: # OK, works on sane cases. Now check whether nonexistent headers
4369: # can be detected and how.
4370: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371: /* end confdefs.h. */
4372: #include <ac_nonexistent.h>
4373: _ACEOF
4374: if ac_fn_c_try_cpp "$LINENO"; then :
4375: # Broken: success on invalid input.
4376: continue
4377: else
4378: # Passes both tests.
4379: ac_preproc_ok=:
4380: break
4381: fi
4382: rm -f conftest.err conftest.i conftest.$ac_ext
4383:
4384: done
4385: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386: rm -f conftest.i conftest.err conftest.$ac_ext
4387: if $ac_preproc_ok; then :
4388:
4389: else
4390: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4393: See \`config.log' for more details" "$LINENO" 5; }
4394: fi
4395:
4396: ac_ext=c
4397: ac_cpp='$CPP $CPPFLAGS'
4398: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401:
4402:
4403: # AC_PROG_CC_STDC has two functions. It attempts to find a compiler
4404: # capable of C99, or failing that, for C89. CC is set afterward with
4405: # the selected invocation, such as "gcc --std=gnu99". Also, the
4406: # ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
4407: # does not accept C89.
4408:
4409: case $ac_cv_prog_cc_stdc in #(
4410: no) :
4411: ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4412: *) :
4413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4414: $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4415: if ${ac_cv_prog_cc_c99+:} false; then :
4416: $as_echo_n "(cached) " >&6
4417: else
4418: ac_cv_prog_cc_c99=no
4419: ac_save_CC=$CC
4420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421: /* end confdefs.h. */
4422: #include <stdarg.h>
4423: #include <stdbool.h>
4424: #include <stdlib.h>
4425: #include <wchar.h>
4426: #include <stdio.h>
4427:
4428: // Check varargs macros. These examples are taken from C99 6.10.3.5.
4429: #define debug(...) fprintf (stderr, __VA_ARGS__)
4430: #define showlist(...) puts (#__VA_ARGS__)
4431: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4432: static void
4433: test_varargs_macros (void)
4434: {
4435: int x = 1234;
4436: int y = 5678;
4437: debug ("Flag");
4438: debug ("X = %d\n", x);
4439: showlist (The first, second, and third items.);
4440: report (x>y, "x is %d but y is %d", x, y);
4441: }
4442:
4443: // Check long long types.
4444: #define BIG64 18446744073709551615ull
4445: #define BIG32 4294967295ul
4446: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4447: #if !BIG_OK
4448: your preprocessor is broken;
4449: #endif
4450: #if BIG_OK
4451: #else
4452: your preprocessor is broken;
4453: #endif
4454: static long long int bignum = -9223372036854775807LL;
4455: static unsigned long long int ubignum = BIG64;
4456:
4457: struct incomplete_array
4458: {
4459: int datasize;
4460: double data[];
4461: };
4462:
4463: struct named_init {
4464: int number;
4465: const wchar_t *name;
4466: double average;
4467: };
4468:
4469: typedef const char *ccp;
4470:
4471: static inline int
4472: test_restrict (ccp restrict text)
4473: {
4474: // See if C++-style comments work.
4475: // Iterate through items via the restricted pointer.
4476: // Also check for declarations in for loops.
4477: for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4478: continue;
4479: return 0;
4480: }
4481:
4482: // Check varargs and va_copy.
4483: static void
4484: test_varargs (const char *format, ...)
4485: {
4486: va_list args;
4487: va_start (args, format);
4488: va_list args_copy;
4489: va_copy (args_copy, args);
4490:
4491: const char *str;
4492: int number;
4493: float fnumber;
4494:
4495: while (*format)
4496: {
4497: switch (*format++)
4498: {
4499: case 's': // string
4500: str = va_arg (args_copy, const char *);
4501: break;
4502: case 'd': // int
4503: number = va_arg (args_copy, int);
4504: break;
4505: case 'f': // float
4506: fnumber = va_arg (args_copy, double);
4507: break;
4508: default:
4509: break;
4510: }
4511: }
4512: va_end (args_copy);
4513: va_end (args);
4514: }
4515:
4516: int
4517: main ()
4518: {
4519:
4520: // Check bool.
4521: _Bool success = false;
4522:
4523: // Check restrict.
4524: if (test_restrict ("String literal") == 0)
4525: success = true;
4526: char *restrict newvar = "Another string";
4527:
4528: // Check varargs.
4529: test_varargs ("s, d' f .", "string", 65, 34.234);
4530: test_varargs_macros ();
4531:
4532: // Check flexible array members.
4533: struct incomplete_array *ia =
4534: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4535: ia->datasize = 10;
4536: for (int i = 0; i < ia->datasize; ++i)
4537: ia->data[i] = i * 1.234;
4538:
4539: // Check named initializers.
4540: struct named_init ni = {
4541: .number = 34,
4542: .name = L"Test wide string",
4543: .average = 543.34343,
4544: };
4545:
4546: ni.number = 58;
4547:
4548: int dynamic_array[ni.number];
4549: dynamic_array[ni.number - 1] = 543;
4550:
4551: // work around unused variable warnings
4552: return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4553: || dynamic_array[ni.number - 1] != 543);
4554:
4555: ;
4556: return 0;
4557: }
4558: _ACEOF
4559: for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4560: do
4561: CC="$ac_save_CC $ac_arg"
4562: if ac_fn_c_try_compile "$LINENO"; then :
4563: ac_cv_prog_cc_c99=$ac_arg
4564: fi
4565: rm -f core conftest.err conftest.$ac_objext
4566: test "x$ac_cv_prog_cc_c99" != "xno" && break
4567: done
4568: rm -f conftest.$ac_ext
4569: CC=$ac_save_CC
4570:
4571: fi
4572: # AC_CACHE_VAL
4573: case "x$ac_cv_prog_cc_c99" in
4574: x)
4575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4576: $as_echo "none needed" >&6; } ;;
4577: xno)
4578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4579: $as_echo "unsupported" >&6; } ;;
4580: *)
4581: CC="$CC $ac_cv_prog_cc_c99"
4582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4583: $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4584: esac
4585: if test "x$ac_cv_prog_cc_c99" != xno; then :
4586: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4587: else
4588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4589: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4590: if ${ac_cv_prog_cc_c89+:} false; then :
4591: $as_echo_n "(cached) " >&6
4592: else
4593: ac_cv_prog_cc_c89=no
4594: ac_save_CC=$CC
4595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596: /* end confdefs.h. */
4597: #include <stdarg.h>
4598: #include <stdio.h>
4599: #include <sys/types.h>
4600: #include <sys/stat.h>
4601: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4602: struct buf { int x; };
4603: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4604: static char *e (p, i)
4605: char **p;
4606: int i;
4607: {
4608: return p[i];
4609: }
4610: static char *f (char * (*g) (char **, int), char **p, ...)
4611: {
4612: char *s;
4613: va_list v;
4614: va_start (v,p);
4615: s = g (p, va_arg (v,int));
4616: va_end (v);
4617: return s;
4618: }
4619:
4620: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4621: function prototypes and stuff, but not '\xHH' hex character constants.
4622: These don't provoke an error unfortunately, instead are silently treated
4623: as 'x'. The following induces an error, until -std is added to get
4624: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4625: array size at least. It's necessary to write '\x00'==0 to get something
4626: that's true only with -std. */
4627: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4628:
4629: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4630: inside strings and character constants. */
4631: #define FOO(x) 'x'
4632: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4633:
4634: int test (int i, double x);
4635: struct s1 {int (*f) (int a);};
4636: struct s2 {int (*f) (double a);};
4637: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4638: int argc;
4639: char **argv;
4640: int
4641: main ()
4642: {
4643: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4644: ;
4645: return 0;
4646: }
4647: _ACEOF
4648: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4649: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4650: do
4651: CC="$ac_save_CC $ac_arg"
4652: if ac_fn_c_try_compile "$LINENO"; then :
4653: ac_cv_prog_cc_c89=$ac_arg
4654: fi
4655: rm -f core conftest.err conftest.$ac_objext
4656: test "x$ac_cv_prog_cc_c89" != "xno" && break
4657: done
4658: rm -f conftest.$ac_ext
4659: CC=$ac_save_CC
4660:
4661: fi
4662: # AC_CACHE_VAL
4663: case "x$ac_cv_prog_cc_c89" in
4664: x)
4665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666: $as_echo "none needed" >&6; } ;;
4667: xno)
4668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669: $as_echo "unsupported" >&6; } ;;
4670: *)
4671: CC="$CC $ac_cv_prog_cc_c89"
4672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4673: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4674: esac
4675: if test "x$ac_cv_prog_cc_c89" != xno; then :
4676: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4677: else
4678: ac_cv_prog_cc_stdc=no
4679: fi
4680:
4681: fi
4682: ;;
4683: esac
4684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4685: $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4686: if ${ac_cv_prog_cc_stdc+:} false; then :
4687: $as_echo_n "(cached) " >&6
4688: fi
4689:
4690: case $ac_cv_prog_cc_stdc in #(
4691: no) :
4692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4693: $as_echo "unsupported" >&6; } ;; #(
4694: '') :
4695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4696: $as_echo "none needed" >&6; } ;; #(
4697: *) :
4698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4699: $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4700: esac
4701:
4702:
4703: case "$ac_cv_prog_cc_stdc" in
4704: no)
4705: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4706: version 4.2.5 and higher." >&5
4707: $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4708: version 4.2.5 and higher." >&2;}
4709: esac
4710:
4711:
4712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
4713: $as_echo_n "checking if $CC can handle #warning... " >&6; }
4714: if ${ntp_cv_cpp_warning+:} false; then :
4715: $as_echo_n "(cached) " >&6
4716: else
4717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718: /* end confdefs.h. */
4719:
4720: int
4721: main ()
4722: {
4723: #warning foo
4724: ;
4725: return 0;
4726: }
4727: _ACEOF
4728: if ac_fn_c_try_compile "$LINENO"; then :
4729: ntp_cv_cpp_warning=yes
4730: else
4731: ntp_cv_cpp_warning=no
4732:
4733: fi
4734: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735:
4736: fi
4737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
4738: $as_echo "$ntp_cv_cpp_warning" >&6; }
4739: case "$ntp_cv_cpp_warning" in
4740: no)
4741:
4742: $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
4743:
4744: esac
4745:
4746: case "$GCC" in
4747: yes)
4748: SAVED_CFLAGS_NTP="$CFLAGS"
4749: CFLAGS="$CFLAGS -Wstrict-overflow"
4750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
4751: $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
4752: if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
4753: $as_echo_n "(cached) " >&6
4754: else
4755: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756: /* end confdefs.h. */
4757:
4758: int
4759: main ()
4760: {
4761:
4762: ;
4763: return 0;
4764: }
4765: _ACEOF
4766: if ac_fn_c_try_compile "$LINENO"; then :
4767: ntp_cv_gcc_Wstrict_overflow=yes
4768: else
4769: ntp_cv_gcc_Wstrict_overflow=no
4770:
4771: fi
4772: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773:
4774: fi
4775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
4776: $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
4777: #
4778: # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
4779: # flag to CFLAGS.
4780: #
4781: CFLAGS="$SAVED_CFLAGS_NTP -Winit-self"
4782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
4783: $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
4784: if ${ntp_cv_gcc_Winit_self+:} false; then :
4785: $as_echo_n "(cached) " >&6
4786: else
4787:
4788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789: /* end confdefs.h. */
4790:
4791: int
4792: main ()
4793: {
4794:
4795: ;
4796: return 0;
4797: }
4798: _ACEOF
4799: if ac_fn_c_try_compile "$LINENO"; then :
4800: ntp_cv_gcc_Winit_self=yes
4801: else
4802: ntp_cv_gcc_Winit_self=no
4803:
4804: fi
4805: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806:
4807:
4808: fi
4809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
4810: $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
4811: CFLAGS="$SAVED_CFLAGS_NTP"
4812: { SAVED_CFLAGS_NTP=; unset SAVED_CFLAGS_NTP;}
4813: #
4814: # $ntp_cv_gcc_Winit_self is tested later to add the
4815: # flag to CFLAGS.
4816: #
4817: esac
4818:
4819: # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
4820: case "$host" in
4821: *-*-solaris*)
4822: # see "man standards".
4823: # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
4824: # -D_XOPEN_SOURCE=600 seems OK for c99
4825: #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
4826: CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
4827: libxnet=-lxnet
4828: ;;
4829: esac
4830:
4831: # Check whether --enable-shared was given.
4832: if test "${enable_shared+set}" = set; then :
4833: enableval=$enable_shared; p=${PACKAGE-default}
4834: case $enableval in
4835: yes) enable_shared=yes ;;
4836: no) enable_shared=no ;;
4837: *)
4838: enable_shared=no
4839: # Look at the argument we got. We use all the common list separators.
4840: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4841: for pkg in $enableval; do
4842: IFS="$lt_save_ifs"
4843: if test "X$pkg" = "X$p"; then
4844: enable_shared=yes
4845: fi
4846: done
4847: IFS="$lt_save_ifs"
4848: ;;
4849: esac
4850: else
4851: enable_shared=no
4852: fi
4853:
4854:
4855:
4856:
4857:
4858:
4859:
4860:
4861:
4862:
4863: # NTP has (so far) been relying on leading-edge autogen.
4864: # Therefore, by default:
4865: # - use the version we ship with
4866: # - do not install it
4867: # - build a static copy (AC_DISABLE_SHARED - done earlier)
4868: case "${enable_local_libopts+set}" in
4869: set) ;;
4870: *) enable_local_libopts=yes ;;
4871: esac
4872: case "${enable_libopts_install+set}" in
4873: set) ;;
4874: *) enable_libopts_install=no ;;
4875: esac
4876:
4877: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4878: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4879: if ${ac_cv_path_GREP+:} false; then :
4880: $as_echo_n "(cached) " >&6
4881: else
4882: if test -z "$GREP"; then
4883: ac_path_GREP_found=false
4884: # Loop through the user's path and test for each of PROGNAME-LIST
4885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4887: do
4888: IFS=$as_save_IFS
4889: test -z "$as_dir" && as_dir=.
4890: for ac_prog in grep ggrep; do
4891: for ac_exec_ext in '' $ac_executable_extensions; do
4892: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4893: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4894: # Check for GNU ac_path_GREP and select it if it is found.
4895: # Check for GNU $ac_path_GREP
4896: case `"$ac_path_GREP" --version 2>&1` in
4897: *GNU*)
4898: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4899: *)
4900: ac_count=0
4901: $as_echo_n 0123456789 >"conftest.in"
4902: while :
4903: do
4904: cat "conftest.in" "conftest.in" >"conftest.tmp"
4905: mv "conftest.tmp" "conftest.in"
4906: cp "conftest.in" "conftest.nl"
4907: $as_echo 'GREP' >> "conftest.nl"
4908: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4909: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4910: as_fn_arith $ac_count + 1 && ac_count=$as_val
4911: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4912: # Best one so far, save it but keep looking for a better one
4913: ac_cv_path_GREP="$ac_path_GREP"
4914: ac_path_GREP_max=$ac_count
4915: fi
4916: # 10*(2^10) chars as input seems more than enough
4917: test $ac_count -gt 10 && break
4918: done
4919: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4920: esac
4921:
4922: $ac_path_GREP_found && break 3
4923: done
4924: done
4925: done
4926: IFS=$as_save_IFS
4927: if test -z "$ac_cv_path_GREP"; then
4928: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4929: fi
4930: else
4931: ac_cv_path_GREP=$GREP
4932: fi
4933:
4934: fi
4935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4936: $as_echo "$ac_cv_path_GREP" >&6; }
4937: GREP="$ac_cv_path_GREP"
4938:
4939:
4940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4941: $as_echo_n "checking for egrep... " >&6; }
4942: if ${ac_cv_path_EGREP+:} false; then :
4943: $as_echo_n "(cached) " >&6
4944: else
4945: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4946: then ac_cv_path_EGREP="$GREP -E"
4947: else
4948: if test -z "$EGREP"; then
4949: ac_path_EGREP_found=false
4950: # Loop through the user's path and test for each of PROGNAME-LIST
4951: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4953: do
4954: IFS=$as_save_IFS
4955: test -z "$as_dir" && as_dir=.
4956: for ac_prog in egrep; do
4957: for ac_exec_ext in '' $ac_executable_extensions; do
4958: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4959: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4960: # Check for GNU ac_path_EGREP and select it if it is found.
4961: # Check for GNU $ac_path_EGREP
4962: case `"$ac_path_EGREP" --version 2>&1` in
4963: *GNU*)
4964: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4965: *)
4966: ac_count=0
4967: $as_echo_n 0123456789 >"conftest.in"
4968: while :
4969: do
4970: cat "conftest.in" "conftest.in" >"conftest.tmp"
4971: mv "conftest.tmp" "conftest.in"
4972: cp "conftest.in" "conftest.nl"
4973: $as_echo 'EGREP' >> "conftest.nl"
4974: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976: as_fn_arith $ac_count + 1 && ac_count=$as_val
4977: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4978: # Best one so far, save it but keep looking for a better one
4979: ac_cv_path_EGREP="$ac_path_EGREP"
4980: ac_path_EGREP_max=$ac_count
4981: fi
4982: # 10*(2^10) chars as input seems more than enough
4983: test $ac_count -gt 10 && break
4984: done
4985: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4986: esac
4987:
4988: $ac_path_EGREP_found && break 3
4989: done
4990: done
4991: done
4992: IFS=$as_save_IFS
4993: if test -z "$ac_cv_path_EGREP"; then
4994: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4995: fi
4996: else
4997: ac_cv_path_EGREP=$EGREP
4998: fi
4999:
5000: fi
5001: fi
5002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5003: $as_echo "$ac_cv_path_EGREP" >&6; }
5004: EGREP="$ac_cv_path_EGREP"
5005:
5006:
5007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5008: $as_echo_n "checking for ANSI C header files... " >&6; }
5009: if ${ac_cv_header_stdc+:} false; then :
5010: $as_echo_n "(cached) " >&6
5011: else
5012: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013: /* end confdefs.h. */
5014: #include <stdlib.h>
5015: #include <stdarg.h>
5016: #include <string.h>
5017: #include <float.h>
5018:
5019: int
5020: main ()
5021: {
5022:
5023: ;
5024: return 0;
5025: }
5026: _ACEOF
5027: if ac_fn_c_try_compile "$LINENO"; then :
5028: ac_cv_header_stdc=yes
5029: else
5030: ac_cv_header_stdc=no
5031: fi
5032: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033:
5034: if test $ac_cv_header_stdc = yes; then
5035: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5036: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037: /* end confdefs.h. */
5038: #include <string.h>
5039:
5040: _ACEOF
5041: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042: $EGREP "memchr" >/dev/null 2>&1; then :
5043:
5044: else
5045: ac_cv_header_stdc=no
5046: fi
5047: rm -f conftest*
5048:
5049: fi
5050:
5051: if test $ac_cv_header_stdc = yes; then
5052: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054: /* end confdefs.h. */
5055: #include <stdlib.h>
5056:
5057: _ACEOF
5058: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059: $EGREP "free" >/dev/null 2>&1; then :
5060:
5061: else
5062: ac_cv_header_stdc=no
5063: fi
5064: rm -f conftest*
5065:
5066: fi
5067:
5068: if test $ac_cv_header_stdc = yes; then
5069: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5070: if test "$cross_compiling" = yes; then :
5071: :
5072: else
5073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074: /* end confdefs.h. */
5075: #include <ctype.h>
5076: #include <stdlib.h>
5077: #if ((' ' & 0x0FF) == 0x020)
5078: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5079: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5080: #else
5081: # define ISLOWER(c) \
5082: (('a' <= (c) && (c) <= 'i') \
5083: || ('j' <= (c) && (c) <= 'r') \
5084: || ('s' <= (c) && (c) <= 'z'))
5085: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5086: #endif
5087:
5088: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5089: int
5090: main ()
5091: {
5092: int i;
5093: for (i = 0; i < 256; i++)
5094: if (XOR (islower (i), ISLOWER (i))
5095: || toupper (i) != TOUPPER (i))
5096: return 2;
5097: return 0;
5098: }
5099: _ACEOF
5100: if ac_fn_c_try_run "$LINENO"; then :
5101:
5102: else
5103: ac_cv_header_stdc=no
5104: fi
5105: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5106: conftest.$ac_objext conftest.beam conftest.$ac_ext
5107: fi
5108:
5109: fi
5110: fi
5111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5112: $as_echo "$ac_cv_header_stdc" >&6; }
5113: if test $ac_cv_header_stdc = yes; then
5114:
5115: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5116:
5117: fi
5118:
5119: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5120: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5121: inttypes.h stdint.h unistd.h
5122: do :
5123: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5125: "
5126: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5127: cat >>confdefs.h <<_ACEOF
5128: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5129: _ACEOF
5130:
5131: fi
5132:
5133: done
5134:
5135:
5136: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5137: if test "x$ac_cv_type_pid_t" = xyes; then :
5138:
5139: else
5140:
5141: cat >>confdefs.h <<_ACEOF
5142: #define pid_t int
5143: _ACEOF
5144:
5145: fi
5146:
5147:
5148:
5149: ac_header_dirent=no
5150: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5151: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5153: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5154: if eval \${$as_ac_Header+:} false; then :
5155: $as_echo_n "(cached) " >&6
5156: else
5157: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158: /* end confdefs.h. */
5159: #include <sys/types.h>
5160: #include <$ac_hdr>
5161:
5162: int
5163: main ()
5164: {
5165: if ((DIR *) 0)
5166: return 0;
5167: ;
5168: return 0;
5169: }
5170: _ACEOF
5171: if ac_fn_c_try_compile "$LINENO"; then :
5172: eval "$as_ac_Header=yes"
5173: else
5174: eval "$as_ac_Header=no"
5175: fi
5176: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177: fi
5178: eval ac_res=\$$as_ac_Header
5179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5180: $as_echo "$ac_res" >&6; }
5181: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5182: cat >>confdefs.h <<_ACEOF
5183: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5184: _ACEOF
5185:
5186: ac_header_dirent=$ac_hdr; break
5187: fi
5188:
5189: done
5190: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5191: if test $ac_header_dirent = dirent.h; then
5192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5193: $as_echo_n "checking for library containing opendir... " >&6; }
5194: if ${ac_cv_search_opendir+:} false; then :
5195: $as_echo_n "(cached) " >&6
5196: else
5197: ac_func_search_save_LIBS=$LIBS
5198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199: /* end confdefs.h. */
5200:
5201: /* Override any GCC internal prototype to avoid an error.
5202: Use char because int might match the return type of a GCC
5203: builtin and then its argument prototype would still apply. */
5204: #ifdef __cplusplus
5205: extern "C"
5206: #endif
5207: char opendir ();
5208: int
5209: main ()
5210: {
5211: return opendir ();
5212: ;
5213: return 0;
5214: }
5215: _ACEOF
5216: for ac_lib in '' dir; do
5217: if test -z "$ac_lib"; then
5218: ac_res="none required"
5219: else
5220: ac_res=-l$ac_lib
5221: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5222: fi
5223: if ac_fn_c_try_link "$LINENO"; then :
5224: ac_cv_search_opendir=$ac_res
5225: fi
5226: rm -f core conftest.err conftest.$ac_objext \
5227: conftest$ac_exeext
5228: if ${ac_cv_search_opendir+:} false; then :
5229: break
5230: fi
5231: done
5232: if ${ac_cv_search_opendir+:} false; then :
5233:
5234: else
5235: ac_cv_search_opendir=no
5236: fi
5237: rm conftest.$ac_ext
5238: LIBS=$ac_func_search_save_LIBS
5239: fi
5240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5241: $as_echo "$ac_cv_search_opendir" >&6; }
5242: ac_res=$ac_cv_search_opendir
5243: if test "$ac_res" != no; then :
5244: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5245:
5246: fi
5247:
5248: else
5249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5250: $as_echo_n "checking for library containing opendir... " >&6; }
5251: if ${ac_cv_search_opendir+:} false; then :
5252: $as_echo_n "(cached) " >&6
5253: else
5254: ac_func_search_save_LIBS=$LIBS
5255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256: /* end confdefs.h. */
5257:
5258: /* Override any GCC internal prototype to avoid an error.
5259: Use char because int might match the return type of a GCC
5260: builtin and then its argument prototype would still apply. */
5261: #ifdef __cplusplus
5262: extern "C"
5263: #endif
5264: char opendir ();
5265: int
5266: main ()
5267: {
5268: return opendir ();
5269: ;
5270: return 0;
5271: }
5272: _ACEOF
5273: for ac_lib in '' x; do
5274: if test -z "$ac_lib"; then
5275: ac_res="none required"
5276: else
5277: ac_res=-l$ac_lib
5278: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5279: fi
5280: if ac_fn_c_try_link "$LINENO"; then :
5281: ac_cv_search_opendir=$ac_res
5282: fi
5283: rm -f core conftest.err conftest.$ac_objext \
5284: conftest$ac_exeext
5285: if ${ac_cv_search_opendir+:} false; then :
5286: break
5287: fi
5288: done
5289: if ${ac_cv_search_opendir+:} false; then :
5290:
5291: else
5292: ac_cv_search_opendir=no
5293: fi
5294: rm conftest.$ac_ext
5295: LIBS=$ac_func_search_save_LIBS
5296: fi
5297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5298: $as_echo "$ac_cv_search_opendir" >&6; }
5299: ac_res=$ac_cv_search_opendir
5300: if test "$ac_res" != no; then :
5301: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5302:
5303: fi
5304:
5305: fi
5306:
5307:
5308: # =================
5309: # AC_CHECK_HEADERS
5310: # =================
5311: for ac_header in \
5312: dlfcn.h errno.h fcntl.h libgen.h \
5313: memory.h netinet/in.h setjmp.h sys/mman.h \
5314: sys/param.h sys/poll.h sys/procset.h sys/select.h \
5315: sys/socket.h sys/stropts.h sys/time.h sys/un.h \
5316: sys/wait.h unistd.h utime.h sysexits.h
5317: do :
5318: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5319: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5320: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5321: cat >>confdefs.h <<_ACEOF
5322: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5323: _ACEOF
5324:
5325: fi
5326:
5327: done
5328:
5329:
5330: for ac_header in stdarg.h varargs.h
5331: do :
5332: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5333: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5334: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5335: cat >>confdefs.h <<_ACEOF
5336: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337: _ACEOF
5338: lo_have_arg_hdr=true;break
5339: else
5340: lo_have_arg_hdr=false
5341: fi
5342:
5343: done
5344:
5345:
5346: for ac_header in string.h strings.h
5347: do :
5348: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5350: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5351: cat >>confdefs.h <<_ACEOF
5352: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5353: _ACEOF
5354: lo_have_str_hdr=true;break
5355: else
5356: lo_have_str_hdr=false
5357: fi
5358:
5359: done
5360:
5361:
5362: for ac_header in limits.h sys/limits.h values.h
5363: do :
5364: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5365: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5366: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5367: cat >>confdefs.h <<_ACEOF
5368: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369: _ACEOF
5370: lo_have_lim_hdr=true;break
5371: else
5372: lo_have_lim_hdr=false
5373: fi
5374:
5375: done
5376:
5377:
5378: for ac_header in inttypes.h stdint.h
5379: do :
5380: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5382: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5383: cat >>confdefs.h <<_ACEOF
5384: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385: _ACEOF
5386: lo_have_typ_hdr=true;break
5387: else
5388: lo_have_typ_hdr=false
5389: fi
5390:
5391: done
5392:
5393:
5394: # ----------------------------------------------------------------------
5395: # check for various programs used during the build.
5396: # On OS/X, "wchar.h" needs "runetype.h" to work properly.
5397: # ----------------------------------------------------------------------
5398: for ac_header in runetype.h wchar.h
5399: do :
5400: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
5402: $ac_includes_default
5403: #if HAVE_RUNETYPE_H
5404: # include <runetype.h>
5405: #endif
5406:
5407: "
5408: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5409: cat >>confdefs.h <<_ACEOF
5410: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5411: _ACEOF
5412:
5413: fi
5414:
5415: done
5416:
5417:
5418: # --------------------------------------------
5419: # Verify certain entries from AC_CHECK_HEADERS
5420: # --------------------------------------------
5421: for f in sys_types sys_mman sys_param sys_stat sys_wait \
5422: string errno stdlib memory setjmp
5423: do eval as_ac_var=\${ac_cv_header_${f}_h+set}
5424: test "${as_ac_var}" = set || {
5425: as_fn_error $? "You must have ${f}.h on your system" "$LINENO" 5
5426: }
5427: done
5428:
5429: ${lo_have_arg_hdr} || \
5430: as_fn_error $? "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
5431:
5432: ${lo_have_str_hdr} || \
5433: as_fn_error $? "You must have string.h or strings.h on your system" "$LINENO" 5
5434:
5435: ${lo_have_lim_hdr} || \
5436: as_fn_error $? "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
5437:
5438: ${lo_have_typ_hdr} || \
5439: as_fn_error $? "You must have inttypes.h or stdint.h on your system" "$LINENO" 5
5440:
5441: # ----------------------------------------------------------------------
5442: # Checks for typedefs
5443: # ----------------------------------------------------------------------
5444: ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
5445: if test "x$ac_cv_type_wchar_t" = xyes; then :
5446:
5447: cat >>confdefs.h <<_ACEOF
5448: #define HAVE_WCHAR_T 1
5449: _ACEOF
5450:
5451:
5452: fi
5453:
5454: ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
5455: $ac_includes_default
5456: #if HAVE_RUNETYPE_H
5457: # include <runetype.h>
5458: #endif
5459: #if HAVE_WCHAR_H
5460: # include <wchar.h>
5461: #endif
5462:
5463: "
5464: if test "x$ac_cv_type_wint_t" = xyes; then :
5465:
5466: cat >>confdefs.h <<_ACEOF
5467: #define HAVE_WINT_T 1
5468: _ACEOF
5469:
5470:
5471: fi
5472:
5473: ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5474: if test "x$ac_cv_type_int8_t" = xyes; then :
5475:
5476: cat >>confdefs.h <<_ACEOF
5477: #define HAVE_INT8_T 1
5478: _ACEOF
5479:
5480:
5481: fi
5482: ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5483: if test "x$ac_cv_type_uint8_t" = xyes; then :
5484:
5485: cat >>confdefs.h <<_ACEOF
5486: #define HAVE_UINT8_T 1
5487: _ACEOF
5488:
5489:
5490: fi
5491: ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5492: if test "x$ac_cv_type_int16_t" = xyes; then :
5493:
5494: cat >>confdefs.h <<_ACEOF
5495: #define HAVE_INT16_T 1
5496: _ACEOF
5497:
5498:
5499: fi
5500: ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5501: if test "x$ac_cv_type_uint16_t" = xyes; then :
5502:
5503: cat >>confdefs.h <<_ACEOF
5504: #define HAVE_UINT16_T 1
5505: _ACEOF
5506:
5507:
5508: fi
5509: ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5510: if test "x$ac_cv_type_int32_t" = xyes; then :
5511:
5512: cat >>confdefs.h <<_ACEOF
5513: #define HAVE_INT32_T 1
5514: _ACEOF
5515:
5516:
5517: fi
5518: ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5519: if test "x$ac_cv_type_uint32_t" = xyes; then :
5520:
5521: cat >>confdefs.h <<_ACEOF
5522: #define HAVE_UINT32_T 1
5523: _ACEOF
5524:
5525:
5526: fi
5527: ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5528: if test "x$ac_cv_type_intptr_t" = xyes; then :
5529:
5530: cat >>confdefs.h <<_ACEOF
5531: #define HAVE_INTPTR_T 1
5532: _ACEOF
5533:
5534:
5535: fi
5536: ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5537: if test "x$ac_cv_type_uintptr_t" = xyes; then :
5538:
5539: cat >>confdefs.h <<_ACEOF
5540: #define HAVE_UINTPTR_T 1
5541: _ACEOF
5542:
5543:
5544: fi
5545: ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
5546: if test "x$ac_cv_type_uint_t" = xyes; then :
5547:
5548: cat >>confdefs.h <<_ACEOF
5549: #define HAVE_UINT_T 1
5550: _ACEOF
5551:
5552:
5553: fi
5554: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5555: if test "x$ac_cv_type_pid_t" = xyes; then :
5556:
5557: cat >>confdefs.h <<_ACEOF
5558: #define HAVE_PID_T 1
5559: _ACEOF
5560:
5561:
5562: fi
5563: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5564: if test "x$ac_cv_type_size_t" = xyes; then :
5565:
5566: cat >>confdefs.h <<_ACEOF
5567: #define HAVE_SIZE_T 1
5568: _ACEOF
5569:
5570:
5571: fi
5572:
5573:
5574: # =====
5575: # sizes
5576: # =====
5577: # The cast to long int works around a bug in the HP C Compiler
5578: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5579: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5580: # This bug is HP SR number 8606223364.
5581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
5582: $as_echo_n "checking size of char*... " >&6; }
5583: if ${ac_cv_sizeof_charp+:} false; then :
5584: $as_echo_n "(cached) " >&6
5585: else
5586: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
5587:
5588: else
5589: if test "$ac_cv_type_charp" = yes; then
5590: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5591: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5592: as_fn_error 77 "cannot compute sizeof (char*)
5593: See \`config.log' for more details" "$LINENO" 5; }
5594: else
5595: ac_cv_sizeof_charp=0
5596: fi
5597: fi
5598:
5599: fi
5600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
5601: $as_echo "$ac_cv_sizeof_charp" >&6; }
5602:
5603:
5604:
5605: cat >>confdefs.h <<_ACEOF
5606: #define SIZEOF_CHARP $ac_cv_sizeof_charp
5607: _ACEOF
5608:
5609:
5610: # The cast to long int works around a bug in the HP C Compiler
5611: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5612: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5613: # This bug is HP SR number 8606223364.
5614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5615: $as_echo_n "checking size of int... " >&6; }
5616: if ${ac_cv_sizeof_int+:} false; then :
5617: $as_echo_n "(cached) " >&6
5618: else
5619: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5620:
5621: else
5622: if test "$ac_cv_type_int" = yes; then
5623: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5624: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5625: as_fn_error 77 "cannot compute sizeof (int)
5626: See \`config.log' for more details" "$LINENO" 5; }
5627: else
5628: ac_cv_sizeof_int=0
5629: fi
5630: fi
5631:
5632: fi
5633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5634: $as_echo "$ac_cv_sizeof_int" >&6; }
5635:
5636:
5637:
5638: cat >>confdefs.h <<_ACEOF
5639: #define SIZEOF_INT $ac_cv_sizeof_int
5640: _ACEOF
5641:
5642:
5643: # The cast to long int works around a bug in the HP C Compiler
5644: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646: # This bug is HP SR number 8606223364.
5647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5648: $as_echo_n "checking size of long... " >&6; }
5649: if ${ac_cv_sizeof_long+:} false; then :
5650: $as_echo_n "(cached) " >&6
5651: else
5652: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5653:
5654: else
5655: if test "$ac_cv_type_long" = yes; then
5656: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658: as_fn_error 77 "cannot compute sizeof (long)
5659: See \`config.log' for more details" "$LINENO" 5; }
5660: else
5661: ac_cv_sizeof_long=0
5662: fi
5663: fi
5664:
5665: fi
5666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5667: $as_echo "$ac_cv_sizeof_long" >&6; }
5668:
5669:
5670:
5671: cat >>confdefs.h <<_ACEOF
5672: #define SIZEOF_LONG $ac_cv_sizeof_long
5673: _ACEOF
5674:
5675:
5676: # The cast to long int works around a bug in the HP C Compiler
5677: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5678: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5679: # This bug is HP SR number 8606223364.
5680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5681: $as_echo_n "checking size of short... " >&6; }
5682: if ${ac_cv_sizeof_short+:} false; then :
5683: $as_echo_n "(cached) " >&6
5684: else
5685: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5686:
5687: else
5688: if test "$ac_cv_type_short" = yes; then
5689: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691: as_fn_error 77 "cannot compute sizeof (short)
5692: See \`config.log' for more details" "$LINENO" 5; }
5693: else
5694: ac_cv_sizeof_short=0
5695: fi
5696: fi
5697:
5698: fi
5699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5700: $as_echo "$ac_cv_sizeof_short" >&6; }
5701:
5702:
5703:
5704: cat >>confdefs.h <<_ACEOF
5705: #define SIZEOF_SHORT $ac_cv_sizeof_short
5706: _ACEOF
5707:
5708:
5709:
5710: # ----------------------------------------------------------------------
5711: # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
5712: # ----------------------------------------------------------------------
5713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
5714: $as_echo_n "checking for pathfind in -lgen... " >&6; }
5715: if ${ac_cv_lib_gen_pathfind+:} false; then :
5716: $as_echo_n "(cached) " >&6
5717: else
5718: ac_check_lib_save_LIBS=$LIBS
5719: LIBS="-lgen $LIBS"
5720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721: /* end confdefs.h. */
5722:
5723: /* Override any GCC internal prototype to avoid an error.
5724: Use char because int might match the return type of a GCC
5725: builtin and then its argument prototype would still apply. */
5726: #ifdef __cplusplus
5727: extern "C"
5728: #endif
5729: char pathfind ();
5730: int
5731: main ()
5732: {
5733: return pathfind ();
5734: ;
5735: return 0;
5736: }
5737: _ACEOF
5738: if ac_fn_c_try_link "$LINENO"; then :
5739: ac_cv_lib_gen_pathfind=yes
5740: else
5741: ac_cv_lib_gen_pathfind=no
5742: fi
5743: rm -f core conftest.err conftest.$ac_objext \
5744: conftest$ac_exeext conftest.$ac_ext
5745: LIBS=$ac_check_lib_save_LIBS
5746: fi
5747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
5748: $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
5749: if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
5750: cat >>confdefs.h <<_ACEOF
5751: #define HAVE_LIBGEN 1
5752: _ACEOF
5753:
5754: LIBS="-lgen $LIBS"
5755:
5756: fi
5757:
5758: for ac_func in vprintf
5759: do :
5760: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5761: if test "x$ac_cv_func_vprintf" = xyes; then :
5762: cat >>confdefs.h <<_ACEOF
5763: #define HAVE_VPRINTF 1
5764: _ACEOF
5765:
5766: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5767: if test "x$ac_cv_func__doprnt" = xyes; then :
5768:
5769: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5770:
5771: fi
5772:
5773: fi
5774: done
5775:
5776:
5777: for ac_header in vfork.h
5778: do :
5779: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5780: if test "x$ac_cv_header_vfork_h" = xyes; then :
5781: cat >>confdefs.h <<_ACEOF
5782: #define HAVE_VFORK_H 1
5783: _ACEOF
5784:
5785: fi
5786:
5787: done
5788:
5789: for ac_func in fork vfork
5790: do :
5791: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5792: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5793: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5794: cat >>confdefs.h <<_ACEOF
5795: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5796: _ACEOF
5797:
5798: fi
5799: done
5800:
5801: if test "x$ac_cv_func_fork" = xyes; then
5802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5803: $as_echo_n "checking for working fork... " >&6; }
5804: if ${ac_cv_func_fork_works+:} false; then :
5805: $as_echo_n "(cached) " >&6
5806: else
5807: if test "$cross_compiling" = yes; then :
5808: ac_cv_func_fork_works=cross
5809: else
5810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811: /* end confdefs.h. */
5812: $ac_includes_default
5813: int
5814: main ()
5815: {
5816:
5817: /* By Ruediger Kuhlmann. */
5818: return fork () < 0;
5819:
5820: ;
5821: return 0;
5822: }
5823: _ACEOF
5824: if ac_fn_c_try_run "$LINENO"; then :
5825: ac_cv_func_fork_works=yes
5826: else
5827: ac_cv_func_fork_works=no
5828: fi
5829: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5830: conftest.$ac_objext conftest.beam conftest.$ac_ext
5831: fi
5832:
5833: fi
5834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5835: $as_echo "$ac_cv_func_fork_works" >&6; }
5836:
5837: else
5838: ac_cv_func_fork_works=$ac_cv_func_fork
5839: fi
5840: if test "x$ac_cv_func_fork_works" = xcross; then
5841: case $host in
5842: *-*-amigaos* | *-*-msdosdjgpp*)
5843: # Override, as these systems have only a dummy fork() stub
5844: ac_cv_func_fork_works=no
5845: ;;
5846: *)
5847: ac_cv_func_fork_works=yes
5848: ;;
5849: esac
5850: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5851: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5852: fi
5853: ac_cv_func_vfork_works=$ac_cv_func_vfork
5854: if test "x$ac_cv_func_vfork" = xyes; then
5855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5856: $as_echo_n "checking for working vfork... " >&6; }
5857: if ${ac_cv_func_vfork_works+:} false; then :
5858: $as_echo_n "(cached) " >&6
5859: else
5860: if test "$cross_compiling" = yes; then :
5861: ac_cv_func_vfork_works=cross
5862: else
5863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864: /* end confdefs.h. */
5865: /* Thanks to Paul Eggert for this test. */
5866: $ac_includes_default
5867: #include <sys/wait.h>
5868: #ifdef HAVE_VFORK_H
5869: # include <vfork.h>
5870: #endif
5871: /* On some sparc systems, changes by the child to local and incoming
5872: argument registers are propagated back to the parent. The compiler
5873: is told about this with #include <vfork.h>, but some compilers
5874: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5875: static variable whose address is put into a register that is
5876: clobbered by the vfork. */
5877: static void
5878: #ifdef __cplusplus
5879: sparc_address_test (int arg)
5880: # else
5881: sparc_address_test (arg) int arg;
5882: #endif
5883: {
5884: static pid_t child;
5885: if (!child) {
5886: child = vfork ();
5887: if (child < 0) {
5888: perror ("vfork");
5889: _exit(2);
5890: }
5891: if (!child) {
5892: arg = getpid();
5893: write(-1, "", 0);
5894: _exit (arg);
5895: }
5896: }
5897: }
5898:
5899: int
5900: main ()
5901: {
5902: pid_t parent = getpid ();
5903: pid_t child;
5904:
5905: sparc_address_test (0);
5906:
5907: child = vfork ();
5908:
5909: if (child == 0) {
5910: /* Here is another test for sparc vfork register problems. This
5911: test uses lots of local variables, at least as many local
5912: variables as main has allocated so far including compiler
5913: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5914: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5915: reuse the register of parent for one of the local variables,
5916: since it will think that parent can't possibly be used any more
5917: in this routine. Assigning to the local variable will thus
5918: munge parent in the parent process. */
5919: pid_t
5920: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5921: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5922: /* Convince the compiler that p..p7 are live; otherwise, it might
5923: use the same hardware register for all 8 local variables. */
5924: if (p != p1 || p != p2 || p != p3 || p != p4
5925: || p != p5 || p != p6 || p != p7)
5926: _exit(1);
5927:
5928: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5929: from child file descriptors. If the child closes a descriptor
5930: before it execs or exits, this munges the parent's descriptor
5931: as well. Test for this by closing stdout in the child. */
5932: _exit(close(fileno(stdout)) != 0);
5933: } else {
5934: int status;
5935: struct stat st;
5936:
5937: while (wait(&status) != child)
5938: ;
5939: return (
5940: /* Was there some problem with vforking? */
5941: child < 0
5942:
5943: /* Did the child fail? (This shouldn't happen.) */
5944: || status
5945:
5946: /* Did the vfork/compiler bug occur? */
5947: || parent != getpid()
5948:
5949: /* Did the file descriptor bug occur? */
5950: || fstat(fileno(stdout), &st) != 0
5951: );
5952: }
5953: }
5954: _ACEOF
5955: if ac_fn_c_try_run "$LINENO"; then :
5956: ac_cv_func_vfork_works=yes
5957: else
5958: ac_cv_func_vfork_works=no
5959: fi
5960: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5961: conftest.$ac_objext conftest.beam conftest.$ac_ext
5962: fi
5963:
5964: fi
5965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5966: $as_echo "$ac_cv_func_vfork_works" >&6; }
5967:
5968: fi;
5969: if test "x$ac_cv_func_fork_works" = xcross; then
5970: ac_cv_func_vfork_works=$ac_cv_func_vfork
5971: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5972: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5973: fi
5974:
5975: if test "x$ac_cv_func_vfork_works" = xyes; then
5976:
5977: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5978:
5979: else
5980:
5981: $as_echo "#define vfork fork" >>confdefs.h
5982:
5983: fi
5984: if test "x$ac_cv_func_fork_works" = xyes; then
5985:
5986: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5987:
5988: fi
5989:
5990: for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
5991: strrchr strsignal
5992: do :
5993: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5994: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5995: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5996: cat >>confdefs.h <<_ACEOF
5997: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5998: _ACEOF
5999:
6000: fi
6001: done
6002:
6003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6004: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6005: if ${ac_cv_path_SED+:} false; then :
6006: $as_echo_n "(cached) " >&6
6007: else
6008: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6009: for ac_i in 1 2 3 4 5 6 7; do
6010: ac_script="$ac_script$as_nl$ac_script"
6011: done
6012: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6013: { ac_script=; unset ac_script;}
6014: if test -z "$SED"; then
6015: ac_path_SED_found=false
6016: # Loop through the user's path and test for each of PROGNAME-LIST
6017: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018: for as_dir in $PATH
6019: do
6020: IFS=$as_save_IFS
6021: test -z "$as_dir" && as_dir=.
6022: for ac_prog in sed gsed; do
6023: for ac_exec_ext in '' $ac_executable_extensions; do
6024: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6025: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6026: # Check for GNU ac_path_SED and select it if it is found.
6027: # Check for GNU $ac_path_SED
6028: case `"$ac_path_SED" --version 2>&1` in
6029: *GNU*)
6030: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6031: *)
6032: ac_count=0
6033: $as_echo_n 0123456789 >"conftest.in"
6034: while :
6035: do
6036: cat "conftest.in" "conftest.in" >"conftest.tmp"
6037: mv "conftest.tmp" "conftest.in"
6038: cp "conftest.in" "conftest.nl"
6039: $as_echo '' >> "conftest.nl"
6040: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6041: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6042: as_fn_arith $ac_count + 1 && ac_count=$as_val
6043: if test $ac_count -gt ${ac_path_SED_max-0}; then
6044: # Best one so far, save it but keep looking for a better one
6045: ac_cv_path_SED="$ac_path_SED"
6046: ac_path_SED_max=$ac_count
6047: fi
6048: # 10*(2^10) chars as input seems more than enough
6049: test $ac_count -gt 10 && break
6050: done
6051: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6052: esac
6053:
6054: $ac_path_SED_found && break 3
6055: done
6056: done
6057: done
6058: IFS=$as_save_IFS
6059: if test -z "$ac_cv_path_SED"; then
6060: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6061: fi
6062: else
6063: ac_cv_path_SED=$SED
6064: fi
6065:
6066: fi
6067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6068: $as_echo "$ac_cv_path_SED" >&6; }
6069: SED="$ac_cv_path_SED"
6070: rm -f conftest.sed
6071:
6072: while :
6073: do
6074: POSIX_SHELL=`which bash`
6075: test -x "$POSIX_SHELL" && break
6076: POSIX_SHELL=`which dash`
6077: test -x "$POSIX_SHELL" && break
6078: POSIX_SHELL=/usr/xpg4/bin/sh
6079: test -x "$POSIX_SHELL" && break
6080: POSIX_SHELL=`/bin/sh -c '
6081: exec 2>/dev/null
6082: if ! true ; then exit 1 ; fi
6083: echo /bin/sh'`
6084: test -x "$POSIX_SHELL" && break
6085: as_fn_error $? "Cannot locate a working POSIX shell" "$LINENO" 5
6086: done
6087:
6088: cat >>confdefs.h <<_ACEOF
6089: #define POSIX_SHELL "${POSIX_SHELL}"
6090: _ACEOF
6091:
6092:
6093:
6094:
6095:
6096: LIBOPTS_BUILD_BLOCKED=''
6097:
6098:
6099: NEED_LIBOPTS_DIR=''
6100:
6101: # Check whether --enable-local-libopts was given.
6102: if test "${enable_local_libopts+set}" = set; then :
6103: enableval=$enable_local_libopts;
6104: if test x$enableval = xyes ; then
6105: { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
6106: $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
6107: LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6108: LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6109: NEED_LIBOPTS_DIR=true
6110: fi
6111: fi
6112:
6113:
6114: # Check whether --enable-libopts-install was given.
6115: if test "${enable_libopts_install+set}" = set; then :
6116: enableval=$enable_libopts_install;
6117: fi
6118:
6119: if test "X${enable_libopts_install}" != Xno; then
6120: INSTALL_LIBOPTS_TRUE=
6121: INSTALL_LIBOPTS_FALSE='#'
6122: else
6123: INSTALL_LIBOPTS_TRUE='#'
6124: INSTALL_LIBOPTS_FALSE=
6125: fi
6126:
6127:
6128: if test -z "${NEED_LIBOPTS_DIR}" ; then
6129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
6130: $as_echo_n "checking whether autoopts-config can be found... " >&6; }
6131:
6132: # Check whether --with-autoopts-config was given.
6133: if test "${with_autoopts_config+set}" = set; then :
6134: withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
6135: else
6136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
6137: $as_echo_n "checking whether autoopts-config is specified... " >&6; }
6138: if ${lo_cv_with_autoopts_config+:} false; then :
6139: $as_echo_n "(cached) " >&6
6140: else
6141: if autoopts-config --help 2>/dev/null 1>&2
6142: then lo_cv_with_autoopts_config=autoopts-config
6143: elif libopts-config --help 2>/dev/null 1>&2
6144: then lo_cv_with_autoopts_config=libopts-config
6145: else lo_cv_with_autoopts_config=no ; fi
6146: fi
6147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
6148: $as_echo "$lo_cv_with_autoopts_config" >&6; }
6149:
6150: fi
6151: # end of AC_ARG_WITH
6152:
6153: if ${lo_cv_test_autoopts+:} false; then :
6154: $as_echo_n "(cached) " >&6
6155: else
6156:
6157: if test -z "${lo_cv_with_autoopts_config}" \
6158: -o X"${lo_cv_with_autoopts_config}" = Xno
6159: then
6160: if autoopts-config --help 2>/dev/null 1>&2
6161: then lo_cv_with_autoopts_config=autoopts-config
6162: elif libopts-config --help 2>/dev/null 1>&2
6163: then lo_cv_with_autoopts_config=libopts-config
6164: else lo_cv_with_autoopts_config=false ; fi
6165: fi
6166: lo_cv_test_autoopts=`
6167: ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
6168: if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
6169: then lo_cv_test_autoopts=no ; fi
6170:
6171: fi
6172: # end of CACHE_VAL
6173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
6174: $as_echo "${lo_cv_test_autoopts}" >&6; }
6175:
6176: if test "X${lo_cv_test_autoopts}" != Xno
6177: then
6178: LIBOPTS_LDADD="${lo_cv_test_autoopts}"
6179: LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
6180: else
6181: LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6182: LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6183: NEED_LIBOPTS_DIR=true
6184: fi
6185: fi # end of if test -z "${NEED_LIBOPTS_DIR}"
6186: if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
6187: NEED_LIBOPTS_DIR=''
6188: fi
6189: if test -n "${NEED_LIBOPTS_DIR}"; then
6190: NEED_LIBOPTS_TRUE=
6191: NEED_LIBOPTS_FALSE='#'
6192: else
6193: NEED_LIBOPTS_TRUE='#'
6194: NEED_LIBOPTS_FALSE=
6195: fi
6196:
6197:
6198:
6199: LIBOPTS_DIR=libopts
6200:
6201:
6202: # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
6203:
6204:
6205: if test -z "$NEED_LIBOPTS_TRUE"; then :
6206:
6207:
6208:
6209: # Check to see if a reg expr header is specified.
6210:
6211:
6212: # Check whether --with-regex-header was given.
6213: if test "${with_regex_header+set}" = set; then :
6214: withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
6215: else
6216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
6217: $as_echo_n "checking whether a reg expr header is specified... " >&6; }
6218: if ${libopts_cv_with_regex_header+:} false; then :
6219: $as_echo_n "(cached) " >&6
6220: else
6221: libopts_cv_with_regex_header=no
6222: fi
6223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
6224: $as_echo "$libopts_cv_with_regex_header" >&6; }
6225:
6226: fi
6227: # end of AC_ARG_WITH
6228: if test "X${libopts_cv_with_regex_header}" != Xno
6229: then
6230: cat >>confdefs.h <<_ACEOF
6231: #define REGEX_HEADER <${libopts_cv_with_regex_header}>
6232: _ACEOF
6233:
6234: else
6235:
6236: $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
6237:
6238: fi
6239:
6240:
6241:
6242: # Check to see if a working libregex can be found.
6243:
6244:
6245: # Check whether --with-libregex was given.
6246: if test "${with_libregex+set}" = set; then :
6247: withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
6248: else
6249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
6250: $as_echo_n "checking whether with-libregex was specified... " >&6; }
6251: if ${libopts_cv_with_libregex_root+:} false; then :
6252: $as_echo_n "(cached) " >&6
6253: else
6254: libopts_cv_with_libregex_root=no
6255: fi
6256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
6257: $as_echo "$libopts_cv_with_libregex_root" >&6; }
6258:
6259: fi
6260: # end of AC_ARG_WITH libregex
6261:
6262: if test "${with_libregex+set}" = set && \
6263: test "${withval}" = no
6264: then ## disabled by request
6265: libopts_cv_with_libregex_root=no
6266: libopts_cv_with_libregex_cflags=no
6267: libopts_cv_with_libregex_libs=no
6268: else
6269:
6270:
6271: # Check whether --with-libregex-cflags was given.
6272: if test "${with_libregex_cflags+set}" = set; then :
6273: withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
6274: else
6275: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
6276: $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
6277: if ${libopts_cv_with_libregex_cflags+:} false; then :
6278: $as_echo_n "(cached) " >&6
6279: else
6280: libopts_cv_with_libregex_cflags=no
6281: fi
6282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
6283: $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
6284:
6285: fi
6286: # end of AC_ARG_WITH libregex-cflags
6287:
6288:
6289: # Check whether --with-libregex-libs was given.
6290: if test "${with_libregex_libs+set}" = set; then :
6291: withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
6292: else
6293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
6294: $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
6295: if ${libopts_cv_with_libregex_libs+:} false; then :
6296: $as_echo_n "(cached) " >&6
6297: else
6298: libopts_cv_with_libregex_libs=no
6299: fi
6300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
6301: $as_echo "$libopts_cv_with_libregex_libs" >&6; }
6302:
6303: fi
6304: # end of AC_ARG_WITH libregex-libs
6305:
6306: case "X${libopts_cv_with_libregex_cflags}" in
6307: Xyes|Xno|X )
6308: case "X${libopts_cv_with_libregex_root}" in
6309: Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
6310: * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
6311: esac
6312: esac
6313: case "X${libopts_cv_with_libregex_libs}" in
6314: Xyes|Xno|X )
6315: case "X${libopts_cv_with_libregex_root}" in
6316: Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
6317: * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
6318: esac
6319: esac
6320: libopts_save_CPPFLAGS="${CPPFLAGS}"
6321: libopts_save_LIBS="${LIBS}"
6322: fi ## disabled by request
6323:
6324: case "X${libopts_cv_with_libregex_cflags}" in
6325: Xyes|Xno|X )
6326: libopts_cv_with_libregex_cflags="" ;;
6327: * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
6328: esac
6329: case "X${libopts_cv_with_libregex_libs}" in
6330: Xyes|Xno|X )
6331: libopts_cv_with_libregex_libs="" ;;
6332: * )
6333: LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
6334: esac
6335: LIBREGEX_CFLAGS=""
6336: LIBREGEX_LIBS=""
6337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
6338: $as_echo_n "checking whether libregex functions properly... " >&6; }
6339: if ${libopts_cv_with_libregex+:} false; then :
6340: $as_echo_n "(cached) " >&6
6341: else
6342:
6343: if test "$cross_compiling" = yes; then :
6344: libopts_cv_with_libregex=no
6345: else
6346: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347: /* end confdefs.h. */
6348: #include <stdio.h>
6349: #include <stdlib.h>
6350: #include <sys/types.h>
6351: #include REGEX_HEADER
6352: static regex_t re;
6353: void comp_re( char const* pzPat ) {
6354: int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
6355: if (res == 0) return;
6356: exit( res ); }
6357: int main() {
6358: regmatch_t m[2];
6359: comp_re( "^.*\$" );
6360: comp_re( "()|no.*" );
6361: comp_re( "." );
6362: if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
6363: if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
6364: fputs( "error: regex -->.<-- did not match\n", stderr );
6365: return 1;
6366: }
6367: return 0; }
6368: _ACEOF
6369: if ac_fn_c_try_run "$LINENO"; then :
6370: libopts_cv_with_libregex=yes
6371: else
6372: libopts_cv_with_libregex=no
6373: fi
6374: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6375: conftest.$ac_objext conftest.beam conftest.$ac_ext
6376: fi
6377: # end of AC_TRY_RUN
6378:
6379: fi
6380: # end of AC_CACHE_VAL for libopts_cv_with_libregex
6381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
6382: $as_echo "${libopts_cv_with_libregex}" >&6; }
6383: if test "X${libopts_cv_with_libregex}" != Xno
6384: then
6385:
6386: $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
6387:
6388: else
6389: CPPFLAGS="${libopts_save_CPPFLAGS}"
6390: LIBS="${libopts_save_LIBS}"
6391: fi
6392:
6393:
6394:
6395: # Check to see if pathfind(3) works.
6396:
6397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
6398: $as_echo_n "checking whether pathfind(3) works... " >&6; }
6399: if ${libopts_cv_run_pathfind+:} false; then :
6400: $as_echo_n "(cached) " >&6
6401: else
6402:
6403: if test "$cross_compiling" = yes; then :
6404: libopts_cv_run_pathfind=no
6405:
6406: else
6407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408: /* end confdefs.h. */
6409: #include <string.h>
6410: #include <stdlib.h>
6411: int main (int argc, char** argv) {
6412: char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
6413: return (pz == 0) ? 1 : 0;
6414: }
6415: _ACEOF
6416: if ac_fn_c_try_run "$LINENO"; then :
6417: libopts_cv_run_pathfind=yes
6418: else
6419: libopts_cv_run_pathfind=no
6420: fi
6421: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6422: conftest.$ac_objext conftest.beam conftest.$ac_ext
6423: fi
6424: # end of TRY_RUN
6425:
6426: fi
6427: # end of AC_CACHE_VAL for libopts_cv_run_pathfind
6428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
6429: $as_echo "${libopts_cv_run_pathfind}" >&6; }
6430: if test "X${libopts_cv_run_pathfind}" != Xno
6431: then
6432:
6433: $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
6434:
6435: fi
6436:
6437:
6438:
6439: # Check to see if /dev/zero is readable device.
6440:
6441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
6442: $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
6443: if ${libopts_cv_test_dev_zero+:} false; then :
6444: $as_echo_n "(cached) " >&6
6445: else
6446:
6447: libopts_cv_test_dev_zero=`exec 2> /dev/null
6448: dzero=\`ls -lL /dev/zero | egrep ^c......r\`
6449: test -z "${dzero}" && exit 1
6450: echo ${dzero}`
6451: if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
6452: then libopts_cv_test_dev_zero=no
6453: fi
6454:
6455: fi
6456: # end of CACHE_VAL of libopts_cv_test_dev_zero
6457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
6458: $as_echo "${libopts_cv_test_dev_zero}" >&6; }
6459: if test "X${libopts_cv_test_dev_zero}" != Xno
6460: then
6461:
6462: $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
6463:
6464: fi
6465:
6466:
6467:
6468: # Check to see if we have a functional realpath(3C).
6469:
6470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
6471: $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
6472: if ${libopts_cv_run_realpath+:} false; then :
6473: $as_echo_n "(cached) " >&6
6474: else
6475:
6476: if test "$cross_compiling" = yes; then :
6477: libopts_cv_run_realpath=no
6478:
6479: else
6480: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481: /* end confdefs.h. */
6482: #include <limits.h>
6483: #include <stdlib.h>
6484: int main (int argc, char** argv) {
6485: #ifndef PATH_MAX
6486: choke me!!
6487: #else
6488: char zPath[PATH_MAX+1];
6489: #endif
6490: char *pz = realpath(argv[0], zPath);
6491: return (pz == zPath) ? 0 : 1;
6492: }
6493: _ACEOF
6494: if ac_fn_c_try_run "$LINENO"; then :
6495: libopts_cv_run_realpath=yes
6496: else
6497: libopts_cv_run_realpath=no
6498: fi
6499: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6500: conftest.$ac_objext conftest.beam conftest.$ac_ext
6501: fi
6502: # end of TRY_RUN
6503:
6504: fi
6505: # end of AC_CACHE_VAL for libopts_cv_run_realpath
6506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
6507: $as_echo "${libopts_cv_run_realpath}" >&6; }
6508: if test "X${libopts_cv_run_realpath}" != Xno
6509: then
6510:
6511: $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
6512:
6513: fi
6514:
6515:
6516:
6517: # Check to see if strftime() works.
6518:
6519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
6520: $as_echo_n "checking whether strftime() works... " >&6; }
6521: if ${libopts_cv_run_strftime+:} false; then :
6522: $as_echo_n "(cached) " >&6
6523: else
6524:
6525: if test "$cross_compiling" = yes; then :
6526: libopts_cv_run_strftime=no
6527:
6528: else
6529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530: /* end confdefs.h. */
6531: #include <time.h>
6532: #include <string.h>
6533: char t_buf[ 64 ];
6534: int main() {
6535: static char const z[] = "Thursday Aug 28 240";
6536: struct tm tm;
6537: tm.tm_sec = 36; /* seconds after the minute [0, 61] */
6538: tm.tm_min = 44; /* minutes after the hour [0, 59] */
6539: tm.tm_hour = 12; /* hour since midnight [0, 23] */
6540: tm.tm_mday = 28; /* day of the month [1, 31] */
6541: tm.tm_mon = 7; /* months since January [0, 11] */
6542: tm.tm_year = 86; /* years since 1900 */
6543: tm.tm_wday = 4; /* days since Sunday [0, 6] */
6544: tm.tm_yday = 239; /* days since January 1 [0, 365] */
6545: tm.tm_isdst = 1; /* flag for daylight savings time */
6546: strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
6547: return (strcmp( t_buf, z ) != 0); }
6548: _ACEOF
6549: if ac_fn_c_try_run "$LINENO"; then :
6550: libopts_cv_run_strftime=yes
6551: else
6552: libopts_cv_run_strftime=no
6553: fi
6554: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6555: conftest.$ac_objext conftest.beam conftest.$ac_ext
6556: fi
6557: # end of TRY_RUN
6558:
6559: fi
6560: # end of AC_CACHE_VAL for libopts_cv_run_strftime
6561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
6562: $as_echo "${libopts_cv_run_strftime}" >&6; }
6563: if test "X${libopts_cv_run_strftime}" != Xno
6564: then
6565:
6566: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
6567:
6568: fi
6569:
6570:
6571:
6572: # Check to see if fopen accepts "b" mode.
6573:
6574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
6575: $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
6576: if ${libopts_cv_run_fopen_binary+:} false; then :
6577: $as_echo_n "(cached) " >&6
6578: else
6579:
6580: if test "$cross_compiling" = yes; then :
6581: libopts_cv_run_fopen_binary=no
6582:
6583: else
6584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585: /* end confdefs.h. */
6586: #include <stdio.h>
6587: int main (int argc, char** argv) {
6588: FILE* fp = fopen("conftest.$ac_ext", "rb");
6589: return (fp == NULL) ? 1 : fclose(fp); }
6590: _ACEOF
6591: if ac_fn_c_try_run "$LINENO"; then :
6592: libopts_cv_run_fopen_binary=yes
6593: else
6594: libopts_cv_run_fopen_binary=no
6595: fi
6596: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6597: conftest.$ac_objext conftest.beam conftest.$ac_ext
6598: fi
6599: # end of TRY_RUN
6600:
6601: fi
6602: # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
6603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
6604: $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
6605: if test "X${libopts_cv_run_fopen_binary}" != Xno
6606: then
6607:
6608: $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
6609:
6610: else
6611:
6612: $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
6613:
6614: fi
6615:
6616:
6617:
6618: # Check to see if fopen accepts "t" mode.
6619:
6620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
6621: $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
6622: if ${libopts_cv_run_fopen_text+:} false; then :
6623: $as_echo_n "(cached) " >&6
6624: else
6625:
6626: if test "$cross_compiling" = yes; then :
6627: libopts_cv_run_fopen_text=no
6628:
6629: else
6630: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631: /* end confdefs.h. */
6632: #include <stdio.h>
6633: int main (int argc, char** argv) {
6634: FILE* fp = fopen("conftest.$ac_ext", "rt");
6635: return (fp == NULL) ? 1 : fclose(fp); }
6636: _ACEOF
6637: if ac_fn_c_try_run "$LINENO"; then :
6638: libopts_cv_run_fopen_text=yes
6639: else
6640: libopts_cv_run_fopen_text=no
6641: fi
6642: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6643: conftest.$ac_objext conftest.beam conftest.$ac_ext
6644: fi
6645: # end of TRY_RUN
6646:
6647: fi
6648: # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
6649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
6650: $as_echo "${libopts_cv_run_fopen_text}" >&6; }
6651: if test "X${libopts_cv_run_fopen_text}" != Xno
6652: then
6653:
6654: $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
6655:
6656: else
6657:
6658: $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
6659:
6660: fi
6661:
6662:
6663:
6664: # Check to see if not wanting optional option args.
6665:
6666: # Check whether --enable-optional-args was given.
6667: if test "${enable_optional_args+set}" = set; then :
6668: enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
6669: else
6670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
6671: $as_echo_n "checking whether not wanting optional option args... " >&6; }
6672: if ${libopts_cv_enable_optional_args+:} false; then :
6673: $as_echo_n "(cached) " >&6
6674: else
6675: libopts_cv_enable_optional_args=yes
6676: fi
6677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
6678: $as_echo "$libopts_cv_enable_optional_args" >&6; }
6679:
6680: fi
6681: # end of AC_ARG_ENABLE
6682: if test "X${libopts_cv_enable_optional_args}" = Xno
6683: then
6684:
6685: $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
6686:
6687: fi
6688:
6689:
6690:
6691:
6692: ac_config_files="$ac_config_files libopts/Makefile"
6693:
6694:
6695: fi # end of AC_DEFUN of LIBOPTS_CHECK
6696:
6697:
6698: case `pwd` in
6699: *\ * | *\ *)
6700: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6701: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6702: esac
6703:
6704:
6705:
6706: macro_version='2.4'
6707: macro_revision='1.3293'
6708:
6709:
6710:
6711:
6712:
6713:
6714:
6715:
6716:
6717:
6718:
6719:
6720:
6721: ltmain="$ac_aux_dir/ltmain.sh"
6722:
6723: # Backslashify metacharacters that are still active within
6724: # double-quoted strings.
6725: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6726:
6727: # Same as above, but do not quote variable references.
6728: double_quote_subst='s/\(["`\\]\)/\\\1/g'
6729:
6730: # Sed substitution to delay expansion of an escaped shell variable in a
6731: # double_quote_subst'ed string.
6732: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6733:
6734: # Sed substitution to delay expansion of an escaped single quote.
6735: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6736:
6737: # Sed substitution to avoid accidental globbing in evaled expressions
6738: no_glob_subst='s/\*/\\\*/g'
6739:
6740: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6741: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6742: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6743:
6744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6745: $as_echo_n "checking how to print strings... " >&6; }
6746: # Test print first, because it will be a builtin if present.
6747: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6748: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6749: ECHO='print -r --'
6750: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6751: ECHO='printf %s\n'
6752: else
6753: # Use this function as a fallback that always works.
6754: func_fallback_echo ()
6755: {
6756: eval 'cat <<_LTECHO_EOF
6757: $1
6758: _LTECHO_EOF'
6759: }
6760: ECHO='func_fallback_echo'
6761: fi
6762:
6763: # func_echo_all arg...
6764: # Invoke $ECHO with all args, space-separated.
6765: func_echo_all ()
6766: {
6767: $ECHO ""
6768: }
6769:
6770: case "$ECHO" in
6771: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6772: $as_echo "printf" >&6; } ;;
6773: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6774: $as_echo "print -r" >&6; } ;;
6775: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6776: $as_echo "cat" >&6; } ;;
6777: esac
6778:
6779:
6780:
6781:
6782:
6783:
6784:
6785:
6786:
6787:
6788:
6789:
6790:
6791:
6792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6793: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6794: if ${ac_cv_path_SED+:} false; then :
6795: $as_echo_n "(cached) " >&6
6796: else
6797: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6798: for ac_i in 1 2 3 4 5 6 7; do
6799: ac_script="$ac_script$as_nl$ac_script"
6800: done
6801: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6802: { ac_script=; unset ac_script;}
6803: if test -z "$SED"; then
6804: ac_path_SED_found=false
6805: # Loop through the user's path and test for each of PROGNAME-LIST
6806: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807: for as_dir in $PATH
6808: do
6809: IFS=$as_save_IFS
6810: test -z "$as_dir" && as_dir=.
6811: for ac_prog in sed gsed; do
6812: for ac_exec_ext in '' $ac_executable_extensions; do
6813: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6814: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6815: # Check for GNU ac_path_SED and select it if it is found.
6816: # Check for GNU $ac_path_SED
6817: case `"$ac_path_SED" --version 2>&1` in
6818: *GNU*)
6819: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6820: *)
6821: ac_count=0
6822: $as_echo_n 0123456789 >"conftest.in"
6823: while :
6824: do
6825: cat "conftest.in" "conftest.in" >"conftest.tmp"
6826: mv "conftest.tmp" "conftest.in"
6827: cp "conftest.in" "conftest.nl"
6828: $as_echo '' >> "conftest.nl"
6829: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6830: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6831: as_fn_arith $ac_count + 1 && ac_count=$as_val
6832: if test $ac_count -gt ${ac_path_SED_max-0}; then
6833: # Best one so far, save it but keep looking for a better one
6834: ac_cv_path_SED="$ac_path_SED"
6835: ac_path_SED_max=$ac_count
6836: fi
6837: # 10*(2^10) chars as input seems more than enough
6838: test $ac_count -gt 10 && break
6839: done
6840: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6841: esac
6842:
6843: $ac_path_SED_found && break 3
6844: done
6845: done
6846: done
6847: IFS=$as_save_IFS
6848: if test -z "$ac_cv_path_SED"; then
6849: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6850: fi
6851: else
6852: ac_cv_path_SED=$SED
6853: fi
6854:
6855: fi
6856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6857: $as_echo "$ac_cv_path_SED" >&6; }
6858: SED="$ac_cv_path_SED"
6859: rm -f conftest.sed
6860:
6861: test -z "$SED" && SED=sed
6862: Xsed="$SED -e 1s/^X//"
6863:
6864:
6865:
6866:
6867:
6868:
6869:
6870:
6871:
6872:
6873:
6874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6875: $as_echo_n "checking for fgrep... " >&6; }
6876: if ${ac_cv_path_FGREP+:} false; then :
6877: $as_echo_n "(cached) " >&6
6878: else
6879: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6880: then ac_cv_path_FGREP="$GREP -F"
6881: else
6882: if test -z "$FGREP"; then
6883: ac_path_FGREP_found=false
6884: # Loop through the user's path and test for each of PROGNAME-LIST
6885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6887: do
6888: IFS=$as_save_IFS
6889: test -z "$as_dir" && as_dir=.
6890: for ac_prog in fgrep; do
6891: for ac_exec_ext in '' $ac_executable_extensions; do
6892: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6893: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6894: # Check for GNU ac_path_FGREP and select it if it is found.
6895: # Check for GNU $ac_path_FGREP
6896: case `"$ac_path_FGREP" --version 2>&1` in
6897: *GNU*)
6898: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6899: *)
6900: ac_count=0
6901: $as_echo_n 0123456789 >"conftest.in"
6902: while :
6903: do
6904: cat "conftest.in" "conftest.in" >"conftest.tmp"
6905: mv "conftest.tmp" "conftest.in"
6906: cp "conftest.in" "conftest.nl"
6907: $as_echo 'FGREP' >> "conftest.nl"
6908: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6909: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6910: as_fn_arith $ac_count + 1 && ac_count=$as_val
6911: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6912: # Best one so far, save it but keep looking for a better one
6913: ac_cv_path_FGREP="$ac_path_FGREP"
6914: ac_path_FGREP_max=$ac_count
6915: fi
6916: # 10*(2^10) chars as input seems more than enough
6917: test $ac_count -gt 10 && break
6918: done
6919: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6920: esac
6921:
6922: $ac_path_FGREP_found && break 3
6923: done
6924: done
6925: done
6926: IFS=$as_save_IFS
6927: if test -z "$ac_cv_path_FGREP"; then
6928: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6929: fi
6930: else
6931: ac_cv_path_FGREP=$FGREP
6932: fi
6933:
6934: fi
6935: fi
6936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6937: $as_echo "$ac_cv_path_FGREP" >&6; }
6938: FGREP="$ac_cv_path_FGREP"
6939:
6940:
6941: test -z "$GREP" && GREP=grep
6942:
6943:
6944:
6945:
6946:
6947:
6948:
6949:
6950:
6951:
6952:
6953:
6954:
6955:
6956:
6957:
6958:
6959:
6960:
6961: # Check whether --with-gnu-ld was given.
6962: if test "${with_gnu_ld+set}" = set; then :
6963: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6964: else
6965: with_gnu_ld=no
6966: fi
6967:
6968: ac_prog=ld
6969: if test "$GCC" = yes; then
6970: # Check if gcc -print-prog-name=ld gives a path.
6971: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6972: $as_echo_n "checking for ld used by $CC... " >&6; }
6973: case $host in
6974: *-*-mingw*)
6975: # gcc leaves a trailing carriage return which upsets mingw
6976: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6977: *)
6978: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6979: esac
6980: case $ac_prog in
6981: # Accept absolute paths.
6982: [\\/]* | ?:[\\/]*)
6983: re_direlt='/[^/][^/]*/\.\./'
6984: # Canonicalize the pathname of ld
6985: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6986: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6987: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6988: done
6989: test -z "$LD" && LD="$ac_prog"
6990: ;;
6991: "")
6992: # If it fails, then pretend we aren't using GCC.
6993: ac_prog=ld
6994: ;;
6995: *)
6996: # If it is relative, then search for the first ld in PATH.
6997: with_gnu_ld=unknown
6998: ;;
6999: esac
7000: elif test "$with_gnu_ld" = yes; then
7001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7002: $as_echo_n "checking for GNU ld... " >&6; }
7003: else
7004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7005: $as_echo_n "checking for non-GNU ld... " >&6; }
7006: fi
7007: if ${lt_cv_path_LD+:} false; then :
7008: $as_echo_n "(cached) " >&6
7009: else
7010: if test -z "$LD"; then
7011: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012: for ac_dir in $PATH; do
7013: IFS="$lt_save_ifs"
7014: test -z "$ac_dir" && ac_dir=.
7015: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7016: lt_cv_path_LD="$ac_dir/$ac_prog"
7017: # Check to see if the program is GNU ld. I'd rather use --version,
7018: # but apparently some variants of GNU ld only accept -v.
7019: # Break only if it was the GNU/non-GNU ld that we prefer.
7020: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7021: *GNU* | *'with BFD'*)
7022: test "$with_gnu_ld" != no && break
7023: ;;
7024: *)
7025: test "$with_gnu_ld" != yes && break
7026: ;;
7027: esac
7028: fi
7029: done
7030: IFS="$lt_save_ifs"
7031: else
7032: lt_cv_path_LD="$LD" # Let the user override the test with a path.
7033: fi
7034: fi
7035:
7036: LD="$lt_cv_path_LD"
7037: if test -n "$LD"; then
7038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7039: $as_echo "$LD" >&6; }
7040: else
7041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042: $as_echo "no" >&6; }
7043: fi
7044: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7046: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7047: if ${lt_cv_prog_gnu_ld+:} false; then :
7048: $as_echo_n "(cached) " >&6
7049: else
7050: # I'd rather use --version here, but apparently some GNU lds only accept -v.
7051: case `$LD -v 2>&1 </dev/null` in
7052: *GNU* | *'with BFD'*)
7053: lt_cv_prog_gnu_ld=yes
7054: ;;
7055: *)
7056: lt_cv_prog_gnu_ld=no
7057: ;;
7058: esac
7059: fi
7060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7061: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7062: with_gnu_ld=$lt_cv_prog_gnu_ld
7063:
7064:
7065:
7066:
7067:
7068:
7069:
7070:
7071:
7072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7073: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7074: if ${lt_cv_path_NM+:} false; then :
7075: $as_echo_n "(cached) " >&6
7076: else
7077: if test -n "$NM"; then
7078: # Let the user override the test.
7079: lt_cv_path_NM="$NM"
7080: else
7081: lt_nm_to_check="${ac_tool_prefix}nm"
7082: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7083: lt_nm_to_check="$lt_nm_to_check nm"
7084: fi
7085: for lt_tmp_nm in $lt_nm_to_check; do
7086: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7087: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7088: IFS="$lt_save_ifs"
7089: test -z "$ac_dir" && ac_dir=.
7090: tmp_nm="$ac_dir/$lt_tmp_nm"
7091: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7092: # Check to see if the nm accepts a BSD-compat flag.
7093: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7094: # nm: unknown option "B" ignored
7095: # Tru64's nm complains that /dev/null is an invalid object file
7096: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7097: */dev/null* | *'Invalid file or object type'*)
7098: lt_cv_path_NM="$tmp_nm -B"
7099: break
7100: ;;
7101: *)
7102: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7103: */dev/null*)
7104: lt_cv_path_NM="$tmp_nm -p"
7105: break
7106: ;;
7107: *)
7108: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7109: continue # so that we can try to find one that supports BSD flags
7110: ;;
7111: esac
7112: ;;
7113: esac
7114: fi
7115: done
7116: IFS="$lt_save_ifs"
7117: done
7118: : ${lt_cv_path_NM=no}
7119: fi
7120: fi
7121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7122: $as_echo "$lt_cv_path_NM" >&6; }
7123: if test "$lt_cv_path_NM" != "no"; then
7124: NM="$lt_cv_path_NM"
7125: else
7126: # Didn't find any BSD compatible name lister, look for dumpbin.
7127: if test -n "$DUMPBIN"; then :
7128: # Let the user override the test.
7129: else
7130: if test -n "$ac_tool_prefix"; then
7131: for ac_prog in dumpbin "link -dump"
7132: do
7133: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7134: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136: $as_echo_n "checking for $ac_word... " >&6; }
7137: if ${ac_cv_prog_DUMPBIN+:} false; then :
7138: $as_echo_n "(cached) " >&6
7139: else
7140: if test -n "$DUMPBIN"; then
7141: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7142: else
7143: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144: for as_dir in $PATH
7145: do
7146: IFS=$as_save_IFS
7147: test -z "$as_dir" && as_dir=.
7148: for ac_exec_ext in '' $ac_executable_extensions; do
7149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7151: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152: break 2
7153: fi
7154: done
7155: done
7156: IFS=$as_save_IFS
7157:
7158: fi
7159: fi
7160: DUMPBIN=$ac_cv_prog_DUMPBIN
7161: if test -n "$DUMPBIN"; then
7162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7163: $as_echo "$DUMPBIN" >&6; }
7164: else
7165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166: $as_echo "no" >&6; }
7167: fi
7168:
7169:
7170: test -n "$DUMPBIN" && break
7171: done
7172: fi
7173: if test -z "$DUMPBIN"; then
7174: ac_ct_DUMPBIN=$DUMPBIN
7175: for ac_prog in dumpbin "link -dump"
7176: do
7177: # Extract the first word of "$ac_prog", so it can be a program name with args.
7178: set dummy $ac_prog; ac_word=$2
7179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180: $as_echo_n "checking for $ac_word... " >&6; }
7181: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7182: $as_echo_n "(cached) " >&6
7183: else
7184: if test -n "$ac_ct_DUMPBIN"; then
7185: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7186: else
7187: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188: for as_dir in $PATH
7189: do
7190: IFS=$as_save_IFS
7191: test -z "$as_dir" && as_dir=.
7192: for ac_exec_ext in '' $ac_executable_extensions; do
7193: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7195: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196: break 2
7197: fi
7198: done
7199: done
7200: IFS=$as_save_IFS
7201:
7202: fi
7203: fi
7204: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7205: if test -n "$ac_ct_DUMPBIN"; then
7206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7207: $as_echo "$ac_ct_DUMPBIN" >&6; }
7208: else
7209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210: $as_echo "no" >&6; }
7211: fi
7212:
7213:
7214: test -n "$ac_ct_DUMPBIN" && break
7215: done
7216:
7217: if test "x$ac_ct_DUMPBIN" = x; then
7218: DUMPBIN=":"
7219: else
7220: case $cross_compiling:$ac_tool_warned in
7221: yes:)
7222: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224: ac_tool_warned=yes ;;
7225: esac
7226: DUMPBIN=$ac_ct_DUMPBIN
7227: fi
7228: fi
7229:
7230: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7231: *COFF*)
7232: DUMPBIN="$DUMPBIN -symbols"
7233: ;;
7234: *)
7235: DUMPBIN=:
7236: ;;
7237: esac
7238: fi
7239:
7240: if test "$DUMPBIN" != ":"; then
7241: NM="$DUMPBIN"
7242: fi
7243: fi
7244: test -z "$NM" && NM=nm
7245:
7246:
7247:
7248:
7249:
7250:
7251: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7252: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7253: if ${lt_cv_nm_interface+:} false; then :
7254: $as_echo_n "(cached) " >&6
7255: else
7256: lt_cv_nm_interface="BSD nm"
7257: echo "int some_variable = 0;" > conftest.$ac_ext
7258: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7259: (eval "$ac_compile" 2>conftest.err)
7260: cat conftest.err >&5
7261: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7262: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7263: cat conftest.err >&5
7264: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7265: cat conftest.out >&5
7266: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7267: lt_cv_nm_interface="MS dumpbin"
7268: fi
7269: rm -f conftest*
7270: fi
7271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7272: $as_echo "$lt_cv_nm_interface" >&6; }
7273:
7274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7275: $as_echo_n "checking whether ln -s works... " >&6; }
7276: LN_S=$as_ln_s
7277: if test "$LN_S" = "ln -s"; then
7278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279: $as_echo "yes" >&6; }
7280: else
7281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7282: $as_echo "no, using $LN_S" >&6; }
7283: fi
7284:
7285: # find the maximum length of command line arguments
7286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7287: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7288: if ${lt_cv_sys_max_cmd_len+:} false; then :
7289: $as_echo_n "(cached) " >&6
7290: else
7291: i=0
7292: teststring="ABCD"
7293:
7294: case $build_os in
7295: msdosdjgpp*)
7296: # On DJGPP, this test can blow up pretty badly due to problems in libc
7297: # (any single argument exceeding 2000 bytes causes a buffer overrun
7298: # during glob expansion). Even if it were fixed, the result of this
7299: # check would be larger than it should be.
7300: lt_cv_sys_max_cmd_len=12288; # 12K is about right
7301: ;;
7302:
7303: gnu*)
7304: # Under GNU Hurd, this test is not required because there is
7305: # no limit to the length of command line arguments.
7306: # Libtool will interpret -1 as no limit whatsoever
7307: lt_cv_sys_max_cmd_len=-1;
7308: ;;
7309:
7310: cygwin* | mingw* | cegcc*)
7311: # On Win9x/ME, this test blows up -- it succeeds, but takes
7312: # about 5 minutes as the teststring grows exponentially.
7313: # Worse, since 9x/ME are not pre-emptively multitasking,
7314: # you end up with a "frozen" computer, even though with patience
7315: # the test eventually succeeds (with a max line length of 256k).
7316: # Instead, let's just punt: use the minimum linelength reported by
7317: # all of the supported platforms: 8192 (on NT/2K/XP).
7318: lt_cv_sys_max_cmd_len=8192;
7319: ;;
7320:
7321: mint*)
7322: # On MiNT this can take a long time and run out of memory.
7323: lt_cv_sys_max_cmd_len=8192;
7324: ;;
7325:
7326: amigaos*)
7327: # On AmigaOS with pdksh, this test takes hours, literally.
7328: # So we just punt and use a minimum line length of 8192.
7329: lt_cv_sys_max_cmd_len=8192;
7330: ;;
7331:
7332: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7333: # This has been around since 386BSD, at least. Likely further.
7334: if test -x /sbin/sysctl; then
7335: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7336: elif test -x /usr/sbin/sysctl; then
7337: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7338: else
7339: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7340: fi
7341: # And add a safety zone
7342: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7343: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7344: ;;
7345:
7346: interix*)
7347: # We know the value 262144 and hardcode it with a safety zone (like BSD)
7348: lt_cv_sys_max_cmd_len=196608
7349: ;;
7350:
7351: osf*)
7352: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7353: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7354: # nice to cause kernel panics so lets avoid the loop below.
7355: # First set a reasonable default.
7356: lt_cv_sys_max_cmd_len=16384
7357: #
7358: if test -x /sbin/sysconfig; then
7359: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7360: *1*) lt_cv_sys_max_cmd_len=-1 ;;
7361: esac
7362: fi
7363: ;;
7364: sco3.2v5*)
7365: lt_cv_sys_max_cmd_len=102400
7366: ;;
7367: sysv5* | sco5v6* | sysv4.2uw2*)
7368: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7369: if test -n "$kargmax"; then
7370: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7371: else
7372: lt_cv_sys_max_cmd_len=32768
7373: fi
7374: ;;
7375: *)
7376: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7377: if test -n "$lt_cv_sys_max_cmd_len"; then
7378: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7379: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7380: else
7381: # Make teststring a little bigger before we do anything with it.
7382: # a 1K string should be a reasonable start.
7383: for i in 1 2 3 4 5 6 7 8 ; do
7384: teststring=$teststring$teststring
7385: done
7386: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7387: # If test is not a shell built-in, we'll probably end up computing a
7388: # maximum length that is only half of the actual maximum length, but
7389: # we can't tell.
7390: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7391: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7392: test $i != 17 # 1/2 MB should be enough
7393: do
7394: i=`expr $i + 1`
7395: teststring=$teststring$teststring
7396: done
7397: # Only check the string length outside the loop.
7398: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7399: teststring=
7400: # Add a significant safety factor because C++ compilers can tack on
7401: # massive amounts of additional arguments before passing them to the
7402: # linker. It appears as though 1/2 is a usable value.
7403: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7404: fi
7405: ;;
7406: esac
7407:
7408: fi
7409:
7410: if test -n $lt_cv_sys_max_cmd_len ; then
7411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7412: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7413: else
7414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7415: $as_echo "none" >&6; }
7416: fi
7417: max_cmd_len=$lt_cv_sys_max_cmd_len
7418:
7419:
7420:
7421:
7422:
7423:
7424: : ${CP="cp -f"}
7425: : ${MV="mv -f"}
7426: : ${RM="rm -f"}
7427:
7428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7429: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7430: # Try some XSI features
7431: xsi_shell=no
7432: ( _lt_dummy="a/b/c"
7433: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7434: = c,a/b,b/c, \
7435: && eval 'test $(( 1 + 1 )) -eq 2 \
7436: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7437: && xsi_shell=yes
7438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7439: $as_echo "$xsi_shell" >&6; }
7440:
7441:
7442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7443: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7444: lt_shell_append=no
7445: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7446: >/dev/null 2>&1 \
7447: && lt_shell_append=yes
7448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7449: $as_echo "$lt_shell_append" >&6; }
7450:
7451:
7452: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7453: lt_unset=unset
7454: else
7455: lt_unset=false
7456: fi
7457:
7458:
7459:
7460:
7461:
7462: # test EBCDIC or ASCII
7463: case `echo X|tr X '\101'` in
7464: A) # ASCII based system
7465: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7466: lt_SP2NL='tr \040 \012'
7467: lt_NL2SP='tr \015\012 \040\040'
7468: ;;
7469: *) # EBCDIC based system
7470: lt_SP2NL='tr \100 \n'
7471: lt_NL2SP='tr \r\n \100\100'
7472: ;;
7473: esac
7474:
7475:
7476:
7477:
7478:
7479:
7480:
7481:
7482:
7483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7484: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7485: if ${lt_cv_to_host_file_cmd+:} false; then :
7486: $as_echo_n "(cached) " >&6
7487: else
7488: case $host in
7489: *-*-mingw* )
7490: case $build in
7491: *-*-mingw* ) # actually msys
7492: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7493: ;;
7494: *-*-cygwin* )
7495: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7496: ;;
7497: * ) # otherwise, assume *nix
7498: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7499: ;;
7500: esac
7501: ;;
7502: *-*-cygwin* )
7503: case $build in
7504: *-*-mingw* ) # actually msys
7505: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7506: ;;
7507: *-*-cygwin* )
7508: lt_cv_to_host_file_cmd=func_convert_file_noop
7509: ;;
7510: * ) # otherwise, assume *nix
7511: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7512: ;;
7513: esac
7514: ;;
7515: * ) # unhandled hosts (and "normal" native builds)
7516: lt_cv_to_host_file_cmd=func_convert_file_noop
7517: ;;
7518: esac
7519:
7520: fi
7521:
7522: to_host_file_cmd=$lt_cv_to_host_file_cmd
7523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7524: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7525:
7526:
7527:
7528:
7529:
7530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7531: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7532: if ${lt_cv_to_tool_file_cmd+:} false; then :
7533: $as_echo_n "(cached) " >&6
7534: else
7535: #assume ordinary cross tools, or native build.
7536: lt_cv_to_tool_file_cmd=func_convert_file_noop
7537: case $host in
7538: *-*-mingw* )
7539: case $build in
7540: *-*-mingw* ) # actually msys
7541: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7542: ;;
7543: esac
7544: ;;
7545: esac
7546:
7547: fi
7548:
7549: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7551: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7552:
7553:
7554:
7555:
7556:
7557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7558: $as_echo_n "checking for $LD option to reload object files... " >&6; }
7559: if ${lt_cv_ld_reload_flag+:} false; then :
7560: $as_echo_n "(cached) " >&6
7561: else
7562: lt_cv_ld_reload_flag='-r'
7563: fi
7564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7565: $as_echo "$lt_cv_ld_reload_flag" >&6; }
7566: reload_flag=$lt_cv_ld_reload_flag
7567: case $reload_flag in
7568: "" | " "*) ;;
7569: *) reload_flag=" $reload_flag" ;;
7570: esac
7571: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7572: case $host_os in
7573: cygwin* | mingw* | pw32* | cegcc*)
7574: if test "$GCC" != yes; then
7575: reload_cmds=false
7576: fi
7577: ;;
7578: darwin*)
7579: if test "$GCC" = yes; then
7580: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7581: else
7582: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7583: fi
7584: ;;
7585: esac
7586:
7587:
7588:
7589:
7590:
7591:
7592:
7593:
7594:
7595: if test -n "$ac_tool_prefix"; then
7596: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7597: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599: $as_echo_n "checking for $ac_word... " >&6; }
7600: if ${ac_cv_prog_OBJDUMP+:} false; then :
7601: $as_echo_n "(cached) " >&6
7602: else
7603: if test -n "$OBJDUMP"; then
7604: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7605: else
7606: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607: for as_dir in $PATH
7608: do
7609: IFS=$as_save_IFS
7610: test -z "$as_dir" && as_dir=.
7611: for ac_exec_ext in '' $ac_executable_extensions; do
7612: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7614: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615: break 2
7616: fi
7617: done
7618: done
7619: IFS=$as_save_IFS
7620:
7621: fi
7622: fi
7623: OBJDUMP=$ac_cv_prog_OBJDUMP
7624: if test -n "$OBJDUMP"; then
7625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7626: $as_echo "$OBJDUMP" >&6; }
7627: else
7628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629: $as_echo "no" >&6; }
7630: fi
7631:
7632:
7633: fi
7634: if test -z "$ac_cv_prog_OBJDUMP"; then
7635: ac_ct_OBJDUMP=$OBJDUMP
7636: # Extract the first word of "objdump", so it can be a program name with args.
7637: set dummy objdump; ac_word=$2
7638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639: $as_echo_n "checking for $ac_word... " >&6; }
7640: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7641: $as_echo_n "(cached) " >&6
7642: else
7643: if test -n "$ac_ct_OBJDUMP"; then
7644: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7645: else
7646: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647: for as_dir in $PATH
7648: do
7649: IFS=$as_save_IFS
7650: test -z "$as_dir" && as_dir=.
7651: for ac_exec_ext in '' $ac_executable_extensions; do
7652: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7654: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655: break 2
7656: fi
7657: done
7658: done
7659: IFS=$as_save_IFS
7660:
7661: fi
7662: fi
7663: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7664: if test -n "$ac_ct_OBJDUMP"; then
7665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7666: $as_echo "$ac_ct_OBJDUMP" >&6; }
7667: else
7668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669: $as_echo "no" >&6; }
7670: fi
7671:
7672: if test "x$ac_ct_OBJDUMP" = x; then
7673: OBJDUMP="false"
7674: else
7675: case $cross_compiling:$ac_tool_warned in
7676: yes:)
7677: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679: ac_tool_warned=yes ;;
7680: esac
7681: OBJDUMP=$ac_ct_OBJDUMP
7682: fi
7683: else
7684: OBJDUMP="$ac_cv_prog_OBJDUMP"
7685: fi
7686:
7687: test -z "$OBJDUMP" && OBJDUMP=objdump
7688:
7689:
7690:
7691:
7692:
7693:
7694:
7695:
7696:
7697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7698: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7699: if ${lt_cv_deplibs_check_method+:} false; then :
7700: $as_echo_n "(cached) " >&6
7701: else
7702: lt_cv_file_magic_cmd='$MAGIC_CMD'
7703: lt_cv_file_magic_test_file=
7704: lt_cv_deplibs_check_method='unknown'
7705: # Need to set the preceding variable on all platforms that support
7706: # interlibrary dependencies.
7707: # 'none' -- dependencies not supported.
7708: # `unknown' -- same as none, but documents that we really don't know.
7709: # 'pass_all' -- all dependencies passed with no checks.
7710: # 'test_compile' -- check by making test program.
7711: # 'file_magic [[regex]]' -- check by looking for files in library path
7712: # which responds to the $file_magic_cmd with a given extended regex.
7713: # If you have `file' or equivalent on your system and you're not sure
7714: # whether `pass_all' will *always* work, you probably want this one.
7715:
7716: case $host_os in
7717: aix[4-9]*)
7718: lt_cv_deplibs_check_method=pass_all
7719: ;;
7720:
7721: beos*)
7722: lt_cv_deplibs_check_method=pass_all
7723: ;;
7724:
7725: bsdi[45]*)
7726: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7727: lt_cv_file_magic_cmd='/usr/bin/file -L'
7728: lt_cv_file_magic_test_file=/shlib/libc.so
7729: ;;
7730:
7731: cygwin*)
7732: # func_win32_libid is a shell function defined in ltmain.sh
7733: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7734: lt_cv_file_magic_cmd='func_win32_libid'
7735: ;;
7736:
7737: mingw* | pw32*)
7738: # Base MSYS/MinGW do not provide the 'file' command needed by
7739: # func_win32_libid shell function, so use a weaker test based on 'objdump',
7740: # unless we find 'file', for example because we are cross-compiling.
7741: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7742: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7743: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7744: lt_cv_file_magic_cmd='func_win32_libid'
7745: else
7746: # Keep this pattern in sync with the one in func_win32_libid.
7747: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7748: lt_cv_file_magic_cmd='$OBJDUMP -f'
7749: fi
7750: ;;
7751:
7752: cegcc*)
7753: # use the weaker test based on 'objdump'. See mingw*.
7754: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7755: lt_cv_file_magic_cmd='$OBJDUMP -f'
7756: ;;
7757:
7758: darwin* | rhapsody*)
7759: lt_cv_deplibs_check_method=pass_all
7760: ;;
7761:
7762: freebsd* | dragonfly*)
7763: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7764: case $host_cpu in
7765: i*86 )
7766: # Not sure whether the presence of OpenBSD here was a mistake.
7767: # Let's accept both of them until this is cleared up.
7768: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7769: lt_cv_file_magic_cmd=/usr/bin/file
7770: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7771: ;;
7772: esac
7773: else
7774: lt_cv_deplibs_check_method=pass_all
7775: fi
7776: ;;
7777:
7778: gnu*)
7779: lt_cv_deplibs_check_method=pass_all
7780: ;;
7781:
7782: haiku*)
7783: lt_cv_deplibs_check_method=pass_all
7784: ;;
7785:
7786: hpux10.20* | hpux11*)
7787: lt_cv_file_magic_cmd=/usr/bin/file
7788: case $host_cpu in
7789: ia64*)
7790: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7791: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7792: ;;
7793: hppa*64*)
7794: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7795: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7796: ;;
7797: *)
7798: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7799: lt_cv_file_magic_test_file=/usr/lib/libc.sl
7800: ;;
7801: esac
7802: ;;
7803:
7804: interix[3-9]*)
7805: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7806: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7807: ;;
7808:
7809: irix5* | irix6* | nonstopux*)
7810: case $LD in
7811: *-32|*"-32 ") libmagic=32-bit;;
7812: *-n32|*"-n32 ") libmagic=N32;;
7813: *-64|*"-64 ") libmagic=64-bit;;
7814: *) libmagic=never-match;;
7815: esac
7816: lt_cv_deplibs_check_method=pass_all
7817: ;;
7818:
7819: # This must be Linux ELF.
7820: linux* | k*bsd*-gnu | kopensolaris*-gnu)
7821: lt_cv_deplibs_check_method=pass_all
7822: ;;
7823:
7824: netbsd*)
7825: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7826: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7827: else
7828: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7829: fi
7830: ;;
7831:
7832: newos6*)
7833: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7834: lt_cv_file_magic_cmd=/usr/bin/file
7835: lt_cv_file_magic_test_file=/usr/lib/libnls.so
7836: ;;
7837:
7838: *nto* | *qnx*)
7839: lt_cv_deplibs_check_method=pass_all
7840: ;;
7841:
7842: openbsd*)
7843: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7845: else
7846: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7847: fi
7848: ;;
7849:
7850: osf3* | osf4* | osf5*)
7851: lt_cv_deplibs_check_method=pass_all
7852: ;;
7853:
7854: rdos*)
7855: lt_cv_deplibs_check_method=pass_all
7856: ;;
7857:
7858: solaris*)
7859: lt_cv_deplibs_check_method=pass_all
7860: ;;
7861:
7862: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7863: lt_cv_deplibs_check_method=pass_all
7864: ;;
7865:
7866: sysv4 | sysv4.3*)
7867: case $host_vendor in
7868: motorola)
7869: 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]'
7870: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7871: ;;
7872: ncr)
7873: lt_cv_deplibs_check_method=pass_all
7874: ;;
7875: sequent)
7876: lt_cv_file_magic_cmd='/bin/file'
7877: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7878: ;;
7879: sni)
7880: lt_cv_file_magic_cmd='/bin/file'
7881: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7882: lt_cv_file_magic_test_file=/lib/libc.so
7883: ;;
7884: siemens)
7885: lt_cv_deplibs_check_method=pass_all
7886: ;;
7887: pc)
7888: lt_cv_deplibs_check_method=pass_all
7889: ;;
7890: esac
7891: ;;
7892:
7893: tpf*)
7894: lt_cv_deplibs_check_method=pass_all
7895: ;;
7896: esac
7897:
7898: fi
7899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7900: $as_echo "$lt_cv_deplibs_check_method" >&6; }
7901:
7902: file_magic_glob=
7903: want_nocaseglob=no
7904: if test "$build" = "$host"; then
7905: case $host_os in
7906: mingw* | pw32*)
7907: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7908: want_nocaseglob=yes
7909: else
7910: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7911: fi
7912: ;;
7913: esac
7914: fi
7915:
7916: file_magic_cmd=$lt_cv_file_magic_cmd
7917: deplibs_check_method=$lt_cv_deplibs_check_method
7918: test -z "$deplibs_check_method" && deplibs_check_method=unknown
7919:
7920:
7921:
7922:
7923:
7924:
7925:
7926:
7927:
7928:
7929:
7930:
7931:
7932:
7933:
7934:
7935:
7936:
7937:
7938:
7939:
7940:
7941: if test -n "$ac_tool_prefix"; then
7942: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7943: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945: $as_echo_n "checking for $ac_word... " >&6; }
7946: if ${ac_cv_prog_DLLTOOL+:} false; then :
7947: $as_echo_n "(cached) " >&6
7948: else
7949: if test -n "$DLLTOOL"; then
7950: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7951: else
7952: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953: for as_dir in $PATH
7954: do
7955: IFS=$as_save_IFS
7956: test -z "$as_dir" && as_dir=.
7957: for ac_exec_ext in '' $ac_executable_extensions; do
7958: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7960: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961: break 2
7962: fi
7963: done
7964: done
7965: IFS=$as_save_IFS
7966:
7967: fi
7968: fi
7969: DLLTOOL=$ac_cv_prog_DLLTOOL
7970: if test -n "$DLLTOOL"; then
7971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7972: $as_echo "$DLLTOOL" >&6; }
7973: else
7974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975: $as_echo "no" >&6; }
7976: fi
7977:
7978:
7979: fi
7980: if test -z "$ac_cv_prog_DLLTOOL"; then
7981: ac_ct_DLLTOOL=$DLLTOOL
7982: # Extract the first word of "dlltool", so it can be a program name with args.
7983: set dummy dlltool; ac_word=$2
7984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985: $as_echo_n "checking for $ac_word... " >&6; }
7986: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7987: $as_echo_n "(cached) " >&6
7988: else
7989: if test -n "$ac_ct_DLLTOOL"; then
7990: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7991: else
7992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993: for as_dir in $PATH
7994: do
7995: IFS=$as_save_IFS
7996: test -z "$as_dir" && as_dir=.
7997: for ac_exec_ext in '' $ac_executable_extensions; do
7998: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8000: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001: break 2
8002: fi
8003: done
8004: done
8005: IFS=$as_save_IFS
8006:
8007: fi
8008: fi
8009: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8010: if test -n "$ac_ct_DLLTOOL"; then
8011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8012: $as_echo "$ac_ct_DLLTOOL" >&6; }
8013: else
8014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015: $as_echo "no" >&6; }
8016: fi
8017:
8018: if test "x$ac_ct_DLLTOOL" = x; then
8019: DLLTOOL="false"
8020: else
8021: case $cross_compiling:$ac_tool_warned in
8022: yes:)
8023: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8024: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8025: ac_tool_warned=yes ;;
8026: esac
8027: DLLTOOL=$ac_ct_DLLTOOL
8028: fi
8029: else
8030: DLLTOOL="$ac_cv_prog_DLLTOOL"
8031: fi
8032:
8033: test -z "$DLLTOOL" && DLLTOOL=dlltool
8034:
8035:
8036:
8037:
8038:
8039:
8040:
8041:
8042:
8043:
8044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8045: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8046: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8047: $as_echo_n "(cached) " >&6
8048: else
8049: lt_cv_sharedlib_from_linklib_cmd='unknown'
8050:
8051: case $host_os in
8052: cygwin* | mingw* | pw32* | cegcc*)
8053: # two different shell functions defined in ltmain.sh
8054: # decide which to use based on capabilities of $DLLTOOL
8055: case `$DLLTOOL --help 2>&1` in
8056: *--identify-strict*)
8057: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8058: ;;
8059: *)
8060: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8061: ;;
8062: esac
8063: ;;
8064: *)
8065: # fallback: assume linklib IS sharedlib
8066: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8067: ;;
8068: esac
8069:
8070: fi
8071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8072: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8073: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8074: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8075:
8076:
8077:
8078:
8079:
8080:
8081:
8082: if test -n "$ac_tool_prefix"; then
8083: for ac_prog in ar
8084: do
8085: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8086: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088: $as_echo_n "checking for $ac_word... " >&6; }
8089: if ${ac_cv_prog_AR+:} false; then :
8090: $as_echo_n "(cached) " >&6
8091: else
8092: if test -n "$AR"; then
8093: ac_cv_prog_AR="$AR" # Let the user override the test.
8094: else
8095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096: for as_dir in $PATH
8097: do
8098: IFS=$as_save_IFS
8099: test -z "$as_dir" && as_dir=.
8100: for ac_exec_ext in '' $ac_executable_extensions; do
8101: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8103: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104: break 2
8105: fi
8106: done
8107: done
8108: IFS=$as_save_IFS
8109:
8110: fi
8111: fi
8112: AR=$ac_cv_prog_AR
8113: if test -n "$AR"; then
8114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115: $as_echo "$AR" >&6; }
8116: else
8117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118: $as_echo "no" >&6; }
8119: fi
8120:
8121:
8122: test -n "$AR" && break
8123: done
8124: fi
8125: if test -z "$AR"; then
8126: ac_ct_AR=$AR
8127: for ac_prog in ar
8128: do
8129: # Extract the first word of "$ac_prog", so it can be a program name with args.
8130: set dummy $ac_prog; ac_word=$2
8131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132: $as_echo_n "checking for $ac_word... " >&6; }
8133: if ${ac_cv_prog_ac_ct_AR+:} false; then :
8134: $as_echo_n "(cached) " >&6
8135: else
8136: if test -n "$ac_ct_AR"; then
8137: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8138: else
8139: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140: for as_dir in $PATH
8141: do
8142: IFS=$as_save_IFS
8143: test -z "$as_dir" && as_dir=.
8144: for ac_exec_ext in '' $ac_executable_extensions; do
8145: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146: ac_cv_prog_ac_ct_AR="$ac_prog"
8147: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148: break 2
8149: fi
8150: done
8151: done
8152: IFS=$as_save_IFS
8153:
8154: fi
8155: fi
8156: ac_ct_AR=$ac_cv_prog_ac_ct_AR
8157: if test -n "$ac_ct_AR"; then
8158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8159: $as_echo "$ac_ct_AR" >&6; }
8160: else
8161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162: $as_echo "no" >&6; }
8163: fi
8164:
8165:
8166: test -n "$ac_ct_AR" && break
8167: done
8168:
8169: if test "x$ac_ct_AR" = x; then
8170: AR="false"
8171: else
8172: case $cross_compiling:$ac_tool_warned in
8173: yes:)
8174: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176: ac_tool_warned=yes ;;
8177: esac
8178: AR=$ac_ct_AR
8179: fi
8180: fi
8181:
8182: : ${AR=ar}
8183: : ${AR_FLAGS=cru}
8184:
8185:
8186:
8187:
8188:
8189:
8190:
8191:
8192:
8193:
8194:
8195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8196: $as_echo_n "checking for archiver @FILE support... " >&6; }
8197: if ${lt_cv_ar_at_file+:} false; then :
8198: $as_echo_n "(cached) " >&6
8199: else
8200: lt_cv_ar_at_file=no
8201: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202: /* end confdefs.h. */
8203:
8204: int
8205: main ()
8206: {
8207:
8208: ;
8209: return 0;
8210: }
8211: _ACEOF
8212: if ac_fn_c_try_compile "$LINENO"; then :
8213: echo conftest.$ac_objext > conftest.lst
8214: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8215: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8216: (eval $lt_ar_try) 2>&5
8217: ac_status=$?
8218: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219: test $ac_status = 0; }
8220: if test "$ac_status" -eq 0; then
8221: # Ensure the archiver fails upon bogus file names.
8222: rm -f conftest.$ac_objext libconftest.a
8223: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8224: (eval $lt_ar_try) 2>&5
8225: ac_status=$?
8226: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8227: test $ac_status = 0; }
8228: if test "$ac_status" -ne 0; then
8229: lt_cv_ar_at_file=@
8230: fi
8231: fi
8232: rm -f conftest.* libconftest.a
8233:
8234: fi
8235: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236:
8237: fi
8238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8239: $as_echo "$lt_cv_ar_at_file" >&6; }
8240:
8241: if test "x$lt_cv_ar_at_file" = xno; then
8242: archiver_list_spec=
8243: else
8244: archiver_list_spec=$lt_cv_ar_at_file
8245: fi
8246:
8247:
8248:
8249:
8250:
8251:
8252:
8253: if test -n "$ac_tool_prefix"; then
8254: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8255: set dummy ${ac_tool_prefix}strip; ac_word=$2
8256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257: $as_echo_n "checking for $ac_word... " >&6; }
8258: if ${ac_cv_prog_STRIP+:} false; then :
8259: $as_echo_n "(cached) " >&6
8260: else
8261: if test -n "$STRIP"; then
8262: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8263: else
8264: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265: for as_dir in $PATH
8266: do
8267: IFS=$as_save_IFS
8268: test -z "$as_dir" && as_dir=.
8269: for ac_exec_ext in '' $ac_executable_extensions; do
8270: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8272: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273: break 2
8274: fi
8275: done
8276: done
8277: IFS=$as_save_IFS
8278:
8279: fi
8280: fi
8281: STRIP=$ac_cv_prog_STRIP
8282: if test -n "$STRIP"; then
8283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8284: $as_echo "$STRIP" >&6; }
8285: else
8286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287: $as_echo "no" >&6; }
8288: fi
8289:
8290:
8291: fi
8292: if test -z "$ac_cv_prog_STRIP"; then
8293: ac_ct_STRIP=$STRIP
8294: # Extract the first word of "strip", so it can be a program name with args.
8295: set dummy strip; ac_word=$2
8296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297: $as_echo_n "checking for $ac_word... " >&6; }
8298: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8299: $as_echo_n "(cached) " >&6
8300: else
8301: if test -n "$ac_ct_STRIP"; then
8302: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8303: else
8304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305: for as_dir in $PATH
8306: do
8307: IFS=$as_save_IFS
8308: test -z "$as_dir" && as_dir=.
8309: for ac_exec_ext in '' $ac_executable_extensions; do
8310: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311: ac_cv_prog_ac_ct_STRIP="strip"
8312: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313: break 2
8314: fi
8315: done
8316: done
8317: IFS=$as_save_IFS
8318:
8319: fi
8320: fi
8321: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8322: if test -n "$ac_ct_STRIP"; then
8323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8324: $as_echo "$ac_ct_STRIP" >&6; }
8325: else
8326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327: $as_echo "no" >&6; }
8328: fi
8329:
8330: if test "x$ac_ct_STRIP" = x; then
8331: STRIP=":"
8332: else
8333: case $cross_compiling:$ac_tool_warned in
8334: yes:)
8335: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337: ac_tool_warned=yes ;;
8338: esac
8339: STRIP=$ac_ct_STRIP
8340: fi
8341: else
8342: STRIP="$ac_cv_prog_STRIP"
8343: fi
8344:
8345: test -z "$STRIP" && STRIP=:
8346:
8347:
8348:
8349:
8350:
8351:
8352: if test -n "$ac_tool_prefix"; then
8353: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8354: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356: $as_echo_n "checking for $ac_word... " >&6; }
8357: if ${ac_cv_prog_RANLIB+:} false; then :
8358: $as_echo_n "(cached) " >&6
8359: else
8360: if test -n "$RANLIB"; then
8361: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8362: else
8363: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364: for as_dir in $PATH
8365: do
8366: IFS=$as_save_IFS
8367: test -z "$as_dir" && as_dir=.
8368: for ac_exec_ext in '' $ac_executable_extensions; do
8369: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8371: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372: break 2
8373: fi
8374: done
8375: done
8376: IFS=$as_save_IFS
8377:
8378: fi
8379: fi
8380: RANLIB=$ac_cv_prog_RANLIB
8381: if test -n "$RANLIB"; then
8382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8383: $as_echo "$RANLIB" >&6; }
8384: else
8385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386: $as_echo "no" >&6; }
8387: fi
8388:
8389:
8390: fi
8391: if test -z "$ac_cv_prog_RANLIB"; then
8392: ac_ct_RANLIB=$RANLIB
8393: # Extract the first word of "ranlib", so it can be a program name with args.
8394: set dummy ranlib; ac_word=$2
8395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396: $as_echo_n "checking for $ac_word... " >&6; }
8397: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8398: $as_echo_n "(cached) " >&6
8399: else
8400: if test -n "$ac_ct_RANLIB"; then
8401: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8402: else
8403: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404: for as_dir in $PATH
8405: do
8406: IFS=$as_save_IFS
8407: test -z "$as_dir" && as_dir=.
8408: for ac_exec_ext in '' $ac_executable_extensions; do
8409: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8410: ac_cv_prog_ac_ct_RANLIB="ranlib"
8411: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412: break 2
8413: fi
8414: done
8415: done
8416: IFS=$as_save_IFS
8417:
8418: fi
8419: fi
8420: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8421: if test -n "$ac_ct_RANLIB"; then
8422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8423: $as_echo "$ac_ct_RANLIB" >&6; }
8424: else
8425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426: $as_echo "no" >&6; }
8427: fi
8428:
8429: if test "x$ac_ct_RANLIB" = x; then
8430: RANLIB=":"
8431: else
8432: case $cross_compiling:$ac_tool_warned in
8433: yes:)
8434: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8436: ac_tool_warned=yes ;;
8437: esac
8438: RANLIB=$ac_ct_RANLIB
8439: fi
8440: else
8441: RANLIB="$ac_cv_prog_RANLIB"
8442: fi
8443:
8444: test -z "$RANLIB" && RANLIB=:
8445:
8446:
8447:
8448:
8449:
8450:
8451: # Determine commands to create old-style static archives.
8452: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8453: old_postinstall_cmds='chmod 644 $oldlib'
8454: old_postuninstall_cmds=
8455:
8456: if test -n "$RANLIB"; then
8457: case $host_os in
8458: openbsd*)
8459: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8460: ;;
8461: *)
8462: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8463: ;;
8464: esac
8465: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8466: fi
8467:
8468: case $host_os in
8469: darwin*)
8470: lock_old_archive_extraction=yes ;;
8471: *)
8472: lock_old_archive_extraction=no ;;
8473: esac
8474:
8475:
8476:
8477:
8478:
8479:
8480:
8481:
8482:
8483:
8484:
8485:
8486:
8487:
8488:
8489:
8490:
8491:
8492:
8493:
8494:
8495:
8496:
8497:
8498:
8499:
8500:
8501:
8502:
8503:
8504:
8505:
8506:
8507:
8508:
8509:
8510:
8511:
8512:
8513: # If no C compiler was specified, use CC.
8514: LTCC=${LTCC-"$CC"}
8515:
8516: # If no C compiler flags were specified, use CFLAGS.
8517: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8518:
8519: # Allow CC to be a program name with arguments.
8520: compiler=$CC
8521:
8522:
8523: # Check for command to grab the raw symbol name followed by C symbol from nm.
8524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8525: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8526: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8527: $as_echo_n "(cached) " >&6
8528: else
8529:
8530: # These are sane defaults that work on at least a few old systems.
8531: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8532:
8533: # Character class describing NM global symbol codes.
8534: symcode='[BCDEGRST]'
8535:
8536: # Regexp to match symbols that can be accessed directly from C.
8537: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8538:
8539: # Define system-specific variables.
8540: case $host_os in
8541: aix*)
8542: symcode='[BCDT]'
8543: ;;
8544: cygwin* | mingw* | pw32* | cegcc*)
8545: symcode='[ABCDGISTW]'
8546: ;;
8547: hpux*)
8548: if test "$host_cpu" = ia64; then
8549: symcode='[ABCDEGRST]'
8550: fi
8551: ;;
8552: irix* | nonstopux*)
8553: symcode='[BCDEGRST]'
8554: ;;
8555: osf*)
8556: symcode='[BCDEGQRST]'
8557: ;;
8558: solaris*)
8559: symcode='[BDRT]'
8560: ;;
8561: sco3.2v5*)
8562: symcode='[DT]'
8563: ;;
8564: sysv4.2uw2*)
8565: symcode='[DT]'
8566: ;;
8567: sysv5* | sco5v6* | unixware* | OpenUNIX*)
8568: symcode='[ABDT]'
8569: ;;
8570: sysv4)
8571: symcode='[DFNSTU]'
8572: ;;
8573: esac
8574:
8575: # If we're using GNU nm, then use its standard symbol codes.
8576: case `$NM -V 2>&1` in
8577: *GNU* | *'with BFD'*)
8578: symcode='[ABCDGIRSTW]' ;;
8579: esac
8580:
8581: # Transform an extracted symbol line into a proper C declaration.
8582: # Some systems (esp. on ia64) link data and code symbols differently,
8583: # so use this general approach.
8584: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8585:
8586: # Transform an extracted symbol line into symbol name and symbol address
8587: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8588: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8589:
8590: # Handle CRLF in mingw tool chain
8591: opt_cr=
8592: case $build_os in
8593: mingw*)
8594: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8595: ;;
8596: esac
8597:
8598: # Try without a prefix underscore, then with it.
8599: for ac_symprfx in "" "_"; do
8600:
8601: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8602: symxfrm="\\1 $ac_symprfx\\2 \\2"
8603:
8604: # Write the raw and C identifiers.
8605: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8606: # Fake it for dumpbin and say T for any non-static function
8607: # and D for any global variable.
8608: # Also find C++ and __fastcall symbols from MSVC++,
8609: # which start with @ or ?.
8610: lt_cv_sys_global_symbol_pipe="$AWK '"\
8611: " {last_section=section; section=\$ 3};"\
8612: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8613: " \$ 0!~/External *\|/{next};"\
8614: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8615: " {if(hide[section]) next};"\
8616: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8617: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8618: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8619: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8620: " ' prfx=^$ac_symprfx"
8621: else
8622: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8623: fi
8624: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8625:
8626: # Check to see that the pipe works correctly.
8627: pipe_works=no
8628:
8629: rm -f conftest*
8630: cat > conftest.$ac_ext <<_LT_EOF
8631: #ifdef __cplusplus
8632: extern "C" {
8633: #endif
8634: char nm_test_var;
8635: void nm_test_func(void);
8636: void nm_test_func(void){}
8637: #ifdef __cplusplus
8638: }
8639: #endif
8640: int main(){nm_test_var='a';nm_test_func();return(0);}
8641: _LT_EOF
8642:
8643: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8644: (eval $ac_compile) 2>&5
8645: ac_status=$?
8646: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8647: test $ac_status = 0; }; then
8648: # Now try to grab the symbols.
8649: nlist=conftest.nm
8650: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8651: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8652: ac_status=$?
8653: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654: test $ac_status = 0; } && test -s "$nlist"; then
8655: # Try sorting and uniquifying the output.
8656: if sort "$nlist" | uniq > "$nlist"T; then
8657: mv -f "$nlist"T "$nlist"
8658: else
8659: rm -f "$nlist"T
8660: fi
8661:
8662: # Make sure that we snagged all the symbols we need.
8663: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8664: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8665: cat <<_LT_EOF > conftest.$ac_ext
8666: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8667: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8668: /* DATA imports from DLLs on WIN32 con't be const, because runtime
8669: relocations are performed -- see ld's documentation on pseudo-relocs. */
8670: # define LT_DLSYM_CONST
8671: #elif defined(__osf__)
8672: /* This system does not cope well with relocations in const data. */
8673: # define LT_DLSYM_CONST
8674: #else
8675: # define LT_DLSYM_CONST const
8676: #endif
8677:
8678: #ifdef __cplusplus
8679: extern "C" {
8680: #endif
8681:
8682: _LT_EOF
8683: # Now generate the symbol file.
8684: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8685:
8686: cat <<_LT_EOF >> conftest.$ac_ext
8687:
8688: /* The mapping between symbol names and symbols. */
8689: LT_DLSYM_CONST struct {
8690: const char *name;
8691: void *address;
8692: }
8693: lt__PROGRAM__LTX_preloaded_symbols[] =
8694: {
8695: { "@PROGRAM@", (void *) 0 },
8696: _LT_EOF
8697: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8698: cat <<\_LT_EOF >> conftest.$ac_ext
8699: {0, (void *) 0}
8700: };
8701:
8702: /* This works around a problem in FreeBSD linker */
8703: #ifdef FREEBSD_WORKAROUND
8704: static const void *lt_preloaded_setup() {
8705: return lt__PROGRAM__LTX_preloaded_symbols;
8706: }
8707: #endif
8708:
8709: #ifdef __cplusplus
8710: }
8711: #endif
8712: _LT_EOF
8713: # Now try linking the two files.
8714: mv conftest.$ac_objext conftstm.$ac_objext
8715: lt_globsym_save_LIBS=$LIBS
8716: lt_globsym_save_CFLAGS=$CFLAGS
8717: LIBS="conftstm.$ac_objext"
8718: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8719: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8720: (eval $ac_link) 2>&5
8721: ac_status=$?
8722: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8723: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8724: pipe_works=yes
8725: fi
8726: LIBS=$lt_globsym_save_LIBS
8727: CFLAGS=$lt_globsym_save_CFLAGS
8728: else
8729: echo "cannot find nm_test_func in $nlist" >&5
8730: fi
8731: else
8732: echo "cannot find nm_test_var in $nlist" >&5
8733: fi
8734: else
8735: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8736: fi
8737: else
8738: echo "$progname: failed program was:" >&5
8739: cat conftest.$ac_ext >&5
8740: fi
8741: rm -rf conftest* conftst*
8742:
8743: # Do not use the global_symbol_pipe unless it works.
8744: if test "$pipe_works" = yes; then
8745: break
8746: else
8747: lt_cv_sys_global_symbol_pipe=
8748: fi
8749: done
8750:
8751: fi
8752:
8753: if test -z "$lt_cv_sys_global_symbol_pipe"; then
8754: lt_cv_sys_global_symbol_to_cdecl=
8755: fi
8756: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8758: $as_echo "failed" >&6; }
8759: else
8760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8761: $as_echo "ok" >&6; }
8762: fi
8763:
8764: # Response file support.
8765: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8766: nm_file_list_spec='@'
8767: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8768: nm_file_list_spec='@'
8769: fi
8770:
8771:
8772:
8773:
8774:
8775:
8776:
8777:
8778:
8779:
8780:
8781:
8782:
8783:
8784:
8785:
8786:
8787:
8788:
8789:
8790:
8791:
8792:
8793:
8794:
8795:
8796:
8797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8798: $as_echo_n "checking for sysroot... " >&6; }
8799:
8800: # Check whether --with-sysroot was given.
8801: if test "${with_sysroot+set}" = set; then :
8802: withval=$with_sysroot;
8803: else
8804: with_sysroot=no
8805: fi
8806:
8807:
8808: lt_sysroot=
8809: case ${with_sysroot} in #(
8810: yes)
8811: if test "$GCC" = yes; then
8812: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8813: fi
8814: ;; #(
8815: /*)
8816: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8817: ;; #(
8818: no|'')
8819: ;; #(
8820: *)
8821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8822: $as_echo "${with_sysroot}" >&6; }
8823: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8824: ;;
8825: esac
8826:
8827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8828: $as_echo "${lt_sysroot:-no}" >&6; }
8829:
8830:
8831:
8832:
8833:
8834: # Check whether --enable-libtool-lock was given.
8835: if test "${enable_libtool_lock+set}" = set; then :
8836: enableval=$enable_libtool_lock;
8837: fi
8838:
8839: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8840:
8841: # Some flags need to be propagated to the compiler or linker for good
8842: # libtool support.
8843: case $host in
8844: ia64-*-hpux*)
8845: # Find out which ABI we are using.
8846: echo 'int i;' > conftest.$ac_ext
8847: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8848: (eval $ac_compile) 2>&5
8849: ac_status=$?
8850: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8851: test $ac_status = 0; }; then
8852: case `/usr/bin/file conftest.$ac_objext` in
8853: *ELF-32*)
8854: HPUX_IA64_MODE="32"
8855: ;;
8856: *ELF-64*)
8857: HPUX_IA64_MODE="64"
8858: ;;
8859: esac
8860: fi
8861: rm -rf conftest*
8862: ;;
8863: *-*-irix6*)
8864: # Find out which ABI we are using.
8865: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8866: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8867: (eval $ac_compile) 2>&5
8868: ac_status=$?
8869: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8870: test $ac_status = 0; }; then
8871: if test "$lt_cv_prog_gnu_ld" = yes; then
8872: case `/usr/bin/file conftest.$ac_objext` in
8873: *32-bit*)
8874: LD="${LD-ld} -melf32bsmip"
8875: ;;
8876: *N32*)
8877: LD="${LD-ld} -melf32bmipn32"
8878: ;;
8879: *64-bit*)
8880: LD="${LD-ld} -melf64bmip"
8881: ;;
8882: esac
8883: else
8884: case `/usr/bin/file conftest.$ac_objext` in
8885: *32-bit*)
8886: LD="${LD-ld} -32"
8887: ;;
8888: *N32*)
8889: LD="${LD-ld} -n32"
8890: ;;
8891: *64-bit*)
8892: LD="${LD-ld} -64"
8893: ;;
8894: esac
8895: fi
8896: fi
8897: rm -rf conftest*
8898: ;;
8899:
8900: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8901: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8902: # Find out which ABI we are using.
8903: echo 'int i;' > conftest.$ac_ext
8904: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8905: (eval $ac_compile) 2>&5
8906: ac_status=$?
8907: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8908: test $ac_status = 0; }; then
8909: case `/usr/bin/file conftest.o` in
8910: *32-bit*)
8911: case $host in
8912: x86_64-*kfreebsd*-gnu)
8913: LD="${LD-ld} -m elf_i386_fbsd"
8914: ;;
8915: x86_64-*linux*)
8916: LD="${LD-ld} -m elf_i386"
8917: ;;
8918: ppc64-*linux*|powerpc64-*linux*)
8919: LD="${LD-ld} -m elf32ppclinux"
8920: ;;
8921: s390x-*linux*)
8922: LD="${LD-ld} -m elf_s390"
8923: ;;
8924: sparc64-*linux*)
8925: LD="${LD-ld} -m elf32_sparc"
8926: ;;
8927: esac
8928: ;;
8929: *64-bit*)
8930: case $host in
8931: x86_64-*kfreebsd*-gnu)
8932: LD="${LD-ld} -m elf_x86_64_fbsd"
8933: ;;
8934: x86_64-*linux*)
8935: LD="${LD-ld} -m elf_x86_64"
8936: ;;
8937: ppc*-*linux*|powerpc*-*linux*)
8938: LD="${LD-ld} -m elf64ppc"
8939: ;;
8940: s390*-*linux*|s390*-*tpf*)
8941: LD="${LD-ld} -m elf64_s390"
8942: ;;
8943: sparc*-*linux*)
8944: LD="${LD-ld} -m elf64_sparc"
8945: ;;
8946: esac
8947: ;;
8948: esac
8949: fi
8950: rm -rf conftest*
8951: ;;
8952:
8953: *-*-sco3.2v5*)
8954: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8955: SAVE_CFLAGS="$CFLAGS"
8956: CFLAGS="$CFLAGS -belf"
8957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8958: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8959: if ${lt_cv_cc_needs_belf+:} false; then :
8960: $as_echo_n "(cached) " >&6
8961: else
8962: ac_ext=c
8963: ac_cpp='$CPP $CPPFLAGS'
8964: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8965: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8966: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967:
8968: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969: /* end confdefs.h. */
8970:
8971: int
8972: main ()
8973: {
8974:
8975: ;
8976: return 0;
8977: }
8978: _ACEOF
8979: if ac_fn_c_try_link "$LINENO"; then :
8980: lt_cv_cc_needs_belf=yes
8981: else
8982: lt_cv_cc_needs_belf=no
8983: fi
8984: rm -f core conftest.err conftest.$ac_objext \
8985: conftest$ac_exeext conftest.$ac_ext
8986: ac_ext=c
8987: ac_cpp='$CPP $CPPFLAGS'
8988: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8989: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8990: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8991:
8992: fi
8993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8994: $as_echo "$lt_cv_cc_needs_belf" >&6; }
8995: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8996: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8997: CFLAGS="$SAVE_CFLAGS"
8998: fi
8999: ;;
9000: sparc*-*solaris*)
9001: # Find out which ABI we are using.
9002: echo 'int i;' > conftest.$ac_ext
9003: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9004: (eval $ac_compile) 2>&5
9005: ac_status=$?
9006: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9007: test $ac_status = 0; }; then
9008: case `/usr/bin/file conftest.o` in
9009: *64-bit*)
9010: case $lt_cv_prog_gnu_ld in
9011: yes*) LD="${LD-ld} -m elf64_sparc" ;;
9012: *)
9013: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9014: LD="${LD-ld} -64"
9015: fi
9016: ;;
9017: esac
9018: ;;
9019: esac
9020: fi
9021: rm -rf conftest*
9022: ;;
9023: esac
9024:
9025: need_locks="$enable_libtool_lock"
9026:
9027: if test -n "$ac_tool_prefix"; then
9028: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9029: set dummy ${ac_tool_prefix}mt; ac_word=$2
9030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031: $as_echo_n "checking for $ac_word... " >&6; }
9032: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9033: $as_echo_n "(cached) " >&6
9034: else
9035: if test -n "$MANIFEST_TOOL"; then
9036: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9037: else
9038: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039: for as_dir in $PATH
9040: do
9041: IFS=$as_save_IFS
9042: test -z "$as_dir" && as_dir=.
9043: for ac_exec_ext in '' $ac_executable_extensions; do
9044: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9046: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047: break 2
9048: fi
9049: done
9050: done
9051: IFS=$as_save_IFS
9052:
9053: fi
9054: fi
9055: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9056: if test -n "$MANIFEST_TOOL"; then
9057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9058: $as_echo "$MANIFEST_TOOL" >&6; }
9059: else
9060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061: $as_echo "no" >&6; }
9062: fi
9063:
9064:
9065: fi
9066: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9067: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9068: # Extract the first word of "mt", so it can be a program name with args.
9069: set dummy mt; ac_word=$2
9070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071: $as_echo_n "checking for $ac_word... " >&6; }
9072: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9073: $as_echo_n "(cached) " >&6
9074: else
9075: if test -n "$ac_ct_MANIFEST_TOOL"; then
9076: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9077: else
9078: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079: for as_dir in $PATH
9080: do
9081: IFS=$as_save_IFS
9082: test -z "$as_dir" && as_dir=.
9083: for ac_exec_ext in '' $ac_executable_extensions; do
9084: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9086: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087: break 2
9088: fi
9089: done
9090: done
9091: IFS=$as_save_IFS
9092:
9093: fi
9094: fi
9095: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9096: if test -n "$ac_ct_MANIFEST_TOOL"; then
9097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9098: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9099: else
9100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101: $as_echo "no" >&6; }
9102: fi
9103:
9104: if test "x$ac_ct_MANIFEST_TOOL" = x; then
9105: MANIFEST_TOOL=":"
9106: else
9107: case $cross_compiling:$ac_tool_warned in
9108: yes:)
9109: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9110: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9111: ac_tool_warned=yes ;;
9112: esac
9113: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9114: fi
9115: else
9116: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9117: fi
9118:
9119: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9121: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9122: if ${lt_cv_path_mainfest_tool+:} false; then :
9123: $as_echo_n "(cached) " >&6
9124: else
9125: lt_cv_path_mainfest_tool=no
9126: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9127: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9128: cat conftest.err >&5
9129: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9130: lt_cv_path_mainfest_tool=yes
9131: fi
9132: rm -f conftest*
9133: fi
9134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9135: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9136: if test "x$lt_cv_path_mainfest_tool" != xyes; then
9137: MANIFEST_TOOL=:
9138: fi
9139:
9140:
9141:
9142:
9143:
9144:
9145: case $host_os in
9146: rhapsody* | darwin*)
9147: if test -n "$ac_tool_prefix"; then
9148: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9149: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151: $as_echo_n "checking for $ac_word... " >&6; }
9152: if ${ac_cv_prog_DSYMUTIL+:} false; then :
9153: $as_echo_n "(cached) " >&6
9154: else
9155: if test -n "$DSYMUTIL"; then
9156: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9157: else
9158: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159: for as_dir in $PATH
9160: do
9161: IFS=$as_save_IFS
9162: test -z "$as_dir" && as_dir=.
9163: for ac_exec_ext in '' $ac_executable_extensions; do
9164: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9166: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167: break 2
9168: fi
9169: done
9170: done
9171: IFS=$as_save_IFS
9172:
9173: fi
9174: fi
9175: DSYMUTIL=$ac_cv_prog_DSYMUTIL
9176: if test -n "$DSYMUTIL"; then
9177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9178: $as_echo "$DSYMUTIL" >&6; }
9179: else
9180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181: $as_echo "no" >&6; }
9182: fi
9183:
9184:
9185: fi
9186: if test -z "$ac_cv_prog_DSYMUTIL"; then
9187: ac_ct_DSYMUTIL=$DSYMUTIL
9188: # Extract the first word of "dsymutil", so it can be a program name with args.
9189: set dummy dsymutil; ac_word=$2
9190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191: $as_echo_n "checking for $ac_word... " >&6; }
9192: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9193: $as_echo_n "(cached) " >&6
9194: else
9195: if test -n "$ac_ct_DSYMUTIL"; then
9196: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9197: else
9198: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199: for as_dir in $PATH
9200: do
9201: IFS=$as_save_IFS
9202: test -z "$as_dir" && as_dir=.
9203: for ac_exec_ext in '' $ac_executable_extensions; do
9204: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9205: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9206: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207: break 2
9208: fi
9209: done
9210: done
9211: IFS=$as_save_IFS
9212:
9213: fi
9214: fi
9215: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9216: if test -n "$ac_ct_DSYMUTIL"; then
9217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9218: $as_echo "$ac_ct_DSYMUTIL" >&6; }
9219: else
9220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221: $as_echo "no" >&6; }
9222: fi
9223:
9224: if test "x$ac_ct_DSYMUTIL" = x; then
9225: DSYMUTIL=":"
9226: else
9227: case $cross_compiling:$ac_tool_warned in
9228: yes:)
9229: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231: ac_tool_warned=yes ;;
9232: esac
9233: DSYMUTIL=$ac_ct_DSYMUTIL
9234: fi
9235: else
9236: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9237: fi
9238:
9239: if test -n "$ac_tool_prefix"; then
9240: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9241: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243: $as_echo_n "checking for $ac_word... " >&6; }
9244: if ${ac_cv_prog_NMEDIT+:} false; then :
9245: $as_echo_n "(cached) " >&6
9246: else
9247: if test -n "$NMEDIT"; then
9248: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9249: else
9250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251: for as_dir in $PATH
9252: do
9253: IFS=$as_save_IFS
9254: test -z "$as_dir" && as_dir=.
9255: for ac_exec_ext in '' $ac_executable_extensions; do
9256: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9258: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259: break 2
9260: fi
9261: done
9262: done
9263: IFS=$as_save_IFS
9264:
9265: fi
9266: fi
9267: NMEDIT=$ac_cv_prog_NMEDIT
9268: if test -n "$NMEDIT"; then
9269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9270: $as_echo "$NMEDIT" >&6; }
9271: else
9272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273: $as_echo "no" >&6; }
9274: fi
9275:
9276:
9277: fi
9278: if test -z "$ac_cv_prog_NMEDIT"; then
9279: ac_ct_NMEDIT=$NMEDIT
9280: # Extract the first word of "nmedit", so it can be a program name with args.
9281: set dummy nmedit; ac_word=$2
9282: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283: $as_echo_n "checking for $ac_word... " >&6; }
9284: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9285: $as_echo_n "(cached) " >&6
9286: else
9287: if test -n "$ac_ct_NMEDIT"; then
9288: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9289: else
9290: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291: for as_dir in $PATH
9292: do
9293: IFS=$as_save_IFS
9294: test -z "$as_dir" && as_dir=.
9295: for ac_exec_ext in '' $ac_executable_extensions; do
9296: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9297: ac_cv_prog_ac_ct_NMEDIT="nmedit"
9298: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299: break 2
9300: fi
9301: done
9302: done
9303: IFS=$as_save_IFS
9304:
9305: fi
9306: fi
9307: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9308: if test -n "$ac_ct_NMEDIT"; then
9309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9310: $as_echo "$ac_ct_NMEDIT" >&6; }
9311: else
9312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313: $as_echo "no" >&6; }
9314: fi
9315:
9316: if test "x$ac_ct_NMEDIT" = x; then
9317: NMEDIT=":"
9318: else
9319: case $cross_compiling:$ac_tool_warned in
9320: yes:)
9321: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9322: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9323: ac_tool_warned=yes ;;
9324: esac
9325: NMEDIT=$ac_ct_NMEDIT
9326: fi
9327: else
9328: NMEDIT="$ac_cv_prog_NMEDIT"
9329: fi
9330:
9331: if test -n "$ac_tool_prefix"; then
9332: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9333: set dummy ${ac_tool_prefix}lipo; ac_word=$2
9334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335: $as_echo_n "checking for $ac_word... " >&6; }
9336: if ${ac_cv_prog_LIPO+:} false; then :
9337: $as_echo_n "(cached) " >&6
9338: else
9339: if test -n "$LIPO"; then
9340: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9341: else
9342: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343: for as_dir in $PATH
9344: do
9345: IFS=$as_save_IFS
9346: test -z "$as_dir" && as_dir=.
9347: for ac_exec_ext in '' $ac_executable_extensions; do
9348: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9350: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351: break 2
9352: fi
9353: done
9354: done
9355: IFS=$as_save_IFS
9356:
9357: fi
9358: fi
9359: LIPO=$ac_cv_prog_LIPO
9360: if test -n "$LIPO"; then
9361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9362: $as_echo "$LIPO" >&6; }
9363: else
9364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365: $as_echo "no" >&6; }
9366: fi
9367:
9368:
9369: fi
9370: if test -z "$ac_cv_prog_LIPO"; then
9371: ac_ct_LIPO=$LIPO
9372: # Extract the first word of "lipo", so it can be a program name with args.
9373: set dummy lipo; ac_word=$2
9374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375: $as_echo_n "checking for $ac_word... " >&6; }
9376: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9377: $as_echo_n "(cached) " >&6
9378: else
9379: if test -n "$ac_ct_LIPO"; then
9380: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9381: else
9382: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383: for as_dir in $PATH
9384: do
9385: IFS=$as_save_IFS
9386: test -z "$as_dir" && as_dir=.
9387: for ac_exec_ext in '' $ac_executable_extensions; do
9388: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389: ac_cv_prog_ac_ct_LIPO="lipo"
9390: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391: break 2
9392: fi
9393: done
9394: done
9395: IFS=$as_save_IFS
9396:
9397: fi
9398: fi
9399: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9400: if test -n "$ac_ct_LIPO"; then
9401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9402: $as_echo "$ac_ct_LIPO" >&6; }
9403: else
9404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405: $as_echo "no" >&6; }
9406: fi
9407:
9408: if test "x$ac_ct_LIPO" = x; then
9409: LIPO=":"
9410: else
9411: case $cross_compiling:$ac_tool_warned in
9412: yes:)
9413: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9414: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9415: ac_tool_warned=yes ;;
9416: esac
9417: LIPO=$ac_ct_LIPO
9418: fi
9419: else
9420: LIPO="$ac_cv_prog_LIPO"
9421: fi
9422:
9423: if test -n "$ac_tool_prefix"; then
9424: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9425: set dummy ${ac_tool_prefix}otool; ac_word=$2
9426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427: $as_echo_n "checking for $ac_word... " >&6; }
9428: if ${ac_cv_prog_OTOOL+:} false; then :
9429: $as_echo_n "(cached) " >&6
9430: else
9431: if test -n "$OTOOL"; then
9432: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9433: else
9434: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435: for as_dir in $PATH
9436: do
9437: IFS=$as_save_IFS
9438: test -z "$as_dir" && as_dir=.
9439: for ac_exec_ext in '' $ac_executable_extensions; do
9440: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9442: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443: break 2
9444: fi
9445: done
9446: done
9447: IFS=$as_save_IFS
9448:
9449: fi
9450: fi
9451: OTOOL=$ac_cv_prog_OTOOL
9452: if test -n "$OTOOL"; then
9453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9454: $as_echo "$OTOOL" >&6; }
9455: else
9456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457: $as_echo "no" >&6; }
9458: fi
9459:
9460:
9461: fi
9462: if test -z "$ac_cv_prog_OTOOL"; then
9463: ac_ct_OTOOL=$OTOOL
9464: # Extract the first word of "otool", so it can be a program name with args.
9465: set dummy otool; ac_word=$2
9466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467: $as_echo_n "checking for $ac_word... " >&6; }
9468: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9469: $as_echo_n "(cached) " >&6
9470: else
9471: if test -n "$ac_ct_OTOOL"; then
9472: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9473: else
9474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475: for as_dir in $PATH
9476: do
9477: IFS=$as_save_IFS
9478: test -z "$as_dir" && as_dir=.
9479: for ac_exec_ext in '' $ac_executable_extensions; do
9480: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481: ac_cv_prog_ac_ct_OTOOL="otool"
9482: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483: break 2
9484: fi
9485: done
9486: done
9487: IFS=$as_save_IFS
9488:
9489: fi
9490: fi
9491: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9492: if test -n "$ac_ct_OTOOL"; then
9493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9494: $as_echo "$ac_ct_OTOOL" >&6; }
9495: else
9496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497: $as_echo "no" >&6; }
9498: fi
9499:
9500: if test "x$ac_ct_OTOOL" = x; then
9501: OTOOL=":"
9502: else
9503: case $cross_compiling:$ac_tool_warned in
9504: yes:)
9505: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9506: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9507: ac_tool_warned=yes ;;
9508: esac
9509: OTOOL=$ac_ct_OTOOL
9510: fi
9511: else
9512: OTOOL="$ac_cv_prog_OTOOL"
9513: fi
9514:
9515: if test -n "$ac_tool_prefix"; then
9516: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9517: set dummy ${ac_tool_prefix}otool64; ac_word=$2
9518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519: $as_echo_n "checking for $ac_word... " >&6; }
9520: if ${ac_cv_prog_OTOOL64+:} false; then :
9521: $as_echo_n "(cached) " >&6
9522: else
9523: if test -n "$OTOOL64"; then
9524: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9525: else
9526: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527: for as_dir in $PATH
9528: do
9529: IFS=$as_save_IFS
9530: test -z "$as_dir" && as_dir=.
9531: for ac_exec_ext in '' $ac_executable_extensions; do
9532: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9533: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9534: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9535: break 2
9536: fi
9537: done
9538: done
9539: IFS=$as_save_IFS
9540:
9541: fi
9542: fi
9543: OTOOL64=$ac_cv_prog_OTOOL64
9544: if test -n "$OTOOL64"; then
9545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9546: $as_echo "$OTOOL64" >&6; }
9547: else
9548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549: $as_echo "no" >&6; }
9550: fi
9551:
9552:
9553: fi
9554: if test -z "$ac_cv_prog_OTOOL64"; then
9555: ac_ct_OTOOL64=$OTOOL64
9556: # Extract the first word of "otool64", so it can be a program name with args.
9557: set dummy otool64; ac_word=$2
9558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559: $as_echo_n "checking for $ac_word... " >&6; }
9560: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9561: $as_echo_n "(cached) " >&6
9562: else
9563: if test -n "$ac_ct_OTOOL64"; then
9564: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9565: else
9566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567: for as_dir in $PATH
9568: do
9569: IFS=$as_save_IFS
9570: test -z "$as_dir" && as_dir=.
9571: for ac_exec_ext in '' $ac_executable_extensions; do
9572: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573: ac_cv_prog_ac_ct_OTOOL64="otool64"
9574: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9575: break 2
9576: fi
9577: done
9578: done
9579: IFS=$as_save_IFS
9580:
9581: fi
9582: fi
9583: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9584: if test -n "$ac_ct_OTOOL64"; then
9585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9586: $as_echo "$ac_ct_OTOOL64" >&6; }
9587: else
9588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589: $as_echo "no" >&6; }
9590: fi
9591:
9592: if test "x$ac_ct_OTOOL64" = x; then
9593: OTOOL64=":"
9594: else
9595: case $cross_compiling:$ac_tool_warned in
9596: yes:)
9597: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9598: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9599: ac_tool_warned=yes ;;
9600: esac
9601: OTOOL64=$ac_ct_OTOOL64
9602: fi
9603: else
9604: OTOOL64="$ac_cv_prog_OTOOL64"
9605: fi
9606:
9607:
9608:
9609:
9610:
9611:
9612:
9613:
9614:
9615:
9616:
9617:
9618:
9619:
9620:
9621:
9622:
9623:
9624:
9625:
9626:
9627:
9628:
9629:
9630:
9631:
9632:
9633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9634: $as_echo_n "checking for -single_module linker flag... " >&6; }
9635: if ${lt_cv_apple_cc_single_mod+:} false; then :
9636: $as_echo_n "(cached) " >&6
9637: else
9638: lt_cv_apple_cc_single_mod=no
9639: if test -z "${LT_MULTI_MODULE}"; then
9640: # By default we will add the -single_module flag. You can override
9641: # by either setting the environment variable LT_MULTI_MODULE
9642: # non-empty at configure time, or by adding -multi_module to the
9643: # link flags.
9644: rm -rf libconftest.dylib*
9645: echo "int foo(void){return 1;}" > conftest.c
9646: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9647: -dynamiclib -Wl,-single_module conftest.c" >&5
9648: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9649: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9650: _lt_result=$?
9651: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9652: lt_cv_apple_cc_single_mod=yes
9653: else
9654: cat conftest.err >&5
9655: fi
9656: rm -rf libconftest.dylib*
9657: rm -f conftest.*
9658: fi
9659: fi
9660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9661: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9663: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9664: if ${lt_cv_ld_exported_symbols_list+:} false; then :
9665: $as_echo_n "(cached) " >&6
9666: else
9667: lt_cv_ld_exported_symbols_list=no
9668: save_LDFLAGS=$LDFLAGS
9669: echo "_main" > conftest.sym
9670: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672: /* end confdefs.h. */
9673:
9674: int
9675: main ()
9676: {
9677:
9678: ;
9679: return 0;
9680: }
9681: _ACEOF
9682: if ac_fn_c_try_link "$LINENO"; then :
9683: lt_cv_ld_exported_symbols_list=yes
9684: else
9685: lt_cv_ld_exported_symbols_list=no
9686: fi
9687: rm -f core conftest.err conftest.$ac_objext \
9688: conftest$ac_exeext conftest.$ac_ext
9689: LDFLAGS="$save_LDFLAGS"
9690:
9691: fi
9692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9693: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9695: $as_echo_n "checking for -force_load linker flag... " >&6; }
9696: if ${lt_cv_ld_force_load+:} false; then :
9697: $as_echo_n "(cached) " >&6
9698: else
9699: lt_cv_ld_force_load=no
9700: cat > conftest.c << _LT_EOF
9701: int forced_loaded() { return 2;}
9702: _LT_EOF
9703: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9704: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9705: echo "$AR cru libconftest.a conftest.o" >&5
9706: $AR cru libconftest.a conftest.o 2>&5
9707: echo "$RANLIB libconftest.a" >&5
9708: $RANLIB libconftest.a 2>&5
9709: cat > conftest.c << _LT_EOF
9710: int main() { return 0;}
9711: _LT_EOF
9712: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9713: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9714: _lt_result=$?
9715: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9716: lt_cv_ld_force_load=yes
9717: else
9718: cat conftest.err >&5
9719: fi
9720: rm -f conftest.err libconftest.a conftest conftest.c
9721: rm -rf conftest.dSYM
9722:
9723: fi
9724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9725: $as_echo "$lt_cv_ld_force_load" >&6; }
9726: case $host_os in
9727: rhapsody* | darwin1.[012])
9728: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9729: darwin1.*)
9730: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9731: darwin*) # darwin 5.x on
9732: # if running on 10.5 or later, the deployment target defaults
9733: # to the OS version, if on x86, and 10.4, the deployment
9734: # target defaults to 10.4. Don't you love it?
9735: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9736: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9737: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9738: 10.[012]*)
9739: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9740: 10.*)
9741: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9742: esac
9743: ;;
9744: esac
9745: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9746: _lt_dar_single_mod='$single_module'
9747: fi
9748: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9749: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9750: else
9751: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9752: fi
9753: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9754: _lt_dsymutil='~$DSYMUTIL $lib || :'
9755: else
9756: _lt_dsymutil=
9757: fi
9758: ;;
9759: esac
9760:
9761: for ac_header in dlfcn.h
9762: do :
9763: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9764: "
9765: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9766: cat >>confdefs.h <<_ACEOF
9767: #define HAVE_DLFCN_H 1
9768: _ACEOF
9769:
9770: fi
9771:
9772: done
9773:
9774:
9775:
9776:
9777:
9778: # Set options
9779:
9780:
9781:
9782: enable_dlopen=no
9783:
9784:
9785: enable_win32_dll=no
9786:
9787:
9788:
9789: # Check whether --enable-static was given.
9790: if test "${enable_static+set}" = set; then :
9791: enableval=$enable_static; p=${PACKAGE-default}
9792: case $enableval in
9793: yes) enable_static=yes ;;
9794: no) enable_static=no ;;
9795: *)
9796: enable_static=no
9797: # Look at the argument we got. We use all the common list separators.
9798: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9799: for pkg in $enableval; do
9800: IFS="$lt_save_ifs"
9801: if test "X$pkg" = "X$p"; then
9802: enable_static=yes
9803: fi
9804: done
9805: IFS="$lt_save_ifs"
9806: ;;
9807: esac
9808: else
9809: enable_static=yes
9810: fi
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821: # Check whether --with-pic was given.
9822: if test "${with_pic+set}" = set; then :
9823: withval=$with_pic; pic_mode="$withval"
9824: else
9825: pic_mode=default
9826: fi
9827:
9828:
9829: test -z "$pic_mode" && pic_mode=default
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837: # Check whether --enable-fast-install was given.
9838: if test "${enable_fast_install+set}" = set; then :
9839: enableval=$enable_fast_install; p=${PACKAGE-default}
9840: case $enableval in
9841: yes) enable_fast_install=yes ;;
9842: no) enable_fast_install=no ;;
9843: *)
9844: enable_fast_install=no
9845: # Look at the argument we got. We use all the common list separators.
9846: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9847: for pkg in $enableval; do
9848: IFS="$lt_save_ifs"
9849: if test "X$pkg" = "X$p"; then
9850: enable_fast_install=yes
9851: fi
9852: done
9853: IFS="$lt_save_ifs"
9854: ;;
9855: esac
9856: else
9857: enable_fast_install=yes
9858: fi
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870: # This can be used to rebuild libtool when needed
9871: LIBTOOL_DEPS="$ltmain"
9872:
9873: # Always use our own libtool.
9874: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901: test -z "$LN_S" && LN_S="ln -s"
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916: if test -n "${ZSH_VERSION+set}" ; then
9917: setopt NO_GLOB_SUBST
9918: fi
9919:
9920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9921: $as_echo_n "checking for objdir... " >&6; }
9922: if ${lt_cv_objdir+:} false; then :
9923: $as_echo_n "(cached) " >&6
9924: else
9925: rm -f .libs 2>/dev/null
9926: mkdir .libs 2>/dev/null
9927: if test -d .libs; then
9928: lt_cv_objdir=.libs
9929: else
9930: # MS-DOS does not allow filenames that begin with a dot.
9931: lt_cv_objdir=_libs
9932: fi
9933: rmdir .libs 2>/dev/null
9934: fi
9935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9936: $as_echo "$lt_cv_objdir" >&6; }
9937: objdir=$lt_cv_objdir
9938:
9939:
9940:
9941:
9942:
9943: cat >>confdefs.h <<_ACEOF
9944: #define LT_OBJDIR "$lt_cv_objdir/"
9945: _ACEOF
9946:
9947:
9948:
9949:
9950: case $host_os in
9951: aix3*)
9952: # AIX sometimes has problems with the GCC collect2 program. For some
9953: # reason, if we set the COLLECT_NAMES environment variable, the problems
9954: # vanish in a puff of smoke.
9955: if test "X${COLLECT_NAMES+set}" != Xset; then
9956: COLLECT_NAMES=
9957: export COLLECT_NAMES
9958: fi
9959: ;;
9960: esac
9961:
9962: # Global variables:
9963: ofile=libtool
9964: can_build_shared=yes
9965:
9966: # All known linkers require a `.a' archive for static linking (except MSVC,
9967: # which needs '.lib').
9968: libext=a
9969:
9970: with_gnu_ld="$lt_cv_prog_gnu_ld"
9971:
9972: old_CC="$CC"
9973: old_CFLAGS="$CFLAGS"
9974:
9975: # Set sane defaults for various variables
9976: test -z "$CC" && CC=cc
9977: test -z "$LTCC" && LTCC=$CC
9978: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9979: test -z "$LD" && LD=ld
9980: test -z "$ac_objext" && ac_objext=o
9981:
9982: for cc_temp in $compiler""; do
9983: case $cc_temp in
9984: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9985: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9986: \-*) ;;
9987: *) break;;
9988: esac
9989: done
9990: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9991:
9992:
9993: # Only perform the check for file, if the check method requires it
9994: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9995: case $deplibs_check_method in
9996: file_magic*)
9997: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9999: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10000: if ${lt_cv_path_MAGIC_CMD+:} false; then :
10001: $as_echo_n "(cached) " >&6
10002: else
10003: case $MAGIC_CMD in
10004: [\\/*] | ?:[\\/]*)
10005: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10006: ;;
10007: *)
10008: lt_save_MAGIC_CMD="$MAGIC_CMD"
10009: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10010: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10011: for ac_dir in $ac_dummy; do
10012: IFS="$lt_save_ifs"
10013: test -z "$ac_dir" && ac_dir=.
10014: if test -f $ac_dir/${ac_tool_prefix}file; then
10015: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10016: if test -n "$file_magic_test_file"; then
10017: case $deplibs_check_method in
10018: "file_magic "*)
10019: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10020: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10021: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10022: $EGREP "$file_magic_regex" > /dev/null; then
10023: :
10024: else
10025: cat <<_LT_EOF 1>&2
10026:
10027: *** Warning: the command libtool uses to detect shared libraries,
10028: *** $file_magic_cmd, produces output that libtool cannot recognize.
10029: *** The result is that libtool may fail to recognize shared libraries
10030: *** as such. This will affect the creation of libtool libraries that
10031: *** depend on shared libraries, but programs linked with such libtool
10032: *** libraries will work regardless of this problem. Nevertheless, you
10033: *** may want to report the problem to your system manager and/or to
10034: *** bug-libtool@gnu.org
10035:
10036: _LT_EOF
10037: fi ;;
10038: esac
10039: fi
10040: break
10041: fi
10042: done
10043: IFS="$lt_save_ifs"
10044: MAGIC_CMD="$lt_save_MAGIC_CMD"
10045: ;;
10046: esac
10047: fi
10048:
10049: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10050: if test -n "$MAGIC_CMD"; then
10051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10052: $as_echo "$MAGIC_CMD" >&6; }
10053: else
10054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055: $as_echo "no" >&6; }
10056: fi
10057:
10058:
10059:
10060:
10061:
10062: if test -z "$lt_cv_path_MAGIC_CMD"; then
10063: if test -n "$ac_tool_prefix"; then
10064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10065: $as_echo_n "checking for file... " >&6; }
10066: if ${lt_cv_path_MAGIC_CMD+:} false; then :
10067: $as_echo_n "(cached) " >&6
10068: else
10069: case $MAGIC_CMD in
10070: [\\/*] | ?:[\\/]*)
10071: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10072: ;;
10073: *)
10074: lt_save_MAGIC_CMD="$MAGIC_CMD"
10075: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10076: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10077: for ac_dir in $ac_dummy; do
10078: IFS="$lt_save_ifs"
10079: test -z "$ac_dir" && ac_dir=.
10080: if test -f $ac_dir/file; then
10081: lt_cv_path_MAGIC_CMD="$ac_dir/file"
10082: if test -n "$file_magic_test_file"; then
10083: case $deplibs_check_method in
10084: "file_magic "*)
10085: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10086: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10087: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10088: $EGREP "$file_magic_regex" > /dev/null; then
10089: :
10090: else
10091: cat <<_LT_EOF 1>&2
10092:
10093: *** Warning: the command libtool uses to detect shared libraries,
10094: *** $file_magic_cmd, produces output that libtool cannot recognize.
10095: *** The result is that libtool may fail to recognize shared libraries
10096: *** as such. This will affect the creation of libtool libraries that
10097: *** depend on shared libraries, but programs linked with such libtool
10098: *** libraries will work regardless of this problem. Nevertheless, you
10099: *** may want to report the problem to your system manager and/or to
10100: *** bug-libtool@gnu.org
10101:
10102: _LT_EOF
10103: fi ;;
10104: esac
10105: fi
10106: break
10107: fi
10108: done
10109: IFS="$lt_save_ifs"
10110: MAGIC_CMD="$lt_save_MAGIC_CMD"
10111: ;;
10112: esac
10113: fi
10114:
10115: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10116: if test -n "$MAGIC_CMD"; then
10117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10118: $as_echo "$MAGIC_CMD" >&6; }
10119: else
10120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121: $as_echo "no" >&6; }
10122: fi
10123:
10124:
10125: else
10126: MAGIC_CMD=:
10127: fi
10128: fi
10129:
10130: fi
10131: ;;
10132: esac
10133:
10134: # Use C for the default configuration in the libtool script
10135:
10136: lt_save_CC="$CC"
10137: ac_ext=c
10138: ac_cpp='$CPP $CPPFLAGS'
10139: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10140: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10141: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10142:
10143:
10144: # Source file extension for C test sources.
10145: ac_ext=c
10146:
10147: # Object file extension for compiled C test sources.
10148: objext=o
10149: objext=$objext
10150:
10151: # Code to be used in simple compile tests
10152: lt_simple_compile_test_code="int some_variable = 0;"
10153:
10154: # Code to be used in simple link tests
10155: lt_simple_link_test_code='int main(){return(0);}'
10156:
10157:
10158:
10159:
10160:
10161:
10162:
10163: # If no C compiler was specified, use CC.
10164: LTCC=${LTCC-"$CC"}
10165:
10166: # If no C compiler flags were specified, use CFLAGS.
10167: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10168:
10169: # Allow CC to be a program name with arguments.
10170: compiler=$CC
10171:
10172: # Save the default compiler, since it gets overwritten when the other
10173: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10174: compiler_DEFAULT=$CC
10175:
10176: # save warnings/boilerplate of simple test code
10177: ac_outfile=conftest.$ac_objext
10178: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10179: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10180: _lt_compiler_boilerplate=`cat conftest.err`
10181: $RM conftest*
10182:
10183: ac_outfile=conftest.$ac_objext
10184: echo "$lt_simple_link_test_code" >conftest.$ac_ext
10185: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10186: _lt_linker_boilerplate=`cat conftest.err`
10187: $RM -r conftest*
10188:
10189:
10190: ## CAVEAT EMPTOR:
10191: ## There is no encapsulation within the following macros, do not change
10192: ## the running order or otherwise move them around unless you know exactly
10193: ## what you are doing...
10194: if test -n "$compiler"; then
10195:
10196: lt_prog_compiler_no_builtin_flag=
10197:
10198: if test "$GCC" = yes; then
10199: case $cc_basename in
10200: nvcc*)
10201: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10202: *)
10203: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10204: esac
10205:
10206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10207: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10208: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10209: $as_echo_n "(cached) " >&6
10210: else
10211: lt_cv_prog_compiler_rtti_exceptions=no
10212: ac_outfile=conftest.$ac_objext
10213: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10214: lt_compiler_flag="-fno-rtti -fno-exceptions"
10215: # Insert the option either (1) after the last *FLAGS variable, or
10216: # (2) before a word containing "conftest.", or (3) at the end.
10217: # Note that $ac_compile itself does not contain backslashes and begins
10218: # with a dollar sign (not a hyphen), so the echo should work correctly.
10219: # The option is referenced via a variable to avoid confusing sed.
10220: lt_compile=`echo "$ac_compile" | $SED \
10221: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10222: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10223: -e 's:$: $lt_compiler_flag:'`
10224: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10225: (eval "$lt_compile" 2>conftest.err)
10226: ac_status=$?
10227: cat conftest.err >&5
10228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229: if (exit $ac_status) && test -s "$ac_outfile"; then
10230: # The compiler can only warn and ignore the option if not recognized
10231: # So say no if there are warnings other than the usual output.
10232: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10233: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10234: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10235: lt_cv_prog_compiler_rtti_exceptions=yes
10236: fi
10237: fi
10238: $RM conftest*
10239:
10240: fi
10241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10242: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10243:
10244: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10245: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10246: else
10247: :
10248: fi
10249:
10250: fi
10251:
10252:
10253:
10254:
10255:
10256:
10257: lt_prog_compiler_wl=
10258: lt_prog_compiler_pic=
10259: lt_prog_compiler_static=
10260:
10261:
10262: if test "$GCC" = yes; then
10263: lt_prog_compiler_wl='-Wl,'
10264: lt_prog_compiler_static='-static'
10265:
10266: case $host_os in
10267: aix*)
10268: # All AIX code is PIC.
10269: if test "$host_cpu" = ia64; then
10270: # AIX 5 now supports IA64 processor
10271: lt_prog_compiler_static='-Bstatic'
10272: fi
10273: ;;
10274:
10275: amigaos*)
10276: case $host_cpu in
10277: powerpc)
10278: # see comment about AmigaOS4 .so support
10279: lt_prog_compiler_pic='-fPIC'
10280: ;;
10281: m68k)
10282: # FIXME: we need at least 68020 code to build shared libraries, but
10283: # adding the `-m68020' flag to GCC prevents building anything better,
10284: # like `-m68040'.
10285: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10286: ;;
10287: esac
10288: ;;
10289:
10290: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10291: # PIC is the default for these OSes.
10292: ;;
10293:
10294: mingw* | cygwin* | pw32* | os2* | cegcc*)
10295: # This hack is so that the source file can tell whether it is being
10296: # built for inclusion in a dll (and should export symbols for example).
10297: # Although the cygwin gcc ignores -fPIC, still need this for old-style
10298: # (--disable-auto-import) libraries
10299: lt_prog_compiler_pic='-DDLL_EXPORT'
10300: ;;
10301:
10302: darwin* | rhapsody*)
10303: # PIC is the default on this platform
10304: # Common symbols not allowed in MH_DYLIB files
10305: lt_prog_compiler_pic='-fno-common'
10306: ;;
10307:
10308: haiku*)
10309: # PIC is the default for Haiku.
10310: # The "-static" flag exists, but is broken.
10311: lt_prog_compiler_static=
10312: ;;
10313:
10314: hpux*)
10315: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10316: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10317: # sets the default TLS model and affects inlining.
10318: case $host_cpu in
10319: hppa*64*)
10320: # +Z the default
10321: ;;
10322: *)
10323: lt_prog_compiler_pic='-fPIC'
10324: ;;
10325: esac
10326: ;;
10327:
10328: interix[3-9]*)
10329: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10330: # Instead, we relocate shared libraries at runtime.
10331: ;;
10332:
10333: msdosdjgpp*)
10334: # Just because we use GCC doesn't mean we suddenly get shared libraries
10335: # on systems that don't support them.
10336: lt_prog_compiler_can_build_shared=no
10337: enable_shared=no
10338: ;;
10339:
10340: *nto* | *qnx*)
10341: # QNX uses GNU C++, but need to define -shared option too, otherwise
10342: # it will coredump.
10343: lt_prog_compiler_pic='-fPIC -shared'
10344: ;;
10345:
10346: sysv4*MP*)
10347: if test -d /usr/nec; then
10348: lt_prog_compiler_pic=-Kconform_pic
10349: fi
10350: ;;
10351:
10352: *)
10353: lt_prog_compiler_pic='-fPIC'
10354: ;;
10355: esac
10356:
10357: case $cc_basename in
10358: nvcc*) # Cuda Compiler Driver 2.2
10359: lt_prog_compiler_wl='-Xlinker '
10360: lt_prog_compiler_pic='-Xcompiler -fPIC'
10361: ;;
10362: esac
10363: else
10364: # PORTME Check for flag to pass linker flags through the system compiler.
10365: case $host_os in
10366: aix*)
10367: lt_prog_compiler_wl='-Wl,'
10368: if test "$host_cpu" = ia64; then
10369: # AIX 5 now supports IA64 processor
10370: lt_prog_compiler_static='-Bstatic'
10371: else
10372: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10373: fi
10374: ;;
10375:
10376: mingw* | cygwin* | pw32* | os2* | cegcc*)
10377: # This hack is so that the source file can tell whether it is being
10378: # built for inclusion in a dll (and should export symbols for example).
10379: lt_prog_compiler_pic='-DDLL_EXPORT'
10380: ;;
10381:
10382: hpux9* | hpux10* | hpux11*)
10383: lt_prog_compiler_wl='-Wl,'
10384: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10385: # not for PA HP-UX.
10386: case $host_cpu in
10387: hppa*64*|ia64*)
10388: # +Z the default
10389: ;;
10390: *)
10391: lt_prog_compiler_pic='+Z'
10392: ;;
10393: esac
10394: # Is there a better lt_prog_compiler_static that works with the bundled CC?
10395: lt_prog_compiler_static='${wl}-a ${wl}archive'
10396: ;;
10397:
10398: irix5* | irix6* | nonstopux*)
10399: lt_prog_compiler_wl='-Wl,'
10400: # PIC (with -KPIC) is the default.
10401: lt_prog_compiler_static='-non_shared'
10402: ;;
10403:
10404: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10405: case $cc_basename in
10406: # old Intel for x86_64 which still supported -KPIC.
10407: ecc*)
10408: lt_prog_compiler_wl='-Wl,'
10409: lt_prog_compiler_pic='-KPIC'
10410: lt_prog_compiler_static='-static'
10411: ;;
10412: # icc used to be incompatible with GCC.
10413: # ICC 10 doesn't accept -KPIC any more.
10414: icc* | ifort*)
10415: lt_prog_compiler_wl='-Wl,'
10416: lt_prog_compiler_pic='-fPIC'
10417: lt_prog_compiler_static='-static'
10418: ;;
10419: # Lahey Fortran 8.1.
10420: lf95*)
10421: lt_prog_compiler_wl='-Wl,'
10422: lt_prog_compiler_pic='--shared'
10423: lt_prog_compiler_static='--static'
10424: ;;
10425: nagfor*)
10426: # NAG Fortran compiler
10427: lt_prog_compiler_wl='-Wl,-Wl,,'
10428: lt_prog_compiler_pic='-PIC'
10429: lt_prog_compiler_static='-Bstatic'
10430: ;;
10431: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10432: # Portland Group compilers (*not* the Pentium gcc compiler,
10433: # which looks to be a dead project)
10434: lt_prog_compiler_wl='-Wl,'
10435: lt_prog_compiler_pic='-fpic'
10436: lt_prog_compiler_static='-Bstatic'
10437: ;;
10438: ccc*)
10439: lt_prog_compiler_wl='-Wl,'
10440: # All Alpha code is PIC.
10441: lt_prog_compiler_static='-non_shared'
10442: ;;
10443: xl* | bgxl* | bgf* | mpixl*)
10444: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10445: lt_prog_compiler_wl='-Wl,'
10446: lt_prog_compiler_pic='-qpic'
10447: lt_prog_compiler_static='-qstaticlink'
10448: ;;
10449: *)
10450: case `$CC -V 2>&1 | sed 5q` in
10451: *Sun\ F* | *Sun*Fortran*)
10452: # Sun Fortran 8.3 passes all unrecognized flags to the linker
10453: lt_prog_compiler_pic='-KPIC'
10454: lt_prog_compiler_static='-Bstatic'
10455: lt_prog_compiler_wl=''
10456: ;;
10457: *Sun\ C*)
10458: # Sun C 5.9
10459: lt_prog_compiler_pic='-KPIC'
10460: lt_prog_compiler_static='-Bstatic'
10461: lt_prog_compiler_wl='-Wl,'
10462: ;;
10463: esac
10464: ;;
10465: esac
10466: ;;
10467:
10468: newsos6)
10469: lt_prog_compiler_pic='-KPIC'
10470: lt_prog_compiler_static='-Bstatic'
10471: ;;
10472:
10473: *nto* | *qnx*)
10474: # QNX uses GNU C++, but need to define -shared option too, otherwise
10475: # it will coredump.
10476: lt_prog_compiler_pic='-fPIC -shared'
10477: ;;
10478:
10479: osf3* | osf4* | osf5*)
10480: lt_prog_compiler_wl='-Wl,'
10481: # All OSF/1 code is PIC.
10482: lt_prog_compiler_static='-non_shared'
10483: ;;
10484:
10485: rdos*)
10486: lt_prog_compiler_static='-non_shared'
10487: ;;
10488:
10489: solaris*)
10490: lt_prog_compiler_pic='-KPIC'
10491: lt_prog_compiler_static='-Bstatic'
10492: case $cc_basename in
10493: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10494: lt_prog_compiler_wl='-Qoption ld ';;
10495: *)
10496: lt_prog_compiler_wl='-Wl,';;
10497: esac
10498: ;;
10499:
10500: sunos4*)
10501: lt_prog_compiler_wl='-Qoption ld '
10502: lt_prog_compiler_pic='-PIC'
10503: lt_prog_compiler_static='-Bstatic'
10504: ;;
10505:
10506: sysv4 | sysv4.2uw2* | sysv4.3*)
10507: lt_prog_compiler_wl='-Wl,'
10508: lt_prog_compiler_pic='-KPIC'
10509: lt_prog_compiler_static='-Bstatic'
10510: ;;
10511:
10512: sysv4*MP*)
10513: if test -d /usr/nec ;then
10514: lt_prog_compiler_pic='-Kconform_pic'
10515: lt_prog_compiler_static='-Bstatic'
10516: fi
10517: ;;
10518:
10519: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10520: lt_prog_compiler_wl='-Wl,'
10521: lt_prog_compiler_pic='-KPIC'
10522: lt_prog_compiler_static='-Bstatic'
10523: ;;
10524:
10525: unicos*)
10526: lt_prog_compiler_wl='-Wl,'
10527: lt_prog_compiler_can_build_shared=no
10528: ;;
10529:
10530: uts4*)
10531: lt_prog_compiler_pic='-pic'
10532: lt_prog_compiler_static='-Bstatic'
10533: ;;
10534:
10535: *)
10536: lt_prog_compiler_can_build_shared=no
10537: ;;
10538: esac
10539: fi
10540:
10541: case $host_os in
10542: # For platforms which do not support PIC, -DPIC is meaningless:
10543: *djgpp*)
10544: lt_prog_compiler_pic=
10545: ;;
10546: *)
10547: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10548: ;;
10549: esac
10550:
10551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10552: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10553: if ${lt_cv_prog_compiler_pic+:} false; then :
10554: $as_echo_n "(cached) " >&6
10555: else
10556: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10557: fi
10558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10559: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10560: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10561:
10562: #
10563: # Check to make sure the PIC flag actually works.
10564: #
10565: if test -n "$lt_prog_compiler_pic"; then
10566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10567: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10568: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10569: $as_echo_n "(cached) " >&6
10570: else
10571: lt_cv_prog_compiler_pic_works=no
10572: ac_outfile=conftest.$ac_objext
10573: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10574: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10575: # Insert the option either (1) after the last *FLAGS variable, or
10576: # (2) before a word containing "conftest.", or (3) at the end.
10577: # Note that $ac_compile itself does not contain backslashes and begins
10578: # with a dollar sign (not a hyphen), so the echo should work correctly.
10579: # The option is referenced via a variable to avoid confusing sed.
10580: lt_compile=`echo "$ac_compile" | $SED \
10581: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10582: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10583: -e 's:$: $lt_compiler_flag:'`
10584: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10585: (eval "$lt_compile" 2>conftest.err)
10586: ac_status=$?
10587: cat conftest.err >&5
10588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589: if (exit $ac_status) && test -s "$ac_outfile"; then
10590: # The compiler can only warn and ignore the option if not recognized
10591: # So say no if there are warnings other than the usual output.
10592: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10593: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10594: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10595: lt_cv_prog_compiler_pic_works=yes
10596: fi
10597: fi
10598: $RM conftest*
10599:
10600: fi
10601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10602: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10603:
10604: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10605: case $lt_prog_compiler_pic in
10606: "" | " "*) ;;
10607: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10608: esac
10609: else
10610: lt_prog_compiler_pic=
10611: lt_prog_compiler_can_build_shared=no
10612: fi
10613:
10614: fi
10615:
10616:
10617:
10618:
10619:
10620:
10621:
10622:
10623:
10624:
10625:
10626: #
10627: # Check to make sure the static flag actually works.
10628: #
10629: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10631: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10632: if ${lt_cv_prog_compiler_static_works+:} false; then :
10633: $as_echo_n "(cached) " >&6
10634: else
10635: lt_cv_prog_compiler_static_works=no
10636: save_LDFLAGS="$LDFLAGS"
10637: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10638: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10639: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10640: # The linker can only warn and ignore the option if not recognized
10641: # So say no if there are warnings
10642: if test -s conftest.err; then
10643: # Append any errors to the config.log.
10644: cat conftest.err 1>&5
10645: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10646: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10647: if diff conftest.exp conftest.er2 >/dev/null; then
10648: lt_cv_prog_compiler_static_works=yes
10649: fi
10650: else
10651: lt_cv_prog_compiler_static_works=yes
10652: fi
10653: fi
10654: $RM -r conftest*
10655: LDFLAGS="$save_LDFLAGS"
10656:
10657: fi
10658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10659: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10660:
10661: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10662: :
10663: else
10664: lt_prog_compiler_static=
10665: fi
10666:
10667:
10668:
10669:
10670:
10671:
10672:
10673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10674: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10675: if ${lt_cv_prog_compiler_c_o+:} false; then :
10676: $as_echo_n "(cached) " >&6
10677: else
10678: lt_cv_prog_compiler_c_o=no
10679: $RM -r conftest 2>/dev/null
10680: mkdir conftest
10681: cd conftest
10682: mkdir out
10683: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10684:
10685: lt_compiler_flag="-o out/conftest2.$ac_objext"
10686: # Insert the option either (1) after the last *FLAGS variable, or
10687: # (2) before a word containing "conftest.", or (3) at the end.
10688: # Note that $ac_compile itself does not contain backslashes and begins
10689: # with a dollar sign (not a hyphen), so the echo should work correctly.
10690: lt_compile=`echo "$ac_compile" | $SED \
10691: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10692: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10693: -e 's:$: $lt_compiler_flag:'`
10694: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10695: (eval "$lt_compile" 2>out/conftest.err)
10696: ac_status=$?
10697: cat out/conftest.err >&5
10698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10700: then
10701: # The compiler can only warn and ignore the option if not recognized
10702: # So say no if there are warnings
10703: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10704: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10705: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10706: lt_cv_prog_compiler_c_o=yes
10707: fi
10708: fi
10709: chmod u+w . 2>&5
10710: $RM conftest*
10711: # SGI C++ compiler will create directory out/ii_files/ for
10712: # template instantiation
10713: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10714: $RM out/* && rmdir out
10715: cd ..
10716: $RM -r conftest
10717: $RM conftest*
10718:
10719: fi
10720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10721: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10722:
10723:
10724:
10725:
10726:
10727:
10728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10729: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10730: if ${lt_cv_prog_compiler_c_o+:} false; then :
10731: $as_echo_n "(cached) " >&6
10732: else
10733: lt_cv_prog_compiler_c_o=no
10734: $RM -r conftest 2>/dev/null
10735: mkdir conftest
10736: cd conftest
10737: mkdir out
10738: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10739:
10740: lt_compiler_flag="-o out/conftest2.$ac_objext"
10741: # Insert the option either (1) after the last *FLAGS variable, or
10742: # (2) before a word containing "conftest.", or (3) at the end.
10743: # Note that $ac_compile itself does not contain backslashes and begins
10744: # with a dollar sign (not a hyphen), so the echo should work correctly.
10745: lt_compile=`echo "$ac_compile" | $SED \
10746: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10747: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10748: -e 's:$: $lt_compiler_flag:'`
10749: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10750: (eval "$lt_compile" 2>out/conftest.err)
10751: ac_status=$?
10752: cat out/conftest.err >&5
10753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10755: then
10756: # The compiler can only warn and ignore the option if not recognized
10757: # So say no if there are warnings
10758: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10759: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10760: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10761: lt_cv_prog_compiler_c_o=yes
10762: fi
10763: fi
10764: chmod u+w . 2>&5
10765: $RM conftest*
10766: # SGI C++ compiler will create directory out/ii_files/ for
10767: # template instantiation
10768: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10769: $RM out/* && rmdir out
10770: cd ..
10771: $RM -r conftest
10772: $RM conftest*
10773:
10774: fi
10775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10776: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10777:
10778:
10779:
10780:
10781: hard_links="nottested"
10782: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10783: # do not overwrite the value of need_locks provided by the user
10784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10785: $as_echo_n "checking if we can lock with hard links... " >&6; }
10786: hard_links=yes
10787: $RM conftest*
10788: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10789: touch conftest.a
10790: ln conftest.a conftest.b 2>&5 || hard_links=no
10791: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10793: $as_echo "$hard_links" >&6; }
10794: if test "$hard_links" = no; then
10795: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10796: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10797: need_locks=warn
10798: fi
10799: else
10800: need_locks=no
10801: fi
10802:
10803:
10804:
10805:
10806:
10807:
10808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10809: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10810:
10811: runpath_var=
10812: allow_undefined_flag=
10813: always_export_symbols=no
10814: archive_cmds=
10815: archive_expsym_cmds=
10816: compiler_needs_object=no
10817: enable_shared_with_static_runtimes=no
10818: export_dynamic_flag_spec=
10819: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10820: hardcode_automatic=no
10821: hardcode_direct=no
10822: hardcode_direct_absolute=no
10823: hardcode_libdir_flag_spec=
10824: hardcode_libdir_flag_spec_ld=
10825: hardcode_libdir_separator=
10826: hardcode_minus_L=no
10827: hardcode_shlibpath_var=unsupported
10828: inherit_rpath=no
10829: link_all_deplibs=unknown
10830: module_cmds=
10831: module_expsym_cmds=
10832: old_archive_from_new_cmds=
10833: old_archive_from_expsyms_cmds=
10834: thread_safe_flag_spec=
10835: whole_archive_flag_spec=
10836: # include_expsyms should be a list of space-separated symbols to be *always*
10837: # included in the symbol list
10838: include_expsyms=
10839: # exclude_expsyms can be an extended regexp of symbols to exclude
10840: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10841: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10842: # as well as any symbol that contains `d'.
10843: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10844: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10845: # platforms (ab)use it in PIC code, but their linkers get confused if
10846: # the symbol is explicitly referenced. Since portable code cannot
10847: # rely on this symbol name, it's probably fine to never include it in
10848: # preloaded symbol tables.
10849: # Exclude shared library initialization/finalization symbols.
10850: extract_expsyms_cmds=
10851:
10852: case $host_os in
10853: cygwin* | mingw* | pw32* | cegcc*)
10854: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10855: # When not using gcc, we currently assume that we are using
10856: # Microsoft Visual C++.
10857: if test "$GCC" != yes; then
10858: with_gnu_ld=no
10859: fi
10860: ;;
10861: interix*)
10862: # we just hope/assume this is gcc and not c89 (= MSVC++)
10863: with_gnu_ld=yes
10864: ;;
10865: openbsd*)
10866: with_gnu_ld=no
10867: ;;
10868: esac
10869:
10870: ld_shlibs=yes
10871:
10872: # On some targets, GNU ld is compatible enough with the native linker
10873: # that we're better off using the native interface for both.
10874: lt_use_gnu_ld_interface=no
10875: if test "$with_gnu_ld" = yes; then
10876: case $host_os in
10877: aix*)
10878: # The AIX port of GNU ld has always aspired to compatibility
10879: # with the native linker. However, as the warning in the GNU ld
10880: # block says, versions before 2.19.5* couldn't really create working
10881: # shared libraries, regardless of the interface used.
10882: case `$LD -v 2>&1` in
10883: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10884: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10885: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10886: *)
10887: lt_use_gnu_ld_interface=yes
10888: ;;
10889: esac
10890: ;;
10891: *)
10892: lt_use_gnu_ld_interface=yes
10893: ;;
10894: esac
10895: fi
10896:
10897: if test "$lt_use_gnu_ld_interface" = yes; then
10898: # If archive_cmds runs LD, not CC, wlarc should be empty
10899: wlarc='${wl}'
10900:
10901: # Set some defaults for GNU ld with shared library support. These
10902: # are reset later if shared libraries are not supported. Putting them
10903: # here allows them to be overridden if necessary.
10904: runpath_var=LD_RUN_PATH
10905: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10906: export_dynamic_flag_spec='${wl}--export-dynamic'
10907: # ancient GNU ld didn't support --whole-archive et. al.
10908: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10909: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10910: else
10911: whole_archive_flag_spec=
10912: fi
10913: supports_anon_versioning=no
10914: case `$LD -v 2>&1` in
10915: *GNU\ gold*) supports_anon_versioning=yes ;;
10916: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10917: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10918: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10919: *\ 2.11.*) ;; # other 2.11 versions
10920: *) supports_anon_versioning=yes ;;
10921: esac
10922:
10923: # See if GNU ld supports shared libraries.
10924: case $host_os in
10925: aix[3-9]*)
10926: # On AIX/PPC, the GNU linker is very broken
10927: if test "$host_cpu" != ia64; then
10928: ld_shlibs=no
10929: cat <<_LT_EOF 1>&2
10930:
10931: *** Warning: the GNU linker, at least up to release 2.19, is reported
10932: *** to be unable to reliably create shared libraries on AIX.
10933: *** Therefore, libtool is disabling shared libraries support. If you
10934: *** really care for shared libraries, you may want to install binutils
10935: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10936: *** You will then need to restart the configuration process.
10937:
10938: _LT_EOF
10939: fi
10940: ;;
10941:
10942: amigaos*)
10943: case $host_cpu in
10944: powerpc)
10945: # see comment about AmigaOS4 .so support
10946: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947: archive_expsym_cmds=''
10948: ;;
10949: m68k)
10950: 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)'
10951: hardcode_libdir_flag_spec='-L$libdir'
10952: hardcode_minus_L=yes
10953: ;;
10954: esac
10955: ;;
10956:
10957: beos*)
10958: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10959: allow_undefined_flag=unsupported
10960: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10961: # support --undefined. This deserves some investigation. FIXME
10962: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10963: else
10964: ld_shlibs=no
10965: fi
10966: ;;
10967:
10968: cygwin* | mingw* | pw32* | cegcc*)
10969: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10970: # as there is no search path for DLLs.
10971: hardcode_libdir_flag_spec='-L$libdir'
10972: export_dynamic_flag_spec='${wl}--export-all-symbols'
10973: allow_undefined_flag=unsupported
10974: always_export_symbols=no
10975: enable_shared_with_static_runtimes=yes
10976: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10977: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10978:
10979: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10980: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10981: # If the export-symbols file already is a .def file (1st line
10982: # is EXPORTS), use it as is; otherwise, prepend...
10983: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10984: cp $export_symbols $output_objdir/$soname.def;
10985: else
10986: echo EXPORTS > $output_objdir/$soname.def;
10987: cat $export_symbols >> $output_objdir/$soname.def;
10988: fi~
10989: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10990: else
10991: ld_shlibs=no
10992: fi
10993: ;;
10994:
10995: haiku*)
10996: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10997: link_all_deplibs=yes
10998: ;;
10999:
11000: interix[3-9]*)
11001: hardcode_direct=no
11002: hardcode_shlibpath_var=no
11003: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11004: export_dynamic_flag_spec='${wl}-E'
11005: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11006: # Instead, shared libraries are loaded at an image base (0x10000000 by
11007: # default) and relocated if they conflict, which is a slow very memory
11008: # consuming and fragmenting process. To avoid this, we pick a random,
11009: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11010: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11011: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11012: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11013: ;;
11014:
11015: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11016: tmp_diet=no
11017: if test "$host_os" = linux-dietlibc; then
11018: case $cc_basename in
11019: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11020: esac
11021: fi
11022: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11023: && test "$tmp_diet" = no
11024: then
11025: tmp_addflag=' $pic_flag'
11026: tmp_sharedflag='-shared'
11027: case $cc_basename,$host_cpu in
11028: pgcc*) # Portland Group C compiler
11029: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11030: tmp_addflag=' $pic_flag'
11031: ;;
11032: pgf77* | pgf90* | pgf95* | pgfortran*)
11033: # Portland Group f77 and f90 compilers
11034: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11035: tmp_addflag=' $pic_flag -Mnomain' ;;
11036: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11037: tmp_addflag=' -i_dynamic' ;;
11038: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11039: tmp_addflag=' -i_dynamic -nofor_main' ;;
11040: ifc* | ifort*) # Intel Fortran compiler
11041: tmp_addflag=' -nofor_main' ;;
11042: lf95*) # Lahey Fortran 8.1
11043: whole_archive_flag_spec=
11044: tmp_sharedflag='--shared' ;;
11045: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11046: tmp_sharedflag='-qmkshrobj'
11047: tmp_addflag= ;;
11048: nvcc*) # Cuda Compiler Driver 2.2
11049: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11050: compiler_needs_object=yes
11051: ;;
11052: esac
11053: case `$CC -V 2>&1 | sed 5q` in
11054: *Sun\ C*) # Sun C 5.9
11055: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11056: compiler_needs_object=yes
11057: tmp_sharedflag='-G' ;;
11058: *Sun\ F*) # Sun Fortran 8.3
11059: tmp_sharedflag='-G' ;;
11060: esac
11061: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062:
11063: if test "x$supports_anon_versioning" = xyes; then
11064: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11065: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11066: echo "local: *; };" >> $output_objdir/$libname.ver~
11067: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11068: fi
11069:
11070: case $cc_basename in
11071: xlf* | bgf* | bgxlf* | mpixlf*)
11072: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11073: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11074: hardcode_libdir_flag_spec=
11075: hardcode_libdir_flag_spec_ld='-rpath $libdir'
11076: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11077: if test "x$supports_anon_versioning" = xyes; then
11078: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11079: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11080: echo "local: *; };" >> $output_objdir/$libname.ver~
11081: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11082: fi
11083: ;;
11084: esac
11085: else
11086: ld_shlibs=no
11087: fi
11088: ;;
11089:
11090: netbsd*)
11091: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11092: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11093: wlarc=
11094: else
11095: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11096: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11097: fi
11098: ;;
11099:
11100: solaris*)
11101: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11102: ld_shlibs=no
11103: cat <<_LT_EOF 1>&2
11104:
11105: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11106: *** create shared libraries on Solaris systems. Therefore, libtool
11107: *** is disabling shared libraries support. We urge you to upgrade GNU
11108: *** binutils to release 2.9.1 or newer. Another option is to modify
11109: *** your PATH or compiler configuration so that the native linker is
11110: *** used, and then restart.
11111:
11112: _LT_EOF
11113: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11114: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11116: else
11117: ld_shlibs=no
11118: fi
11119: ;;
11120:
11121: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11122: case `$LD -v 2>&1` in
11123: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11124: ld_shlibs=no
11125: cat <<_LT_EOF 1>&2
11126:
11127: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11128: *** reliably create shared libraries on SCO systems. Therefore, libtool
11129: *** is disabling shared libraries support. We urge you to upgrade GNU
11130: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11131: *** your PATH or compiler configuration so that the native linker is
11132: *** used, and then restart.
11133:
11134: _LT_EOF
11135: ;;
11136: *)
11137: # For security reasons, it is highly recommended that you always
11138: # use absolute paths for naming shared libraries, and exclude the
11139: # DT_RUNPATH tag from executables and libraries. But doing so
11140: # requires that you compile everything twice, which is a pain.
11141: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11142: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11143: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11144: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11145: else
11146: ld_shlibs=no
11147: fi
11148: ;;
11149: esac
11150: ;;
11151:
11152: sunos4*)
11153: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11154: wlarc=
11155: hardcode_direct=yes
11156: hardcode_shlibpath_var=no
11157: ;;
11158:
11159: *)
11160: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11161: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11162: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11163: else
11164: ld_shlibs=no
11165: fi
11166: ;;
11167: esac
11168:
11169: if test "$ld_shlibs" = no; then
11170: runpath_var=
11171: hardcode_libdir_flag_spec=
11172: export_dynamic_flag_spec=
11173: whole_archive_flag_spec=
11174: fi
11175: else
11176: # PORTME fill in a description of your system's linker (not GNU ld)
11177: case $host_os in
11178: aix3*)
11179: allow_undefined_flag=unsupported
11180: always_export_symbols=yes
11181: 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'
11182: # Note: this linker hardcodes the directories in LIBPATH if there
11183: # are no directories specified by -L.
11184: hardcode_minus_L=yes
11185: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11186: # Neither direct hardcoding nor static linking is supported with a
11187: # broken collect2.
11188: hardcode_direct=unsupported
11189: fi
11190: ;;
11191:
11192: aix[4-9]*)
11193: if test "$host_cpu" = ia64; then
11194: # On IA64, the linker does run time linking by default, so we don't
11195: # have to do anything special.
11196: aix_use_runtimelinking=no
11197: exp_sym_flag='-Bexport'
11198: no_entry_flag=""
11199: else
11200: # If we're using GNU nm, then we don't want the "-C" option.
11201: # -C means demangle to AIX nm, but means don't demangle with GNU nm
11202: # Also, AIX nm treats weak defined symbols like other global
11203: # defined symbols, whereas GNU nm marks them as "W".
11204: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11205: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11206: else
11207: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11208: fi
11209: aix_use_runtimelinking=no
11210:
11211: # Test if we are trying to use run time linking or normal
11212: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11213: # need to do runtime linking.
11214: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11215: for ld_flag in $LDFLAGS; do
11216: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11217: aix_use_runtimelinking=yes
11218: break
11219: fi
11220: done
11221: ;;
11222: esac
11223:
11224: exp_sym_flag='-bexport'
11225: no_entry_flag='-bnoentry'
11226: fi
11227:
11228: # When large executables or shared objects are built, AIX ld can
11229: # have problems creating the table of contents. If linking a library
11230: # or program results in "error TOC overflow" add -mminimal-toc to
11231: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11232: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11233:
11234: archive_cmds=''
11235: hardcode_direct=yes
11236: hardcode_direct_absolute=yes
11237: hardcode_libdir_separator=':'
11238: link_all_deplibs=yes
11239: file_list_spec='${wl}-f,'
11240:
11241: if test "$GCC" = yes; then
11242: case $host_os in aix4.[012]|aix4.[012].*)
11243: # We only want to do this on AIX 4.2 and lower, the check
11244: # below for broken collect2 doesn't work under 4.3+
11245: collect2name=`${CC} -print-prog-name=collect2`
11246: if test -f "$collect2name" &&
11247: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11248: then
11249: # We have reworked collect2
11250: :
11251: else
11252: # We have old collect2
11253: hardcode_direct=unsupported
11254: # It fails to find uninstalled libraries when the uninstalled
11255: # path is not listed in the libpath. Setting hardcode_minus_L
11256: # to unsupported forces relinking
11257: hardcode_minus_L=yes
11258: hardcode_libdir_flag_spec='-L$libdir'
11259: hardcode_libdir_separator=
11260: fi
11261: ;;
11262: esac
11263: shared_flag='-shared'
11264: if test "$aix_use_runtimelinking" = yes; then
11265: shared_flag="$shared_flag "'${wl}-G'
11266: fi
11267: else
11268: # not using gcc
11269: if test "$host_cpu" = ia64; then
11270: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11271: # chokes on -Wl,-G. The following line is correct:
11272: shared_flag='-G'
11273: else
11274: if test "$aix_use_runtimelinking" = yes; then
11275: shared_flag='${wl}-G'
11276: else
11277: shared_flag='${wl}-bM:SRE'
11278: fi
11279: fi
11280: fi
11281:
11282: export_dynamic_flag_spec='${wl}-bexpall'
11283: # It seems that -bexpall does not export symbols beginning with
11284: # underscore (_), so it is better to generate a list of symbols to export.
11285: always_export_symbols=yes
11286: if test "$aix_use_runtimelinking" = yes; then
11287: # Warning - without using the other runtime loading flags (-brtl),
11288: # -berok will link without error, but may produce a broken library.
11289: allow_undefined_flag='-berok'
11290: # Determine the default libpath from the value encoded in an
11291: # empty executable.
11292: if test "${lt_cv_aix_libpath+set}" = set; then
11293: aix_libpath=$lt_cv_aix_libpath
11294: else
11295: if ${lt_cv_aix_libpath_+:} false; then :
11296: $as_echo_n "(cached) " >&6
11297: else
11298: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299: /* end confdefs.h. */
11300:
11301: int
11302: main ()
11303: {
11304:
11305: ;
11306: return 0;
11307: }
11308: _ACEOF
11309: if ac_fn_c_try_link "$LINENO"; then :
11310:
11311: lt_aix_libpath_sed='
11312: /Import File Strings/,/^$/ {
11313: /^0/ {
11314: s/^0 *\([^ ]*\) *$/\1/
11315: p
11316: }
11317: }'
11318: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11319: # Check for a 64-bit object if we didn't find anything.
11320: if test -z "$lt_cv_aix_libpath_"; then
11321: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11322: fi
11323: fi
11324: rm -f core conftest.err conftest.$ac_objext \
11325: conftest$ac_exeext conftest.$ac_ext
11326: if test -z "$lt_cv_aix_libpath_"; then
11327: lt_cv_aix_libpath_="/usr/lib:/lib"
11328: fi
11329:
11330: fi
11331:
11332: aix_libpath=$lt_cv_aix_libpath_
11333: fi
11334:
11335: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11336: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11337: else
11338: if test "$host_cpu" = ia64; then
11339: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11340: allow_undefined_flag="-z nodefs"
11341: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11342: else
11343: # Determine the default libpath from the value encoded in an
11344: # empty executable.
11345: if test "${lt_cv_aix_libpath+set}" = set; then
11346: aix_libpath=$lt_cv_aix_libpath
11347: else
11348: if ${lt_cv_aix_libpath_+:} false; then :
11349: $as_echo_n "(cached) " >&6
11350: else
11351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352: /* end confdefs.h. */
11353:
11354: int
11355: main ()
11356: {
11357:
11358: ;
11359: return 0;
11360: }
11361: _ACEOF
11362: if ac_fn_c_try_link "$LINENO"; then :
11363:
11364: lt_aix_libpath_sed='
11365: /Import File Strings/,/^$/ {
11366: /^0/ {
11367: s/^0 *\([^ ]*\) *$/\1/
11368: p
11369: }
11370: }'
11371: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11372: # Check for a 64-bit object if we didn't find anything.
11373: if test -z "$lt_cv_aix_libpath_"; then
11374: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11375: fi
11376: fi
11377: rm -f core conftest.err conftest.$ac_objext \
11378: conftest$ac_exeext conftest.$ac_ext
11379: if test -z "$lt_cv_aix_libpath_"; then
11380: lt_cv_aix_libpath_="/usr/lib:/lib"
11381: fi
11382:
11383: fi
11384:
11385: aix_libpath=$lt_cv_aix_libpath_
11386: fi
11387:
11388: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11389: # Warning - without using the other run time loading flags,
11390: # -berok will link without error, but may produce a broken library.
11391: no_undefined_flag=' ${wl}-bernotok'
11392: allow_undefined_flag=' ${wl}-berok'
11393: if test "$with_gnu_ld" = yes; then
11394: # We only use this code for GNU lds that support --whole-archive.
11395: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11396: else
11397: # Exported symbols can be pulled into shared objects from archives
11398: whole_archive_flag_spec='$convenience'
11399: fi
11400: archive_cmds_need_lc=yes
11401: # This is similar to how AIX traditionally builds its shared libraries.
11402: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11403: fi
11404: fi
11405: ;;
11406:
11407: amigaos*)
11408: case $host_cpu in
11409: powerpc)
11410: # see comment about AmigaOS4 .so support
11411: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11412: archive_expsym_cmds=''
11413: ;;
11414: m68k)
11415: 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)'
11416: hardcode_libdir_flag_spec='-L$libdir'
11417: hardcode_minus_L=yes
11418: ;;
11419: esac
11420: ;;
11421:
11422: bsdi[45]*)
11423: export_dynamic_flag_spec=-rdynamic
11424: ;;
11425:
11426: cygwin* | mingw* | pw32* | cegcc*)
11427: # When not using gcc, we currently assume that we are using
11428: # Microsoft Visual C++.
11429: # hardcode_libdir_flag_spec is actually meaningless, as there is
11430: # no search path for DLLs.
11431: case $cc_basename in
11432: cl*)
11433: # Native MSVC
11434: hardcode_libdir_flag_spec=' '
11435: allow_undefined_flag=unsupported
11436: always_export_symbols=yes
11437: file_list_spec='@'
11438: # Tell ltmain to make .lib files, not .a files.
11439: libext=lib
11440: # Tell ltmain to make .dll files, not .so files.
11441: shrext_cmds=".dll"
11442: # FIXME: Setting linknames here is a bad hack.
11443: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11444: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11445: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11446: else
11447: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11448: fi~
11449: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11450: linknames='
11451: # The linker will not automatically build a static lib if we build a DLL.
11452: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11453: enable_shared_with_static_runtimes=yes
11454: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11455: # Don't use ranlib
11456: old_postinstall_cmds='chmod 644 $oldlib'
11457: postlink_cmds='lt_outputfile="@OUTPUT@"~
11458: lt_tool_outputfile="@TOOL_OUTPUT@"~
11459: case $lt_outputfile in
11460: *.exe|*.EXE) ;;
11461: *)
11462: lt_outputfile="$lt_outputfile.exe"
11463: lt_tool_outputfile="$lt_tool_outputfile.exe"
11464: ;;
11465: esac~
11466: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11467: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11468: $RM "$lt_outputfile.manifest";
11469: fi'
11470: ;;
11471: *)
11472: # Assume MSVC wrapper
11473: hardcode_libdir_flag_spec=' '
11474: allow_undefined_flag=unsupported
11475: # Tell ltmain to make .lib files, not .a files.
11476: libext=lib
11477: # Tell ltmain to make .dll files, not .so files.
11478: shrext_cmds=".dll"
11479: # FIXME: Setting linknames here is a bad hack.
11480: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11481: # The linker will automatically build a .lib file if we build a DLL.
11482: old_archive_from_new_cmds='true'
11483: # FIXME: Should let the user specify the lib program.
11484: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11485: enable_shared_with_static_runtimes=yes
11486: ;;
11487: esac
11488: ;;
11489:
11490: darwin* | rhapsody*)
11491:
11492:
11493: archive_cmds_need_lc=no
11494: hardcode_direct=no
11495: hardcode_automatic=yes
11496: hardcode_shlibpath_var=unsupported
11497: if test "$lt_cv_ld_force_load" = "yes"; then
11498: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11499: else
11500: whole_archive_flag_spec=''
11501: fi
11502: link_all_deplibs=yes
11503: allow_undefined_flag="$_lt_dar_allow_undefined"
11504: case $cc_basename in
11505: ifort*) _lt_dar_can_shared=yes ;;
11506: *) _lt_dar_can_shared=$GCC ;;
11507: esac
11508: if test "$_lt_dar_can_shared" = "yes"; then
11509: output_verbose_link_cmd=func_echo_all
11510: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11511: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11512: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11513: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11514:
11515: else
11516: ld_shlibs=no
11517: fi
11518:
11519: ;;
11520:
11521: dgux*)
11522: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11523: hardcode_libdir_flag_spec='-L$libdir'
11524: hardcode_shlibpath_var=no
11525: ;;
11526:
11527: freebsd1*)
11528: ld_shlibs=no
11529: ;;
11530:
11531: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11532: # support. Future versions do this automatically, but an explicit c++rt0.o
11533: # does not break anything, and helps significantly (at the cost of a little
11534: # extra space).
11535: freebsd2.2*)
11536: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11537: hardcode_libdir_flag_spec='-R$libdir'
11538: hardcode_direct=yes
11539: hardcode_shlibpath_var=no
11540: ;;
11541:
11542: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11543: freebsd2*)
11544: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11545: hardcode_direct=yes
11546: hardcode_minus_L=yes
11547: hardcode_shlibpath_var=no
11548: ;;
11549:
11550: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11551: freebsd* | dragonfly*)
11552: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11553: hardcode_libdir_flag_spec='-R$libdir'
11554: hardcode_direct=yes
11555: hardcode_shlibpath_var=no
11556: ;;
11557:
11558: hpux9*)
11559: if test "$GCC" = yes; then
11560: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11561: else
11562: 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'
11563: fi
11564: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11565: hardcode_libdir_separator=:
11566: hardcode_direct=yes
11567:
11568: # hardcode_minus_L: Not really in the search PATH,
11569: # but as the default location of the library.
11570: hardcode_minus_L=yes
11571: export_dynamic_flag_spec='${wl}-E'
11572: ;;
11573:
11574: hpux10*)
11575: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11576: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11577: else
11578: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11579: fi
11580: if test "$with_gnu_ld" = no; then
11581: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11582: hardcode_libdir_flag_spec_ld='+b $libdir'
11583: hardcode_libdir_separator=:
11584: hardcode_direct=yes
11585: hardcode_direct_absolute=yes
11586: export_dynamic_flag_spec='${wl}-E'
11587: # hardcode_minus_L: Not really in the search PATH,
11588: # but as the default location of the library.
11589: hardcode_minus_L=yes
11590: fi
11591: ;;
11592:
11593: hpux11*)
11594: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11595: case $host_cpu in
11596: hppa*64*)
11597: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11598: ;;
11599: ia64*)
11600: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11601: ;;
11602: *)
11603: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11604: ;;
11605: esac
11606: else
11607: case $host_cpu in
11608: hppa*64*)
11609: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11610: ;;
11611: ia64*)
11612: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11613: ;;
11614: *)
11615:
11616: # Older versions of the 11.00 compiler do not understand -b yet
11617: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11619: $as_echo_n "checking if $CC understands -b... " >&6; }
11620: if ${lt_cv_prog_compiler__b+:} false; then :
11621: $as_echo_n "(cached) " >&6
11622: else
11623: lt_cv_prog_compiler__b=no
11624: save_LDFLAGS="$LDFLAGS"
11625: LDFLAGS="$LDFLAGS -b"
11626: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11627: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11628: # The linker can only warn and ignore the option if not recognized
11629: # So say no if there are warnings
11630: if test -s conftest.err; then
11631: # Append any errors to the config.log.
11632: cat conftest.err 1>&5
11633: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11634: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11635: if diff conftest.exp conftest.er2 >/dev/null; then
11636: lt_cv_prog_compiler__b=yes
11637: fi
11638: else
11639: lt_cv_prog_compiler__b=yes
11640: fi
11641: fi
11642: $RM -r conftest*
11643: LDFLAGS="$save_LDFLAGS"
11644:
11645: fi
11646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11647: $as_echo "$lt_cv_prog_compiler__b" >&6; }
11648:
11649: if test x"$lt_cv_prog_compiler__b" = xyes; then
11650: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11651: else
11652: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11653: fi
11654:
11655: ;;
11656: esac
11657: fi
11658: if test "$with_gnu_ld" = no; then
11659: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11660: hardcode_libdir_separator=:
11661:
11662: case $host_cpu in
11663: hppa*64*|ia64*)
11664: hardcode_direct=no
11665: hardcode_shlibpath_var=no
11666: ;;
11667: *)
11668: hardcode_direct=yes
11669: hardcode_direct_absolute=yes
11670: export_dynamic_flag_spec='${wl}-E'
11671:
11672: # hardcode_minus_L: Not really in the search PATH,
11673: # but as the default location of the library.
11674: hardcode_minus_L=yes
11675: ;;
11676: esac
11677: fi
11678: ;;
11679:
11680: irix5* | irix6* | nonstopux*)
11681: if test "$GCC" = yes; then
11682: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11683: # Try to use the -exported_symbol ld option, if it does not
11684: # work, assume that -exports_file does not work either and
11685: # implicitly export all symbols.
11686: # This should be the same for all languages, so no per-tag cache variable.
11687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11688: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11689: if ${lt_cv_irix_exported_symbol+:} false; then :
11690: $as_echo_n "(cached) " >&6
11691: else
11692: save_LDFLAGS="$LDFLAGS"
11693: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695: /* end confdefs.h. */
11696: int foo (void) { return 0; }
11697: _ACEOF
11698: if ac_fn_c_try_link "$LINENO"; then :
11699: lt_cv_irix_exported_symbol=yes
11700: else
11701: lt_cv_irix_exported_symbol=no
11702: fi
11703: rm -f core conftest.err conftest.$ac_objext \
11704: conftest$ac_exeext conftest.$ac_ext
11705: LDFLAGS="$save_LDFLAGS"
11706: fi
11707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11708: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11709: if test "$lt_cv_irix_exported_symbol" = yes; then
11710: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11711: fi
11712: else
11713: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11714: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11715: fi
11716: archive_cmds_need_lc='no'
11717: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11718: hardcode_libdir_separator=:
11719: inherit_rpath=yes
11720: link_all_deplibs=yes
11721: ;;
11722:
11723: netbsd*)
11724: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11725: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11726: else
11727: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11728: fi
11729: hardcode_libdir_flag_spec='-R$libdir'
11730: hardcode_direct=yes
11731: hardcode_shlibpath_var=no
11732: ;;
11733:
11734: newsos6)
11735: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11736: hardcode_direct=yes
11737: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11738: hardcode_libdir_separator=:
11739: hardcode_shlibpath_var=no
11740: ;;
11741:
11742: *nto* | *qnx*)
11743: ;;
11744:
11745: openbsd*)
11746: if test -f /usr/libexec/ld.so; then
11747: hardcode_direct=yes
11748: hardcode_shlibpath_var=no
11749: hardcode_direct_absolute=yes
11750: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11751: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11752: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11753: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11754: export_dynamic_flag_spec='${wl}-E'
11755: else
11756: case $host_os in
11757: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11758: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11759: hardcode_libdir_flag_spec='-R$libdir'
11760: ;;
11761: *)
11762: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11763: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11764: ;;
11765: esac
11766: fi
11767: else
11768: ld_shlibs=no
11769: fi
11770: ;;
11771:
11772: os2*)
11773: hardcode_libdir_flag_spec='-L$libdir'
11774: hardcode_minus_L=yes
11775: allow_undefined_flag=unsupported
11776: 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'
11777: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11778: ;;
11779:
11780: osf3*)
11781: if test "$GCC" = yes; then
11782: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11783: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11784: else
11785: allow_undefined_flag=' -expect_unresolved \*'
11786: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11787: fi
11788: archive_cmds_need_lc='no'
11789: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11790: hardcode_libdir_separator=:
11791: ;;
11792:
11793: osf4* | osf5*) # as osf3* with the addition of -msym flag
11794: if test "$GCC" = yes; then
11795: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11796: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11797: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11798: else
11799: allow_undefined_flag=' -expect_unresolved \*'
11800: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11801: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11802: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11803:
11804: # Both c and cxx compiler support -rpath directly
11805: hardcode_libdir_flag_spec='-rpath $libdir'
11806: fi
11807: archive_cmds_need_lc='no'
11808: hardcode_libdir_separator=:
11809: ;;
11810:
11811: solaris*)
11812: no_undefined_flag=' -z defs'
11813: if test "$GCC" = yes; then
11814: wlarc='${wl}'
11815: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11817: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11818: else
11819: case `$CC -V 2>&1` in
11820: *"Compilers 5.0"*)
11821: wlarc=''
11822: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11823: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11824: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11825: ;;
11826: *)
11827: wlarc='${wl}'
11828: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11829: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11830: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11831: ;;
11832: esac
11833: fi
11834: hardcode_libdir_flag_spec='-R$libdir'
11835: hardcode_shlibpath_var=no
11836: case $host_os in
11837: solaris2.[0-5] | solaris2.[0-5].*) ;;
11838: *)
11839: # The compiler driver will combine and reorder linker options,
11840: # but understands `-z linker_flag'. GCC discards it without `$wl',
11841: # but is careful enough not to reorder.
11842: # Supported since Solaris 2.6 (maybe 2.5.1?)
11843: if test "$GCC" = yes; then
11844: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11845: else
11846: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11847: fi
11848: ;;
11849: esac
11850: link_all_deplibs=yes
11851: ;;
11852:
11853: sunos4*)
11854: if test "x$host_vendor" = xsequent; then
11855: # Use $CC to link under sequent, because it throws in some extra .o
11856: # files that make .init and .fini sections work.
11857: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11858: else
11859: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11860: fi
11861: hardcode_libdir_flag_spec='-L$libdir'
11862: hardcode_direct=yes
11863: hardcode_minus_L=yes
11864: hardcode_shlibpath_var=no
11865: ;;
11866:
11867: sysv4)
11868: case $host_vendor in
11869: sni)
11870: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11871: hardcode_direct=yes # is this really true???
11872: ;;
11873: siemens)
11874: ## LD is ld it makes a PLAMLIB
11875: ## CC just makes a GrossModule.
11876: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11877: reload_cmds='$CC -r -o $output$reload_objs'
11878: hardcode_direct=no
11879: ;;
11880: motorola)
11881: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11882: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11883: ;;
11884: esac
11885: runpath_var='LD_RUN_PATH'
11886: hardcode_shlibpath_var=no
11887: ;;
11888:
11889: sysv4.3*)
11890: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891: hardcode_shlibpath_var=no
11892: export_dynamic_flag_spec='-Bexport'
11893: ;;
11894:
11895: sysv4*MP*)
11896: if test -d /usr/nec; then
11897: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11898: hardcode_shlibpath_var=no
11899: runpath_var=LD_RUN_PATH
11900: hardcode_runpath_var=yes
11901: ld_shlibs=yes
11902: fi
11903: ;;
11904:
11905: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11906: no_undefined_flag='${wl}-z,text'
11907: archive_cmds_need_lc=no
11908: hardcode_shlibpath_var=no
11909: runpath_var='LD_RUN_PATH'
11910:
11911: if test "$GCC" = yes; then
11912: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914: else
11915: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11916: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11917: fi
11918: ;;
11919:
11920: sysv5* | sco3.2v5* | sco5v6*)
11921: # Note: We can NOT use -z defs as we might desire, because we do not
11922: # link with -lc, and that would cause any symbols used from libc to
11923: # always be unresolved, which means just about no library would
11924: # ever link correctly. If we're not using GNU ld we use -z text
11925: # though, which does catch some bad symbols but isn't as heavy-handed
11926: # as -z defs.
11927: no_undefined_flag='${wl}-z,text'
11928: allow_undefined_flag='${wl}-z,nodefs'
11929: archive_cmds_need_lc=no
11930: hardcode_shlibpath_var=no
11931: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11932: hardcode_libdir_separator=':'
11933: link_all_deplibs=yes
11934: export_dynamic_flag_spec='${wl}-Bexport'
11935: runpath_var='LD_RUN_PATH'
11936:
11937: if test "$GCC" = yes; then
11938: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940: else
11941: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943: fi
11944: ;;
11945:
11946: uts4*)
11947: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11948: hardcode_libdir_flag_spec='-L$libdir'
11949: hardcode_shlibpath_var=no
11950: ;;
11951:
11952: *)
11953: ld_shlibs=no
11954: ;;
11955: esac
11956:
11957: if test x$host_vendor = xsni; then
11958: case $host in
11959: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11960: export_dynamic_flag_spec='${wl}-Blargedynsym'
11961: ;;
11962: esac
11963: fi
11964: fi
11965:
11966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11967: $as_echo "$ld_shlibs" >&6; }
11968: test "$ld_shlibs" = no && can_build_shared=no
11969:
11970: with_gnu_ld=$with_gnu_ld
11971:
11972:
11973:
11974:
11975:
11976:
11977:
11978:
11979:
11980:
11981:
11982:
11983:
11984:
11985:
11986: #
11987: # Do we need to explicitly link libc?
11988: #
11989: case "x$archive_cmds_need_lc" in
11990: x|xyes)
11991: # Assume -lc should be added
11992: archive_cmds_need_lc=yes
11993:
11994: if test "$enable_shared" = yes && test "$GCC" = yes; then
11995: case $archive_cmds in
11996: *'~'*)
11997: # FIXME: we may have to deal with multi-command sequences.
11998: ;;
11999: '$CC '*)
12000: # Test whether the compiler implicitly links with -lc since on some
12001: # systems, -lgcc has to come before -lc. If gcc already passes -lc
12002: # to ld, don't add -lc before -lgcc.
12003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12004: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12005: if ${lt_cv_archive_cmds_need_lc+:} false; then :
12006: $as_echo_n "(cached) " >&6
12007: else
12008: $RM conftest*
12009: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12010:
12011: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12012: (eval $ac_compile) 2>&5
12013: ac_status=$?
12014: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12015: test $ac_status = 0; } 2>conftest.err; then
12016: soname=conftest
12017: lib=conftest
12018: libobjs=conftest.$ac_objext
12019: deplibs=
12020: wl=$lt_prog_compiler_wl
12021: pic_flag=$lt_prog_compiler_pic
12022: compiler_flags=-v
12023: linker_flags=-v
12024: verstring=
12025: output_objdir=.
12026: libname=conftest
12027: lt_save_allow_undefined_flag=$allow_undefined_flag
12028: allow_undefined_flag=
12029: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12030: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12031: ac_status=$?
12032: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033: test $ac_status = 0; }
12034: then
12035: lt_cv_archive_cmds_need_lc=no
12036: else
12037: lt_cv_archive_cmds_need_lc=yes
12038: fi
12039: allow_undefined_flag=$lt_save_allow_undefined_flag
12040: else
12041: cat conftest.err 1>&5
12042: fi
12043: $RM conftest*
12044:
12045: fi
12046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12047: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12048: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12049: ;;
12050: esac
12051: fi
12052: ;;
12053: esac
12054:
12055:
12056:
12057:
12058:
12059:
12060:
12061:
12062:
12063:
12064:
12065:
12066:
12067:
12068:
12069:
12070:
12071:
12072:
12073:
12074:
12075:
12076:
12077:
12078:
12079:
12080:
12081:
12082:
12083:
12084:
12085:
12086:
12087:
12088:
12089:
12090:
12091:
12092:
12093:
12094:
12095:
12096:
12097:
12098:
12099:
12100:
12101:
12102:
12103:
12104:
12105:
12106:
12107:
12108:
12109:
12110:
12111:
12112:
12113:
12114:
12115:
12116:
12117:
12118:
12119:
12120:
12121:
12122:
12123:
12124:
12125:
12126:
12127:
12128:
12129:
12130:
12131:
12132:
12133:
12134:
12135:
12136:
12137:
12138:
12139:
12140:
12141:
12142:
12143:
12144:
12145:
12146:
12147:
12148:
12149:
12150:
12151:
12152:
12153:
12154:
12155:
12156:
12157:
12158:
12159:
12160:
12161:
12162:
12163:
12164:
12165:
12166:
12167:
12168:
12169:
12170:
12171:
12172:
12173:
12174:
12175:
12176:
12177:
12178:
12179:
12180:
12181:
12182:
12183:
12184:
12185:
12186:
12187:
12188:
12189:
12190:
12191:
12192:
12193:
12194:
12195:
12196:
12197:
12198:
12199:
12200:
12201:
12202:
12203:
12204:
12205:
12206:
12207:
12208:
12209:
12210:
12211: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12212: $as_echo_n "checking dynamic linker characteristics... " >&6; }
12213:
12214: if test "$GCC" = yes; then
12215: case $host_os in
12216: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12217: *) lt_awk_arg="/^libraries:/" ;;
12218: esac
12219: case $host_os in
12220: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12221: *) lt_sed_strip_eq="s,=/,/,g" ;;
12222: esac
12223: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12224: case $lt_search_path_spec in
12225: *\;*)
12226: # if the path contains ";" then we assume it to be the separator
12227: # otherwise default to the standard path separator (i.e. ":") - it is
12228: # assumed that no part of a normal pathname contains ";" but that should
12229: # okay in the real world where ";" in dirpaths is itself problematic.
12230: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12231: ;;
12232: *)
12233: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12234: ;;
12235: esac
12236: # Ok, now we have the path, separated by spaces, we can step through it
12237: # and add multilib dir if necessary.
12238: lt_tmp_lt_search_path_spec=
12239: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12240: for lt_sys_path in $lt_search_path_spec; do
12241: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12242: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12243: else
12244: test -d "$lt_sys_path" && \
12245: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12246: fi
12247: done
12248: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12249: BEGIN {RS=" "; FS="/|\n";} {
12250: lt_foo="";
12251: lt_count=0;
12252: for (lt_i = NF; lt_i > 0; lt_i--) {
12253: if ($lt_i != "" && $lt_i != ".") {
12254: if ($lt_i == "..") {
12255: lt_count++;
12256: } else {
12257: if (lt_count == 0) {
12258: lt_foo="/" $lt_i lt_foo;
12259: } else {
12260: lt_count--;
12261: }
12262: }
12263: }
12264: }
12265: if (lt_foo != "") { lt_freq[lt_foo]++; }
12266: if (lt_freq[lt_foo] == 1) { print lt_foo; }
12267: }'`
12268: # AWK program above erroneously prepends '/' to C:/dos/paths
12269: # for these hosts.
12270: case $host_os in
12271: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12272: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12273: esac
12274: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12275: else
12276: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12277: fi
12278: library_names_spec=
12279: libname_spec='lib$name'
12280: soname_spec=
12281: shrext_cmds=".so"
12282: postinstall_cmds=
12283: postuninstall_cmds=
12284: finish_cmds=
12285: finish_eval=
12286: shlibpath_var=
12287: shlibpath_overrides_runpath=unknown
12288: version_type=none
12289: dynamic_linker="$host_os ld.so"
12290: sys_lib_dlsearch_path_spec="/lib /usr/lib"
12291: need_lib_prefix=unknown
12292: hardcode_into_libs=no
12293:
12294: # when you set need_version to no, make sure it does not cause -set_version
12295: # flags to be left without arguments
12296: need_version=unknown
12297:
12298: case $host_os in
12299: aix3*)
12300: version_type=linux
12301: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12302: shlibpath_var=LIBPATH
12303:
12304: # AIX 3 has no versioning support, so we append a major version to the name.
12305: soname_spec='${libname}${release}${shared_ext}$major'
12306: ;;
12307:
12308: aix[4-9]*)
12309: version_type=linux
12310: need_lib_prefix=no
12311: need_version=no
12312: hardcode_into_libs=yes
12313: if test "$host_cpu" = ia64; then
12314: # AIX 5 supports IA64
12315: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12316: shlibpath_var=LD_LIBRARY_PATH
12317: else
12318: # With GCC up to 2.95.x, collect2 would create an import file
12319: # for dependence libraries. The import file would start with
12320: # the line `#! .'. This would cause the generated library to
12321: # depend on `.', always an invalid library. This was fixed in
12322: # development snapshots of GCC prior to 3.0.
12323: case $host_os in
12324: aix4 | aix4.[01] | aix4.[01].*)
12325: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12326: echo ' yes '
12327: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12328: :
12329: else
12330: can_build_shared=no
12331: fi
12332: ;;
12333: esac
12334: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12335: # soname into executable. Probably we can add versioning support to
12336: # collect2, so additional links can be useful in future.
12337: if test "$aix_use_runtimelinking" = yes; then
12338: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12339: # instead of lib<name>.a to let people know that these are not
12340: # typical AIX shared libraries.
12341: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12342: else
12343: # We preserve .a as extension for shared libraries through AIX4.2
12344: # and later when we are not doing run time linking.
12345: library_names_spec='${libname}${release}.a $libname.a'
12346: soname_spec='${libname}${release}${shared_ext}$major'
12347: fi
12348: shlibpath_var=LIBPATH
12349: fi
12350: ;;
12351:
12352: amigaos*)
12353: case $host_cpu in
12354: powerpc)
12355: # Since July 2007 AmigaOS4 officially supports .so libraries.
12356: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12357: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12358: ;;
12359: m68k)
12360: library_names_spec='$libname.ixlibrary $libname.a'
12361: # Create ${libname}_ixlibrary.a entries in /sys/libs.
12362: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12363: ;;
12364: esac
12365: ;;
12366:
12367: beos*)
12368: library_names_spec='${libname}${shared_ext}'
12369: dynamic_linker="$host_os ld.so"
12370: shlibpath_var=LIBRARY_PATH
12371: ;;
12372:
12373: bsdi[45]*)
12374: version_type=linux
12375: need_version=no
12376: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377: soname_spec='${libname}${release}${shared_ext}$major'
12378: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12379: shlibpath_var=LD_LIBRARY_PATH
12380: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12381: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12382: # the default ld.so.conf also contains /usr/contrib/lib and
12383: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12384: # libtool to hard-code these into programs
12385: ;;
12386:
12387: cygwin* | mingw* | pw32* | cegcc*)
12388: version_type=windows
12389: shrext_cmds=".dll"
12390: need_version=no
12391: need_lib_prefix=no
12392:
12393: case $GCC,$cc_basename in
12394: yes,*)
12395: # gcc
12396: library_names_spec='$libname.dll.a'
12397: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12398: postinstall_cmds='base_file=`basename \${file}`~
12399: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12400: dldir=$destdir/`dirname \$dlpath`~
12401: test -d \$dldir || mkdir -p \$dldir~
12402: $install_prog $dir/$dlname \$dldir/$dlname~
12403: chmod a+x \$dldir/$dlname~
12404: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12405: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12406: fi'
12407: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12408: dlpath=$dir/\$dldll~
12409: $RM \$dlpath'
12410: shlibpath_overrides_runpath=yes
12411:
12412: case $host_os in
12413: cygwin*)
12414: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12415: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12416:
12417: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12418: ;;
12419: mingw* | cegcc*)
12420: # MinGW DLLs use traditional 'lib' prefix
12421: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12422: ;;
12423: pw32*)
12424: # pw32 DLLs use 'pw' prefix rather than 'lib'
12425: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12426: ;;
12427: esac
12428: dynamic_linker='Win32 ld.exe'
12429: ;;
12430:
12431: *,cl*)
12432: # Native MSVC
12433: libname_spec='$name'
12434: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12435: library_names_spec='${libname}.dll.lib'
12436:
12437: case $build_os in
12438: mingw*)
12439: sys_lib_search_path_spec=
12440: lt_save_ifs=$IFS
12441: IFS=';'
12442: for lt_path in $LIB
12443: do
12444: IFS=$lt_save_ifs
12445: # Let DOS variable expansion print the short 8.3 style file name.
12446: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12447: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12448: done
12449: IFS=$lt_save_ifs
12450: # Convert to MSYS style.
12451: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12452: ;;
12453: cygwin*)
12454: # Convert to unix form, then to dos form, then back to unix form
12455: # but this time dos style (no spaces!) so that the unix form looks
12456: # like /cygdrive/c/PROGRA~1:/cygdr...
12457: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12458: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12459: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12460: ;;
12461: *)
12462: sys_lib_search_path_spec="$LIB"
12463: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12464: # It is most probably a Windows format PATH.
12465: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12466: else
12467: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12468: fi
12469: # FIXME: find the short name or the path components, as spaces are
12470: # common. (e.g. "Program Files" -> "PROGRA~1")
12471: ;;
12472: esac
12473:
12474: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12475: postinstall_cmds='base_file=`basename \${file}`~
12476: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12477: dldir=$destdir/`dirname \$dlpath`~
12478: test -d \$dldir || mkdir -p \$dldir~
12479: $install_prog $dir/$dlname \$dldir/$dlname'
12480: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12481: dlpath=$dir/\$dldll~
12482: $RM \$dlpath'
12483: shlibpath_overrides_runpath=yes
12484: dynamic_linker='Win32 link.exe'
12485: ;;
12486:
12487: *)
12488: # Assume MSVC wrapper
12489: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12490: dynamic_linker='Win32 ld.exe'
12491: ;;
12492: esac
12493: # FIXME: first we should search . and the directory the executable is in
12494: shlibpath_var=PATH
12495: ;;
12496:
12497: darwin* | rhapsody*)
12498: dynamic_linker="$host_os dyld"
12499: version_type=darwin
12500: need_lib_prefix=no
12501: need_version=no
12502: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12503: soname_spec='${libname}${release}${major}$shared_ext'
12504: shlibpath_overrides_runpath=yes
12505: shlibpath_var=DYLD_LIBRARY_PATH
12506: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12507:
12508: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12509: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12510: ;;
12511:
12512: dgux*)
12513: version_type=linux
12514: need_lib_prefix=no
12515: need_version=no
12516: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12517: soname_spec='${libname}${release}${shared_ext}$major'
12518: shlibpath_var=LD_LIBRARY_PATH
12519: ;;
12520:
12521: freebsd1*)
12522: dynamic_linker=no
12523: ;;
12524:
12525: freebsd* | dragonfly*)
12526: # DragonFly does not have aout. When/if they implement a new
12527: # versioning mechanism, adjust this.
12528: if test -x /usr/bin/objformat; then
12529: objformat=`/usr/bin/objformat`
12530: else
12531: case $host_os in
12532: freebsd[123]*) objformat=aout ;;
12533: *) objformat=elf ;;
12534: esac
12535: fi
12536: version_type=freebsd-$objformat
12537: case $version_type in
12538: freebsd-elf*)
12539: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12540: need_version=no
12541: need_lib_prefix=no
12542: ;;
12543: freebsd-*)
12544: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12545: need_version=yes
12546: ;;
12547: esac
12548: shlibpath_var=LD_LIBRARY_PATH
12549: case $host_os in
12550: freebsd2*)
12551: shlibpath_overrides_runpath=yes
12552: ;;
12553: freebsd3.[01]* | freebsdelf3.[01]*)
12554: shlibpath_overrides_runpath=yes
12555: hardcode_into_libs=yes
12556: ;;
12557: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12558: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12559: shlibpath_overrides_runpath=no
12560: hardcode_into_libs=yes
12561: ;;
12562: *) # from 4.6 on, and DragonFly
12563: shlibpath_overrides_runpath=yes
12564: hardcode_into_libs=yes
12565: ;;
12566: esac
12567: ;;
12568:
12569: gnu*)
12570: version_type=linux
12571: need_lib_prefix=no
12572: need_version=no
12573: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12574: soname_spec='${libname}${release}${shared_ext}$major'
12575: shlibpath_var=LD_LIBRARY_PATH
12576: hardcode_into_libs=yes
12577: ;;
12578:
12579: haiku*)
12580: version_type=linux
12581: need_lib_prefix=no
12582: need_version=no
12583: dynamic_linker="$host_os runtime_loader"
12584: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12585: soname_spec='${libname}${release}${shared_ext}$major'
12586: shlibpath_var=LIBRARY_PATH
12587: shlibpath_overrides_runpath=yes
12588: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12589: hardcode_into_libs=yes
12590: ;;
12591:
12592: hpux9* | hpux10* | hpux11*)
12593: # Give a soname corresponding to the major version so that dld.sl refuses to
12594: # link against other versions.
12595: version_type=sunos
12596: need_lib_prefix=no
12597: need_version=no
12598: case $host_cpu in
12599: ia64*)
12600: shrext_cmds='.so'
12601: hardcode_into_libs=yes
12602: dynamic_linker="$host_os dld.so"
12603: shlibpath_var=LD_LIBRARY_PATH
12604: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12605: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606: soname_spec='${libname}${release}${shared_ext}$major'
12607: if test "X$HPUX_IA64_MODE" = X32; then
12608: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12609: else
12610: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12611: fi
12612: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12613: ;;
12614: hppa*64*)
12615: shrext_cmds='.sl'
12616: hardcode_into_libs=yes
12617: dynamic_linker="$host_os dld.sl"
12618: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12619: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12620: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12621: soname_spec='${libname}${release}${shared_ext}$major'
12622: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12623: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12624: ;;
12625: *)
12626: shrext_cmds='.sl'
12627: dynamic_linker="$host_os dld.sl"
12628: shlibpath_var=SHLIB_PATH
12629: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12630: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631: soname_spec='${libname}${release}${shared_ext}$major'
12632: ;;
12633: esac
12634: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12635: postinstall_cmds='chmod 555 $lib'
12636: # or fails outright, so override atomically:
12637: install_override_mode=555
12638: ;;
12639:
12640: interix[3-9]*)
12641: version_type=linux
12642: need_lib_prefix=no
12643: need_version=no
12644: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12645: soname_spec='${libname}${release}${shared_ext}$major'
12646: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12647: shlibpath_var=LD_LIBRARY_PATH
12648: shlibpath_overrides_runpath=no
12649: hardcode_into_libs=yes
12650: ;;
12651:
12652: irix5* | irix6* | nonstopux*)
12653: case $host_os in
12654: nonstopux*) version_type=nonstopux ;;
12655: *)
12656: if test "$lt_cv_prog_gnu_ld" = yes; then
12657: version_type=linux
12658: else
12659: version_type=irix
12660: fi ;;
12661: esac
12662: need_lib_prefix=no
12663: need_version=no
12664: soname_spec='${libname}${release}${shared_ext}$major'
12665: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12666: case $host_os in
12667: irix5* | nonstopux*)
12668: libsuff= shlibsuff=
12669: ;;
12670: *)
12671: case $LD in # libtool.m4 will add one of these switches to LD
12672: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12673: libsuff= shlibsuff= libmagic=32-bit;;
12674: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12675: libsuff=32 shlibsuff=N32 libmagic=N32;;
12676: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12677: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12678: *) libsuff= shlibsuff= libmagic=never-match;;
12679: esac
12680: ;;
12681: esac
12682: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12683: shlibpath_overrides_runpath=no
12684: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12685: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12686: hardcode_into_libs=yes
12687: ;;
12688:
12689: # No shared lib support for Linux oldld, aout, or coff.
12690: linux*oldld* | linux*aout* | linux*coff*)
12691: dynamic_linker=no
12692: ;;
12693:
12694: # This must be Linux ELF.
12695: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12696: version_type=linux
12697: need_lib_prefix=no
12698: need_version=no
12699: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700: soname_spec='${libname}${release}${shared_ext}$major'
12701: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12702: shlibpath_var=LD_LIBRARY_PATH
12703: shlibpath_overrides_runpath=no
12704:
12705: # Some binutils ld are patched to set DT_RUNPATH
12706: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12707: $as_echo_n "(cached) " >&6
12708: else
12709: lt_cv_shlibpath_overrides_runpath=no
12710: save_LDFLAGS=$LDFLAGS
12711: save_libdir=$libdir
12712: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12713: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715: /* end confdefs.h. */
12716:
12717: int
12718: main ()
12719: {
12720:
12721: ;
12722: return 0;
12723: }
12724: _ACEOF
12725: if ac_fn_c_try_link "$LINENO"; then :
12726: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12727: lt_cv_shlibpath_overrides_runpath=yes
12728: fi
12729: fi
12730: rm -f core conftest.err conftest.$ac_objext \
12731: conftest$ac_exeext conftest.$ac_ext
12732: LDFLAGS=$save_LDFLAGS
12733: libdir=$save_libdir
12734:
12735: fi
12736:
12737: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12738:
12739: # This implies no fast_install, which is unacceptable.
12740: # Some rework will be needed to allow for fast_install
12741: # before this can be enabled.
12742: hardcode_into_libs=yes
12743:
12744: # Append ld.so.conf contents to the search path
12745: if test -f /etc/ld.so.conf; then
12746: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12747: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12748: fi
12749:
12750: # We used to test for /lib/ld.so.1 and disable shared libraries on
12751: # powerpc, because MkLinux only supported shared libraries with the
12752: # GNU dynamic linker. Since this was broken with cross compilers,
12753: # most powerpc-linux boxes support dynamic linking these days and
12754: # people can always --disable-shared, the test was removed, and we
12755: # assume the GNU/Linux dynamic linker is in use.
12756: dynamic_linker='GNU/Linux ld.so'
12757: ;;
12758:
12759: netbsd*)
12760: version_type=sunos
12761: need_lib_prefix=no
12762: need_version=no
12763: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12764: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12765: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12766: dynamic_linker='NetBSD (a.out) ld.so'
12767: else
12768: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12769: soname_spec='${libname}${release}${shared_ext}$major'
12770: dynamic_linker='NetBSD ld.elf_so'
12771: fi
12772: shlibpath_var=LD_LIBRARY_PATH
12773: shlibpath_overrides_runpath=yes
12774: hardcode_into_libs=yes
12775: ;;
12776:
12777: newsos6)
12778: version_type=linux
12779: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780: shlibpath_var=LD_LIBRARY_PATH
12781: shlibpath_overrides_runpath=yes
12782: ;;
12783:
12784: *nto* | *qnx*)
12785: version_type=qnx
12786: need_lib_prefix=no
12787: need_version=no
12788: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789: soname_spec='${libname}${release}${shared_ext}$major'
12790: shlibpath_var=LD_LIBRARY_PATH
12791: shlibpath_overrides_runpath=no
12792: hardcode_into_libs=yes
12793: dynamic_linker='ldqnx.so'
12794: ;;
12795:
12796: openbsd*)
12797: version_type=sunos
12798: sys_lib_dlsearch_path_spec="/usr/lib"
12799: need_lib_prefix=no
12800: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12801: case $host_os in
12802: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12803: *) need_version=no ;;
12804: esac
12805: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12806: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12807: shlibpath_var=LD_LIBRARY_PATH
12808: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12809: case $host_os in
12810: openbsd2.[89] | openbsd2.[89].*)
12811: shlibpath_overrides_runpath=no
12812: ;;
12813: *)
12814: shlibpath_overrides_runpath=yes
12815: ;;
12816: esac
12817: else
12818: shlibpath_overrides_runpath=yes
12819: fi
12820: ;;
12821:
12822: os2*)
12823: libname_spec='$name'
12824: shrext_cmds=".dll"
12825: need_lib_prefix=no
12826: library_names_spec='$libname${shared_ext} $libname.a'
12827: dynamic_linker='OS/2 ld.exe'
12828: shlibpath_var=LIBPATH
12829: ;;
12830:
12831: osf3* | osf4* | osf5*)
12832: version_type=osf
12833: need_lib_prefix=no
12834: need_version=no
12835: soname_spec='${libname}${release}${shared_ext}$major'
12836: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12837: shlibpath_var=LD_LIBRARY_PATH
12838: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12839: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12840: ;;
12841:
12842: rdos*)
12843: dynamic_linker=no
12844: ;;
12845:
12846: solaris*)
12847: version_type=linux
12848: need_lib_prefix=no
12849: need_version=no
12850: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851: soname_spec='${libname}${release}${shared_ext}$major'
12852: shlibpath_var=LD_LIBRARY_PATH
12853: shlibpath_overrides_runpath=yes
12854: hardcode_into_libs=yes
12855: # ldd complains unless libraries are executable
12856: postinstall_cmds='chmod +x $lib'
12857: ;;
12858:
12859: sunos4*)
12860: version_type=sunos
12861: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12862: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12863: shlibpath_var=LD_LIBRARY_PATH
12864: shlibpath_overrides_runpath=yes
12865: if test "$with_gnu_ld" = yes; then
12866: need_lib_prefix=no
12867: fi
12868: need_version=yes
12869: ;;
12870:
12871: sysv4 | sysv4.3*)
12872: version_type=linux
12873: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874: soname_spec='${libname}${release}${shared_ext}$major'
12875: shlibpath_var=LD_LIBRARY_PATH
12876: case $host_vendor in
12877: sni)
12878: shlibpath_overrides_runpath=no
12879: need_lib_prefix=no
12880: runpath_var=LD_RUN_PATH
12881: ;;
12882: siemens)
12883: need_lib_prefix=no
12884: ;;
12885: motorola)
12886: need_lib_prefix=no
12887: need_version=no
12888: shlibpath_overrides_runpath=no
12889: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12890: ;;
12891: esac
12892: ;;
12893:
12894: sysv4*MP*)
12895: if test -d /usr/nec ;then
12896: version_type=linux
12897: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12898: soname_spec='$libname${shared_ext}.$major'
12899: shlibpath_var=LD_LIBRARY_PATH
12900: fi
12901: ;;
12902:
12903: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12904: version_type=freebsd-elf
12905: need_lib_prefix=no
12906: need_version=no
12907: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12908: soname_spec='${libname}${release}${shared_ext}$major'
12909: shlibpath_var=LD_LIBRARY_PATH
12910: shlibpath_overrides_runpath=yes
12911: hardcode_into_libs=yes
12912: if test "$with_gnu_ld" = yes; then
12913: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12914: else
12915: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12916: case $host_os in
12917: sco3.2v5*)
12918: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12919: ;;
12920: esac
12921: fi
12922: sys_lib_dlsearch_path_spec='/usr/lib'
12923: ;;
12924:
12925: tpf*)
12926: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12927: version_type=linux
12928: need_lib_prefix=no
12929: need_version=no
12930: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931: shlibpath_var=LD_LIBRARY_PATH
12932: shlibpath_overrides_runpath=no
12933: hardcode_into_libs=yes
12934: ;;
12935:
12936: uts4*)
12937: version_type=linux
12938: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12939: soname_spec='${libname}${release}${shared_ext}$major'
12940: shlibpath_var=LD_LIBRARY_PATH
12941: ;;
12942:
12943: *)
12944: dynamic_linker=no
12945: ;;
12946: esac
12947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12948: $as_echo "$dynamic_linker" >&6; }
12949: test "$dynamic_linker" = no && can_build_shared=no
12950:
12951: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12952: if test "$GCC" = yes; then
12953: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12954: fi
12955:
12956: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12957: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12958: fi
12959: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12960: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12961: fi
12962:
12963:
12964:
12965:
12966:
12967:
12968:
12969:
12970:
12971:
12972:
12973:
12974:
12975:
12976:
12977:
12978:
12979:
12980:
12981:
12982:
12983:
12984:
12985:
12986:
12987:
12988:
12989:
12990:
12991:
12992:
12993:
12994:
12995:
12996:
12997:
12998:
12999:
13000:
13001:
13002:
13003:
13004:
13005:
13006:
13007:
13008:
13009:
13010:
13011:
13012:
13013:
13014:
13015:
13016:
13017:
13018:
13019:
13020:
13021:
13022:
13023:
13024:
13025:
13026:
13027:
13028:
13029:
13030:
13031:
13032:
13033:
13034:
13035:
13036:
13037:
13038:
13039:
13040:
13041:
13042:
13043:
13044:
13045:
13046:
13047:
13048:
13049:
13050:
13051:
13052:
13053:
13054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13055: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13056: hardcode_action=
13057: if test -n "$hardcode_libdir_flag_spec" ||
13058: test -n "$runpath_var" ||
13059: test "X$hardcode_automatic" = "Xyes" ; then
13060:
13061: # We can hardcode non-existent directories.
13062: if test "$hardcode_direct" != no &&
13063: # If the only mechanism to avoid hardcoding is shlibpath_var, we
13064: # have to relink, otherwise we might link with an installed library
13065: # when we should be linking with a yet-to-be-installed one
13066: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13067: test "$hardcode_minus_L" != no; then
13068: # Linking always hardcodes the temporary library directory.
13069: hardcode_action=relink
13070: else
13071: # We can link without hardcoding, and we can hardcode nonexisting dirs.
13072: hardcode_action=immediate
13073: fi
13074: else
13075: # We cannot hardcode anything, or else we can only hardcode existing
13076: # directories.
13077: hardcode_action=unsupported
13078: fi
13079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13080: $as_echo "$hardcode_action" >&6; }
13081:
13082: if test "$hardcode_action" = relink ||
13083: test "$inherit_rpath" = yes; then
13084: # Fast installation is not supported
13085: enable_fast_install=no
13086: elif test "$shlibpath_overrides_runpath" = yes ||
13087: test "$enable_shared" = no; then
13088: # Fast installation is not necessary
13089: enable_fast_install=needless
13090: fi
13091:
13092:
13093:
13094:
13095:
13096:
13097: if test "x$enable_dlopen" != xyes; then
13098: enable_dlopen=unknown
13099: enable_dlopen_self=unknown
13100: enable_dlopen_self_static=unknown
13101: else
13102: lt_cv_dlopen=no
13103: lt_cv_dlopen_libs=
13104:
13105: case $host_os in
13106: beos*)
13107: lt_cv_dlopen="load_add_on"
13108: lt_cv_dlopen_libs=
13109: lt_cv_dlopen_self=yes
13110: ;;
13111:
13112: mingw* | pw32* | cegcc*)
13113: lt_cv_dlopen="LoadLibrary"
13114: lt_cv_dlopen_libs=
13115: ;;
13116:
13117: cygwin*)
13118: lt_cv_dlopen="dlopen"
13119: lt_cv_dlopen_libs=
13120: ;;
13121:
13122: darwin*)
13123: # if libdl is installed we need to link against it
13124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13125: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13126: if ${ac_cv_lib_dl_dlopen+:} false; then :
13127: $as_echo_n "(cached) " >&6
13128: else
13129: ac_check_lib_save_LIBS=$LIBS
13130: LIBS="-ldl $LIBS"
13131: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132: /* end confdefs.h. */
13133:
13134: /* Override any GCC internal prototype to avoid an error.
13135: Use char because int might match the return type of a GCC
13136: builtin and then its argument prototype would still apply. */
13137: #ifdef __cplusplus
13138: extern "C"
13139: #endif
13140: char dlopen ();
13141: int
13142: main ()
13143: {
13144: return dlopen ();
13145: ;
13146: return 0;
13147: }
13148: _ACEOF
13149: if ac_fn_c_try_link "$LINENO"; then :
13150: ac_cv_lib_dl_dlopen=yes
13151: else
13152: ac_cv_lib_dl_dlopen=no
13153: fi
13154: rm -f core conftest.err conftest.$ac_objext \
13155: conftest$ac_exeext conftest.$ac_ext
13156: LIBS=$ac_check_lib_save_LIBS
13157: fi
13158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13159: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13160: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13161: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13162: else
13163:
13164: lt_cv_dlopen="dyld"
13165: lt_cv_dlopen_libs=
13166: lt_cv_dlopen_self=yes
13167:
13168: fi
13169:
13170: ;;
13171:
13172: *)
13173: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13174: if test "x$ac_cv_func_shl_load" = xyes; then :
13175: lt_cv_dlopen="shl_load"
13176: else
13177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13178: $as_echo_n "checking for shl_load in -ldld... " >&6; }
13179: if ${ac_cv_lib_dld_shl_load+:} false; then :
13180: $as_echo_n "(cached) " >&6
13181: else
13182: ac_check_lib_save_LIBS=$LIBS
13183: LIBS="-ldld $LIBS"
13184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185: /* end confdefs.h. */
13186:
13187: /* Override any GCC internal prototype to avoid an error.
13188: Use char because int might match the return type of a GCC
13189: builtin and then its argument prototype would still apply. */
13190: #ifdef __cplusplus
13191: extern "C"
13192: #endif
13193: char shl_load ();
13194: int
13195: main ()
13196: {
13197: return shl_load ();
13198: ;
13199: return 0;
13200: }
13201: _ACEOF
13202: if ac_fn_c_try_link "$LINENO"; then :
13203: ac_cv_lib_dld_shl_load=yes
13204: else
13205: ac_cv_lib_dld_shl_load=no
13206: fi
13207: rm -f core conftest.err conftest.$ac_objext \
13208: conftest$ac_exeext conftest.$ac_ext
13209: LIBS=$ac_check_lib_save_LIBS
13210: fi
13211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13212: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13213: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13214: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13215: else
13216: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13217: if test "x$ac_cv_func_dlopen" = xyes; then :
13218: lt_cv_dlopen="dlopen"
13219: else
13220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13221: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13222: if ${ac_cv_lib_dl_dlopen+:} false; then :
13223: $as_echo_n "(cached) " >&6
13224: else
13225: ac_check_lib_save_LIBS=$LIBS
13226: LIBS="-ldl $LIBS"
13227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228: /* end confdefs.h. */
13229:
13230: /* Override any GCC internal prototype to avoid an error.
13231: Use char because int might match the return type of a GCC
13232: builtin and then its argument prototype would still apply. */
13233: #ifdef __cplusplus
13234: extern "C"
13235: #endif
13236: char dlopen ();
13237: int
13238: main ()
13239: {
13240: return dlopen ();
13241: ;
13242: return 0;
13243: }
13244: _ACEOF
13245: if ac_fn_c_try_link "$LINENO"; then :
13246: ac_cv_lib_dl_dlopen=yes
13247: else
13248: ac_cv_lib_dl_dlopen=no
13249: fi
13250: rm -f core conftest.err conftest.$ac_objext \
13251: conftest$ac_exeext conftest.$ac_ext
13252: LIBS=$ac_check_lib_save_LIBS
13253: fi
13254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13255: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13256: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13257: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13258: else
13259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13260: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13261: if ${ac_cv_lib_svld_dlopen+:} false; then :
13262: $as_echo_n "(cached) " >&6
13263: else
13264: ac_check_lib_save_LIBS=$LIBS
13265: LIBS="-lsvld $LIBS"
13266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267: /* end confdefs.h. */
13268:
13269: /* Override any GCC internal prototype to avoid an error.
13270: Use char because int might match the return type of a GCC
13271: builtin and then its argument prototype would still apply. */
13272: #ifdef __cplusplus
13273: extern "C"
13274: #endif
13275: char dlopen ();
13276: int
13277: main ()
13278: {
13279: return dlopen ();
13280: ;
13281: return 0;
13282: }
13283: _ACEOF
13284: if ac_fn_c_try_link "$LINENO"; then :
13285: ac_cv_lib_svld_dlopen=yes
13286: else
13287: ac_cv_lib_svld_dlopen=no
13288: fi
13289: rm -f core conftest.err conftest.$ac_objext \
13290: conftest$ac_exeext conftest.$ac_ext
13291: LIBS=$ac_check_lib_save_LIBS
13292: fi
13293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13294: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13295: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13296: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13297: else
13298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13299: $as_echo_n "checking for dld_link in -ldld... " >&6; }
13300: if ${ac_cv_lib_dld_dld_link+:} false; then :
13301: $as_echo_n "(cached) " >&6
13302: else
13303: ac_check_lib_save_LIBS=$LIBS
13304: LIBS="-ldld $LIBS"
13305: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306: /* end confdefs.h. */
13307:
13308: /* Override any GCC internal prototype to avoid an error.
13309: Use char because int might match the return type of a GCC
13310: builtin and then its argument prototype would still apply. */
13311: #ifdef __cplusplus
13312: extern "C"
13313: #endif
13314: char dld_link ();
13315: int
13316: main ()
13317: {
13318: return dld_link ();
13319: ;
13320: return 0;
13321: }
13322: _ACEOF
13323: if ac_fn_c_try_link "$LINENO"; then :
13324: ac_cv_lib_dld_dld_link=yes
13325: else
13326: ac_cv_lib_dld_dld_link=no
13327: fi
13328: rm -f core conftest.err conftest.$ac_objext \
13329: conftest$ac_exeext conftest.$ac_ext
13330: LIBS=$ac_check_lib_save_LIBS
13331: fi
13332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13333: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13334: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13335: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13336: fi
13337:
13338:
13339: fi
13340:
13341:
13342: fi
13343:
13344:
13345: fi
13346:
13347:
13348: fi
13349:
13350:
13351: fi
13352:
13353: ;;
13354: esac
13355:
13356: if test "x$lt_cv_dlopen" != xno; then
13357: enable_dlopen=yes
13358: else
13359: enable_dlopen=no
13360: fi
13361:
13362: case $lt_cv_dlopen in
13363: dlopen)
13364: save_CPPFLAGS="$CPPFLAGS"
13365: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13366:
13367: save_LDFLAGS="$LDFLAGS"
13368: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13369:
13370: save_LIBS="$LIBS"
13371: LIBS="$lt_cv_dlopen_libs $LIBS"
13372:
13373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13374: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13375: if ${lt_cv_dlopen_self+:} false; then :
13376: $as_echo_n "(cached) " >&6
13377: else
13378: if test "$cross_compiling" = yes; then :
13379: lt_cv_dlopen_self=cross
13380: else
13381: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13382: lt_status=$lt_dlunknown
13383: cat > conftest.$ac_ext <<_LT_EOF
13384: #line $LINENO "configure"
13385: #include "confdefs.h"
13386:
13387: #if HAVE_DLFCN_H
13388: #include <dlfcn.h>
13389: #endif
13390:
13391: #include <stdio.h>
13392:
13393: #ifdef RTLD_GLOBAL
13394: # define LT_DLGLOBAL RTLD_GLOBAL
13395: #else
13396: # ifdef DL_GLOBAL
13397: # define LT_DLGLOBAL DL_GLOBAL
13398: # else
13399: # define LT_DLGLOBAL 0
13400: # endif
13401: #endif
13402:
13403: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13404: find out it does not work in some platform. */
13405: #ifndef LT_DLLAZY_OR_NOW
13406: # ifdef RTLD_LAZY
13407: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13408: # else
13409: # ifdef DL_LAZY
13410: # define LT_DLLAZY_OR_NOW DL_LAZY
13411: # else
13412: # ifdef RTLD_NOW
13413: # define LT_DLLAZY_OR_NOW RTLD_NOW
13414: # else
13415: # ifdef DL_NOW
13416: # define LT_DLLAZY_OR_NOW DL_NOW
13417: # else
13418: # define LT_DLLAZY_OR_NOW 0
13419: # endif
13420: # endif
13421: # endif
13422: # endif
13423: #endif
13424:
13425: /* When -fvisbility=hidden is used, assume the code has been annotated
13426: correspondingly for the symbols needed. */
13427: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13428: int fnord () __attribute__((visibility("default")));
13429: #endif
13430:
13431: int fnord () { return 42; }
13432: int main ()
13433: {
13434: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13435: int status = $lt_dlunknown;
13436:
13437: if (self)
13438: {
13439: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13440: else
13441: {
13442: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13443: else puts (dlerror ());
13444: }
13445: /* dlclose (self); */
13446: }
13447: else
13448: puts (dlerror ());
13449:
13450: return status;
13451: }
13452: _LT_EOF
13453: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13454: (eval $ac_link) 2>&5
13455: ac_status=$?
13456: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13458: (./conftest; exit; ) >&5 2>/dev/null
13459: lt_status=$?
13460: case x$lt_status in
13461: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13462: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13463: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13464: esac
13465: else :
13466: # compilation failed
13467: lt_cv_dlopen_self=no
13468: fi
13469: fi
13470: rm -fr conftest*
13471:
13472:
13473: fi
13474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13475: $as_echo "$lt_cv_dlopen_self" >&6; }
13476:
13477: if test "x$lt_cv_dlopen_self" = xyes; then
13478: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13480: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13481: if ${lt_cv_dlopen_self_static+:} false; then :
13482: $as_echo_n "(cached) " >&6
13483: else
13484: if test "$cross_compiling" = yes; then :
13485: lt_cv_dlopen_self_static=cross
13486: else
13487: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13488: lt_status=$lt_dlunknown
13489: cat > conftest.$ac_ext <<_LT_EOF
13490: #line $LINENO "configure"
13491: #include "confdefs.h"
13492:
13493: #if HAVE_DLFCN_H
13494: #include <dlfcn.h>
13495: #endif
13496:
13497: #include <stdio.h>
13498:
13499: #ifdef RTLD_GLOBAL
13500: # define LT_DLGLOBAL RTLD_GLOBAL
13501: #else
13502: # ifdef DL_GLOBAL
13503: # define LT_DLGLOBAL DL_GLOBAL
13504: # else
13505: # define LT_DLGLOBAL 0
13506: # endif
13507: #endif
13508:
13509: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13510: find out it does not work in some platform. */
13511: #ifndef LT_DLLAZY_OR_NOW
13512: # ifdef RTLD_LAZY
13513: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13514: # else
13515: # ifdef DL_LAZY
13516: # define LT_DLLAZY_OR_NOW DL_LAZY
13517: # else
13518: # ifdef RTLD_NOW
13519: # define LT_DLLAZY_OR_NOW RTLD_NOW
13520: # else
13521: # ifdef DL_NOW
13522: # define LT_DLLAZY_OR_NOW DL_NOW
13523: # else
13524: # define LT_DLLAZY_OR_NOW 0
13525: # endif
13526: # endif
13527: # endif
13528: # endif
13529: #endif
13530:
13531: /* When -fvisbility=hidden is used, assume the code has been annotated
13532: correspondingly for the symbols needed. */
13533: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13534: int fnord () __attribute__((visibility("default")));
13535: #endif
13536:
13537: int fnord () { return 42; }
13538: int main ()
13539: {
13540: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13541: int status = $lt_dlunknown;
13542:
13543: if (self)
13544: {
13545: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13546: else
13547: {
13548: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13549: else puts (dlerror ());
13550: }
13551: /* dlclose (self); */
13552: }
13553: else
13554: puts (dlerror ());
13555:
13556: return status;
13557: }
13558: _LT_EOF
13559: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13560: (eval $ac_link) 2>&5
13561: ac_status=$?
13562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13564: (./conftest; exit; ) >&5 2>/dev/null
13565: lt_status=$?
13566: case x$lt_status in
13567: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13568: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13569: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13570: esac
13571: else :
13572: # compilation failed
13573: lt_cv_dlopen_self_static=no
13574: fi
13575: fi
13576: rm -fr conftest*
13577:
13578:
13579: fi
13580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13581: $as_echo "$lt_cv_dlopen_self_static" >&6; }
13582: fi
13583:
13584: CPPFLAGS="$save_CPPFLAGS"
13585: LDFLAGS="$save_LDFLAGS"
13586: LIBS="$save_LIBS"
13587: ;;
13588: esac
13589:
13590: case $lt_cv_dlopen_self in
13591: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13592: *) enable_dlopen_self=unknown ;;
13593: esac
13594:
13595: case $lt_cv_dlopen_self_static in
13596: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13597: *) enable_dlopen_self_static=unknown ;;
13598: esac
13599: fi
13600:
13601:
13602:
13603:
13604:
13605:
13606:
13607:
13608:
13609:
13610:
13611:
13612:
13613:
13614:
13615:
13616:
13617: striplib=
13618: old_striplib=
13619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13620: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13621: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13622: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13623: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13625: $as_echo "yes" >&6; }
13626: else
13627: # FIXME - insert some real tests, host_os isn't really good enough
13628: case $host_os in
13629: darwin*)
13630: if test -n "$STRIP" ; then
13631: striplib="$STRIP -x"
13632: old_striplib="$STRIP -S"
13633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634: $as_echo "yes" >&6; }
13635: else
13636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637: $as_echo "no" >&6; }
13638: fi
13639: ;;
13640: *)
13641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642: $as_echo "no" >&6; }
13643: ;;
13644: esac
13645: fi
13646:
13647:
13648:
13649:
13650:
13651:
13652:
13653:
13654:
13655:
13656:
13657:
13658: # Report which library types will actually be built
13659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13660: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13662: $as_echo "$can_build_shared" >&6; }
13663:
13664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13665: $as_echo_n "checking whether to build shared libraries... " >&6; }
13666: test "$can_build_shared" = "no" && enable_shared=no
13667:
13668: # On AIX, shared libraries and static libraries use the same namespace, and
13669: # are all built from PIC.
13670: case $host_os in
13671: aix3*)
13672: test "$enable_shared" = yes && enable_static=no
13673: if test -n "$RANLIB"; then
13674: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13675: postinstall_cmds='$RANLIB $lib'
13676: fi
13677: ;;
13678:
13679: aix[4-9]*)
13680: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13681: test "$enable_shared" = yes && enable_static=no
13682: fi
13683: ;;
13684: esac
13685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13686: $as_echo "$enable_shared" >&6; }
13687:
13688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13689: $as_echo_n "checking whether to build static libraries... " >&6; }
13690: # Make sure either enable_shared or enable_static is yes.
13691: test "$enable_shared" = yes || enable_static=yes
13692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13693: $as_echo "$enable_static" >&6; }
13694:
13695:
13696:
13697:
13698: fi
13699: ac_ext=c
13700: ac_cpp='$CPP $CPPFLAGS'
13701: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13702: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13703: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13704:
13705: CC="$lt_save_CC"
13706:
13707:
13708:
13709:
13710:
13711:
13712:
13713:
13714:
13715:
13716:
13717:
13718:
13719: ac_config_commands="$ac_config_commands libtool"
13720:
13721:
13722:
13723:
13724: # Only expand once:
13725:
13726:
13727:
13728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
13729: $as_echo_n "checking for directory path separator... " >&6; }
13730: if ${ntp_cv_dir_sep+:} false; then :
13731: $as_echo_n "(cached) " >&6
13732: else
13733:
13734: case "$ntp_cv_dir_sep" in
13735: '')
13736: case "$target_os" in
13737: *djgpp | *mingw32* | *emx*)
13738: ntp_cv_dir_sep="'\\'"
13739: ;;
13740: *)
13741: ntp_cv_dir_sep="'/'"
13742: ;;
13743: esac
13744: esac
13745:
13746:
13747: fi
13748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
13749: $as_echo "$ntp_cv_dir_sep" >&6; }
13750:
13751: cat >>confdefs.h <<_ACEOF
13752: #define DIR_SEP $ntp_cv_dir_sep
13753: _ACEOF
13754:
13755:
13756:
13757: # Checks for libraries.
13758:
13759: LIBM=
13760: case "$host" in
13761: *-*-darwin*)
13762: ;;
13763: *)
13764: _libs=$LIBS
13765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
13766: $as_echo_n "checking for library containing cos... " >&6; }
13767: if ${ac_cv_search_cos+:} false; then :
13768: $as_echo_n "(cached) " >&6
13769: else
13770: ac_func_search_save_LIBS=$LIBS
13771: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772: /* end confdefs.h. */
13773:
13774: /* Override any GCC internal prototype to avoid an error.
13775: Use char because int might match the return type of a GCC
13776: builtin and then its argument prototype would still apply. */
13777: #ifdef __cplusplus
13778: extern "C"
13779: #endif
13780: char cos ();
13781: int
13782: main ()
13783: {
13784: return cos ();
13785: ;
13786: return 0;
13787: }
13788: _ACEOF
13789: for ac_lib in '' m; do
13790: if test -z "$ac_lib"; then
13791: ac_res="none required"
13792: else
13793: ac_res=-l$ac_lib
13794: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13795: fi
13796: if ac_fn_c_try_link "$LINENO"; then :
13797: ac_cv_search_cos=$ac_res
13798: fi
13799: rm -f core conftest.err conftest.$ac_objext \
13800: conftest$ac_exeext
13801: if ${ac_cv_search_cos+:} false; then :
13802: break
13803: fi
13804: done
13805: if ${ac_cv_search_cos+:} false; then :
13806:
13807: else
13808: ac_cv_search_cos=no
13809: fi
13810: rm conftest.$ac_ext
13811: LIBS=$ac_func_search_save_LIBS
13812: fi
13813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
13814: $as_echo "$ac_cv_search_cos" >&6; }
13815: ac_res=$ac_cv_search_cos
13816: if test "$ac_res" != no; then :
13817: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13818: LIBM="-lm"
13819: fi
13820:
13821: LIBS=$_libs
13822: ;;
13823: esac
13824:
13825: { _libs=; unset _libs;}
13826:
13827:
13828: case "$GCC" in
13829: yes)
13830: CFLAGS="$CFLAGS -Wall"
13831: # CFLAGS="$CFLAGS -Wcast-align"
13832: CFLAGS="$CFLAGS -Wcast-qual"
13833: # CFLAGS="$CFLAGS -Wconversion"
13834: # CFLAGS="$CFLAGS -Werror"
13835: # CFLAGS="$CFLAGS -Wextra"
13836: # CFLAGS="$CFLAGS -Wfloat-equal"
13837: CFLAGS="$CFLAGS -Wmissing-prototypes"
13838: CFLAGS="$CFLAGS -Wpointer-arith"
13839: CFLAGS="$CFLAGS -Wshadow"
13840: # CFLAGS="$CFLAGS -Wtraditional"
13841: # CFLAGS="$CFLAGS -Wwrite-strings"
13842: case "$ntp_cv_gcc_Winit_self" in
13843: yes)
13844: CFLAGS="$CFLAGS -Winit-self"
13845: esac
13846: case "$ntp_cv_gcc_Wstrict_overflow" in
13847: yes)
13848: CFLAGS="$CFLAGS -Wstrict-overflow"
13849: esac
13850: # -W[no-]strict-prototypes is added later depending on OpenSSL
13851: esac
13852:
13853: ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
13854: if test "x$ac_cv_func_gethostent" = xyes; then :
13855:
13856: else
13857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
13858: $as_echo_n "checking for library containing gethostent... " >&6; }
13859: if ${ac_cv_search_gethostent+:} false; then :
13860: $as_echo_n "(cached) " >&6
13861: else
13862: ac_func_search_save_LIBS=$LIBS
13863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864: /* end confdefs.h. */
13865:
13866: /* Override any GCC internal prototype to avoid an error.
13867: Use char because int might match the return type of a GCC
13868: builtin and then its argument prototype would still apply. */
13869: #ifdef __cplusplus
13870: extern "C"
13871: #endif
13872: char gethostent ();
13873: int
13874: main ()
13875: {
13876: return gethostent ();
13877: ;
13878: return 0;
13879: }
13880: _ACEOF
13881: for ac_lib in '' nsl; do
13882: if test -z "$ac_lib"; then
13883: ac_res="none required"
13884: else
13885: ac_res=-l$ac_lib
13886: LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
13887: fi
13888: if ac_fn_c_try_link "$LINENO"; then :
13889: ac_cv_search_gethostent=$ac_res
13890: fi
13891: rm -f core conftest.err conftest.$ac_objext \
13892: conftest$ac_exeext
13893: if ${ac_cv_search_gethostent+:} false; then :
13894: break
13895: fi
13896: done
13897: if ${ac_cv_search_gethostent+:} false; then :
13898:
13899: else
13900: ac_cv_search_gethostent=no
13901: fi
13902: rm conftest.$ac_ext
13903: LIBS=$ac_func_search_save_LIBS
13904: fi
13905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
13906: $as_echo "$ac_cv_search_gethostent" >&6; }
13907: ac_res=$ac_cv_search_gethostent
13908: if test "$ac_res" != no; then :
13909: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13910:
13911: fi
13912:
13913: fi
13914:
13915: ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
13916: if test "x$ac_cv_func_openlog" = xyes; then :
13917:
13918: else
13919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
13920: $as_echo_n "checking for library containing openlog... " >&6; }
13921: if ${ac_cv_search_openlog+:} false; then :
13922: $as_echo_n "(cached) " >&6
13923: else
13924: ac_func_search_save_LIBS=$LIBS
13925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926: /* end confdefs.h. */
13927:
13928: /* Override any GCC internal prototype to avoid an error.
13929: Use char because int might match the return type of a GCC
13930: builtin and then its argument prototype would still apply. */
13931: #ifdef __cplusplus
13932: extern "C"
13933: #endif
13934: char openlog ();
13935: int
13936: main ()
13937: {
13938: return openlog ();
13939: ;
13940: return 0;
13941: }
13942: _ACEOF
13943: for ac_lib in '' gen; do
13944: if test -z "$ac_lib"; then
13945: ac_res="none required"
13946: else
13947: ac_res=-l$ac_lib
13948: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13949: fi
13950: if ac_fn_c_try_link "$LINENO"; then :
13951: ac_cv_search_openlog=$ac_res
13952: fi
13953: rm -f core conftest.err conftest.$ac_objext \
13954: conftest$ac_exeext
13955: if ${ac_cv_search_openlog+:} false; then :
13956: break
13957: fi
13958: done
13959: if ${ac_cv_search_openlog+:} false; then :
13960:
13961: else
13962: ac_cv_search_openlog=no
13963: fi
13964: rm conftest.$ac_ext
13965: LIBS=$ac_func_search_save_LIBS
13966: fi
13967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
13968: $as_echo "$ac_cv_search_openlog" >&6; }
13969: ac_res=$ac_cv_search_openlog
13970: if test "$ac_res" != no; then :
13971: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13972:
13973: else
13974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
13975: $as_echo_n "checking for library containing openlog... " >&6; }
13976: if ${ac_cv_search_openlog+:} false; then :
13977: $as_echo_n "(cached) " >&6
13978: else
13979: ac_func_search_save_LIBS=$LIBS
13980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981: /* end confdefs.h. */
13982:
13983: /* Override any GCC internal prototype to avoid an error.
13984: Use char because int might match the return type of a GCC
13985: builtin and then its argument prototype would still apply. */
13986: #ifdef __cplusplus
13987: extern "C"
13988: #endif
13989: char openlog ();
13990: int
13991: main ()
13992: {
13993: return openlog ();
13994: ;
13995: return 0;
13996: }
13997: _ACEOF
13998: for ac_lib in '' syslog; do
13999: if test -z "$ac_lib"; then
14000: ac_res="none required"
14001: else
14002: ac_res=-l$ac_lib
14003: LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
14004: fi
14005: if ac_fn_c_try_link "$LINENO"; then :
14006: ac_cv_search_openlog=$ac_res
14007: fi
14008: rm -f core conftest.err conftest.$ac_objext \
14009: conftest$ac_exeext
14010: if ${ac_cv_search_openlog+:} false; then :
14011: break
14012: fi
14013: done
14014: if ${ac_cv_search_openlog+:} false; then :
14015:
14016: else
14017: ac_cv_search_openlog=no
14018: fi
14019: rm conftest.$ac_ext
14020: LIBS=$ac_func_search_save_LIBS
14021: fi
14022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
14023: $as_echo "$ac_cv_search_openlog" >&6; }
14024: ac_res=$ac_cv_search_openlog
14025: if test "$ac_res" != no; then :
14026: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14027:
14028: fi
14029:
14030: fi
14031:
14032: fi
14033:
14034:
14035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14036: $as_echo_n "checking for library containing setsockopt... " >&6; }
14037: if ${ac_cv_search_setsockopt+:} false; then :
14038: $as_echo_n "(cached) " >&6
14039: else
14040: ac_func_search_save_LIBS=$LIBS
14041: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042: /* end confdefs.h. */
14043:
14044: /* Override any GCC internal prototype to avoid an error.
14045: Use char because int might match the return type of a GCC
14046: builtin and then its argument prototype would still apply. */
14047: #ifdef __cplusplus
14048: extern "C"
14049: #endif
14050: char setsockopt ();
14051: int
14052: main ()
14053: {
14054: return setsockopt ();
14055: ;
14056: return 0;
14057: }
14058: _ACEOF
14059: for ac_lib in '' socket xnet; do
14060: if test -z "$ac_lib"; then
14061: ac_res="none required"
14062: else
14063: ac_res=-l$ac_lib
14064: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14065: fi
14066: if ac_fn_c_try_link "$LINENO"; then :
14067: ac_cv_search_setsockopt=$ac_res
14068: fi
14069: rm -f core conftest.err conftest.$ac_objext \
14070: conftest$ac_exeext
14071: if ${ac_cv_search_setsockopt+:} false; then :
14072: break
14073: fi
14074: done
14075: if ${ac_cv_search_setsockopt+:} false; then :
14076:
14077: else
14078: ac_cv_search_setsockopt=no
14079: fi
14080: rm conftest.$ac_ext
14081: LIBS=$ac_func_search_save_LIBS
14082: fi
14083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14084: $as_echo "$ac_cv_search_setsockopt" >&6; }
14085: ac_res=$ac_cv_search_setsockopt
14086: if test "$ac_res" != no; then :
14087: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14088:
14089: fi
14090:
14091:
14092: # Checks for header files.
14093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14094: $as_echo_n "checking for ANSI C header files... " >&6; }
14095: if ${ac_cv_header_stdc+:} false; then :
14096: $as_echo_n "(cached) " >&6
14097: else
14098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099: /* end confdefs.h. */
14100: #include <stdlib.h>
14101: #include <stdarg.h>
14102: #include <string.h>
14103: #include <float.h>
14104:
14105: int
14106: main ()
14107: {
14108:
14109: ;
14110: return 0;
14111: }
14112: _ACEOF
14113: if ac_fn_c_try_compile "$LINENO"; then :
14114: ac_cv_header_stdc=yes
14115: else
14116: ac_cv_header_stdc=no
14117: fi
14118: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119:
14120: if test $ac_cv_header_stdc = yes; then
14121: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123: /* end confdefs.h. */
14124: #include <string.h>
14125:
14126: _ACEOF
14127: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14128: $EGREP "memchr" >/dev/null 2>&1; then :
14129:
14130: else
14131: ac_cv_header_stdc=no
14132: fi
14133: rm -f conftest*
14134:
14135: fi
14136:
14137: if test $ac_cv_header_stdc = yes; then
14138: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14139: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140: /* end confdefs.h. */
14141: #include <stdlib.h>
14142:
14143: _ACEOF
14144: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14145: $EGREP "free" >/dev/null 2>&1; then :
14146:
14147: else
14148: ac_cv_header_stdc=no
14149: fi
14150: rm -f conftest*
14151:
14152: fi
14153:
14154: if test $ac_cv_header_stdc = yes; then
14155: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14156: if test "$cross_compiling" = yes; then :
14157: :
14158: else
14159: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160: /* end confdefs.h. */
14161: #include <ctype.h>
14162: #include <stdlib.h>
14163: #if ((' ' & 0x0FF) == 0x020)
14164: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14165: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14166: #else
14167: # define ISLOWER(c) \
14168: (('a' <= (c) && (c) <= 'i') \
14169: || ('j' <= (c) && (c) <= 'r') \
14170: || ('s' <= (c) && (c) <= 'z'))
14171: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14172: #endif
14173:
14174: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14175: int
14176: main ()
14177: {
14178: int i;
14179: for (i = 0; i < 256; i++)
14180: if (XOR (islower (i), ISLOWER (i))
14181: || toupper (i) != TOUPPER (i))
14182: return 2;
14183: return 0;
14184: }
14185: _ACEOF
14186: if ac_fn_c_try_run "$LINENO"; then :
14187:
14188: else
14189: ac_cv_header_stdc=no
14190: fi
14191: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14192: conftest.$ac_objext conftest.beam conftest.$ac_ext
14193: fi
14194:
14195: fi
14196: fi
14197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14198: $as_echo "$ac_cv_header_stdc" >&6; }
14199: if test $ac_cv_header_stdc = yes; then
14200:
14201: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14202:
14203: fi
14204:
14205:
14206: #
14207: case "$host" in
14208: *-hp-hpux*)
14209: for ac_header in net/netmp.h
14210: do :
14211: ac_fn_c_check_header_mongrel "$LINENO" "net/netmp.h" "ac_cv_header_net_netmp_h" "$ac_includes_default"
14212: if test "x$ac_cv_header_net_netmp_h" = xyes; then :
14213: cat >>confdefs.h <<_ACEOF
14214: #define HAVE_NET_NETMP_H 1
14215: _ACEOF
14216: netmp_h_works=yes
14217: else
14218: netmp_h_works=no
14219:
14220: fi
14221:
14222: done
14223:
14224: case "$netmp_h_works" in
14225: no)
14226: cat >>confdefs.h <<_ACEOF
14227: #ifndef MPINFOU_PREDECLARED
14228: # define MPINFOU_PREDECLARED
14229: typedef union mpinfou { /* For lint */
14230: struct pdk_mpinfo *pdkptr;
14231: struct mpinfo *pikptr;
14232: } mpinfou_t;
14233: #endif
14234: _ACEOF
14235:
14236: ;;
14237: esac
14238: ;;
14239: esac
14240:
14241: for ac_header in netdb.h netinet/in.h stdlib.h string.h strings.h syslog.h
14242: do :
14243: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14245: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14246: cat >>confdefs.h <<_ACEOF
14247: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14248: _ACEOF
14249:
14250: fi
14251:
14252: done
14253:
14254: for ac_header in sys/socket.h sys/time.h
14255: do :
14256: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14257: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14258: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14259: cat >>confdefs.h <<_ACEOF
14260: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14261: _ACEOF
14262:
14263: fi
14264:
14265: done
14266:
14267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14268: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14269: if ${ac_cv_header_time+:} false; then :
14270: $as_echo_n "(cached) " >&6
14271: else
14272: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273: /* end confdefs.h. */
14274: #include <sys/types.h>
14275: #include <sys/time.h>
14276: #include <time.h>
14277:
14278: int
14279: main ()
14280: {
14281: if ((struct tm *) 0)
14282: return 0;
14283: ;
14284: return 0;
14285: }
14286: _ACEOF
14287: if ac_fn_c_try_compile "$LINENO"; then :
14288: ac_cv_header_time=yes
14289: else
14290: ac_cv_header_time=no
14291: fi
14292: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293: fi
14294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14295: $as_echo "$ac_cv_header_time" >&6; }
14296: if test $ac_cv_header_time = yes; then
14297:
14298: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14299:
14300: fi
14301:
14302:
14303: # Checks for typedefs, structures, and compiler characteristics.
14304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14305: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14306: if ${ac_cv_header_stdbool_h+:} false; then :
14307: $as_echo_n "(cached) " >&6
14308: else
14309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310: /* end confdefs.h. */
14311:
14312: #include <stdbool.h>
14313: #ifndef bool
14314: "error: bool is not defined"
14315: #endif
14316: #ifndef false
14317: "error: false is not defined"
14318: #endif
14319: #if false
14320: "error: false is not 0"
14321: #endif
14322: #ifndef true
14323: "error: true is not defined"
14324: #endif
14325: #if true != 1
14326: "error: true is not 1"
14327: #endif
14328: #ifndef __bool_true_false_are_defined
14329: "error: __bool_true_false_are_defined is not defined"
14330: #endif
14331:
14332: struct s { _Bool s: 1; _Bool t; } s;
14333:
14334: char a[true == 1 ? 1 : -1];
14335: char b[false == 0 ? 1 : -1];
14336: char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14337: char d[(bool) 0.5 == true ? 1 : -1];
14338: /* See body of main program for 'e'. */
14339: char f[(_Bool) 0.0 == false ? 1 : -1];
14340: char g[true];
14341: char h[sizeof (_Bool)];
14342: char i[sizeof s.t];
14343: enum { j = false, k = true, l = false * true, m = true * 256 };
14344: /* The following fails for
14345: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14346: _Bool n[m];
14347: char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14348: char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14349: /* Catch a bug in an HP-UX C compiler. See
14350: http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14351: http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14352: */
14353: _Bool q = true;
14354: _Bool *pq = &q;
14355:
14356: int
14357: main ()
14358: {
14359:
14360: bool e = &s;
14361: *pq |= q;
14362: *pq |= ! q;
14363: /* Refer to every declared value, to avoid compiler optimizations. */
14364: return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14365: + !m + !n + !o + !p + !q + !pq);
14366:
14367: ;
14368: return 0;
14369: }
14370: _ACEOF
14371: if ac_fn_c_try_compile "$LINENO"; then :
14372: ac_cv_header_stdbool_h=yes
14373: else
14374: ac_cv_header_stdbool_h=no
14375: fi
14376: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377: fi
14378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14379: $as_echo "$ac_cv_header_stdbool_h" >&6; }
14380: ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14381: if test "x$ac_cv_type__Bool" = xyes; then :
14382:
14383: cat >>confdefs.h <<_ACEOF
14384: #define HAVE__BOOL 1
14385: _ACEOF
14386:
14387:
14388: fi
14389:
14390: if test $ac_cv_header_stdbool_h = yes; then
14391:
14392: $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14393:
14394: fi
14395:
14396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14397: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14398: if ${ac_cv_c_const+:} false; then :
14399: $as_echo_n "(cached) " >&6
14400: else
14401: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402: /* end confdefs.h. */
14403:
14404: int
14405: main ()
14406: {
14407: /* FIXME: Include the comments suggested by Paul. */
14408: #ifndef __cplusplus
14409: /* Ultrix mips cc rejects this. */
14410: typedef int charset[2];
14411: const charset cs;
14412: /* SunOS 4.1.1 cc rejects this. */
14413: char const *const *pcpcc;
14414: char **ppc;
14415: /* NEC SVR4.0.2 mips cc rejects this. */
14416: struct point {int x, y;};
14417: static struct point const zero = {0,0};
14418: /* AIX XL C 1.02.0.0 rejects this.
14419: It does not let you subtract one const X* pointer from another in
14420: an arm of an if-expression whose if-part is not a constant
14421: expression */
14422: const char *g = "string";
14423: pcpcc = &g + (g ? g-g : 0);
14424: /* HPUX 7.0 cc rejects these. */
14425: ++pcpcc;
14426: ppc = (char**) pcpcc;
14427: pcpcc = (char const *const *) ppc;
14428: { /* SCO 3.2v4 cc rejects this. */
14429: char *t;
14430: char const *s = 0 ? (char *) 0 : (char const *) 0;
14431:
14432: *t++ = 0;
14433: if (s) return 0;
14434: }
14435: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14436: int x[] = {25, 17};
14437: const int *foo = &x[0];
14438: ++foo;
14439: }
14440: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14441: typedef const int *iptr;
14442: iptr p = 0;
14443: ++p;
14444: }
14445: { /* AIX XL C 1.02.0.0 rejects this saying
14446: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14447: struct s { int j; const int *ap[3]; };
14448: struct s *b; b->j = 5;
14449: }
14450: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14451: const int foo = 10;
14452: if (!foo) return 0;
14453: }
14454: return !cs[0] && !zero.x;
14455: #endif
14456:
14457: ;
14458: return 0;
14459: }
14460: _ACEOF
14461: if ac_fn_c_try_compile "$LINENO"; then :
14462: ac_cv_c_const=yes
14463: else
14464: ac_cv_c_const=no
14465: fi
14466: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467: fi
14468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14469: $as_echo "$ac_cv_c_const" >&6; }
14470: if test $ac_cv_c_const = no; then
14471:
14472: $as_echo "#define const /**/" >>confdefs.h
14473:
14474: fi
14475:
14476: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14477: if test "x$ac_cv_type_size_t" = xyes; then :
14478:
14479: else
14480:
14481: cat >>confdefs.h <<_ACEOF
14482: #define size_t unsigned int
14483: _ACEOF
14484:
14485: fi
14486:
14487: # The cast to long int works around a bug in the HP C Compiler
14488: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14489: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14490: # This bug is HP SR number 8606223364.
14491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14492: $as_echo_n "checking size of time_t... " >&6; }
14493: if ${ac_cv_sizeof_time_t+:} false; then :
14494: $as_echo_n "(cached) " >&6
14495: else
14496: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
14497:
14498: else
14499: if test "$ac_cv_type_time_t" = yes; then
14500: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14501: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14502: as_fn_error 77 "cannot compute sizeof (time_t)
14503: See \`config.log' for more details" "$LINENO" 5; }
14504: else
14505: ac_cv_sizeof_time_t=0
14506: fi
14507: fi
14508:
14509: fi
14510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14511: $as_echo "$ac_cv_sizeof_time_t" >&6; }
14512:
14513:
14514:
14515: cat >>confdefs.h <<_ACEOF
14516: #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14517: _ACEOF
14518:
14519:
14520:
14521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14522: $as_echo_n "checking for inline... " >&6; }
14523: if ${ac_cv_c_inline+:} false; then :
14524: $as_echo_n "(cached) " >&6
14525: else
14526: ac_cv_c_inline=no
14527: for ac_kw in inline __inline__ __inline; do
14528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529: /* end confdefs.h. */
14530: #ifndef __cplusplus
14531: typedef int foo_t;
14532: static $ac_kw foo_t static_foo () {return 0; }
14533: $ac_kw foo_t foo () {return 0; }
14534: #endif
14535:
14536: _ACEOF
14537: if ac_fn_c_try_compile "$LINENO"; then :
14538: ac_cv_c_inline=$ac_kw
14539: fi
14540: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541: test "$ac_cv_c_inline" != no && break
14542: done
14543:
14544: fi
14545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14546: $as_echo "$ac_cv_c_inline" >&6; }
14547:
14548: case $ac_cv_c_inline in
14549: inline | yes) ;;
14550: *)
14551: case $ac_cv_c_inline in
14552: no) ac_val=;;
14553: *) ac_val=$ac_cv_c_inline;;
14554: esac
14555: cat >>confdefs.h <<_ACEOF
14556: #ifndef __cplusplus
14557: #define inline $ac_val
14558: #endif
14559: _ACEOF
14560: ;;
14561: esac
14562:
14563:
14564: case "$ac_cv_c_inline" in
14565: '')
14566: ;;
14567: *)
14568:
14569: $as_echo "#define HAVE_INLINE 1" >>confdefs.h
14570:
14571:
14572: esac
14573:
14574: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
14575: $as_echo_n "checking whether char is unsigned... " >&6; }
14576: if ${ac_cv_c_char_unsigned+:} false; then :
14577: $as_echo_n "(cached) " >&6
14578: else
14579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580: /* end confdefs.h. */
14581: $ac_includes_default
14582: int
14583: main ()
14584: {
14585: static int test_array [1 - 2 * !(((char) -1) < 0)];
14586: test_array [0] = 0
14587:
14588: ;
14589: return 0;
14590: }
14591: _ACEOF
14592: if ac_fn_c_try_compile "$LINENO"; then :
14593: ac_cv_c_char_unsigned=no
14594: else
14595: ac_cv_c_char_unsigned=yes
14596: fi
14597: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598: fi
14599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
14600: $as_echo "$ac_cv_c_char_unsigned" >&6; }
14601: if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
14602: $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
14603:
14604: fi
14605: # The cast to long int works around a bug in the HP C Compiler
14606: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14607: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14608: # This bug is HP SR number 8606223364.
14609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
14610: $as_echo_n "checking size of signed char... " >&6; }
14611: if ${ac_cv_sizeof_signed_char+:} false; then :
14612: $as_echo_n "(cached) " >&6
14613: else
14614: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
14615:
14616: else
14617: if test "$ac_cv_type_signed_char" = yes; then
14618: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14619: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14620: as_fn_error 77 "cannot compute sizeof (signed char)
14621: See \`config.log' for more details" "$LINENO" 5; }
14622: else
14623: ac_cv_sizeof_signed_char=0
14624: fi
14625: fi
14626:
14627: fi
14628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
14629: $as_echo "$ac_cv_sizeof_signed_char" >&6; }
14630:
14631:
14632:
14633: cat >>confdefs.h <<_ACEOF
14634: #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14635: _ACEOF
14636:
14637:
14638: # The cast to long int works around a bug in the HP C Compiler
14639: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14640: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14641: # This bug is HP SR number 8606223364.
14642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14643: $as_echo_n "checking size of int... " >&6; }
14644: if ${ac_cv_sizeof_int+:} false; then :
14645: $as_echo_n "(cached) " >&6
14646: else
14647: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14648:
14649: else
14650: if test "$ac_cv_type_int" = yes; then
14651: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14652: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14653: as_fn_error 77 "cannot compute sizeof (int)
14654: See \`config.log' for more details" "$LINENO" 5; }
14655: else
14656: ac_cv_sizeof_int=0
14657: fi
14658: fi
14659:
14660: fi
14661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14662: $as_echo "$ac_cv_sizeof_int" >&6; }
14663:
14664:
14665:
14666: cat >>confdefs.h <<_ACEOF
14667: #define SIZEOF_INT $ac_cv_sizeof_int
14668: _ACEOF
14669:
14670:
14671: # The cast to long int works around a bug in the HP C Compiler
14672: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14673: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14674: # This bug is HP SR number 8606223364.
14675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14676: $as_echo_n "checking size of long... " >&6; }
14677: if ${ac_cv_sizeof_long+:} false; then :
14678: $as_echo_n "(cached) " >&6
14679: else
14680: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14681:
14682: else
14683: if test "$ac_cv_type_long" = yes; then
14684: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14685: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14686: as_fn_error 77 "cannot compute sizeof (long)
14687: See \`config.log' for more details" "$LINENO" 5; }
14688: else
14689: ac_cv_sizeof_long=0
14690: fi
14691: fi
14692:
14693: fi
14694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14695: $as_echo "$ac_cv_sizeof_long" >&6; }
14696:
14697:
14698:
14699: cat >>confdefs.h <<_ACEOF
14700: #define SIZEOF_LONG $ac_cv_sizeof_long
14701: _ACEOF
14702:
14703:
14704:
14705: ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
14706: if test "x$ac_cv_type_s_char" = xyes; then :
14707:
14708: cat >>confdefs.h <<_ACEOF
14709: #define HAVE_S_CHAR 1
14710: _ACEOF
14711:
14712:
14713: fi
14714:
14715: case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
14716: *yes)
14717: # We have a typedef for s_char. Might as well believe it...
14718: ;;
14719: no0no)
14720: # We have signed chars, can't say 'signed char', no s_char typedef.
14721:
14722: $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
14723:
14724: ;;
14725: no1no)
14726: # We have signed chars, can say 'signed char', no s_char typedef.
14727: $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
14728:
14729: ;;
14730: yes0no)
14731: # We have unsigned chars, can't say 'signed char', no s_char typedef.
14732: as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
14733: ;;
14734: yes1no)
14735: # We have unsigned chars, can say 'signed char', no s_char typedef.
14736: $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
14737:
14738: ;;
14739: esac
14740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14741: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14742: if ${ac_cv_type_uid_t+:} false; then :
14743: $as_echo_n "(cached) " >&6
14744: else
14745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746: /* end confdefs.h. */
14747: #include <sys/types.h>
14748:
14749: _ACEOF
14750: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14751: $EGREP "uid_t" >/dev/null 2>&1; then :
14752: ac_cv_type_uid_t=yes
14753: else
14754: ac_cv_type_uid_t=no
14755: fi
14756: rm -f conftest*
14757:
14758: fi
14759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14760: $as_echo "$ac_cv_type_uid_t" >&6; }
14761: if test $ac_cv_type_uid_t = no; then
14762:
14763: $as_echo "#define uid_t int" >>confdefs.h
14764:
14765:
14766: $as_echo "#define gid_t int" >>confdefs.h
14767:
14768: fi
14769:
14770:
14771:
14772:
14773:
14774:
14775:
14776:
14777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
14778: $as_echo_n "checking for openssl library directory... " >&6; }
14779:
14780: # Check whether --with-openssl-libdir was given.
14781: if test "${with_openssl_libdir+set}" = set; then :
14782: withval=$with_openssl_libdir; ans=$withval
14783: else
14784:
14785: case "$build" in
14786: $host) ans=yes ;;
14787: *) ans=no ;;
14788: esac
14789:
14790:
14791: fi
14792:
14793: case "$ans" in
14794: no)
14795: ;;
14796: yes) # Look in:
14797: ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib /lib"
14798: ;;
14799: *) # Look where they said
14800: ;;
14801: esac
14802: case "$ans" in
14803: no)
14804: ;;
14805: *) # Look for libcrypto.a and libssl.a:
14806: for i in $ans no
14807: do
14808: case "$host" in
14809: *-*-darwin*)
14810: test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
14811: ;;
14812: *)
14813: test -f $i/libcrypto.so -a -f $i/libssl.so && break
14814: test -f $i/libcrypto.a -a -f $i/libssl.a && break
14815: ;;
14816: esac
14817: done
14818: case "$i" in
14819: no)
14820: ans=no
14821: OPENSSL_LIB=
14822: ;;
14823: *) ans=$i
14824: OPENSSL_LIB=$ans
14825: ;;
14826: esac
14827: ;;
14828: esac
14829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
14830: $as_echo "$ans" >&6; }
14831:
14832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
14833: $as_echo_n "checking for openssl include directory... " >&6; }
14834:
14835: # Check whether --with-openssl-incdir was given.
14836: if test "${with_openssl_incdir+set}" = set; then :
14837: withval=$with_openssl_incdir; ans=$withval
14838: else
14839:
14840: case "$build" in
14841: $host) ans=yes ;;
14842: *) ans=no ;;
14843: esac
14844:
14845:
14846: fi
14847:
14848: case "$ans" in
14849: no)
14850: ;;
14851: yes) # look in:
14852: ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
14853: ;;
14854: *) # Look where they said
14855: ;;
14856: esac
14857: case "$ans" in
14858: no)
14859: ;;
14860: *) # look for openssl/opensslconf.h:
14861: for i in $ans no
14862: do
14863: test -f $i/openssl/opensslconf.h && break
14864: done
14865: case "$i" in
14866: no)
14867: ans=no
14868: OPENSSL_INC=
14869: ;;
14870: *) ans=$i
14871: OPENSSL_INC=$ans
14872: ;;
14873: esac
14874: ;;
14875: esac
14876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
14877: $as_echo "$ans" >&6; }
14878:
14879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
14880: $as_echo_n "checking if we will use crypto... " >&6; }
14881:
14882: # Check whether --with-crypto was given.
14883: if test "${with_crypto+set}" = set; then :
14884: withval=$with_crypto; ans=$withval
14885: else
14886: ans=yes
14887:
14888: fi
14889:
14890: case "$ans" in
14891: no)
14892: ;;
14893: yes|openssl)
14894: if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
14895: then
14896: ans=no
14897: else
14898: ans=yes
14899: fi
14900: esac
14901: ntp_openssl=$ans
14902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
14903: $as_echo "$ans" >&6; }
14904:
14905: case "$ntp_openssl" in
14906: yes)
14907: # We have OpenSSL inc/lib - use them.
14908: case "$OPENSSL_INC" in
14909: /usr/include)
14910: ;;
14911: *)
14912: CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
14913: ;;
14914: esac
14915: case "$OPENSSL_LIB" in
14916: /usr/lib)
14917: ;;
14918: *)
14919: LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
14920: case "$need_dash_r" in
14921: 1)
14922: LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
14923: esac
14924: ;;
14925: esac
14926: LCRYPTO=-lcrypto
14927:
14928:
14929: $as_echo "#define OPENSSL 1" >>confdefs.h
14930:
14931: esac
14932:
14933: #
14934: # check for linking with -lcrypto failure, and try -lz -lcrypto.
14935: # Helps m68k-atari-mint
14936: #
14937: case "$ntp_openssl" in
14938: yes)
14939: NTPO_SAVED_LIBS="$LIBS"
14940: LIBS="$NTPO_SAVED_LIBS $LCRYPTO"
14941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO alone works" >&5
14942: $as_echo_n "checking if linking with $LCRYPTO alone works... " >&6; }
14943: if ${ntp_cv_bare_lcrypto+:} false; then :
14944: $as_echo_n "(cached) " >&6
14945: else
14946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947: /* end confdefs.h. */
14948:
14949: #include "openssl/err.h"
14950: #include "openssl/evp.h"
14951:
14952: int
14953: main ()
14954: {
14955:
14956: ERR_load_crypto_strings();
14957: OpenSSL_add_all_algorithms();
14958:
14959:
14960: ;
14961: return 0;
14962: }
14963: _ACEOF
14964: if ac_fn_c_try_link "$LINENO"; then :
14965: ntp_cv_bare_lcrypto=yes
14966: else
14967: ntp_cv_bare_lcrypto=no
14968:
14969: fi
14970: rm -f core conftest.err conftest.$ac_objext \
14971: conftest$ac_exeext conftest.$ac_ext
14972:
14973: fi
14974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
14975: $as_echo "$ntp_cv_bare_lcrypto" >&6; }
14976: case "$ntp_cv_bare_lcrypto" in
14977: no)
14978: LIBS="$NTPO_SAVED_LIBS $LCRYPTO -lz"
14979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with $LCRYPTO -lz works" >&5
14980: $as_echo_n "checking if linking with $LCRYPTO -lz works... " >&6; }
14981: if ${ntp_cv_lcrypto_lz+:} false; then :
14982: $as_echo_n "(cached) " >&6
14983: else
14984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985: /* end confdefs.h. */
14986:
14987: #include "openssl/err.h"
14988: #include "openssl/evp.h"
14989:
14990: int
14991: main ()
14992: {
14993:
14994: ERR_load_crypto_strings();
14995: OpenSSL_add_all_algorithms();
14996:
14997:
14998: ;
14999: return 0;
15000: }
15001: _ACEOF
15002: if ac_fn_c_try_link "$LINENO"; then :
15003: ntp_cv_lcrypto_lz=yes
15004: else
15005: ntp_cv_lcrypto_lz=no
15006:
15007: fi
15008: rm -f core conftest.err conftest.$ac_objext \
15009: conftest$ac_exeext conftest.$ac_ext
15010:
15011: fi
15012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
15013: $as_echo "$ntp_cv_lcrypto_lz" >&6; }
15014: case "$ntp_cv_lcrypto_lz" in
15015: yes)
15016: LCRYPTO="$LCRYPTO -lz"
15017: esac
15018: esac
15019: LIBS="$NTPO_SAVED_LIBS"
15020: { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
15021: esac
15022:
15023: #
15024: # Older OpenSSL headers have a number of callback prototypes inside
15025: # other function prototypes which trigger copious warnings with gcc's
15026: # -Wstrict-prototypes, which is included in -Wall.
15027: #
15028: # An example:
15029: #
15030: # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
15031: # int (*cb)(), int sgckey);
15032: # ^^^^^^^^^^^
15033: #
15034: #
15035: #
15036: openssl_triggers_warnings=unknown
15037: SAVED_CFLAGS="$CFLAGS"
15038:
15039: case "$GCC$ntp_openssl" in
15040: yesyes)
15041: CFLAGS="$CFLAGS -Werror"
15042: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043: /* end confdefs.h. */
15044:
15045:
15046: int
15047: main ()
15048: {
15049:
15050: /* see if -Werror breaks gcc */
15051:
15052:
15053: ;
15054: return 0;
15055: }
15056: _ACEOF
15057: if ac_fn_c_try_compile "$LINENO"; then :
15058: gcc_handles_Werror=yes
15059: else
15060: gcc_handles_Werror=no
15061:
15062: fi
15063: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064: case "$gcc_handles_Werror" in
15065: no)
15066: # if this gcc doesn't do -Werror go ahead and use
15067: # -Wstrict-prototypes.
15068: openssl_triggers_warnings=yes
15069: ;;
15070: yes)
15071: CFLAGS="$CFLAGS -Wstrict-prototypes"
15072: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073: /* end confdefs.h. */
15074:
15075: #include "openssl/asn1_mac.h"
15076: #include "openssl/bn.h"
15077: #include "openssl/err.h"
15078: #include "openssl/evp.h"
15079: #include "openssl/pem.h"
15080: #include "openssl/rand.h"
15081: #include "openssl/x509v3.h"
15082:
15083: int
15084: main ()
15085: {
15086:
15087: /* empty body */
15088:
15089:
15090: ;
15091: return 0;
15092: }
15093: _ACEOF
15094: if ac_fn_c_try_compile "$LINENO"; then :
15095: openssl_triggers_warnings=no
15096: else
15097: openssl_triggers_warnings=yes
15098:
15099: fi
15100: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101: esac
15102: case "$openssl_triggers_warnings" in
15103: yes)
15104: CFLAGS="$SAVED_CFLAGS -Wno-strict-prototypes"
15105: ;;
15106: *)
15107: CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
15108: esac
15109: ;;
15110: yesno)
15111: # gcc without OpenSSL
15112: CFLAGS="$SAVED_CFLAGS -Wstrict-prototypes"
15113: esac
15114:
15115:
15116:
15117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
15118: $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
15119: if ${ntp_cv_getsockname_socklen_type+:} false; then :
15120: $as_echo_n "(cached) " >&6
15121: else
15122:
15123: getsockname_socklen_type_found=no
15124: for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
15125: for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
15126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127: /* end confdefs.h. */
15128:
15129: #ifdef HAVE_SYS_TYPES_H
15130: # include <sys/types.h>
15131: #endif
15132: #ifdef HAVE_SYS_SOCKET_H
15133: # include <sys/socket.h>
15134: #endif
15135:
15136: int
15137: main ()
15138: {
15139:
15140: extern
15141: getsockname(int, $getsockname_arg2,
15142: $ntp_cv_getsockname_socklen_type *);
15143:
15144:
15145: ;
15146: return 0;
15147: }
15148: _ACEOF
15149: if ac_fn_c_try_compile "$LINENO"; then :
15150: getsockname_socklen_type_found=yes ; break 2
15151: fi
15152: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153: done
15154: done
15155: case "$getsockname_socklen_type_found" in
15156: no)
15157: ntp_cv_getsockname_socklen_type='socklen_t'
15158: esac
15159: { getsockname_arg2=; unset getsockname_arg2;}
15160: { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
15161:
15162:
15163: fi
15164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
15165: $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
15166:
15167: cat >>confdefs.h <<_ACEOF
15168: #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
15169: _ACEOF
15170:
15171:
15172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
15173: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15174: if ${ntp_cv_sockaddr_storage+:} false; then :
15175: $as_echo_n "(cached) " >&6
15176: else
15177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178: /* end confdefs.h. */
15179:
15180: #ifdef HAVE_SYS_TYPES_H
15181: # include <sys/types.h>
15182: #endif
15183: #ifdef HAVE_SYS_SOCKET_H
15184: # include <sys/socket.h>
15185: #endif
15186: #ifdef HAVE_NETINET_IN_H
15187: # include <netinet/in.h>
15188: #endif
15189:
15190: int
15191: main ()
15192: {
15193:
15194: struct sockaddr_storage n;
15195:
15196:
15197: ;
15198: return 0;
15199: }
15200: _ACEOF
15201: if ac_fn_c_try_compile "$LINENO"; then :
15202: ntp_cv_sockaddr_storage=yes
15203: else
15204: ntp_cv_sockaddr_storage=no
15205:
15206: fi
15207: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208:
15209: fi
15210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
15211: $as_echo "$ntp_cv_sockaddr_storage" >&6; }
15212: case "$ntp_cv_sockaddr_storage" in
15213: yes)
15214:
15215: $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
15216:
15217: esac
15218:
15219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
15220: $as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
15221: if ${ntp_cv_have_ss_family+:} false; then :
15222: $as_echo_n "(cached) " >&6
15223: else
15224: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225: /* end confdefs.h. */
15226:
15227: #ifdef HAVE_SYS_TYPES_H
15228: # include <sys/types.h>
15229: #endif
15230: #ifdef HAVE_SYS_SOCKET_H
15231: # include <sys/socket.h>
15232: #endif
15233: #ifdef HAVE_NETINET_IN_H
15234: # include <netinet/in.h>
15235: #endif
15236:
15237: int
15238: main ()
15239: {
15240:
15241: struct sockaddr_storage s;
15242: s.ss_family = 1;
15243:
15244:
15245: ;
15246: return 0;
15247: }
15248: _ACEOF
15249: if ac_fn_c_try_compile "$LINENO"; then :
15250: ntp_cv_have_ss_family=yes
15251: else
15252: ntp_cv_have_ss_family=no
15253:
15254: fi
15255: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256:
15257: fi
15258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
15259: $as_echo "$ntp_cv_have_ss_family" >&6; }
15260:
15261: case "$ntp_cv_have_ss_family" in
15262: no)
15263: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
15264: $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
15265: if ${ntp_cv_have___ss_family+:} false; then :
15266: $as_echo_n "(cached) " >&6
15267: else
15268: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269: /* end confdefs.h. */
15270:
15271: #ifdef HAVE_SYS_TYPES_H
15272: # include <sys/types.h>
15273: #endif
15274: #ifdef HAVE_SYS_SOCKET_H
15275: # include <sys/socket.h>
15276: #endif
15277: #ifdef HAVE_NETINET_IN_H
15278: # include <netinet/in.h>
15279: #endif
15280:
15281: int
15282: main ()
15283: {
15284:
15285: struct sockaddr_storage s;
15286: s.__ss_family = 1;
15287:
15288:
15289: ;
15290: return 0;
15291: }
15292: _ACEOF
15293: if ac_fn_c_try_compile "$LINENO"; then :
15294: ntp_cv_have___ss_family=yes
15295: else
15296: ntp_cv_have___ss_family=no
15297:
15298: fi
15299: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15300:
15301: fi
15302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
15303: $as_echo "$ntp_cv_have___ss_family" >&6; }
15304: case "$ntp_cv_have___ss_family" in
15305: yes)
15306:
15307: $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
15308:
15309: esac
15310: esac
15311:
15312:
15313:
15314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
15315: $as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
15316: if ${ntp_cv_have_ss_len+:} false; then :
15317: $as_echo_n "(cached) " >&6
15318: else
15319: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320: /* end confdefs.h. */
15321:
15322: #ifdef HAVE_SYS_TYPES_H
15323: # include <sys/types.h>
15324: #endif
15325: #ifdef HAVE_SYS_SOCKET_H
15326: # include <sys/socket.h>
15327: #endif
15328: #ifdef HAVE_NETINET_IN_H
15329: # include <netinet/in.h>
15330: #endif
15331:
15332: int
15333: main ()
15334: {
15335:
15336: struct sockaddr_storage s;
15337: s.ss_len = 1;
15338:
15339:
15340: ;
15341: return 0;
15342: }
15343: _ACEOF
15344: if ac_fn_c_try_compile "$LINENO"; then :
15345: ntp_cv_have_ss_len=yes
15346: else
15347: ntp_cv_have_ss_len=no
15348:
15349: fi
15350: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351:
15352: fi
15353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
15354: $as_echo "$ntp_cv_have_ss_len" >&6; }
15355:
15356: case "$ntp_cv_have_ss_len" in
15357: no)
15358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
15359: $as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
15360: if ${ntp_cv_have___ss_len+:} false; then :
15361: $as_echo_n "(cached) " >&6
15362: else
15363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364: /* end confdefs.h. */
15365:
15366: #ifdef HAVE_SYS_TYPES_H
15367: # include <sys/types.h>
15368: #endif
15369: #ifdef HAVE_SYS_SOCKET_H
15370: # include <sys/socket.h>
15371: #endif
15372: #ifdef HAVE_NETINET_IN_H
15373: # include <netinet/in.h>
15374: #endif
15375:
15376: int
15377: main ()
15378: {
15379:
15380: struct sockaddr_storage s;
15381: s.__ss_len = 1;
15382:
15383:
15384: ;
15385: return 0;
15386: }
15387: _ACEOF
15388: if ac_fn_c_try_compile "$LINENO"; then :
15389: ntp_cv_have___ss_len=yes
15390: else
15391: ntp_cv_have___ss_len=no
15392:
15393: fi
15394: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395:
15396: fi
15397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
15398: $as_echo "$ntp_cv_have___ss_len" >&6; }
15399: case "$ntp_cv_have___ss_len" in
15400: yes)
15401:
15402: $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
15403:
15404: esac
15405: esac
15406:
15407:
15408:
15409: #
15410: # Look for in_port_t.
15411: #
15412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
15413: $as_echo_n "checking for in_port_t... " >&6; }
15414: if ${isc_cv_have_in_port_t+:} false; then :
15415: $as_echo_n "(cached) " >&6
15416: else
15417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418: /* end confdefs.h. */
15419:
15420: #include <sys/types.h>
15421: #include <netinet/in.h>
15422:
15423: int
15424: main ()
15425: {
15426:
15427: in_port_t port = 25;
15428: return (0);
15429:
15430:
15431: ;
15432: return 0;
15433: }
15434: _ACEOF
15435: if ac_fn_c_try_compile "$LINENO"; then :
15436: isc_cv_have_in_port_t=yes
15437: else
15438: isc_cv_have_in_port_t=no
15439:
15440: fi
15441: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442:
15443: fi
15444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
15445: $as_echo "$isc_cv_have_in_port_t" >&6; }
15446: case "$isc_cv_have_in_port_t" in
15447: no)
15448:
15449: $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
15450:
15451: esac
15452:
15453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
15454: $as_echo_n "checking for multicast IP support... " >&6; }
15455: if ${ntp_cv_multicast+:} false; then :
15456: $as_echo_n "(cached) " >&6
15457: else
15458:
15459: ntp_cv_multicast=no
15460: case "$host" in
15461: i386-sequent-sysv4)
15462: ;;
15463: *)
15464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465: /* end confdefs.h. */
15466:
15467: #ifdef HAVE_NETINET_IN_H
15468: #include <netinet/in.h>
15469: #endif
15470:
15471: int
15472: main ()
15473: {
15474:
15475: struct ip_mreq ipmr;
15476: ipmr.imr_interface.s_addr = 0;
15477:
15478:
15479: ;
15480: return 0;
15481: }
15482: _ACEOF
15483: if ac_fn_c_try_compile "$LINENO"; then :
15484: ntp_cv_multicast=yes
15485: fi
15486: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487: esac
15488:
15489:
15490: fi
15491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
15492: $as_echo "$ntp_cv_multicast" >&6; }
15493: case "$ntp_cv_multicast" in
15494: yes)
15495:
15496: $as_echo "#define MCAST 1" >>confdefs.h
15497:
15498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
15499: $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
15500: if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
15501: $as_echo_n "(cached) " >&6
15502: else
15503:
15504: case "$host" in
15505: *-*-netbsd*|*-*-*linux*)
15506: ntp_cv_typeof_ip_multicast_loop=u_int
15507: ;;
15508: *)
15509: ntp_cv_typeof_ip_multicast_loop=u_char
15510: esac
15511:
15512:
15513: fi
15514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
15515: $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
15516:
15517: cat >>confdefs.h <<_ACEOF
15518: #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
15519: _ACEOF
15520:
15521: esac
15522:
15523: # HMS: We don't need res_init, but since we may be using cached
15524: # values from ntpd we need to test the same way
15525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
15526: $as_echo_n "checking for library containing res_init... " >&6; }
15527: if ${ac_cv_search_res_init+:} false; then :
15528: $as_echo_n "(cached) " >&6
15529: else
15530: ac_func_search_save_LIBS=$LIBS
15531: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532: /* end confdefs.h. */
15533:
15534: /* Override any GCC internal prototype to avoid an error.
15535: Use char because int might match the return type of a GCC
15536: builtin and then its argument prototype would still apply. */
15537: #ifdef __cplusplus
15538: extern "C"
15539: #endif
15540: char res_init ();
15541: int
15542: main ()
15543: {
15544: return res_init ();
15545: ;
15546: return 0;
15547: }
15548: _ACEOF
15549: for ac_lib in '' resolv; do
15550: if test -z "$ac_lib"; then
15551: ac_res="none required"
15552: else
15553: ac_res=-l$ac_lib
15554: LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
15555: fi
15556: if ac_fn_c_try_link "$LINENO"; then :
15557: ac_cv_search_res_init=$ac_res
15558: fi
15559: rm -f core conftest.err conftest.$ac_objext \
15560: conftest$ac_exeext
15561: if ${ac_cv_search_res_init+:} false; then :
15562: break
15563: fi
15564: done
15565: if ${ac_cv_search_res_init+:} false; then :
15566:
15567: else
15568: ac_cv_search_res_init=no
15569: fi
15570: rm conftest.$ac_ext
15571: LIBS=$ac_func_search_save_LIBS
15572: fi
15573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
15574: $as_echo "$ac_cv_search_res_init" >&6; }
15575: ac_res=$ac_cv_search_res_init
15576: if test "$ac_res" != no; then :
15577: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15578:
15579: fi
15580:
15581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
15582: $as_echo_n "checking for library containing inet_ntop... " >&6; }
15583: if ${ac_cv_search_inet_ntop+:} false; then :
15584: $as_echo_n "(cached) " >&6
15585: else
15586: ac_func_search_save_LIBS=$LIBS
15587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588: /* end confdefs.h. */
15589:
15590: /* Override any GCC internal prototype to avoid an error.
15591: Use char because int might match the return type of a GCC
15592: builtin and then its argument prototype would still apply. */
15593: #ifdef __cplusplus
15594: extern "C"
15595: #endif
15596: char inet_ntop ();
15597: int
15598: main ()
15599: {
15600: return inet_ntop ();
15601: ;
15602: return 0;
15603: }
15604: _ACEOF
15605: for ac_lib in '' resolv; do
15606: if test -z "$ac_lib"; then
15607: ac_res="none required"
15608: else
15609: ac_res=-l$ac_lib
15610: LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
15611: fi
15612: if ac_fn_c_try_link "$LINENO"; then :
15613: ac_cv_search_inet_ntop=$ac_res
15614: fi
15615: rm -f core conftest.err conftest.$ac_objext \
15616: conftest$ac_exeext
15617: if ${ac_cv_search_inet_ntop+:} false; then :
15618: break
15619: fi
15620: done
15621: if ${ac_cv_search_inet_ntop+:} false; then :
15622:
15623: else
15624: ac_cv_search_inet_ntop=no
15625: fi
15626: rm conftest.$ac_ext
15627: LIBS=$ac_func_search_save_LIBS
15628: fi
15629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
15630: $as_echo "$ac_cv_search_inet_ntop" >&6; }
15631: ac_res=$ac_cv_search_inet_ntop
15632: if test "$ac_res" != no; then :
15633: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15634:
15635: fi
15636:
15637: ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15638: if test "x$ac_cv_func_inet_ntop" = xyes; then :
15639:
15640: else
15641:
15642: $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
15643:
15644: fi
15645:
15646: ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15647: if test "x$ac_cv_func_inet_pton" = xyes; then :
15648:
15649: else
15650:
15651: $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
15652:
15653: fi
15654:
15655:
15656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
15657: $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
15658: if ${isc_cv_platform_havesalen+:} false; then :
15659: $as_echo_n "(cached) " >&6
15660: else
15661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662: /* end confdefs.h. */
15663:
15664: #include <sys/types.h>
15665: #include <sys/socket.h>
15666:
15667: int
15668: main ()
15669: {
15670:
15671: extern struct sockaddr *ps;
15672: return ps->sa_len;
15673:
15674:
15675: ;
15676: return 0;
15677: }
15678: _ACEOF
15679: if ac_fn_c_try_compile "$LINENO"; then :
15680: isc_cv_platform_havesalen=yes
15681: else
15682: isc_cv_platform_havesalen=no
15683:
15684: fi
15685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686:
15687: fi
15688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
15689: $as_echo "$isc_cv_platform_havesalen" >&6; }
15690: case "$isc_cv_platform_havesalen" in
15691: yes)
15692:
15693: $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
15694:
15695: esac
15696:
15697: # Check whether --enable-ipv6 was given.
15698: if test "${enable_ipv6+set}" = set; then :
15699: enableval=$enable_ipv6;
15700: fi
15701:
15702:
15703: case "$enable_ipv6" in
15704: yes|''|autodetect)
15705: case "$host" in
15706: powerpc-ibm-aix4*)
15707: ;;
15708: *)
15709:
15710: $as_echo "#define WANT_IPV6 1" >>confdefs.h
15711:
15712: ;;
15713: esac
15714: ;;
15715: no)
15716: ;;
15717: esac
15718:
15719:
15720: case "$host" in
15721: *-*-darwin*)
15722:
15723: $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
15724:
15725: esac
15726:
15727:
15728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
15729: $as_echo_n "checking for IPv6 structures... " >&6; }
15730: if ${isc_cv_found_ipv6+:} false; then :
15731: $as_echo_n "(cached) " >&6
15732: else
15733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734: /* end confdefs.h. */
15735:
15736: #include <sys/types.h>
15737: #include <sys/socket.h>
15738: #include <netinet/in.h>
15739:
15740: int
15741: main ()
15742: {
15743:
15744: struct sockaddr_in6 sin6;
15745:
15746:
15747: ;
15748: return 0;
15749: }
15750: _ACEOF
15751: if ac_fn_c_try_compile "$LINENO"; then :
15752: isc_cv_found_ipv6=yes
15753: else
15754: isc_cv_found_ipv6=no
15755:
15756: fi
15757: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15758:
15759: fi
15760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
15761: $as_echo "$isc_cv_found_ipv6" >&6; }
15762:
15763: #
15764: # See whether IPv6 support is provided via a Kame add-on.
15765: # This is done before other IPv6 linking tests so LIBS is properly set.
15766: #
15767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
15768: $as_echo_n "checking for Kame IPv6 support... " >&6; }
15769:
15770: # Check whether --with-kame was given.
15771: if test "${with_kame+set}" = set; then :
15772: withval=$with_kame; use_kame="$withval"
15773: else
15774: use_kame="no"
15775:
15776: fi
15777:
15778: case "$use_kame" in
15779: no)
15780: ;;
15781: yes)
15782: kame_path=/usr/local/v6
15783: ;;
15784: *)
15785: kame_path="$use_kame"
15786: ;;
15787: esac
15788: case "$use_kame" in
15789: no)
15790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15791: $as_echo "no" >&6; }
15792: ;;
15793: *)
15794: if test -f $kame_path/lib/libinet6.a; then
15795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
15796: $as_echo "$kame_path/lib/libinet6.a" >&6; }
15797: LIBS="-L$kame_path/lib -linet6 $LIBS"
15798: else
15799: as_fn_error $? "$kame_path/lib/libinet6.a not found.
15800:
15801: Please choose the proper path with the following command:
15802:
15803: configure --with-kame=PATH
15804: " "$LINENO" 5
15805: fi
15806: ;;
15807: esac
15808:
15809: #
15810: # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
15811: # Including it on Kame-using platforms is very bad, though, because
15812: # Kame uses #error against direct inclusion. So include it on only
15813: # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
15814: # This is done before the in6_pktinfo check because that's what
15815: # netinet6/in6.h is needed for.
15816: #
15817: case "$host" in
15818: *-bsdi4.[01]*)
15819:
15820: $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
15821:
15822: isc_netinet6in6_hack="#include <netinet6/in6.h>"
15823: ;;
15824: *)
15825: isc_netinet6in6_hack=""
15826: ;;
15827: esac
15828:
15829: #
15830: # This is similar to the netinet6/in6.h issue.
15831: #
15832: case "$host" in
15833: *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
15834:
15835: $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
15836:
15837: isc_netinetin6_hack="#include <netinet/in6.h>"
15838: ;;
15839: *)
15840: isc_netinetin6_hack=""
15841: ;;
15842: esac
15843:
15844:
15845: case "$isc_cv_found_ipv6" in
15846: yes)
15847:
15848: $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
15849:
15850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
15851: $as_echo_n "checking for in6_pktinfo... " >&6; }
15852: if ${isc_cv_have_in6_pktinfo+:} false; then :
15853: $as_echo_n "(cached) " >&6
15854: else
15855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856: /* end confdefs.h. */
15857:
15858: #include <sys/types.h>
15859: #include <sys/socket.h>
15860: #include <netinet/in.h>
15861: $isc_netinetin6_hack
15862: $isc_netinet6in6_hack
15863:
15864: int
15865: main ()
15866: {
15867:
15868: struct in6_pktinfo xyzzy;
15869:
15870:
15871: ;
15872: return 0;
15873: }
15874: _ACEOF
15875: if ac_fn_c_try_compile "$LINENO"; then :
15876: isc_cv_have_in6_pktinfo=yes
15877: else
15878: isc_cv_have_in6_pktinfo=no
15879:
15880: fi
15881: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882:
15883: fi
15884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
15885: $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
15886: case "$isc_cv_have_in6_pktinfo" in
15887: yes)
15888:
15889: $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
15890:
15891: esac
15892:
15893:
15894: # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
15895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
15896: $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
15897: if ${isc_cv_have_sin6_scope_id+:} false; then :
15898: $as_echo_n "(cached) " >&6
15899: else
15900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901: /* end confdefs.h. */
15902:
15903: #include <sys/types.h>
15904: #include <sys/socket.h>
15905: #include <netinet/in.h>
15906: $isc_netinetin6_hack
15907: $isc_netinet6in6_hack
15908:
15909: int
15910: main ()
15911: {
15912:
15913: struct sockaddr_in6 xyzzy;
15914: xyzzy.sin6_scope_id = 0;
15915:
15916:
15917: ;
15918: return 0;
15919: }
15920: _ACEOF
15921: if ac_fn_c_try_compile "$LINENO"; then :
15922: isc_cv_have_sin6_scope_id=yes
15923: else
15924: isc_cv_have_sin6_scope_id=no
15925:
15926: fi
15927: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928:
15929: fi
15930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
15931: $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
15932:
15933: case "$isc_cv_have_sin6_scope_id" in
15934: yes)
15935:
15936: $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
15937:
15938: esac
15939: esac
15940:
15941:
15942: # We need this check run even without isc_cv_found_ipv6=yes
15943:
15944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
15945: $as_echo_n "checking for in6addr_any... " >&6; }
15946: if ${isc_cv_have_in6addr_any+:} false; then :
15947: $as_echo_n "(cached) " >&6
15948: else
15949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950: /* end confdefs.h. */
15951:
15952: #include <sys/types.h>
15953: #include <sys/socket.h>
15954: #include <netinet/in.h>
15955: $isc_netinetin6_hack
15956: $isc_netinet6in6_hack
15957:
15958: int
15959: main ()
15960: {
15961:
15962: struct in6_addr in6;
15963: in6 = in6addr_any;
15964:
15965:
15966: ;
15967: return 0;
15968: }
15969: _ACEOF
15970: if ac_fn_c_try_link "$LINENO"; then :
15971: isc_cv_have_in6addr_any=yes
15972: else
15973: isc_cv_have_in6addr_any=no
15974:
15975: fi
15976: rm -f core conftest.err conftest.$ac_objext \
15977: conftest$ac_exeext conftest.$ac_ext
15978:
15979: fi
15980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
15981: $as_echo "$isc_cv_have_in6addr_any" >&6; }
15982:
15983: case "$isc_cv_have_in6addr_any" in
15984: no)
15985:
15986: $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
15987:
15988: esac
15989:
15990:
15991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
15992: $as_echo_n "checking for struct if_laddrconf... " >&6; }
15993: if ${isc_cv_struct_if_laddrconf+:} false; then :
15994: $as_echo_n "(cached) " >&6
15995: else
15996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997: /* end confdefs.h. */
15998:
15999: #include <sys/types.h>
16000: #include <net/if6.h>
16001:
16002: int
16003: main ()
16004: {
16005:
16006: struct if_laddrconf a;
16007:
16008:
16009: ;
16010: return 0;
16011: }
16012: _ACEOF
16013: if ac_fn_c_try_compile "$LINENO"; then :
16014: isc_cv_struct_if_laddrconf=yes
16015: else
16016: isc_cv_struct_if_laddrconf=no
16017:
16018: fi
16019: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020:
16021: fi
16022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
16023: $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
16024:
16025: case "$isc_cv_struct_if_laddrconf" in
16026: yes)
16027:
16028: $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
16029:
16030: esac
16031:
16032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
16033: $as_echo_n "checking for struct if_laddrreq... " >&6; }
16034: if ${isc_cv_struct_if_laddrreq+:} false; then :
16035: $as_echo_n "(cached) " >&6
16036: else
16037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038: /* end confdefs.h. */
16039:
16040: #include <sys/types.h>
16041: #include <net/if6.h>
16042:
16043: int
16044: main ()
16045: {
16046:
16047: struct if_laddrreq a;
16048:
16049:
16050: ;
16051: return 0;
16052: }
16053: _ACEOF
16054: if ac_fn_c_try_compile "$LINENO"; then :
16055: isc_cv_struct_if_laddrreq=yes
16056: else
16057: isc_cv_struct_if_laddrreq=no
16058:
16059: fi
16060: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061:
16062: fi
16063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
16064: $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
16065:
16066: case "$isc_cv_struct_if_laddrreq" in
16067: yes)
16068:
16069: $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
16070:
16071: esac
16072:
16073:
16074: ###
16075:
16076: # Hacks
16077: # these need work if we're to move libntp under sntp
16078:
16079: $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
16080:
16081:
16082: $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
16083:
16084:
16085: # Checks for library functions.
16086: for ac_func in socket vsnprintf vsprintf
16087: do :
16088: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16090: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16091: cat >>confdefs.h <<_ACEOF
16092: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16093: _ACEOF
16094:
16095: fi
16096: done
16097:
16098:
16099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
16100: $as_echo_n "checking for bin subdirectory... " >&6; }
16101:
16102: # Check whether --with-binsubdir was given.
16103: if test "${with_binsubdir+set}" = set; then :
16104: withval=$with_binsubdir; use_binsubdir="$withval"
16105: else
16106: use_binsubdir="bin"
16107:
16108: fi
16109:
16110: case "$use_binsubdir" in
16111: bin)
16112: ;;
16113: sbin)
16114: ;;
16115: *)
16116: as_fn_error $? "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
16117: ;;
16118: esac
16119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
16120: $as_echo "$use_binsubdir" >&6; }
16121:
16122: BINSUBDIR=$use_binsubdir
16123:
16124: if test "bin" = "$BINSUBDIR"; then
16125: NTP_BINSUBDIR_IS_BIN_TRUE=
16126: NTP_BINSUBDIR_IS_BIN_FALSE='#'
16127: else
16128: NTP_BINSUBDIR_IS_BIN_TRUE='#'
16129: NTP_BINSUBDIR_IS_BIN_FALSE=
16130: fi
16131:
16132:
16133: ac_config_files="$ac_config_files Makefile"
16134:
16135: cat >confcache <<\_ACEOF
16136: # This file is a shell script that caches the results of configure
16137: # tests run on this system so they can be shared between configure
16138: # scripts and configure runs, see configure's option --config-cache.
16139: # It is not useful on other systems. If it contains results you don't
16140: # want to keep, you may remove or edit it.
16141: #
16142: # config.status only pays attention to the cache file if you give it
16143: # the --recheck option to rerun configure.
16144: #
16145: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16146: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16147: # following values.
16148:
16149: _ACEOF
16150:
16151: # The following way of writing the cache mishandles newlines in values,
16152: # but we know of no workaround that is simple, portable, and efficient.
16153: # So, we kill variables containing newlines.
16154: # Ultrix sh set writes to stderr and can't be redirected directly,
16155: # and sets the high bit in the cache file unless we assign to the vars.
16156: (
16157: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16158: eval ac_val=\$$ac_var
16159: case $ac_val in #(
16160: *${as_nl}*)
16161: case $ac_var in #(
16162: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16163: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16164: esac
16165: case $ac_var in #(
16166: _ | IFS | as_nl) ;; #(
16167: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16168: *) { eval $ac_var=; unset $ac_var;} ;;
16169: esac ;;
16170: esac
16171: done
16172:
16173: (set) 2>&1 |
16174: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16175: *${as_nl}ac_space=\ *)
16176: # `set' does not quote correctly, so add quotes: double-quote
16177: # substitution turns \\\\ into \\, and sed turns \\ into \.
16178: sed -n \
16179: "s/'/'\\\\''/g;
16180: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16181: ;; #(
16182: *)
16183: # `set' quotes correctly as required by POSIX, so do not add quotes.
16184: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16185: ;;
16186: esac |
16187: sort
16188: ) |
16189: sed '
16190: /^ac_cv_env_/b end
16191: t clear
16192: :clear
16193: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16194: t end
16195: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16196: :end' >>confcache
16197: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16198: if test -w "$cache_file"; then
16199: if test "x$cache_file" != "x/dev/null"; then
16200: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16201: $as_echo "$as_me: updating cache $cache_file" >&6;}
16202: if test ! -f "$cache_file" || test -h "$cache_file"; then
16203: cat confcache >"$cache_file"
16204: else
16205: case $cache_file in #(
16206: */* | ?:*)
16207: mv -f confcache "$cache_file"$$ &&
16208: mv -f "$cache_file"$$ "$cache_file" ;; #(
16209: *)
16210: mv -f confcache "$cache_file" ;;
16211: esac
16212: fi
16213: fi
16214: else
16215: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16216: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16217: fi
16218: fi
16219: rm -f confcache
16220:
16221: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16222: # Let make expand exec_prefix.
16223: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16224:
16225: DEFS=-DHAVE_CONFIG_H
16226:
16227: ac_libobjs=
16228: ac_ltlibobjs=
16229: U=
16230: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16231: # 1. Remove the extension, and $U if already installed.
16232: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16233: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16234: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16235: # will be set to the directory where LIBOBJS objects are built.
16236: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16237: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16238: done
16239: LIBOBJS=$ac_libobjs
16240:
16241: LTLIBOBJS=$ac_ltlibobjs
16242:
16243:
16244: if test -n "$EXEEXT"; then
16245: am__EXEEXT_TRUE=
16246: am__EXEEXT_FALSE='#'
16247: else
16248: am__EXEEXT_TRUE='#'
16249: am__EXEEXT_FALSE=
16250: fi
16251:
16252: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16253: as_fn_error $? "conditional \"AMDEP\" was never defined.
16254: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16255: fi
16256: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16257: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16258: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16259: fi
16260: if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
16261: as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
16262: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16263: fi
16264: if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
16265: as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
16266: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16267: fi
16268: if test -z "${NTP_BINSUBDIR_IS_BIN_TRUE}" && test -z "${NTP_BINSUBDIR_IS_BIN_FALSE}"; then
16269: as_fn_error $? "conditional \"NTP_BINSUBDIR_IS_BIN\" was never defined.
16270: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16271: fi
16272:
16273: : "${CONFIG_STATUS=./config.status}"
16274: ac_write_fail=0
16275: ac_clean_files_save=$ac_clean_files
16276: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16277: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16278: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16279: as_write_fail=0
16280: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16281: #! $SHELL
16282: # Generated by $as_me.
16283: # Run this file to recreate the current configuration.
16284: # Compiler output produced by configure, useful for debugging
16285: # configure, is in config.log if it exists.
16286:
16287: debug=false
16288: ac_cs_recheck=false
16289: ac_cs_silent=false
16290:
16291: SHELL=\${CONFIG_SHELL-$SHELL}
16292: export SHELL
16293: _ASEOF
16294: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16295: ## -------------------- ##
16296: ## M4sh Initialization. ##
16297: ## -------------------- ##
16298:
16299: # Be more Bourne compatible
16300: DUALCASE=1; export DUALCASE # for MKS sh
16301: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16302: emulate sh
16303: NULLCMD=:
16304: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16305: # is contrary to our usage. Disable this feature.
16306: alias -g '${1+"$@"}'='"$@"'
16307: setopt NO_GLOB_SUBST
16308: else
16309: case `(set -o) 2>/dev/null` in #(
16310: *posix*) :
16311: set -o posix ;; #(
16312: *) :
16313: ;;
16314: esac
16315: fi
16316:
16317:
16318: as_nl='
16319: '
16320: export as_nl
16321: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16322: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16323: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16324: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16325: # Prefer a ksh shell builtin over an external printf program on Solaris,
16326: # but without wasting forks for bash or zsh.
16327: if test -z "$BASH_VERSION$ZSH_VERSION" \
16328: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16329: as_echo='print -r --'
16330: as_echo_n='print -rn --'
16331: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16332: as_echo='printf %s\n'
16333: as_echo_n='printf %s'
16334: else
16335: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16336: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16337: as_echo_n='/usr/ucb/echo -n'
16338: else
16339: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16340: as_echo_n_body='eval
16341: arg=$1;
16342: case $arg in #(
16343: *"$as_nl"*)
16344: expr "X$arg" : "X\\(.*\\)$as_nl";
16345: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16346: esac;
16347: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16348: '
16349: export as_echo_n_body
16350: as_echo_n='sh -c $as_echo_n_body as_echo'
16351: fi
16352: export as_echo_body
16353: as_echo='sh -c $as_echo_body as_echo'
16354: fi
16355:
16356: # The user is always right.
16357: if test "${PATH_SEPARATOR+set}" != set; then
16358: PATH_SEPARATOR=:
16359: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16360: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16361: PATH_SEPARATOR=';'
16362: }
16363: fi
16364:
16365:
16366: # IFS
16367: # We need space, tab and new line, in precisely that order. Quoting is
16368: # there to prevent editors from complaining about space-tab.
16369: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16370: # splitting by setting IFS to empty value.)
16371: IFS=" "" $as_nl"
16372:
16373: # Find who we are. Look in the path if we contain no directory separator.
16374: as_myself=
16375: case $0 in #((
16376: *[\\/]* ) as_myself=$0 ;;
16377: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378: for as_dir in $PATH
16379: do
16380: IFS=$as_save_IFS
16381: test -z "$as_dir" && as_dir=.
16382: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16383: done
16384: IFS=$as_save_IFS
16385:
16386: ;;
16387: esac
16388: # We did not find ourselves, most probably we were run as `sh COMMAND'
16389: # in which case we are not to be found in the path.
16390: if test "x$as_myself" = x; then
16391: as_myself=$0
16392: fi
16393: if test ! -f "$as_myself"; then
16394: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16395: exit 1
16396: fi
16397:
16398: # Unset variables that we do not need and which cause bugs (e.g. in
16399: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16400: # suppresses any "Segmentation fault" message there. '((' could
16401: # trigger a bug in pdksh 5.2.14.
16402: for as_var in BASH_ENV ENV MAIL MAILPATH
16403: do eval test x\${$as_var+set} = xset \
16404: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16405: done
16406: PS1='$ '
16407: PS2='> '
16408: PS4='+ '
16409:
16410: # NLS nuisances.
16411: LC_ALL=C
16412: export LC_ALL
16413: LANGUAGE=C
16414: export LANGUAGE
16415:
16416: # CDPATH.
16417: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16418:
16419:
16420: # as_fn_error STATUS ERROR [LINENO LOG_FD]
16421: # ----------------------------------------
16422: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16423: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16424: # script with STATUS, using 1 if that was 0.
16425: as_fn_error ()
16426: {
16427: as_status=$1; test $as_status -eq 0 && as_status=1
16428: if test "$4"; then
16429: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16430: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16431: fi
16432: $as_echo "$as_me: error: $2" >&2
16433: as_fn_exit $as_status
16434: } # as_fn_error
16435:
16436:
16437: # as_fn_set_status STATUS
16438: # -----------------------
16439: # Set $? to STATUS, without forking.
16440: as_fn_set_status ()
16441: {
16442: return $1
16443: } # as_fn_set_status
16444:
16445: # as_fn_exit STATUS
16446: # -----------------
16447: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16448: as_fn_exit ()
16449: {
16450: set +e
16451: as_fn_set_status $1
16452: exit $1
16453: } # as_fn_exit
16454:
16455: # as_fn_unset VAR
16456: # ---------------
16457: # Portably unset VAR.
16458: as_fn_unset ()
16459: {
16460: { eval $1=; unset $1;}
16461: }
16462: as_unset=as_fn_unset
16463: # as_fn_append VAR VALUE
16464: # ----------------------
16465: # Append the text in VALUE to the end of the definition contained in VAR. Take
16466: # advantage of any shell optimizations that allow amortized linear growth over
16467: # repeated appends, instead of the typical quadratic growth present in naive
16468: # implementations.
16469: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16470: eval 'as_fn_append ()
16471: {
16472: eval $1+=\$2
16473: }'
16474: else
16475: as_fn_append ()
16476: {
16477: eval $1=\$$1\$2
16478: }
16479: fi # as_fn_append
16480:
16481: # as_fn_arith ARG...
16482: # ------------------
16483: # Perform arithmetic evaluation on the ARGs, and store the result in the
16484: # global $as_val. Take advantage of shells that can avoid forks. The arguments
16485: # must be portable across $(()) and expr.
16486: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16487: eval 'as_fn_arith ()
16488: {
16489: as_val=$(( $* ))
16490: }'
16491: else
16492: as_fn_arith ()
16493: {
16494: as_val=`expr "$@" || test $? -eq 1`
16495: }
16496: fi # as_fn_arith
16497:
16498:
16499: if expr a : '\(a\)' >/dev/null 2>&1 &&
16500: test "X`expr 00001 : '.*\(...\)'`" = X001; then
16501: as_expr=expr
16502: else
16503: as_expr=false
16504: fi
16505:
16506: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16507: as_basename=basename
16508: else
16509: as_basename=false
16510: fi
16511:
16512: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16513: as_dirname=dirname
16514: else
16515: as_dirname=false
16516: fi
16517:
16518: as_me=`$as_basename -- "$0" ||
16519: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16520: X"$0" : 'X\(//\)$' \| \
16521: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16522: $as_echo X/"$0" |
16523: sed '/^.*\/\([^/][^/]*\)\/*$/{
16524: s//\1/
16525: q
16526: }
16527: /^X\/\(\/\/\)$/{
16528: s//\1/
16529: q
16530: }
16531: /^X\/\(\/\).*/{
16532: s//\1/
16533: q
16534: }
16535: s/.*/./; q'`
16536:
16537: # Avoid depending upon Character Ranges.
16538: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16539: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16540: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16541: as_cr_digits='0123456789'
16542: as_cr_alnum=$as_cr_Letters$as_cr_digits
16543:
16544: ECHO_C= ECHO_N= ECHO_T=
16545: case `echo -n x` in #(((((
16546: -n*)
16547: case `echo 'xy\c'` in
16548: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16549: xy) ECHO_C='\c';;
16550: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16551: ECHO_T=' ';;
16552: esac;;
16553: *)
16554: ECHO_N='-n';;
16555: esac
16556:
16557: rm -f conf$$ conf$$.exe conf$$.file
16558: if test -d conf$$.dir; then
16559: rm -f conf$$.dir/conf$$.file
16560: else
16561: rm -f conf$$.dir
16562: mkdir conf$$.dir 2>/dev/null
16563: fi
16564: if (echo >conf$$.file) 2>/dev/null; then
16565: if ln -s conf$$.file conf$$ 2>/dev/null; then
16566: as_ln_s='ln -s'
16567: # ... but there are two gotchas:
16568: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16569: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16570: # In both cases, we have to default to `cp -p'.
16571: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16572: as_ln_s='cp -p'
16573: elif ln conf$$.file conf$$ 2>/dev/null; then
16574: as_ln_s=ln
16575: else
16576: as_ln_s='cp -p'
16577: fi
16578: else
16579: as_ln_s='cp -p'
16580: fi
16581: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16582: rmdir conf$$.dir 2>/dev/null
16583:
16584:
16585: # as_fn_mkdir_p
16586: # -------------
16587: # Create "$as_dir" as a directory, including parents if necessary.
16588: as_fn_mkdir_p ()
16589: {
16590:
16591: case $as_dir in #(
16592: -*) as_dir=./$as_dir;;
16593: esac
16594: test -d "$as_dir" || eval $as_mkdir_p || {
16595: as_dirs=
16596: while :; do
16597: case $as_dir in #(
16598: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16599: *) as_qdir=$as_dir;;
16600: esac
16601: as_dirs="'$as_qdir' $as_dirs"
16602: as_dir=`$as_dirname -- "$as_dir" ||
16603: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16604: X"$as_dir" : 'X\(//\)[^/]' \| \
16605: X"$as_dir" : 'X\(//\)$' \| \
16606: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16607: $as_echo X"$as_dir" |
16608: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16609: s//\1/
16610: q
16611: }
16612: /^X\(\/\/\)[^/].*/{
16613: s//\1/
16614: q
16615: }
16616: /^X\(\/\/\)$/{
16617: s//\1/
16618: q
16619: }
16620: /^X\(\/\).*/{
16621: s//\1/
16622: q
16623: }
16624: s/.*/./; q'`
16625: test -d "$as_dir" && break
16626: done
16627: test -z "$as_dirs" || eval "mkdir $as_dirs"
16628: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16629:
16630:
16631: } # as_fn_mkdir_p
16632: if mkdir -p . 2>/dev/null; then
16633: as_mkdir_p='mkdir -p "$as_dir"'
16634: else
16635: test -d ./-p && rmdir ./-p
16636: as_mkdir_p=false
16637: fi
16638:
16639: if test -x / >/dev/null 2>&1; then
16640: as_test_x='test -x'
16641: else
16642: if ls -dL / >/dev/null 2>&1; then
16643: as_ls_L_option=L
16644: else
16645: as_ls_L_option=
16646: fi
16647: as_test_x='
16648: eval sh -c '\''
16649: if test -d "$1"; then
16650: test -d "$1/.";
16651: else
16652: case $1 in #(
16653: -*)set "./$1";;
16654: esac;
16655: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16656: ???[sx]*):;;*)false;;esac;fi
16657: '\'' sh
16658: '
16659: fi
16660: as_executable_p=$as_test_x
16661:
16662: # Sed expression to map a string onto a valid CPP name.
16663: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16664:
16665: # Sed expression to map a string onto a valid variable name.
16666: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16667:
16668:
16669: exec 6>&1
16670: ## ----------------------------------- ##
16671: ## Main body of $CONFIG_STATUS script. ##
16672: ## ----------------------------------- ##
16673: _ASEOF
16674: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16675:
16676: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16677: # Save the log message, to keep $0 and so on meaningful, and to
16678: # report actual input values of CONFIG_FILES etc. instead of their
16679: # values after options handling.
16680: ac_log="
16681: This file was extended by sntp $as_me 4.2.6p5, which was
16682: generated by GNU Autoconf 2.68. Invocation command line was
16683:
16684: CONFIG_FILES = $CONFIG_FILES
16685: CONFIG_HEADERS = $CONFIG_HEADERS
16686: CONFIG_LINKS = $CONFIG_LINKS
16687: CONFIG_COMMANDS = $CONFIG_COMMANDS
16688: $ $0 $@
16689:
16690: on `(hostname || uname -n) 2>/dev/null | sed 1q`
16691: "
16692:
16693: _ACEOF
16694:
16695: case $ac_config_files in *"
16696: "*) set x $ac_config_files; shift; ac_config_files=$*;;
16697: esac
16698:
16699: case $ac_config_headers in *"
16700: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16701: esac
16702:
16703:
16704: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705: # Files that config.status was made for.
16706: config_files="$ac_config_files"
16707: config_headers="$ac_config_headers"
16708: config_commands="$ac_config_commands"
16709:
16710: _ACEOF
16711:
16712: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16713: ac_cs_usage="\
16714: \`$as_me' instantiates files and other configuration actions
16715: from templates according to the current configuration. Unless the files
16716: and actions are specified as TAGs, all are instantiated by default.
16717:
16718: Usage: $0 [OPTION]... [TAG]...
16719:
16720: -h, --help print this help, then exit
16721: -V, --version print version number and configuration settings, then exit
16722: --config print configuration, then exit
16723: -q, --quiet, --silent
16724: do not print progress messages
16725: -d, --debug don't remove temporary files
16726: --recheck update $as_me by reconfiguring in the same conditions
16727: --file=FILE[:TEMPLATE]
16728: instantiate the configuration file FILE
16729: --header=FILE[:TEMPLATE]
16730: instantiate the configuration header FILE
16731:
16732: Configuration files:
16733: $config_files
16734:
16735: Configuration headers:
16736: $config_headers
16737:
16738: Configuration commands:
16739: $config_commands
16740:
16741: Report bugs to the package provider."
16742:
16743: _ACEOF
16744: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16745: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16746: ac_cs_version="\\
16747: sntp config.status 4.2.6p5
16748: configured by $0, generated by GNU Autoconf 2.68,
16749: with options \\"\$ac_cs_config\\"
16750:
16751: Copyright (C) 2010 Free Software Foundation, Inc.
16752: This config.status script is free software; the Free Software Foundation
16753: gives unlimited permission to copy, distribute and modify it."
16754:
16755: ac_pwd='$ac_pwd'
16756: srcdir='$srcdir'
16757: INSTALL='$INSTALL'
16758: MKDIR_P='$MKDIR_P'
16759: AWK='$AWK'
16760: test -n "\$AWK" || AWK=awk
16761: _ACEOF
16762:
16763: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764: # The default lists apply if the user does not specify any file.
16765: ac_need_defaults=:
16766: while test $# != 0
16767: do
16768: case $1 in
16769: --*=?*)
16770: ac_option=`expr "X$1" : 'X\([^=]*\)='`
16771: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16772: ac_shift=:
16773: ;;
16774: --*=)
16775: ac_option=`expr "X$1" : 'X\([^=]*\)='`
16776: ac_optarg=
16777: ac_shift=:
16778: ;;
16779: *)
16780: ac_option=$1
16781: ac_optarg=$2
16782: ac_shift=shift
16783: ;;
16784: esac
16785:
16786: case $ac_option in
16787: # Handling of the options.
16788: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16789: ac_cs_recheck=: ;;
16790: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16791: $as_echo "$ac_cs_version"; exit ;;
16792: --config | --confi | --conf | --con | --co | --c )
16793: $as_echo "$ac_cs_config"; exit ;;
16794: --debug | --debu | --deb | --de | --d | -d )
16795: debug=: ;;
16796: --file | --fil | --fi | --f )
16797: $ac_shift
16798: case $ac_optarg in
16799: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16800: '') as_fn_error $? "missing file argument" ;;
16801: esac
16802: as_fn_append CONFIG_FILES " '$ac_optarg'"
16803: ac_need_defaults=false;;
16804: --header | --heade | --head | --hea )
16805: $ac_shift
16806: case $ac_optarg in
16807: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16808: esac
16809: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16810: ac_need_defaults=false;;
16811: --he | --h)
16812: # Conflict between --help and --header
16813: as_fn_error $? "ambiguous option: \`$1'
16814: Try \`$0 --help' for more information.";;
16815: --help | --hel | -h )
16816: $as_echo "$ac_cs_usage"; exit ;;
16817: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16818: | -silent | --silent | --silen | --sile | --sil | --si | --s)
16819: ac_cs_silent=: ;;
16820:
16821: # This is an error.
16822: -*) as_fn_error $? "unrecognized option: \`$1'
16823: Try \`$0 --help' for more information." ;;
16824:
16825: *) as_fn_append ac_config_targets " $1"
16826: ac_need_defaults=false ;;
16827:
16828: esac
16829: shift
16830: done
16831:
16832: ac_configure_extra_args=
16833:
16834: if $ac_cs_silent; then
16835: exec 6>/dev/null
16836: ac_configure_extra_args="$ac_configure_extra_args --silent"
16837: fi
16838:
16839: _ACEOF
16840: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16841: if \$ac_cs_recheck; then
16842: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16843: shift
16844: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16845: CONFIG_SHELL='$SHELL'
16846: export CONFIG_SHELL
16847: exec "\$@"
16848: fi
16849:
16850: _ACEOF
16851: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16852: exec 5>>config.log
16853: {
16854: echo
16855: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16856: ## Running $as_me. ##
16857: _ASBOX
16858: $as_echo "$ac_log"
16859: } >&5
16860:
16861: _ACEOF
16862: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16863: #
16864: # INIT-COMMANDS
16865: #
16866: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16867:
16868:
16869: # The HP-UX ksh and POSIX shell print the target directory to stdout
16870: # if CDPATH is set.
16871: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16872:
16873: sed_quote_subst='$sed_quote_subst'
16874: double_quote_subst='$double_quote_subst'
16875: delay_variable_subst='$delay_variable_subst'
16876: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16877: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16878: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16879: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16880: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16881: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16882: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16883: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16884: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16885: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16886: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16887: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16888: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16889: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16890: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16891: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16892: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16893: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16894: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16895: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16896: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16897: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16898: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16899: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16900: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16901: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16902: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16903: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16904: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16905: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16906: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16907: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16908: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16909: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16910: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16911: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16912: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16913: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16914: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16915: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16916: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16917: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16918: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16919: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16920: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16921: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16922: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16923: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16924: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16925: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16926: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16927: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16928: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16929: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16930: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16931: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16932: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16933: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16934: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16935: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16936: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16937: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16938: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16939: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16940: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16941: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16942: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16943: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16944: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16945: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16946: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16947: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16948: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16949: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16950: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16951: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16952: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16953: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16954: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16955: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16956: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16957: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16958: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16959: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16960: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16961: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16962: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16963: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16964: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16965: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16966: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16967: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16968: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16969: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16970: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16971: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16972: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16973: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16974: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16975: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16976: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16977: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16978: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16979: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16980: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16981: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16982: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16983: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16984: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16985: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16986: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16987: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16988: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16989: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16990: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16991: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16992: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16993: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16994: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16995: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16996: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16997: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16998: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16999: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17000: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17001: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17002: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17003: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17004: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17005: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17006:
17007: LTCC='$LTCC'
17008: LTCFLAGS='$LTCFLAGS'
17009: compiler='$compiler_DEFAULT'
17010:
17011: # A function that is used when there is no print builtin or printf.
17012: func_fallback_echo ()
17013: {
17014: eval 'cat <<_LTECHO_EOF
17015: \$1
17016: _LTECHO_EOF'
17017: }
17018:
17019: # Quote evaled strings.
17020: for var in SHELL \
17021: ECHO \
17022: SED \
17023: GREP \
17024: EGREP \
17025: FGREP \
17026: LD \
17027: NM \
17028: LN_S \
17029: lt_SP2NL \
17030: lt_NL2SP \
17031: reload_flag \
17032: OBJDUMP \
17033: deplibs_check_method \
17034: file_magic_cmd \
17035: file_magic_glob \
17036: want_nocaseglob \
17037: DLLTOOL \
17038: sharedlib_from_linklib_cmd \
17039: AR \
17040: AR_FLAGS \
17041: archiver_list_spec \
17042: STRIP \
17043: RANLIB \
17044: CC \
17045: CFLAGS \
17046: compiler \
17047: lt_cv_sys_global_symbol_pipe \
17048: lt_cv_sys_global_symbol_to_cdecl \
17049: lt_cv_sys_global_symbol_to_c_name_address \
17050: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17051: nm_file_list_spec \
17052: lt_prog_compiler_no_builtin_flag \
17053: lt_prog_compiler_pic \
17054: lt_prog_compiler_wl \
17055: lt_prog_compiler_static \
17056: lt_cv_prog_compiler_c_o \
17057: need_locks \
17058: MANIFEST_TOOL \
17059: DSYMUTIL \
17060: NMEDIT \
17061: LIPO \
17062: OTOOL \
17063: OTOOL64 \
17064: shrext_cmds \
17065: export_dynamic_flag_spec \
17066: whole_archive_flag_spec \
17067: compiler_needs_object \
17068: with_gnu_ld \
17069: allow_undefined_flag \
17070: no_undefined_flag \
17071: hardcode_libdir_flag_spec \
17072: hardcode_libdir_flag_spec_ld \
17073: hardcode_libdir_separator \
17074: exclude_expsyms \
17075: include_expsyms \
17076: file_list_spec \
17077: variables_saved_for_relink \
17078: libname_spec \
17079: library_names_spec \
17080: soname_spec \
17081: install_override_mode \
17082: finish_eval \
17083: old_striplib \
17084: striplib; do
17085: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17086: *[\\\\\\\`\\"\\\$]*)
17087: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17088: ;;
17089: *)
17090: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17091: ;;
17092: esac
17093: done
17094:
17095: # Double-quote double-evaled strings.
17096: for var in reload_cmds \
17097: old_postinstall_cmds \
17098: old_postuninstall_cmds \
17099: old_archive_cmds \
17100: extract_expsyms_cmds \
17101: old_archive_from_new_cmds \
17102: old_archive_from_expsyms_cmds \
17103: archive_cmds \
17104: archive_expsym_cmds \
17105: module_cmds \
17106: module_expsym_cmds \
17107: export_symbols_cmds \
17108: prelink_cmds \
17109: postlink_cmds \
17110: postinstall_cmds \
17111: postuninstall_cmds \
17112: finish_cmds \
17113: sys_lib_search_path_spec \
17114: sys_lib_dlsearch_path_spec; do
17115: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17116: *[\\\\\\\`\\"\\\$]*)
17117: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17118: ;;
17119: *)
17120: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17121: ;;
17122: esac
17123: done
17124:
17125: ac_aux_dir='$ac_aux_dir'
17126: xsi_shell='$xsi_shell'
17127: lt_shell_append='$lt_shell_append'
17128:
17129: # See if we are running on zsh, and set the options which allow our
17130: # commands through without removal of \ escapes INIT.
17131: if test -n "\${ZSH_VERSION+set}" ; then
17132: setopt NO_GLOB_SUBST
17133: fi
17134:
17135:
17136: PACKAGE='$PACKAGE'
17137: VERSION='$VERSION'
17138: TIMESTAMP='$TIMESTAMP'
17139: RM='$RM'
17140: ofile='$ofile'
17141:
17142:
17143:
17144:
17145: _ACEOF
17146:
17147: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17148:
17149: # Handling of arguments.
17150: for ac_config_target in $ac_config_targets
17151: do
17152: case $ac_config_target in
17153: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17154: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17155: "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
17156: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17157: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17158:
17159: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17160: esac
17161: done
17162:
17163:
17164: # If the user did not use the arguments to specify the items to instantiate,
17165: # then the envvar interface is used. Set only those that are not.
17166: # We use the long form for the default assignment because of an extremely
17167: # bizarre bug on SunOS 4.1.3.
17168: if $ac_need_defaults; then
17169: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17170: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17171: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17172: fi
17173:
17174: # Have a temporary directory for convenience. Make it in the build tree
17175: # simply because there is no reason against having it here, and in addition,
17176: # creating and moving files from /tmp can sometimes cause problems.
17177: # Hook for its removal unless debugging.
17178: # Note that there is a small window in which the directory will not be cleaned:
17179: # after its creation but before its name has been assigned to `$tmp'.
17180: $debug ||
17181: {
17182: tmp= ac_tmp=
17183: trap 'exit_status=$?
17184: : "${ac_tmp:=$tmp}"
17185: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17186: ' 0
17187: trap 'as_fn_exit 1' 1 2 13 15
17188: }
17189: # Create a (secure) tmp directory for tmp files.
17190:
17191: {
17192: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17193: test -d "$tmp"
17194: } ||
17195: {
17196: tmp=./conf$$-$RANDOM
17197: (umask 077 && mkdir "$tmp")
17198: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17199: ac_tmp=$tmp
17200:
17201: # Set up the scripts for CONFIG_FILES section.
17202: # No need to generate them if there are no CONFIG_FILES.
17203: # This happens for instance with `./config.status config.h'.
17204: if test -n "$CONFIG_FILES"; then
17205:
17206:
17207: ac_cr=`echo X | tr X '\015'`
17208: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17209: # But we know of no other shell where ac_cr would be empty at this
17210: # point, so we can use a bashism as a fallback.
17211: if test "x$ac_cr" = x; then
17212: eval ac_cr=\$\'\\r\'
17213: fi
17214: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17215: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17216: ac_cs_awk_cr='\\r'
17217: else
17218: ac_cs_awk_cr=$ac_cr
17219: fi
17220:
17221: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17222: _ACEOF
17223:
17224:
17225: {
17226: echo "cat >conf$$subs.awk <<_ACEOF" &&
17227: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17228: echo "_ACEOF"
17229: } >conf$$subs.sh ||
17230: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17231: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17232: ac_delim='%!_!# '
17233: for ac_last_try in false false false false false :; do
17234: . ./conf$$subs.sh ||
17235: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17236:
17237: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17238: if test $ac_delim_n = $ac_delim_num; then
17239: break
17240: elif $ac_last_try; then
17241: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17242: else
17243: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17244: fi
17245: done
17246: rm -f conf$$subs.sh
17247:
17248: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17249: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17250: _ACEOF
17251: sed -n '
17252: h
17253: s/^/S["/; s/!.*/"]=/
17254: p
17255: g
17256: s/^[^!]*!//
17257: :repl
17258: t repl
17259: s/'"$ac_delim"'$//
17260: t delim
17261: :nl
17262: h
17263: s/\(.\{148\}\)..*/\1/
17264: t more1
17265: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17266: p
17267: n
17268: b repl
17269: :more1
17270: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17271: p
17272: g
17273: s/.\{148\}//
17274: t nl
17275: :delim
17276: h
17277: s/\(.\{148\}\)..*/\1/
17278: t more2
17279: s/["\\]/\\&/g; s/^/"/; s/$/"/
17280: p
17281: b
17282: :more2
17283: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17284: p
17285: g
17286: s/.\{148\}//
17287: t delim
17288: ' <conf$$subs.awk | sed '
17289: /^[^""]/{
17290: N
17291: s/\n//
17292: }
17293: ' >>$CONFIG_STATUS || ac_write_fail=1
17294: rm -f conf$$subs.awk
17295: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17296: _ACAWK
17297: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17298: for (key in S) S_is_set[key] = 1
17299: FS = ""
17300:
17301: }
17302: {
17303: line = $ 0
17304: nfields = split(line, field, "@")
17305: substed = 0
17306: len = length(field[1])
17307: for (i = 2; i < nfields; i++) {
17308: key = field[i]
17309: keylen = length(key)
17310: if (S_is_set[key]) {
17311: value = S[key]
17312: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17313: len += length(value) + length(field[++i])
17314: substed = 1
17315: } else
17316: len += 1 + keylen
17317: }
17318:
17319: print line
17320: }
17321:
17322: _ACAWK
17323: _ACEOF
17324: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17325: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17326: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17327: else
17328: cat
17329: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17330: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17331: _ACEOF
17332:
17333: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17334: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17335: # trailing colons and then remove the whole line if VPATH becomes empty
17336: # (actually we leave an empty line to preserve line numbers).
17337: if test "x$srcdir" = x.; then
17338: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17339: h
17340: s///
17341: s/^/:/
17342: s/[ ]*$/:/
17343: s/:\$(srcdir):/:/g
17344: s/:\${srcdir}:/:/g
17345: s/:@srcdir@:/:/g
17346: s/^:*//
17347: s/:*$//
17348: x
17349: s/\(=[ ]*\).*/\1/
17350: G
17351: s/\n//
17352: s/^[^=]*=[ ]*$//
17353: }'
17354: fi
17355:
17356: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357: fi # test -n "$CONFIG_FILES"
17358:
17359: # Set up the scripts for CONFIG_HEADERS section.
17360: # No need to generate them if there are no CONFIG_HEADERS.
17361: # This happens for instance with `./config.status Makefile'.
17362: if test -n "$CONFIG_HEADERS"; then
17363: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17364: BEGIN {
17365: _ACEOF
17366:
17367: # Transform confdefs.h into an awk script `defines.awk', embedded as
17368: # here-document in config.status, that substitutes the proper values into
17369: # config.h.in to produce config.h.
17370:
17371: # Create a delimiter string that does not exist in confdefs.h, to ease
17372: # handling of long lines.
17373: ac_delim='%!_!# '
17374: for ac_last_try in false false :; do
17375: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17376: if test -z "$ac_tt"; then
17377: break
17378: elif $ac_last_try; then
17379: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17380: else
17381: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17382: fi
17383: done
17384:
17385: # For the awk script, D is an array of macro values keyed by name,
17386: # likewise P contains macro parameters if any. Preserve backslash
17387: # newline sequences.
17388:
17389: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17390: sed -n '
17391: s/.\{148\}/&'"$ac_delim"'/g
17392: t rset
17393: :rset
17394: s/^[ ]*#[ ]*define[ ][ ]*/ /
17395: t def
17396: d
17397: :def
17398: s/\\$//
17399: t bsnl
17400: s/["\\]/\\&/g
17401: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17402: D["\1"]=" \3"/p
17403: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17404: d
17405: :bsnl
17406: s/["\\]/\\&/g
17407: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17408: D["\1"]=" \3\\\\\\n"\\/p
17409: t cont
17410: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17411: t cont
17412: d
17413: :cont
17414: n
17415: s/.\{148\}/&'"$ac_delim"'/g
17416: t clear
17417: :clear
17418: s/\\$//
17419: t bsnlc
17420: s/["\\]/\\&/g; s/^/"/; s/$/"/p
17421: d
17422: :bsnlc
17423: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17424: b cont
17425: ' <confdefs.h | sed '
17426: s/'"$ac_delim"'/"\\\
17427: "/g' >>$CONFIG_STATUS || ac_write_fail=1
17428:
17429: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430: for (key in D) D_is_set[key] = 1
17431: FS = ""
17432: }
17433: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17434: line = \$ 0
17435: split(line, arg, " ")
17436: if (arg[1] == "#") {
17437: defundef = arg[2]
17438: mac1 = arg[3]
17439: } else {
17440: defundef = substr(arg[1], 2)
17441: mac1 = arg[2]
17442: }
17443: split(mac1, mac2, "(") #)
17444: macro = mac2[1]
17445: prefix = substr(line, 1, index(line, defundef) - 1)
17446: if (D_is_set[macro]) {
17447: # Preserve the white space surrounding the "#".
17448: print prefix "define", macro P[macro] D[macro]
17449: next
17450: } else {
17451: # Replace #undef with comments. This is necessary, for example,
17452: # in the case of _POSIX_SOURCE, which is predefined and required
17453: # on some systems where configure will not decide to define it.
17454: if (defundef == "undef") {
17455: print "/*", prefix defundef, macro, "*/"
17456: next
17457: }
17458: }
17459: }
17460: { print }
17461: _ACAWK
17462: _ACEOF
17463: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17464: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17465: fi # test -n "$CONFIG_HEADERS"
17466:
17467:
17468: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17469: shift
17470: for ac_tag
17471: do
17472: case $ac_tag in
17473: :[FHLC]) ac_mode=$ac_tag; continue;;
17474: esac
17475: case $ac_mode$ac_tag in
17476: :[FHL]*:*);;
17477: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17478: :[FH]-) ac_tag=-:-;;
17479: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17480: esac
17481: ac_save_IFS=$IFS
17482: IFS=:
17483: set x $ac_tag
17484: IFS=$ac_save_IFS
17485: shift
17486: ac_file=$1
17487: shift
17488:
17489: case $ac_mode in
17490: :L) ac_source=$1;;
17491: :[FH])
17492: ac_file_inputs=
17493: for ac_f
17494: do
17495: case $ac_f in
17496: -) ac_f="$ac_tmp/stdin";;
17497: *) # Look for the file first in the build tree, then in the source tree
17498: # (if the path is not absolute). The absolute path cannot be DOS-style,
17499: # because $ac_f cannot contain `:'.
17500: test -f "$ac_f" ||
17501: case $ac_f in
17502: [\\/$]*) false;;
17503: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17504: esac ||
17505: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17506: esac
17507: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17508: as_fn_append ac_file_inputs " '$ac_f'"
17509: done
17510:
17511: # Let's still pretend it is `configure' which instantiates (i.e., don't
17512: # use $as_me), people would be surprised to read:
17513: # /* config.h. Generated by config.status. */
17514: configure_input='Generated from '`
17515: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17516: `' by configure.'
17517: if test x"$ac_file" != x-; then
17518: configure_input="$ac_file. $configure_input"
17519: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17520: $as_echo "$as_me: creating $ac_file" >&6;}
17521: fi
17522: # Neutralize special characters interpreted by sed in replacement strings.
17523: case $configure_input in #(
17524: *\&* | *\|* | *\\* )
17525: ac_sed_conf_input=`$as_echo "$configure_input" |
17526: sed 's/[\\\\&|]/\\\\&/g'`;; #(
17527: *) ac_sed_conf_input=$configure_input;;
17528: esac
17529:
17530: case $ac_tag in
17531: *:-:* | *:-) cat >"$ac_tmp/stdin" \
17532: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17533: esac
17534: ;;
17535: esac
17536:
17537: ac_dir=`$as_dirname -- "$ac_file" ||
17538: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17539: X"$ac_file" : 'X\(//\)[^/]' \| \
17540: X"$ac_file" : 'X\(//\)$' \| \
17541: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17542: $as_echo X"$ac_file" |
17543: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17544: s//\1/
17545: q
17546: }
17547: /^X\(\/\/\)[^/].*/{
17548: s//\1/
17549: q
17550: }
17551: /^X\(\/\/\)$/{
17552: s//\1/
17553: q
17554: }
17555: /^X\(\/\).*/{
17556: s//\1/
17557: q
17558: }
17559: s/.*/./; q'`
17560: as_dir="$ac_dir"; as_fn_mkdir_p
17561: ac_builddir=.
17562:
17563: case "$ac_dir" in
17564: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17565: *)
17566: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17567: # A ".." for each directory in $ac_dir_suffix.
17568: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17569: case $ac_top_builddir_sub in
17570: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17571: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17572: esac ;;
17573: esac
17574: ac_abs_top_builddir=$ac_pwd
17575: ac_abs_builddir=$ac_pwd$ac_dir_suffix
17576: # for backward compatibility:
17577: ac_top_builddir=$ac_top_build_prefix
17578:
17579: case $srcdir in
17580: .) # We are building in place.
17581: ac_srcdir=.
17582: ac_top_srcdir=$ac_top_builddir_sub
17583: ac_abs_top_srcdir=$ac_pwd ;;
17584: [\\/]* | ?:[\\/]* ) # Absolute name.
17585: ac_srcdir=$srcdir$ac_dir_suffix;
17586: ac_top_srcdir=$srcdir
17587: ac_abs_top_srcdir=$srcdir ;;
17588: *) # Relative name.
17589: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17590: ac_top_srcdir=$ac_top_build_prefix$srcdir
17591: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17592: esac
17593: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17594:
17595:
17596: case $ac_mode in
17597: :F)
17598: #
17599: # CONFIG_FILE
17600: #
17601:
17602: case $INSTALL in
17603: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17604: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17605: esac
17606: ac_MKDIR_P=$MKDIR_P
17607: case $MKDIR_P in
17608: [\\/$]* | ?:[\\/]* ) ;;
17609: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17610: esac
17611: _ACEOF
17612:
17613: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17614: # If the template does not know about datarootdir, expand it.
17615: # FIXME: This hack should be removed a few years after 2.60.
17616: ac_datarootdir_hack=; ac_datarootdir_seen=
17617: ac_sed_dataroot='
17618: /datarootdir/ {
17619: p
17620: q
17621: }
17622: /@datadir@/p
17623: /@docdir@/p
17624: /@infodir@/p
17625: /@localedir@/p
17626: /@mandir@/p'
17627: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17628: *datarootdir*) ac_datarootdir_seen=yes;;
17629: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17630: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17631: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17632: _ACEOF
17633: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17634: ac_datarootdir_hack='
17635: s&@datadir@&$datadir&g
17636: s&@docdir@&$docdir&g
17637: s&@infodir@&$infodir&g
17638: s&@localedir@&$localedir&g
17639: s&@mandir@&$mandir&g
17640: s&\\\${datarootdir}&$datarootdir&g' ;;
17641: esac
17642: _ACEOF
17643:
17644: # Neutralize VPATH when `$srcdir' = `.'.
17645: # Shell code in configure.ac might set extrasub.
17646: # FIXME: do we really want to maintain this feature?
17647: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17648: ac_sed_extra="$ac_vpsub
17649: $extrasub
17650: _ACEOF
17651: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17652: :t
17653: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17654: s|@configure_input@|$ac_sed_conf_input|;t t
17655: s&@top_builddir@&$ac_top_builddir_sub&;t t
17656: s&@top_build_prefix@&$ac_top_build_prefix&;t t
17657: s&@srcdir@&$ac_srcdir&;t t
17658: s&@abs_srcdir@&$ac_abs_srcdir&;t t
17659: s&@top_srcdir@&$ac_top_srcdir&;t t
17660: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17661: s&@builddir@&$ac_builddir&;t t
17662: s&@abs_builddir@&$ac_abs_builddir&;t t
17663: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17664: s&@INSTALL@&$ac_INSTALL&;t t
17665: s&@MKDIR_P@&$ac_MKDIR_P&;t t
17666: $ac_datarootdir_hack
17667: "
17668: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17669: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17670:
17671: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17672: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17673: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17674: "$ac_tmp/out"`; test -z "$ac_out"; } &&
17675: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17676: which seems to be undefined. Please make sure it is defined" >&5
17677: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17678: which seems to be undefined. Please make sure it is defined" >&2;}
17679:
17680: rm -f "$ac_tmp/stdin"
17681: case $ac_file in
17682: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17683: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17684: esac \
17685: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17686: ;;
17687: :H)
17688: #
17689: # CONFIG_HEADER
17690: #
17691: if test x"$ac_file" != x-; then
17692: {
17693: $as_echo "/* $configure_input */" \
17694: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17695: } >"$ac_tmp/config.h" \
17696: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17697: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17698: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17699: $as_echo "$as_me: $ac_file is unchanged" >&6;}
17700: else
17701: rm -f "$ac_file"
17702: mv "$ac_tmp/config.h" "$ac_file" \
17703: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17704: fi
17705: else
17706: $as_echo "/* $configure_input */" \
17707: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17708: || as_fn_error $? "could not create -" "$LINENO" 5
17709: fi
17710: # Compute "$ac_file"'s index in $config_headers.
17711: _am_arg="$ac_file"
17712: _am_stamp_count=1
17713: for _am_header in $config_headers :; do
17714: case $_am_header in
17715: $_am_arg | $_am_arg:* )
17716: break ;;
17717: * )
17718: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17719: esac
17720: done
17721: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17722: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17723: X"$_am_arg" : 'X\(//\)[^/]' \| \
17724: X"$_am_arg" : 'X\(//\)$' \| \
17725: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17726: $as_echo X"$_am_arg" |
17727: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17728: s//\1/
17729: q
17730: }
17731: /^X\(\/\/\)[^/].*/{
17732: s//\1/
17733: q
17734: }
17735: /^X\(\/\/\)$/{
17736: s//\1/
17737: q
17738: }
17739: /^X\(\/\).*/{
17740: s//\1/
17741: q
17742: }
17743: s/.*/./; q'`/stamp-h$_am_stamp_count
17744: ;;
17745:
17746: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17747: $as_echo "$as_me: executing $ac_file commands" >&6;}
17748: ;;
17749: esac
17750:
17751:
17752: case $ac_file$ac_mode in
17753: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17754: # Autoconf 2.62 quotes --file arguments for eval, but not when files
17755: # are listed without --file. Let's play safe and only enable the eval
17756: # if we detect the quoting.
17757: case $CONFIG_FILES in
17758: *\'*) eval set x "$CONFIG_FILES" ;;
17759: *) set x $CONFIG_FILES ;;
17760: esac
17761: shift
17762: for mf
17763: do
17764: # Strip MF so we end up with the name of the file.
17765: mf=`echo "$mf" | sed -e 's/:.*$//'`
17766: # Check whether this is an Automake generated Makefile or not.
17767: # We used to match only the files named `Makefile.in', but
17768: # some people rename them; so instead we look at the file content.
17769: # Grep'ing the first line is not enough: some people post-process
17770: # each Makefile.in and add a new line on top of each file to say so.
17771: # Grep'ing the whole file is not good either: AIX grep has a line
17772: # limit of 2048, but all sed's we know have understand at least 4000.
17773: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17774: dirpart=`$as_dirname -- "$mf" ||
17775: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17776: X"$mf" : 'X\(//\)[^/]' \| \
17777: X"$mf" : 'X\(//\)$' \| \
17778: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17779: $as_echo X"$mf" |
17780: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17781: s//\1/
17782: q
17783: }
17784: /^X\(\/\/\)[^/].*/{
17785: s//\1/
17786: q
17787: }
17788: /^X\(\/\/\)$/{
17789: s//\1/
17790: q
17791: }
17792: /^X\(\/\).*/{
17793: s//\1/
17794: q
17795: }
17796: s/.*/./; q'`
17797: else
17798: continue
17799: fi
17800: # Extract the definition of DEPDIR, am__include, and am__quote
17801: # from the Makefile without running `make'.
17802: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17803: test -z "$DEPDIR" && continue
17804: am__include=`sed -n 's/^am__include = //p' < "$mf"`
17805: test -z "am__include" && continue
17806: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17807: # When using ansi2knr, U may be empty or an underscore; expand it
17808: U=`sed -n 's/^U = //p' < "$mf"`
17809: # Find all dependency output files, they are included files with
17810: # $(DEPDIR) in their names. We invoke sed twice because it is the
17811: # simplest approach to changing $(DEPDIR) to its actual value in the
17812: # expansion.
17813: for file in `sed -n "
17814: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17815: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17816: # Make sure the directory exists.
17817: test -f "$dirpart/$file" && continue
17818: fdir=`$as_dirname -- "$file" ||
17819: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17820: X"$file" : 'X\(//\)[^/]' \| \
17821: X"$file" : 'X\(//\)$' \| \
17822: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17823: $as_echo X"$file" |
17824: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17825: s//\1/
17826: q
17827: }
17828: /^X\(\/\/\)[^/].*/{
17829: s//\1/
17830: q
17831: }
17832: /^X\(\/\/\)$/{
17833: s//\1/
17834: q
17835: }
17836: /^X\(\/\).*/{
17837: s//\1/
17838: q
17839: }
17840: s/.*/./; q'`
17841: as_dir=$dirpart/$fdir; as_fn_mkdir_p
17842: # echo "creating $dirpart/$file"
17843: echo '# dummy' > "$dirpart/$file"
17844: done
17845: done
17846: }
17847: ;;
17848: "libtool":C)
17849:
17850: # See if we are running on zsh, and set the options which allow our
17851: # commands through without removal of \ escapes.
17852: if test -n "${ZSH_VERSION+set}" ; then
17853: setopt NO_GLOB_SUBST
17854: fi
17855:
17856: cfgfile="${ofile}T"
17857: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17858: $RM "$cfgfile"
17859:
17860: cat <<_LT_EOF >> "$cfgfile"
17861: #! $SHELL
17862:
17863: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17864: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17865: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17866: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17867: #
17868: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17869: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17870: # Inc.
17871: # Written by Gordon Matzigkeit, 1996
17872: #
17873: # This file is part of GNU Libtool.
17874: #
17875: # GNU Libtool is free software; you can redistribute it and/or
17876: # modify it under the terms of the GNU General Public License as
17877: # published by the Free Software Foundation; either version 2 of
17878: # the License, or (at your option) any later version.
17879: #
17880: # As a special exception to the GNU General Public License,
17881: # if you distribute this file as part of a program or library that
17882: # is built using GNU Libtool, you may include this file under the
17883: # same distribution terms that you use for the rest of that program.
17884: #
17885: # GNU Libtool is distributed in the hope that it will be useful,
17886: # but WITHOUT ANY WARRANTY; without even the implied warranty of
17887: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17888: # GNU General Public License for more details.
17889: #
17890: # You should have received a copy of the GNU General Public License
17891: # along with GNU Libtool; see the file COPYING. If not, a copy
17892: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17893: # obtained by writing to the Free Software Foundation, Inc.,
17894: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17895:
17896:
17897: # The names of the tagged configurations supported by this script.
17898: available_tags=""
17899:
17900: # ### BEGIN LIBTOOL CONFIG
17901:
17902: # Whether or not to build shared libraries.
17903: build_libtool_libs=$enable_shared
17904:
17905: # Which release of libtool.m4 was used?
17906: macro_version=$macro_version
17907: macro_revision=$macro_revision
17908:
17909: # Whether or not to build static libraries.
17910: build_old_libs=$enable_static
17911:
17912: # What type of objects to build.
17913: pic_mode=$pic_mode
17914:
17915: # Whether or not to optimize for fast installation.
17916: fast_install=$enable_fast_install
17917:
17918: # Shell to use when invoking shell scripts.
17919: SHELL=$lt_SHELL
17920:
17921: # An echo program that protects backslashes.
17922: ECHO=$lt_ECHO
17923:
17924: # The host system.
17925: host_alias=$host_alias
17926: host=$host
17927: host_os=$host_os
17928:
17929: # The build system.
17930: build_alias=$build_alias
17931: build=$build
17932: build_os=$build_os
17933:
17934: # A sed program that does not truncate output.
17935: SED=$lt_SED
17936:
17937: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17938: Xsed="\$SED -e 1s/^X//"
17939:
17940: # A grep program that handles long lines.
17941: GREP=$lt_GREP
17942:
17943: # An ERE matcher.
17944: EGREP=$lt_EGREP
17945:
17946: # A literal string matcher.
17947: FGREP=$lt_FGREP
17948:
17949: # A BSD- or MS-compatible name lister.
17950: NM=$lt_NM
17951:
17952: # Whether we need soft or hard links.
17953: LN_S=$lt_LN_S
17954:
17955: # What is the maximum length of a command?
17956: max_cmd_len=$max_cmd_len
17957:
17958: # Object file suffix (normally "o").
17959: objext=$ac_objext
17960:
17961: # Executable file suffix (normally "").
17962: exeext=$exeext
17963:
17964: # whether the shell understands "unset".
17965: lt_unset=$lt_unset
17966:
17967: # turn spaces into newlines.
17968: SP2NL=$lt_lt_SP2NL
17969:
17970: # turn newlines into spaces.
17971: NL2SP=$lt_lt_NL2SP
17972:
17973: # convert \$build file names to \$host format.
17974: to_host_file_cmd=$lt_cv_to_host_file_cmd
17975:
17976: # convert \$build files to toolchain format.
17977: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17978:
17979: # An object symbol dumper.
17980: OBJDUMP=$lt_OBJDUMP
17981:
17982: # Method to check whether dependent libraries are shared objects.
17983: deplibs_check_method=$lt_deplibs_check_method
17984:
17985: # Command to use when deplibs_check_method = "file_magic".
17986: file_magic_cmd=$lt_file_magic_cmd
17987:
17988: # How to find potential files when deplibs_check_method = "file_magic".
17989: file_magic_glob=$lt_file_magic_glob
17990:
17991: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17992: want_nocaseglob=$lt_want_nocaseglob
17993:
17994: # DLL creation program.
17995: DLLTOOL=$lt_DLLTOOL
17996:
17997: # Command to associate shared and link libraries.
17998: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17999:
18000: # The archiver.
18001: AR=$lt_AR
18002:
18003: # Flags to create an archive.
18004: AR_FLAGS=$lt_AR_FLAGS
18005:
18006: # How to feed a file listing to the archiver.
18007: archiver_list_spec=$lt_archiver_list_spec
18008:
18009: # A symbol stripping program.
18010: STRIP=$lt_STRIP
18011:
18012: # Commands used to install an old-style archive.
18013: RANLIB=$lt_RANLIB
18014: old_postinstall_cmds=$lt_old_postinstall_cmds
18015: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18016:
18017: # Whether to use a lock for old archive extraction.
18018: lock_old_archive_extraction=$lock_old_archive_extraction
18019:
18020: # A C compiler.
18021: LTCC=$lt_CC
18022:
18023: # LTCC compiler flags.
18024: LTCFLAGS=$lt_CFLAGS
18025:
18026: # Take the output of nm and produce a listing of raw symbols and C names.
18027: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18028:
18029: # Transform the output of nm in a proper C declaration.
18030: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18031:
18032: # Transform the output of nm in a C name address pair.
18033: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18034:
18035: # Transform the output of nm in a C name address pair when lib prefix is needed.
18036: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18037:
18038: # Specify filename containing input files for \$NM.
18039: nm_file_list_spec=$lt_nm_file_list_spec
18040:
18041: # The root where to search for dependent libraries,and in which our libraries should be installed.
18042: lt_sysroot=$lt_sysroot
18043:
18044: # The name of the directory that contains temporary libtool files.
18045: objdir=$objdir
18046:
18047: # Used to examine libraries when file_magic_cmd begins with "file".
18048: MAGIC_CMD=$MAGIC_CMD
18049:
18050: # Must we lock files when doing compilation?
18051: need_locks=$lt_need_locks
18052:
18053: # Manifest tool.
18054: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18055:
18056: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18057: DSYMUTIL=$lt_DSYMUTIL
18058:
18059: # Tool to change global to local symbols on Mac OS X.
18060: NMEDIT=$lt_NMEDIT
18061:
18062: # Tool to manipulate fat objects and archives on Mac OS X.
18063: LIPO=$lt_LIPO
18064:
18065: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18066: OTOOL=$lt_OTOOL
18067:
18068: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18069: OTOOL64=$lt_OTOOL64
18070:
18071: # Old archive suffix (normally "a").
18072: libext=$libext
18073:
18074: # Shared library suffix (normally ".so").
18075: shrext_cmds=$lt_shrext_cmds
18076:
18077: # The commands to extract the exported symbol list from a shared archive.
18078: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18079:
18080: # Variables whose values should be saved in libtool wrapper scripts and
18081: # restored at link time.
18082: variables_saved_for_relink=$lt_variables_saved_for_relink
18083:
18084: # Do we need the "lib" prefix for modules?
18085: need_lib_prefix=$need_lib_prefix
18086:
18087: # Do we need a version for libraries?
18088: need_version=$need_version
18089:
18090: # Library versioning type.
18091: version_type=$version_type
18092:
18093: # Shared library runtime path variable.
18094: runpath_var=$runpath_var
18095:
18096: # Shared library path variable.
18097: shlibpath_var=$shlibpath_var
18098:
18099: # Is shlibpath searched before the hard-coded library search path?
18100: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18101:
18102: # Format of library name prefix.
18103: libname_spec=$lt_libname_spec
18104:
18105: # List of archive names. First name is the real one, the rest are links.
18106: # The last name is the one that the linker finds with -lNAME
18107: library_names_spec=$lt_library_names_spec
18108:
18109: # The coded name of the library, if different from the real name.
18110: soname_spec=$lt_soname_spec
18111:
18112: # Permission mode override for installation of shared libraries.
18113: install_override_mode=$lt_install_override_mode
18114:
18115: # Command to use after installation of a shared archive.
18116: postinstall_cmds=$lt_postinstall_cmds
18117:
18118: # Command to use after uninstallation of a shared archive.
18119: postuninstall_cmds=$lt_postuninstall_cmds
18120:
18121: # Commands used to finish a libtool library installation in a directory.
18122: finish_cmds=$lt_finish_cmds
18123:
18124: # As "finish_cmds", except a single script fragment to be evaled but
18125: # not shown.
18126: finish_eval=$lt_finish_eval
18127:
18128: # Whether we should hardcode library paths into libraries.
18129: hardcode_into_libs=$hardcode_into_libs
18130:
18131: # Compile-time system search path for libraries.
18132: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18133:
18134: # Run-time system search path for libraries.
18135: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18136:
18137: # Whether dlopen is supported.
18138: dlopen_support=$enable_dlopen
18139:
18140: # Whether dlopen of programs is supported.
18141: dlopen_self=$enable_dlopen_self
18142:
18143: # Whether dlopen of statically linked programs is supported.
18144: dlopen_self_static=$enable_dlopen_self_static
18145:
18146: # Commands to strip libraries.
18147: old_striplib=$lt_old_striplib
18148: striplib=$lt_striplib
18149:
18150:
18151: # The linker used to build libraries.
18152: LD=$lt_LD
18153:
18154: # How to create reloadable object files.
18155: reload_flag=$lt_reload_flag
18156: reload_cmds=$lt_reload_cmds
18157:
18158: # Commands used to build an old-style archive.
18159: old_archive_cmds=$lt_old_archive_cmds
18160:
18161: # A language specific compiler.
18162: CC=$lt_compiler
18163:
18164: # Is the compiler the GNU compiler?
18165: with_gcc=$GCC
18166:
18167: # Compiler flag to turn off builtin functions.
18168: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18169:
18170: # Additional compiler flags for building library objects.
18171: pic_flag=$lt_lt_prog_compiler_pic
18172:
18173: # How to pass a linker flag through the compiler.
18174: wl=$lt_lt_prog_compiler_wl
18175:
18176: # Compiler flag to prevent dynamic linking.
18177: link_static_flag=$lt_lt_prog_compiler_static
18178:
18179: # Does compiler simultaneously support -c and -o options?
18180: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18181:
18182: # Whether or not to add -lc for building shared libraries.
18183: build_libtool_need_lc=$archive_cmds_need_lc
18184:
18185: # Whether or not to disallow shared libs when runtime libs are static.
18186: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18187:
18188: # Compiler flag to allow reflexive dlopens.
18189: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18190:
18191: # Compiler flag to generate shared objects directly from archives.
18192: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18193:
18194: # Whether the compiler copes with passing no objects directly.
18195: compiler_needs_object=$lt_compiler_needs_object
18196:
18197: # Create an old-style archive from a shared archive.
18198: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18199:
18200: # Create a temporary old-style archive to link instead of a shared archive.
18201: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18202:
18203: # Commands used to build a shared archive.
18204: archive_cmds=$lt_archive_cmds
18205: archive_expsym_cmds=$lt_archive_expsym_cmds
18206:
18207: # Commands used to build a loadable module if different from building
18208: # a shared archive.
18209: module_cmds=$lt_module_cmds
18210: module_expsym_cmds=$lt_module_expsym_cmds
18211:
18212: # Whether we are building with GNU ld or not.
18213: with_gnu_ld=$lt_with_gnu_ld
18214:
18215: # Flag that allows shared libraries with undefined symbols to be built.
18216: allow_undefined_flag=$lt_allow_undefined_flag
18217:
18218: # Flag that enforces no undefined symbols.
18219: no_undefined_flag=$lt_no_undefined_flag
18220:
18221: # Flag to hardcode \$libdir into a binary during linking.
18222: # This must work even if \$libdir does not exist
18223: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18224:
18225: # If ld is used when linking, flag to hardcode \$libdir into a binary
18226: # during linking. This must work even if \$libdir does not exist.
18227: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18228:
18229: # Whether we need a single "-rpath" flag with a separated argument.
18230: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18231:
18232: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18233: # DIR into the resulting binary.
18234: hardcode_direct=$hardcode_direct
18235:
18236: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18237: # DIR into the resulting binary and the resulting library dependency is
18238: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18239: # library is relocated.
18240: hardcode_direct_absolute=$hardcode_direct_absolute
18241:
18242: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18243: # into the resulting binary.
18244: hardcode_minus_L=$hardcode_minus_L
18245:
18246: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18247: # into the resulting binary.
18248: hardcode_shlibpath_var=$hardcode_shlibpath_var
18249:
18250: # Set to "yes" if building a shared library automatically hardcodes DIR
18251: # into the library and all subsequent libraries and executables linked
18252: # against it.
18253: hardcode_automatic=$hardcode_automatic
18254:
18255: # Set to yes if linker adds runtime paths of dependent libraries
18256: # to runtime path list.
18257: inherit_rpath=$inherit_rpath
18258:
18259: # Whether libtool must link a program against all its dependency libraries.
18260: link_all_deplibs=$link_all_deplibs
18261:
18262: # Set to "yes" if exported symbols are required.
18263: always_export_symbols=$always_export_symbols
18264:
18265: # The commands to list exported symbols.
18266: export_symbols_cmds=$lt_export_symbols_cmds
18267:
18268: # Symbols that should not be listed in the preloaded symbols.
18269: exclude_expsyms=$lt_exclude_expsyms
18270:
18271: # Symbols that must always be exported.
18272: include_expsyms=$lt_include_expsyms
18273:
18274: # Commands necessary for linking programs (against libraries) with templates.
18275: prelink_cmds=$lt_prelink_cmds
18276:
18277: # Commands necessary for finishing linking programs.
18278: postlink_cmds=$lt_postlink_cmds
18279:
18280: # Specify filename containing input files.
18281: file_list_spec=$lt_file_list_spec
18282:
18283: # How to hardcode a shared library path into an executable.
18284: hardcode_action=$hardcode_action
18285:
18286: # ### END LIBTOOL CONFIG
18287:
18288: _LT_EOF
18289:
18290: case $host_os in
18291: aix3*)
18292: cat <<\_LT_EOF >> "$cfgfile"
18293: # AIX sometimes has problems with the GCC collect2 program. For some
18294: # reason, if we set the COLLECT_NAMES environment variable, the problems
18295: # vanish in a puff of smoke.
18296: if test "X${COLLECT_NAMES+set}" != Xset; then
18297: COLLECT_NAMES=
18298: export COLLECT_NAMES
18299: fi
18300: _LT_EOF
18301: ;;
18302: esac
18303:
18304:
18305: ltmain="$ac_aux_dir/ltmain.sh"
18306:
18307:
18308: # We use sed instead of cat because bash on DJGPP gets confused if
18309: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18310: # text mode, it properly converts lines to CR/LF. This bash problem
18311: # is reportedly fixed, but why not run on old versions too?
18312: sed '$q' "$ltmain" >> "$cfgfile" \
18313: || (rm -f "$cfgfile"; exit 1)
18314:
18315: if test x"$xsi_shell" = xyes; then
18316: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18317: func_dirname ()\
18318: {\
18319: \ case ${1} in\
18320: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18321: \ * ) func_dirname_result="${3}" ;;\
18322: \ esac\
18323: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18324: && mv -f "$cfgfile.tmp" "$cfgfile" \
18325: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18326: test 0 -eq $? || _lt_function_replace_fail=:
18327:
18328:
18329: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18330: func_basename ()\
18331: {\
18332: \ func_basename_result="${1##*/}"\
18333: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18334: && mv -f "$cfgfile.tmp" "$cfgfile" \
18335: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18336: test 0 -eq $? || _lt_function_replace_fail=:
18337:
18338:
18339: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18340: func_dirname_and_basename ()\
18341: {\
18342: \ case ${1} in\
18343: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18344: \ * ) func_dirname_result="${3}" ;;\
18345: \ esac\
18346: \ func_basename_result="${1##*/}"\
18347: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18348: && mv -f "$cfgfile.tmp" "$cfgfile" \
18349: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18350: test 0 -eq $? || _lt_function_replace_fail=:
18351:
18352:
18353: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18354: func_stripname ()\
18355: {\
18356: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18357: \ # positional parameters, so assign one to ordinary parameter first.\
18358: \ func_stripname_result=${3}\
18359: \ func_stripname_result=${func_stripname_result#"${1}"}\
18360: \ func_stripname_result=${func_stripname_result%"${2}"}\
18361: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18362: && mv -f "$cfgfile.tmp" "$cfgfile" \
18363: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18364: test 0 -eq $? || _lt_function_replace_fail=:
18365:
18366:
18367: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18368: func_split_long_opt ()\
18369: {\
18370: \ func_split_long_opt_name=${1%%=*}\
18371: \ func_split_long_opt_arg=${1#*=}\
18372: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18373: && mv -f "$cfgfile.tmp" "$cfgfile" \
18374: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18375: test 0 -eq $? || _lt_function_replace_fail=:
18376:
18377:
18378: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18379: func_split_short_opt ()\
18380: {\
18381: \ func_split_short_opt_arg=${1#??}\
18382: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18383: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18384: && mv -f "$cfgfile.tmp" "$cfgfile" \
18385: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18386: test 0 -eq $? || _lt_function_replace_fail=:
18387:
18388:
18389: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18390: func_lo2o ()\
18391: {\
18392: \ case ${1} in\
18393: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18394: \ *) func_lo2o_result=${1} ;;\
18395: \ esac\
18396: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18397: && mv -f "$cfgfile.tmp" "$cfgfile" \
18398: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18399: test 0 -eq $? || _lt_function_replace_fail=:
18400:
18401:
18402: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18403: func_xform ()\
18404: {\
18405: func_xform_result=${1%.*}.lo\
18406: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18407: && mv -f "$cfgfile.tmp" "$cfgfile" \
18408: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18409: test 0 -eq $? || _lt_function_replace_fail=:
18410:
18411:
18412: sed -e '/^func_arith ()$/,/^} # func_arith /c\
18413: func_arith ()\
18414: {\
18415: func_arith_result=$(( $* ))\
18416: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18417: && mv -f "$cfgfile.tmp" "$cfgfile" \
18418: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18419: test 0 -eq $? || _lt_function_replace_fail=:
18420:
18421:
18422: sed -e '/^func_len ()$/,/^} # func_len /c\
18423: func_len ()\
18424: {\
18425: func_len_result=${#1}\
18426: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18427: && mv -f "$cfgfile.tmp" "$cfgfile" \
18428: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18429: test 0 -eq $? || _lt_function_replace_fail=:
18430:
18431: fi
18432:
18433: if test x"$lt_shell_append" = xyes; then
18434: sed -e '/^func_append ()$/,/^} # func_append /c\
18435: func_append ()\
18436: {\
18437: eval "${1}+=\\${2}"\
18438: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18439: && mv -f "$cfgfile.tmp" "$cfgfile" \
18440: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18441: test 0 -eq $? || _lt_function_replace_fail=:
18442:
18443:
18444: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18445: func_append_quoted ()\
18446: {\
18447: \ func_quote_for_eval "${2}"\
18448: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18449: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18450: && mv -f "$cfgfile.tmp" "$cfgfile" \
18451: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18452: test 0 -eq $? || _lt_function_replace_fail=:
18453:
18454:
18455: # Save a `func_append' function call where possible by direct use of '+='
18456: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18457: && mv -f "$cfgfile.tmp" "$cfgfile" \
18458: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18459: test 0 -eq $? || _lt_function_replace_fail=:
18460: else
18461: # Save a `func_append' function call even when '+=' is not available
18462: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18463: && mv -f "$cfgfile.tmp" "$cfgfile" \
18464: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18465: test 0 -eq $? || _lt_function_replace_fail=:
18466: fi
18467:
18468: if test x"$_lt_function_replace_fail" = x":"; then
18469: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18470: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18471: fi
18472:
18473:
18474: mv -f "$cfgfile" "$ofile" ||
18475: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18476: chmod +x "$ofile"
18477:
18478: ;;
18479:
18480: esac
18481: done # for ac_tag
18482:
18483:
18484: as_fn_exit 0
18485: _ACEOF
18486: ac_clean_files=$ac_clean_files_save
18487:
18488: test $ac_write_fail = 0 ||
18489: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18490:
18491:
18492: # configure is writing to config.log, and then calls config.status.
18493: # config.status does its own redirection, appending to config.log.
18494: # Unfortunately, on DOS this fails, as config.log is still kept open
18495: # by configure, so config.status won't be able to write to it; its
18496: # output is simply discarded. So we exec the FD to /dev/null,
18497: # effectively closing config.log, so it can be properly (re)opened and
18498: # appended to by config.status. When coming back to configure, we
18499: # need to make the FD available again.
18500: if test "$no_create" != yes; then
18501: ac_cs_success=:
18502: ac_config_status_args=
18503: test "$silent" = yes &&
18504: ac_config_status_args="$ac_config_status_args --quiet"
18505: exec 5>/dev/null
18506: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18507: exec 5>>config.log
18508: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18509: # would make configure fail if this is the last instruction.
18510: $ac_cs_success || as_fn_exit 1
18511: fi
18512: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18513: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18514: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18515: fi
18516:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>