Annotation of embedaddon/quagga/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68 for Quagga 0.99.20.
4: #
5: # Report bugs to <https://bugzilla.quagga.net>.
6: #
7: #
8: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10: # Foundation, Inc.
11: #
12: #
13: # This configure script is free software; the Free Software Foundation
14: # gives unlimited permission to copy, distribute and modify it.
15: ## -------------------- ##
16: ## M4sh Initialization. ##
17: ## -------------------- ##
18:
19: # Be more Bourne compatible
20: DUALCASE=1; export DUALCASE # for MKS sh
21: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22: emulate sh
23: NULLCMD=:
24: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25: # is contrary to our usage. Disable this feature.
26: alias -g '${1+"$@"}'='"$@"'
27: setopt NO_GLOB_SUBST
28: else
29: case `(set -o) 2>/dev/null` in #(
30: *posix*) :
31: set -o posix ;; #(
32: *) :
33: ;;
34: esac
35: fi
36:
37:
38: as_nl='
39: '
40: export as_nl
41: # Printing a long string crashes Solaris 7 /usr/bin/printf.
42: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45: # Prefer a ksh shell builtin over an external printf program on Solaris,
46: # but without wasting forks for bash or zsh.
47: if test -z "$BASH_VERSION$ZSH_VERSION" \
48: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49: as_echo='print -r --'
50: as_echo_n='print -rn --'
51: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52: as_echo='printf %s\n'
53: as_echo_n='printf %s'
54: else
55: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57: as_echo_n='/usr/ucb/echo -n'
58: else
59: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60: as_echo_n_body='eval
61: arg=$1;
62: case $arg in #(
63: *"$as_nl"*)
64: expr "X$arg" : "X\\(.*\\)$as_nl";
65: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66: esac;
67: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68: '
69: export as_echo_n_body
70: as_echo_n='sh -c $as_echo_n_body as_echo'
71: fi
72: export as_echo_body
73: as_echo='sh -c $as_echo_body as_echo'
74: fi
75:
76: # The user is always right.
77: if test "${PATH_SEPARATOR+set}" != set; then
78: PATH_SEPARATOR=:
79: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81: PATH_SEPARATOR=';'
82: }
83: fi
84:
85:
86: # IFS
87: # We need space, tab and new line, in precisely that order. Quoting is
88: # there to prevent editors from complaining about space-tab.
89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90: # splitting by setting IFS to empty value.)
91: IFS=" "" $as_nl"
92:
93: # Find who we are. Look in the path if we contain no directory separator.
94: as_myself=
95: case $0 in #((
96: *[\\/]* ) as_myself=$0 ;;
97: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98: for as_dir in $PATH
99: do
100: IFS=$as_save_IFS
101: test -z "$as_dir" && as_dir=.
102: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103: done
104: IFS=$as_save_IFS
105:
106: ;;
107: esac
108: # We did not find ourselves, most probably we were run as `sh COMMAND'
109: # in which case we are not to be found in the path.
110: if test "x$as_myself" = x; then
111: as_myself=$0
112: fi
113: if test ! -f "$as_myself"; then
114: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115: exit 1
116: fi
117:
118: # Unset variables that we do not need and which cause bugs (e.g. in
119: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120: # suppresses any "Segmentation fault" message there. '((' could
121: # trigger a bug in pdksh 5.2.14.
122: for as_var in BASH_ENV ENV MAIL MAILPATH
123: do eval test x\${$as_var+set} = xset \
124: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125: done
126: PS1='$ '
127: PS2='> '
128: PS4='+ '
129:
130: # NLS nuisances.
131: LC_ALL=C
132: export LC_ALL
133: LANGUAGE=C
134: export LANGUAGE
135:
136: # CDPATH.
137: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138:
139: if test "x$CONFIG_SHELL" = x; then
140: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141: emulate sh
142: NULLCMD=:
143: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144: # is contrary to our usage. Disable this feature.
145: alias -g '\${1+\"\$@\"}'='\"\$@\"'
146: setopt NO_GLOB_SUBST
147: else
148: case \`(set -o) 2>/dev/null\` in #(
149: *posix*) :
150: set -o posix ;; #(
151: *) :
152: ;;
153: esac
154: fi
155: "
156: as_required="as_fn_return () { (exit \$1); }
157: as_fn_success () { as_fn_return 0; }
158: as_fn_failure () { as_fn_return 1; }
159: as_fn_ret_success () { return 0; }
160: as_fn_ret_failure () { return 1; }
161:
162: exitcode=0
163: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168:
169: else
170: exitcode=1; echo positional parameters were not saved.
171: fi
172: test x\$exitcode = x0 || exit 1"
173: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177: test \$(( 1 + 1 )) = 2 || exit 1
178:
179: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183: PATH=/empty FPATH=/empty; export PATH FPATH
184: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186: if (eval "$as_required") 2>/dev/null; then :
187: as_have_required=yes
188: else
189: as_have_required=no
190: fi
191: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192:
193: else
194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195: as_found=false
196: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197: do
198: IFS=$as_save_IFS
199: test -z "$as_dir" && as_dir=.
200: as_found=:
201: case $as_dir in #(
202: /*)
203: for as_base in sh bash ksh sh5; do
204: # Try only shells that exist, to save several forks.
205: as_shell=$as_dir/$as_base
206: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: CONFIG_SHELL=$as_shell as_have_required=yes
209: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210: break 2
211: fi
212: fi
213: done;;
214: esac
215: as_found=false
216: done
217: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219: CONFIG_SHELL=$SHELL as_have_required=yes
220: fi; }
221: IFS=$as_save_IFS
222:
223:
224: if test "x$CONFIG_SHELL" != x; then :
225: # We cannot yet assume a decent shell, so we have to provide a
226: # neutralization value for shells without unset; and this also
227: # works around shells that cannot unset nonexistent variables.
228: # Preserve -v and -x to the replacement shell.
229: BASH_ENV=/dev/null
230: ENV=/dev/null
231: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232: export CONFIG_SHELL
233: case $- in # ((((
234: *v*x* | *x*v* ) as_opts=-vx ;;
235: *v* ) as_opts=-v ;;
236: *x* ) as_opts=-x ;;
237: * ) as_opts= ;;
238: esac
239: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240: fi
241:
242: if test x$as_have_required = xno; then :
243: $as_echo "$0: This script requires a shell more modern than all"
244: $as_echo "$0: the shells that I found on your system."
245: if test x${ZSH_VERSION+set} = xset ; then
246: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248: else
249: $as_echo "$0: Please tell bug-autoconf@gnu.org and
250: $0: https://bugzilla.quagga.net about your system,
251: $0: including any error possibly output before this
252: $0: message. Then install a modern shell, or manually run
253: $0: the script under such a shell if you do have one."
254: fi
255: exit 1
256: fi
257: fi
258: fi
259: SHELL=${CONFIG_SHELL-/bin/sh}
260: export SHELL
261: # Unset more variables known to interfere with behavior of common tools.
262: CLICOLOR_FORCE= GREP_OPTIONS=
263: unset CLICOLOR_FORCE GREP_OPTIONS
264:
265: ## --------------------- ##
266: ## M4sh Shell Functions. ##
267: ## --------------------- ##
268: # as_fn_unset VAR
269: # ---------------
270: # Portably unset VAR.
271: as_fn_unset ()
272: {
273: { eval $1=; unset $1;}
274: }
275: as_unset=as_fn_unset
276:
277: # as_fn_set_status STATUS
278: # -----------------------
279: # Set $? to STATUS, without forking.
280: as_fn_set_status ()
281: {
282: return $1
283: } # as_fn_set_status
284:
285: # as_fn_exit STATUS
286: # -----------------
287: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288: as_fn_exit ()
289: {
290: set +e
291: as_fn_set_status $1
292: exit $1
293: } # as_fn_exit
294:
295: # as_fn_mkdir_p
296: # -------------
297: # Create "$as_dir" as a directory, including parents if necessary.
298: as_fn_mkdir_p ()
299: {
300:
301: case $as_dir in #(
302: -*) as_dir=./$as_dir;;
303: esac
304: test -d "$as_dir" || eval $as_mkdir_p || {
305: as_dirs=
306: while :; do
307: case $as_dir in #(
308: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309: *) as_qdir=$as_dir;;
310: esac
311: as_dirs="'$as_qdir' $as_dirs"
312: as_dir=`$as_dirname -- "$as_dir" ||
313: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314: X"$as_dir" : 'X\(//\)[^/]' \| \
315: X"$as_dir" : 'X\(//\)$' \| \
316: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317: $as_echo X"$as_dir" |
318: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319: s//\1/
320: q
321: }
322: /^X\(\/\/\)[^/].*/{
323: s//\1/
324: q
325: }
326: /^X\(\/\/\)$/{
327: s//\1/
328: q
329: }
330: /^X\(\/\).*/{
331: s//\1/
332: q
333: }
334: s/.*/./; q'`
335: test -d "$as_dir" && break
336: done
337: test -z "$as_dirs" || eval "mkdir $as_dirs"
338: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339:
340:
341: } # as_fn_mkdir_p
342: # as_fn_append VAR VALUE
343: # ----------------------
344: # Append the text in VALUE to the end of the definition contained in VAR. Take
345: # advantage of any shell optimizations that allow amortized linear growth over
346: # repeated appends, instead of the typical quadratic growth present in naive
347: # implementations.
348: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349: eval 'as_fn_append ()
350: {
351: eval $1+=\$2
352: }'
353: else
354: as_fn_append ()
355: {
356: eval $1=\$$1\$2
357: }
358: fi # as_fn_append
359:
360: # as_fn_arith ARG...
361: # ------------------
362: # Perform arithmetic evaluation on the ARGs, and store the result in the
363: # global $as_val. Take advantage of shells that can avoid forks. The arguments
364: # must be portable across $(()) and expr.
365: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366: eval 'as_fn_arith ()
367: {
368: as_val=$(( $* ))
369: }'
370: else
371: as_fn_arith ()
372: {
373: as_val=`expr "$@" || test $? -eq 1`
374: }
375: fi # as_fn_arith
376:
377:
378: # as_fn_error STATUS ERROR [LINENO LOG_FD]
379: # ----------------------------------------
380: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382: # script with STATUS, using 1 if that was 0.
383: as_fn_error ()
384: {
385: as_status=$1; test $as_status -eq 0 && as_status=1
386: if test "$4"; then
387: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389: fi
390: $as_echo "$as_me: error: $2" >&2
391: as_fn_exit $as_status
392: } # as_fn_error
393:
394: if expr a : '\(a\)' >/dev/null 2>&1 &&
395: test "X`expr 00001 : '.*\(...\)'`" = X001; then
396: as_expr=expr
397: else
398: as_expr=false
399: fi
400:
401: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402: as_basename=basename
403: else
404: as_basename=false
405: fi
406:
407: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408: as_dirname=dirname
409: else
410: as_dirname=false
411: fi
412:
413: as_me=`$as_basename -- "$0" ||
414: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415: X"$0" : 'X\(//\)$' \| \
416: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417: $as_echo X/"$0" |
418: sed '/^.*\/\([^/][^/]*\)\/*$/{
419: s//\1/
420: q
421: }
422: /^X\/\(\/\/\)$/{
423: s//\1/
424: q
425: }
426: /^X\/\(\/\).*/{
427: s//\1/
428: q
429: }
430: s/.*/./; q'`
431:
432: # Avoid depending upon Character Ranges.
433: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436: as_cr_digits='0123456789'
437: as_cr_alnum=$as_cr_Letters$as_cr_digits
438:
439:
440: as_lineno_1=$LINENO as_lineno_1a=$LINENO
441: as_lineno_2=$LINENO as_lineno_2a=$LINENO
442: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445: sed -n '
446: p
447: /[$]LINENO/=
448: ' <$as_myself |
449: sed '
450: s/[$]LINENO.*/&-/
451: t lineno
452: b
453: :lineno
454: N
455: :loop
456: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457: t loop
458: s/-\n.*//
459: ' >$as_me.lineno &&
460: chmod +x "$as_me.lineno" ||
461: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462:
463: # Don't try to exec as it changes $[0], causing all sort of problems
464: # (the dirname of $[0] is not the place where we might find the
465: # original and so on. Autoconf is especially sensitive to this).
466: . "./$as_me.lineno"
467: # Exit status is that of the last command.
468: exit
469: }
470:
471: ECHO_C= ECHO_N= ECHO_T=
472: case `echo -n x` in #(((((
473: -n*)
474: case `echo 'xy\c'` in
475: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476: xy) ECHO_C='\c';;
477: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478: ECHO_T=' ';;
479: esac;;
480: *)
481: ECHO_N='-n';;
482: esac
483:
484: rm -f conf$$ conf$$.exe conf$$.file
485: if test -d conf$$.dir; then
486: rm -f conf$$.dir/conf$$.file
487: else
488: rm -f conf$$.dir
489: mkdir conf$$.dir 2>/dev/null
490: fi
491: if (echo >conf$$.file) 2>/dev/null; then
492: if ln -s conf$$.file conf$$ 2>/dev/null; then
493: as_ln_s='ln -s'
494: # ... but there are two gotchas:
495: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497: # In both cases, we have to default to `cp -p'.
498: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499: as_ln_s='cp -p'
500: elif ln conf$$.file conf$$ 2>/dev/null; then
501: as_ln_s=ln
502: else
503: as_ln_s='cp -p'
504: fi
505: else
506: as_ln_s='cp -p'
507: fi
508: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509: rmdir conf$$.dir 2>/dev/null
510:
511: if mkdir -p . 2>/dev/null; then
512: as_mkdir_p='mkdir -p "$as_dir"'
513: else
514: test -d ./-p && rmdir ./-p
515: as_mkdir_p=false
516: fi
517:
518: if test -x / >/dev/null 2>&1; then
519: as_test_x='test -x'
520: else
521: if ls -dL / >/dev/null 2>&1; then
522: as_ls_L_option=L
523: else
524: as_ls_L_option=
525: fi
526: as_test_x='
527: eval sh -c '\''
528: if test -d "$1"; then
529: test -d "$1/.";
530: else
531: case $1 in #(
532: -*)set "./$1";;
533: esac;
534: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535: ???[sx]*):;;*)false;;esac;fi
536: '\'' sh
537: '
538: fi
539: as_executable_p=$as_test_x
540:
541: # Sed expression to map a string onto a valid CPP name.
542: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543:
544: # Sed expression to map a string onto a valid variable name.
545: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546:
547: SHELL=${CONFIG_SHELL-/bin/sh}
548:
549:
550: test -n "$DJDIR" || exec 7<&0 </dev/null
551: exec 6>&1
552:
553: # Name of the host.
554: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555: # so uname gets run too.
556: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557:
558: #
559: # Initializations.
560: #
561: ac_default_prefix=/usr/local
562: ac_clean_files=
563: ac_config_libobj_dir=.
564: LIBOBJS=
565: cross_compiling=no
566: subdirs=
567: MFLAGS=
568: MAKEFLAGS=
569:
570: # Identity of this package.
571: PACKAGE_NAME='Quagga'
572: PACKAGE_TARNAME='quagga'
573: PACKAGE_VERSION='0.99.20'
574: PACKAGE_STRING='Quagga 0.99.20'
575: PACKAGE_BUGREPORT='https://bugzilla.quagga.net'
576: PACKAGE_URL=''
577:
578: ac_unique_file="lib/zebra.h"
579: # Factoring default headers for most tests.
580: ac_includes_default="\
581: #include <stdio.h>
582: #ifdef HAVE_SYS_TYPES_H
583: # include <sys/types.h>
584: #endif
585: #ifdef HAVE_SYS_STAT_H
586: # include <sys/stat.h>
587: #endif
588: #ifdef STDC_HEADERS
589: # include <stdlib.h>
590: # include <stddef.h>
591: #else
592: # ifdef HAVE_STDLIB_H
593: # include <stdlib.h>
594: # endif
595: #endif
596: #ifdef HAVE_STRING_H
597: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598: # include <memory.h>
599: # endif
600: # include <string.h>
601: #endif
602: #ifdef HAVE_STRINGS_H
603: # include <strings.h>
604: #endif
605: #ifdef HAVE_INTTYPES_H
606: # include <inttypes.h>
607: #endif
608: #ifdef HAVE_STDINT_H
609: # include <stdint.h>
610: #endif
611: #ifdef HAVE_UNISTD_H
612: # include <unistd.h>
613: #endif"
614:
615: ac_header_list=
616: ac_func_list=
617: ac_subst_vars='am__EXEEXT_FALSE
618: am__EXEEXT_TRUE
619: LTLIBOBJS
620: quagga_statedir
621: PILDFLAGS
622: PICFLAGS
623: CONFDATE
624: LIBCAP
625: SNMP_INCLUDES
626: LIB_REGEX
627: HAVE_LIBPCREPOSIX
628: OSPFAPI
629: OSPFCLIENT
630: CURSES
631: INCLUDES
632: VTYSH
633: SOLARIS
634: ISISD
635: WATCHQUAGGA
636: OSPF6D
637: OSPFD
638: RIPNGD
639: RIPD
640: BGPD
641: ZEBRA
642: DOC
643: LIB_IPV6
644: IPFORWARD
645: IF_PROC
646: IOCTL_METHOD
647: IF_METHOD
648: RTREAD_METHOD
649: OTHER_METHOD
650: KERNEL_METHOD
651: RT_METHOD
652: LIBM
653: LIBOBJS
654: LIBPAM
655: LIBREADLINE
656: PERL
657: MULTIPATH_NUM
658: enable_vty_group
659: enable_group
660: enable_user
661: ISIS_TOPOLOGY_LIB
662: ISIS_TOPOLOGY_DIR
663: ISIS_TOPOLOGY_INCLUDES
664: OTOOL64
665: OTOOL
666: LIPO
667: NMEDIT
668: DSYMUTIL
669: MANIFEST_TOOL
670: RANLIB
671: ac_ct_AR
672: DLLTOOL
673: OBJDUMP
674: NM
675: ac_ct_DUMPBIN
676: DUMPBIN
677: LD
678: FGREP
679: LIBTOOL
680: AR
681: LN_S
682: SED
683: EGREP
684: GREP
685: CPP
686: am__fastdepCC_FALSE
687: am__fastdepCC_TRUE
688: CCDEPMODE
689: AMDEPBACKSLASH
690: AMDEP_FALSE
691: AMDEP_TRUE
692: am__quote
693: am__include
694: DEPDIR
695: OBJEXT
696: EXEEXT
697: ac_ct_CC
698: CPPFLAGS
699: LDFLAGS
700: CFLAGS
701: CC
702: pkgsrcrcdir
703: pkgsrcdir
704: exampledir
705: GAWK
706: am__untar
707: am__tar
708: AMTAR
709: am__leading_dot
710: SET_MAKE
711: AWK
712: mkdir_p
713: MKDIR_P
714: INSTALL_STRIP_PROGRAM
715: STRIP
716: install_sh
717: MAKEINFO
718: AUTOHEADER
719: AUTOMAKE
720: AUTOCONF
721: ACLOCAL
722: VERSION
723: PACKAGE
724: CYGPATH_W
725: am__isrc
726: INSTALL_DATA
727: INSTALL_SCRIPT
728: INSTALL_PROGRAM
729: target_os
730: target_vendor
731: target_cpu
732: target
733: host_os
734: host_vendor
735: host_cpu
736: host
737: build_os
738: build_vendor
739: build_cpu
740: build
741: target_alias
742: host_alias
743: build_alias
744: LIBS
745: ECHO_T
746: ECHO_N
747: ECHO_C
748: DEFS
749: mandir
750: localedir
751: libdir
752: psdir
753: pdfdir
754: dvidir
755: htmldir
756: infodir
757: docdir
758: oldincludedir
759: includedir
760: localstatedir
761: sharedstatedir
762: sysconfdir
763: datadir
764: datarootdir
765: libexecdir
766: sbindir
767: bindir
768: program_transform_name
769: prefix
770: exec_prefix
771: PACKAGE_URL
772: PACKAGE_BUGREPORT
773: PACKAGE_STRING
774: PACKAGE_VERSION
775: PACKAGE_TARNAME
776: PACKAGE_NAME
777: PATH_SEPARATOR
778: SHELL'
779: ac_subst_files=''
780: ac_user_opts='
781: enable_option_checking
782: enable_exampledir
783: enable_pkgsrcrcdir
784: with_cflags
785: enable_dependency_tracking
786: enable_shared
787: enable_static
788: with_pic
789: enable_fast_install
790: with_gnu_ld
791: with_sysroot
792: enable_libtool_lock
793: enable_vtysh
794: enable_ipv6
795: enable_doc
796: enable_zebra
797: enable_bgpd
798: enable_ripd
799: enable_ripngd
800: enable_ospfd
801: enable_ospf6d
802: enable_watchquagga
803: enable_isisd
804: enable_solaris
805: enable_bgp_announce
806: enable_netlink
807: enable_broken_aliases
808: with_crypto
809: enable_snmp
810: with_libpam
811: enable_tcp_zebra
812: enable_opaque_lsa
813: enable_ospfapi
814: enable_ospfclient
815: enable_ospf_te
816: enable_multipath
817: enable_user
818: enable_group
819: enable_vty_group
820: enable_configfile_mask
821: enable_logfile_mask
822: enable_rtadv
823: enable_irdp
824: enable_isis_topology
825: enable_capabilities
826: enable_gcc_ultra_verbose
827: enable_linux24_tcp_md5
828: enable_gcc_rdynamic
829: enable_time_check
830: enable_pcreposix
831: enable_largefile
832: enable_pie
833: '
834: ac_precious_vars='build_alias
835: host_alias
836: target_alias
837: GAWK
838: CC
839: CFLAGS
840: LDFLAGS
841: LIBS
842: CPPFLAGS
843: CPP'
844:
845:
846: # Initialize some variables set by options.
847: ac_init_help=
848: ac_init_version=false
849: ac_unrecognized_opts=
850: ac_unrecognized_sep=
851: # The variables have the same names as the options, with
852: # dashes changed to underlines.
853: cache_file=/dev/null
854: exec_prefix=NONE
855: no_create=
856: no_recursion=
857: prefix=NONE
858: program_prefix=NONE
859: program_suffix=NONE
860: program_transform_name=s,x,x,
861: silent=
862: site=
863: srcdir=
864: verbose=
865: x_includes=NONE
866: x_libraries=NONE
867:
868: # Installation directory options.
869: # These are left unexpanded so users can "make install exec_prefix=/foo"
870: # and all the variables that are supposed to be based on exec_prefix
871: # by default will actually change.
872: # Use braces instead of parens because sh, perl, etc. also accept them.
873: # (The list follows the same order as the GNU Coding Standards.)
874: bindir='${exec_prefix}/bin'
875: sbindir='${exec_prefix}/sbin'
876: libexecdir='${exec_prefix}/libexec'
877: datarootdir='${prefix}/share'
878: datadir='${datarootdir}'
879: sysconfdir='${prefix}/etc'
880: sharedstatedir='${prefix}/com'
881: localstatedir='${prefix}/var'
882: includedir='${prefix}/include'
883: oldincludedir='/usr/include'
884: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885: infodir='${datarootdir}/info'
886: htmldir='${docdir}'
887: dvidir='${docdir}'
888: pdfdir='${docdir}'
889: psdir='${docdir}'
890: libdir='${exec_prefix}/lib'
891: localedir='${datarootdir}/locale'
892: mandir='${datarootdir}/man'
893:
894: ac_prev=
895: ac_dashdash=
896: for ac_option
897: do
898: # If the previous option needs an argument, assign it.
899: if test -n "$ac_prev"; then
900: eval $ac_prev=\$ac_option
901: ac_prev=
902: continue
903: fi
904:
905: case $ac_option in
906: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907: *=) ac_optarg= ;;
908: *) ac_optarg=yes ;;
909: esac
910:
911: # Accept the important Cygnus configure options, so we can diagnose typos.
912:
913: case $ac_dashdash$ac_option in
914: --)
915: ac_dashdash=yes ;;
916:
917: -bindir | --bindir | --bindi | --bind | --bin | --bi)
918: ac_prev=bindir ;;
919: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920: bindir=$ac_optarg ;;
921:
922: -build | --build | --buil | --bui | --bu)
923: ac_prev=build_alias ;;
924: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925: build_alias=$ac_optarg ;;
926:
927: -cache-file | --cache-file | --cache-fil | --cache-fi \
928: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929: ac_prev=cache_file ;;
930: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932: cache_file=$ac_optarg ;;
933:
934: --config-cache | -C)
935: cache_file=config.cache ;;
936:
937: -datadir | --datadir | --datadi | --datad)
938: ac_prev=datadir ;;
939: -datadir=* | --datadir=* | --datadi=* | --datad=*)
940: datadir=$ac_optarg ;;
941:
942: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943: | --dataroo | --dataro | --datar)
944: ac_prev=datarootdir ;;
945: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947: datarootdir=$ac_optarg ;;
948:
949: -disable-* | --disable-*)
950: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951: # Reject names that are not valid shell variable names.
952: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953: as_fn_error $? "invalid feature name: $ac_useropt"
954: ac_useropt_orig=$ac_useropt
955: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956: case $ac_user_opts in
957: *"
958: "enable_$ac_useropt"
959: "*) ;;
960: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961: ac_unrecognized_sep=', ';;
962: esac
963: eval enable_$ac_useropt=no ;;
964:
965: -docdir | --docdir | --docdi | --doc | --do)
966: ac_prev=docdir ;;
967: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968: docdir=$ac_optarg ;;
969:
970: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971: ac_prev=dvidir ;;
972: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973: dvidir=$ac_optarg ;;
974:
975: -enable-* | --enable-*)
976: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977: # Reject names that are not valid shell variable names.
978: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979: as_fn_error $? "invalid feature name: $ac_useropt"
980: ac_useropt_orig=$ac_useropt
981: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982: case $ac_user_opts in
983: *"
984: "enable_$ac_useropt"
985: "*) ;;
986: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987: ac_unrecognized_sep=', ';;
988: esac
989: eval enable_$ac_useropt=\$ac_optarg ;;
990:
991: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993: | --exec | --exe | --ex)
994: ac_prev=exec_prefix ;;
995: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997: | --exec=* | --exe=* | --ex=*)
998: exec_prefix=$ac_optarg ;;
999:
1000: -gas | --gas | --ga | --g)
1001: # Obsolete; use --with-gas.
1002: with_gas=yes ;;
1003:
1004: -help | --help | --hel | --he | -h)
1005: ac_init_help=long ;;
1006: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007: ac_init_help=recursive ;;
1008: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009: ac_init_help=short ;;
1010:
1011: -host | --host | --hos | --ho)
1012: ac_prev=host_alias ;;
1013: -host=* | --host=* | --hos=* | --ho=*)
1014: host_alias=$ac_optarg ;;
1015:
1016: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017: ac_prev=htmldir ;;
1018: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019: | --ht=*)
1020: htmldir=$ac_optarg ;;
1021:
1022: -includedir | --includedir | --includedi | --included | --include \
1023: | --includ | --inclu | --incl | --inc)
1024: ac_prev=includedir ;;
1025: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026: | --includ=* | --inclu=* | --incl=* | --inc=*)
1027: includedir=$ac_optarg ;;
1028:
1029: -infodir | --infodir | --infodi | --infod | --info | --inf)
1030: ac_prev=infodir ;;
1031: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032: infodir=$ac_optarg ;;
1033:
1034: -libdir | --libdir | --libdi | --libd)
1035: ac_prev=libdir ;;
1036: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037: libdir=$ac_optarg ;;
1038:
1039: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040: | --libexe | --libex | --libe)
1041: ac_prev=libexecdir ;;
1042: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043: | --libexe=* | --libex=* | --libe=*)
1044: libexecdir=$ac_optarg ;;
1045:
1046: -localedir | --localedir | --localedi | --localed | --locale)
1047: ac_prev=localedir ;;
1048: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049: localedir=$ac_optarg ;;
1050:
1051: -localstatedir | --localstatedir | --localstatedi | --localstated \
1052: | --localstate | --localstat | --localsta | --localst | --locals)
1053: ac_prev=localstatedir ;;
1054: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056: localstatedir=$ac_optarg ;;
1057:
1058: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059: ac_prev=mandir ;;
1060: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061: mandir=$ac_optarg ;;
1062:
1063: -nfp | --nfp | --nf)
1064: # Obsolete; use --without-fp.
1065: with_fp=no ;;
1066:
1067: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068: | --no-cr | --no-c | -n)
1069: no_create=yes ;;
1070:
1071: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073: no_recursion=yes ;;
1074:
1075: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077: | --oldin | --oldi | --old | --ol | --o)
1078: ac_prev=oldincludedir ;;
1079: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082: oldincludedir=$ac_optarg ;;
1083:
1084: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085: ac_prev=prefix ;;
1086: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087: prefix=$ac_optarg ;;
1088:
1089: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090: | --program-pre | --program-pr | --program-p)
1091: ac_prev=program_prefix ;;
1092: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094: program_prefix=$ac_optarg ;;
1095:
1096: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097: | --program-suf | --program-su | --program-s)
1098: ac_prev=program_suffix ;;
1099: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101: program_suffix=$ac_optarg ;;
1102:
1103: -program-transform-name | --program-transform-name \
1104: | --program-transform-nam | --program-transform-na \
1105: | --program-transform-n | --program-transform- \
1106: | --program-transform | --program-transfor \
1107: | --program-transfo | --program-transf \
1108: | --program-trans | --program-tran \
1109: | --progr-tra | --program-tr | --program-t)
1110: ac_prev=program_transform_name ;;
1111: -program-transform-name=* | --program-transform-name=* \
1112: | --program-transform-nam=* | --program-transform-na=* \
1113: | --program-transform-n=* | --program-transform-=* \
1114: | --program-transform=* | --program-transfor=* \
1115: | --program-transfo=* | --program-transf=* \
1116: | --program-trans=* | --program-tran=* \
1117: | --progr-tra=* | --program-tr=* | --program-t=*)
1118: program_transform_name=$ac_optarg ;;
1119:
1120: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121: ac_prev=pdfdir ;;
1122: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123: pdfdir=$ac_optarg ;;
1124:
1125: -psdir | --psdir | --psdi | --psd | --ps)
1126: ac_prev=psdir ;;
1127: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128: psdir=$ac_optarg ;;
1129:
1130: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131: | -silent | --silent | --silen | --sile | --sil)
1132: silent=yes ;;
1133:
1134: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135: ac_prev=sbindir ;;
1136: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137: | --sbi=* | --sb=*)
1138: sbindir=$ac_optarg ;;
1139:
1140: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142: | --sharedst | --shareds | --shared | --share | --shar \
1143: | --sha | --sh)
1144: ac_prev=sharedstatedir ;;
1145: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148: | --sha=* | --sh=*)
1149: sharedstatedir=$ac_optarg ;;
1150:
1151: -site | --site | --sit)
1152: ac_prev=site ;;
1153: -site=* | --site=* | --sit=*)
1154: site=$ac_optarg ;;
1155:
1156: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157: ac_prev=srcdir ;;
1158: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159: srcdir=$ac_optarg ;;
1160:
1161: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162: | --syscon | --sysco | --sysc | --sys | --sy)
1163: ac_prev=sysconfdir ;;
1164: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166: sysconfdir=$ac_optarg ;;
1167:
1168: -target | --target | --targe | --targ | --tar | --ta | --t)
1169: ac_prev=target_alias ;;
1170: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171: target_alias=$ac_optarg ;;
1172:
1173: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174: verbose=yes ;;
1175:
1176: -version | --version | --versio | --versi | --vers | -V)
1177: ac_init_version=: ;;
1178:
1179: -with-* | --with-*)
1180: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181: # Reject names that are not valid shell variable names.
1182: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183: as_fn_error $? "invalid package name: $ac_useropt"
1184: ac_useropt_orig=$ac_useropt
1185: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186: case $ac_user_opts in
1187: *"
1188: "with_$ac_useropt"
1189: "*) ;;
1190: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191: ac_unrecognized_sep=', ';;
1192: esac
1193: eval with_$ac_useropt=\$ac_optarg ;;
1194:
1195: -without-* | --without-*)
1196: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197: # Reject names that are not valid shell variable names.
1198: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199: as_fn_error $? "invalid package name: $ac_useropt"
1200: ac_useropt_orig=$ac_useropt
1201: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202: case $ac_user_opts in
1203: *"
1204: "with_$ac_useropt"
1205: "*) ;;
1206: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207: ac_unrecognized_sep=', ';;
1208: esac
1209: eval with_$ac_useropt=no ;;
1210:
1211: --x)
1212: # Obsolete; use --with-x.
1213: with_x=yes ;;
1214:
1215: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216: | --x-incl | --x-inc | --x-in | --x-i)
1217: ac_prev=x_includes ;;
1218: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220: x_includes=$ac_optarg ;;
1221:
1222: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224: ac_prev=x_libraries ;;
1225: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227: x_libraries=$ac_optarg ;;
1228:
1229: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230: Try \`$0 --help' for more information"
1231: ;;
1232:
1233: *=*)
1234: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235: # Reject names that are not valid shell variable names.
1236: case $ac_envvar in #(
1237: '' | [0-9]* | *[!_$as_cr_alnum]* )
1238: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239: esac
1240: eval $ac_envvar=\$ac_optarg
1241: export $ac_envvar ;;
1242:
1243: *)
1244: # FIXME: should be removed in autoconf 3.0.
1245: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249: ;;
1250:
1251: esac
1252: done
1253:
1254: if test -n "$ac_prev"; then
1255: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256: as_fn_error $? "missing argument to $ac_option"
1257: fi
1258:
1259: if test -n "$ac_unrecognized_opts"; then
1260: case $enable_option_checking in
1261: no) ;;
1262: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264: esac
1265: fi
1266:
1267: # Check all directory arguments for consistency.
1268: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269: datadir sysconfdir sharedstatedir localstatedir includedir \
1270: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271: libdir localedir mandir
1272: do
1273: eval ac_val=\$$ac_var
1274: # Remove trailing slashes.
1275: case $ac_val in
1276: */ )
1277: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278: eval $ac_var=\$ac_val;;
1279: esac
1280: # Be sure to have absolute directory names.
1281: case $ac_val in
1282: [\\/$]* | ?:[\\/]* ) continue;;
1283: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284: esac
1285: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286: done
1287:
1288: # There might be people who depend on the old broken behavior: `$host'
1289: # used to hold the argument of --host etc.
1290: # FIXME: To remove some day.
1291: build=$build_alias
1292: host=$host_alias
1293: target=$target_alias
1294:
1295: # FIXME: To remove some day.
1296: if test "x$host_alias" != x; then
1297: if test "x$build_alias" = x; then
1298: cross_compiling=maybe
1299: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300: If a cross compiler is detected then cross compile mode will be used" >&2
1301: elif test "x$build_alias" != "x$host_alias"; then
1302: cross_compiling=yes
1303: fi
1304: fi
1305:
1306: ac_tool_prefix=
1307: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308:
1309: test "$silent" = yes && exec 6>/dev/null
1310:
1311:
1312: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313: ac_ls_di=`ls -di .` &&
1314: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315: as_fn_error $? "working directory cannot be determined"
1316: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317: as_fn_error $? "pwd does not report name of working directory"
1318:
1319:
1320: # Find the source files, if location was not specified.
1321: if test -z "$srcdir"; then
1322: ac_srcdir_defaulted=yes
1323: # Try the directory containing this script, then the parent directory.
1324: ac_confdir=`$as_dirname -- "$as_myself" ||
1325: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326: X"$as_myself" : 'X\(//\)[^/]' \| \
1327: X"$as_myself" : 'X\(//\)$' \| \
1328: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329: $as_echo X"$as_myself" |
1330: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331: s//\1/
1332: q
1333: }
1334: /^X\(\/\/\)[^/].*/{
1335: s//\1/
1336: q
1337: }
1338: /^X\(\/\/\)$/{
1339: s//\1/
1340: q
1341: }
1342: /^X\(\/\).*/{
1343: s//\1/
1344: q
1345: }
1346: s/.*/./; q'`
1347: srcdir=$ac_confdir
1348: if test ! -r "$srcdir/$ac_unique_file"; then
1349: srcdir=..
1350: fi
1351: else
1352: ac_srcdir_defaulted=no
1353: fi
1354: if test ! -r "$srcdir/$ac_unique_file"; then
1355: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357: fi
1358: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359: ac_abs_confdir=`(
1360: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361: pwd)`
1362: # When building in place, set srcdir=.
1363: if test "$ac_abs_confdir" = "$ac_pwd"; then
1364: srcdir=.
1365: fi
1366: # Remove unnecessary trailing slashes from srcdir.
1367: # Double slashes in file names in object file debugging info
1368: # mess up M-x gdb in Emacs.
1369: case $srcdir in
1370: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371: esac
1372: for ac_var in $ac_precious_vars; do
1373: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374: eval ac_env_${ac_var}_value=\$${ac_var}
1375: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377: done
1378:
1379: #
1380: # Report the --help message.
1381: #
1382: if test "$ac_init_help" = "long"; then
1383: # Omit some internal or obsolete options to make the list less imposing.
1384: # This message is too long to be a string in the A/UX 3.1 sh.
1385: cat <<_ACEOF
1386: \`configure' configures Quagga 0.99.20 to adapt to many kinds of systems.
1387:
1388: Usage: $0 [OPTION]... [VAR=VALUE]...
1389:
1390: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391: VAR=VALUE. See below for descriptions of some of the useful variables.
1392:
1393: Defaults for the options are specified in brackets.
1394:
1395: Configuration:
1396: -h, --help display this help and exit
1397: --help=short display options specific to this package
1398: --help=recursive display the short help of all the included packages
1399: -V, --version display version information and exit
1400: -q, --quiet, --silent do not print \`checking ...' messages
1401: --cache-file=FILE cache test results in FILE [disabled]
1402: -C, --config-cache alias for \`--cache-file=config.cache'
1403: -n, --no-create do not create output files
1404: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405:
1406: Installation directories:
1407: --prefix=PREFIX install architecture-independent files in PREFIX
1408: [$ac_default_prefix]
1409: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410: [PREFIX]
1411:
1412: By default, \`make install' will install all the files in
1413: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415: for instance \`--prefix=\$HOME'.
1416:
1417: For better control, use the options below.
1418:
1419: Fine tuning of the installation directories:
1420: --bindir=DIR user executables [EPREFIX/bin]
1421: --sbindir=DIR system admin executables [EPREFIX/sbin]
1422: --libexecdir=DIR program executables [EPREFIX/libexec]
1423: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426: --libdir=DIR object code libraries [EPREFIX/lib]
1427: --includedir=DIR C header files [PREFIX/include]
1428: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431: --infodir=DIR info documentation [DATAROOTDIR/info]
1432: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433: --mandir=DIR man documentation [DATAROOTDIR/man]
1434: --docdir=DIR documentation root [DATAROOTDIR/doc/quagga]
1435: --htmldir=DIR html documentation [DOCDIR]
1436: --dvidir=DIR dvi documentation [DOCDIR]
1437: --pdfdir=DIR pdf documentation [DOCDIR]
1438: --psdir=DIR ps documentation [DOCDIR]
1439: _ACEOF
1440:
1441: cat <<\_ACEOF
1442:
1443: Program names:
1444: --program-prefix=PREFIX prepend PREFIX to installed program names
1445: --program-suffix=SUFFIX append SUFFIX to installed program names
1446: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447:
1448: System types:
1449: --build=BUILD configure for building on BUILD [guessed]
1450: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451: --target=TARGET configure for building compilers for TARGET [HOST]
1452: _ACEOF
1453: fi
1454:
1455: if test -n "$ac_init_help"; then
1456: case $ac_init_help in
1457: short | recursive ) echo "Configuration of Quagga 0.99.20:";;
1458: esac
1459: cat <<\_ACEOF
1460:
1461: Optional Features:
1462: --disable-option-checking ignore unrecognized --enable/--with options
1463: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465: --enable-exampledir specify alternate directory for examples
1466: --enable-pkgsrcrcdir specify directory for rc.d scripts
1467: --disable-dependency-tracking speeds up one-time build
1468: --enable-dependency-tracking do not reject slow dependency extractors
1469: --enable-shared[=PKGS] build shared libraries [default=yes]
1470: --enable-static[=PKGS] build static libraries [default=yes]
1471: --enable-fast-install[=PKGS]
1472: optimize for fast installation [default=yes]
1473: --disable-libtool-lock avoid locking (might break parallel builds)
1474: --enable-vtysh include integrated vty shell for Quagga
1475: --disable-ipv6 turn off IPv6 related features and daemons
1476: --disable-doc do not build docs
1477: --disable-zebra do not build zebra daemon
1478: --disable-bgpd do not build bgpd
1479: --disable-ripd do not build ripd
1480: --disable-ripngd do not build ripngd
1481: --disable-ospfd do not build ospfd
1482: --disable-ospf6d do not build ospf6d
1483: --disable-watchquagga do not build watchquagga
1484: --enable-isisd build isisd
1485: --enable-solaris build solaris
1486: --disable-bgp-announce, turn off BGP route announcement
1487: --enable-netlink force to use Linux netlink interface
1488: --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
1489: --enable-snmp enable SNMP support
1490: --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon
1491: --disable-opaque-lsa do not build OSPF Opaque-LSA with OSPFAPI support
1492: (RFC2370)
1493: --disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database
1494: --disable-ospfclient do not build OSPFAPI client for OSPFAPI,
1495: (this is the default if --disable-ospfapi is set)
1496: --disable-ospf-te disable Traffic Engineering Extension to OSPF
1497: --enable-multipath=ARG enable multipath function, ARG must be digit
1498: --enable-user=user user to run Quagga suite as (default quagga)
1499: --enable-group=group group to run Quagga suite as (default quagga)
1500: --enable-vty-group=ARG set vty sockets to have specified group as owner
1501: --enable-configfile-mask=ARG set mask for config files
1502: --enable-logfile-mask=ARG set mask for log files
1503: --disable-rtadv disable IPV6 router advertisement feature
1504: --enable-irdp enable IRDP server support in zebra
1505: --enable-isis-topology enable IS-IS topology generator
1506: --disable-capabilities disable using POSIX capabilities
1507: --enable-gcc-ultra-verbose enable ultra verbose GCC warnings
1508: --enable-linux24-tcp-md5 enable support for old, Linux-2.4 RFC2385 patch
1509: --enable-gcc-rdynamic enable gcc linking with -rdynamic for better backtraces
1510: --disable-time-check disable slow thread warning messages
1511: --enable-pcreposix enable using PCRE Posix libs for regex functions
1512: --disable-largefile omit support for large files
1513: --disable-pie Do not build tools as a Position Independent
1514: Executables
1515:
1516: Optional Packages:
1517: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519: --with-cflags Set CFLAGS for use in compilation.
1520: --with-pic try to use only PIC/non-PIC objects [default=use
1521: both]
1522: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523: --with-sysroot=DIR Search for dependent libraries within DIR
1524: (or the compiler's sysroot if not specified).
1525: --without-crypto do not use libcrypto in SNMP
1526: --with-libpam use libpam for PAM support in vtysh
1527:
1528: Some influential environment variables:
1529: GAWK GNU AWK
1530: CC C compiler command
1531: CFLAGS C compiler flags
1532: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533: nonstandard directory <lib dir>
1534: LIBS libraries to pass to the linker, e.g. -l<library>
1535: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536: you have headers in a nonstandard directory <include dir>
1537: CPP C preprocessor
1538:
1539: Use these variables to override the choices made by `configure' or to help
1540: it to find libraries and programs with nonstandard names/locations.
1541:
1542: Report bugs to <https://bugzilla.quagga.net>.
1543: _ACEOF
1544: ac_status=$?
1545: fi
1546:
1547: if test "$ac_init_help" = "recursive"; then
1548: # If there are subdirs, report their specific --help.
1549: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550: test -d "$ac_dir" ||
1551: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552: continue
1553: ac_builddir=.
1554:
1555: case "$ac_dir" in
1556: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557: *)
1558: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559: # A ".." for each directory in $ac_dir_suffix.
1560: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561: case $ac_top_builddir_sub in
1562: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564: esac ;;
1565: esac
1566: ac_abs_top_builddir=$ac_pwd
1567: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568: # for backward compatibility:
1569: ac_top_builddir=$ac_top_build_prefix
1570:
1571: case $srcdir in
1572: .) # We are building in place.
1573: ac_srcdir=.
1574: ac_top_srcdir=$ac_top_builddir_sub
1575: ac_abs_top_srcdir=$ac_pwd ;;
1576: [\\/]* | ?:[\\/]* ) # Absolute name.
1577: ac_srcdir=$srcdir$ac_dir_suffix;
1578: ac_top_srcdir=$srcdir
1579: ac_abs_top_srcdir=$srcdir ;;
1580: *) # Relative name.
1581: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582: ac_top_srcdir=$ac_top_build_prefix$srcdir
1583: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584: esac
1585: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586:
1587: cd "$ac_dir" || { ac_status=$?; continue; }
1588: # Check for guested configure.
1589: if test -f "$ac_srcdir/configure.gnu"; then
1590: echo &&
1591: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592: elif test -f "$ac_srcdir/configure"; then
1593: echo &&
1594: $SHELL "$ac_srcdir/configure" --help=recursive
1595: else
1596: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597: fi || ac_status=$?
1598: cd "$ac_pwd" || { ac_status=$?; break; }
1599: done
1600: fi
1601:
1602: test -n "$ac_init_help" && exit $ac_status
1603: if $ac_init_version; then
1604: cat <<\_ACEOF
1605: Quagga configure 0.99.20
1606: generated by GNU Autoconf 2.68
1607:
1608: Copyright (C) 2010 Free Software Foundation, Inc.
1609: This configure script is free software; the Free Software Foundation
1610: gives unlimited permission to copy, distribute and modify it.
1611: _ACEOF
1612: exit
1613: fi
1614:
1615: ## ------------------------ ##
1616: ## Autoconf initialization. ##
1617: ## ------------------------ ##
1618:
1619: # ac_fn_c_try_compile LINENO
1620: # --------------------------
1621: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622: ac_fn_c_try_compile ()
1623: {
1624: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625: rm -f conftest.$ac_objext
1626: if { { ac_try="$ac_compile"
1627: case "(($ac_try" in
1628: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629: *) ac_try_echo=$ac_try;;
1630: esac
1631: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632: $as_echo "$ac_try_echo"; } >&5
1633: (eval "$ac_compile") 2>conftest.err
1634: ac_status=$?
1635: if test -s conftest.err; then
1636: grep -v '^ *+' conftest.err >conftest.er1
1637: cat conftest.er1 >&5
1638: mv -f conftest.er1 conftest.err
1639: fi
1640: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641: test $ac_status = 0; } && {
1642: test -z "$ac_c_werror_flag" ||
1643: test ! -s conftest.err
1644: } && test -s conftest.$ac_objext; then :
1645: ac_retval=0
1646: else
1647: $as_echo "$as_me: failed program was:" >&5
1648: sed 's/^/| /' conftest.$ac_ext >&5
1649:
1650: ac_retval=1
1651: fi
1652: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653: as_fn_set_status $ac_retval
1654:
1655: } # ac_fn_c_try_compile
1656:
1657: # ac_fn_c_try_cpp LINENO
1658: # ----------------------
1659: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660: ac_fn_c_try_cpp ()
1661: {
1662: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663: if { { ac_try="$ac_cpp conftest.$ac_ext"
1664: case "(($ac_try" in
1665: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666: *) ac_try_echo=$ac_try;;
1667: esac
1668: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669: $as_echo "$ac_try_echo"; } >&5
1670: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671: ac_status=$?
1672: if test -s conftest.err; then
1673: grep -v '^ *+' conftest.err >conftest.er1
1674: cat conftest.er1 >&5
1675: mv -f conftest.er1 conftest.err
1676: fi
1677: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678: test $ac_status = 0; } > conftest.i && {
1679: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680: test ! -s conftest.err
1681: }; then :
1682: ac_retval=0
1683: else
1684: $as_echo "$as_me: failed program was:" >&5
1685: sed 's/^/| /' conftest.$ac_ext >&5
1686:
1687: ac_retval=1
1688: fi
1689: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690: as_fn_set_status $ac_retval
1691:
1692: } # ac_fn_c_try_cpp
1693:
1694: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1695: # -------------------------------------------------------
1696: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1697: # the include files in INCLUDES and setting the cache variable VAR
1698: # accordingly.
1699: ac_fn_c_check_header_mongrel ()
1700: {
1701: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702: if eval \${$3+:} false; then :
1703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704: $as_echo_n "checking for $2... " >&6; }
1705: if eval \${$3+:} false; then :
1706: $as_echo_n "(cached) " >&6
1707: fi
1708: eval ac_res=\$$3
1709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710: $as_echo "$ac_res" >&6; }
1711: else
1712: # Is the header compilable?
1713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1714: $as_echo_n "checking $2 usability... " >&6; }
1715: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716: /* end confdefs.h. */
1717: $4
1718: #include <$2>
1719: _ACEOF
1720: if ac_fn_c_try_compile "$LINENO"; then :
1721: ac_header_compiler=yes
1722: else
1723: ac_header_compiler=no
1724: fi
1725: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1727: $as_echo "$ac_header_compiler" >&6; }
1728:
1729: # Is the header present?
1730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1731: $as_echo_n "checking $2 presence... " >&6; }
1732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733: /* end confdefs.h. */
1734: #include <$2>
1735: _ACEOF
1736: if ac_fn_c_try_cpp "$LINENO"; then :
1737: ac_header_preproc=yes
1738: else
1739: ac_header_preproc=no
1740: fi
1741: rm -f conftest.err conftest.i conftest.$ac_ext
1742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1743: $as_echo "$ac_header_preproc" >&6; }
1744:
1745: # So? What about this header?
1746: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1747: yes:no: )
1748: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1749: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1750: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752: ;;
1753: no:yes:* )
1754: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1755: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1756: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1757: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1758: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1759: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1760: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1761: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1762: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764: ( $as_echo "## ------------------------------------------ ##
1765: ## Report this to https://bugzilla.quagga.net ##
1766: ## ------------------------------------------ ##"
1767: ) | sed "s/^/$as_me: WARNING: /" >&2
1768: ;;
1769: esac
1770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771: $as_echo_n "checking for $2... " >&6; }
1772: if eval \${$3+:} false; then :
1773: $as_echo_n "(cached) " >&6
1774: else
1775: eval "$3=\$ac_header_compiler"
1776: fi
1777: eval ac_res=\$$3
1778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779: $as_echo "$ac_res" >&6; }
1780: fi
1781: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782:
1783: } # ac_fn_c_check_header_mongrel
1784:
1785: # ac_fn_c_try_run LINENO
1786: # ----------------------
1787: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788: # that executables *can* be run.
1789: ac_fn_c_try_run ()
1790: {
1791: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792: if { { ac_try="$ac_link"
1793: case "(($ac_try" in
1794: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795: *) ac_try_echo=$ac_try;;
1796: esac
1797: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798: $as_echo "$ac_try_echo"; } >&5
1799: (eval "$ac_link") 2>&5
1800: ac_status=$?
1801: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1803: { { case "(($ac_try" in
1804: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805: *) ac_try_echo=$ac_try;;
1806: esac
1807: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808: $as_echo "$ac_try_echo"; } >&5
1809: (eval "$ac_try") 2>&5
1810: ac_status=$?
1811: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812: test $ac_status = 0; }; }; then :
1813: ac_retval=0
1814: else
1815: $as_echo "$as_me: program exited with status $ac_status" >&5
1816: $as_echo "$as_me: failed program was:" >&5
1817: sed 's/^/| /' conftest.$ac_ext >&5
1818:
1819: ac_retval=$ac_status
1820: fi
1821: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823: as_fn_set_status $ac_retval
1824:
1825: } # ac_fn_c_try_run
1826:
1827: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1828: # -------------------------------------------------------
1829: # Tests whether HEADER exists and can be compiled using the include files in
1830: # INCLUDES, setting the cache variable VAR accordingly.
1831: ac_fn_c_check_header_compile ()
1832: {
1833: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835: $as_echo_n "checking for $2... " >&6; }
1836: if eval \${$3+:} false; then :
1837: $as_echo_n "(cached) " >&6
1838: else
1839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840: /* end confdefs.h. */
1841: $4
1842: #include <$2>
1843: _ACEOF
1844: if ac_fn_c_try_compile "$LINENO"; then :
1845: eval "$3=yes"
1846: else
1847: eval "$3=no"
1848: fi
1849: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850: fi
1851: eval ac_res=\$$3
1852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853: $as_echo "$ac_res" >&6; }
1854: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855:
1856: } # ac_fn_c_check_header_compile
1857:
1858: # ac_fn_c_try_link LINENO
1859: # -----------------------
1860: # Try to link conftest.$ac_ext, and return whether this succeeded.
1861: ac_fn_c_try_link ()
1862: {
1863: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864: rm -f conftest.$ac_objext conftest$ac_exeext
1865: if { { ac_try="$ac_link"
1866: case "(($ac_try" in
1867: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868: *) ac_try_echo=$ac_try;;
1869: esac
1870: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871: $as_echo "$ac_try_echo"; } >&5
1872: (eval "$ac_link") 2>conftest.err
1873: ac_status=$?
1874: if test -s conftest.err; then
1875: grep -v '^ *+' conftest.err >conftest.er1
1876: cat conftest.er1 >&5
1877: mv -f conftest.er1 conftest.err
1878: fi
1879: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880: test $ac_status = 0; } && {
1881: test -z "$ac_c_werror_flag" ||
1882: test ! -s conftest.err
1883: } && test -s conftest$ac_exeext && {
1884: test "$cross_compiling" = yes ||
1885: $as_test_x conftest$ac_exeext
1886: }; then :
1887: ac_retval=0
1888: else
1889: $as_echo "$as_me: failed program was:" >&5
1890: sed 's/^/| /' conftest.$ac_ext >&5
1891:
1892: ac_retval=1
1893: fi
1894: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896: # interfere with the next link command; also delete a directory that is
1897: # left behind by Apple's compiler. We do this before executing the actions.
1898: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900: as_fn_set_status $ac_retval
1901:
1902: } # ac_fn_c_try_link
1903:
1904: # ac_fn_c_check_func LINENO FUNC VAR
1905: # ----------------------------------
1906: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1907: ac_fn_c_check_func ()
1908: {
1909: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911: $as_echo_n "checking for $2... " >&6; }
1912: if eval \${$3+:} false; then :
1913: $as_echo_n "(cached) " >&6
1914: else
1915: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916: /* end confdefs.h. */
1917: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1918: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1919: #define $2 innocuous_$2
1920:
1921: /* System header to define __stub macros and hopefully few prototypes,
1922: which can conflict with char $2 (); below.
1923: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1924: <limits.h> exists even on freestanding compilers. */
1925:
1926: #ifdef __STDC__
1927: # include <limits.h>
1928: #else
1929: # include <assert.h>
1930: #endif
1931:
1932: #undef $2
1933:
1934: /* Override any GCC internal prototype to avoid an error.
1935: Use char because int might match the return type of a GCC
1936: builtin and then its argument prototype would still apply. */
1937: #ifdef __cplusplus
1938: extern "C"
1939: #endif
1940: char $2 ();
1941: /* The GNU C library defines this for functions which it implements
1942: to always fail with ENOSYS. Some functions are actually named
1943: something starting with __ and the normal name is an alias. */
1944: #if defined __stub_$2 || defined __stub___$2
1945: choke me
1946: #endif
1947:
1948: int
1949: main ()
1950: {
1951: return $2 ();
1952: ;
1953: return 0;
1954: }
1955: _ACEOF
1956: if ac_fn_c_try_link "$LINENO"; then :
1957: eval "$3=yes"
1958: else
1959: eval "$3=no"
1960: fi
1961: rm -f core conftest.err conftest.$ac_objext \
1962: conftest$ac_exeext conftest.$ac_ext
1963: fi
1964: eval ac_res=\$$3
1965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966: $as_echo "$ac_res" >&6; }
1967: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968:
1969: } # ac_fn_c_check_func
1970:
1971: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1972: # -------------------------------------------
1973: # Tests whether TYPE exists after having included INCLUDES, setting cache
1974: # variable VAR accordingly.
1975: ac_fn_c_check_type ()
1976: {
1977: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979: $as_echo_n "checking for $2... " >&6; }
1980: if eval \${$3+:} false; then :
1981: $as_echo_n "(cached) " >&6
1982: else
1983: eval "$3=no"
1984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985: /* end confdefs.h. */
1986: $4
1987: int
1988: main ()
1989: {
1990: if (sizeof ($2))
1991: return 0;
1992: ;
1993: return 0;
1994: }
1995: _ACEOF
1996: if ac_fn_c_try_compile "$LINENO"; then :
1997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998: /* end confdefs.h. */
1999: $4
2000: int
2001: main ()
2002: {
2003: if (sizeof (($2)))
2004: return 0;
2005: ;
2006: return 0;
2007: }
2008: _ACEOF
2009: if ac_fn_c_try_compile "$LINENO"; then :
2010:
2011: else
2012: eval "$3=yes"
2013: fi
2014: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015: fi
2016: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017: fi
2018: eval ac_res=\$$3
2019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020: $as_echo "$ac_res" >&6; }
2021: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022:
2023: } # ac_fn_c_check_type
2024:
2025: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2026: # ----------------------------------------------------
2027: # Tries to find if the field MEMBER exists in type AGGR, after including
2028: # INCLUDES, setting cache variable VAR accordingly.
2029: ac_fn_c_check_member ()
2030: {
2031: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2033: $as_echo_n "checking for $2.$3... " >&6; }
2034: if eval \${$4+:} false; then :
2035: $as_echo_n "(cached) " >&6
2036: else
2037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038: /* end confdefs.h. */
2039: $5
2040: int
2041: main ()
2042: {
2043: static $2 ac_aggr;
2044: if (ac_aggr.$3)
2045: return 0;
2046: ;
2047: return 0;
2048: }
2049: _ACEOF
2050: if ac_fn_c_try_compile "$LINENO"; then :
2051: eval "$4=yes"
2052: else
2053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054: /* end confdefs.h. */
2055: $5
2056: int
2057: main ()
2058: {
2059: static $2 ac_aggr;
2060: if (sizeof ac_aggr.$3)
2061: return 0;
2062: ;
2063: return 0;
2064: }
2065: _ACEOF
2066: if ac_fn_c_try_compile "$LINENO"; then :
2067: eval "$4=yes"
2068: else
2069: eval "$4=no"
2070: fi
2071: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072: fi
2073: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074: fi
2075: eval ac_res=\$$4
2076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077: $as_echo "$ac_res" >&6; }
2078: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079:
2080: } # ac_fn_c_check_member
2081:
2082: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2083: # ---------------------------------------------
2084: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2085: # accordingly.
2086: ac_fn_c_check_decl ()
2087: {
2088: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089: as_decl_name=`echo $2|sed 's/ *(.*//'`
2090: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2092: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2093: if eval \${$3+:} false; then :
2094: $as_echo_n "(cached) " >&6
2095: else
2096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097: /* end confdefs.h. */
2098: $4
2099: int
2100: main ()
2101: {
2102: #ifndef $as_decl_name
2103: #ifdef __cplusplus
2104: (void) $as_decl_use;
2105: #else
2106: (void) $as_decl_name;
2107: #endif
2108: #endif
2109:
2110: ;
2111: return 0;
2112: }
2113: _ACEOF
2114: if ac_fn_c_try_compile "$LINENO"; then :
2115: eval "$3=yes"
2116: else
2117: eval "$3=no"
2118: fi
2119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120: fi
2121: eval ac_res=\$$3
2122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123: $as_echo "$ac_res" >&6; }
2124: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125:
2126: } # ac_fn_c_check_decl
2127: cat >config.log <<_ACEOF
2128: This file contains any messages produced by compilers while
2129: running configure, to aid debugging if configure makes a mistake.
2130:
2131: It was created by Quagga $as_me 0.99.20, which was
2132: generated by GNU Autoconf 2.68. Invocation command line was
2133:
2134: $ $0 $@
2135:
2136: _ACEOF
2137: exec 5>>config.log
2138: {
2139: cat <<_ASUNAME
2140: ## --------- ##
2141: ## Platform. ##
2142: ## --------- ##
2143:
2144: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2145: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2146: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2147: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2148: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2149:
2150: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2151: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2152:
2153: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2154: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2155: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2156: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2157: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2158: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2159: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2160:
2161: _ASUNAME
2162:
2163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164: for as_dir in $PATH
2165: do
2166: IFS=$as_save_IFS
2167: test -z "$as_dir" && as_dir=.
2168: $as_echo "PATH: $as_dir"
2169: done
2170: IFS=$as_save_IFS
2171:
2172: } >&5
2173:
2174: cat >&5 <<_ACEOF
2175:
2176:
2177: ## ----------- ##
2178: ## Core tests. ##
2179: ## ----------- ##
2180:
2181: _ACEOF
2182:
2183:
2184: # Keep a trace of the command line.
2185: # Strip out --no-create and --no-recursion so they do not pile up.
2186: # Strip out --silent because we don't want to record it for future runs.
2187: # Also quote any args containing shell meta-characters.
2188: # Make two passes to allow for proper duplicate-argument suppression.
2189: ac_configure_args=
2190: ac_configure_args0=
2191: ac_configure_args1=
2192: ac_must_keep_next=false
2193: for ac_pass in 1 2
2194: do
2195: for ac_arg
2196: do
2197: case $ac_arg in
2198: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2199: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2200: | -silent | --silent | --silen | --sile | --sil)
2201: continue ;;
2202: *\'*)
2203: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2204: esac
2205: case $ac_pass in
2206: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2207: 2)
2208: as_fn_append ac_configure_args1 " '$ac_arg'"
2209: if test $ac_must_keep_next = true; then
2210: ac_must_keep_next=false # Got value, back to normal.
2211: else
2212: case $ac_arg in
2213: *=* | --config-cache | -C | -disable-* | --disable-* \
2214: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2215: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2216: | -with-* | --with-* | -without-* | --without-* | --x)
2217: case "$ac_configure_args0 " in
2218: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2219: esac
2220: ;;
2221: -* ) ac_must_keep_next=true ;;
2222: esac
2223: fi
2224: as_fn_append ac_configure_args " '$ac_arg'"
2225: ;;
2226: esac
2227: done
2228: done
2229: { ac_configure_args0=; unset ac_configure_args0;}
2230: { ac_configure_args1=; unset ac_configure_args1;}
2231:
2232: # When interrupted or exit'd, cleanup temporary files, and complete
2233: # config.log. We remove comments because anyway the quotes in there
2234: # would cause problems or look ugly.
2235: # WARNING: Use '\'' to represent an apostrophe within the trap.
2236: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2237: trap 'exit_status=$?
2238: # Save into config.log some information that might help in debugging.
2239: {
2240: echo
2241:
2242: $as_echo "## ---------------- ##
2243: ## Cache variables. ##
2244: ## ---------------- ##"
2245: echo
2246: # The following way of writing the cache mishandles newlines in values,
2247: (
2248: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2249: eval ac_val=\$$ac_var
2250: case $ac_val in #(
2251: *${as_nl}*)
2252: case $ac_var in #(
2253: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2254: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2255: esac
2256: case $ac_var in #(
2257: _ | IFS | as_nl) ;; #(
2258: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2259: *) { eval $ac_var=; unset $ac_var;} ;;
2260: esac ;;
2261: esac
2262: done
2263: (set) 2>&1 |
2264: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2265: *${as_nl}ac_space=\ *)
2266: sed -n \
2267: "s/'\''/'\''\\\\'\'''\''/g;
2268: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2269: ;; #(
2270: *)
2271: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2272: ;;
2273: esac |
2274: sort
2275: )
2276: echo
2277:
2278: $as_echo "## ----------------- ##
2279: ## Output variables. ##
2280: ## ----------------- ##"
2281: echo
2282: for ac_var in $ac_subst_vars
2283: do
2284: eval ac_val=\$$ac_var
2285: case $ac_val in
2286: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287: esac
2288: $as_echo "$ac_var='\''$ac_val'\''"
2289: done | sort
2290: echo
2291:
2292: if test -n "$ac_subst_files"; then
2293: $as_echo "## ------------------- ##
2294: ## File substitutions. ##
2295: ## ------------------- ##"
2296: echo
2297: for ac_var in $ac_subst_files
2298: do
2299: eval ac_val=\$$ac_var
2300: case $ac_val in
2301: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302: esac
2303: $as_echo "$ac_var='\''$ac_val'\''"
2304: done | sort
2305: echo
2306: fi
2307:
2308: if test -s confdefs.h; then
2309: $as_echo "## ----------- ##
2310: ## confdefs.h. ##
2311: ## ----------- ##"
2312: echo
2313: cat confdefs.h
2314: echo
2315: fi
2316: test "$ac_signal" != 0 &&
2317: $as_echo "$as_me: caught signal $ac_signal"
2318: $as_echo "$as_me: exit $exit_status"
2319: } >&5
2320: rm -f core *.core core.conftest.* &&
2321: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2322: exit $exit_status
2323: ' 0
2324: for ac_signal in 1 2 13 15; do
2325: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2326: done
2327: ac_signal=0
2328:
2329: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2330: rm -f -r conftest* confdefs.h
2331:
2332: $as_echo "/* confdefs.h */" > confdefs.h
2333:
2334: # Predefined preprocessor variables.
2335:
2336: cat >>confdefs.h <<_ACEOF
2337: #define PACKAGE_NAME "$PACKAGE_NAME"
2338: _ACEOF
2339:
2340: cat >>confdefs.h <<_ACEOF
2341: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2342: _ACEOF
2343:
2344: cat >>confdefs.h <<_ACEOF
2345: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2346: _ACEOF
2347:
2348: cat >>confdefs.h <<_ACEOF
2349: #define PACKAGE_STRING "$PACKAGE_STRING"
2350: _ACEOF
2351:
2352: cat >>confdefs.h <<_ACEOF
2353: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2354: _ACEOF
2355:
2356: cat >>confdefs.h <<_ACEOF
2357: #define PACKAGE_URL "$PACKAGE_URL"
2358: _ACEOF
2359:
2360:
2361: # Let the site file select an alternate cache file if it wants to.
2362: # Prefer an explicitly selected file to automatically selected ones.
2363: ac_site_file1=NONE
2364: ac_site_file2=NONE
2365: if test -n "$CONFIG_SITE"; then
2366: # We do not want a PATH search for config.site.
2367: case $CONFIG_SITE in #((
2368: -*) ac_site_file1=./$CONFIG_SITE;;
2369: */*) ac_site_file1=$CONFIG_SITE;;
2370: *) ac_site_file1=./$CONFIG_SITE;;
2371: esac
2372: elif test "x$prefix" != xNONE; then
2373: ac_site_file1=$prefix/share/config.site
2374: ac_site_file2=$prefix/etc/config.site
2375: else
2376: ac_site_file1=$ac_default_prefix/share/config.site
2377: ac_site_file2=$ac_default_prefix/etc/config.site
2378: fi
2379: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2380: do
2381: test "x$ac_site_file" = xNONE && continue
2382: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2383: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2384: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2385: sed 's/^/| /' "$ac_site_file" >&5
2386: . "$ac_site_file" \
2387: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389: as_fn_error $? "failed to load site script $ac_site_file
2390: See \`config.log' for more details" "$LINENO" 5; }
2391: fi
2392: done
2393:
2394: if test -r "$cache_file"; then
2395: # Some versions of bash will fail to source /dev/null (special files
2396: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2397: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2398: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2399: $as_echo "$as_me: loading cache $cache_file" >&6;}
2400: case $cache_file in
2401: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2402: *) . "./$cache_file";;
2403: esac
2404: fi
2405: else
2406: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2407: $as_echo "$as_me: creating cache $cache_file" >&6;}
2408: >$cache_file
2409: fi
2410:
2411: as_fn_append ac_header_list " sys/time.h"
2412: as_fn_append ac_header_list " unistd.h"
2413: as_fn_append ac_func_list " alarm"
2414: # Check that the precious variables saved in the cache have kept the same
2415: # value.
2416: ac_cache_corrupted=false
2417: for ac_var in $ac_precious_vars; do
2418: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419: eval ac_new_set=\$ac_env_${ac_var}_set
2420: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421: eval ac_new_val=\$ac_env_${ac_var}_value
2422: case $ac_old_set,$ac_new_set in
2423: set,)
2424: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426: ac_cache_corrupted=: ;;
2427: ,set)
2428: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430: ac_cache_corrupted=: ;;
2431: ,);;
2432: *)
2433: if test "x$ac_old_val" != "x$ac_new_val"; then
2434: # differences in whitespace do not lead to failure.
2435: ac_old_val_w=`echo x $ac_old_val`
2436: ac_new_val_w=`echo x $ac_new_val`
2437: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440: ac_cache_corrupted=:
2441: else
2442: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444: eval $ac_var=\$ac_old_val
2445: fi
2446: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2447: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2448: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2449: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2450: fi;;
2451: esac
2452: # Pass precious variables to config.status.
2453: if test "$ac_new_set" = set; then
2454: case $ac_new_val in
2455: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456: *) ac_arg=$ac_var=$ac_new_val ;;
2457: esac
2458: case " $ac_configure_args " in
2459: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2460: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461: esac
2462: fi
2463: done
2464: if $ac_cache_corrupted; then
2465: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470: fi
2471: ## -------------------- ##
2472: ## Main body of script. ##
2473: ## -------------------- ##
2474:
2475: ac_ext=c
2476: ac_cpp='$CPP $CPPFLAGS'
2477: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480:
2481:
2482:
2483:
2484:
2485: ac_aux_dir=
2486: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2487: if test -f "$ac_dir/install-sh"; then
2488: ac_aux_dir=$ac_dir
2489: ac_install_sh="$ac_aux_dir/install-sh -c"
2490: break
2491: elif test -f "$ac_dir/install.sh"; then
2492: ac_aux_dir=$ac_dir
2493: ac_install_sh="$ac_aux_dir/install.sh -c"
2494: break
2495: elif test -f "$ac_dir/shtool"; then
2496: ac_aux_dir=$ac_dir
2497: ac_install_sh="$ac_aux_dir/shtool install -c"
2498: break
2499: fi
2500: done
2501: if test -z "$ac_aux_dir"; then
2502: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2503: fi
2504:
2505: # These three variables are undocumented and unsupported,
2506: # and are intended to be withdrawn in a future Autoconf release.
2507: # They can cause serious problems if a builder's source tree is in a directory
2508: # whose full name contains unusual characters.
2509: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2510: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2511: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2512:
2513:
2514: # Make sure we can run config.sub.
2515: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2516: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2517:
2518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2519: $as_echo_n "checking build system type... " >&6; }
2520: if ${ac_cv_build+:} false; then :
2521: $as_echo_n "(cached) " >&6
2522: else
2523: ac_build_alias=$build_alias
2524: test "x$ac_build_alias" = x &&
2525: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2526: test "x$ac_build_alias" = x &&
2527: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2528: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2529: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2530:
2531: fi
2532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2533: $as_echo "$ac_cv_build" >&6; }
2534: case $ac_cv_build in
2535: *-*-*) ;;
2536: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2537: esac
2538: build=$ac_cv_build
2539: ac_save_IFS=$IFS; IFS='-'
2540: set x $ac_cv_build
2541: shift
2542: build_cpu=$1
2543: build_vendor=$2
2544: shift; shift
2545: # Remember, the first character of IFS is used to create $*,
2546: # except with old shells:
2547: build_os=$*
2548: IFS=$ac_save_IFS
2549: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2550:
2551:
2552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2553: $as_echo_n "checking host system type... " >&6; }
2554: if ${ac_cv_host+:} false; then :
2555: $as_echo_n "(cached) " >&6
2556: else
2557: if test "x$host_alias" = x; then
2558: ac_cv_host=$ac_cv_build
2559: else
2560: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2561: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2562: fi
2563:
2564: fi
2565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2566: $as_echo "$ac_cv_host" >&6; }
2567: case $ac_cv_host in
2568: *-*-*) ;;
2569: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2570: esac
2571: host=$ac_cv_host
2572: ac_save_IFS=$IFS; IFS='-'
2573: set x $ac_cv_host
2574: shift
2575: host_cpu=$1
2576: host_vendor=$2
2577: shift; shift
2578: # Remember, the first character of IFS is used to create $*,
2579: # except with old shells:
2580: host_os=$*
2581: IFS=$ac_save_IFS
2582: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2583:
2584:
2585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2586: $as_echo_n "checking target system type... " >&6; }
2587: if ${ac_cv_target+:} false; then :
2588: $as_echo_n "(cached) " >&6
2589: else
2590: if test "x$target_alias" = x; then
2591: ac_cv_target=$ac_cv_host
2592: else
2593: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2594: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2595: fi
2596:
2597: fi
2598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2599: $as_echo "$ac_cv_target" >&6; }
2600: case $ac_cv_target in
2601: *-*-*) ;;
2602: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2603: esac
2604: target=$ac_cv_target
2605: ac_save_IFS=$IFS; IFS='-'
2606: set x $ac_cv_target
2607: shift
2608: target_cpu=$1
2609: target_vendor=$2
2610: shift; shift
2611: # Remember, the first character of IFS is used to create $*,
2612: # except with old shells:
2613: target_os=$*
2614: IFS=$ac_save_IFS
2615: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2616:
2617:
2618: # The aliases save the names the user supplied, while $host etc.
2619: # will get canonicalized.
2620: test -n "$target_alias" &&
2621: test "$program_prefix$program_suffix$program_transform_name" = \
2622: NONENONEs,x,x, &&
2623: program_prefix=${target_alias}-
2624:
2625: am__api_version='1.11'
2626:
2627: # Find a good install program. We prefer a C program (faster),
2628: # so one script is as good as another. But avoid the broken or
2629: # incompatible versions:
2630: # SysV /etc/install, /usr/sbin/install
2631: # SunOS /usr/etc/install
2632: # IRIX /sbin/install
2633: # AIX /bin/install
2634: # AmigaOS /C/install, which installs bootblocks on floppy discs
2635: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2636: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2637: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2638: # OS/2's system install, which has a completely different semantic
2639: # ./install, which can be erroneously created by make from ./install.sh.
2640: # Reject install programs that cannot install multiple files.
2641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2642: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2643: if test -z "$INSTALL"; then
2644: if ${ac_cv_path_install+:} false; then :
2645: $as_echo_n "(cached) " >&6
2646: else
2647: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648: for as_dir in $PATH
2649: do
2650: IFS=$as_save_IFS
2651: test -z "$as_dir" && as_dir=.
2652: # Account for people who put trailing slashes in PATH elements.
2653: case $as_dir/ in #((
2654: ./ | .// | /[cC]/* | \
2655: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2656: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2657: /usr/ucb/* ) ;;
2658: *)
2659: # OSF1 and SCO ODT 3.0 have their own names for install.
2660: # Don't use installbsd from OSF since it installs stuff as root
2661: # by default.
2662: for ac_prog in ginstall scoinst install; do
2663: for ac_exec_ext in '' $ac_executable_extensions; do
2664: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2665: if test $ac_prog = install &&
2666: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667: # AIX install. It has an incompatible calling convention.
2668: :
2669: elif test $ac_prog = install &&
2670: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2671: # program-specific install script used by HP pwplus--don't use.
2672: :
2673: else
2674: rm -rf conftest.one conftest.two conftest.dir
2675: echo one > conftest.one
2676: echo two > conftest.two
2677: mkdir conftest.dir
2678: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2679: test -s conftest.one && test -s conftest.two &&
2680: test -s conftest.dir/conftest.one &&
2681: test -s conftest.dir/conftest.two
2682: then
2683: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2684: break 3
2685: fi
2686: fi
2687: fi
2688: done
2689: done
2690: ;;
2691: esac
2692:
2693: done
2694: IFS=$as_save_IFS
2695:
2696: rm -rf conftest.one conftest.two conftest.dir
2697:
2698: fi
2699: if test "${ac_cv_path_install+set}" = set; then
2700: INSTALL=$ac_cv_path_install
2701: else
2702: # As a last resort, use the slow shell script. Don't cache a
2703: # value for INSTALL within a source directory, because that will
2704: # break other packages using the cache if that directory is
2705: # removed, or if the value is a relative name.
2706: INSTALL=$ac_install_sh
2707: fi
2708: fi
2709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2710: $as_echo "$INSTALL" >&6; }
2711:
2712: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2713: # It thinks the first close brace ends the variable substitution.
2714: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2715:
2716: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2717:
2718: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2719:
2720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2721: $as_echo_n "checking whether build environment is sane... " >&6; }
2722: # Just in case
2723: sleep 1
2724: echo timestamp > conftest.file
2725: # Reject unsafe characters in $srcdir or the absolute working directory
2726: # name. Accept space and tab only in the latter.
2727: am_lf='
2728: '
2729: case `pwd` in
2730: *[\\\"\#\$\&\'\`$am_lf]*)
2731: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2732: esac
2733: case $srcdir in
2734: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2735: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2736: esac
2737:
2738: # Do `set' in a subshell so we don't clobber the current shell's
2739: # arguments. Must try -L first in case configure is actually a
2740: # symlink; some systems play weird games with the mod time of symlinks
2741: # (eg FreeBSD returns the mod time of the symlink's containing
2742: # directory).
2743: if (
2744: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2745: if test "$*" = "X"; then
2746: # -L didn't work.
2747: set X `ls -t "$srcdir/configure" conftest.file`
2748: fi
2749: rm -f conftest.file
2750: if test "$*" != "X $srcdir/configure conftest.file" \
2751: && test "$*" != "X conftest.file $srcdir/configure"; then
2752:
2753: # If neither matched, then we have a broken ls. This can happen
2754: # if, for instance, CONFIG_SHELL is bash and it inherits a
2755: # broken ls alias from the environment. This has actually
2756: # happened. Such a system could not be considered "sane".
2757: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2758: alias in your environment" "$LINENO" 5
2759: fi
2760:
2761: test "$2" = conftest.file
2762: )
2763: then
2764: # Ok.
2765: :
2766: else
2767: as_fn_error $? "newly created file is older than distributed files!
2768: Check your system clock" "$LINENO" 5
2769: fi
2770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2771: $as_echo "yes" >&6; }
2772: test "$program_prefix" != NONE &&
2773: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2774: # Use a double $ so make ignores it.
2775: test "$program_suffix" != NONE &&
2776: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2777: # Double any \ or $.
2778: # By default was `s,x,x', remove it if useless.
2779: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2780: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2781:
2782: # expand $ac_aux_dir to an absolute path
2783: am_aux_dir=`cd $ac_aux_dir && pwd`
2784:
2785: if test x"${MISSING+set}" != xset; then
2786: case $am_aux_dir in
2787: *\ * | *\ *)
2788: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2789: *)
2790: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2791: esac
2792: fi
2793: # Use eval to expand $SHELL
2794: if eval "$MISSING --run true"; then
2795: am_missing_run="$MISSING --run "
2796: else
2797: am_missing_run=
2798: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2799: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2800: fi
2801:
2802: if test x"${install_sh}" != xset; then
2803: case $am_aux_dir in
2804: *\ * | *\ *)
2805: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2806: *)
2807: install_sh="\${SHELL} $am_aux_dir/install-sh"
2808: esac
2809: fi
2810:
2811: # Installed binaries are usually stripped using `strip' when the user
2812: # run `make install-strip'. However `strip' might not be the right
2813: # tool to use in cross-compilation environments, therefore Automake
2814: # will honor the `STRIP' environment variable to overrule this program.
2815: if test "$cross_compiling" != no; then
2816: if test -n "$ac_tool_prefix"; then
2817: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2818: set dummy ${ac_tool_prefix}strip; ac_word=$2
2819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820: $as_echo_n "checking for $ac_word... " >&6; }
2821: if ${ac_cv_prog_STRIP+:} false; then :
2822: $as_echo_n "(cached) " >&6
2823: else
2824: if test -n "$STRIP"; then
2825: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2826: else
2827: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828: for as_dir in $PATH
2829: do
2830: IFS=$as_save_IFS
2831: test -z "$as_dir" && as_dir=.
2832: for ac_exec_ext in '' $ac_executable_extensions; do
2833: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2835: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836: break 2
2837: fi
2838: done
2839: done
2840: IFS=$as_save_IFS
2841:
2842: fi
2843: fi
2844: STRIP=$ac_cv_prog_STRIP
2845: if test -n "$STRIP"; then
2846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2847: $as_echo "$STRIP" >&6; }
2848: else
2849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850: $as_echo "no" >&6; }
2851: fi
2852:
2853:
2854: fi
2855: if test -z "$ac_cv_prog_STRIP"; then
2856: ac_ct_STRIP=$STRIP
2857: # Extract the first word of "strip", so it can be a program name with args.
2858: set dummy strip; ac_word=$2
2859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860: $as_echo_n "checking for $ac_word... " >&6; }
2861: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2862: $as_echo_n "(cached) " >&6
2863: else
2864: if test -n "$ac_ct_STRIP"; then
2865: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2866: else
2867: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868: for as_dir in $PATH
2869: do
2870: IFS=$as_save_IFS
2871: test -z "$as_dir" && as_dir=.
2872: for ac_exec_ext in '' $ac_executable_extensions; do
2873: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874: ac_cv_prog_ac_ct_STRIP="strip"
2875: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876: break 2
2877: fi
2878: done
2879: done
2880: IFS=$as_save_IFS
2881:
2882: fi
2883: fi
2884: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2885: if test -n "$ac_ct_STRIP"; then
2886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2887: $as_echo "$ac_ct_STRIP" >&6; }
2888: else
2889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890: $as_echo "no" >&6; }
2891: fi
2892:
2893: if test "x$ac_ct_STRIP" = x; then
2894: STRIP=":"
2895: else
2896: case $cross_compiling:$ac_tool_warned in
2897: yes:)
2898: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2899: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2900: ac_tool_warned=yes ;;
2901: esac
2902: STRIP=$ac_ct_STRIP
2903: fi
2904: else
2905: STRIP="$ac_cv_prog_STRIP"
2906: fi
2907:
2908: fi
2909: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2910:
2911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2912: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2913: if test -z "$MKDIR_P"; then
2914: if ${ac_cv_path_mkdir+:} false; then :
2915: $as_echo_n "(cached) " >&6
2916: else
2917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2919: do
2920: IFS=$as_save_IFS
2921: test -z "$as_dir" && as_dir=.
2922: for ac_prog in mkdir gmkdir; do
2923: for ac_exec_ext in '' $ac_executable_extensions; do
2924: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2925: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2926: 'mkdir (GNU coreutils) '* | \
2927: 'mkdir (coreutils) '* | \
2928: 'mkdir (fileutils) '4.1*)
2929: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2930: break 3;;
2931: esac
2932: done
2933: done
2934: done
2935: IFS=$as_save_IFS
2936:
2937: fi
2938:
2939: test -d ./--version && rmdir ./--version
2940: if test "${ac_cv_path_mkdir+set}" = set; then
2941: MKDIR_P="$ac_cv_path_mkdir -p"
2942: else
2943: # As a last resort, use the slow shell script. Don't cache a
2944: # value for MKDIR_P within a source directory, because that will
2945: # break other packages using the cache if that directory is
2946: # removed, or if the value is a relative name.
2947: MKDIR_P="$ac_install_sh -d"
2948: fi
2949: fi
2950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2951: $as_echo "$MKDIR_P" >&6; }
2952:
2953: mkdir_p="$MKDIR_P"
2954: case $mkdir_p in
2955: [\\/$]* | ?:[\\/]*) ;;
2956: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2957: esac
2958:
2959: for ac_prog in gawk mawk nawk awk
2960: do
2961: # Extract the first word of "$ac_prog", so it can be a program name with args.
2962: set dummy $ac_prog; ac_word=$2
2963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964: $as_echo_n "checking for $ac_word... " >&6; }
2965: if ${ac_cv_prog_AWK+:} false; then :
2966: $as_echo_n "(cached) " >&6
2967: else
2968: if test -n "$AWK"; then
2969: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2970: else
2971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972: for as_dir in $PATH
2973: do
2974: IFS=$as_save_IFS
2975: test -z "$as_dir" && as_dir=.
2976: for ac_exec_ext in '' $ac_executable_extensions; do
2977: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978: ac_cv_prog_AWK="$ac_prog"
2979: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980: break 2
2981: fi
2982: done
2983: done
2984: IFS=$as_save_IFS
2985:
2986: fi
2987: fi
2988: AWK=$ac_cv_prog_AWK
2989: if test -n "$AWK"; then
2990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2991: $as_echo "$AWK" >&6; }
2992: else
2993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994: $as_echo "no" >&6; }
2995: fi
2996:
2997:
2998: test -n "$AWK" && break
2999: done
3000:
3001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3002: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3003: set x ${MAKE-make}
3004: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3005: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3006: $as_echo_n "(cached) " >&6
3007: else
3008: cat >conftest.make <<\_ACEOF
3009: SHELL = /bin/sh
3010: all:
3011: @echo '@@@%%%=$(MAKE)=@@@%%%'
3012: _ACEOF
3013: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3014: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3015: *@@@%%%=?*=@@@%%%*)
3016: eval ac_cv_prog_make_${ac_make}_set=yes;;
3017: *)
3018: eval ac_cv_prog_make_${ac_make}_set=no;;
3019: esac
3020: rm -f conftest.make
3021: fi
3022: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3024: $as_echo "yes" >&6; }
3025: SET_MAKE=
3026: else
3027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028: $as_echo "no" >&6; }
3029: SET_MAKE="MAKE=${MAKE-make}"
3030: fi
3031:
3032: rm -rf .tst 2>/dev/null
3033: mkdir .tst 2>/dev/null
3034: if test -d .tst; then
3035: am__leading_dot=.
3036: else
3037: am__leading_dot=_
3038: fi
3039: rmdir .tst 2>/dev/null
3040:
3041: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3042: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3043: # is not polluted with repeated "-I."
3044: am__isrc=' -I$(srcdir)'
3045: # test to see if srcdir already configured
3046: if test -f $srcdir/config.status; then
3047: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3048: fi
3049: fi
3050:
3051: # test whether we have cygpath
3052: if test -z "$CYGPATH_W"; then
3053: if (cygpath --version) >/dev/null 2>/dev/null; then
3054: CYGPATH_W='cygpath -w'
3055: else
3056: CYGPATH_W=echo
3057: fi
3058: fi
3059:
3060:
3061: # Define the identity of the package.
3062: PACKAGE='quagga'
3063: VERSION='0.99.20'
3064:
3065:
3066: cat >>confdefs.h <<_ACEOF
3067: #define PACKAGE "$PACKAGE"
3068: _ACEOF
3069:
3070:
3071: cat >>confdefs.h <<_ACEOF
3072: #define VERSION "$VERSION"
3073: _ACEOF
3074:
3075: # Some tools Automake needs.
3076:
3077: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3078:
3079:
3080: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3081:
3082:
3083: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3084:
3085:
3086: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3087:
3088:
3089: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3090:
3091: # We need awk for the "check" target. The system "awk" is bad on
3092: # some platforms.
3093: # Always define AMTAR for backward compatibility.
3094:
3095: AMTAR=${AMTAR-"${am_missing_run}tar"}
3096:
3097: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3098:
3099:
3100:
3101:
3102:
3103: ac_config_headers="$ac_config_headers config.h"
3104:
3105:
3106: # Extract the first word of "gawk", so it can be a program name with args.
3107: set dummy gawk; ac_word=$2
3108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109: $as_echo_n "checking for $ac_word... " >&6; }
3110: if ${ac_cv_prog_GAWK+:} false; then :
3111: $as_echo_n "(cached) " >&6
3112: else
3113: if test -n "$GAWK"; then
3114: ac_cv_prog_GAWK="$GAWK" # Let the user override the test.
3115: else
3116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117: for as_dir in $PATH
3118: do
3119: IFS=$as_save_IFS
3120: test -z "$as_dir" && as_dir=.
3121: for ac_exec_ext in '' $ac_executable_extensions; do
3122: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123: ac_cv_prog_GAWK="gawk"
3124: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125: break 2
3126: fi
3127: done
3128: done
3129: IFS=$as_save_IFS
3130:
3131: test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="not-in-PATH"
3132: fi
3133: fi
3134: GAWK=$ac_cv_prog_GAWK
3135: if test -n "$GAWK"; then
3136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5
3137: $as_echo "$GAWK" >&6; }
3138: else
3139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140: $as_echo "no" >&6; }
3141: fi
3142:
3143:
3144: if test "x$GAWK" = "xnot-in-PATH" ; then
3145: as_fn_error $? "GNU awk is required for lib/memtype.h made by memtypes.awk.
3146: BSD awk complains: awk: gensub doesn't support backreferences (subst \"\1\") " "$LINENO" 5
3147: fi
3148:
3149:
3150: exampledir=${sysconfdir}
3151: # Check whether --enable-exampledir was given.
3152: if test "${enable_exampledir+set}" = set; then :
3153: enableval=$enable_exampledir; exampledir="$enableval"
3154: fi
3155:
3156:
3157:
3158: pkgsrcrcdir=""
3159: pkgsrcdir=""
3160: # Check whether --enable-pkgsrcrcdir was given.
3161: if test "${enable_pkgsrcrcdir+set}" = set; then :
3162: enableval=$enable_pkgsrcrcdir; pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc"
3163: fi
3164:
3165:
3166:
3167:
3168:
3169: # Check whether --with-cflags was given.
3170: if test "${with_cflags+set}" = set; then :
3171: withval=$with_cflags;
3172: fi
3173:
3174: if test "x$with_cflags" != "x" ; then
3175: CFLAGS="$with_cflags" ; cflags_specified=yes ;
3176: elif test -n "$CFLAGS" ; then
3177: cflags_specified=yes ;
3178: fi
3179:
3180: ac_ext=c
3181: ac_cpp='$CPP $CPPFLAGS'
3182: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185:
3186: ac_ext=c
3187: ac_cpp='$CPP $CPPFLAGS'
3188: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191: if test -n "$ac_tool_prefix"; then
3192: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3193: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195: $as_echo_n "checking for $ac_word... " >&6; }
3196: if ${ac_cv_prog_CC+:} false; then :
3197: $as_echo_n "(cached) " >&6
3198: else
3199: if test -n "$CC"; then
3200: ac_cv_prog_CC="$CC" # Let the user override the test.
3201: else
3202: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203: for as_dir in $PATH
3204: do
3205: IFS=$as_save_IFS
3206: test -z "$as_dir" && as_dir=.
3207: for ac_exec_ext in '' $ac_executable_extensions; do
3208: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3210: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211: break 2
3212: fi
3213: done
3214: done
3215: IFS=$as_save_IFS
3216:
3217: fi
3218: fi
3219: CC=$ac_cv_prog_CC
3220: if test -n "$CC"; then
3221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222: $as_echo "$CC" >&6; }
3223: else
3224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225: $as_echo "no" >&6; }
3226: fi
3227:
3228:
3229: fi
3230: if test -z "$ac_cv_prog_CC"; then
3231: ac_ct_CC=$CC
3232: # Extract the first word of "gcc", so it can be a program name with args.
3233: set dummy gcc; ac_word=$2
3234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235: $as_echo_n "checking for $ac_word... " >&6; }
3236: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3237: $as_echo_n "(cached) " >&6
3238: else
3239: if test -n "$ac_ct_CC"; then
3240: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241: else
3242: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243: for as_dir in $PATH
3244: do
3245: IFS=$as_save_IFS
3246: test -z "$as_dir" && as_dir=.
3247: for ac_exec_ext in '' $ac_executable_extensions; do
3248: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249: ac_cv_prog_ac_ct_CC="gcc"
3250: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251: break 2
3252: fi
3253: done
3254: done
3255: IFS=$as_save_IFS
3256:
3257: fi
3258: fi
3259: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260: if test -n "$ac_ct_CC"; then
3261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262: $as_echo "$ac_ct_CC" >&6; }
3263: else
3264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265: $as_echo "no" >&6; }
3266: fi
3267:
3268: if test "x$ac_ct_CC" = x; then
3269: CC=""
3270: else
3271: case $cross_compiling:$ac_tool_warned in
3272: yes:)
3273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275: ac_tool_warned=yes ;;
3276: esac
3277: CC=$ac_ct_CC
3278: fi
3279: else
3280: CC="$ac_cv_prog_CC"
3281: fi
3282:
3283: if test -z "$CC"; then
3284: if test -n "$ac_tool_prefix"; then
3285: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3286: set dummy ${ac_tool_prefix}cc; ac_word=$2
3287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288: $as_echo_n "checking for $ac_word... " >&6; }
3289: if ${ac_cv_prog_CC+:} false; then :
3290: $as_echo_n "(cached) " >&6
3291: else
3292: if test -n "$CC"; then
3293: ac_cv_prog_CC="$CC" # Let the user override the test.
3294: else
3295: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296: for as_dir in $PATH
3297: do
3298: IFS=$as_save_IFS
3299: test -z "$as_dir" && as_dir=.
3300: for ac_exec_ext in '' $ac_executable_extensions; do
3301: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302: ac_cv_prog_CC="${ac_tool_prefix}cc"
3303: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304: break 2
3305: fi
3306: done
3307: done
3308: IFS=$as_save_IFS
3309:
3310: fi
3311: fi
3312: CC=$ac_cv_prog_CC
3313: if test -n "$CC"; then
3314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315: $as_echo "$CC" >&6; }
3316: else
3317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318: $as_echo "no" >&6; }
3319: fi
3320:
3321:
3322: fi
3323: fi
3324: if test -z "$CC"; then
3325: # Extract the first word of "cc", so it can be a program name with args.
3326: set dummy cc; ac_word=$2
3327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328: $as_echo_n "checking for $ac_word... " >&6; }
3329: if ${ac_cv_prog_CC+:} false; then :
3330: $as_echo_n "(cached) " >&6
3331: else
3332: if test -n "$CC"; then
3333: ac_cv_prog_CC="$CC" # Let the user override the test.
3334: else
3335: ac_prog_rejected=no
3336: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337: for as_dir in $PATH
3338: do
3339: IFS=$as_save_IFS
3340: test -z "$as_dir" && as_dir=.
3341: for ac_exec_ext in '' $ac_executable_extensions; do
3342: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3344: ac_prog_rejected=yes
3345: continue
3346: fi
3347: ac_cv_prog_CC="cc"
3348: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349: break 2
3350: fi
3351: done
3352: done
3353: IFS=$as_save_IFS
3354:
3355: if test $ac_prog_rejected = yes; then
3356: # We found a bogon in the path, so make sure we never use it.
3357: set dummy $ac_cv_prog_CC
3358: shift
3359: if test $# != 0; then
3360: # We chose a different compiler from the bogus one.
3361: # However, it has the same basename, so the bogon will be chosen
3362: # first if we set CC to just the basename; use the full file name.
3363: shift
3364: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3365: fi
3366: fi
3367: fi
3368: fi
3369: CC=$ac_cv_prog_CC
3370: if test -n "$CC"; then
3371: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372: $as_echo "$CC" >&6; }
3373: else
3374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375: $as_echo "no" >&6; }
3376: fi
3377:
3378:
3379: fi
3380: if test -z "$CC"; then
3381: if test -n "$ac_tool_prefix"; then
3382: for ac_prog in cl.exe
3383: do
3384: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3385: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387: $as_echo_n "checking for $ac_word... " >&6; }
3388: if ${ac_cv_prog_CC+:} false; then :
3389: $as_echo_n "(cached) " >&6
3390: else
3391: if test -n "$CC"; then
3392: ac_cv_prog_CC="$CC" # Let the user override the test.
3393: else
3394: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395: for as_dir in $PATH
3396: do
3397: IFS=$as_save_IFS
3398: test -z "$as_dir" && as_dir=.
3399: for ac_exec_ext in '' $ac_executable_extensions; do
3400: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3402: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403: break 2
3404: fi
3405: done
3406: done
3407: IFS=$as_save_IFS
3408:
3409: fi
3410: fi
3411: CC=$ac_cv_prog_CC
3412: if test -n "$CC"; then
3413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414: $as_echo "$CC" >&6; }
3415: else
3416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417: $as_echo "no" >&6; }
3418: fi
3419:
3420:
3421: test -n "$CC" && break
3422: done
3423: fi
3424: if test -z "$CC"; then
3425: ac_ct_CC=$CC
3426: for ac_prog in cl.exe
3427: do
3428: # Extract the first word of "$ac_prog", so it can be a program name with args.
3429: set dummy $ac_prog; ac_word=$2
3430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431: $as_echo_n "checking for $ac_word... " >&6; }
3432: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3433: $as_echo_n "(cached) " >&6
3434: else
3435: if test -n "$ac_ct_CC"; then
3436: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437: else
3438: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439: for as_dir in $PATH
3440: do
3441: IFS=$as_save_IFS
3442: test -z "$as_dir" && as_dir=.
3443: for ac_exec_ext in '' $ac_executable_extensions; do
3444: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445: ac_cv_prog_ac_ct_CC="$ac_prog"
3446: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447: break 2
3448: fi
3449: done
3450: done
3451: IFS=$as_save_IFS
3452:
3453: fi
3454: fi
3455: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3456: if test -n "$ac_ct_CC"; then
3457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458: $as_echo "$ac_ct_CC" >&6; }
3459: else
3460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461: $as_echo "no" >&6; }
3462: fi
3463:
3464:
3465: test -n "$ac_ct_CC" && break
3466: done
3467:
3468: if test "x$ac_ct_CC" = x; then
3469: CC=""
3470: else
3471: case $cross_compiling:$ac_tool_warned in
3472: yes:)
3473: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475: ac_tool_warned=yes ;;
3476: esac
3477: CC=$ac_ct_CC
3478: fi
3479: fi
3480:
3481: fi
3482:
3483:
3484: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486: as_fn_error $? "no acceptable C compiler found in \$PATH
3487: See \`config.log' for more details" "$LINENO" 5; }
3488:
3489: # Provide some information about the compiler.
3490: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3491: set X $ac_compile
3492: ac_compiler=$2
3493: for ac_option in --version -v -V -qversion; do
3494: { { ac_try="$ac_compiler $ac_option >&5"
3495: case "(($ac_try" in
3496: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497: *) ac_try_echo=$ac_try;;
3498: esac
3499: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500: $as_echo "$ac_try_echo"; } >&5
3501: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3502: ac_status=$?
3503: if test -s conftest.err; then
3504: sed '10a\
3505: ... rest of stderr output deleted ...
3506: 10q' conftest.err >conftest.er1
3507: cat conftest.er1 >&5
3508: fi
3509: rm -f conftest.er1 conftest.err
3510: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511: test $ac_status = 0; }
3512: done
3513:
3514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515: /* end confdefs.h. */
3516:
3517: int
3518: main ()
3519: {
3520:
3521: ;
3522: return 0;
3523: }
3524: _ACEOF
3525: ac_clean_files_save=$ac_clean_files
3526: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3527: # Try to create an executable without -o first, disregard a.out.
3528: # It will help us diagnose broken compilers, and finding out an intuition
3529: # of exeext.
3530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3531: $as_echo_n "checking whether the C compiler works... " >&6; }
3532: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3533:
3534: # The possible output files:
3535: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3536:
3537: ac_rmfiles=
3538: for ac_file in $ac_files
3539: do
3540: case $ac_file in
3541: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3543: esac
3544: done
3545: rm -f $ac_rmfiles
3546:
3547: if { { ac_try="$ac_link_default"
3548: case "(($ac_try" in
3549: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550: *) ac_try_echo=$ac_try;;
3551: esac
3552: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553: $as_echo "$ac_try_echo"; } >&5
3554: (eval "$ac_link_default") 2>&5
3555: ac_status=$?
3556: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557: test $ac_status = 0; }; then :
3558: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3559: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3560: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3561: # so that the user can short-circuit this test for compilers unknown to
3562: # Autoconf.
3563: for ac_file in $ac_files ''
3564: do
3565: test -f "$ac_file" || continue
3566: case $ac_file in
3567: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3568: ;;
3569: [ab].out )
3570: # We found the default executable, but exeext='' is most
3571: # certainly right.
3572: break;;
3573: *.* )
3574: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3575: then :; else
3576: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3577: fi
3578: # We set ac_cv_exeext here because the later test for it is not
3579: # safe: cross compilers may not add the suffix if given an `-o'
3580: # argument, so we may need to know it at that point already.
3581: # Even if this section looks crufty: it has the advantage of
3582: # actually working.
3583: break;;
3584: * )
3585: break;;
3586: esac
3587: done
3588: test "$ac_cv_exeext" = no && ac_cv_exeext=
3589:
3590: else
3591: ac_file=''
3592: fi
3593: if test -z "$ac_file"; then :
3594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595: $as_echo "no" >&6; }
3596: $as_echo "$as_me: failed program was:" >&5
3597: sed 's/^/| /' conftest.$ac_ext >&5
3598:
3599: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601: as_fn_error 77 "C compiler cannot create executables
3602: See \`config.log' for more details" "$LINENO" 5; }
3603: else
3604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605: $as_echo "yes" >&6; }
3606: fi
3607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3608: $as_echo_n "checking for C compiler default output file name... " >&6; }
3609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3610: $as_echo "$ac_file" >&6; }
3611: ac_exeext=$ac_cv_exeext
3612:
3613: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3614: ac_clean_files=$ac_clean_files_save
3615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3616: $as_echo_n "checking for suffix of executables... " >&6; }
3617: if { { ac_try="$ac_link"
3618: case "(($ac_try" in
3619: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620: *) ac_try_echo=$ac_try;;
3621: esac
3622: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623: $as_echo "$ac_try_echo"; } >&5
3624: (eval "$ac_link") 2>&5
3625: ac_status=$?
3626: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627: test $ac_status = 0; }; then :
3628: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3629: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3630: # work properly (i.e., refer to `conftest.exe'), while it won't with
3631: # `rm'.
3632: for ac_file in conftest.exe conftest conftest.*; do
3633: test -f "$ac_file" || continue
3634: case $ac_file in
3635: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637: break;;
3638: * ) break;;
3639: esac
3640: done
3641: else
3642: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3645: See \`config.log' for more details" "$LINENO" 5; }
3646: fi
3647: rm -f conftest conftest$ac_cv_exeext
3648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3649: $as_echo "$ac_cv_exeext" >&6; }
3650:
3651: rm -f conftest.$ac_ext
3652: EXEEXT=$ac_cv_exeext
3653: ac_exeext=$EXEEXT
3654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655: /* end confdefs.h. */
3656: #include <stdio.h>
3657: int
3658: main ()
3659: {
3660: FILE *f = fopen ("conftest.out", "w");
3661: return ferror (f) || fclose (f) != 0;
3662:
3663: ;
3664: return 0;
3665: }
3666: _ACEOF
3667: ac_clean_files="$ac_clean_files conftest.out"
3668: # Check that the compiler produces executables we can run. If not, either
3669: # the compiler is broken, or we cross compile.
3670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3671: $as_echo_n "checking whether we are cross compiling... " >&6; }
3672: if test "$cross_compiling" != yes; then
3673: { { ac_try="$ac_link"
3674: case "(($ac_try" in
3675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676: *) ac_try_echo=$ac_try;;
3677: esac
3678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679: $as_echo "$ac_try_echo"; } >&5
3680: (eval "$ac_link") 2>&5
3681: ac_status=$?
3682: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683: test $ac_status = 0; }
3684: if { ac_try='./conftest$ac_cv_exeext'
3685: { { case "(($ac_try" in
3686: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687: *) ac_try_echo=$ac_try;;
3688: esac
3689: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690: $as_echo "$ac_try_echo"; } >&5
3691: (eval "$ac_try") 2>&5
3692: ac_status=$?
3693: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694: test $ac_status = 0; }; }; then
3695: cross_compiling=no
3696: else
3697: if test "$cross_compiling" = maybe; then
3698: cross_compiling=yes
3699: else
3700: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702: as_fn_error $? "cannot run C compiled programs.
3703: If you meant to cross compile, use \`--host'.
3704: See \`config.log' for more details" "$LINENO" 5; }
3705: fi
3706: fi
3707: fi
3708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3709: $as_echo "$cross_compiling" >&6; }
3710:
3711: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3712: ac_clean_files=$ac_clean_files_save
3713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3714: $as_echo_n "checking for suffix of object files... " >&6; }
3715: if ${ac_cv_objext+:} false; then :
3716: $as_echo_n "(cached) " >&6
3717: else
3718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719: /* end confdefs.h. */
3720:
3721: int
3722: main ()
3723: {
3724:
3725: ;
3726: return 0;
3727: }
3728: _ACEOF
3729: rm -f conftest.o conftest.obj
3730: if { { ac_try="$ac_compile"
3731: case "(($ac_try" in
3732: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733: *) ac_try_echo=$ac_try;;
3734: esac
3735: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736: $as_echo "$ac_try_echo"; } >&5
3737: (eval "$ac_compile") 2>&5
3738: ac_status=$?
3739: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740: test $ac_status = 0; }; then :
3741: for ac_file in conftest.o conftest.obj conftest.*; do
3742: test -f "$ac_file" || continue;
3743: case $ac_file in
3744: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3745: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3746: break;;
3747: esac
3748: done
3749: else
3750: $as_echo "$as_me: failed program was:" >&5
3751: sed 's/^/| /' conftest.$ac_ext >&5
3752:
3753: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755: as_fn_error $? "cannot compute suffix of object files: cannot compile
3756: See \`config.log' for more details" "$LINENO" 5; }
3757: fi
3758: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3759: fi
3760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3761: $as_echo "$ac_cv_objext" >&6; }
3762: OBJEXT=$ac_cv_objext
3763: ac_objext=$OBJEXT
3764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3765: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3766: if ${ac_cv_c_compiler_gnu+:} false; then :
3767: $as_echo_n "(cached) " >&6
3768: else
3769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770: /* end confdefs.h. */
3771:
3772: int
3773: main ()
3774: {
3775: #ifndef __GNUC__
3776: choke me
3777: #endif
3778:
3779: ;
3780: return 0;
3781: }
3782: _ACEOF
3783: if ac_fn_c_try_compile "$LINENO"; then :
3784: ac_compiler_gnu=yes
3785: else
3786: ac_compiler_gnu=no
3787: fi
3788: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3790:
3791: fi
3792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3793: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3794: if test $ac_compiler_gnu = yes; then
3795: GCC=yes
3796: else
3797: GCC=
3798: fi
3799: ac_test_CFLAGS=${CFLAGS+set}
3800: ac_save_CFLAGS=$CFLAGS
3801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3802: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3803: if ${ac_cv_prog_cc_g+:} false; then :
3804: $as_echo_n "(cached) " >&6
3805: else
3806: ac_save_c_werror_flag=$ac_c_werror_flag
3807: ac_c_werror_flag=yes
3808: ac_cv_prog_cc_g=no
3809: CFLAGS="-g"
3810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811: /* end confdefs.h. */
3812:
3813: int
3814: main ()
3815: {
3816:
3817: ;
3818: return 0;
3819: }
3820: _ACEOF
3821: if ac_fn_c_try_compile "$LINENO"; then :
3822: ac_cv_prog_cc_g=yes
3823: else
3824: CFLAGS=""
3825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826: /* end confdefs.h. */
3827:
3828: int
3829: main ()
3830: {
3831:
3832: ;
3833: return 0;
3834: }
3835: _ACEOF
3836: if ac_fn_c_try_compile "$LINENO"; then :
3837:
3838: else
3839: ac_c_werror_flag=$ac_save_c_werror_flag
3840: CFLAGS="-g"
3841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842: /* end confdefs.h. */
3843:
3844: int
3845: main ()
3846: {
3847:
3848: ;
3849: return 0;
3850: }
3851: _ACEOF
3852: if ac_fn_c_try_compile "$LINENO"; then :
3853: ac_cv_prog_cc_g=yes
3854: fi
3855: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856: fi
3857: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858: fi
3859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860: ac_c_werror_flag=$ac_save_c_werror_flag
3861: fi
3862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3863: $as_echo "$ac_cv_prog_cc_g" >&6; }
3864: if test "$ac_test_CFLAGS" = set; then
3865: CFLAGS=$ac_save_CFLAGS
3866: elif test $ac_cv_prog_cc_g = yes; then
3867: if test "$GCC" = yes; then
3868: CFLAGS="-g -O2"
3869: else
3870: CFLAGS="-g"
3871: fi
3872: else
3873: if test "$GCC" = yes; then
3874: CFLAGS="-O2"
3875: else
3876: CFLAGS=
3877: fi
3878: fi
3879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3880: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3881: if ${ac_cv_prog_cc_c89+:} false; then :
3882: $as_echo_n "(cached) " >&6
3883: else
3884: ac_cv_prog_cc_c89=no
3885: ac_save_CC=$CC
3886: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887: /* end confdefs.h. */
3888: #include <stdarg.h>
3889: #include <stdio.h>
3890: #include <sys/types.h>
3891: #include <sys/stat.h>
3892: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3893: struct buf { int x; };
3894: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3895: static char *e (p, i)
3896: char **p;
3897: int i;
3898: {
3899: return p[i];
3900: }
3901: static char *f (char * (*g) (char **, int), char **p, ...)
3902: {
3903: char *s;
3904: va_list v;
3905: va_start (v,p);
3906: s = g (p, va_arg (v,int));
3907: va_end (v);
3908: return s;
3909: }
3910:
3911: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3912: function prototypes and stuff, but not '\xHH' hex character constants.
3913: These don't provoke an error unfortunately, instead are silently treated
3914: as 'x'. The following induces an error, until -std is added to get
3915: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3916: array size at least. It's necessary to write '\x00'==0 to get something
3917: that's true only with -std. */
3918: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3919:
3920: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3921: inside strings and character constants. */
3922: #define FOO(x) 'x'
3923: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3924:
3925: int test (int i, double x);
3926: struct s1 {int (*f) (int a);};
3927: struct s2 {int (*f) (double a);};
3928: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3929: int argc;
3930: char **argv;
3931: int
3932: main ()
3933: {
3934: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3935: ;
3936: return 0;
3937: }
3938: _ACEOF
3939: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3940: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3941: do
3942: CC="$ac_save_CC $ac_arg"
3943: if ac_fn_c_try_compile "$LINENO"; then :
3944: ac_cv_prog_cc_c89=$ac_arg
3945: fi
3946: rm -f core conftest.err conftest.$ac_objext
3947: test "x$ac_cv_prog_cc_c89" != "xno" && break
3948: done
3949: rm -f conftest.$ac_ext
3950: CC=$ac_save_CC
3951:
3952: fi
3953: # AC_CACHE_VAL
3954: case "x$ac_cv_prog_cc_c89" in
3955: x)
3956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3957: $as_echo "none needed" >&6; } ;;
3958: xno)
3959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3960: $as_echo "unsupported" >&6; } ;;
3961: *)
3962: CC="$CC $ac_cv_prog_cc_c89"
3963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3964: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3965: esac
3966: if test "x$ac_cv_prog_cc_c89" != xno; then :
3967:
3968: fi
3969:
3970: ac_ext=c
3971: ac_cpp='$CPP $CPPFLAGS'
3972: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975: DEPDIR="${am__leading_dot}deps"
3976:
3977: ac_config_commands="$ac_config_commands depfiles"
3978:
3979:
3980: am_make=${MAKE-make}
3981: cat > confinc << 'END'
3982: am__doit:
3983: @echo this is the am__doit target
3984: .PHONY: am__doit
3985: END
3986: # If we don't find an include directive, just comment out the code.
3987: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3988: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3989: am__include="#"
3990: am__quote=
3991: _am_result=none
3992: # First try GNU make style include.
3993: echo "include confinc" > confmf
3994: # Ignore all kinds of additional output from `make'.
3995: case `$am_make -s -f confmf 2> /dev/null` in #(
3996: *the\ am__doit\ target*)
3997: am__include=include
3998: am__quote=
3999: _am_result=GNU
4000: ;;
4001: esac
4002: # Now try BSD make style include.
4003: if test "$am__include" = "#"; then
4004: echo '.include "confinc"' > confmf
4005: case `$am_make -s -f confmf 2> /dev/null` in #(
4006: *the\ am__doit\ target*)
4007: am__include=.include
4008: am__quote="\""
4009: _am_result=BSD
4010: ;;
4011: esac
4012: fi
4013:
4014:
4015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4016: $as_echo "$_am_result" >&6; }
4017: rm -f confinc confmf
4018:
4019: # Check whether --enable-dependency-tracking was given.
4020: if test "${enable_dependency_tracking+set}" = set; then :
4021: enableval=$enable_dependency_tracking;
4022: fi
4023:
4024: if test "x$enable_dependency_tracking" != xno; then
4025: am_depcomp="$ac_aux_dir/depcomp"
4026: AMDEPBACKSLASH='\'
4027: fi
4028: if test "x$enable_dependency_tracking" != xno; then
4029: AMDEP_TRUE=
4030: AMDEP_FALSE='#'
4031: else
4032: AMDEP_TRUE='#'
4033: AMDEP_FALSE=
4034: fi
4035:
4036:
4037:
4038: depcc="$CC" am_compiler_list=
4039:
4040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041: $as_echo_n "checking dependency style of $depcc... " >&6; }
4042: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4043: $as_echo_n "(cached) " >&6
4044: else
4045: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046: # We make a subdir and do the tests there. Otherwise we can end up
4047: # making bogus files that we don't know about and never remove. For
4048: # instance it was reported that on HP-UX the gcc test will end up
4049: # making a dummy file named `D' -- because `-MD' means `put the output
4050: # in D'.
4051: mkdir conftest.dir
4052: # Copy depcomp to subdir because otherwise we won't find it if we're
4053: # using a relative directory.
4054: cp "$am_depcomp" conftest.dir
4055: cd conftest.dir
4056: # We will build objects and dependencies in a subdirectory because
4057: # it helps to detect inapplicable dependency modes. For instance
4058: # both Tru64's cc and ICC support -MD to output dependencies as a
4059: # side effect of compilation, but ICC will put the dependencies in
4060: # the current directory while Tru64 will put them in the object
4061: # directory.
4062: mkdir sub
4063:
4064: am_cv_CC_dependencies_compiler_type=none
4065: if test "$am_compiler_list" = ""; then
4066: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4067: fi
4068: am__universal=false
4069: case " $depcc " in #(
4070: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4071: esac
4072:
4073: for depmode in $am_compiler_list; do
4074: # Setup a source with many dependencies, because some compilers
4075: # like to wrap large dependency lists on column 80 (with \), and
4076: # we should not choose a depcomp mode which is confused by this.
4077: #
4078: # We need to recreate these files for each test, as the compiler may
4079: # overwrite some of them when testing with obscure command lines.
4080: # This happens at least with the AIX C compiler.
4081: : > sub/conftest.c
4082: for i in 1 2 3 4 5 6; do
4083: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4084: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4085: # Solaris 8's {/usr,}/bin/sh.
4086: touch sub/conftst$i.h
4087: done
4088: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4089:
4090: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4091: # mode. It turns out that the SunPro C++ compiler does not properly
4092: # handle `-M -o', and we need to detect this. Also, some Intel
4093: # versions had trouble with output in subdirs
4094: am__obj=sub/conftest.${OBJEXT-o}
4095: am__minus_obj="-o $am__obj"
4096: case $depmode in
4097: gcc)
4098: # This depmode causes a compiler race in universal mode.
4099: test "$am__universal" = false || continue
4100: ;;
4101: nosideeffect)
4102: # after this tag, mechanisms are not by side-effect, so they'll
4103: # only be used when explicitly requested
4104: if test "x$enable_dependency_tracking" = xyes; then
4105: continue
4106: else
4107: break
4108: fi
4109: ;;
4110: msvisualcpp | msvcmsys)
4111: # This compiler won't grok `-c -o', but also, the minuso test has
4112: # not run yet. These depmodes are late enough in the game, and
4113: # so weak that their functioning should not be impacted.
4114: am__obj=conftest.${OBJEXT-o}
4115: am__minus_obj=
4116: ;;
4117: none) break ;;
4118: esac
4119: if depmode=$depmode \
4120: source=sub/conftest.c object=$am__obj \
4121: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4122: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4123: >/dev/null 2>conftest.err &&
4124: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4125: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4126: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4127: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4128: # icc doesn't choke on unknown options, it will just issue warnings
4129: # or remarks (even with -Werror). So we grep stderr for any message
4130: # that says an option was ignored or not supported.
4131: # When given -MP, icc 7.0 and 7.1 complain thusly:
4132: # icc: Command line warning: ignoring option '-M'; no argument required
4133: # The diagnosis changed in icc 8.0:
4134: # icc: Command line remark: option '-MP' not supported
4135: if (grep 'ignoring option' conftest.err ||
4136: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4137: am_cv_CC_dependencies_compiler_type=$depmode
4138: break
4139: fi
4140: fi
4141: done
4142:
4143: cd ..
4144: rm -rf conftest.dir
4145: else
4146: am_cv_CC_dependencies_compiler_type=none
4147: fi
4148:
4149: fi
4150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4151: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4152: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4153:
4154: if
4155: test "x$enable_dependency_tracking" != xno \
4156: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4157: am__fastdepCC_TRUE=
4158: am__fastdepCC_FALSE='#'
4159: else
4160: am__fastdepCC_TRUE='#'
4161: am__fastdepCC_FALSE=
4162: fi
4163:
4164:
4165: ac_ext=c
4166: ac_cpp='$CPP $CPPFLAGS'
4167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4171: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4172: # On Suns, sometimes $CPP names a directory.
4173: if test -n "$CPP" && test -d "$CPP"; then
4174: CPP=
4175: fi
4176: if test -z "$CPP"; then
4177: if ${ac_cv_prog_CPP+:} false; then :
4178: $as_echo_n "(cached) " >&6
4179: else
4180: # Double quotes because CPP needs to be expanded
4181: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182: do
4183: ac_preproc_ok=false
4184: for ac_c_preproc_warn_flag in '' yes
4185: do
4186: # Use a header file that comes with gcc, so configuring glibc
4187: # with a fresh cross-compiler works.
4188: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189: # <limits.h> exists even on freestanding compilers.
4190: # On the NeXT, cc -E runs the code through the compiler's parser,
4191: # not just through cpp. "Syntax error" is here to catch this case.
4192: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193: /* end confdefs.h. */
4194: #ifdef __STDC__
4195: # include <limits.h>
4196: #else
4197: # include <assert.h>
4198: #endif
4199: Syntax error
4200: _ACEOF
4201: if ac_fn_c_try_cpp "$LINENO"; then :
4202:
4203: else
4204: # Broken: fails on valid input.
4205: continue
4206: fi
4207: rm -f conftest.err conftest.i conftest.$ac_ext
4208:
4209: # OK, works on sane cases. Now check whether nonexistent headers
4210: # can be detected and how.
4211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212: /* end confdefs.h. */
4213: #include <ac_nonexistent.h>
4214: _ACEOF
4215: if ac_fn_c_try_cpp "$LINENO"; then :
4216: # Broken: success on invalid input.
4217: continue
4218: else
4219: # Passes both tests.
4220: ac_preproc_ok=:
4221: break
4222: fi
4223: rm -f conftest.err conftest.i conftest.$ac_ext
4224:
4225: done
4226: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227: rm -f conftest.i conftest.err conftest.$ac_ext
4228: if $ac_preproc_ok; then :
4229: break
4230: fi
4231:
4232: done
4233: ac_cv_prog_CPP=$CPP
4234:
4235: fi
4236: CPP=$ac_cv_prog_CPP
4237: else
4238: ac_cv_prog_CPP=$CPP
4239: fi
4240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4241: $as_echo "$CPP" >&6; }
4242: ac_preproc_ok=false
4243: for ac_c_preproc_warn_flag in '' yes
4244: do
4245: # Use a header file that comes with gcc, so configuring glibc
4246: # with a fresh cross-compiler works.
4247: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248: # <limits.h> exists even on freestanding compilers.
4249: # On the NeXT, cc -E runs the code through the compiler's parser,
4250: # not just through cpp. "Syntax error" is here to catch this case.
4251: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252: /* end confdefs.h. */
4253: #ifdef __STDC__
4254: # include <limits.h>
4255: #else
4256: # include <assert.h>
4257: #endif
4258: Syntax error
4259: _ACEOF
4260: if ac_fn_c_try_cpp "$LINENO"; then :
4261:
4262: else
4263: # Broken: fails on valid input.
4264: continue
4265: fi
4266: rm -f conftest.err conftest.i conftest.$ac_ext
4267:
4268: # OK, works on sane cases. Now check whether nonexistent headers
4269: # can be detected and how.
4270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271: /* end confdefs.h. */
4272: #include <ac_nonexistent.h>
4273: _ACEOF
4274: if ac_fn_c_try_cpp "$LINENO"; then :
4275: # Broken: success on invalid input.
4276: continue
4277: else
4278: # Passes both tests.
4279: ac_preproc_ok=:
4280: break
4281: fi
4282: rm -f conftest.err conftest.i conftest.$ac_ext
4283:
4284: done
4285: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286: rm -f conftest.i conftest.err conftest.$ac_ext
4287: if $ac_preproc_ok; then :
4288:
4289: else
4290: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4293: See \`config.log' for more details" "$LINENO" 5; }
4294: fi
4295:
4296: ac_ext=c
4297: ac_cpp='$CPP $CPPFLAGS'
4298: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301:
4302: if test "x$CC" != xcc; then
4303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4304: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4305: else
4306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4307: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4308: fi
4309: set dummy $CC; ac_cc=`$as_echo "$2" |
4310: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4311: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4312: $as_echo_n "(cached) " >&6
4313: else
4314: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315: /* end confdefs.h. */
4316:
4317: int
4318: main ()
4319: {
4320:
4321: ;
4322: return 0;
4323: }
4324: _ACEOF
4325: # Make sure it works both with $CC and with simple cc.
4326: # We do the test twice because some compilers refuse to overwrite an
4327: # existing .o file with -o, though they will create one.
4328: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4329: rm -f conftest2.*
4330: if { { case "(($ac_try" in
4331: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332: *) ac_try_echo=$ac_try;;
4333: esac
4334: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335: $as_echo "$ac_try_echo"; } >&5
4336: (eval "$ac_try") 2>&5
4337: ac_status=$?
4338: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339: test $ac_status = 0; } &&
4340: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342: *) ac_try_echo=$ac_try;;
4343: esac
4344: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345: $as_echo "$ac_try_echo"; } >&5
4346: (eval "$ac_try") 2>&5
4347: ac_status=$?
4348: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349: test $ac_status = 0; };
4350: then
4351: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4352: if test "x$CC" != xcc; then
4353: # Test first that cc exists at all.
4354: if { ac_try='cc -c conftest.$ac_ext >&5'
4355: { { case "(($ac_try" in
4356: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357: *) ac_try_echo=$ac_try;;
4358: esac
4359: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360: $as_echo "$ac_try_echo"; } >&5
4361: (eval "$ac_try") 2>&5
4362: ac_status=$?
4363: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364: test $ac_status = 0; }; }; then
4365: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4366: rm -f conftest2.*
4367: if { { case "(($ac_try" in
4368: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369: *) ac_try_echo=$ac_try;;
4370: esac
4371: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372: $as_echo "$ac_try_echo"; } >&5
4373: (eval "$ac_try") 2>&5
4374: ac_status=$?
4375: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376: test $ac_status = 0; } &&
4377: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4378: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379: *) ac_try_echo=$ac_try;;
4380: esac
4381: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382: $as_echo "$ac_try_echo"; } >&5
4383: (eval "$ac_try") 2>&5
4384: ac_status=$?
4385: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386: test $ac_status = 0; };
4387: then
4388: # cc works too.
4389: :
4390: else
4391: # cc exists but doesn't like -o.
4392: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4393: fi
4394: fi
4395: fi
4396: else
4397: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4398: fi
4399: rm -f core conftest*
4400:
4401: fi
4402: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4404: $as_echo "yes" >&6; }
4405: else
4406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407: $as_echo "no" >&6; }
4408:
4409: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4410:
4411: fi
4412:
4413: # FIXME: we rely on the cache variable name because
4414: # there is no other way.
4415: set dummy $CC
4416: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4417: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4418: if test "$am_t" != yes; then
4419: # Losing compiler, so override with the script.
4420: # FIXME: It is wrong to rewrite CC.
4421: # But if we don't then we get into trouble of one sort or another.
4422: # A longer-term fix would be to have automake use am__CC in this case,
4423: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4424: CC="$am_aux_dir/compile $CC"
4425: fi
4426:
4427:
4428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4429: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4430: if ${ac_cv_path_GREP+:} false; then :
4431: $as_echo_n "(cached) " >&6
4432: else
4433: if test -z "$GREP"; then
4434: ac_path_GREP_found=false
4435: # Loop through the user's path and test for each of PROGNAME-LIST
4436: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4438: do
4439: IFS=$as_save_IFS
4440: test -z "$as_dir" && as_dir=.
4441: for ac_prog in grep ggrep; do
4442: for ac_exec_ext in '' $ac_executable_extensions; do
4443: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4444: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4445: # Check for GNU ac_path_GREP and select it if it is found.
4446: # Check for GNU $ac_path_GREP
4447: case `"$ac_path_GREP" --version 2>&1` in
4448: *GNU*)
4449: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4450: *)
4451: ac_count=0
4452: $as_echo_n 0123456789 >"conftest.in"
4453: while :
4454: do
4455: cat "conftest.in" "conftest.in" >"conftest.tmp"
4456: mv "conftest.tmp" "conftest.in"
4457: cp "conftest.in" "conftest.nl"
4458: $as_echo 'GREP' >> "conftest.nl"
4459: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4460: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4461: as_fn_arith $ac_count + 1 && ac_count=$as_val
4462: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4463: # Best one so far, save it but keep looking for a better one
4464: ac_cv_path_GREP="$ac_path_GREP"
4465: ac_path_GREP_max=$ac_count
4466: fi
4467: # 10*(2^10) chars as input seems more than enough
4468: test $ac_count -gt 10 && break
4469: done
4470: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4471: esac
4472:
4473: $ac_path_GREP_found && break 3
4474: done
4475: done
4476: done
4477: IFS=$as_save_IFS
4478: if test -z "$ac_cv_path_GREP"; then
4479: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4480: fi
4481: else
4482: ac_cv_path_GREP=$GREP
4483: fi
4484:
4485: fi
4486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4487: $as_echo "$ac_cv_path_GREP" >&6; }
4488: GREP="$ac_cv_path_GREP"
4489:
4490:
4491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4492: $as_echo_n "checking for egrep... " >&6; }
4493: if ${ac_cv_path_EGREP+:} false; then :
4494: $as_echo_n "(cached) " >&6
4495: else
4496: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4497: then ac_cv_path_EGREP="$GREP -E"
4498: else
4499: if test -z "$EGREP"; then
4500: ac_path_EGREP_found=false
4501: # Loop through the user's path and test for each of PROGNAME-LIST
4502: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4504: do
4505: IFS=$as_save_IFS
4506: test -z "$as_dir" && as_dir=.
4507: for ac_prog in egrep; do
4508: for ac_exec_ext in '' $ac_executable_extensions; do
4509: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4510: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4511: # Check for GNU ac_path_EGREP and select it if it is found.
4512: # Check for GNU $ac_path_EGREP
4513: case `"$ac_path_EGREP" --version 2>&1` in
4514: *GNU*)
4515: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4516: *)
4517: ac_count=0
4518: $as_echo_n 0123456789 >"conftest.in"
4519: while :
4520: do
4521: cat "conftest.in" "conftest.in" >"conftest.tmp"
4522: mv "conftest.tmp" "conftest.in"
4523: cp "conftest.in" "conftest.nl"
4524: $as_echo 'EGREP' >> "conftest.nl"
4525: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4526: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4527: as_fn_arith $ac_count + 1 && ac_count=$as_val
4528: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4529: # Best one so far, save it but keep looking for a better one
4530: ac_cv_path_EGREP="$ac_path_EGREP"
4531: ac_path_EGREP_max=$ac_count
4532: fi
4533: # 10*(2^10) chars as input seems more than enough
4534: test $ac_count -gt 10 && break
4535: done
4536: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4537: esac
4538:
4539: $ac_path_EGREP_found && break 3
4540: done
4541: done
4542: done
4543: IFS=$as_save_IFS
4544: if test -z "$ac_cv_path_EGREP"; then
4545: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4546: fi
4547: else
4548: ac_cv_path_EGREP=$EGREP
4549: fi
4550:
4551: fi
4552: fi
4553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4554: $as_echo "$ac_cv_path_EGREP" >&6; }
4555: EGREP="$ac_cv_path_EGREP"
4556:
4557:
4558:
4559: # Extract the first word of "sed", so it can be a program name with args.
4560: set dummy sed; ac_word=$2
4561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562: $as_echo_n "checking for $ac_word... " >&6; }
4563: if ${ac_cv_prog_SED+:} false; then :
4564: $as_echo_n "(cached) " >&6
4565: else
4566: if test -n "$SED"; then
4567: ac_cv_prog_SED="$SED" # Let the user override the test.
4568: else
4569: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570: for as_dir in $PATH
4571: do
4572: IFS=$as_save_IFS
4573: test -z "$as_dir" && as_dir=.
4574: for ac_exec_ext in '' $ac_executable_extensions; do
4575: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576: ac_cv_prog_SED="sed"
4577: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578: break 2
4579: fi
4580: done
4581: done
4582: IFS=$as_save_IFS
4583:
4584: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="/bin/false"
4585: fi
4586: fi
4587: SED=$ac_cv_prog_SED
4588: if test -n "$SED"; then
4589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4590: $as_echo "$SED" >&6; }
4591: else
4592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593: $as_echo "no" >&6; }
4594: fi
4595:
4596:
4597:
4598: if test "x${GCC}" = "xyes" ; then
4599: COMPILER="GCC"
4600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel compiler" >&5
4601: $as_echo_n "checking whether we are using the Intel compiler... " >&6; }
4602:
4603:
4604: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605: /* end confdefs.h. */
4606: __INTEL_COMPILER
4607: _ACEOF
4608: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609: $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
4610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611: $as_echo "no" >&6; }
4612: else
4613: COMPILER="ICC"
4614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615: $as_echo "yes" >&6; }
4616:
4617: fi
4618: rm -f conftest*
4619:
4620: else
4621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SunPro compiler" >&5
4622: $as_echo_n "checking whether we are using SunPro compiler... " >&6; }
4623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624: /* end confdefs.h. */
4625: "__SUNPRO_C" __SUNPRO_C
4626: _ACEOF
4627: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628: $EGREP "^__SUNPRO_C.*0x5(7|8|9)" >/dev/null 2>&1; then :
4629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630: $as_echo "no" >&6; }
4631: else
4632: COMPILER="SUNPRO"
4633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634: $as_echo "yes" >&6; }
4635:
4636: fi
4637: rm -f conftest*
4638:
4639: fi
4640:
4641:
4642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set a default CFLAGS" >&5
4643: $as_echo_n "checking whether to set a default CFLAGS... " >&6; }
4644: if test "x${cflags_specified}" = "x" ; then
4645: case ${COMPILER} in
4646: "ICC")
4647: CFLAGS="-Os -g -Wall -wd 279,869,981"
4648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Intel default" >&5
4649: $as_echo "Intel default" >&6; }
4650: ;;
4651: "GCC")
4652: CFLAGS="-Os -fno-omit-frame-pointer -g -std=gnu99 -Wall"
4653: CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
4654: CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
4655: CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"
4656: CFLAGS="${CFLAGS} -Wchar-subscripts -Wcast-qual"
4657: # TODO: conditionally addd -Wpacked if handled
4658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc default" >&5
4659: $as_echo "gcc default" >&6; }
4660: ;;
4661: "SUNPRO")
4662: CFLAGS="-xO4 -v -g -xspace -xcode=pic32 -xstrconst -xc99"
4663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunPro default" >&5
4664: $as_echo "SunPro default" >&6; }
4665: ;;
4666: *)
4667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown compiler" >&5
4668: $as_echo "unknown compiler" >&6; }
4669: ;;
4670: esac
4671: else
4672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS supplied by user" >&5
4673: $as_echo "CFLAGS supplied by user" >&6; }
4674: fi
4675:
4676:
4677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4678: $as_echo_n "checking whether ln -s works... " >&6; }
4679: LN_S=$as_ln_s
4680: if test "$LN_S" = "ln -s"; then
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4682: $as_echo "yes" >&6; }
4683: else
4684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4685: $as_echo "no, using $LN_S" >&6; }
4686: fi
4687:
4688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4689: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4690: set x ${MAKE-make}
4691: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4692: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4693: $as_echo_n "(cached) " >&6
4694: else
4695: cat >conftest.make <<\_ACEOF
4696: SHELL = /bin/sh
4697: all:
4698: @echo '@@@%%%=$(MAKE)=@@@%%%'
4699: _ACEOF
4700: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4701: case `${MAKE-make} -f conftest.make 2>/dev/null` in
4702: *@@@%%%=?*=@@@%%%*)
4703: eval ac_cv_prog_make_${ac_make}_set=yes;;
4704: *)
4705: eval ac_cv_prog_make_${ac_make}_set=no;;
4706: esac
4707: rm -f conftest.make
4708: fi
4709: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711: $as_echo "yes" >&6; }
4712: SET_MAKE=
4713: else
4714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715: $as_echo "no" >&6; }
4716: SET_MAKE="MAKE=${MAKE-make}"
4717: fi
4718:
4719: if test -n "$ac_tool_prefix"; then
4720: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4721: set dummy ${ac_tool_prefix}ar; ac_word=$2
4722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723: $as_echo_n "checking for $ac_word... " >&6; }
4724: if ${ac_cv_prog_AR+:} false; then :
4725: $as_echo_n "(cached) " >&6
4726: else
4727: if test -n "$AR"; then
4728: ac_cv_prog_AR="$AR" # Let the user override the test.
4729: else
4730: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731: for as_dir in $PATH
4732: do
4733: IFS=$as_save_IFS
4734: test -z "$as_dir" && as_dir=.
4735: for ac_exec_ext in '' $ac_executable_extensions; do
4736: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737: ac_cv_prog_AR="${ac_tool_prefix}ar"
4738: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739: break 2
4740: fi
4741: done
4742: done
4743: IFS=$as_save_IFS
4744:
4745: fi
4746: fi
4747: AR=$ac_cv_prog_AR
4748: if test -n "$AR"; then
4749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4750: $as_echo "$AR" >&6; }
4751: else
4752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753: $as_echo "no" >&6; }
4754: fi
4755:
4756:
4757: fi
4758: if test -z "$ac_cv_prog_AR"; then
4759: ac_ct_AR=$AR
4760: # Extract the first word of "ar", so it can be a program name with args.
4761: set dummy ar; ac_word=$2
4762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763: $as_echo_n "checking for $ac_word... " >&6; }
4764: if ${ac_cv_prog_ac_ct_AR+:} false; then :
4765: $as_echo_n "(cached) " >&6
4766: else
4767: if test -n "$ac_ct_AR"; then
4768: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4769: else
4770: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771: for as_dir in $PATH
4772: do
4773: IFS=$as_save_IFS
4774: test -z "$as_dir" && as_dir=.
4775: for ac_exec_ext in '' $ac_executable_extensions; do
4776: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777: ac_cv_prog_ac_ct_AR="ar"
4778: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779: break 2
4780: fi
4781: done
4782: done
4783: IFS=$as_save_IFS
4784:
4785: fi
4786: fi
4787: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4788: if test -n "$ac_ct_AR"; then
4789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4790: $as_echo "$ac_ct_AR" >&6; }
4791: else
4792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793: $as_echo "no" >&6; }
4794: fi
4795:
4796: if test "x$ac_ct_AR" = x; then
4797: AR=""
4798: else
4799: case $cross_compiling:$ac_tool_warned in
4800: yes:)
4801: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803: ac_tool_warned=yes ;;
4804: esac
4805: AR=$ac_ct_AR
4806: fi
4807: else
4808: AR="$ac_cv_prog_AR"
4809: fi
4810:
4811:
4812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5
4813: $as_echo_n "checking if ${MAKE-make} is GNU make... " >&6; }
4814: if ${quagga_cv_gnu_make+:} false; then :
4815: $as_echo_n "(cached) " >&6
4816: else
4817: quagga_cv_gnu_make=no
4818: if ${MAKE-make} --version 2>/dev/null | \
4819: grep '^GNU Make ' >/dev/null ; then
4820: quagga_cv_gnu_make=yes;
4821: fi
4822:
4823:
4824: fi
4825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_gnu_make" >&5
4826: $as_echo "$quagga_cv_gnu_make" >&6; }
4827:
4828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4829: $as_echo_n "checking for ANSI C header files... " >&6; }
4830: if ${ac_cv_header_stdc+:} false; then :
4831: $as_echo_n "(cached) " >&6
4832: else
4833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834: /* end confdefs.h. */
4835: #include <stdlib.h>
4836: #include <stdarg.h>
4837: #include <string.h>
4838: #include <float.h>
4839:
4840: int
4841: main ()
4842: {
4843:
4844: ;
4845: return 0;
4846: }
4847: _ACEOF
4848: if ac_fn_c_try_compile "$LINENO"; then :
4849: ac_cv_header_stdc=yes
4850: else
4851: ac_cv_header_stdc=no
4852: fi
4853: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854:
4855: if test $ac_cv_header_stdc = yes; then
4856: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858: /* end confdefs.h. */
4859: #include <string.h>
4860:
4861: _ACEOF
4862: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4863: $EGREP "memchr" >/dev/null 2>&1; then :
4864:
4865: else
4866: ac_cv_header_stdc=no
4867: fi
4868: rm -f conftest*
4869:
4870: fi
4871:
4872: if test $ac_cv_header_stdc = yes; then
4873: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4874: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875: /* end confdefs.h. */
4876: #include <stdlib.h>
4877:
4878: _ACEOF
4879: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880: $EGREP "free" >/dev/null 2>&1; then :
4881:
4882: else
4883: ac_cv_header_stdc=no
4884: fi
4885: rm -f conftest*
4886:
4887: fi
4888:
4889: if test $ac_cv_header_stdc = yes; then
4890: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4891: if test "$cross_compiling" = yes; then :
4892: :
4893: else
4894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895: /* end confdefs.h. */
4896: #include <ctype.h>
4897: #include <stdlib.h>
4898: #if ((' ' & 0x0FF) == 0x020)
4899: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4900: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4901: #else
4902: # define ISLOWER(c) \
4903: (('a' <= (c) && (c) <= 'i') \
4904: || ('j' <= (c) && (c) <= 'r') \
4905: || ('s' <= (c) && (c) <= 'z'))
4906: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4907: #endif
4908:
4909: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4910: int
4911: main ()
4912: {
4913: int i;
4914: for (i = 0; i < 256; i++)
4915: if (XOR (islower (i), ISLOWER (i))
4916: || toupper (i) != TOUPPER (i))
4917: return 2;
4918: return 0;
4919: }
4920: _ACEOF
4921: if ac_fn_c_try_run "$LINENO"; then :
4922:
4923: else
4924: ac_cv_header_stdc=no
4925: fi
4926: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4927: conftest.$ac_objext conftest.beam conftest.$ac_ext
4928: fi
4929:
4930: fi
4931: fi
4932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4933: $as_echo "$ac_cv_header_stdc" >&6; }
4934: if test $ac_cv_header_stdc = yes; then
4935:
4936: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4937:
4938: fi
4939:
4940: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4941: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4942: inttypes.h stdint.h unistd.h
4943: do :
4944: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4945: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4946: "
4947: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4948: cat >>confdefs.h <<_ACEOF
4949: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950: _ACEOF
4951:
4952: fi
4953:
4954: done
4955:
4956:
4957:
4958: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4959: if test "x$ac_cv_header_minix_config_h" = xyes; then :
4960: MINIX=yes
4961: else
4962: MINIX=
4963: fi
4964:
4965:
4966: if test "$MINIX" = yes; then
4967:
4968: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4969:
4970:
4971: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4972:
4973:
4974: $as_echo "#define _MINIX 1" >>confdefs.h
4975:
4976: fi
4977:
4978:
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4980: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4981: if ${ac_cv_safe_to_define___extensions__+:} false; then :
4982: $as_echo_n "(cached) " >&6
4983: else
4984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985: /* end confdefs.h. */
4986:
4987: # define __EXTENSIONS__ 1
4988: $ac_includes_default
4989: int
4990: main ()
4991: {
4992:
4993: ;
4994: return 0;
4995: }
4996: _ACEOF
4997: if ac_fn_c_try_compile "$LINENO"; then :
4998: ac_cv_safe_to_define___extensions__=yes
4999: else
5000: ac_cv_safe_to_define___extensions__=no
5001: fi
5002: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003: fi
5004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5005: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5006: test $ac_cv_safe_to_define___extensions__ = yes &&
5007: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5008:
5009: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5010:
5011: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5012:
5013: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5014:
5015: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5016:
5017:
5018:
5019:
5020: case `pwd` in
5021: *\ * | *\ *)
5022: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5023: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5024: esac
5025:
5026:
5027:
5028: macro_version='2.4'
5029: macro_revision='1.3293'
5030:
5031:
5032:
5033:
5034:
5035:
5036:
5037:
5038:
5039:
5040:
5041:
5042:
5043: ltmain="$ac_aux_dir/ltmain.sh"
5044:
5045: # Backslashify metacharacters that are still active within
5046: # double-quoted strings.
5047: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5048:
5049: # Same as above, but do not quote variable references.
5050: double_quote_subst='s/\(["`\\]\)/\\\1/g'
5051:
5052: # Sed substitution to delay expansion of an escaped shell variable in a
5053: # double_quote_subst'ed string.
5054: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5055:
5056: # Sed substitution to delay expansion of an escaped single quote.
5057: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5058:
5059: # Sed substitution to avoid accidental globbing in evaled expressions
5060: no_glob_subst='s/\*/\\\*/g'
5061:
5062: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5063: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5064: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5065:
5066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5067: $as_echo_n "checking how to print strings... " >&6; }
5068: # Test print first, because it will be a builtin if present.
5069: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5070: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5071: ECHO='print -r --'
5072: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5073: ECHO='printf %s\n'
5074: else
5075: # Use this function as a fallback that always works.
5076: func_fallback_echo ()
5077: {
5078: eval 'cat <<_LTECHO_EOF
5079: $1
5080: _LTECHO_EOF'
5081: }
5082: ECHO='func_fallback_echo'
5083: fi
5084:
5085: # func_echo_all arg...
5086: # Invoke $ECHO with all args, space-separated.
5087: func_echo_all ()
5088: {
5089: $ECHO ""
5090: }
5091:
5092: case "$ECHO" in
5093: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5094: $as_echo "printf" >&6; } ;;
5095: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5096: $as_echo "print -r" >&6; } ;;
5097: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5098: $as_echo "cat" >&6; } ;;
5099: esac
5100:
5101:
5102:
5103:
5104:
5105:
5106:
5107:
5108:
5109:
5110:
5111:
5112:
5113:
5114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5115: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5116: if ${ac_cv_path_SED+:} false; then :
5117: $as_echo_n "(cached) " >&6
5118: else
5119: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5120: for ac_i in 1 2 3 4 5 6 7; do
5121: ac_script="$ac_script$as_nl$ac_script"
5122: done
5123: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5124: { ac_script=; unset ac_script;}
5125: if test -z "$SED"; then
5126: ac_path_SED_found=false
5127: # Loop through the user's path and test for each of PROGNAME-LIST
5128: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129: for as_dir in $PATH
5130: do
5131: IFS=$as_save_IFS
5132: test -z "$as_dir" && as_dir=.
5133: for ac_prog in sed gsed; do
5134: for ac_exec_ext in '' $ac_executable_extensions; do
5135: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5136: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5137: # Check for GNU ac_path_SED and select it if it is found.
5138: # Check for GNU $ac_path_SED
5139: case `"$ac_path_SED" --version 2>&1` in
5140: *GNU*)
5141: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5142: *)
5143: ac_count=0
5144: $as_echo_n 0123456789 >"conftest.in"
5145: while :
5146: do
5147: cat "conftest.in" "conftest.in" >"conftest.tmp"
5148: mv "conftest.tmp" "conftest.in"
5149: cp "conftest.in" "conftest.nl"
5150: $as_echo '' >> "conftest.nl"
5151: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153: as_fn_arith $ac_count + 1 && ac_count=$as_val
5154: if test $ac_count -gt ${ac_path_SED_max-0}; then
5155: # Best one so far, save it but keep looking for a better one
5156: ac_cv_path_SED="$ac_path_SED"
5157: ac_path_SED_max=$ac_count
5158: fi
5159: # 10*(2^10) chars as input seems more than enough
5160: test $ac_count -gt 10 && break
5161: done
5162: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163: esac
5164:
5165: $ac_path_SED_found && break 3
5166: done
5167: done
5168: done
5169: IFS=$as_save_IFS
5170: if test -z "$ac_cv_path_SED"; then
5171: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5172: fi
5173: else
5174: ac_cv_path_SED=$SED
5175: fi
5176:
5177: fi
5178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5179: $as_echo "$ac_cv_path_SED" >&6; }
5180: SED="$ac_cv_path_SED"
5181: rm -f conftest.sed
5182:
5183: test -z "$SED" && SED=sed
5184: Xsed="$SED -e 1s/^X//"
5185:
5186:
5187:
5188:
5189:
5190:
5191:
5192:
5193:
5194:
5195:
5196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5197: $as_echo_n "checking for fgrep... " >&6; }
5198: if ${ac_cv_path_FGREP+:} false; then :
5199: $as_echo_n "(cached) " >&6
5200: else
5201: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5202: then ac_cv_path_FGREP="$GREP -F"
5203: else
5204: if test -z "$FGREP"; then
5205: ac_path_FGREP_found=false
5206: # Loop through the user's path and test for each of PROGNAME-LIST
5207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5209: do
5210: IFS=$as_save_IFS
5211: test -z "$as_dir" && as_dir=.
5212: for ac_prog in fgrep; do
5213: for ac_exec_ext in '' $ac_executable_extensions; do
5214: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5215: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5216: # Check for GNU ac_path_FGREP and select it if it is found.
5217: # Check for GNU $ac_path_FGREP
5218: case `"$ac_path_FGREP" --version 2>&1` in
5219: *GNU*)
5220: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5221: *)
5222: ac_count=0
5223: $as_echo_n 0123456789 >"conftest.in"
5224: while :
5225: do
5226: cat "conftest.in" "conftest.in" >"conftest.tmp"
5227: mv "conftest.tmp" "conftest.in"
5228: cp "conftest.in" "conftest.nl"
5229: $as_echo 'FGREP' >> "conftest.nl"
5230: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5231: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5232: as_fn_arith $ac_count + 1 && ac_count=$as_val
5233: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5234: # Best one so far, save it but keep looking for a better one
5235: ac_cv_path_FGREP="$ac_path_FGREP"
5236: ac_path_FGREP_max=$ac_count
5237: fi
5238: # 10*(2^10) chars as input seems more than enough
5239: test $ac_count -gt 10 && break
5240: done
5241: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5242: esac
5243:
5244: $ac_path_FGREP_found && break 3
5245: done
5246: done
5247: done
5248: IFS=$as_save_IFS
5249: if test -z "$ac_cv_path_FGREP"; then
5250: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5251: fi
5252: else
5253: ac_cv_path_FGREP=$FGREP
5254: fi
5255:
5256: fi
5257: fi
5258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5259: $as_echo "$ac_cv_path_FGREP" >&6; }
5260: FGREP="$ac_cv_path_FGREP"
5261:
5262:
5263: test -z "$GREP" && GREP=grep
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
5272:
5273:
5274:
5275:
5276:
5277:
5278:
5279:
5280:
5281:
5282:
5283: # Check whether --with-gnu-ld was given.
5284: if test "${with_gnu_ld+set}" = set; then :
5285: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5286: else
5287: with_gnu_ld=no
5288: fi
5289:
5290: ac_prog=ld
5291: if test "$GCC" = yes; then
5292: # Check if gcc -print-prog-name=ld gives a path.
5293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5294: $as_echo_n "checking for ld used by $CC... " >&6; }
5295: case $host in
5296: *-*-mingw*)
5297: # gcc leaves a trailing carriage return which upsets mingw
5298: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5299: *)
5300: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5301: esac
5302: case $ac_prog in
5303: # Accept absolute paths.
5304: [\\/]* | ?:[\\/]*)
5305: re_direlt='/[^/][^/]*/\.\./'
5306: # Canonicalize the pathname of ld
5307: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5308: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5309: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5310: done
5311: test -z "$LD" && LD="$ac_prog"
5312: ;;
5313: "")
5314: # If it fails, then pretend we aren't using GCC.
5315: ac_prog=ld
5316: ;;
5317: *)
5318: # If it is relative, then search for the first ld in PATH.
5319: with_gnu_ld=unknown
5320: ;;
5321: esac
5322: elif test "$with_gnu_ld" = yes; then
5323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5324: $as_echo_n "checking for GNU ld... " >&6; }
5325: else
5326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5327: $as_echo_n "checking for non-GNU ld... " >&6; }
5328: fi
5329: if ${lt_cv_path_LD+:} false; then :
5330: $as_echo_n "(cached) " >&6
5331: else
5332: if test -z "$LD"; then
5333: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5334: for ac_dir in $PATH; do
5335: IFS="$lt_save_ifs"
5336: test -z "$ac_dir" && ac_dir=.
5337: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5338: lt_cv_path_LD="$ac_dir/$ac_prog"
5339: # Check to see if the program is GNU ld. I'd rather use --version,
5340: # but apparently some variants of GNU ld only accept -v.
5341: # Break only if it was the GNU/non-GNU ld that we prefer.
5342: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5343: *GNU* | *'with BFD'*)
5344: test "$with_gnu_ld" != no && break
5345: ;;
5346: *)
5347: test "$with_gnu_ld" != yes && break
5348: ;;
5349: esac
5350: fi
5351: done
5352: IFS="$lt_save_ifs"
5353: else
5354: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5355: fi
5356: fi
5357:
5358: LD="$lt_cv_path_LD"
5359: if test -n "$LD"; then
5360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5361: $as_echo "$LD" >&6; }
5362: else
5363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364: $as_echo "no" >&6; }
5365: fi
5366: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5368: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5369: if ${lt_cv_prog_gnu_ld+:} false; then :
5370: $as_echo_n "(cached) " >&6
5371: else
5372: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5373: case `$LD -v 2>&1 </dev/null` in
5374: *GNU* | *'with BFD'*)
5375: lt_cv_prog_gnu_ld=yes
5376: ;;
5377: *)
5378: lt_cv_prog_gnu_ld=no
5379: ;;
5380: esac
5381: fi
5382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5383: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5384: with_gnu_ld=$lt_cv_prog_gnu_ld
5385:
5386:
5387:
5388:
5389:
5390:
5391:
5392:
5393:
5394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5395: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5396: if ${lt_cv_path_NM+:} false; then :
5397: $as_echo_n "(cached) " >&6
5398: else
5399: if test -n "$NM"; then
5400: # Let the user override the test.
5401: lt_cv_path_NM="$NM"
5402: else
5403: lt_nm_to_check="${ac_tool_prefix}nm"
5404: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5405: lt_nm_to_check="$lt_nm_to_check nm"
5406: fi
5407: for lt_tmp_nm in $lt_nm_to_check; do
5408: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5409: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5410: IFS="$lt_save_ifs"
5411: test -z "$ac_dir" && ac_dir=.
5412: tmp_nm="$ac_dir/$lt_tmp_nm"
5413: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5414: # Check to see if the nm accepts a BSD-compat flag.
5415: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5416: # nm: unknown option "B" ignored
5417: # Tru64's nm complains that /dev/null is an invalid object file
5418: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5419: */dev/null* | *'Invalid file or object type'*)
5420: lt_cv_path_NM="$tmp_nm -B"
5421: break
5422: ;;
5423: *)
5424: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5425: */dev/null*)
5426: lt_cv_path_NM="$tmp_nm -p"
5427: break
5428: ;;
5429: *)
5430: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5431: continue # so that we can try to find one that supports BSD flags
5432: ;;
5433: esac
5434: ;;
5435: esac
5436: fi
5437: done
5438: IFS="$lt_save_ifs"
5439: done
5440: : ${lt_cv_path_NM=no}
5441: fi
5442: fi
5443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5444: $as_echo "$lt_cv_path_NM" >&6; }
5445: if test "$lt_cv_path_NM" != "no"; then
5446: NM="$lt_cv_path_NM"
5447: else
5448: # Didn't find any BSD compatible name lister, look for dumpbin.
5449: if test -n "$DUMPBIN"; then :
5450: # Let the user override the test.
5451: else
5452: if test -n "$ac_tool_prefix"; then
5453: for ac_prog in dumpbin "link -dump"
5454: do
5455: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5456: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458: $as_echo_n "checking for $ac_word... " >&6; }
5459: if ${ac_cv_prog_DUMPBIN+:} false; then :
5460: $as_echo_n "(cached) " >&6
5461: else
5462: if test -n "$DUMPBIN"; then
5463: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5464: else
5465: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466: for as_dir in $PATH
5467: do
5468: IFS=$as_save_IFS
5469: test -z "$as_dir" && as_dir=.
5470: for ac_exec_ext in '' $ac_executable_extensions; do
5471: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5473: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474: break 2
5475: fi
5476: done
5477: done
5478: IFS=$as_save_IFS
5479:
5480: fi
5481: fi
5482: DUMPBIN=$ac_cv_prog_DUMPBIN
5483: if test -n "$DUMPBIN"; then
5484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5485: $as_echo "$DUMPBIN" >&6; }
5486: else
5487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488: $as_echo "no" >&6; }
5489: fi
5490:
5491:
5492: test -n "$DUMPBIN" && break
5493: done
5494: fi
5495: if test -z "$DUMPBIN"; then
5496: ac_ct_DUMPBIN=$DUMPBIN
5497: for ac_prog in dumpbin "link -dump"
5498: do
5499: # Extract the first word of "$ac_prog", so it can be a program name with args.
5500: set dummy $ac_prog; ac_word=$2
5501: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502: $as_echo_n "checking for $ac_word... " >&6; }
5503: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5504: $as_echo_n "(cached) " >&6
5505: else
5506: if test -n "$ac_ct_DUMPBIN"; then
5507: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5508: else
5509: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510: for as_dir in $PATH
5511: do
5512: IFS=$as_save_IFS
5513: test -z "$as_dir" && as_dir=.
5514: for ac_exec_ext in '' $ac_executable_extensions; do
5515: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5517: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518: break 2
5519: fi
5520: done
5521: done
5522: IFS=$as_save_IFS
5523:
5524: fi
5525: fi
5526: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5527: if test -n "$ac_ct_DUMPBIN"; then
5528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5529: $as_echo "$ac_ct_DUMPBIN" >&6; }
5530: else
5531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532: $as_echo "no" >&6; }
5533: fi
5534:
5535:
5536: test -n "$ac_ct_DUMPBIN" && break
5537: done
5538:
5539: if test "x$ac_ct_DUMPBIN" = x; then
5540: DUMPBIN=":"
5541: else
5542: case $cross_compiling:$ac_tool_warned in
5543: yes:)
5544: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546: ac_tool_warned=yes ;;
5547: esac
5548: DUMPBIN=$ac_ct_DUMPBIN
5549: fi
5550: fi
5551:
5552: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5553: *COFF*)
5554: DUMPBIN="$DUMPBIN -symbols"
5555: ;;
5556: *)
5557: DUMPBIN=:
5558: ;;
5559: esac
5560: fi
5561:
5562: if test "$DUMPBIN" != ":"; then
5563: NM="$DUMPBIN"
5564: fi
5565: fi
5566: test -z "$NM" && NM=nm
5567:
5568:
5569:
5570:
5571:
5572:
5573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5574: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5575: if ${lt_cv_nm_interface+:} false; then :
5576: $as_echo_n "(cached) " >&6
5577: else
5578: lt_cv_nm_interface="BSD nm"
5579: echo "int some_variable = 0;" > conftest.$ac_ext
5580: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5581: (eval "$ac_compile" 2>conftest.err)
5582: cat conftest.err >&5
5583: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5584: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5585: cat conftest.err >&5
5586: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5587: cat conftest.out >&5
5588: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5589: lt_cv_nm_interface="MS dumpbin"
5590: fi
5591: rm -f conftest*
5592: fi
5593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5594: $as_echo "$lt_cv_nm_interface" >&6; }
5595:
5596: # find the maximum length of command line arguments
5597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5598: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5599: if ${lt_cv_sys_max_cmd_len+:} false; then :
5600: $as_echo_n "(cached) " >&6
5601: else
5602: i=0
5603: teststring="ABCD"
5604:
5605: case $build_os in
5606: msdosdjgpp*)
5607: # On DJGPP, this test can blow up pretty badly due to problems in libc
5608: # (any single argument exceeding 2000 bytes causes a buffer overrun
5609: # during glob expansion). Even if it were fixed, the result of this
5610: # check would be larger than it should be.
5611: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5612: ;;
5613:
5614: gnu*)
5615: # Under GNU Hurd, this test is not required because there is
5616: # no limit to the length of command line arguments.
5617: # Libtool will interpret -1 as no limit whatsoever
5618: lt_cv_sys_max_cmd_len=-1;
5619: ;;
5620:
5621: cygwin* | mingw* | cegcc*)
5622: # On Win9x/ME, this test blows up -- it succeeds, but takes
5623: # about 5 minutes as the teststring grows exponentially.
5624: # Worse, since 9x/ME are not pre-emptively multitasking,
5625: # you end up with a "frozen" computer, even though with patience
5626: # the test eventually succeeds (with a max line length of 256k).
5627: # Instead, let's just punt: use the minimum linelength reported by
5628: # all of the supported platforms: 8192 (on NT/2K/XP).
5629: lt_cv_sys_max_cmd_len=8192;
5630: ;;
5631:
5632: mint*)
5633: # On MiNT this can take a long time and run out of memory.
5634: lt_cv_sys_max_cmd_len=8192;
5635: ;;
5636:
5637: amigaos*)
5638: # On AmigaOS with pdksh, this test takes hours, literally.
5639: # So we just punt and use a minimum line length of 8192.
5640: lt_cv_sys_max_cmd_len=8192;
5641: ;;
5642:
5643: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5644: # This has been around since 386BSD, at least. Likely further.
5645: if test -x /sbin/sysctl; then
5646: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5647: elif test -x /usr/sbin/sysctl; then
5648: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5649: else
5650: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5651: fi
5652: # And add a safety zone
5653: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5654: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5655: ;;
5656:
5657: interix*)
5658: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5659: lt_cv_sys_max_cmd_len=196608
5660: ;;
5661:
5662: osf*)
5663: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5664: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5665: # nice to cause kernel panics so lets avoid the loop below.
5666: # First set a reasonable default.
5667: lt_cv_sys_max_cmd_len=16384
5668: #
5669: if test -x /sbin/sysconfig; then
5670: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5671: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5672: esac
5673: fi
5674: ;;
5675: sco3.2v5*)
5676: lt_cv_sys_max_cmd_len=102400
5677: ;;
5678: sysv5* | sco5v6* | sysv4.2uw2*)
5679: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5680: if test -n "$kargmax"; then
5681: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5682: else
5683: lt_cv_sys_max_cmd_len=32768
5684: fi
5685: ;;
5686: *)
5687: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5688: if test -n "$lt_cv_sys_max_cmd_len"; then
5689: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5690: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5691: else
5692: # Make teststring a little bigger before we do anything with it.
5693: # a 1K string should be a reasonable start.
5694: for i in 1 2 3 4 5 6 7 8 ; do
5695: teststring=$teststring$teststring
5696: done
5697: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5698: # If test is not a shell built-in, we'll probably end up computing a
5699: # maximum length that is only half of the actual maximum length, but
5700: # we can't tell.
5701: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5702: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5703: test $i != 17 # 1/2 MB should be enough
5704: do
5705: i=`expr $i + 1`
5706: teststring=$teststring$teststring
5707: done
5708: # Only check the string length outside the loop.
5709: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5710: teststring=
5711: # Add a significant safety factor because C++ compilers can tack on
5712: # massive amounts of additional arguments before passing them to the
5713: # linker. It appears as though 1/2 is a usable value.
5714: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5715: fi
5716: ;;
5717: esac
5718:
5719: fi
5720:
5721: if test -n $lt_cv_sys_max_cmd_len ; then
5722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5723: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5724: else
5725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5726: $as_echo "none" >&6; }
5727: fi
5728: max_cmd_len=$lt_cv_sys_max_cmd_len
5729:
5730:
5731:
5732:
5733:
5734:
5735: : ${CP="cp -f"}
5736: : ${MV="mv -f"}
5737: : ${RM="rm -f"}
5738:
5739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5740: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5741: # Try some XSI features
5742: xsi_shell=no
5743: ( _lt_dummy="a/b/c"
5744: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5745: = c,a/b,b/c, \
5746: && eval 'test $(( 1 + 1 )) -eq 2 \
5747: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5748: && xsi_shell=yes
5749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5750: $as_echo "$xsi_shell" >&6; }
5751:
5752:
5753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5754: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5755: lt_shell_append=no
5756: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5757: >/dev/null 2>&1 \
5758: && lt_shell_append=yes
5759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5760: $as_echo "$lt_shell_append" >&6; }
5761:
5762:
5763: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5764: lt_unset=unset
5765: else
5766: lt_unset=false
5767: fi
5768:
5769:
5770:
5771:
5772:
5773: # test EBCDIC or ASCII
5774: case `echo X|tr X '\101'` in
5775: A) # ASCII based system
5776: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5777: lt_SP2NL='tr \040 \012'
5778: lt_NL2SP='tr \015\012 \040\040'
5779: ;;
5780: *) # EBCDIC based system
5781: lt_SP2NL='tr \100 \n'
5782: lt_NL2SP='tr \r\n \100\100'
5783: ;;
5784: esac
5785:
5786:
5787:
5788:
5789:
5790:
5791:
5792:
5793:
5794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5795: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5796: if ${lt_cv_to_host_file_cmd+:} false; then :
5797: $as_echo_n "(cached) " >&6
5798: else
5799: case $host in
5800: *-*-mingw* )
5801: case $build in
5802: *-*-mingw* ) # actually msys
5803: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5804: ;;
5805: *-*-cygwin* )
5806: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5807: ;;
5808: * ) # otherwise, assume *nix
5809: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5810: ;;
5811: esac
5812: ;;
5813: *-*-cygwin* )
5814: case $build in
5815: *-*-mingw* ) # actually msys
5816: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5817: ;;
5818: *-*-cygwin* )
5819: lt_cv_to_host_file_cmd=func_convert_file_noop
5820: ;;
5821: * ) # otherwise, assume *nix
5822: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5823: ;;
5824: esac
5825: ;;
5826: * ) # unhandled hosts (and "normal" native builds)
5827: lt_cv_to_host_file_cmd=func_convert_file_noop
5828: ;;
5829: esac
5830:
5831: fi
5832:
5833: to_host_file_cmd=$lt_cv_to_host_file_cmd
5834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5835: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5836:
5837:
5838:
5839:
5840:
5841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5842: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5843: if ${lt_cv_to_tool_file_cmd+:} false; then :
5844: $as_echo_n "(cached) " >&6
5845: else
5846: #assume ordinary cross tools, or native build.
5847: lt_cv_to_tool_file_cmd=func_convert_file_noop
5848: case $host in
5849: *-*-mingw* )
5850: case $build in
5851: *-*-mingw* ) # actually msys
5852: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5853: ;;
5854: esac
5855: ;;
5856: esac
5857:
5858: fi
5859:
5860: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5862: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5863:
5864:
5865:
5866:
5867:
5868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5869: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5870: if ${lt_cv_ld_reload_flag+:} false; then :
5871: $as_echo_n "(cached) " >&6
5872: else
5873: lt_cv_ld_reload_flag='-r'
5874: fi
5875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5876: $as_echo "$lt_cv_ld_reload_flag" >&6; }
5877: reload_flag=$lt_cv_ld_reload_flag
5878: case $reload_flag in
5879: "" | " "*) ;;
5880: *) reload_flag=" $reload_flag" ;;
5881: esac
5882: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5883: case $host_os in
5884: cygwin* | mingw* | pw32* | cegcc*)
5885: if test "$GCC" != yes; then
5886: reload_cmds=false
5887: fi
5888: ;;
5889: darwin*)
5890: if test "$GCC" = yes; then
5891: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5892: else
5893: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5894: fi
5895: ;;
5896: esac
5897:
5898:
5899:
5900:
5901:
5902:
5903:
5904:
5905:
5906: if test -n "$ac_tool_prefix"; then
5907: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5908: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910: $as_echo_n "checking for $ac_word... " >&6; }
5911: if ${ac_cv_prog_OBJDUMP+:} false; then :
5912: $as_echo_n "(cached) " >&6
5913: else
5914: if test -n "$OBJDUMP"; then
5915: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5916: else
5917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918: for as_dir in $PATH
5919: do
5920: IFS=$as_save_IFS
5921: test -z "$as_dir" && as_dir=.
5922: for ac_exec_ext in '' $ac_executable_extensions; do
5923: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5925: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926: break 2
5927: fi
5928: done
5929: done
5930: IFS=$as_save_IFS
5931:
5932: fi
5933: fi
5934: OBJDUMP=$ac_cv_prog_OBJDUMP
5935: if test -n "$OBJDUMP"; then
5936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5937: $as_echo "$OBJDUMP" >&6; }
5938: else
5939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940: $as_echo "no" >&6; }
5941: fi
5942:
5943:
5944: fi
5945: if test -z "$ac_cv_prog_OBJDUMP"; then
5946: ac_ct_OBJDUMP=$OBJDUMP
5947: # Extract the first word of "objdump", so it can be a program name with args.
5948: set dummy objdump; ac_word=$2
5949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950: $as_echo_n "checking for $ac_word... " >&6; }
5951: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5952: $as_echo_n "(cached) " >&6
5953: else
5954: if test -n "$ac_ct_OBJDUMP"; then
5955: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5956: else
5957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958: for as_dir in $PATH
5959: do
5960: IFS=$as_save_IFS
5961: test -z "$as_dir" && as_dir=.
5962: for ac_exec_ext in '' $ac_executable_extensions; do
5963: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5965: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966: break 2
5967: fi
5968: done
5969: done
5970: IFS=$as_save_IFS
5971:
5972: fi
5973: fi
5974: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5975: if test -n "$ac_ct_OBJDUMP"; then
5976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5977: $as_echo "$ac_ct_OBJDUMP" >&6; }
5978: else
5979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980: $as_echo "no" >&6; }
5981: fi
5982:
5983: if test "x$ac_ct_OBJDUMP" = x; then
5984: OBJDUMP="false"
5985: else
5986: case $cross_compiling:$ac_tool_warned in
5987: yes:)
5988: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990: ac_tool_warned=yes ;;
5991: esac
5992: OBJDUMP=$ac_ct_OBJDUMP
5993: fi
5994: else
5995: OBJDUMP="$ac_cv_prog_OBJDUMP"
5996: fi
5997:
5998: test -z "$OBJDUMP" && OBJDUMP=objdump
5999:
6000:
6001:
6002:
6003:
6004:
6005:
6006:
6007:
6008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6009: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6010: if ${lt_cv_deplibs_check_method+:} false; then :
6011: $as_echo_n "(cached) " >&6
6012: else
6013: lt_cv_file_magic_cmd='$MAGIC_CMD'
6014: lt_cv_file_magic_test_file=
6015: lt_cv_deplibs_check_method='unknown'
6016: # Need to set the preceding variable on all platforms that support
6017: # interlibrary dependencies.
6018: # 'none' -- dependencies not supported.
6019: # `unknown' -- same as none, but documents that we really don't know.
6020: # 'pass_all' -- all dependencies passed with no checks.
6021: # 'test_compile' -- check by making test program.
6022: # 'file_magic [[regex]]' -- check by looking for files in library path
6023: # which responds to the $file_magic_cmd with a given extended regex.
6024: # If you have `file' or equivalent on your system and you're not sure
6025: # whether `pass_all' will *always* work, you probably want this one.
6026:
6027: case $host_os in
6028: aix[4-9]*)
6029: lt_cv_deplibs_check_method=pass_all
6030: ;;
6031:
6032: beos*)
6033: lt_cv_deplibs_check_method=pass_all
6034: ;;
6035:
6036: bsdi[45]*)
6037: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6038: lt_cv_file_magic_cmd='/usr/bin/file -L'
6039: lt_cv_file_magic_test_file=/shlib/libc.so
6040: ;;
6041:
6042: cygwin*)
6043: # func_win32_libid is a shell function defined in ltmain.sh
6044: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6045: lt_cv_file_magic_cmd='func_win32_libid'
6046: ;;
6047:
6048: mingw* | pw32*)
6049: # Base MSYS/MinGW do not provide the 'file' command needed by
6050: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6051: # unless we find 'file', for example because we are cross-compiling.
6052: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6053: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6054: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055: lt_cv_file_magic_cmd='func_win32_libid'
6056: else
6057: # Keep this pattern in sync with the one in func_win32_libid.
6058: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6059: lt_cv_file_magic_cmd='$OBJDUMP -f'
6060: fi
6061: ;;
6062:
6063: cegcc*)
6064: # use the weaker test based on 'objdump'. See mingw*.
6065: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6066: lt_cv_file_magic_cmd='$OBJDUMP -f'
6067: ;;
6068:
6069: darwin* | rhapsody*)
6070: lt_cv_deplibs_check_method=pass_all
6071: ;;
6072:
6073: freebsd* | dragonfly*)
6074: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6075: case $host_cpu in
6076: i*86 )
6077: # Not sure whether the presence of OpenBSD here was a mistake.
6078: # Let's accept both of them until this is cleared up.
6079: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6080: lt_cv_file_magic_cmd=/usr/bin/file
6081: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6082: ;;
6083: esac
6084: else
6085: lt_cv_deplibs_check_method=pass_all
6086: fi
6087: ;;
6088:
6089: gnu*)
6090: lt_cv_deplibs_check_method=pass_all
6091: ;;
6092:
6093: haiku*)
6094: lt_cv_deplibs_check_method=pass_all
6095: ;;
6096:
6097: hpux10.20* | hpux11*)
6098: lt_cv_file_magic_cmd=/usr/bin/file
6099: case $host_cpu in
6100: ia64*)
6101: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6102: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6103: ;;
6104: hppa*64*)
6105: 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]'
6106: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6107: ;;
6108: *)
6109: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6110: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6111: ;;
6112: esac
6113: ;;
6114:
6115: interix[3-9]*)
6116: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6117: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6118: ;;
6119:
6120: irix5* | irix6* | nonstopux*)
6121: case $LD in
6122: *-32|*"-32 ") libmagic=32-bit;;
6123: *-n32|*"-n32 ") libmagic=N32;;
6124: *-64|*"-64 ") libmagic=64-bit;;
6125: *) libmagic=never-match;;
6126: esac
6127: lt_cv_deplibs_check_method=pass_all
6128: ;;
6129:
6130: # This must be Linux ELF.
6131: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6132: lt_cv_deplibs_check_method=pass_all
6133: ;;
6134:
6135: netbsd*)
6136: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6137: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6138: else
6139: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6140: fi
6141: ;;
6142:
6143: newos6*)
6144: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6145: lt_cv_file_magic_cmd=/usr/bin/file
6146: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6147: ;;
6148:
6149: *nto* | *qnx*)
6150: lt_cv_deplibs_check_method=pass_all
6151: ;;
6152:
6153: openbsd*)
6154: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6155: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6156: else
6157: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6158: fi
6159: ;;
6160:
6161: osf3* | osf4* | osf5*)
6162: lt_cv_deplibs_check_method=pass_all
6163: ;;
6164:
6165: rdos*)
6166: lt_cv_deplibs_check_method=pass_all
6167: ;;
6168:
6169: solaris*)
6170: lt_cv_deplibs_check_method=pass_all
6171: ;;
6172:
6173: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6174: lt_cv_deplibs_check_method=pass_all
6175: ;;
6176:
6177: sysv4 | sysv4.3*)
6178: case $host_vendor in
6179: motorola)
6180: 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]'
6181: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6182: ;;
6183: ncr)
6184: lt_cv_deplibs_check_method=pass_all
6185: ;;
6186: sequent)
6187: lt_cv_file_magic_cmd='/bin/file'
6188: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6189: ;;
6190: sni)
6191: lt_cv_file_magic_cmd='/bin/file'
6192: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6193: lt_cv_file_magic_test_file=/lib/libc.so
6194: ;;
6195: siemens)
6196: lt_cv_deplibs_check_method=pass_all
6197: ;;
6198: pc)
6199: lt_cv_deplibs_check_method=pass_all
6200: ;;
6201: esac
6202: ;;
6203:
6204: tpf*)
6205: lt_cv_deplibs_check_method=pass_all
6206: ;;
6207: esac
6208:
6209: fi
6210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6211: $as_echo "$lt_cv_deplibs_check_method" >&6; }
6212:
6213: file_magic_glob=
6214: want_nocaseglob=no
6215: if test "$build" = "$host"; then
6216: case $host_os in
6217: mingw* | pw32*)
6218: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6219: want_nocaseglob=yes
6220: else
6221: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6222: fi
6223: ;;
6224: esac
6225: fi
6226:
6227: file_magic_cmd=$lt_cv_file_magic_cmd
6228: deplibs_check_method=$lt_cv_deplibs_check_method
6229: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6230:
6231:
6232:
6233:
6234:
6235:
6236:
6237:
6238:
6239:
6240:
6241:
6242:
6243:
6244:
6245:
6246:
6247:
6248:
6249:
6250:
6251:
6252: if test -n "$ac_tool_prefix"; then
6253: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6254: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256: $as_echo_n "checking for $ac_word... " >&6; }
6257: if ${ac_cv_prog_DLLTOOL+:} false; then :
6258: $as_echo_n "(cached) " >&6
6259: else
6260: if test -n "$DLLTOOL"; then
6261: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6262: else
6263: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264: for as_dir in $PATH
6265: do
6266: IFS=$as_save_IFS
6267: test -z "$as_dir" && as_dir=.
6268: for ac_exec_ext in '' $ac_executable_extensions; do
6269: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6271: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272: break 2
6273: fi
6274: done
6275: done
6276: IFS=$as_save_IFS
6277:
6278: fi
6279: fi
6280: DLLTOOL=$ac_cv_prog_DLLTOOL
6281: if test -n "$DLLTOOL"; then
6282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6283: $as_echo "$DLLTOOL" >&6; }
6284: else
6285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286: $as_echo "no" >&6; }
6287: fi
6288:
6289:
6290: fi
6291: if test -z "$ac_cv_prog_DLLTOOL"; then
6292: ac_ct_DLLTOOL=$DLLTOOL
6293: # Extract the first word of "dlltool", so it can be a program name with args.
6294: set dummy dlltool; ac_word=$2
6295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296: $as_echo_n "checking for $ac_word... " >&6; }
6297: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6298: $as_echo_n "(cached) " >&6
6299: else
6300: if test -n "$ac_ct_DLLTOOL"; then
6301: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6302: else
6303: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304: for as_dir in $PATH
6305: do
6306: IFS=$as_save_IFS
6307: test -z "$as_dir" && as_dir=.
6308: for ac_exec_ext in '' $ac_executable_extensions; do
6309: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6311: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312: break 2
6313: fi
6314: done
6315: done
6316: IFS=$as_save_IFS
6317:
6318: fi
6319: fi
6320: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6321: if test -n "$ac_ct_DLLTOOL"; then
6322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6323: $as_echo "$ac_ct_DLLTOOL" >&6; }
6324: else
6325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326: $as_echo "no" >&6; }
6327: fi
6328:
6329: if test "x$ac_ct_DLLTOOL" = x; then
6330: DLLTOOL="false"
6331: else
6332: case $cross_compiling:$ac_tool_warned in
6333: yes:)
6334: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336: ac_tool_warned=yes ;;
6337: esac
6338: DLLTOOL=$ac_ct_DLLTOOL
6339: fi
6340: else
6341: DLLTOOL="$ac_cv_prog_DLLTOOL"
6342: fi
6343:
6344: test -z "$DLLTOOL" && DLLTOOL=dlltool
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6356: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6357: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6358: $as_echo_n "(cached) " >&6
6359: else
6360: lt_cv_sharedlib_from_linklib_cmd='unknown'
6361:
6362: case $host_os in
6363: cygwin* | mingw* | pw32* | cegcc*)
6364: # two different shell functions defined in ltmain.sh
6365: # decide which to use based on capabilities of $DLLTOOL
6366: case `$DLLTOOL --help 2>&1` in
6367: *--identify-strict*)
6368: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6369: ;;
6370: *)
6371: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6372: ;;
6373: esac
6374: ;;
6375: *)
6376: # fallback: assume linklib IS sharedlib
6377: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6378: ;;
6379: esac
6380:
6381: fi
6382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6383: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6384: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6385: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6386:
6387:
6388:
6389:
6390:
6391:
6392:
6393: if test -n "$ac_tool_prefix"; then
6394: for ac_prog in ar
6395: do
6396: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6397: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399: $as_echo_n "checking for $ac_word... " >&6; }
6400: if ${ac_cv_prog_AR+:} false; then :
6401: $as_echo_n "(cached) " >&6
6402: else
6403: if test -n "$AR"; then
6404: ac_cv_prog_AR="$AR" # Let the user override the test.
6405: else
6406: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407: for as_dir in $PATH
6408: do
6409: IFS=$as_save_IFS
6410: test -z "$as_dir" && as_dir=.
6411: for ac_exec_ext in '' $ac_executable_extensions; do
6412: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6414: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415: break 2
6416: fi
6417: done
6418: done
6419: IFS=$as_save_IFS
6420:
6421: fi
6422: fi
6423: AR=$ac_cv_prog_AR
6424: if test -n "$AR"; then
6425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6426: $as_echo "$AR" >&6; }
6427: else
6428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429: $as_echo "no" >&6; }
6430: fi
6431:
6432:
6433: test -n "$AR" && break
6434: done
6435: fi
6436: if test -z "$AR"; then
6437: ac_ct_AR=$AR
6438: for ac_prog in ar
6439: do
6440: # Extract the first word of "$ac_prog", so it can be a program name with args.
6441: set dummy $ac_prog; ac_word=$2
6442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443: $as_echo_n "checking for $ac_word... " >&6; }
6444: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6445: $as_echo_n "(cached) " >&6
6446: else
6447: if test -n "$ac_ct_AR"; then
6448: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6449: else
6450: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451: for as_dir in $PATH
6452: do
6453: IFS=$as_save_IFS
6454: test -z "$as_dir" && as_dir=.
6455: for ac_exec_ext in '' $ac_executable_extensions; do
6456: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457: ac_cv_prog_ac_ct_AR="$ac_prog"
6458: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459: break 2
6460: fi
6461: done
6462: done
6463: IFS=$as_save_IFS
6464:
6465: fi
6466: fi
6467: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6468: if test -n "$ac_ct_AR"; then
6469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6470: $as_echo "$ac_ct_AR" >&6; }
6471: else
6472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473: $as_echo "no" >&6; }
6474: fi
6475:
6476:
6477: test -n "$ac_ct_AR" && break
6478: done
6479:
6480: if test "x$ac_ct_AR" = x; then
6481: AR="false"
6482: else
6483: case $cross_compiling:$ac_tool_warned in
6484: yes:)
6485: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487: ac_tool_warned=yes ;;
6488: esac
6489: AR=$ac_ct_AR
6490: fi
6491: fi
6492:
6493: : ${AR=ar}
6494: : ${AR_FLAGS=cru}
6495:
6496:
6497:
6498:
6499:
6500:
6501:
6502:
6503:
6504:
6505:
6506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6507: $as_echo_n "checking for archiver @FILE support... " >&6; }
6508: if ${lt_cv_ar_at_file+:} false; then :
6509: $as_echo_n "(cached) " >&6
6510: else
6511: lt_cv_ar_at_file=no
6512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513: /* end confdefs.h. */
6514:
6515: int
6516: main ()
6517: {
6518:
6519: ;
6520: return 0;
6521: }
6522: _ACEOF
6523: if ac_fn_c_try_compile "$LINENO"; then :
6524: echo conftest.$ac_objext > conftest.lst
6525: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6526: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6527: (eval $lt_ar_try) 2>&5
6528: ac_status=$?
6529: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530: test $ac_status = 0; }
6531: if test "$ac_status" -eq 0; then
6532: # Ensure the archiver fails upon bogus file names.
6533: rm -f conftest.$ac_objext libconftest.a
6534: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6535: (eval $lt_ar_try) 2>&5
6536: ac_status=$?
6537: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538: test $ac_status = 0; }
6539: if test "$ac_status" -ne 0; then
6540: lt_cv_ar_at_file=@
6541: fi
6542: fi
6543: rm -f conftest.* libconftest.a
6544:
6545: fi
6546: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547:
6548: fi
6549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6550: $as_echo "$lt_cv_ar_at_file" >&6; }
6551:
6552: if test "x$lt_cv_ar_at_file" = xno; then
6553: archiver_list_spec=
6554: else
6555: archiver_list_spec=$lt_cv_ar_at_file
6556: fi
6557:
6558:
6559:
6560:
6561:
6562:
6563:
6564: if test -n "$ac_tool_prefix"; then
6565: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6566: set dummy ${ac_tool_prefix}strip; ac_word=$2
6567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568: $as_echo_n "checking for $ac_word... " >&6; }
6569: if ${ac_cv_prog_STRIP+:} false; then :
6570: $as_echo_n "(cached) " >&6
6571: else
6572: if test -n "$STRIP"; then
6573: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6574: else
6575: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576: for as_dir in $PATH
6577: do
6578: IFS=$as_save_IFS
6579: test -z "$as_dir" && as_dir=.
6580: for ac_exec_ext in '' $ac_executable_extensions; do
6581: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6583: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584: break 2
6585: fi
6586: done
6587: done
6588: IFS=$as_save_IFS
6589:
6590: fi
6591: fi
6592: STRIP=$ac_cv_prog_STRIP
6593: if test -n "$STRIP"; then
6594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6595: $as_echo "$STRIP" >&6; }
6596: else
6597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598: $as_echo "no" >&6; }
6599: fi
6600:
6601:
6602: fi
6603: if test -z "$ac_cv_prog_STRIP"; then
6604: ac_ct_STRIP=$STRIP
6605: # Extract the first word of "strip", so it can be a program name with args.
6606: set dummy strip; ac_word=$2
6607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608: $as_echo_n "checking for $ac_word... " >&6; }
6609: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6610: $as_echo_n "(cached) " >&6
6611: else
6612: if test -n "$ac_ct_STRIP"; then
6613: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6614: else
6615: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616: for as_dir in $PATH
6617: do
6618: IFS=$as_save_IFS
6619: test -z "$as_dir" && as_dir=.
6620: for ac_exec_ext in '' $ac_executable_extensions; do
6621: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622: ac_cv_prog_ac_ct_STRIP="strip"
6623: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624: break 2
6625: fi
6626: done
6627: done
6628: IFS=$as_save_IFS
6629:
6630: fi
6631: fi
6632: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6633: if test -n "$ac_ct_STRIP"; then
6634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6635: $as_echo "$ac_ct_STRIP" >&6; }
6636: else
6637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638: $as_echo "no" >&6; }
6639: fi
6640:
6641: if test "x$ac_ct_STRIP" = x; then
6642: STRIP=":"
6643: else
6644: case $cross_compiling:$ac_tool_warned in
6645: yes:)
6646: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648: ac_tool_warned=yes ;;
6649: esac
6650: STRIP=$ac_ct_STRIP
6651: fi
6652: else
6653: STRIP="$ac_cv_prog_STRIP"
6654: fi
6655:
6656: test -z "$STRIP" && STRIP=:
6657:
6658:
6659:
6660:
6661:
6662:
6663: if test -n "$ac_tool_prefix"; then
6664: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6665: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667: $as_echo_n "checking for $ac_word... " >&6; }
6668: if ${ac_cv_prog_RANLIB+:} false; then :
6669: $as_echo_n "(cached) " >&6
6670: else
6671: if test -n "$RANLIB"; then
6672: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6673: else
6674: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675: for as_dir in $PATH
6676: do
6677: IFS=$as_save_IFS
6678: test -z "$as_dir" && as_dir=.
6679: for ac_exec_ext in '' $ac_executable_extensions; do
6680: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6682: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683: break 2
6684: fi
6685: done
6686: done
6687: IFS=$as_save_IFS
6688:
6689: fi
6690: fi
6691: RANLIB=$ac_cv_prog_RANLIB
6692: if test -n "$RANLIB"; then
6693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6694: $as_echo "$RANLIB" >&6; }
6695: else
6696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697: $as_echo "no" >&6; }
6698: fi
6699:
6700:
6701: fi
6702: if test -z "$ac_cv_prog_RANLIB"; then
6703: ac_ct_RANLIB=$RANLIB
6704: # Extract the first word of "ranlib", so it can be a program name with args.
6705: set dummy ranlib; ac_word=$2
6706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707: $as_echo_n "checking for $ac_word... " >&6; }
6708: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6709: $as_echo_n "(cached) " >&6
6710: else
6711: if test -n "$ac_ct_RANLIB"; then
6712: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6713: else
6714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715: for as_dir in $PATH
6716: do
6717: IFS=$as_save_IFS
6718: test -z "$as_dir" && as_dir=.
6719: for ac_exec_ext in '' $ac_executable_extensions; do
6720: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721: ac_cv_prog_ac_ct_RANLIB="ranlib"
6722: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723: break 2
6724: fi
6725: done
6726: done
6727: IFS=$as_save_IFS
6728:
6729: fi
6730: fi
6731: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6732: if test -n "$ac_ct_RANLIB"; then
6733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6734: $as_echo "$ac_ct_RANLIB" >&6; }
6735: else
6736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737: $as_echo "no" >&6; }
6738: fi
6739:
6740: if test "x$ac_ct_RANLIB" = x; then
6741: RANLIB=":"
6742: else
6743: case $cross_compiling:$ac_tool_warned in
6744: yes:)
6745: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747: ac_tool_warned=yes ;;
6748: esac
6749: RANLIB=$ac_ct_RANLIB
6750: fi
6751: else
6752: RANLIB="$ac_cv_prog_RANLIB"
6753: fi
6754:
6755: test -z "$RANLIB" && RANLIB=:
6756:
6757:
6758:
6759:
6760:
6761:
6762: # Determine commands to create old-style static archives.
6763: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6764: old_postinstall_cmds='chmod 644 $oldlib'
6765: old_postuninstall_cmds=
6766:
6767: if test -n "$RANLIB"; then
6768: case $host_os in
6769: openbsd*)
6770: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6771: ;;
6772: *)
6773: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6774: ;;
6775: esac
6776: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6777: fi
6778:
6779: case $host_os in
6780: darwin*)
6781: lock_old_archive_extraction=yes ;;
6782: *)
6783: lock_old_archive_extraction=no ;;
6784: esac
6785:
6786:
6787:
6788:
6789:
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
6799:
6800:
6801:
6802:
6803:
6804:
6805:
6806:
6807:
6808:
6809:
6810:
6811:
6812:
6813:
6814:
6815:
6816:
6817:
6818:
6819:
6820:
6821:
6822:
6823:
6824: # If no C compiler was specified, use CC.
6825: LTCC=${LTCC-"$CC"}
6826:
6827: # If no C compiler flags were specified, use CFLAGS.
6828: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6829:
6830: # Allow CC to be a program name with arguments.
6831: compiler=$CC
6832:
6833:
6834: # Check for command to grab the raw symbol name followed by C symbol from nm.
6835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6836: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6837: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6838: $as_echo_n "(cached) " >&6
6839: else
6840:
6841: # These are sane defaults that work on at least a few old systems.
6842: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6843:
6844: # Character class describing NM global symbol codes.
6845: symcode='[BCDEGRST]'
6846:
6847: # Regexp to match symbols that can be accessed directly from C.
6848: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6849:
6850: # Define system-specific variables.
6851: case $host_os in
6852: aix*)
6853: symcode='[BCDT]'
6854: ;;
6855: cygwin* | mingw* | pw32* | cegcc*)
6856: symcode='[ABCDGISTW]'
6857: ;;
6858: hpux*)
6859: if test "$host_cpu" = ia64; then
6860: symcode='[ABCDEGRST]'
6861: fi
6862: ;;
6863: irix* | nonstopux*)
6864: symcode='[BCDEGRST]'
6865: ;;
6866: osf*)
6867: symcode='[BCDEGQRST]'
6868: ;;
6869: solaris*)
6870: symcode='[BDRT]'
6871: ;;
6872: sco3.2v5*)
6873: symcode='[DT]'
6874: ;;
6875: sysv4.2uw2*)
6876: symcode='[DT]'
6877: ;;
6878: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6879: symcode='[ABDT]'
6880: ;;
6881: sysv4)
6882: symcode='[DFNSTU]'
6883: ;;
6884: esac
6885:
6886: # If we're using GNU nm, then use its standard symbol codes.
6887: case `$NM -V 2>&1` in
6888: *GNU* | *'with BFD'*)
6889: symcode='[ABCDGIRSTW]' ;;
6890: esac
6891:
6892: # Transform an extracted symbol line into a proper C declaration.
6893: # Some systems (esp. on ia64) link data and code symbols differently,
6894: # so use this general approach.
6895: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6896:
6897: # Transform an extracted symbol line into symbol name and symbol address
6898: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6899: 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'"
6900:
6901: # Handle CRLF in mingw tool chain
6902: opt_cr=
6903: case $build_os in
6904: mingw*)
6905: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6906: ;;
6907: esac
6908:
6909: # Try without a prefix underscore, then with it.
6910: for ac_symprfx in "" "_"; do
6911:
6912: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6913: symxfrm="\\1 $ac_symprfx\\2 \\2"
6914:
6915: # Write the raw and C identifiers.
6916: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6917: # Fake it for dumpbin and say T for any non-static function
6918: # and D for any global variable.
6919: # Also find C++ and __fastcall symbols from MSVC++,
6920: # which start with @ or ?.
6921: lt_cv_sys_global_symbol_pipe="$AWK '"\
6922: " {last_section=section; section=\$ 3};"\
6923: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6924: " \$ 0!~/External *\|/{next};"\
6925: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6926: " {if(hide[section]) next};"\
6927: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6928: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6929: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6930: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6931: " ' prfx=^$ac_symprfx"
6932: else
6933: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6934: fi
6935: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6936:
6937: # Check to see that the pipe works correctly.
6938: pipe_works=no
6939:
6940: rm -f conftest*
6941: cat > conftest.$ac_ext <<_LT_EOF
6942: #ifdef __cplusplus
6943: extern "C" {
6944: #endif
6945: char nm_test_var;
6946: void nm_test_func(void);
6947: void nm_test_func(void){}
6948: #ifdef __cplusplus
6949: }
6950: #endif
6951: int main(){nm_test_var='a';nm_test_func();return(0);}
6952: _LT_EOF
6953:
6954: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6955: (eval $ac_compile) 2>&5
6956: ac_status=$?
6957: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6958: test $ac_status = 0; }; then
6959: # Now try to grab the symbols.
6960: nlist=conftest.nm
6961: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6962: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6963: ac_status=$?
6964: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965: test $ac_status = 0; } && test -s "$nlist"; then
6966: # Try sorting and uniquifying the output.
6967: if sort "$nlist" | uniq > "$nlist"T; then
6968: mv -f "$nlist"T "$nlist"
6969: else
6970: rm -f "$nlist"T
6971: fi
6972:
6973: # Make sure that we snagged all the symbols we need.
6974: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6975: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6976: cat <<_LT_EOF > conftest.$ac_ext
6977: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6978: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6979: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6980: relocations are performed -- see ld's documentation on pseudo-relocs. */
6981: # define LT_DLSYM_CONST
6982: #elif defined(__osf__)
6983: /* This system does not cope well with relocations in const data. */
6984: # define LT_DLSYM_CONST
6985: #else
6986: # define LT_DLSYM_CONST const
6987: #endif
6988:
6989: #ifdef __cplusplus
6990: extern "C" {
6991: #endif
6992:
6993: _LT_EOF
6994: # Now generate the symbol file.
6995: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6996:
6997: cat <<_LT_EOF >> conftest.$ac_ext
6998:
6999: /* The mapping between symbol names and symbols. */
7000: LT_DLSYM_CONST struct {
7001: const char *name;
7002: void *address;
7003: }
7004: lt__PROGRAM__LTX_preloaded_symbols[] =
7005: {
7006: { "@PROGRAM@", (void *) 0 },
7007: _LT_EOF
7008: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7009: cat <<\_LT_EOF >> conftest.$ac_ext
7010: {0, (void *) 0}
7011: };
7012:
7013: /* This works around a problem in FreeBSD linker */
7014: #ifdef FREEBSD_WORKAROUND
7015: static const void *lt_preloaded_setup() {
7016: return lt__PROGRAM__LTX_preloaded_symbols;
7017: }
7018: #endif
7019:
7020: #ifdef __cplusplus
7021: }
7022: #endif
7023: _LT_EOF
7024: # Now try linking the two files.
7025: mv conftest.$ac_objext conftstm.$ac_objext
7026: lt_globsym_save_LIBS=$LIBS
7027: lt_globsym_save_CFLAGS=$CFLAGS
7028: LIBS="conftstm.$ac_objext"
7029: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7030: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7031: (eval $ac_link) 2>&5
7032: ac_status=$?
7033: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7035: pipe_works=yes
7036: fi
7037: LIBS=$lt_globsym_save_LIBS
7038: CFLAGS=$lt_globsym_save_CFLAGS
7039: else
7040: echo "cannot find nm_test_func in $nlist" >&5
7041: fi
7042: else
7043: echo "cannot find nm_test_var in $nlist" >&5
7044: fi
7045: else
7046: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7047: fi
7048: else
7049: echo "$progname: failed program was:" >&5
7050: cat conftest.$ac_ext >&5
7051: fi
7052: rm -rf conftest* conftst*
7053:
7054: # Do not use the global_symbol_pipe unless it works.
7055: if test "$pipe_works" = yes; then
7056: break
7057: else
7058: lt_cv_sys_global_symbol_pipe=
7059: fi
7060: done
7061:
7062: fi
7063:
7064: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7065: lt_cv_sys_global_symbol_to_cdecl=
7066: fi
7067: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7069: $as_echo "failed" >&6; }
7070: else
7071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7072: $as_echo "ok" >&6; }
7073: fi
7074:
7075: # Response file support.
7076: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7077: nm_file_list_spec='@'
7078: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7079: nm_file_list_spec='@'
7080: fi
7081:
7082:
7083:
7084:
7085:
7086:
7087:
7088:
7089:
7090:
7091:
7092:
7093:
7094:
7095:
7096:
7097:
7098:
7099:
7100:
7101:
7102:
7103:
7104:
7105:
7106:
7107:
7108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7109: $as_echo_n "checking for sysroot... " >&6; }
7110:
7111: # Check whether --with-sysroot was given.
7112: if test "${with_sysroot+set}" = set; then :
7113: withval=$with_sysroot;
7114: else
7115: with_sysroot=no
7116: fi
7117:
7118:
7119: lt_sysroot=
7120: case ${with_sysroot} in #(
7121: yes)
7122: if test "$GCC" = yes; then
7123: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7124: fi
7125: ;; #(
7126: /*)
7127: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7128: ;; #(
7129: no|'')
7130: ;; #(
7131: *)
7132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7133: $as_echo "${with_sysroot}" >&6; }
7134: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7135: ;;
7136: esac
7137:
7138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7139: $as_echo "${lt_sysroot:-no}" >&6; }
7140:
7141:
7142:
7143:
7144:
7145: # Check whether --enable-libtool-lock was given.
7146: if test "${enable_libtool_lock+set}" = set; then :
7147: enableval=$enable_libtool_lock;
7148: fi
7149:
7150: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7151:
7152: # Some flags need to be propagated to the compiler or linker for good
7153: # libtool support.
7154: case $host in
7155: ia64-*-hpux*)
7156: # Find out which ABI we are using.
7157: echo 'int i;' > conftest.$ac_ext
7158: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7159: (eval $ac_compile) 2>&5
7160: ac_status=$?
7161: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162: test $ac_status = 0; }; then
7163: case `/usr/bin/file conftest.$ac_objext` in
7164: *ELF-32*)
7165: HPUX_IA64_MODE="32"
7166: ;;
7167: *ELF-64*)
7168: HPUX_IA64_MODE="64"
7169: ;;
7170: esac
7171: fi
7172: rm -rf conftest*
7173: ;;
7174: *-*-irix6*)
7175: # Find out which ABI we are using.
7176: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7177: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7178: (eval $ac_compile) 2>&5
7179: ac_status=$?
7180: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181: test $ac_status = 0; }; then
7182: if test "$lt_cv_prog_gnu_ld" = yes; then
7183: case `/usr/bin/file conftest.$ac_objext` in
7184: *32-bit*)
7185: LD="${LD-ld} -melf32bsmip"
7186: ;;
7187: *N32*)
7188: LD="${LD-ld} -melf32bmipn32"
7189: ;;
7190: *64-bit*)
7191: LD="${LD-ld} -melf64bmip"
7192: ;;
7193: esac
7194: else
7195: case `/usr/bin/file conftest.$ac_objext` in
7196: *32-bit*)
7197: LD="${LD-ld} -32"
7198: ;;
7199: *N32*)
7200: LD="${LD-ld} -n32"
7201: ;;
7202: *64-bit*)
7203: LD="${LD-ld} -64"
7204: ;;
7205: esac
7206: fi
7207: fi
7208: rm -rf conftest*
7209: ;;
7210:
7211: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7212: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7213: # Find out which ABI we are using.
7214: echo 'int i;' > conftest.$ac_ext
7215: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7216: (eval $ac_compile) 2>&5
7217: ac_status=$?
7218: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219: test $ac_status = 0; }; then
7220: case `/usr/bin/file conftest.o` in
7221: *32-bit*)
7222: case $host in
7223: x86_64-*kfreebsd*-gnu)
7224: LD="${LD-ld} -m elf_i386_fbsd"
7225: ;;
7226: x86_64-*linux*)
7227: LD="${LD-ld} -m elf_i386"
7228: ;;
7229: ppc64-*linux*|powerpc64-*linux*)
7230: LD="${LD-ld} -m elf32ppclinux"
7231: ;;
7232: s390x-*linux*)
7233: LD="${LD-ld} -m elf_s390"
7234: ;;
7235: sparc64-*linux*)
7236: LD="${LD-ld} -m elf32_sparc"
7237: ;;
7238: esac
7239: ;;
7240: *64-bit*)
7241: case $host in
7242: x86_64-*kfreebsd*-gnu)
7243: LD="${LD-ld} -m elf_x86_64_fbsd"
7244: ;;
7245: x86_64-*linux*)
7246: LD="${LD-ld} -m elf_x86_64"
7247: ;;
7248: ppc*-*linux*|powerpc*-*linux*)
7249: LD="${LD-ld} -m elf64ppc"
7250: ;;
7251: s390*-*linux*|s390*-*tpf*)
7252: LD="${LD-ld} -m elf64_s390"
7253: ;;
7254: sparc*-*linux*)
7255: LD="${LD-ld} -m elf64_sparc"
7256: ;;
7257: esac
7258: ;;
7259: esac
7260: fi
7261: rm -rf conftest*
7262: ;;
7263:
7264: *-*-sco3.2v5*)
7265: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7266: SAVE_CFLAGS="$CFLAGS"
7267: CFLAGS="$CFLAGS -belf"
7268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7269: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7270: if ${lt_cv_cc_needs_belf+:} false; then :
7271: $as_echo_n "(cached) " >&6
7272: else
7273: ac_ext=c
7274: ac_cpp='$CPP $CPPFLAGS'
7275: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278:
7279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280: /* end confdefs.h. */
7281:
7282: int
7283: main ()
7284: {
7285:
7286: ;
7287: return 0;
7288: }
7289: _ACEOF
7290: if ac_fn_c_try_link "$LINENO"; then :
7291: lt_cv_cc_needs_belf=yes
7292: else
7293: lt_cv_cc_needs_belf=no
7294: fi
7295: rm -f core conftest.err conftest.$ac_objext \
7296: conftest$ac_exeext conftest.$ac_ext
7297: ac_ext=c
7298: ac_cpp='$CPP $CPPFLAGS'
7299: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302:
7303: fi
7304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7305: $as_echo "$lt_cv_cc_needs_belf" >&6; }
7306: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7307: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7308: CFLAGS="$SAVE_CFLAGS"
7309: fi
7310: ;;
7311: sparc*-*solaris*)
7312: # Find out which ABI we are using.
7313: echo 'int i;' > conftest.$ac_ext
7314: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7315: (eval $ac_compile) 2>&5
7316: ac_status=$?
7317: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318: test $ac_status = 0; }; then
7319: case `/usr/bin/file conftest.o` in
7320: *64-bit*)
7321: case $lt_cv_prog_gnu_ld in
7322: yes*) LD="${LD-ld} -m elf64_sparc" ;;
7323: *)
7324: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7325: LD="${LD-ld} -64"
7326: fi
7327: ;;
7328: esac
7329: ;;
7330: esac
7331: fi
7332: rm -rf conftest*
7333: ;;
7334: esac
7335:
7336: need_locks="$enable_libtool_lock"
7337:
7338: if test -n "$ac_tool_prefix"; then
7339: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7340: set dummy ${ac_tool_prefix}mt; ac_word=$2
7341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342: $as_echo_n "checking for $ac_word... " >&6; }
7343: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7344: $as_echo_n "(cached) " >&6
7345: else
7346: if test -n "$MANIFEST_TOOL"; then
7347: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7348: else
7349: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350: for as_dir in $PATH
7351: do
7352: IFS=$as_save_IFS
7353: test -z "$as_dir" && as_dir=.
7354: for ac_exec_ext in '' $ac_executable_extensions; do
7355: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7357: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358: break 2
7359: fi
7360: done
7361: done
7362: IFS=$as_save_IFS
7363:
7364: fi
7365: fi
7366: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7367: if test -n "$MANIFEST_TOOL"; then
7368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7369: $as_echo "$MANIFEST_TOOL" >&6; }
7370: else
7371: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372: $as_echo "no" >&6; }
7373: fi
7374:
7375:
7376: fi
7377: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7378: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7379: # Extract the first word of "mt", so it can be a program name with args.
7380: set dummy mt; ac_word=$2
7381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382: $as_echo_n "checking for $ac_word... " >&6; }
7383: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7384: $as_echo_n "(cached) " >&6
7385: else
7386: if test -n "$ac_ct_MANIFEST_TOOL"; then
7387: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7388: else
7389: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390: for as_dir in $PATH
7391: do
7392: IFS=$as_save_IFS
7393: test -z "$as_dir" && as_dir=.
7394: for ac_exec_ext in '' $ac_executable_extensions; do
7395: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7397: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398: break 2
7399: fi
7400: done
7401: done
7402: IFS=$as_save_IFS
7403:
7404: fi
7405: fi
7406: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7407: if test -n "$ac_ct_MANIFEST_TOOL"; then
7408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7409: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7410: else
7411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412: $as_echo "no" >&6; }
7413: fi
7414:
7415: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7416: MANIFEST_TOOL=":"
7417: else
7418: case $cross_compiling:$ac_tool_warned in
7419: yes:)
7420: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422: ac_tool_warned=yes ;;
7423: esac
7424: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7425: fi
7426: else
7427: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7428: fi
7429:
7430: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7432: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7433: if ${lt_cv_path_mainfest_tool+:} false; then :
7434: $as_echo_n "(cached) " >&6
7435: else
7436: lt_cv_path_mainfest_tool=no
7437: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7438: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7439: cat conftest.err >&5
7440: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7441: lt_cv_path_mainfest_tool=yes
7442: fi
7443: rm -f conftest*
7444: fi
7445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7446: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7447: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7448: MANIFEST_TOOL=:
7449: fi
7450:
7451:
7452:
7453:
7454:
7455:
7456: case $host_os in
7457: rhapsody* | darwin*)
7458: if test -n "$ac_tool_prefix"; then
7459: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7460: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462: $as_echo_n "checking for $ac_word... " >&6; }
7463: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7464: $as_echo_n "(cached) " >&6
7465: else
7466: if test -n "$DSYMUTIL"; then
7467: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7468: else
7469: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470: for as_dir in $PATH
7471: do
7472: IFS=$as_save_IFS
7473: test -z "$as_dir" && as_dir=.
7474: for ac_exec_ext in '' $ac_executable_extensions; do
7475: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7477: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478: break 2
7479: fi
7480: done
7481: done
7482: IFS=$as_save_IFS
7483:
7484: fi
7485: fi
7486: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7487: if test -n "$DSYMUTIL"; then
7488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7489: $as_echo "$DSYMUTIL" >&6; }
7490: else
7491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492: $as_echo "no" >&6; }
7493: fi
7494:
7495:
7496: fi
7497: if test -z "$ac_cv_prog_DSYMUTIL"; then
7498: ac_ct_DSYMUTIL=$DSYMUTIL
7499: # Extract the first word of "dsymutil", so it can be a program name with args.
7500: set dummy dsymutil; ac_word=$2
7501: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502: $as_echo_n "checking for $ac_word... " >&6; }
7503: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7504: $as_echo_n "(cached) " >&6
7505: else
7506: if test -n "$ac_ct_DSYMUTIL"; then
7507: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7508: else
7509: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510: for as_dir in $PATH
7511: do
7512: IFS=$as_save_IFS
7513: test -z "$as_dir" && as_dir=.
7514: for ac_exec_ext in '' $ac_executable_extensions; do
7515: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7517: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518: break 2
7519: fi
7520: done
7521: done
7522: IFS=$as_save_IFS
7523:
7524: fi
7525: fi
7526: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7527: if test -n "$ac_ct_DSYMUTIL"; then
7528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7529: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7530: else
7531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532: $as_echo "no" >&6; }
7533: fi
7534:
7535: if test "x$ac_ct_DSYMUTIL" = x; then
7536: DSYMUTIL=":"
7537: else
7538: case $cross_compiling:$ac_tool_warned in
7539: yes:)
7540: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542: ac_tool_warned=yes ;;
7543: esac
7544: DSYMUTIL=$ac_ct_DSYMUTIL
7545: fi
7546: else
7547: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7548: fi
7549:
7550: if test -n "$ac_tool_prefix"; then
7551: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7552: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554: $as_echo_n "checking for $ac_word... " >&6; }
7555: if ${ac_cv_prog_NMEDIT+:} false; then :
7556: $as_echo_n "(cached) " >&6
7557: else
7558: if test -n "$NMEDIT"; then
7559: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7560: else
7561: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562: for as_dir in $PATH
7563: do
7564: IFS=$as_save_IFS
7565: test -z "$as_dir" && as_dir=.
7566: for ac_exec_ext in '' $ac_executable_extensions; do
7567: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7569: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570: break 2
7571: fi
7572: done
7573: done
7574: IFS=$as_save_IFS
7575:
7576: fi
7577: fi
7578: NMEDIT=$ac_cv_prog_NMEDIT
7579: if test -n "$NMEDIT"; then
7580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7581: $as_echo "$NMEDIT" >&6; }
7582: else
7583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584: $as_echo "no" >&6; }
7585: fi
7586:
7587:
7588: fi
7589: if test -z "$ac_cv_prog_NMEDIT"; then
7590: ac_ct_NMEDIT=$NMEDIT
7591: # Extract the first word of "nmedit", so it can be a program name with args.
7592: set dummy nmedit; ac_word=$2
7593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594: $as_echo_n "checking for $ac_word... " >&6; }
7595: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7596: $as_echo_n "(cached) " >&6
7597: else
7598: if test -n "$ac_ct_NMEDIT"; then
7599: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7600: else
7601: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602: for as_dir in $PATH
7603: do
7604: IFS=$as_save_IFS
7605: test -z "$as_dir" && as_dir=.
7606: for ac_exec_ext in '' $ac_executable_extensions; do
7607: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608: ac_cv_prog_ac_ct_NMEDIT="nmedit"
7609: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610: break 2
7611: fi
7612: done
7613: done
7614: IFS=$as_save_IFS
7615:
7616: fi
7617: fi
7618: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7619: if test -n "$ac_ct_NMEDIT"; then
7620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7621: $as_echo "$ac_ct_NMEDIT" >&6; }
7622: else
7623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624: $as_echo "no" >&6; }
7625: fi
7626:
7627: if test "x$ac_ct_NMEDIT" = x; then
7628: NMEDIT=":"
7629: else
7630: case $cross_compiling:$ac_tool_warned in
7631: yes:)
7632: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634: ac_tool_warned=yes ;;
7635: esac
7636: NMEDIT=$ac_ct_NMEDIT
7637: fi
7638: else
7639: NMEDIT="$ac_cv_prog_NMEDIT"
7640: fi
7641:
7642: if test -n "$ac_tool_prefix"; then
7643: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7644: set dummy ${ac_tool_prefix}lipo; ac_word=$2
7645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646: $as_echo_n "checking for $ac_word... " >&6; }
7647: if ${ac_cv_prog_LIPO+:} false; then :
7648: $as_echo_n "(cached) " >&6
7649: else
7650: if test -n "$LIPO"; then
7651: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7652: else
7653: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654: for as_dir in $PATH
7655: do
7656: IFS=$as_save_IFS
7657: test -z "$as_dir" && as_dir=.
7658: for ac_exec_ext in '' $ac_executable_extensions; do
7659: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7661: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662: break 2
7663: fi
7664: done
7665: done
7666: IFS=$as_save_IFS
7667:
7668: fi
7669: fi
7670: LIPO=$ac_cv_prog_LIPO
7671: if test -n "$LIPO"; then
7672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7673: $as_echo "$LIPO" >&6; }
7674: else
7675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676: $as_echo "no" >&6; }
7677: fi
7678:
7679:
7680: fi
7681: if test -z "$ac_cv_prog_LIPO"; then
7682: ac_ct_LIPO=$LIPO
7683: # Extract the first word of "lipo", so it can be a program name with args.
7684: set dummy lipo; ac_word=$2
7685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686: $as_echo_n "checking for $ac_word... " >&6; }
7687: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7688: $as_echo_n "(cached) " >&6
7689: else
7690: if test -n "$ac_ct_LIPO"; then
7691: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7692: else
7693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694: for as_dir in $PATH
7695: do
7696: IFS=$as_save_IFS
7697: test -z "$as_dir" && as_dir=.
7698: for ac_exec_ext in '' $ac_executable_extensions; do
7699: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700: ac_cv_prog_ac_ct_LIPO="lipo"
7701: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702: break 2
7703: fi
7704: done
7705: done
7706: IFS=$as_save_IFS
7707:
7708: fi
7709: fi
7710: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7711: if test -n "$ac_ct_LIPO"; then
7712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7713: $as_echo "$ac_ct_LIPO" >&6; }
7714: else
7715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716: $as_echo "no" >&6; }
7717: fi
7718:
7719: if test "x$ac_ct_LIPO" = x; then
7720: LIPO=":"
7721: else
7722: case $cross_compiling:$ac_tool_warned in
7723: yes:)
7724: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7725: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726: ac_tool_warned=yes ;;
7727: esac
7728: LIPO=$ac_ct_LIPO
7729: fi
7730: else
7731: LIPO="$ac_cv_prog_LIPO"
7732: fi
7733:
7734: if test -n "$ac_tool_prefix"; then
7735: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7736: set dummy ${ac_tool_prefix}otool; ac_word=$2
7737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738: $as_echo_n "checking for $ac_word... " >&6; }
7739: if ${ac_cv_prog_OTOOL+:} false; then :
7740: $as_echo_n "(cached) " >&6
7741: else
7742: if test -n "$OTOOL"; then
7743: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7744: else
7745: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746: for as_dir in $PATH
7747: do
7748: IFS=$as_save_IFS
7749: test -z "$as_dir" && as_dir=.
7750: for ac_exec_ext in '' $ac_executable_extensions; do
7751: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7753: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754: break 2
7755: fi
7756: done
7757: done
7758: IFS=$as_save_IFS
7759:
7760: fi
7761: fi
7762: OTOOL=$ac_cv_prog_OTOOL
7763: if test -n "$OTOOL"; then
7764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7765: $as_echo "$OTOOL" >&6; }
7766: else
7767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768: $as_echo "no" >&6; }
7769: fi
7770:
7771:
7772: fi
7773: if test -z "$ac_cv_prog_OTOOL"; then
7774: ac_ct_OTOOL=$OTOOL
7775: # Extract the first word of "otool", so it can be a program name with args.
7776: set dummy otool; ac_word=$2
7777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778: $as_echo_n "checking for $ac_word... " >&6; }
7779: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7780: $as_echo_n "(cached) " >&6
7781: else
7782: if test -n "$ac_ct_OTOOL"; then
7783: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7784: else
7785: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786: for as_dir in $PATH
7787: do
7788: IFS=$as_save_IFS
7789: test -z "$as_dir" && as_dir=.
7790: for ac_exec_ext in '' $ac_executable_extensions; do
7791: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792: ac_cv_prog_ac_ct_OTOOL="otool"
7793: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794: break 2
7795: fi
7796: done
7797: done
7798: IFS=$as_save_IFS
7799:
7800: fi
7801: fi
7802: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7803: if test -n "$ac_ct_OTOOL"; then
7804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7805: $as_echo "$ac_ct_OTOOL" >&6; }
7806: else
7807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808: $as_echo "no" >&6; }
7809: fi
7810:
7811: if test "x$ac_ct_OTOOL" = x; then
7812: OTOOL=":"
7813: else
7814: case $cross_compiling:$ac_tool_warned in
7815: yes:)
7816: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818: ac_tool_warned=yes ;;
7819: esac
7820: OTOOL=$ac_ct_OTOOL
7821: fi
7822: else
7823: OTOOL="$ac_cv_prog_OTOOL"
7824: fi
7825:
7826: if test -n "$ac_tool_prefix"; then
7827: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7828: set dummy ${ac_tool_prefix}otool64; ac_word=$2
7829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830: $as_echo_n "checking for $ac_word... " >&6; }
7831: if ${ac_cv_prog_OTOOL64+:} false; then :
7832: $as_echo_n "(cached) " >&6
7833: else
7834: if test -n "$OTOOL64"; then
7835: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7836: else
7837: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838: for as_dir in $PATH
7839: do
7840: IFS=$as_save_IFS
7841: test -z "$as_dir" && as_dir=.
7842: for ac_exec_ext in '' $ac_executable_extensions; do
7843: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7845: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846: break 2
7847: fi
7848: done
7849: done
7850: IFS=$as_save_IFS
7851:
7852: fi
7853: fi
7854: OTOOL64=$ac_cv_prog_OTOOL64
7855: if test -n "$OTOOL64"; then
7856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7857: $as_echo "$OTOOL64" >&6; }
7858: else
7859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860: $as_echo "no" >&6; }
7861: fi
7862:
7863:
7864: fi
7865: if test -z "$ac_cv_prog_OTOOL64"; then
7866: ac_ct_OTOOL64=$OTOOL64
7867: # Extract the first word of "otool64", so it can be a program name with args.
7868: set dummy otool64; ac_word=$2
7869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870: $as_echo_n "checking for $ac_word... " >&6; }
7871: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7872: $as_echo_n "(cached) " >&6
7873: else
7874: if test -n "$ac_ct_OTOOL64"; then
7875: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7876: else
7877: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878: for as_dir in $PATH
7879: do
7880: IFS=$as_save_IFS
7881: test -z "$as_dir" && as_dir=.
7882: for ac_exec_ext in '' $ac_executable_extensions; do
7883: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884: ac_cv_prog_ac_ct_OTOOL64="otool64"
7885: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886: break 2
7887: fi
7888: done
7889: done
7890: IFS=$as_save_IFS
7891:
7892: fi
7893: fi
7894: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7895: if test -n "$ac_ct_OTOOL64"; then
7896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7897: $as_echo "$ac_ct_OTOOL64" >&6; }
7898: else
7899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900: $as_echo "no" >&6; }
7901: fi
7902:
7903: if test "x$ac_ct_OTOOL64" = x; then
7904: OTOOL64=":"
7905: else
7906: case $cross_compiling:$ac_tool_warned in
7907: yes:)
7908: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910: ac_tool_warned=yes ;;
7911: esac
7912: OTOOL64=$ac_ct_OTOOL64
7913: fi
7914: else
7915: OTOOL64="$ac_cv_prog_OTOOL64"
7916: fi
7917:
7918:
7919:
7920:
7921:
7922:
7923:
7924:
7925:
7926:
7927:
7928:
7929:
7930:
7931:
7932:
7933:
7934:
7935:
7936:
7937:
7938:
7939:
7940:
7941:
7942:
7943:
7944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7945: $as_echo_n "checking for -single_module linker flag... " >&6; }
7946: if ${lt_cv_apple_cc_single_mod+:} false; then :
7947: $as_echo_n "(cached) " >&6
7948: else
7949: lt_cv_apple_cc_single_mod=no
7950: if test -z "${LT_MULTI_MODULE}"; then
7951: # By default we will add the -single_module flag. You can override
7952: # by either setting the environment variable LT_MULTI_MODULE
7953: # non-empty at configure time, or by adding -multi_module to the
7954: # link flags.
7955: rm -rf libconftest.dylib*
7956: echo "int foo(void){return 1;}" > conftest.c
7957: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7958: -dynamiclib -Wl,-single_module conftest.c" >&5
7959: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7960: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7961: _lt_result=$?
7962: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7963: lt_cv_apple_cc_single_mod=yes
7964: else
7965: cat conftest.err >&5
7966: fi
7967: rm -rf libconftest.dylib*
7968: rm -f conftest.*
7969: fi
7970: fi
7971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7972: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7974: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7975: if ${lt_cv_ld_exported_symbols_list+:} false; then :
7976: $as_echo_n "(cached) " >&6
7977: else
7978: lt_cv_ld_exported_symbols_list=no
7979: save_LDFLAGS=$LDFLAGS
7980: echo "_main" > conftest.sym
7981: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983: /* end confdefs.h. */
7984:
7985: int
7986: main ()
7987: {
7988:
7989: ;
7990: return 0;
7991: }
7992: _ACEOF
7993: if ac_fn_c_try_link "$LINENO"; then :
7994: lt_cv_ld_exported_symbols_list=yes
7995: else
7996: lt_cv_ld_exported_symbols_list=no
7997: fi
7998: rm -f core conftest.err conftest.$ac_objext \
7999: conftest$ac_exeext conftest.$ac_ext
8000: LDFLAGS="$save_LDFLAGS"
8001:
8002: fi
8003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8004: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8006: $as_echo_n "checking for -force_load linker flag... " >&6; }
8007: if ${lt_cv_ld_force_load+:} false; then :
8008: $as_echo_n "(cached) " >&6
8009: else
8010: lt_cv_ld_force_load=no
8011: cat > conftest.c << _LT_EOF
8012: int forced_loaded() { return 2;}
8013: _LT_EOF
8014: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8015: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8016: echo "$AR cru libconftest.a conftest.o" >&5
8017: $AR cru libconftest.a conftest.o 2>&5
8018: echo "$RANLIB libconftest.a" >&5
8019: $RANLIB libconftest.a 2>&5
8020: cat > conftest.c << _LT_EOF
8021: int main() { return 0;}
8022: _LT_EOF
8023: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8024: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8025: _lt_result=$?
8026: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8027: lt_cv_ld_force_load=yes
8028: else
8029: cat conftest.err >&5
8030: fi
8031: rm -f conftest.err libconftest.a conftest conftest.c
8032: rm -rf conftest.dSYM
8033:
8034: fi
8035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8036: $as_echo "$lt_cv_ld_force_load" >&6; }
8037: case $host_os in
8038: rhapsody* | darwin1.[012])
8039: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8040: darwin1.*)
8041: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8042: darwin*) # darwin 5.x on
8043: # if running on 10.5 or later, the deployment target defaults
8044: # to the OS version, if on x86, and 10.4, the deployment
8045: # target defaults to 10.4. Don't you love it?
8046: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8047: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8048: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8049: 10.[012]*)
8050: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8051: 10.*)
8052: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8053: esac
8054: ;;
8055: esac
8056: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8057: _lt_dar_single_mod='$single_module'
8058: fi
8059: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8060: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8061: else
8062: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8063: fi
8064: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8065: _lt_dsymutil='~$DSYMUTIL $lib || :'
8066: else
8067: _lt_dsymutil=
8068: fi
8069: ;;
8070: esac
8071:
8072: for ac_header in dlfcn.h
8073: do :
8074: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8075: "
8076: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8077: cat >>confdefs.h <<_ACEOF
8078: #define HAVE_DLFCN_H 1
8079: _ACEOF
8080:
8081: fi
8082:
8083: done
8084:
8085:
8086:
8087:
8088:
8089: # Set options
8090:
8091:
8092:
8093: enable_dlopen=no
8094:
8095:
8096: enable_win32_dll=no
8097:
8098:
8099: # Check whether --enable-shared was given.
8100: if test "${enable_shared+set}" = set; then :
8101: enableval=$enable_shared; p=${PACKAGE-default}
8102: case $enableval in
8103: yes) enable_shared=yes ;;
8104: no) enable_shared=no ;;
8105: *)
8106: enable_shared=no
8107: # Look at the argument we got. We use all the common list separators.
8108: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8109: for pkg in $enableval; do
8110: IFS="$lt_save_ifs"
8111: if test "X$pkg" = "X$p"; then
8112: enable_shared=yes
8113: fi
8114: done
8115: IFS="$lt_save_ifs"
8116: ;;
8117: esac
8118: else
8119: enable_shared=yes
8120: fi
8121:
8122:
8123:
8124:
8125:
8126:
8127:
8128:
8129:
8130: # Check whether --enable-static was given.
8131: if test "${enable_static+set}" = set; then :
8132: enableval=$enable_static; p=${PACKAGE-default}
8133: case $enableval in
8134: yes) enable_static=yes ;;
8135: no) enable_static=no ;;
8136: *)
8137: enable_static=no
8138: # Look at the argument we got. We use all the common list separators.
8139: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8140: for pkg in $enableval; do
8141: IFS="$lt_save_ifs"
8142: if test "X$pkg" = "X$p"; then
8143: enable_static=yes
8144: fi
8145: done
8146: IFS="$lt_save_ifs"
8147: ;;
8148: esac
8149: else
8150: enable_static=yes
8151: fi
8152:
8153:
8154:
8155:
8156:
8157:
8158:
8159:
8160:
8161:
8162: # Check whether --with-pic was given.
8163: if test "${with_pic+set}" = set; then :
8164: withval=$with_pic; pic_mode="$withval"
8165: else
8166: pic_mode=default
8167: fi
8168:
8169:
8170: test -z "$pic_mode" && pic_mode=default
8171:
8172:
8173:
8174:
8175:
8176:
8177:
8178: # Check whether --enable-fast-install was given.
8179: if test "${enable_fast_install+set}" = set; then :
8180: enableval=$enable_fast_install; p=${PACKAGE-default}
8181: case $enableval in
8182: yes) enable_fast_install=yes ;;
8183: no) enable_fast_install=no ;;
8184: *)
8185: enable_fast_install=no
8186: # Look at the argument we got. We use all the common list separators.
8187: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8188: for pkg in $enableval; do
8189: IFS="$lt_save_ifs"
8190: if test "X$pkg" = "X$p"; then
8191: enable_fast_install=yes
8192: fi
8193: done
8194: IFS="$lt_save_ifs"
8195: ;;
8196: esac
8197: else
8198: enable_fast_install=yes
8199: fi
8200:
8201:
8202:
8203:
8204:
8205:
8206:
8207:
8208:
8209:
8210:
8211: # This can be used to rebuild libtool when needed
8212: LIBTOOL_DEPS="$ltmain"
8213:
8214: # Always use our own libtool.
8215: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8216:
8217:
8218:
8219:
8220:
8221:
8222:
8223:
8224:
8225:
8226:
8227:
8228:
8229:
8230:
8231:
8232:
8233:
8234:
8235:
8236:
8237:
8238:
8239:
8240:
8241:
8242: test -z "$LN_S" && LN_S="ln -s"
8243:
8244:
8245:
8246:
8247:
8248:
8249:
8250:
8251:
8252:
8253:
8254:
8255:
8256:
8257: if test -n "${ZSH_VERSION+set}" ; then
8258: setopt NO_GLOB_SUBST
8259: fi
8260:
8261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8262: $as_echo_n "checking for objdir... " >&6; }
8263: if ${lt_cv_objdir+:} false; then :
8264: $as_echo_n "(cached) " >&6
8265: else
8266: rm -f .libs 2>/dev/null
8267: mkdir .libs 2>/dev/null
8268: if test -d .libs; then
8269: lt_cv_objdir=.libs
8270: else
8271: # MS-DOS does not allow filenames that begin with a dot.
8272: lt_cv_objdir=_libs
8273: fi
8274: rmdir .libs 2>/dev/null
8275: fi
8276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8277: $as_echo "$lt_cv_objdir" >&6; }
8278: objdir=$lt_cv_objdir
8279:
8280:
8281:
8282:
8283:
8284: cat >>confdefs.h <<_ACEOF
8285: #define LT_OBJDIR "$lt_cv_objdir/"
8286: _ACEOF
8287:
8288:
8289:
8290:
8291: case $host_os in
8292: aix3*)
8293: # AIX sometimes has problems with the GCC collect2 program. For some
8294: # reason, if we set the COLLECT_NAMES environment variable, the problems
8295: # vanish in a puff of smoke.
8296: if test "X${COLLECT_NAMES+set}" != Xset; then
8297: COLLECT_NAMES=
8298: export COLLECT_NAMES
8299: fi
8300: ;;
8301: esac
8302:
8303: # Global variables:
8304: ofile=libtool
8305: can_build_shared=yes
8306:
8307: # All known linkers require a `.a' archive for static linking (except MSVC,
8308: # which needs '.lib').
8309: libext=a
8310:
8311: with_gnu_ld="$lt_cv_prog_gnu_ld"
8312:
8313: old_CC="$CC"
8314: old_CFLAGS="$CFLAGS"
8315:
8316: # Set sane defaults for various variables
8317: test -z "$CC" && CC=cc
8318: test -z "$LTCC" && LTCC=$CC
8319: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8320: test -z "$LD" && LD=ld
8321: test -z "$ac_objext" && ac_objext=o
8322:
8323: for cc_temp in $compiler""; do
8324: case $cc_temp in
8325: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8326: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8327: \-*) ;;
8328: *) break;;
8329: esac
8330: done
8331: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8332:
8333:
8334: # Only perform the check for file, if the check method requires it
8335: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8336: case $deplibs_check_method in
8337: file_magic*)
8338: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8340: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8341: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8342: $as_echo_n "(cached) " >&6
8343: else
8344: case $MAGIC_CMD in
8345: [\\/*] | ?:[\\/]*)
8346: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8347: ;;
8348: *)
8349: lt_save_MAGIC_CMD="$MAGIC_CMD"
8350: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8351: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8352: for ac_dir in $ac_dummy; do
8353: IFS="$lt_save_ifs"
8354: test -z "$ac_dir" && ac_dir=.
8355: if test -f $ac_dir/${ac_tool_prefix}file; then
8356: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8357: if test -n "$file_magic_test_file"; then
8358: case $deplibs_check_method in
8359: "file_magic "*)
8360: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8361: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8363: $EGREP "$file_magic_regex" > /dev/null; then
8364: :
8365: else
8366: cat <<_LT_EOF 1>&2
8367:
8368: *** Warning: the command libtool uses to detect shared libraries,
8369: *** $file_magic_cmd, produces output that libtool cannot recognize.
8370: *** The result is that libtool may fail to recognize shared libraries
8371: *** as such. This will affect the creation of libtool libraries that
8372: *** depend on shared libraries, but programs linked with such libtool
8373: *** libraries will work regardless of this problem. Nevertheless, you
8374: *** may want to report the problem to your system manager and/or to
8375: *** bug-libtool@gnu.org
8376:
8377: _LT_EOF
8378: fi ;;
8379: esac
8380: fi
8381: break
8382: fi
8383: done
8384: IFS="$lt_save_ifs"
8385: MAGIC_CMD="$lt_save_MAGIC_CMD"
8386: ;;
8387: esac
8388: fi
8389:
8390: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8391: if test -n "$MAGIC_CMD"; then
8392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8393: $as_echo "$MAGIC_CMD" >&6; }
8394: else
8395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396: $as_echo "no" >&6; }
8397: fi
8398:
8399:
8400:
8401:
8402:
8403: if test -z "$lt_cv_path_MAGIC_CMD"; then
8404: if test -n "$ac_tool_prefix"; then
8405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8406: $as_echo_n "checking for file... " >&6; }
8407: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8408: $as_echo_n "(cached) " >&6
8409: else
8410: case $MAGIC_CMD in
8411: [\\/*] | ?:[\\/]*)
8412: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8413: ;;
8414: *)
8415: lt_save_MAGIC_CMD="$MAGIC_CMD"
8416: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8417: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8418: for ac_dir in $ac_dummy; do
8419: IFS="$lt_save_ifs"
8420: test -z "$ac_dir" && ac_dir=.
8421: if test -f $ac_dir/file; then
8422: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8423: if test -n "$file_magic_test_file"; then
8424: case $deplibs_check_method in
8425: "file_magic "*)
8426: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8427: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8429: $EGREP "$file_magic_regex" > /dev/null; then
8430: :
8431: else
8432: cat <<_LT_EOF 1>&2
8433:
8434: *** Warning: the command libtool uses to detect shared libraries,
8435: *** $file_magic_cmd, produces output that libtool cannot recognize.
8436: *** The result is that libtool may fail to recognize shared libraries
8437: *** as such. This will affect the creation of libtool libraries that
8438: *** depend on shared libraries, but programs linked with such libtool
8439: *** libraries will work regardless of this problem. Nevertheless, you
8440: *** may want to report the problem to your system manager and/or to
8441: *** bug-libtool@gnu.org
8442:
8443: _LT_EOF
8444: fi ;;
8445: esac
8446: fi
8447: break
8448: fi
8449: done
8450: IFS="$lt_save_ifs"
8451: MAGIC_CMD="$lt_save_MAGIC_CMD"
8452: ;;
8453: esac
8454: fi
8455:
8456: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8457: if test -n "$MAGIC_CMD"; then
8458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8459: $as_echo "$MAGIC_CMD" >&6; }
8460: else
8461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462: $as_echo "no" >&6; }
8463: fi
8464:
8465:
8466: else
8467: MAGIC_CMD=:
8468: fi
8469: fi
8470:
8471: fi
8472: ;;
8473: esac
8474:
8475: # Use C for the default configuration in the libtool script
8476:
8477: lt_save_CC="$CC"
8478: ac_ext=c
8479: ac_cpp='$CPP $CPPFLAGS'
8480: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8481: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8482: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483:
8484:
8485: # Source file extension for C test sources.
8486: ac_ext=c
8487:
8488: # Object file extension for compiled C test sources.
8489: objext=o
8490: objext=$objext
8491:
8492: # Code to be used in simple compile tests
8493: lt_simple_compile_test_code="int some_variable = 0;"
8494:
8495: # Code to be used in simple link tests
8496: lt_simple_link_test_code='int main(){return(0);}'
8497:
8498:
8499:
8500:
8501:
8502:
8503:
8504: # If no C compiler was specified, use CC.
8505: LTCC=${LTCC-"$CC"}
8506:
8507: # If no C compiler flags were specified, use CFLAGS.
8508: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8509:
8510: # Allow CC to be a program name with arguments.
8511: compiler=$CC
8512:
8513: # Save the default compiler, since it gets overwritten when the other
8514: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8515: compiler_DEFAULT=$CC
8516:
8517: # save warnings/boilerplate of simple test code
8518: ac_outfile=conftest.$ac_objext
8519: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8520: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521: _lt_compiler_boilerplate=`cat conftest.err`
8522: $RM conftest*
8523:
8524: ac_outfile=conftest.$ac_objext
8525: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8526: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8527: _lt_linker_boilerplate=`cat conftest.err`
8528: $RM -r conftest*
8529:
8530:
8531: if test -n "$compiler"; then
8532:
8533: lt_prog_compiler_no_builtin_flag=
8534:
8535: if test "$GCC" = yes; then
8536: case $cc_basename in
8537: nvcc*)
8538: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8539: *)
8540: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8541: esac
8542:
8543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8544: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8545: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8546: $as_echo_n "(cached) " >&6
8547: else
8548: lt_cv_prog_compiler_rtti_exceptions=no
8549: ac_outfile=conftest.$ac_objext
8550: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551: lt_compiler_flag="-fno-rtti -fno-exceptions"
8552: # Insert the option either (1) after the last *FLAGS variable, or
8553: # (2) before a word containing "conftest.", or (3) at the end.
8554: # Note that $ac_compile itself does not contain backslashes and begins
8555: # with a dollar sign (not a hyphen), so the echo should work correctly.
8556: # The option is referenced via a variable to avoid confusing sed.
8557: lt_compile=`echo "$ac_compile" | $SED \
8558: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560: -e 's:$: $lt_compiler_flag:'`
8561: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562: (eval "$lt_compile" 2>conftest.err)
8563: ac_status=$?
8564: cat conftest.err >&5
8565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566: if (exit $ac_status) && test -s "$ac_outfile"; then
8567: # The compiler can only warn and ignore the option if not recognized
8568: # So say no if there are warnings other than the usual output.
8569: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8570: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8572: lt_cv_prog_compiler_rtti_exceptions=yes
8573: fi
8574: fi
8575: $RM conftest*
8576:
8577: fi
8578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8579: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8580:
8581: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8582: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8583: else
8584: :
8585: fi
8586:
8587: fi
8588:
8589:
8590:
8591:
8592:
8593:
8594: lt_prog_compiler_wl=
8595: lt_prog_compiler_pic=
8596: lt_prog_compiler_static=
8597:
8598:
8599: if test "$GCC" = yes; then
8600: lt_prog_compiler_wl='-Wl,'
8601: lt_prog_compiler_static='-static'
8602:
8603: case $host_os in
8604: aix*)
8605: # All AIX code is PIC.
8606: if test "$host_cpu" = ia64; then
8607: # AIX 5 now supports IA64 processor
8608: lt_prog_compiler_static='-Bstatic'
8609: fi
8610: ;;
8611:
8612: amigaos*)
8613: case $host_cpu in
8614: powerpc)
8615: # see comment about AmigaOS4 .so support
8616: lt_prog_compiler_pic='-fPIC'
8617: ;;
8618: m68k)
8619: # FIXME: we need at least 68020 code to build shared libraries, but
8620: # adding the `-m68020' flag to GCC prevents building anything better,
8621: # like `-m68040'.
8622: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8623: ;;
8624: esac
8625: ;;
8626:
8627: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8628: # PIC is the default for these OSes.
8629: ;;
8630:
8631: mingw* | cygwin* | pw32* | os2* | cegcc*)
8632: # This hack is so that the source file can tell whether it is being
8633: # built for inclusion in a dll (and should export symbols for example).
8634: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8635: # (--disable-auto-import) libraries
8636: lt_prog_compiler_pic='-DDLL_EXPORT'
8637: ;;
8638:
8639: darwin* | rhapsody*)
8640: # PIC is the default on this platform
8641: # Common symbols not allowed in MH_DYLIB files
8642: lt_prog_compiler_pic='-fno-common'
8643: ;;
8644:
8645: haiku*)
8646: # PIC is the default for Haiku.
8647: # The "-static" flag exists, but is broken.
8648: lt_prog_compiler_static=
8649: ;;
8650:
8651: hpux*)
8652: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8653: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8654: # sets the default TLS model and affects inlining.
8655: case $host_cpu in
8656: hppa*64*)
8657: # +Z the default
8658: ;;
8659: *)
8660: lt_prog_compiler_pic='-fPIC'
8661: ;;
8662: esac
8663: ;;
8664:
8665: interix[3-9]*)
8666: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8667: # Instead, we relocate shared libraries at runtime.
8668: ;;
8669:
8670: msdosdjgpp*)
8671: # Just because we use GCC doesn't mean we suddenly get shared libraries
8672: # on systems that don't support them.
8673: lt_prog_compiler_can_build_shared=no
8674: enable_shared=no
8675: ;;
8676:
8677: *nto* | *qnx*)
8678: # QNX uses GNU C++, but need to define -shared option too, otherwise
8679: # it will coredump.
8680: lt_prog_compiler_pic='-fPIC -shared'
8681: ;;
8682:
8683: sysv4*MP*)
8684: if test -d /usr/nec; then
8685: lt_prog_compiler_pic=-Kconform_pic
8686: fi
8687: ;;
8688:
8689: *)
8690: lt_prog_compiler_pic='-fPIC'
8691: ;;
8692: esac
8693:
8694: case $cc_basename in
8695: nvcc*) # Cuda Compiler Driver 2.2
8696: lt_prog_compiler_wl='-Xlinker '
8697: lt_prog_compiler_pic='-Xcompiler -fPIC'
8698: ;;
8699: esac
8700: else
8701: # PORTME Check for flag to pass linker flags through the system compiler.
8702: case $host_os in
8703: aix*)
8704: lt_prog_compiler_wl='-Wl,'
8705: if test "$host_cpu" = ia64; then
8706: # AIX 5 now supports IA64 processor
8707: lt_prog_compiler_static='-Bstatic'
8708: else
8709: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8710: fi
8711: ;;
8712:
8713: mingw* | cygwin* | pw32* | os2* | cegcc*)
8714: # This hack is so that the source file can tell whether it is being
8715: # built for inclusion in a dll (and should export symbols for example).
8716: lt_prog_compiler_pic='-DDLL_EXPORT'
8717: ;;
8718:
8719: hpux9* | hpux10* | hpux11*)
8720: lt_prog_compiler_wl='-Wl,'
8721: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8722: # not for PA HP-UX.
8723: case $host_cpu in
8724: hppa*64*|ia64*)
8725: # +Z the default
8726: ;;
8727: *)
8728: lt_prog_compiler_pic='+Z'
8729: ;;
8730: esac
8731: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8732: lt_prog_compiler_static='${wl}-a ${wl}archive'
8733: ;;
8734:
8735: irix5* | irix6* | nonstopux*)
8736: lt_prog_compiler_wl='-Wl,'
8737: # PIC (with -KPIC) is the default.
8738: lt_prog_compiler_static='-non_shared'
8739: ;;
8740:
8741: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8742: case $cc_basename in
8743: # old Intel for x86_64 which still supported -KPIC.
8744: ecc*)
8745: lt_prog_compiler_wl='-Wl,'
8746: lt_prog_compiler_pic='-KPIC'
8747: lt_prog_compiler_static='-static'
8748: ;;
8749: # icc used to be incompatible with GCC.
8750: # ICC 10 doesn't accept -KPIC any more.
8751: icc* | ifort*)
8752: lt_prog_compiler_wl='-Wl,'
8753: lt_prog_compiler_pic='-fPIC'
8754: lt_prog_compiler_static='-static'
8755: ;;
8756: # Lahey Fortran 8.1.
8757: lf95*)
8758: lt_prog_compiler_wl='-Wl,'
8759: lt_prog_compiler_pic='--shared'
8760: lt_prog_compiler_static='--static'
8761: ;;
8762: nagfor*)
8763: # NAG Fortran compiler
8764: lt_prog_compiler_wl='-Wl,-Wl,,'
8765: lt_prog_compiler_pic='-PIC'
8766: lt_prog_compiler_static='-Bstatic'
8767: ;;
8768: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8769: # Portland Group compilers (*not* the Pentium gcc compiler,
8770: # which looks to be a dead project)
8771: lt_prog_compiler_wl='-Wl,'
8772: lt_prog_compiler_pic='-fpic'
8773: lt_prog_compiler_static='-Bstatic'
8774: ;;
8775: ccc*)
8776: lt_prog_compiler_wl='-Wl,'
8777: # All Alpha code is PIC.
8778: lt_prog_compiler_static='-non_shared'
8779: ;;
8780: xl* | bgxl* | bgf* | mpixl*)
8781: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8782: lt_prog_compiler_wl='-Wl,'
8783: lt_prog_compiler_pic='-qpic'
8784: lt_prog_compiler_static='-qstaticlink'
8785: ;;
8786: *)
8787: case `$CC -V 2>&1 | sed 5q` in
8788: *Sun\ F* | *Sun*Fortran*)
8789: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8790: lt_prog_compiler_pic='-KPIC'
8791: lt_prog_compiler_static='-Bstatic'
8792: lt_prog_compiler_wl=''
8793: ;;
8794: *Sun\ C*)
8795: # Sun C 5.9
8796: lt_prog_compiler_pic='-KPIC'
8797: lt_prog_compiler_static='-Bstatic'
8798: lt_prog_compiler_wl='-Wl,'
8799: ;;
8800: esac
8801: ;;
8802: esac
8803: ;;
8804:
8805: newsos6)
8806: lt_prog_compiler_pic='-KPIC'
8807: lt_prog_compiler_static='-Bstatic'
8808: ;;
8809:
8810: *nto* | *qnx*)
8811: # QNX uses GNU C++, but need to define -shared option too, otherwise
8812: # it will coredump.
8813: lt_prog_compiler_pic='-fPIC -shared'
8814: ;;
8815:
8816: osf3* | osf4* | osf5*)
8817: lt_prog_compiler_wl='-Wl,'
8818: # All OSF/1 code is PIC.
8819: lt_prog_compiler_static='-non_shared'
8820: ;;
8821:
8822: rdos*)
8823: lt_prog_compiler_static='-non_shared'
8824: ;;
8825:
8826: solaris*)
8827: lt_prog_compiler_pic='-KPIC'
8828: lt_prog_compiler_static='-Bstatic'
8829: case $cc_basename in
8830: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8831: lt_prog_compiler_wl='-Qoption ld ';;
8832: *)
8833: lt_prog_compiler_wl='-Wl,';;
8834: esac
8835: ;;
8836:
8837: sunos4*)
8838: lt_prog_compiler_wl='-Qoption ld '
8839: lt_prog_compiler_pic='-PIC'
8840: lt_prog_compiler_static='-Bstatic'
8841: ;;
8842:
8843: sysv4 | sysv4.2uw2* | sysv4.3*)
8844: lt_prog_compiler_wl='-Wl,'
8845: lt_prog_compiler_pic='-KPIC'
8846: lt_prog_compiler_static='-Bstatic'
8847: ;;
8848:
8849: sysv4*MP*)
8850: if test -d /usr/nec ;then
8851: lt_prog_compiler_pic='-Kconform_pic'
8852: lt_prog_compiler_static='-Bstatic'
8853: fi
8854: ;;
8855:
8856: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8857: lt_prog_compiler_wl='-Wl,'
8858: lt_prog_compiler_pic='-KPIC'
8859: lt_prog_compiler_static='-Bstatic'
8860: ;;
8861:
8862: unicos*)
8863: lt_prog_compiler_wl='-Wl,'
8864: lt_prog_compiler_can_build_shared=no
8865: ;;
8866:
8867: uts4*)
8868: lt_prog_compiler_pic='-pic'
8869: lt_prog_compiler_static='-Bstatic'
8870: ;;
8871:
8872: *)
8873: lt_prog_compiler_can_build_shared=no
8874: ;;
8875: esac
8876: fi
8877:
8878: case $host_os in
8879: # For platforms which do not support PIC, -DPIC is meaningless:
8880: *djgpp*)
8881: lt_prog_compiler_pic=
8882: ;;
8883: *)
8884: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8885: ;;
8886: esac
8887:
8888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8889: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8890: if ${lt_cv_prog_compiler_pic+:} false; then :
8891: $as_echo_n "(cached) " >&6
8892: else
8893: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8894: fi
8895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8896: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8897: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8898:
8899: #
8900: # Check to make sure the PIC flag actually works.
8901: #
8902: if test -n "$lt_prog_compiler_pic"; then
8903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8904: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8905: if ${lt_cv_prog_compiler_pic_works+:} false; then :
8906: $as_echo_n "(cached) " >&6
8907: else
8908: lt_cv_prog_compiler_pic_works=no
8909: ac_outfile=conftest.$ac_objext
8910: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8911: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8912: # Insert the option either (1) after the last *FLAGS variable, or
8913: # (2) before a word containing "conftest.", or (3) at the end.
8914: # Note that $ac_compile itself does not contain backslashes and begins
8915: # with a dollar sign (not a hyphen), so the echo should work correctly.
8916: # The option is referenced via a variable to avoid confusing sed.
8917: lt_compile=`echo "$ac_compile" | $SED \
8918: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8919: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8920: -e 's:$: $lt_compiler_flag:'`
8921: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8922: (eval "$lt_compile" 2>conftest.err)
8923: ac_status=$?
8924: cat conftest.err >&5
8925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926: if (exit $ac_status) && test -s "$ac_outfile"; then
8927: # The compiler can only warn and ignore the option if not recognized
8928: # So say no if there are warnings other than the usual output.
8929: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8930: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8931: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8932: lt_cv_prog_compiler_pic_works=yes
8933: fi
8934: fi
8935: $RM conftest*
8936:
8937: fi
8938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8939: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8940:
8941: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8942: case $lt_prog_compiler_pic in
8943: "" | " "*) ;;
8944: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8945: esac
8946: else
8947: lt_prog_compiler_pic=
8948: lt_prog_compiler_can_build_shared=no
8949: fi
8950:
8951: fi
8952:
8953:
8954:
8955:
8956:
8957:
8958:
8959:
8960:
8961:
8962:
8963: #
8964: # Check to make sure the static flag actually works.
8965: #
8966: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8967: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8968: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8969: if ${lt_cv_prog_compiler_static_works+:} false; then :
8970: $as_echo_n "(cached) " >&6
8971: else
8972: lt_cv_prog_compiler_static_works=no
8973: save_LDFLAGS="$LDFLAGS"
8974: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8975: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8976: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8977: # The linker can only warn and ignore the option if not recognized
8978: # So say no if there are warnings
8979: if test -s conftest.err; then
8980: # Append any errors to the config.log.
8981: cat conftest.err 1>&5
8982: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8983: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8984: if diff conftest.exp conftest.er2 >/dev/null; then
8985: lt_cv_prog_compiler_static_works=yes
8986: fi
8987: else
8988: lt_cv_prog_compiler_static_works=yes
8989: fi
8990: fi
8991: $RM -r conftest*
8992: LDFLAGS="$save_LDFLAGS"
8993:
8994: fi
8995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8996: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8997:
8998: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8999: :
9000: else
9001: lt_prog_compiler_static=
9002: fi
9003:
9004:
9005:
9006:
9007:
9008:
9009:
9010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9011: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9012: if ${lt_cv_prog_compiler_c_o+:} false; then :
9013: $as_echo_n "(cached) " >&6
9014: else
9015: lt_cv_prog_compiler_c_o=no
9016: $RM -r conftest 2>/dev/null
9017: mkdir conftest
9018: cd conftest
9019: mkdir out
9020: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021:
9022: lt_compiler_flag="-o out/conftest2.$ac_objext"
9023: # Insert the option either (1) after the last *FLAGS variable, or
9024: # (2) before a word containing "conftest.", or (3) at the end.
9025: # Note that $ac_compile itself does not contain backslashes and begins
9026: # with a dollar sign (not a hyphen), so the echo should work correctly.
9027: lt_compile=`echo "$ac_compile" | $SED \
9028: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030: -e 's:$: $lt_compiler_flag:'`
9031: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9032: (eval "$lt_compile" 2>out/conftest.err)
9033: ac_status=$?
9034: cat out/conftest.err >&5
9035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9037: then
9038: # The compiler can only warn and ignore the option if not recognized
9039: # So say no if there are warnings
9040: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9041: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9042: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9043: lt_cv_prog_compiler_c_o=yes
9044: fi
9045: fi
9046: chmod u+w . 2>&5
9047: $RM conftest*
9048: # SGI C++ compiler will create directory out/ii_files/ for
9049: # template instantiation
9050: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9051: $RM out/* && rmdir out
9052: cd ..
9053: $RM -r conftest
9054: $RM conftest*
9055:
9056: fi
9057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9058: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9059:
9060:
9061:
9062:
9063:
9064:
9065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9066: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9067: if ${lt_cv_prog_compiler_c_o+:} false; then :
9068: $as_echo_n "(cached) " >&6
9069: else
9070: lt_cv_prog_compiler_c_o=no
9071: $RM -r conftest 2>/dev/null
9072: mkdir conftest
9073: cd conftest
9074: mkdir out
9075: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9076:
9077: lt_compiler_flag="-o out/conftest2.$ac_objext"
9078: # Insert the option either (1) after the last *FLAGS variable, or
9079: # (2) before a word containing "conftest.", or (3) at the end.
9080: # Note that $ac_compile itself does not contain backslashes and begins
9081: # with a dollar sign (not a hyphen), so the echo should work correctly.
9082: lt_compile=`echo "$ac_compile" | $SED \
9083: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9084: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9085: -e 's:$: $lt_compiler_flag:'`
9086: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9087: (eval "$lt_compile" 2>out/conftest.err)
9088: ac_status=$?
9089: cat out/conftest.err >&5
9090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9092: then
9093: # The compiler can only warn and ignore the option if not recognized
9094: # So say no if there are warnings
9095: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9096: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9097: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9098: lt_cv_prog_compiler_c_o=yes
9099: fi
9100: fi
9101: chmod u+w . 2>&5
9102: $RM conftest*
9103: # SGI C++ compiler will create directory out/ii_files/ for
9104: # template instantiation
9105: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9106: $RM out/* && rmdir out
9107: cd ..
9108: $RM -r conftest
9109: $RM conftest*
9110:
9111: fi
9112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9113: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9114:
9115:
9116:
9117:
9118: hard_links="nottested"
9119: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9120: # do not overwrite the value of need_locks provided by the user
9121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9122: $as_echo_n "checking if we can lock with hard links... " >&6; }
9123: hard_links=yes
9124: $RM conftest*
9125: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9126: touch conftest.a
9127: ln conftest.a conftest.b 2>&5 || hard_links=no
9128: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9130: $as_echo "$hard_links" >&6; }
9131: if test "$hard_links" = no; then
9132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9133: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9134: need_locks=warn
9135: fi
9136: else
9137: need_locks=no
9138: fi
9139:
9140:
9141:
9142:
9143:
9144:
9145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9146: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9147:
9148: runpath_var=
9149: allow_undefined_flag=
9150: always_export_symbols=no
9151: archive_cmds=
9152: archive_expsym_cmds=
9153: compiler_needs_object=no
9154: enable_shared_with_static_runtimes=no
9155: export_dynamic_flag_spec=
9156: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9157: hardcode_automatic=no
9158: hardcode_direct=no
9159: hardcode_direct_absolute=no
9160: hardcode_libdir_flag_spec=
9161: hardcode_libdir_flag_spec_ld=
9162: hardcode_libdir_separator=
9163: hardcode_minus_L=no
9164: hardcode_shlibpath_var=unsupported
9165: inherit_rpath=no
9166: link_all_deplibs=unknown
9167: module_cmds=
9168: module_expsym_cmds=
9169: old_archive_from_new_cmds=
9170: old_archive_from_expsyms_cmds=
9171: thread_safe_flag_spec=
9172: whole_archive_flag_spec=
9173: # include_expsyms should be a list of space-separated symbols to be *always*
9174: # included in the symbol list
9175: include_expsyms=
9176: # exclude_expsyms can be an extended regexp of symbols to exclude
9177: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9178: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9179: # as well as any symbol that contains `d'.
9180: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9181: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9182: # platforms (ab)use it in PIC code, but their linkers get confused if
9183: # the symbol is explicitly referenced. Since portable code cannot
9184: # rely on this symbol name, it's probably fine to never include it in
9185: # preloaded symbol tables.
9186: # Exclude shared library initialization/finalization symbols.
9187: extract_expsyms_cmds=
9188:
9189: case $host_os in
9190: cygwin* | mingw* | pw32* | cegcc*)
9191: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9192: # When not using gcc, we currently assume that we are using
9193: # Microsoft Visual C++.
9194: if test "$GCC" != yes; then
9195: with_gnu_ld=no
9196: fi
9197: ;;
9198: interix*)
9199: # we just hope/assume this is gcc and not c89 (= MSVC++)
9200: with_gnu_ld=yes
9201: ;;
9202: openbsd*)
9203: with_gnu_ld=no
9204: ;;
9205: esac
9206:
9207: ld_shlibs=yes
9208:
9209: # On some targets, GNU ld is compatible enough with the native linker
9210: # that we're better off using the native interface for both.
9211: lt_use_gnu_ld_interface=no
9212: if test "$with_gnu_ld" = yes; then
9213: case $host_os in
9214: aix*)
9215: # The AIX port of GNU ld has always aspired to compatibility
9216: # with the native linker. However, as the warning in the GNU ld
9217: # block says, versions before 2.19.5* couldn't really create working
9218: # shared libraries, regardless of the interface used.
9219: case `$LD -v 2>&1` in
9220: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9221: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9222: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9223: *)
9224: lt_use_gnu_ld_interface=yes
9225: ;;
9226: esac
9227: ;;
9228: *)
9229: lt_use_gnu_ld_interface=yes
9230: ;;
9231: esac
9232: fi
9233:
9234: if test "$lt_use_gnu_ld_interface" = yes; then
9235: # If archive_cmds runs LD, not CC, wlarc should be empty
9236: wlarc='${wl}'
9237:
9238: # Set some defaults for GNU ld with shared library support. These
9239: # are reset later if shared libraries are not supported. Putting them
9240: # here allows them to be overridden if necessary.
9241: runpath_var=LD_RUN_PATH
9242: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243: export_dynamic_flag_spec='${wl}--export-dynamic'
9244: # ancient GNU ld didn't support --whole-archive et. al.
9245: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9246: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9247: else
9248: whole_archive_flag_spec=
9249: fi
9250: supports_anon_versioning=no
9251: case `$LD -v 2>&1` in
9252: *GNU\ gold*) supports_anon_versioning=yes ;;
9253: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9254: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9255: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9256: *\ 2.11.*) ;; # other 2.11 versions
9257: *) supports_anon_versioning=yes ;;
9258: esac
9259:
9260: # See if GNU ld supports shared libraries.
9261: case $host_os in
9262: aix[3-9]*)
9263: # On AIX/PPC, the GNU linker is very broken
9264: if test "$host_cpu" != ia64; then
9265: ld_shlibs=no
9266: cat <<_LT_EOF 1>&2
9267:
9268: *** Warning: the GNU linker, at least up to release 2.19, is reported
9269: *** to be unable to reliably create shared libraries on AIX.
9270: *** Therefore, libtool is disabling shared libraries support. If you
9271: *** really care for shared libraries, you may want to install binutils
9272: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9273: *** You will then need to restart the configuration process.
9274:
9275: _LT_EOF
9276: fi
9277: ;;
9278:
9279: amigaos*)
9280: case $host_cpu in
9281: powerpc)
9282: # see comment about AmigaOS4 .so support
9283: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284: archive_expsym_cmds=''
9285: ;;
9286: m68k)
9287: 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)'
9288: hardcode_libdir_flag_spec='-L$libdir'
9289: hardcode_minus_L=yes
9290: ;;
9291: esac
9292: ;;
9293:
9294: beos*)
9295: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9296: allow_undefined_flag=unsupported
9297: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9298: # support --undefined. This deserves some investigation. FIXME
9299: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300: else
9301: ld_shlibs=no
9302: fi
9303: ;;
9304:
9305: cygwin* | mingw* | pw32* | cegcc*)
9306: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9307: # as there is no search path for DLLs.
9308: hardcode_libdir_flag_spec='-L$libdir'
9309: export_dynamic_flag_spec='${wl}--export-all-symbols'
9310: allow_undefined_flag=unsupported
9311: always_export_symbols=no
9312: enable_shared_with_static_runtimes=yes
9313: 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'
9314: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9315:
9316: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9317: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9318: # If the export-symbols file already is a .def file (1st line
9319: # is EXPORTS), use it as is; otherwise, prepend...
9320: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9321: cp $export_symbols $output_objdir/$soname.def;
9322: else
9323: echo EXPORTS > $output_objdir/$soname.def;
9324: cat $export_symbols >> $output_objdir/$soname.def;
9325: fi~
9326: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327: else
9328: ld_shlibs=no
9329: fi
9330: ;;
9331:
9332: haiku*)
9333: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334: link_all_deplibs=yes
9335: ;;
9336:
9337: interix[3-9]*)
9338: hardcode_direct=no
9339: hardcode_shlibpath_var=no
9340: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341: export_dynamic_flag_spec='${wl}-E'
9342: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9343: # Instead, shared libraries are loaded at an image base (0x10000000 by
9344: # default) and relocated if they conflict, which is a slow very memory
9345: # consuming and fragmenting process. To avoid this, we pick a random,
9346: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9347: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9348: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9349: 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'
9350: ;;
9351:
9352: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9353: tmp_diet=no
9354: if test "$host_os" = linux-dietlibc; then
9355: case $cc_basename in
9356: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9357: esac
9358: fi
9359: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9360: && test "$tmp_diet" = no
9361: then
9362: tmp_addflag=' $pic_flag'
9363: tmp_sharedflag='-shared'
9364: case $cc_basename,$host_cpu in
9365: pgcc*) # Portland Group C compiler
9366: 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'
9367: tmp_addflag=' $pic_flag'
9368: ;;
9369: pgf77* | pgf90* | pgf95* | pgfortran*)
9370: # Portland Group f77 and f90 compilers
9371: 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'
9372: tmp_addflag=' $pic_flag -Mnomain' ;;
9373: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9374: tmp_addflag=' -i_dynamic' ;;
9375: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9376: tmp_addflag=' -i_dynamic -nofor_main' ;;
9377: ifc* | ifort*) # Intel Fortran compiler
9378: tmp_addflag=' -nofor_main' ;;
9379: lf95*) # Lahey Fortran 8.1
9380: whole_archive_flag_spec=
9381: tmp_sharedflag='--shared' ;;
9382: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9383: tmp_sharedflag='-qmkshrobj'
9384: tmp_addflag= ;;
9385: nvcc*) # Cuda Compiler Driver 2.2
9386: 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'
9387: compiler_needs_object=yes
9388: ;;
9389: esac
9390: case `$CC -V 2>&1 | sed 5q` in
9391: *Sun\ C*) # Sun C 5.9
9392: 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'
9393: compiler_needs_object=yes
9394: tmp_sharedflag='-G' ;;
9395: *Sun\ F*) # Sun Fortran 8.3
9396: tmp_sharedflag='-G' ;;
9397: esac
9398: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399:
9400: if test "x$supports_anon_versioning" = xyes; then
9401: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9402: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9403: echo "local: *; };" >> $output_objdir/$libname.ver~
9404: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9405: fi
9406:
9407: case $cc_basename in
9408: xlf* | bgf* | bgxlf* | mpixlf*)
9409: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9410: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9411: hardcode_libdir_flag_spec=
9412: hardcode_libdir_flag_spec_ld='-rpath $libdir'
9413: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9414: if test "x$supports_anon_versioning" = xyes; then
9415: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9416: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9417: echo "local: *; };" >> $output_objdir/$libname.ver~
9418: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9419: fi
9420: ;;
9421: esac
9422: else
9423: ld_shlibs=no
9424: fi
9425: ;;
9426:
9427: netbsd*)
9428: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9429: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9430: wlarc=
9431: else
9432: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434: fi
9435: ;;
9436:
9437: solaris*)
9438: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9439: ld_shlibs=no
9440: cat <<_LT_EOF 1>&2
9441:
9442: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9443: *** create shared libraries on Solaris systems. Therefore, libtool
9444: *** is disabling shared libraries support. We urge you to upgrade GNU
9445: *** binutils to release 2.9.1 or newer. Another option is to modify
9446: *** your PATH or compiler configuration so that the native linker is
9447: *** used, and then restart.
9448:
9449: _LT_EOF
9450: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9453: else
9454: ld_shlibs=no
9455: fi
9456: ;;
9457:
9458: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9459: case `$LD -v 2>&1` in
9460: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9461: ld_shlibs=no
9462: cat <<_LT_EOF 1>&2
9463:
9464: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9465: *** reliably create shared libraries on SCO systems. Therefore, libtool
9466: *** is disabling shared libraries support. We urge you to upgrade GNU
9467: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9468: *** your PATH or compiler configuration so that the native linker is
9469: *** used, and then restart.
9470:
9471: _LT_EOF
9472: ;;
9473: *)
9474: # For security reasons, it is highly recommended that you always
9475: # use absolute paths for naming shared libraries, and exclude the
9476: # DT_RUNPATH tag from executables and libraries. But doing so
9477: # requires that you compile everything twice, which is a pain.
9478: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9482: else
9483: ld_shlibs=no
9484: fi
9485: ;;
9486: esac
9487: ;;
9488:
9489: sunos4*)
9490: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491: wlarc=
9492: hardcode_direct=yes
9493: hardcode_shlibpath_var=no
9494: ;;
9495:
9496: *)
9497: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9500: else
9501: ld_shlibs=no
9502: fi
9503: ;;
9504: esac
9505:
9506: if test "$ld_shlibs" = no; then
9507: runpath_var=
9508: hardcode_libdir_flag_spec=
9509: export_dynamic_flag_spec=
9510: whole_archive_flag_spec=
9511: fi
9512: else
9513: # PORTME fill in a description of your system's linker (not GNU ld)
9514: case $host_os in
9515: aix3*)
9516: allow_undefined_flag=unsupported
9517: always_export_symbols=yes
9518: 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'
9519: # Note: this linker hardcodes the directories in LIBPATH if there
9520: # are no directories specified by -L.
9521: hardcode_minus_L=yes
9522: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9523: # Neither direct hardcoding nor static linking is supported with a
9524: # broken collect2.
9525: hardcode_direct=unsupported
9526: fi
9527: ;;
9528:
9529: aix[4-9]*)
9530: if test "$host_cpu" = ia64; then
9531: # On IA64, the linker does run time linking by default, so we don't
9532: # have to do anything special.
9533: aix_use_runtimelinking=no
9534: exp_sym_flag='-Bexport'
9535: no_entry_flag=""
9536: else
9537: # If we're using GNU nm, then we don't want the "-C" option.
9538: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9539: # Also, AIX nm treats weak defined symbols like other global
9540: # defined symbols, whereas GNU nm marks them as "W".
9541: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9542: 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'
9543: else
9544: 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'
9545: fi
9546: aix_use_runtimelinking=no
9547:
9548: # Test if we are trying to use run time linking or normal
9549: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9550: # need to do runtime linking.
9551: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9552: for ld_flag in $LDFLAGS; do
9553: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9554: aix_use_runtimelinking=yes
9555: break
9556: fi
9557: done
9558: ;;
9559: esac
9560:
9561: exp_sym_flag='-bexport'
9562: no_entry_flag='-bnoentry'
9563: fi
9564:
9565: # When large executables or shared objects are built, AIX ld can
9566: # have problems creating the table of contents. If linking a library
9567: # or program results in "error TOC overflow" add -mminimal-toc to
9568: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9569: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9570:
9571: archive_cmds=''
9572: hardcode_direct=yes
9573: hardcode_direct_absolute=yes
9574: hardcode_libdir_separator=':'
9575: link_all_deplibs=yes
9576: file_list_spec='${wl}-f,'
9577:
9578: if test "$GCC" = yes; then
9579: case $host_os in aix4.[012]|aix4.[012].*)
9580: # We only want to do this on AIX 4.2 and lower, the check
9581: # below for broken collect2 doesn't work under 4.3+
9582: collect2name=`${CC} -print-prog-name=collect2`
9583: if test -f "$collect2name" &&
9584: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9585: then
9586: # We have reworked collect2
9587: :
9588: else
9589: # We have old collect2
9590: hardcode_direct=unsupported
9591: # It fails to find uninstalled libraries when the uninstalled
9592: # path is not listed in the libpath. Setting hardcode_minus_L
9593: # to unsupported forces relinking
9594: hardcode_minus_L=yes
9595: hardcode_libdir_flag_spec='-L$libdir'
9596: hardcode_libdir_separator=
9597: fi
9598: ;;
9599: esac
9600: shared_flag='-shared'
9601: if test "$aix_use_runtimelinking" = yes; then
9602: shared_flag="$shared_flag "'${wl}-G'
9603: fi
9604: else
9605: # not using gcc
9606: if test "$host_cpu" = ia64; then
9607: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9608: # chokes on -Wl,-G. The following line is correct:
9609: shared_flag='-G'
9610: else
9611: if test "$aix_use_runtimelinking" = yes; then
9612: shared_flag='${wl}-G'
9613: else
9614: shared_flag='${wl}-bM:SRE'
9615: fi
9616: fi
9617: fi
9618:
9619: export_dynamic_flag_spec='${wl}-bexpall'
9620: # It seems that -bexpall does not export symbols beginning with
9621: # underscore (_), so it is better to generate a list of symbols to export.
9622: always_export_symbols=yes
9623: if test "$aix_use_runtimelinking" = yes; then
9624: # Warning - without using the other runtime loading flags (-brtl),
9625: # -berok will link without error, but may produce a broken library.
9626: allow_undefined_flag='-berok'
9627: # Determine the default libpath from the value encoded in an
9628: # empty executable.
9629: if test "${lt_cv_aix_libpath+set}" = set; then
9630: aix_libpath=$lt_cv_aix_libpath
9631: else
9632: if ${lt_cv_aix_libpath_+:} false; then :
9633: $as_echo_n "(cached) " >&6
9634: else
9635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636: /* end confdefs.h. */
9637:
9638: int
9639: main ()
9640: {
9641:
9642: ;
9643: return 0;
9644: }
9645: _ACEOF
9646: if ac_fn_c_try_link "$LINENO"; then :
9647:
9648: lt_aix_libpath_sed='
9649: /Import File Strings/,/^$/ {
9650: /^0/ {
9651: s/^0 *\([^ ]*\) *$/\1/
9652: p
9653: }
9654: }'
9655: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656: # Check for a 64-bit object if we didn't find anything.
9657: if test -z "$lt_cv_aix_libpath_"; then
9658: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659: fi
9660: fi
9661: rm -f core conftest.err conftest.$ac_objext \
9662: conftest$ac_exeext conftest.$ac_ext
9663: if test -z "$lt_cv_aix_libpath_"; then
9664: lt_cv_aix_libpath_="/usr/lib:/lib"
9665: fi
9666:
9667: fi
9668:
9669: aix_libpath=$lt_cv_aix_libpath_
9670: fi
9671:
9672: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9673: 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"
9674: else
9675: if test "$host_cpu" = ia64; then
9676: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9677: allow_undefined_flag="-z nodefs"
9678: 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"
9679: else
9680: # Determine the default libpath from the value encoded in an
9681: # empty executable.
9682: if test "${lt_cv_aix_libpath+set}" = set; then
9683: aix_libpath=$lt_cv_aix_libpath
9684: else
9685: if ${lt_cv_aix_libpath_+:} false; then :
9686: $as_echo_n "(cached) " >&6
9687: else
9688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689: /* end confdefs.h. */
9690:
9691: int
9692: main ()
9693: {
9694:
9695: ;
9696: return 0;
9697: }
9698: _ACEOF
9699: if ac_fn_c_try_link "$LINENO"; then :
9700:
9701: lt_aix_libpath_sed='
9702: /Import File Strings/,/^$/ {
9703: /^0/ {
9704: s/^0 *\([^ ]*\) *$/\1/
9705: p
9706: }
9707: }'
9708: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709: # Check for a 64-bit object if we didn't find anything.
9710: if test -z "$lt_cv_aix_libpath_"; then
9711: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712: fi
9713: fi
9714: rm -f core conftest.err conftest.$ac_objext \
9715: conftest$ac_exeext conftest.$ac_ext
9716: if test -z "$lt_cv_aix_libpath_"; then
9717: lt_cv_aix_libpath_="/usr/lib:/lib"
9718: fi
9719:
9720: fi
9721:
9722: aix_libpath=$lt_cv_aix_libpath_
9723: fi
9724:
9725: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726: # Warning - without using the other run time loading flags,
9727: # -berok will link without error, but may produce a broken library.
9728: no_undefined_flag=' ${wl}-bernotok'
9729: allow_undefined_flag=' ${wl}-berok'
9730: if test "$with_gnu_ld" = yes; then
9731: # We only use this code for GNU lds that support --whole-archive.
9732: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9733: else
9734: # Exported symbols can be pulled into shared objects from archives
9735: whole_archive_flag_spec='$convenience'
9736: fi
9737: archive_cmds_need_lc=yes
9738: # This is similar to how AIX traditionally builds its shared libraries.
9739: 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'
9740: fi
9741: fi
9742: ;;
9743:
9744: amigaos*)
9745: case $host_cpu in
9746: powerpc)
9747: # see comment about AmigaOS4 .so support
9748: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749: archive_expsym_cmds=''
9750: ;;
9751: m68k)
9752: 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)'
9753: hardcode_libdir_flag_spec='-L$libdir'
9754: hardcode_minus_L=yes
9755: ;;
9756: esac
9757: ;;
9758:
9759: bsdi[45]*)
9760: export_dynamic_flag_spec=-rdynamic
9761: ;;
9762:
9763: cygwin* | mingw* | pw32* | cegcc*)
9764: # When not using gcc, we currently assume that we are using
9765: # Microsoft Visual C++.
9766: # hardcode_libdir_flag_spec is actually meaningless, as there is
9767: # no search path for DLLs.
9768: case $cc_basename in
9769: cl*)
9770: # Native MSVC
9771: hardcode_libdir_flag_spec=' '
9772: allow_undefined_flag=unsupported
9773: always_export_symbols=yes
9774: file_list_spec='@'
9775: # Tell ltmain to make .lib files, not .a files.
9776: libext=lib
9777: # Tell ltmain to make .dll files, not .so files.
9778: shrext_cmds=".dll"
9779: # FIXME: Setting linknames here is a bad hack.
9780: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9781: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9782: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9783: else
9784: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9785: fi~
9786: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9787: linknames='
9788: # The linker will not automatically build a static lib if we build a DLL.
9789: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9790: enable_shared_with_static_runtimes=yes
9791: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9792: # Don't use ranlib
9793: old_postinstall_cmds='chmod 644 $oldlib'
9794: postlink_cmds='lt_outputfile="@OUTPUT@"~
9795: lt_tool_outputfile="@TOOL_OUTPUT@"~
9796: case $lt_outputfile in
9797: *.exe|*.EXE) ;;
9798: *)
9799: lt_outputfile="$lt_outputfile.exe"
9800: lt_tool_outputfile="$lt_tool_outputfile.exe"
9801: ;;
9802: esac~
9803: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9804: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9805: $RM "$lt_outputfile.manifest";
9806: fi'
9807: ;;
9808: *)
9809: # Assume MSVC wrapper
9810: hardcode_libdir_flag_spec=' '
9811: allow_undefined_flag=unsupported
9812: # Tell ltmain to make .lib files, not .a files.
9813: libext=lib
9814: # Tell ltmain to make .dll files, not .so files.
9815: shrext_cmds=".dll"
9816: # FIXME: Setting linknames here is a bad hack.
9817: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9818: # The linker will automatically build a .lib file if we build a DLL.
9819: old_archive_from_new_cmds='true'
9820: # FIXME: Should let the user specify the lib program.
9821: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9822: enable_shared_with_static_runtimes=yes
9823: ;;
9824: esac
9825: ;;
9826:
9827: darwin* | rhapsody*)
9828:
9829:
9830: archive_cmds_need_lc=no
9831: hardcode_direct=no
9832: hardcode_automatic=yes
9833: hardcode_shlibpath_var=unsupported
9834: if test "$lt_cv_ld_force_load" = "yes"; then
9835: 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\"`'
9836: else
9837: whole_archive_flag_spec=''
9838: fi
9839: link_all_deplibs=yes
9840: allow_undefined_flag="$_lt_dar_allow_undefined"
9841: case $cc_basename in
9842: ifort*) _lt_dar_can_shared=yes ;;
9843: *) _lt_dar_can_shared=$GCC ;;
9844: esac
9845: if test "$_lt_dar_can_shared" = "yes"; then
9846: output_verbose_link_cmd=func_echo_all
9847: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9848: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9849: 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}"
9850: 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}"
9851:
9852: else
9853: ld_shlibs=no
9854: fi
9855:
9856: ;;
9857:
9858: dgux*)
9859: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860: hardcode_libdir_flag_spec='-L$libdir'
9861: hardcode_shlibpath_var=no
9862: ;;
9863:
9864: freebsd1*)
9865: ld_shlibs=no
9866: ;;
9867:
9868: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9869: # support. Future versions do this automatically, but an explicit c++rt0.o
9870: # does not break anything, and helps significantly (at the cost of a little
9871: # extra space).
9872: freebsd2.2*)
9873: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9874: hardcode_libdir_flag_spec='-R$libdir'
9875: hardcode_direct=yes
9876: hardcode_shlibpath_var=no
9877: ;;
9878:
9879: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9880: freebsd2*)
9881: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882: hardcode_direct=yes
9883: hardcode_minus_L=yes
9884: hardcode_shlibpath_var=no
9885: ;;
9886:
9887: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9888: freebsd* | dragonfly*)
9889: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9890: hardcode_libdir_flag_spec='-R$libdir'
9891: hardcode_direct=yes
9892: hardcode_shlibpath_var=no
9893: ;;
9894:
9895: hpux9*)
9896: if test "$GCC" = yes; then
9897: 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'
9898: else
9899: 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'
9900: fi
9901: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902: hardcode_libdir_separator=:
9903: hardcode_direct=yes
9904:
9905: # hardcode_minus_L: Not really in the search PATH,
9906: # but as the default location of the library.
9907: hardcode_minus_L=yes
9908: export_dynamic_flag_spec='${wl}-E'
9909: ;;
9910:
9911: hpux10*)
9912: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914: else
9915: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9916: fi
9917: if test "$with_gnu_ld" = no; then
9918: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919: hardcode_libdir_flag_spec_ld='+b $libdir'
9920: hardcode_libdir_separator=:
9921: hardcode_direct=yes
9922: hardcode_direct_absolute=yes
9923: export_dynamic_flag_spec='${wl}-E'
9924: # hardcode_minus_L: Not really in the search PATH,
9925: # but as the default location of the library.
9926: hardcode_minus_L=yes
9927: fi
9928: ;;
9929:
9930: hpux11*)
9931: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9932: case $host_cpu in
9933: hppa*64*)
9934: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935: ;;
9936: ia64*)
9937: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938: ;;
9939: *)
9940: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941: ;;
9942: esac
9943: else
9944: case $host_cpu in
9945: hppa*64*)
9946: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947: ;;
9948: ia64*)
9949: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950: ;;
9951: *)
9952:
9953: # Older versions of the 11.00 compiler do not understand -b yet
9954: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9956: $as_echo_n "checking if $CC understands -b... " >&6; }
9957: if ${lt_cv_prog_compiler__b+:} false; then :
9958: $as_echo_n "(cached) " >&6
9959: else
9960: lt_cv_prog_compiler__b=no
9961: save_LDFLAGS="$LDFLAGS"
9962: LDFLAGS="$LDFLAGS -b"
9963: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9964: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9965: # The linker can only warn and ignore the option if not recognized
9966: # So say no if there are warnings
9967: if test -s conftest.err; then
9968: # Append any errors to the config.log.
9969: cat conftest.err 1>&5
9970: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9971: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9972: if diff conftest.exp conftest.er2 >/dev/null; then
9973: lt_cv_prog_compiler__b=yes
9974: fi
9975: else
9976: lt_cv_prog_compiler__b=yes
9977: fi
9978: fi
9979: $RM -r conftest*
9980: LDFLAGS="$save_LDFLAGS"
9981:
9982: fi
9983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9984: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9985:
9986: if test x"$lt_cv_prog_compiler__b" = xyes; then
9987: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988: else
9989: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990: fi
9991:
9992: ;;
9993: esac
9994: fi
9995: if test "$with_gnu_ld" = no; then
9996: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997: hardcode_libdir_separator=:
9998:
9999: case $host_cpu in
10000: hppa*64*|ia64*)
10001: hardcode_direct=no
10002: hardcode_shlibpath_var=no
10003: ;;
10004: *)
10005: hardcode_direct=yes
10006: hardcode_direct_absolute=yes
10007: export_dynamic_flag_spec='${wl}-E'
10008:
10009: # hardcode_minus_L: Not really in the search PATH,
10010: # but as the default location of the library.
10011: hardcode_minus_L=yes
10012: ;;
10013: esac
10014: fi
10015: ;;
10016:
10017: irix5* | irix6* | nonstopux*)
10018: if test "$GCC" = yes; then
10019: 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'
10020: # Try to use the -exported_symbol ld option, if it does not
10021: # work, assume that -exports_file does not work either and
10022: # implicitly export all symbols.
10023: # This should be the same for all languages, so no per-tag cache variable.
10024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10025: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10026: if ${lt_cv_irix_exported_symbol+:} false; then :
10027: $as_echo_n "(cached) " >&6
10028: else
10029: save_LDFLAGS="$LDFLAGS"
10030: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10031: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032: /* end confdefs.h. */
10033: int foo (void) { return 0; }
10034: _ACEOF
10035: if ac_fn_c_try_link "$LINENO"; then :
10036: lt_cv_irix_exported_symbol=yes
10037: else
10038: lt_cv_irix_exported_symbol=no
10039: fi
10040: rm -f core conftest.err conftest.$ac_objext \
10041: conftest$ac_exeext conftest.$ac_ext
10042: LDFLAGS="$save_LDFLAGS"
10043: fi
10044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10045: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10046: if test "$lt_cv_irix_exported_symbol" = yes; then
10047: 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'
10048: fi
10049: else
10050: 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'
10051: 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'
10052: fi
10053: archive_cmds_need_lc='no'
10054: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055: hardcode_libdir_separator=:
10056: inherit_rpath=yes
10057: link_all_deplibs=yes
10058: ;;
10059:
10060: netbsd*)
10061: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10062: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10063: else
10064: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10065: fi
10066: hardcode_libdir_flag_spec='-R$libdir'
10067: hardcode_direct=yes
10068: hardcode_shlibpath_var=no
10069: ;;
10070:
10071: newsos6)
10072: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073: hardcode_direct=yes
10074: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10075: hardcode_libdir_separator=:
10076: hardcode_shlibpath_var=no
10077: ;;
10078:
10079: *nto* | *qnx*)
10080: ;;
10081:
10082: openbsd*)
10083: if test -f /usr/libexec/ld.so; then
10084: hardcode_direct=yes
10085: hardcode_shlibpath_var=no
10086: hardcode_direct_absolute=yes
10087: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10088: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10089: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10090: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10091: export_dynamic_flag_spec='${wl}-E'
10092: else
10093: case $host_os in
10094: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10095: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10096: hardcode_libdir_flag_spec='-R$libdir'
10097: ;;
10098: *)
10099: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10100: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10101: ;;
10102: esac
10103: fi
10104: else
10105: ld_shlibs=no
10106: fi
10107: ;;
10108:
10109: os2*)
10110: hardcode_libdir_flag_spec='-L$libdir'
10111: hardcode_minus_L=yes
10112: allow_undefined_flag=unsupported
10113: 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'
10114: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10115: ;;
10116:
10117: osf3*)
10118: if test "$GCC" = yes; then
10119: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10120: 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'
10121: else
10122: allow_undefined_flag=' -expect_unresolved \*'
10123: 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'
10124: fi
10125: archive_cmds_need_lc='no'
10126: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10127: hardcode_libdir_separator=:
10128: ;;
10129:
10130: osf4* | osf5*) # as osf3* with the addition of -msym flag
10131: if test "$GCC" = yes; then
10132: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10133: 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'
10134: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135: else
10136: allow_undefined_flag=' -expect_unresolved \*'
10137: 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'
10138: 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~
10139: $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'
10140:
10141: # Both c and cxx compiler support -rpath directly
10142: hardcode_libdir_flag_spec='-rpath $libdir'
10143: fi
10144: archive_cmds_need_lc='no'
10145: hardcode_libdir_separator=:
10146: ;;
10147:
10148: solaris*)
10149: no_undefined_flag=' -z defs'
10150: if test "$GCC" = yes; then
10151: wlarc='${wl}'
10152: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10153: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154: $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'
10155: else
10156: case `$CC -V 2>&1` in
10157: *"Compilers 5.0"*)
10158: wlarc=''
10159: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10161: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10162: ;;
10163: *)
10164: wlarc='${wl}'
10165: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10166: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10167: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10168: ;;
10169: esac
10170: fi
10171: hardcode_libdir_flag_spec='-R$libdir'
10172: hardcode_shlibpath_var=no
10173: case $host_os in
10174: solaris2.[0-5] | solaris2.[0-5].*) ;;
10175: *)
10176: # The compiler driver will combine and reorder linker options,
10177: # but understands `-z linker_flag'. GCC discards it without `$wl',
10178: # but is careful enough not to reorder.
10179: # Supported since Solaris 2.6 (maybe 2.5.1?)
10180: if test "$GCC" = yes; then
10181: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10182: else
10183: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10184: fi
10185: ;;
10186: esac
10187: link_all_deplibs=yes
10188: ;;
10189:
10190: sunos4*)
10191: if test "x$host_vendor" = xsequent; then
10192: # Use $CC to link under sequent, because it throws in some extra .o
10193: # files that make .init and .fini sections work.
10194: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10195: else
10196: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10197: fi
10198: hardcode_libdir_flag_spec='-L$libdir'
10199: hardcode_direct=yes
10200: hardcode_minus_L=yes
10201: hardcode_shlibpath_var=no
10202: ;;
10203:
10204: sysv4)
10205: case $host_vendor in
10206: sni)
10207: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208: hardcode_direct=yes # is this really true???
10209: ;;
10210: siemens)
10211: ## LD is ld it makes a PLAMLIB
10212: ## CC just makes a GrossModule.
10213: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10214: reload_cmds='$CC -r -o $output$reload_objs'
10215: hardcode_direct=no
10216: ;;
10217: motorola)
10218: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10220: ;;
10221: esac
10222: runpath_var='LD_RUN_PATH'
10223: hardcode_shlibpath_var=no
10224: ;;
10225:
10226: sysv4.3*)
10227: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228: hardcode_shlibpath_var=no
10229: export_dynamic_flag_spec='-Bexport'
10230: ;;
10231:
10232: sysv4*MP*)
10233: if test -d /usr/nec; then
10234: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235: hardcode_shlibpath_var=no
10236: runpath_var=LD_RUN_PATH
10237: hardcode_runpath_var=yes
10238: ld_shlibs=yes
10239: fi
10240: ;;
10241:
10242: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10243: no_undefined_flag='${wl}-z,text'
10244: archive_cmds_need_lc=no
10245: hardcode_shlibpath_var=no
10246: runpath_var='LD_RUN_PATH'
10247:
10248: if test "$GCC" = yes; then
10249: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251: else
10252: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10253: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254: fi
10255: ;;
10256:
10257: sysv5* | sco3.2v5* | sco5v6*)
10258: # Note: We can NOT use -z defs as we might desire, because we do not
10259: # link with -lc, and that would cause any symbols used from libc to
10260: # always be unresolved, which means just about no library would
10261: # ever link correctly. If we're not using GNU ld we use -z text
10262: # though, which does catch some bad symbols but isn't as heavy-handed
10263: # as -z defs.
10264: no_undefined_flag='${wl}-z,text'
10265: allow_undefined_flag='${wl}-z,nodefs'
10266: archive_cmds_need_lc=no
10267: hardcode_shlibpath_var=no
10268: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10269: hardcode_libdir_separator=':'
10270: link_all_deplibs=yes
10271: export_dynamic_flag_spec='${wl}-Bexport'
10272: runpath_var='LD_RUN_PATH'
10273:
10274: if test "$GCC" = yes; then
10275: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277: else
10278: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280: fi
10281: ;;
10282:
10283: uts4*)
10284: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285: hardcode_libdir_flag_spec='-L$libdir'
10286: hardcode_shlibpath_var=no
10287: ;;
10288:
10289: *)
10290: ld_shlibs=no
10291: ;;
10292: esac
10293:
10294: if test x$host_vendor = xsni; then
10295: case $host in
10296: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10297: export_dynamic_flag_spec='${wl}-Blargedynsym'
10298: ;;
10299: esac
10300: fi
10301: fi
10302:
10303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10304: $as_echo "$ld_shlibs" >&6; }
10305: test "$ld_shlibs" = no && can_build_shared=no
10306:
10307: with_gnu_ld=$with_gnu_ld
10308:
10309:
10310:
10311:
10312:
10313:
10314:
10315:
10316:
10317:
10318:
10319:
10320:
10321:
10322:
10323: #
10324: # Do we need to explicitly link libc?
10325: #
10326: case "x$archive_cmds_need_lc" in
10327: x|xyes)
10328: # Assume -lc should be added
10329: archive_cmds_need_lc=yes
10330:
10331: if test "$enable_shared" = yes && test "$GCC" = yes; then
10332: case $archive_cmds in
10333: *'~'*)
10334: # FIXME: we may have to deal with multi-command sequences.
10335: ;;
10336: '$CC '*)
10337: # Test whether the compiler implicitly links with -lc since on some
10338: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10339: # to ld, don't add -lc before -lgcc.
10340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10341: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10342: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10343: $as_echo_n "(cached) " >&6
10344: else
10345: $RM conftest*
10346: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10347:
10348: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10349: (eval $ac_compile) 2>&5
10350: ac_status=$?
10351: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352: test $ac_status = 0; } 2>conftest.err; then
10353: soname=conftest
10354: lib=conftest
10355: libobjs=conftest.$ac_objext
10356: deplibs=
10357: wl=$lt_prog_compiler_wl
10358: pic_flag=$lt_prog_compiler_pic
10359: compiler_flags=-v
10360: linker_flags=-v
10361: verstring=
10362: output_objdir=.
10363: libname=conftest
10364: lt_save_allow_undefined_flag=$allow_undefined_flag
10365: allow_undefined_flag=
10366: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10367: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10368: ac_status=$?
10369: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10370: test $ac_status = 0; }
10371: then
10372: lt_cv_archive_cmds_need_lc=no
10373: else
10374: lt_cv_archive_cmds_need_lc=yes
10375: fi
10376: allow_undefined_flag=$lt_save_allow_undefined_flag
10377: else
10378: cat conftest.err 1>&5
10379: fi
10380: $RM conftest*
10381:
10382: fi
10383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10384: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10385: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10386: ;;
10387: esac
10388: fi
10389: ;;
10390: esac
10391:
10392:
10393:
10394:
10395:
10396:
10397:
10398:
10399:
10400:
10401:
10402:
10403:
10404:
10405:
10406:
10407:
10408:
10409:
10410:
10411:
10412:
10413:
10414:
10415:
10416:
10417:
10418:
10419:
10420:
10421:
10422:
10423:
10424:
10425:
10426:
10427:
10428:
10429:
10430:
10431:
10432:
10433:
10434:
10435:
10436:
10437:
10438:
10439:
10440:
10441:
10442:
10443:
10444:
10445:
10446:
10447:
10448:
10449:
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458:
10459:
10460:
10461:
10462:
10463:
10464:
10465:
10466:
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
10483:
10484:
10485:
10486:
10487:
10488:
10489:
10490:
10491:
10492:
10493:
10494:
10495:
10496:
10497:
10498:
10499:
10500:
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527:
10528:
10529:
10530:
10531:
10532:
10533:
10534:
10535:
10536:
10537:
10538:
10539:
10540:
10541:
10542:
10543:
10544:
10545:
10546:
10547:
10548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10549: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10550:
10551: if test "$GCC" = yes; then
10552: case $host_os in
10553: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10554: *) lt_awk_arg="/^libraries:/" ;;
10555: esac
10556: case $host_os in
10557: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10558: *) lt_sed_strip_eq="s,=/,/,g" ;;
10559: esac
10560: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10561: case $lt_search_path_spec in
10562: *\;*)
10563: # if the path contains ";" then we assume it to be the separator
10564: # otherwise default to the standard path separator (i.e. ":") - it is
10565: # assumed that no part of a normal pathname contains ";" but that should
10566: # okay in the real world where ";" in dirpaths is itself problematic.
10567: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10568: ;;
10569: *)
10570: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10571: ;;
10572: esac
10573: # Ok, now we have the path, separated by spaces, we can step through it
10574: # and add multilib dir if necessary.
10575: lt_tmp_lt_search_path_spec=
10576: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10577: for lt_sys_path in $lt_search_path_spec; do
10578: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10579: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10580: else
10581: test -d "$lt_sys_path" && \
10582: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10583: fi
10584: done
10585: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10586: BEGIN {RS=" "; FS="/|\n";} {
10587: lt_foo="";
10588: lt_count=0;
10589: for (lt_i = NF; lt_i > 0; lt_i--) {
10590: if ($lt_i != "" && $lt_i != ".") {
10591: if ($lt_i == "..") {
10592: lt_count++;
10593: } else {
10594: if (lt_count == 0) {
10595: lt_foo="/" $lt_i lt_foo;
10596: } else {
10597: lt_count--;
10598: }
10599: }
10600: }
10601: }
10602: if (lt_foo != "") { lt_freq[lt_foo]++; }
10603: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10604: }'`
10605: # AWK program above erroneously prepends '/' to C:/dos/paths
10606: # for these hosts.
10607: case $host_os in
10608: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10609: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10610: esac
10611: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10612: else
10613: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10614: fi
10615: library_names_spec=
10616: libname_spec='lib$name'
10617: soname_spec=
10618: shrext_cmds=".so"
10619: postinstall_cmds=
10620: postuninstall_cmds=
10621: finish_cmds=
10622: finish_eval=
10623: shlibpath_var=
10624: shlibpath_overrides_runpath=unknown
10625: version_type=none
10626: dynamic_linker="$host_os ld.so"
10627: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10628: need_lib_prefix=unknown
10629: hardcode_into_libs=no
10630:
10631: # when you set need_version to no, make sure it does not cause -set_version
10632: # flags to be left without arguments
10633: need_version=unknown
10634:
10635: case $host_os in
10636: aix3*)
10637: version_type=linux
10638: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10639: shlibpath_var=LIBPATH
10640:
10641: # AIX 3 has no versioning support, so we append a major version to the name.
10642: soname_spec='${libname}${release}${shared_ext}$major'
10643: ;;
10644:
10645: aix[4-9]*)
10646: version_type=linux
10647: need_lib_prefix=no
10648: need_version=no
10649: hardcode_into_libs=yes
10650: if test "$host_cpu" = ia64; then
10651: # AIX 5 supports IA64
10652: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10653: shlibpath_var=LD_LIBRARY_PATH
10654: else
10655: # With GCC up to 2.95.x, collect2 would create an import file
10656: # for dependence libraries. The import file would start with
10657: # the line `#! .'. This would cause the generated library to
10658: # depend on `.', always an invalid library. This was fixed in
10659: # development snapshots of GCC prior to 3.0.
10660: case $host_os in
10661: aix4 | aix4.[01] | aix4.[01].*)
10662: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10663: echo ' yes '
10664: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10665: :
10666: else
10667: can_build_shared=no
10668: fi
10669: ;;
10670: esac
10671: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10672: # soname into executable. Probably we can add versioning support to
10673: # collect2, so additional links can be useful in future.
10674: if test "$aix_use_runtimelinking" = yes; then
10675: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10676: # instead of lib<name>.a to let people know that these are not
10677: # typical AIX shared libraries.
10678: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679: else
10680: # We preserve .a as extension for shared libraries through AIX4.2
10681: # and later when we are not doing run time linking.
10682: library_names_spec='${libname}${release}.a $libname.a'
10683: soname_spec='${libname}${release}${shared_ext}$major'
10684: fi
10685: shlibpath_var=LIBPATH
10686: fi
10687: ;;
10688:
10689: amigaos*)
10690: case $host_cpu in
10691: powerpc)
10692: # Since July 2007 AmigaOS4 officially supports .so libraries.
10693: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10694: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695: ;;
10696: m68k)
10697: library_names_spec='$libname.ixlibrary $libname.a'
10698: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10699: 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'
10700: ;;
10701: esac
10702: ;;
10703:
10704: beos*)
10705: library_names_spec='${libname}${shared_ext}'
10706: dynamic_linker="$host_os ld.so"
10707: shlibpath_var=LIBRARY_PATH
10708: ;;
10709:
10710: bsdi[45]*)
10711: version_type=linux
10712: need_version=no
10713: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714: soname_spec='${libname}${release}${shared_ext}$major'
10715: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10716: shlibpath_var=LD_LIBRARY_PATH
10717: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10718: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10719: # the default ld.so.conf also contains /usr/contrib/lib and
10720: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10721: # libtool to hard-code these into programs
10722: ;;
10723:
10724: cygwin* | mingw* | pw32* | cegcc*)
10725: version_type=windows
10726: shrext_cmds=".dll"
10727: need_version=no
10728: need_lib_prefix=no
10729:
10730: case $GCC,$cc_basename in
10731: yes,*)
10732: # gcc
10733: library_names_spec='$libname.dll.a'
10734: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10735: postinstall_cmds='base_file=`basename \${file}`~
10736: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10737: dldir=$destdir/`dirname \$dlpath`~
10738: test -d \$dldir || mkdir -p \$dldir~
10739: $install_prog $dir/$dlname \$dldir/$dlname~
10740: chmod a+x \$dldir/$dlname~
10741: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10742: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10743: fi'
10744: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10745: dlpath=$dir/\$dldll~
10746: $RM \$dlpath'
10747: shlibpath_overrides_runpath=yes
10748:
10749: case $host_os in
10750: cygwin*)
10751: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10752: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10753:
10754: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10755: ;;
10756: mingw* | cegcc*)
10757: # MinGW DLLs use traditional 'lib' prefix
10758: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759: ;;
10760: pw32*)
10761: # pw32 DLLs use 'pw' prefix rather than 'lib'
10762: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10763: ;;
10764: esac
10765: dynamic_linker='Win32 ld.exe'
10766: ;;
10767:
10768: *,cl*)
10769: # Native MSVC
10770: libname_spec='$name'
10771: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772: library_names_spec='${libname}.dll.lib'
10773:
10774: case $build_os in
10775: mingw*)
10776: sys_lib_search_path_spec=
10777: lt_save_ifs=$IFS
10778: IFS=';'
10779: for lt_path in $LIB
10780: do
10781: IFS=$lt_save_ifs
10782: # Let DOS variable expansion print the short 8.3 style file name.
10783: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10784: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10785: done
10786: IFS=$lt_save_ifs
10787: # Convert to MSYS style.
10788: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10789: ;;
10790: cygwin*)
10791: # Convert to unix form, then to dos form, then back to unix form
10792: # but this time dos style (no spaces!) so that the unix form looks
10793: # like /cygdrive/c/PROGRA~1:/cygdr...
10794: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10795: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10796: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10797: ;;
10798: *)
10799: sys_lib_search_path_spec="$LIB"
10800: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10801: # It is most probably a Windows format PATH.
10802: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10803: else
10804: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10805: fi
10806: # FIXME: find the short name or the path components, as spaces are
10807: # common. (e.g. "Program Files" -> "PROGRA~1")
10808: ;;
10809: esac
10810:
10811: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10812: postinstall_cmds='base_file=`basename \${file}`~
10813: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10814: dldir=$destdir/`dirname \$dlpath`~
10815: test -d \$dldir || mkdir -p \$dldir~
10816: $install_prog $dir/$dlname \$dldir/$dlname'
10817: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10818: dlpath=$dir/\$dldll~
10819: $RM \$dlpath'
10820: shlibpath_overrides_runpath=yes
10821: dynamic_linker='Win32 link.exe'
10822: ;;
10823:
10824: *)
10825: # Assume MSVC wrapper
10826: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10827: dynamic_linker='Win32 ld.exe'
10828: ;;
10829: esac
10830: # FIXME: first we should search . and the directory the executable is in
10831: shlibpath_var=PATH
10832: ;;
10833:
10834: darwin* | rhapsody*)
10835: dynamic_linker="$host_os dyld"
10836: version_type=darwin
10837: need_lib_prefix=no
10838: need_version=no
10839: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10840: soname_spec='${libname}${release}${major}$shared_ext'
10841: shlibpath_overrides_runpath=yes
10842: shlibpath_var=DYLD_LIBRARY_PATH
10843: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10844:
10845: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10846: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10847: ;;
10848:
10849: dgux*)
10850: version_type=linux
10851: need_lib_prefix=no
10852: need_version=no
10853: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10854: soname_spec='${libname}${release}${shared_ext}$major'
10855: shlibpath_var=LD_LIBRARY_PATH
10856: ;;
10857:
10858: freebsd1*)
10859: dynamic_linker=no
10860: ;;
10861:
10862: freebsd* | dragonfly*)
10863: # DragonFly does not have aout. When/if they implement a new
10864: # versioning mechanism, adjust this.
10865: if test -x /usr/bin/objformat; then
10866: objformat=`/usr/bin/objformat`
10867: else
10868: case $host_os in
10869: freebsd[123]*) objformat=aout ;;
10870: *) objformat=elf ;;
10871: esac
10872: fi
10873: version_type=freebsd-$objformat
10874: case $version_type in
10875: freebsd-elf*)
10876: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10877: need_version=no
10878: need_lib_prefix=no
10879: ;;
10880: freebsd-*)
10881: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10882: need_version=yes
10883: ;;
10884: esac
10885: shlibpath_var=LD_LIBRARY_PATH
10886: case $host_os in
10887: freebsd2*)
10888: shlibpath_overrides_runpath=yes
10889: ;;
10890: freebsd3.[01]* | freebsdelf3.[01]*)
10891: shlibpath_overrides_runpath=yes
10892: hardcode_into_libs=yes
10893: ;;
10894: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10895: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10896: shlibpath_overrides_runpath=no
10897: hardcode_into_libs=yes
10898: ;;
10899: *) # from 4.6 on, and DragonFly
10900: shlibpath_overrides_runpath=yes
10901: hardcode_into_libs=yes
10902: ;;
10903: esac
10904: ;;
10905:
10906: gnu*)
10907: version_type=linux
10908: need_lib_prefix=no
10909: need_version=no
10910: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10911: soname_spec='${libname}${release}${shared_ext}$major'
10912: shlibpath_var=LD_LIBRARY_PATH
10913: hardcode_into_libs=yes
10914: ;;
10915:
10916: haiku*)
10917: version_type=linux
10918: need_lib_prefix=no
10919: need_version=no
10920: dynamic_linker="$host_os runtime_loader"
10921: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10922: soname_spec='${libname}${release}${shared_ext}$major'
10923: shlibpath_var=LIBRARY_PATH
10924: shlibpath_overrides_runpath=yes
10925: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10926: hardcode_into_libs=yes
10927: ;;
10928:
10929: hpux9* | hpux10* | hpux11*)
10930: # Give a soname corresponding to the major version so that dld.sl refuses to
10931: # link against other versions.
10932: version_type=sunos
10933: need_lib_prefix=no
10934: need_version=no
10935: case $host_cpu in
10936: ia64*)
10937: shrext_cmds='.so'
10938: hardcode_into_libs=yes
10939: dynamic_linker="$host_os dld.so"
10940: shlibpath_var=LD_LIBRARY_PATH
10941: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10942: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943: soname_spec='${libname}${release}${shared_ext}$major'
10944: if test "X$HPUX_IA64_MODE" = X32; then
10945: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10946: else
10947: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10948: fi
10949: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10950: ;;
10951: hppa*64*)
10952: shrext_cmds='.sl'
10953: hardcode_into_libs=yes
10954: dynamic_linker="$host_os dld.sl"
10955: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958: soname_spec='${libname}${release}${shared_ext}$major'
10959: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961: ;;
10962: *)
10963: shrext_cmds='.sl'
10964: dynamic_linker="$host_os dld.sl"
10965: shlibpath_var=SHLIB_PATH
10966: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10967: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968: soname_spec='${libname}${release}${shared_ext}$major'
10969: ;;
10970: esac
10971: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10972: postinstall_cmds='chmod 555 $lib'
10973: # or fails outright, so override atomically:
10974: install_override_mode=555
10975: ;;
10976:
10977: interix[3-9]*)
10978: version_type=linux
10979: need_lib_prefix=no
10980: need_version=no
10981: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982: soname_spec='${libname}${release}${shared_ext}$major'
10983: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984: shlibpath_var=LD_LIBRARY_PATH
10985: shlibpath_overrides_runpath=no
10986: hardcode_into_libs=yes
10987: ;;
10988:
10989: irix5* | irix6* | nonstopux*)
10990: case $host_os in
10991: nonstopux*) version_type=nonstopux ;;
10992: *)
10993: if test "$lt_cv_prog_gnu_ld" = yes; then
10994: version_type=linux
10995: else
10996: version_type=irix
10997: fi ;;
10998: esac
10999: need_lib_prefix=no
11000: need_version=no
11001: soname_spec='${libname}${release}${shared_ext}$major'
11002: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11003: case $host_os in
11004: irix5* | nonstopux*)
11005: libsuff= shlibsuff=
11006: ;;
11007: *)
11008: case $LD in # libtool.m4 will add one of these switches to LD
11009: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010: libsuff= shlibsuff= libmagic=32-bit;;
11011: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012: libsuff=32 shlibsuff=N32 libmagic=N32;;
11013: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015: *) libsuff= shlibsuff= libmagic=never-match;;
11016: esac
11017: ;;
11018: esac
11019: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020: shlibpath_overrides_runpath=no
11021: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11022: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11023: hardcode_into_libs=yes
11024: ;;
11025:
11026: # No shared lib support for Linux oldld, aout, or coff.
11027: linux*oldld* | linux*aout* | linux*coff*)
11028: dynamic_linker=no
11029: ;;
11030:
11031: # This must be Linux ELF.
11032: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11033: version_type=linux
11034: need_lib_prefix=no
11035: need_version=no
11036: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037: soname_spec='${libname}${release}${shared_ext}$major'
11038: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039: shlibpath_var=LD_LIBRARY_PATH
11040: shlibpath_overrides_runpath=no
11041:
11042: # Some binutils ld are patched to set DT_RUNPATH
11043: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044: $as_echo_n "(cached) " >&6
11045: else
11046: lt_cv_shlibpath_overrides_runpath=no
11047: save_LDFLAGS=$LDFLAGS
11048: save_libdir=$libdir
11049: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052: /* end confdefs.h. */
11053:
11054: int
11055: main ()
11056: {
11057:
11058: ;
11059: return 0;
11060: }
11061: _ACEOF
11062: if ac_fn_c_try_link "$LINENO"; then :
11063: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064: lt_cv_shlibpath_overrides_runpath=yes
11065: fi
11066: fi
11067: rm -f core conftest.err conftest.$ac_objext \
11068: conftest$ac_exeext conftest.$ac_ext
11069: LDFLAGS=$save_LDFLAGS
11070: libdir=$save_libdir
11071:
11072: fi
11073:
11074: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075:
11076: # This implies no fast_install, which is unacceptable.
11077: # Some rework will be needed to allow for fast_install
11078: # before this can be enabled.
11079: hardcode_into_libs=yes
11080:
11081: # Add ABI-specific directories to the system library path.
11082: sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11083:
11084: # Append ld.so.conf contents to the search path
11085: if test -f /etc/ld.so.conf; then
11086: 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' ' '`
11087: sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11088:
11089: fi
11090:
11091: # We used to test for /lib/ld.so.1 and disable shared libraries on
11092: # powerpc, because MkLinux only supported shared libraries with the
11093: # GNU dynamic linker. Since this was broken with cross compilers,
11094: # most powerpc-linux boxes support dynamic linking these days and
11095: # people can always --disable-shared, the test was removed, and we
11096: # assume the GNU/Linux dynamic linker is in use.
11097: dynamic_linker='GNU/Linux ld.so'
11098: ;;
11099:
11100: netbsd*)
11101: version_type=sunos
11102: need_lib_prefix=no
11103: need_version=no
11104: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11105: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107: dynamic_linker='NetBSD (a.out) ld.so'
11108: else
11109: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11110: soname_spec='${libname}${release}${shared_ext}$major'
11111: dynamic_linker='NetBSD ld.elf_so'
11112: fi
11113: shlibpath_var=LD_LIBRARY_PATH
11114: shlibpath_overrides_runpath=yes
11115: hardcode_into_libs=yes
11116: ;;
11117:
11118: newsos6)
11119: version_type=linux
11120: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121: shlibpath_var=LD_LIBRARY_PATH
11122: shlibpath_overrides_runpath=yes
11123: ;;
11124:
11125: *nto* | *qnx*)
11126: version_type=qnx
11127: need_lib_prefix=no
11128: need_version=no
11129: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11130: soname_spec='${libname}${release}${shared_ext}$major'
11131: shlibpath_var=LD_LIBRARY_PATH
11132: shlibpath_overrides_runpath=no
11133: hardcode_into_libs=yes
11134: dynamic_linker='ldqnx.so'
11135: ;;
11136:
11137: openbsd*)
11138: version_type=sunos
11139: sys_lib_dlsearch_path_spec="/usr/lib"
11140: need_lib_prefix=no
11141: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11142: case $host_os in
11143: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11144: *) need_version=no ;;
11145: esac
11146: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11147: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11148: shlibpath_var=LD_LIBRARY_PATH
11149: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11150: case $host_os in
11151: openbsd2.[89] | openbsd2.[89].*)
11152: shlibpath_overrides_runpath=no
11153: ;;
11154: *)
11155: shlibpath_overrides_runpath=yes
11156: ;;
11157: esac
11158: else
11159: shlibpath_overrides_runpath=yes
11160: fi
11161: ;;
11162:
11163: os2*)
11164: libname_spec='$name'
11165: shrext_cmds=".dll"
11166: need_lib_prefix=no
11167: library_names_spec='$libname${shared_ext} $libname.a'
11168: dynamic_linker='OS/2 ld.exe'
11169: shlibpath_var=LIBPATH
11170: ;;
11171:
11172: osf3* | osf4* | osf5*)
11173: version_type=osf
11174: need_lib_prefix=no
11175: need_version=no
11176: soname_spec='${libname}${release}${shared_ext}$major'
11177: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178: shlibpath_var=LD_LIBRARY_PATH
11179: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11180: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11181: ;;
11182:
11183: rdos*)
11184: dynamic_linker=no
11185: ;;
11186:
11187: solaris*)
11188: version_type=linux
11189: need_lib_prefix=no
11190: need_version=no
11191: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192: soname_spec='${libname}${release}${shared_ext}$major'
11193: shlibpath_var=LD_LIBRARY_PATH
11194: shlibpath_overrides_runpath=yes
11195: hardcode_into_libs=yes
11196: # ldd complains unless libraries are executable
11197: postinstall_cmds='chmod +x $lib'
11198: ;;
11199:
11200: sunos4*)
11201: version_type=sunos
11202: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11203: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11204: shlibpath_var=LD_LIBRARY_PATH
11205: shlibpath_overrides_runpath=yes
11206: if test "$with_gnu_ld" = yes; then
11207: need_lib_prefix=no
11208: fi
11209: need_version=yes
11210: ;;
11211:
11212: sysv4 | sysv4.3*)
11213: version_type=linux
11214: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215: soname_spec='${libname}${release}${shared_ext}$major'
11216: shlibpath_var=LD_LIBRARY_PATH
11217: case $host_vendor in
11218: sni)
11219: shlibpath_overrides_runpath=no
11220: need_lib_prefix=no
11221: runpath_var=LD_RUN_PATH
11222: ;;
11223: siemens)
11224: need_lib_prefix=no
11225: ;;
11226: motorola)
11227: need_lib_prefix=no
11228: need_version=no
11229: shlibpath_overrides_runpath=no
11230: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11231: ;;
11232: esac
11233: ;;
11234:
11235: sysv4*MP*)
11236: if test -d /usr/nec ;then
11237: version_type=linux
11238: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11239: soname_spec='$libname${shared_ext}.$major'
11240: shlibpath_var=LD_LIBRARY_PATH
11241: fi
11242: ;;
11243:
11244: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11245: version_type=freebsd-elf
11246: need_lib_prefix=no
11247: need_version=no
11248: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11249: soname_spec='${libname}${release}${shared_ext}$major'
11250: shlibpath_var=LD_LIBRARY_PATH
11251: shlibpath_overrides_runpath=yes
11252: hardcode_into_libs=yes
11253: if test "$with_gnu_ld" = yes; then
11254: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11255: else
11256: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11257: case $host_os in
11258: sco3.2v5*)
11259: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11260: ;;
11261: esac
11262: fi
11263: sys_lib_dlsearch_path_spec='/usr/lib'
11264: ;;
11265:
11266: tpf*)
11267: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11268: version_type=linux
11269: need_lib_prefix=no
11270: need_version=no
11271: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272: shlibpath_var=LD_LIBRARY_PATH
11273: shlibpath_overrides_runpath=no
11274: hardcode_into_libs=yes
11275: ;;
11276:
11277: uts4*)
11278: version_type=linux
11279: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280: soname_spec='${libname}${release}${shared_ext}$major'
11281: shlibpath_var=LD_LIBRARY_PATH
11282: ;;
11283:
11284: *)
11285: dynamic_linker=no
11286: ;;
11287: esac
11288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11289: $as_echo "$dynamic_linker" >&6; }
11290: test "$dynamic_linker" = no && can_build_shared=no
11291:
11292: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11293: if test "$GCC" = yes; then
11294: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11295: fi
11296:
11297: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11298: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11299: fi
11300: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11301: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11302: fi
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
11347:
11348:
11349:
11350:
11351:
11352:
11353:
11354:
11355:
11356:
11357:
11358:
11359:
11360:
11361:
11362:
11363:
11364:
11365:
11366:
11367:
11368:
11369:
11370:
11371:
11372:
11373:
11374:
11375:
11376:
11377:
11378:
11379:
11380:
11381:
11382:
11383:
11384:
11385:
11386:
11387:
11388:
11389:
11390:
11391:
11392:
11393:
11394:
11395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11396: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11397: hardcode_action=
11398: if test -n "$hardcode_libdir_flag_spec" ||
11399: test -n "$runpath_var" ||
11400: test "X$hardcode_automatic" = "Xyes" ; then
11401:
11402: # We can hardcode non-existent directories.
11403: if test "$hardcode_direct" != no &&
11404: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11405: # have to relink, otherwise we might link with an installed library
11406: # when we should be linking with a yet-to-be-installed one
11407: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11408: test "$hardcode_minus_L" != no; then
11409: # Linking always hardcodes the temporary library directory.
11410: hardcode_action=relink
11411: else
11412: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11413: hardcode_action=immediate
11414: fi
11415: else
11416: # We cannot hardcode anything, or else we can only hardcode existing
11417: # directories.
11418: hardcode_action=unsupported
11419: fi
11420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11421: $as_echo "$hardcode_action" >&6; }
11422:
11423: if test "$hardcode_action" = relink ||
11424: test "$inherit_rpath" = yes; then
11425: # Fast installation is not supported
11426: enable_fast_install=no
11427: elif test "$shlibpath_overrides_runpath" = yes ||
11428: test "$enable_shared" = no; then
11429: # Fast installation is not necessary
11430: enable_fast_install=needless
11431: fi
11432:
11433:
11434:
11435:
11436:
11437:
11438: if test "x$enable_dlopen" != xyes; then
11439: enable_dlopen=unknown
11440: enable_dlopen_self=unknown
11441: enable_dlopen_self_static=unknown
11442: else
11443: lt_cv_dlopen=no
11444: lt_cv_dlopen_libs=
11445:
11446: case $host_os in
11447: beos*)
11448: lt_cv_dlopen="load_add_on"
11449: lt_cv_dlopen_libs=
11450: lt_cv_dlopen_self=yes
11451: ;;
11452:
11453: mingw* | pw32* | cegcc*)
11454: lt_cv_dlopen="LoadLibrary"
11455: lt_cv_dlopen_libs=
11456: ;;
11457:
11458: cygwin*)
11459: lt_cv_dlopen="dlopen"
11460: lt_cv_dlopen_libs=
11461: ;;
11462:
11463: darwin*)
11464: # if libdl is installed we need to link against it
11465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11466: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11467: if ${ac_cv_lib_dl_dlopen+:} false; then :
11468: $as_echo_n "(cached) " >&6
11469: else
11470: ac_check_lib_save_LIBS=$LIBS
11471: LIBS="-ldl $LIBS"
11472: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473: /* end confdefs.h. */
11474:
11475: /* Override any GCC internal prototype to avoid an error.
11476: Use char because int might match the return type of a GCC
11477: builtin and then its argument prototype would still apply. */
11478: #ifdef __cplusplus
11479: extern "C"
11480: #endif
11481: char dlopen ();
11482: int
11483: main ()
11484: {
11485: return dlopen ();
11486: ;
11487: return 0;
11488: }
11489: _ACEOF
11490: if ac_fn_c_try_link "$LINENO"; then :
11491: ac_cv_lib_dl_dlopen=yes
11492: else
11493: ac_cv_lib_dl_dlopen=no
11494: fi
11495: rm -f core conftest.err conftest.$ac_objext \
11496: conftest$ac_exeext conftest.$ac_ext
11497: LIBS=$ac_check_lib_save_LIBS
11498: fi
11499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11500: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11501: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11502: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11503: else
11504:
11505: lt_cv_dlopen="dyld"
11506: lt_cv_dlopen_libs=
11507: lt_cv_dlopen_self=yes
11508:
11509: fi
11510:
11511: ;;
11512:
11513: *)
11514: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11515: if test "x$ac_cv_func_shl_load" = xyes; then :
11516: lt_cv_dlopen="shl_load"
11517: else
11518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11519: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11520: if ${ac_cv_lib_dld_shl_load+:} false; then :
11521: $as_echo_n "(cached) " >&6
11522: else
11523: ac_check_lib_save_LIBS=$LIBS
11524: LIBS="-ldld $LIBS"
11525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526: /* end confdefs.h. */
11527:
11528: /* Override any GCC internal prototype to avoid an error.
11529: Use char because int might match the return type of a GCC
11530: builtin and then its argument prototype would still apply. */
11531: #ifdef __cplusplus
11532: extern "C"
11533: #endif
11534: char shl_load ();
11535: int
11536: main ()
11537: {
11538: return shl_load ();
11539: ;
11540: return 0;
11541: }
11542: _ACEOF
11543: if ac_fn_c_try_link "$LINENO"; then :
11544: ac_cv_lib_dld_shl_load=yes
11545: else
11546: ac_cv_lib_dld_shl_load=no
11547: fi
11548: rm -f core conftest.err conftest.$ac_objext \
11549: conftest$ac_exeext conftest.$ac_ext
11550: LIBS=$ac_check_lib_save_LIBS
11551: fi
11552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11553: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11554: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11555: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11556: else
11557: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11558: if test "x$ac_cv_func_dlopen" = xyes; then :
11559: lt_cv_dlopen="dlopen"
11560: else
11561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11562: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11563: if ${ac_cv_lib_dl_dlopen+:} false; then :
11564: $as_echo_n "(cached) " >&6
11565: else
11566: ac_check_lib_save_LIBS=$LIBS
11567: LIBS="-ldl $LIBS"
11568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569: /* end confdefs.h. */
11570:
11571: /* Override any GCC internal prototype to avoid an error.
11572: Use char because int might match the return type of a GCC
11573: builtin and then its argument prototype would still apply. */
11574: #ifdef __cplusplus
11575: extern "C"
11576: #endif
11577: char dlopen ();
11578: int
11579: main ()
11580: {
11581: return dlopen ();
11582: ;
11583: return 0;
11584: }
11585: _ACEOF
11586: if ac_fn_c_try_link "$LINENO"; then :
11587: ac_cv_lib_dl_dlopen=yes
11588: else
11589: ac_cv_lib_dl_dlopen=no
11590: fi
11591: rm -f core conftest.err conftest.$ac_objext \
11592: conftest$ac_exeext conftest.$ac_ext
11593: LIBS=$ac_check_lib_save_LIBS
11594: fi
11595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11596: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11597: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11598: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11599: else
11600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11601: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11602: if ${ac_cv_lib_svld_dlopen+:} false; then :
11603: $as_echo_n "(cached) " >&6
11604: else
11605: ac_check_lib_save_LIBS=$LIBS
11606: LIBS="-lsvld $LIBS"
11607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608: /* end confdefs.h. */
11609:
11610: /* Override any GCC internal prototype to avoid an error.
11611: Use char because int might match the return type of a GCC
11612: builtin and then its argument prototype would still apply. */
11613: #ifdef __cplusplus
11614: extern "C"
11615: #endif
11616: char dlopen ();
11617: int
11618: main ()
11619: {
11620: return dlopen ();
11621: ;
11622: return 0;
11623: }
11624: _ACEOF
11625: if ac_fn_c_try_link "$LINENO"; then :
11626: ac_cv_lib_svld_dlopen=yes
11627: else
11628: ac_cv_lib_svld_dlopen=no
11629: fi
11630: rm -f core conftest.err conftest.$ac_objext \
11631: conftest$ac_exeext conftest.$ac_ext
11632: LIBS=$ac_check_lib_save_LIBS
11633: fi
11634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11635: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11636: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11637: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11638: else
11639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11640: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11641: if ${ac_cv_lib_dld_dld_link+:} false; then :
11642: $as_echo_n "(cached) " >&6
11643: else
11644: ac_check_lib_save_LIBS=$LIBS
11645: LIBS="-ldld $LIBS"
11646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647: /* end confdefs.h. */
11648:
11649: /* Override any GCC internal prototype to avoid an error.
11650: Use char because int might match the return type of a GCC
11651: builtin and then its argument prototype would still apply. */
11652: #ifdef __cplusplus
11653: extern "C"
11654: #endif
11655: char dld_link ();
11656: int
11657: main ()
11658: {
11659: return dld_link ();
11660: ;
11661: return 0;
11662: }
11663: _ACEOF
11664: if ac_fn_c_try_link "$LINENO"; then :
11665: ac_cv_lib_dld_dld_link=yes
11666: else
11667: ac_cv_lib_dld_dld_link=no
11668: fi
11669: rm -f core conftest.err conftest.$ac_objext \
11670: conftest$ac_exeext conftest.$ac_ext
11671: LIBS=$ac_check_lib_save_LIBS
11672: fi
11673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11674: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11675: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11676: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11677: fi
11678:
11679:
11680: fi
11681:
11682:
11683: fi
11684:
11685:
11686: fi
11687:
11688:
11689: fi
11690:
11691:
11692: fi
11693:
11694: ;;
11695: esac
11696:
11697: if test "x$lt_cv_dlopen" != xno; then
11698: enable_dlopen=yes
11699: else
11700: enable_dlopen=no
11701: fi
11702:
11703: case $lt_cv_dlopen in
11704: dlopen)
11705: save_CPPFLAGS="$CPPFLAGS"
11706: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11707:
11708: save_LDFLAGS="$LDFLAGS"
11709: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11710:
11711: save_LIBS="$LIBS"
11712: LIBS="$lt_cv_dlopen_libs $LIBS"
11713:
11714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11715: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11716: if ${lt_cv_dlopen_self+:} false; then :
11717: $as_echo_n "(cached) " >&6
11718: else
11719: if test "$cross_compiling" = yes; then :
11720: lt_cv_dlopen_self=cross
11721: else
11722: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11723: lt_status=$lt_dlunknown
11724: cat > conftest.$ac_ext <<_LT_EOF
11725: #line $LINENO "configure"
11726: #include "confdefs.h"
11727:
11728: #if HAVE_DLFCN_H
11729: #include <dlfcn.h>
11730: #endif
11731:
11732: #include <stdio.h>
11733:
11734: #ifdef RTLD_GLOBAL
11735: # define LT_DLGLOBAL RTLD_GLOBAL
11736: #else
11737: # ifdef DL_GLOBAL
11738: # define LT_DLGLOBAL DL_GLOBAL
11739: # else
11740: # define LT_DLGLOBAL 0
11741: # endif
11742: #endif
11743:
11744: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11745: find out it does not work in some platform. */
11746: #ifndef LT_DLLAZY_OR_NOW
11747: # ifdef RTLD_LAZY
11748: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11749: # else
11750: # ifdef DL_LAZY
11751: # define LT_DLLAZY_OR_NOW DL_LAZY
11752: # else
11753: # ifdef RTLD_NOW
11754: # define LT_DLLAZY_OR_NOW RTLD_NOW
11755: # else
11756: # ifdef DL_NOW
11757: # define LT_DLLAZY_OR_NOW DL_NOW
11758: # else
11759: # define LT_DLLAZY_OR_NOW 0
11760: # endif
11761: # endif
11762: # endif
11763: # endif
11764: #endif
11765:
11766: /* When -fvisbility=hidden is used, assume the code has been annotated
11767: correspondingly for the symbols needed. */
11768: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11769: int fnord () __attribute__((visibility("default")));
11770: #endif
11771:
11772: int fnord () { return 42; }
11773: int main ()
11774: {
11775: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11776: int status = $lt_dlunknown;
11777:
11778: if (self)
11779: {
11780: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11781: else
11782: {
11783: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11784: else puts (dlerror ());
11785: }
11786: /* dlclose (self); */
11787: }
11788: else
11789: puts (dlerror ());
11790:
11791: return status;
11792: }
11793: _LT_EOF
11794: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11795: (eval $ac_link) 2>&5
11796: ac_status=$?
11797: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11798: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11799: (./conftest; exit; ) >&5 2>/dev/null
11800: lt_status=$?
11801: case x$lt_status in
11802: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11803: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11804: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11805: esac
11806: else :
11807: # compilation failed
11808: lt_cv_dlopen_self=no
11809: fi
11810: fi
11811: rm -fr conftest*
11812:
11813:
11814: fi
11815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11816: $as_echo "$lt_cv_dlopen_self" >&6; }
11817:
11818: if test "x$lt_cv_dlopen_self" = xyes; then
11819: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11821: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11822: if ${lt_cv_dlopen_self_static+:} false; then :
11823: $as_echo_n "(cached) " >&6
11824: else
11825: if test "$cross_compiling" = yes; then :
11826: lt_cv_dlopen_self_static=cross
11827: else
11828: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11829: lt_status=$lt_dlunknown
11830: cat > conftest.$ac_ext <<_LT_EOF
11831: #line $LINENO "configure"
11832: #include "confdefs.h"
11833:
11834: #if HAVE_DLFCN_H
11835: #include <dlfcn.h>
11836: #endif
11837:
11838: #include <stdio.h>
11839:
11840: #ifdef RTLD_GLOBAL
11841: # define LT_DLGLOBAL RTLD_GLOBAL
11842: #else
11843: # ifdef DL_GLOBAL
11844: # define LT_DLGLOBAL DL_GLOBAL
11845: # else
11846: # define LT_DLGLOBAL 0
11847: # endif
11848: #endif
11849:
11850: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11851: find out it does not work in some platform. */
11852: #ifndef LT_DLLAZY_OR_NOW
11853: # ifdef RTLD_LAZY
11854: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11855: # else
11856: # ifdef DL_LAZY
11857: # define LT_DLLAZY_OR_NOW DL_LAZY
11858: # else
11859: # ifdef RTLD_NOW
11860: # define LT_DLLAZY_OR_NOW RTLD_NOW
11861: # else
11862: # ifdef DL_NOW
11863: # define LT_DLLAZY_OR_NOW DL_NOW
11864: # else
11865: # define LT_DLLAZY_OR_NOW 0
11866: # endif
11867: # endif
11868: # endif
11869: # endif
11870: #endif
11871:
11872: /* When -fvisbility=hidden is used, assume the code has been annotated
11873: correspondingly for the symbols needed. */
11874: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11875: int fnord () __attribute__((visibility("default")));
11876: #endif
11877:
11878: int fnord () { return 42; }
11879: int main ()
11880: {
11881: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11882: int status = $lt_dlunknown;
11883:
11884: if (self)
11885: {
11886: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11887: else
11888: {
11889: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11890: else puts (dlerror ());
11891: }
11892: /* dlclose (self); */
11893: }
11894: else
11895: puts (dlerror ());
11896:
11897: return status;
11898: }
11899: _LT_EOF
11900: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11901: (eval $ac_link) 2>&5
11902: ac_status=$?
11903: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11904: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11905: (./conftest; exit; ) >&5 2>/dev/null
11906: lt_status=$?
11907: case x$lt_status in
11908: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11911: esac
11912: else :
11913: # compilation failed
11914: lt_cv_dlopen_self_static=no
11915: fi
11916: fi
11917: rm -fr conftest*
11918:
11919:
11920: fi
11921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11922: $as_echo "$lt_cv_dlopen_self_static" >&6; }
11923: fi
11924:
11925: CPPFLAGS="$save_CPPFLAGS"
11926: LDFLAGS="$save_LDFLAGS"
11927: LIBS="$save_LIBS"
11928: ;;
11929: esac
11930:
11931: case $lt_cv_dlopen_self in
11932: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933: *) enable_dlopen_self=unknown ;;
11934: esac
11935:
11936: case $lt_cv_dlopen_self_static in
11937: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938: *) enable_dlopen_self_static=unknown ;;
11939: esac
11940: fi
11941:
11942:
11943:
11944:
11945:
11946:
11947:
11948:
11949:
11950:
11951:
11952:
11953:
11954:
11955:
11956:
11957:
11958: striplib=
11959: old_striplib=
11960: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11961: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11962: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11963: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11964: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966: $as_echo "yes" >&6; }
11967: else
11968: # FIXME - insert some real tests, host_os isn't really good enough
11969: case $host_os in
11970: darwin*)
11971: if test -n "$STRIP" ; then
11972: striplib="$STRIP -x"
11973: old_striplib="$STRIP -S"
11974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11975: $as_echo "yes" >&6; }
11976: else
11977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978: $as_echo "no" >&6; }
11979: fi
11980: ;;
11981: *)
11982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983: $as_echo "no" >&6; }
11984: ;;
11985: esac
11986: fi
11987:
11988:
11989:
11990:
11991:
11992:
11993:
11994:
11995:
11996:
11997:
11998:
11999: # Report which library types will actually be built
12000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12001: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12003: $as_echo "$can_build_shared" >&6; }
12004:
12005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12006: $as_echo_n "checking whether to build shared libraries... " >&6; }
12007: test "$can_build_shared" = "no" && enable_shared=no
12008:
12009: # On AIX, shared libraries and static libraries use the same namespace, and
12010: # are all built from PIC.
12011: case $host_os in
12012: aix3*)
12013: test "$enable_shared" = yes && enable_static=no
12014: if test -n "$RANLIB"; then
12015: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12016: postinstall_cmds='$RANLIB $lib'
12017: fi
12018: ;;
12019:
12020: aix[4-9]*)
12021: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12022: test "$enable_shared" = yes && enable_static=no
12023: fi
12024: ;;
12025: esac
12026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12027: $as_echo "$enable_shared" >&6; }
12028:
12029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12030: $as_echo_n "checking whether to build static libraries... " >&6; }
12031: # Make sure either enable_shared or enable_static is yes.
12032: test "$enable_shared" = yes || enable_static=yes
12033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12034: $as_echo "$enable_static" >&6; }
12035:
12036:
12037:
12038:
12039: fi
12040: ac_ext=c
12041: ac_cpp='$CPP $CPPFLAGS'
12042: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12045:
12046: CC="$lt_save_CC"
12047:
12048:
12049:
12050:
12051:
12052:
12053:
12054:
12055:
12056:
12057:
12058:
12059:
12060: ac_config_commands="$ac_config_commands libtool"
12061:
12062:
12063:
12064:
12065: # Only expand once:
12066:
12067:
12068:
12069: # Check whether --enable-vtysh was given.
12070: if test "${enable_vtysh+set}" = set; then :
12071: enableval=$enable_vtysh;
12072: fi
12073:
12074: # Check whether --enable-ipv6 was given.
12075: if test "${enable_ipv6+set}" = set; then :
12076: enableval=$enable_ipv6;
12077: fi
12078:
12079: # Check whether --enable-doc was given.
12080: if test "${enable_doc+set}" = set; then :
12081: enableval=$enable_doc;
12082: fi
12083:
12084: # Check whether --enable-zebra was given.
12085: if test "${enable_zebra+set}" = set; then :
12086: enableval=$enable_zebra;
12087: fi
12088:
12089: # Check whether --enable-bgpd was given.
12090: if test "${enable_bgpd+set}" = set; then :
12091: enableval=$enable_bgpd;
12092: fi
12093:
12094: # Check whether --enable-ripd was given.
12095: if test "${enable_ripd+set}" = set; then :
12096: enableval=$enable_ripd;
12097: fi
12098:
12099: # Check whether --enable-ripngd was given.
12100: if test "${enable_ripngd+set}" = set; then :
12101: enableval=$enable_ripngd;
12102: fi
12103:
12104: # Check whether --enable-ospfd was given.
12105: if test "${enable_ospfd+set}" = set; then :
12106: enableval=$enable_ospfd;
12107: fi
12108:
12109: # Check whether --enable-ospf6d was given.
12110: if test "${enable_ospf6d+set}" = set; then :
12111: enableval=$enable_ospf6d;
12112: fi
12113:
12114: # Check whether --enable-watchquagga was given.
12115: if test "${enable_watchquagga+set}" = set; then :
12116: enableval=$enable_watchquagga;
12117: fi
12118:
12119: # Check whether --enable-isisd was given.
12120: if test "${enable_isisd+set}" = set; then :
12121: enableval=$enable_isisd;
12122: fi
12123:
12124: # Check whether --enable-solaris was given.
12125: if test "${enable_solaris+set}" = set; then :
12126: enableval=$enable_solaris;
12127: fi
12128:
12129: # Check whether --enable-bgp-announce was given.
12130: if test "${enable_bgp_announce+set}" = set; then :
12131: enableval=$enable_bgp_announce;
12132: fi
12133:
12134: # Check whether --enable-netlink was given.
12135: if test "${enable_netlink+set}" = set; then :
12136: enableval=$enable_netlink;
12137: fi
12138:
12139: # Check whether --enable-broken-aliases was given.
12140: if test "${enable_broken_aliases+set}" = set; then :
12141: enableval=$enable_broken_aliases;
12142: fi
12143:
12144:
12145: # Check whether --with-crypto was given.
12146: if test "${with_crypto+set}" = set; then :
12147: withval=$with_crypto;
12148: fi
12149:
12150: # Check whether --enable-snmp was given.
12151: if test "${enable_snmp+set}" = set; then :
12152: enableval=$enable_snmp;
12153: fi
12154:
12155:
12156: # Check whether --with-libpam was given.
12157: if test "${with_libpam+set}" = set; then :
12158: withval=$with_libpam;
12159: fi
12160:
12161: # Check whether --enable-tcp-zebra was given.
12162: if test "${enable_tcp_zebra+set}" = set; then :
12163: enableval=$enable_tcp_zebra;
12164: fi
12165:
12166: # Check whether --enable-opaque-lsa was given.
12167: if test "${enable_opaque_lsa+set}" = set; then :
12168: enableval=$enable_opaque_lsa;
12169: fi
12170:
12171: # Check whether --enable-ospfapi was given.
12172: if test "${enable_ospfapi+set}" = set; then :
12173: enableval=$enable_ospfapi;
12174: fi
12175:
12176: # Check whether --enable-ospfclient was given.
12177: if test "${enable_ospfclient+set}" = set; then :
12178: enableval=$enable_ospfclient;
12179: fi
12180:
12181: # Check whether --enable-ospf-te was given.
12182: if test "${enable_ospf_te+set}" = set; then :
12183: enableval=$enable_ospf_te;
12184: fi
12185:
12186: # Check whether --enable-multipath was given.
12187: if test "${enable_multipath+set}" = set; then :
12188: enableval=$enable_multipath;
12189: fi
12190:
12191: # Check whether --enable-user was given.
12192: if test "${enable_user+set}" = set; then :
12193: enableval=$enable_user;
12194: fi
12195:
12196: # Check whether --enable-group was given.
12197: if test "${enable_group+set}" = set; then :
12198: enableval=$enable_group;
12199: fi
12200:
12201: # Check whether --enable-vty_group was given.
12202: if test "${enable_vty_group+set}" = set; then :
12203: enableval=$enable_vty_group;
12204: fi
12205:
12206: # Check whether --enable-configfile_mask was given.
12207: if test "${enable_configfile_mask+set}" = set; then :
12208: enableval=$enable_configfile_mask;
12209: fi
12210:
12211: # Check whether --enable-logfile_mask was given.
12212: if test "${enable_logfile_mask+set}" = set; then :
12213: enableval=$enable_logfile_mask;
12214: fi
12215:
12216:
12217: # Check whether --enable-rtadv was given.
12218: if test "${enable_rtadv+set}" = set; then :
12219: enableval=$enable_rtadv;
12220: fi
12221:
12222: # Check whether --enable-irdp was given.
12223: if test "${enable_irdp+set}" = set; then :
12224: enableval=$enable_irdp;
12225: fi
12226:
12227: # Check whether --enable-isis_topology was given.
12228: if test "${enable_isis_topology+set}" = set; then :
12229: enableval=$enable_isis_topology;
12230: fi
12231:
12232: # Check whether --enable-capabilities was given.
12233: if test "${enable_capabilities+set}" = set; then :
12234: enableval=$enable_capabilities;
12235: fi
12236:
12237: # Check whether --enable-gcc_ultra_verbose was given.
12238: if test "${enable_gcc_ultra_verbose+set}" = set; then :
12239: enableval=$enable_gcc_ultra_verbose;
12240: fi
12241:
12242: # Check whether --enable-linux24_tcp_md5 was given.
12243: if test "${enable_linux24_tcp_md5+set}" = set; then :
12244: enableval=$enable_linux24_tcp_md5;
12245: fi
12246:
12247: # Check whether --enable-gcc-rdynamic was given.
12248: if test "${enable_gcc_rdynamic+set}" = set; then :
12249: enableval=$enable_gcc_rdynamic;
12250: fi
12251:
12252: # Check whether --enable-time-check was given.
12253: if test "${enable_time_check+set}" = set; then :
12254: enableval=$enable_time_check;
12255: fi
12256:
12257: # Check whether --enable-pcreposix was given.
12258: if test "${enable_pcreposix+set}" = set; then :
12259: enableval=$enable_pcreposix;
12260: fi
12261:
12262:
12263: if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
12264: CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
12265: CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
12266: CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
12267: CFLAGS="${CFLAGS} -Wpacked -Wpadded"
12268: fi
12269:
12270: if test x"${enable_gcc_rdynamic}" = x"yes" ; then
12271: LDFLAGS="${LDFLAGS} -rdynamic"
12272: fi
12273:
12274: if test x"${enable_time_check}" != x"no" ; then
12275: if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then
12276:
12277: $as_echo "#define CONSUMED_TIME_CHECK 5000000" >>confdefs.h
12278:
12279: else
12280:
12281: cat >>confdefs.h <<_ACEOF
12282: #define CONSUMED_TIME_CHECK $enable_time_check
12283: _ACEOF
12284:
12285: fi
12286: fi
12287:
12288: if test "${enable_broken_aliases}" = "yes"; then
12289: if test "${enable_netlink}" = "yes"
12290: then
12291: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12292: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12293: as_fn_error $? "Sorry you can not use netlink with broken aliases
12294: See \`config.log' for more details" "$LINENO" 5; }
12295: fi
12296:
12297: $as_echo "#define HAVE_BROKEN_ALIASES /**/" >>confdefs.h
12298:
12299: enable_netlink=no
12300: fi
12301:
12302: if test "${enable_tcp_zebra}" = "yes"; then
12303:
12304: $as_echo "#define HAVE_TCP_ZEBRA /**/" >>confdefs.h
12305:
12306: fi
12307:
12308: if test "${enable_opaque_lsa}" != "no"; then
12309:
12310: $as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h
12311:
12312: fi
12313:
12314: if test "${enable_ospf_te}" != "no"; then
12315:
12316: $as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h
12317:
12318:
12319: $as_echo "#define HAVE_OSPF_TE /**/" >>confdefs.h
12320:
12321: fi
12322:
12323: if test "${enable_linux24_tcp_md5}" = "yes"; then
12324:
12325: $as_echo "#define HAVE_TCP_MD5_LINUX24 /**/" >>confdefs.h
12326:
12327: fi
12328:
12329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zebra should be configurable to send Route Advertisements" >&5
12330: $as_echo_n "checking if zebra should be configurable to send Route Advertisements... " >&6; }
12331: if test "${enable_rtadv}" != "no"; then
12332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12333: $as_echo "yes" >&6; }
12334:
12335: $as_echo "#define HAVE_RTADV /**/" >>confdefs.h
12336:
12337: else
12338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339: $as_echo "no" >&6; }
12340: fi
12341:
12342: if test "${enable_irdp}" = "yes"; then
12343:
12344: $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
12345:
12346: fi
12347:
12348: if test "${enable_isisd}" = "yes" && test "${enable_isis_topology}" = yes; then
12349:
12350: $as_echo "#define TOPOLOGY_GENERATE /**/" >>confdefs.h
12351:
12352: ISIS_TOPOLOGY_INCLUDES="-I./topology"
12353: ISIS_TOPOLOGY_DIR="topology"
12354: ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
12355: fi
12356:
12357:
12358:
12359:
12360:
12361: if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
12362: enable_user="quagga"
12363: elif test "${enable_user}" = "no"; then
12364: enable_user="root"
12365: fi
12366:
12367: if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then
12368: enable_group="quagga"
12369: elif test "${enable_group}" = "no"; then
12370: enable_group="root"
12371: fi
12372:
12373: if test x"${enable_vty_group}" = x"yes" ; then
12374: as_fn_error $? "--enable-vty-group requires a group as argument, not yes" "$LINENO" 5
12375: elif test x"${enable_vty_group}" != x""; then
12376: if test x"${enable_vty_group}" != x"no"; then
12377:
12378: cat >>confdefs.h <<_ACEOF
12379: #define VTY_GROUP "${enable_vty_group}"
12380: _ACEOF
12381:
12382: fi
12383: fi
12384:
12385:
12386:
12387:
12388: cat >>confdefs.h <<_ACEOF
12389: #define QUAGGA_USER "${enable_user}"
12390: _ACEOF
12391:
12392:
12393: cat >>confdefs.h <<_ACEOF
12394: #define QUAGGA_GROUP "${enable_group}"
12395: _ACEOF
12396:
12397:
12398: enable_configfile_mask=${enable_configfile_mask:-0600}
12399:
12400: cat >>confdefs.h <<_ACEOF
12401: #define CONFIGFILE_MASK ${enable_configfile_mask}
12402: _ACEOF
12403:
12404:
12405: enable_logfile_mask=${enable_logfile_mask:-0600}
12406:
12407: cat >>confdefs.h <<_ACEOF
12408: #define LOGFILE_MASK ${enable_logfile_mask}
12409: _ACEOF
12410:
12411:
12412: MULTIPATH_NUM=1
12413:
12414: case "${enable_multipath}" in
12415: [0-9]|[1-9][0-9])
12416: MULTIPATH_NUM="${enable_multipath}"
12417: ;;
12418: "")
12419: ;;
12420: *)
12421: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12422: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12423: as_fn_error $? "Please specify digit to enable multipath ARG
12424: See \`config.log' for more details" "$LINENO" 5; }
12425: ;;
12426: esac
12427:
12428:
12429:
12430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12431: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12432: if ${ac_cv_c_const+:} false; then :
12433: $as_echo_n "(cached) " >&6
12434: else
12435: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436: /* end confdefs.h. */
12437:
12438: int
12439: main ()
12440: {
12441: /* FIXME: Include the comments suggested by Paul. */
12442: #ifndef __cplusplus
12443: /* Ultrix mips cc rejects this. */
12444: typedef int charset[2];
12445: const charset cs;
12446: /* SunOS 4.1.1 cc rejects this. */
12447: char const *const *pcpcc;
12448: char **ppc;
12449: /* NEC SVR4.0.2 mips cc rejects this. */
12450: struct point {int x, y;};
12451: static struct point const zero = {0,0};
12452: /* AIX XL C 1.02.0.0 rejects this.
12453: It does not let you subtract one const X* pointer from another in
12454: an arm of an if-expression whose if-part is not a constant
12455: expression */
12456: const char *g = "string";
12457: pcpcc = &g + (g ? g-g : 0);
12458: /* HPUX 7.0 cc rejects these. */
12459: ++pcpcc;
12460: ppc = (char**) pcpcc;
12461: pcpcc = (char const *const *) ppc;
12462: { /* SCO 3.2v4 cc rejects this. */
12463: char *t;
12464: char const *s = 0 ? (char *) 0 : (char const *) 0;
12465:
12466: *t++ = 0;
12467: if (s) return 0;
12468: }
12469: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12470: int x[] = {25, 17};
12471: const int *foo = &x[0];
12472: ++foo;
12473: }
12474: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12475: typedef const int *iptr;
12476: iptr p = 0;
12477: ++p;
12478: }
12479: { /* AIX XL C 1.02.0.0 rejects this saying
12480: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12481: struct s { int j; const int *ap[3]; };
12482: struct s *b; b->j = 5;
12483: }
12484: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12485: const int foo = 10;
12486: if (!foo) return 0;
12487: }
12488: return !cs[0] && !zero.x;
12489: #endif
12490:
12491: ;
12492: return 0;
12493: }
12494: _ACEOF
12495: if ac_fn_c_try_compile "$LINENO"; then :
12496: ac_cv_c_const=yes
12497: else
12498: ac_cv_c_const=no
12499: fi
12500: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501: fi
12502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12503: $as_echo "$ac_cv_c_const" >&6; }
12504: if test $ac_cv_c_const = no; then
12505:
12506: $as_echo "#define const /**/" >>confdefs.h
12507:
12508: fi
12509:
12510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12511: $as_echo_n "checking for inline... " >&6; }
12512: if ${ac_cv_c_inline+:} false; then :
12513: $as_echo_n "(cached) " >&6
12514: else
12515: ac_cv_c_inline=no
12516: for ac_kw in inline __inline__ __inline; do
12517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518: /* end confdefs.h. */
12519: #ifndef __cplusplus
12520: typedef int foo_t;
12521: static $ac_kw foo_t static_foo () {return 0; }
12522: $ac_kw foo_t foo () {return 0; }
12523: #endif
12524:
12525: _ACEOF
12526: if ac_fn_c_try_compile "$LINENO"; then :
12527: ac_cv_c_inline=$ac_kw
12528: fi
12529: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530: test "$ac_cv_c_inline" != no && break
12531: done
12532:
12533: fi
12534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12535: $as_echo "$ac_cv_c_inline" >&6; }
12536:
12537: case $ac_cv_c_inline in
12538: inline | yes) ;;
12539: *)
12540: case $ac_cv_c_inline in
12541: no) ac_val=;;
12542: *) ac_val=$ac_cv_c_inline;;
12543: esac
12544: cat >>confdefs.h <<_ACEOF
12545: #ifndef __cplusplus
12546: #define inline $ac_val
12547: #endif
12548: _ACEOF
12549: ;;
12550: esac
12551:
12552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12553: $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12554: if ${ac_cv_c_restrict+:} false; then :
12555: $as_echo_n "(cached) " >&6
12556: else
12557: ac_cv_c_restrict=no
12558: # The order here caters to the fact that C++ does not require restrict.
12559: for ac_kw in __restrict __restrict__ _Restrict restrict; do
12560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561: /* end confdefs.h. */
12562: typedef int * int_ptr;
12563: int foo (int_ptr $ac_kw ip) {
12564: return ip[0];
12565: }
12566: int
12567: main ()
12568: {
12569: int s[1];
12570: int * $ac_kw t = s;
12571: t[0] = 0;
12572: return foo(t)
12573: ;
12574: return 0;
12575: }
12576: _ACEOF
12577: if ac_fn_c_try_compile "$LINENO"; then :
12578: ac_cv_c_restrict=$ac_kw
12579: fi
12580: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581: test "$ac_cv_c_restrict" != no && break
12582: done
12583:
12584: fi
12585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12586: $as_echo "$ac_cv_c_restrict" >&6; }
12587:
12588: case $ac_cv_c_restrict in
12589: restrict) ;;
12590: no) $as_echo "#define restrict /**/" >>confdefs.h
12591: ;;
12592: *) cat >>confdefs.h <<_ACEOF
12593: #define restrict $ac_cv_c_restrict
12594: _ACEOF
12595: ;;
12596: esac
12597:
12598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12599: $as_echo_n "checking for working volatile... " >&6; }
12600: if ${ac_cv_c_volatile+:} false; then :
12601: $as_echo_n "(cached) " >&6
12602: else
12603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604: /* end confdefs.h. */
12605:
12606: int
12607: main ()
12608: {
12609:
12610: volatile int x;
12611: int * volatile y = (int *) 0;
12612: return !x && !y;
12613: ;
12614: return 0;
12615: }
12616: _ACEOF
12617: if ac_fn_c_try_compile "$LINENO"; then :
12618: ac_cv_c_volatile=yes
12619: else
12620: ac_cv_c_volatile=no
12621: fi
12622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623: fi
12624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12625: $as_echo "$ac_cv_c_volatile" >&6; }
12626: if test $ac_cv_c_volatile = no; then
12627:
12628: $as_echo "#define volatile /**/" >>confdefs.h
12629:
12630: fi
12631:
12632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12633: $as_echo_n "checking for ANSI C header files... " >&6; }
12634: if ${ac_cv_header_stdc+:} false; then :
12635: $as_echo_n "(cached) " >&6
12636: else
12637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638: /* end confdefs.h. */
12639: #include <stdlib.h>
12640: #include <stdarg.h>
12641: #include <string.h>
12642: #include <float.h>
12643:
12644: int
12645: main ()
12646: {
12647:
12648: ;
12649: return 0;
12650: }
12651: _ACEOF
12652: if ac_fn_c_try_compile "$LINENO"; then :
12653: ac_cv_header_stdc=yes
12654: else
12655: ac_cv_header_stdc=no
12656: fi
12657: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658:
12659: if test $ac_cv_header_stdc = yes; then
12660: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662: /* end confdefs.h. */
12663: #include <string.h>
12664:
12665: _ACEOF
12666: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12667: $EGREP "memchr" >/dev/null 2>&1; then :
12668:
12669: else
12670: ac_cv_header_stdc=no
12671: fi
12672: rm -f conftest*
12673:
12674: fi
12675:
12676: if test $ac_cv_header_stdc = yes; then
12677: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12678: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679: /* end confdefs.h. */
12680: #include <stdlib.h>
12681:
12682: _ACEOF
12683: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12684: $EGREP "free" >/dev/null 2>&1; then :
12685:
12686: else
12687: ac_cv_header_stdc=no
12688: fi
12689: rm -f conftest*
12690:
12691: fi
12692:
12693: if test $ac_cv_header_stdc = yes; then
12694: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12695: if test "$cross_compiling" = yes; then :
12696: :
12697: else
12698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699: /* end confdefs.h. */
12700: #include <ctype.h>
12701: #include <stdlib.h>
12702: #if ((' ' & 0x0FF) == 0x020)
12703: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12704: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12705: #else
12706: # define ISLOWER(c) \
12707: (('a' <= (c) && (c) <= 'i') \
12708: || ('j' <= (c) && (c) <= 'r') \
12709: || ('s' <= (c) && (c) <= 'z'))
12710: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12711: #endif
12712:
12713: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12714: int
12715: main ()
12716: {
12717: int i;
12718: for (i = 0; i < 256; i++)
12719: if (XOR (islower (i), ISLOWER (i))
12720: || toupper (i) != TOUPPER (i))
12721: return 2;
12722: return 0;
12723: }
12724: _ACEOF
12725: if ac_fn_c_try_run "$LINENO"; then :
12726:
12727: else
12728: ac_cv_header_stdc=no
12729: fi
12730: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12731: conftest.$ac_objext conftest.beam conftest.$ac_ext
12732: fi
12733:
12734: fi
12735: fi
12736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12737: $as_echo "$ac_cv_header_stdc" >&6; }
12738: if test $ac_cv_header_stdc = yes; then
12739:
12740: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12741:
12742: fi
12743:
12744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12745: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12746: if ${ac_cv_header_time+:} false; then :
12747: $as_echo_n "(cached) " >&6
12748: else
12749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750: /* end confdefs.h. */
12751: #include <sys/types.h>
12752: #include <sys/time.h>
12753: #include <time.h>
12754:
12755: int
12756: main ()
12757: {
12758: if ((struct tm *) 0)
12759: return 0;
12760: ;
12761: return 0;
12762: }
12763: _ACEOF
12764: if ac_fn_c_try_compile "$LINENO"; then :
12765: ac_cv_header_time=yes
12766: else
12767: ac_cv_header_time=no
12768: fi
12769: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770: fi
12771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12772: $as_echo "$ac_cv_header_time" >&6; }
12773: if test $ac_cv_header_time = yes; then
12774:
12775: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12776:
12777: fi
12778:
12779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12780: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12781: if ${ac_cv_header_sys_wait_h+:} false; then :
12782: $as_echo_n "(cached) " >&6
12783: else
12784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785: /* end confdefs.h. */
12786: #include <sys/types.h>
12787: #include <sys/wait.h>
12788: #ifndef WEXITSTATUS
12789: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12790: #endif
12791: #ifndef WIFEXITED
12792: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12793: #endif
12794:
12795: int
12796: main ()
12797: {
12798: int s;
12799: wait (&s);
12800: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12801: ;
12802: return 0;
12803: }
12804: _ACEOF
12805: if ac_fn_c_try_compile "$LINENO"; then :
12806: ac_cv_header_sys_wait_h=yes
12807: else
12808: ac_cv_header_sys_wait_h=no
12809: fi
12810: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811: fi
12812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12813: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12814: if test $ac_cv_header_sys_wait_h = yes; then
12815:
12816: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12817:
12818: fi
12819:
12820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12821: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12822: if ${ac_cv_type_uid_t+:} false; then :
12823: $as_echo_n "(cached) " >&6
12824: else
12825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826: /* end confdefs.h. */
12827: #include <sys/types.h>
12828:
12829: _ACEOF
12830: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12831: $EGREP "uid_t" >/dev/null 2>&1; then :
12832: ac_cv_type_uid_t=yes
12833: else
12834: ac_cv_type_uid_t=no
12835: fi
12836: rm -f conftest*
12837:
12838: fi
12839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12840: $as_echo "$ac_cv_type_uid_t" >&6; }
12841: if test $ac_cv_type_uid_t = no; then
12842:
12843: $as_echo "#define uid_t int" >>confdefs.h
12844:
12845:
12846: $as_echo "#define gid_t int" >>confdefs.h
12847:
12848: fi
12849:
12850: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12851: if test "x$ac_cv_type_mode_t" = xyes; then :
12852:
12853: else
12854:
12855: cat >>confdefs.h <<_ACEOF
12856: #define mode_t int
12857: _ACEOF
12858:
12859: fi
12860:
12861: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12862: if test "x$ac_cv_type_size_t" = xyes; then :
12863:
12864: else
12865:
12866: cat >>confdefs.h <<_ACEOF
12867: #define size_t unsigned int
12868: _ACEOF
12869:
12870: fi
12871:
12872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12873: $as_echo_n "checking return type of signal handlers... " >&6; }
12874: if ${ac_cv_type_signal+:} false; then :
12875: $as_echo_n "(cached) " >&6
12876: else
12877: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878: /* end confdefs.h. */
12879: #include <sys/types.h>
12880: #include <signal.h>
12881:
12882: int
12883: main ()
12884: {
12885: return *(signal (0, 0)) (0) == 1;
12886: ;
12887: return 0;
12888: }
12889: _ACEOF
12890: if ac_fn_c_try_compile "$LINENO"; then :
12891: ac_cv_type_signal=int
12892: else
12893: ac_cv_type_signal=void
12894: fi
12895: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896: fi
12897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12898: $as_echo "$ac_cv_type_signal" >&6; }
12899:
12900: cat >>confdefs.h <<_ACEOF
12901: #define RETSIGTYPE $ac_cv_type_signal
12902: _ACEOF
12903:
12904:
12905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12906: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12907: if ${ac_cv_struct_tm+:} false; then :
12908: $as_echo_n "(cached) " >&6
12909: else
12910: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911: /* end confdefs.h. */
12912: #include <sys/types.h>
12913: #include <time.h>
12914:
12915: int
12916: main ()
12917: {
12918: struct tm tm;
12919: int *p = &tm.tm_sec;
12920: return !p;
12921: ;
12922: return 0;
12923: }
12924: _ACEOF
12925: if ac_fn_c_try_compile "$LINENO"; then :
12926: ac_cv_struct_tm=time.h
12927: else
12928: ac_cv_struct_tm=sys/time.h
12929: fi
12930: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931: fi
12932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12933: $as_echo "$ac_cv_struct_tm" >&6; }
12934: if test $ac_cv_struct_tm = sys/time.h; then
12935:
12936: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12937:
12938: fi
12939:
12940:
12941: for ac_header in stropts.h sys/ksym.h sys/times.h sys/select.h \
12942: sys/types.h linux/version.h netdb.h asm/types.h \
12943: sys/param.h limits.h signal.h \
12944: sys/socket.h netinet/in.h time.h sys/time.h
12945: do :
12946: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12947: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12948: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12949: cat >>confdefs.h <<_ACEOF
12950: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12951: _ACEOF
12952:
12953: fi
12954:
12955: done
12956:
12957:
12958:
12959:
12960: for ac_header in net/if.h
12961: do :
12962: ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
12963: #define _XPG4_2
12964: #define __EXTENSIONS__
12965: #endif
12966: #include <stdio.h>
12967: #if STDC_HEADERS
12968: # include <stdlib.h>
12969: # include <stddef.h>
12970: #else
12971: # if HAVE_STDLIB_H
12972: # include <stdlib.h>
12973: # endif
12974: #endif
12975: #if HAVE_SYS_TYPES_H
12976: # include <sys/types.h>
12977: #endif
12978: /* sys/conf.h depends on param.h on FBSD at least */
12979: #if HAVE_SYS_PARAM_H
12980: # include <sys/param.h>
12981: #endif
12982: /* Required for MAXSIG */
12983: #if HAVE_SIGNAL_H
12984: # include <signal.h>
12985: #endif
12986: #if HAVE_SYS_SOCKET_H
12987: # include <sys/socket.h>
12988: #endif
12989: #if HAVE_NETINET_IN_H
12990: # include <netinet/in.h>
12991: #endif
12992: #ifdef TIME_WITH_SYS_TIME
12993: # include <sys/time.h>
12994: # include <time.h>
12995: #else
12996: # ifdef HAVE_SYS_TIME_H
12997: # include <sys/time.h>
12998: # else
12999: # include <time.h>
13000: # endif
13001: #endif /* TIME_WITH_SYS_TIME */
13002:
13003: "
13004: if test "x$ac_cv_header_net_if_h" = xyes; then :
13005: cat >>confdefs.h <<_ACEOF
13006: #define HAVE_NET_IF_H 1
13007: _ACEOF
13008:
13009: fi
13010:
13011: done
13012:
13013:
13014:
13015:
13016: for ac_header in net/if_var.h
13017: do :
13018: ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#ifdef SUNOS_5
13019: #define _XPG4_2
13020: #define __EXTENSIONS__
13021: #endif
13022: #include <stdio.h>
13023: #if STDC_HEADERS
13024: # include <stdlib.h>
13025: # include <stddef.h>
13026: #else
13027: # if HAVE_STDLIB_H
13028: # include <stdlib.h>
13029: # endif
13030: #endif
13031: #if HAVE_SYS_TYPES_H
13032: # include <sys/types.h>
13033: #endif
13034: /* sys/conf.h depends on param.h on FBSD at least */
13035: #if HAVE_SYS_PARAM_H
13036: # include <sys/param.h>
13037: #endif
13038: /* Required for MAXSIG */
13039: #if HAVE_SIGNAL_H
13040: # include <signal.h>
13041: #endif
13042: #if HAVE_SYS_SOCKET_H
13043: # include <sys/socket.h>
13044: #endif
13045: #if HAVE_NETINET_IN_H
13046: # include <netinet/in.h>
13047: #endif
13048: #ifdef TIME_WITH_SYS_TIME
13049: # include <sys/time.h>
13050: # include <time.h>
13051: #else
13052: # ifdef HAVE_SYS_TIME_H
13053: # include <sys/time.h>
13054: # else
13055: # include <time.h>
13056: # endif
13057: #endif /* TIME_WITH_SYS_TIME */
13058:
13059: #if HAVE_NET_IF_H
13060: # include <net/if.h>
13061: #endif
13062:
13063: "
13064: if test "x$ac_cv_header_net_if_var_h" = xyes; then :
13065: cat >>confdefs.h <<_ACEOF
13066: #define HAVE_NET_IF_VAR_H 1
13067: _ACEOF
13068:
13069: fi
13070:
13071: done
13072:
13073:
13074:
13075: for ac_header in sys/un.h netinet/in_systm.h netinet/in_var.h \
13076: net/if_dl.h net/netopt.h net/route.h \
13077: inet/nd.h arpa/inet.h netinet/ip_icmp.h \
13078: fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \
13079: sys/sysctl.h sys/sockio.h kvm.h sys/conf.h
13080: do :
13081: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13082: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
13083: #define _XPG4_2
13084: #define __EXTENSIONS__
13085: #endif
13086: #include <stdio.h>
13087: #if STDC_HEADERS
13088: # include <stdlib.h>
13089: # include <stddef.h>
13090: #else
13091: # if HAVE_STDLIB_H
13092: # include <stdlib.h>
13093: # endif
13094: #endif
13095: #if HAVE_SYS_TYPES_H
13096: # include <sys/types.h>
13097: #endif
13098: /* sys/conf.h depends on param.h on FBSD at least */
13099: #if HAVE_SYS_PARAM_H
13100: # include <sys/param.h>
13101: #endif
13102: /* Required for MAXSIG */
13103: #if HAVE_SIGNAL_H
13104: # include <signal.h>
13105: #endif
13106: #if HAVE_SYS_SOCKET_H
13107: # include <sys/socket.h>
13108: #endif
13109: #if HAVE_NETINET_IN_H
13110: # include <netinet/in.h>
13111: #endif
13112: #ifdef TIME_WITH_SYS_TIME
13113: # include <sys/time.h>
13114: # include <time.h>
13115: #else
13116: # ifdef HAVE_SYS_TIME_H
13117: # include <sys/time.h>
13118: # else
13119: # include <time.h>
13120: # endif
13121: #endif /* TIME_WITH_SYS_TIME */
13122:
13123: #if HAVE_NET_IF_H
13124: # include <net/if.h>
13125: #endif
13126:
13127: #if HAVE_NET_IF_VAR_H
13128: # include <net/if_var.h>
13129: #endif
13130:
13131: "
13132: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13133: cat >>confdefs.h <<_ACEOF
13134: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13135: _ACEOF
13136:
13137: fi
13138:
13139: done
13140:
13141:
13142: for ac_header in ucontext.h
13143: do :
13144: ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#ifndef __USE_GNU
13145: #define __USE_GNU
13146: #endif /* __USE_GNU */
13147: #ifdef SUNOS_5
13148: #define _XPG4_2
13149: #define __EXTENSIONS__
13150: #endif
13151: #include <stdio.h>
13152: #if STDC_HEADERS
13153: # include <stdlib.h>
13154: # include <stddef.h>
13155: #else
13156: # if HAVE_STDLIB_H
13157: # include <stdlib.h>
13158: # endif
13159: #endif
13160: #if HAVE_SYS_TYPES_H
13161: # include <sys/types.h>
13162: #endif
13163: /* sys/conf.h depends on param.h on FBSD at least */
13164: #if HAVE_SYS_PARAM_H
13165: # include <sys/param.h>
13166: #endif
13167: /* Required for MAXSIG */
13168: #if HAVE_SIGNAL_H
13169: # include <signal.h>
13170: #endif
13171: #if HAVE_SYS_SOCKET_H
13172: # include <sys/socket.h>
13173: #endif
13174: #if HAVE_NETINET_IN_H
13175: # include <netinet/in.h>
13176: #endif
13177: #ifdef TIME_WITH_SYS_TIME
13178: # include <sys/time.h>
13179: # include <time.h>
13180: #else
13181: # ifdef HAVE_SYS_TIME_H
13182: # include <sys/time.h>
13183: # else
13184: # include <time.h>
13185: # endif
13186: #endif /* TIME_WITH_SYS_TIME */
13187:
13188: #if HAVE_NET_IF_H
13189: # include <net/if.h>
13190: #endif
13191:
13192: #if HAVE_NET_IF_VAR_H
13193: # include <net/if_var.h>
13194: #endif
13195:
13196:
13197: "
13198: if test "x$ac_cv_header_ucontext_h" = xyes; then :
13199: cat >>confdefs.h <<_ACEOF
13200: #define HAVE_UCONTEXT_H 1
13201: _ACEOF
13202:
13203: fi
13204:
13205: done
13206:
13207:
13208:
13209:
13210: case "$host" in
13211: *-sunos5.[6-7]* | *-solaris2.[6-7]*)
13212: opsys=sol2-6
13213:
13214: $as_echo "#define SUNOS_56 1" >>confdefs.h
13215:
13216:
13217: $as_echo "#define SUNOS_5 1" >>confdefs.h
13218:
13219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
13220: $as_echo_n "checking for main in -lxnet... " >&6; }
13221: if ${ac_cv_lib_xnet_main+:} false; then :
13222: $as_echo_n "(cached) " >&6
13223: else
13224: ac_check_lib_save_LIBS=$LIBS
13225: LIBS="-lxnet $LIBS"
13226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227: /* end confdefs.h. */
13228:
13229:
13230: int
13231: main ()
13232: {
13233: return main ();
13234: ;
13235: return 0;
13236: }
13237: _ACEOF
13238: if ac_fn_c_try_link "$LINENO"; then :
13239: ac_cv_lib_xnet_main=yes
13240: else
13241: ac_cv_lib_xnet_main=no
13242: fi
13243: rm -f core conftest.err conftest.$ac_objext \
13244: conftest$ac_exeext conftest.$ac_ext
13245: LIBS=$ac_check_lib_save_LIBS
13246: fi
13247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
13248: $as_echo "$ac_cv_lib_xnet_main" >&6; }
13249: if test "x$ac_cv_lib_xnet_main" = xyes; then :
13250: cat >>confdefs.h <<_ACEOF
13251: #define HAVE_LIBXNET 1
13252: _ACEOF
13253:
13254: LIBS="-lxnet $LIBS"
13255:
13256: fi
13257:
13258: CURSES=-lcurses
13259: ;;
13260: *-sunos5.[8-9] \
13261: | *-sunos5.1[0-9] \
13262: | *-sunos5.1[0-9].[0-9] \
13263: | *-solaris2.[8-9] \
13264: | *-solaris2.1[0-9] \
13265: | *-solaris2.1[0-9].[0-9])
13266: opsys=sol8
13267:
13268: $as_echo "#define SUNOS_59 1" >>confdefs.h
13269:
13270:
13271: $as_echo "#define SUNOS_5 1" >>confdefs.h
13272:
13273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13274: $as_echo_n "checking for main in -lsocket... " >&6; }
13275: if ${ac_cv_lib_socket_main+:} false; then :
13276: $as_echo_n "(cached) " >&6
13277: else
13278: ac_check_lib_save_LIBS=$LIBS
13279: LIBS="-lsocket $LIBS"
13280: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281: /* end confdefs.h. */
13282:
13283:
13284: int
13285: main ()
13286: {
13287: return main ();
13288: ;
13289: return 0;
13290: }
13291: _ACEOF
13292: if ac_fn_c_try_link "$LINENO"; then :
13293: ac_cv_lib_socket_main=yes
13294: else
13295: ac_cv_lib_socket_main=no
13296: fi
13297: rm -f core conftest.err conftest.$ac_objext \
13298: conftest$ac_exeext conftest.$ac_ext
13299: LIBS=$ac_check_lib_save_LIBS
13300: fi
13301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13302: $as_echo "$ac_cv_lib_socket_main" >&6; }
13303: if test "x$ac_cv_lib_socket_main" = xyes; then :
13304: cat >>confdefs.h <<_ACEOF
13305: #define HAVE_LIBSOCKET 1
13306: _ACEOF
13307:
13308: LIBS="-lsocket $LIBS"
13309:
13310: fi
13311:
13312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13313: $as_echo_n "checking for main in -lnsl... " >&6; }
13314: if ${ac_cv_lib_nsl_main+:} false; then :
13315: $as_echo_n "(cached) " >&6
13316: else
13317: ac_check_lib_save_LIBS=$LIBS
13318: LIBS="-lnsl $LIBS"
13319: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320: /* end confdefs.h. */
13321:
13322:
13323: int
13324: main ()
13325: {
13326: return main ();
13327: ;
13328: return 0;
13329: }
13330: _ACEOF
13331: if ac_fn_c_try_link "$LINENO"; then :
13332: ac_cv_lib_nsl_main=yes
13333: else
13334: ac_cv_lib_nsl_main=no
13335: fi
13336: rm -f core conftest.err conftest.$ac_objext \
13337: conftest$ac_exeext conftest.$ac_ext
13338: LIBS=$ac_check_lib_save_LIBS
13339: fi
13340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13341: $as_echo "$ac_cv_lib_nsl_main" >&6; }
13342: if test "x$ac_cv_lib_nsl_main" = xyes; then :
13343: cat >>confdefs.h <<_ACEOF
13344: #define HAVE_LIBNSL 1
13345: _ACEOF
13346:
13347: LIBS="-lnsl $LIBS"
13348:
13349: fi
13350:
13351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lumem" >&5
13352: $as_echo_n "checking for main in -lumem... " >&6; }
13353: if ${ac_cv_lib_umem_main+:} false; then :
13354: $as_echo_n "(cached) " >&6
13355: else
13356: ac_check_lib_save_LIBS=$LIBS
13357: LIBS="-lumem $LIBS"
13358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359: /* end confdefs.h. */
13360:
13361:
13362: int
13363: main ()
13364: {
13365: return main ();
13366: ;
13367: return 0;
13368: }
13369: _ACEOF
13370: if ac_fn_c_try_link "$LINENO"; then :
13371: ac_cv_lib_umem_main=yes
13372: else
13373: ac_cv_lib_umem_main=no
13374: fi
13375: rm -f core conftest.err conftest.$ac_objext \
13376: conftest$ac_exeext conftest.$ac_ext
13377: LIBS=$ac_check_lib_save_LIBS
13378: fi
13379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_main" >&5
13380: $as_echo "$ac_cv_lib_umem_main" >&6; }
13381: if test "x$ac_cv_lib_umem_main" = xyes; then :
13382: cat >>confdefs.h <<_ACEOF
13383: #define HAVE_LIBUMEM 1
13384: _ACEOF
13385:
13386: LIBS="-lumem $LIBS"
13387:
13388: fi
13389:
13390: for ac_func in printstack
13391: do :
13392: ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack"
13393: if test "x$ac_cv_func_printstack" = xyes; then :
13394: cat >>confdefs.h <<_ACEOF
13395: #define HAVE_PRINTSTACK 1
13396: _ACEOF
13397:
13398: $as_echo "#define HAVE_PRINTSTACK 1" >>confdefs.h
13399:
13400:
13401: $as_echo "#define HAVE_STACK_TRACE 1" >>confdefs.h
13402:
13403:
13404: fi
13405: done
13406:
13407: CURSES=-lcurses
13408: ;;
13409: *-sunos5* | *-solaris2*)
13410:
13411: $as_echo "#define SUNOS_5 /**/" >>confdefs.h
13412:
13413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13414: $as_echo_n "checking for main in -lsocket... " >&6; }
13415: if ${ac_cv_lib_socket_main+:} false; then :
13416: $as_echo_n "(cached) " >&6
13417: else
13418: ac_check_lib_save_LIBS=$LIBS
13419: LIBS="-lsocket $LIBS"
13420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421: /* end confdefs.h. */
13422:
13423:
13424: int
13425: main ()
13426: {
13427: return main ();
13428: ;
13429: return 0;
13430: }
13431: _ACEOF
13432: if ac_fn_c_try_link "$LINENO"; then :
13433: ac_cv_lib_socket_main=yes
13434: else
13435: ac_cv_lib_socket_main=no
13436: fi
13437: rm -f core conftest.err conftest.$ac_objext \
13438: conftest$ac_exeext conftest.$ac_ext
13439: LIBS=$ac_check_lib_save_LIBS
13440: fi
13441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13442: $as_echo "$ac_cv_lib_socket_main" >&6; }
13443: if test "x$ac_cv_lib_socket_main" = xyes; then :
13444: cat >>confdefs.h <<_ACEOF
13445: #define HAVE_LIBSOCKET 1
13446: _ACEOF
13447:
13448: LIBS="-lsocket $LIBS"
13449:
13450: fi
13451:
13452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13453: $as_echo_n "checking for main in -lnsl... " >&6; }
13454: if ${ac_cv_lib_nsl_main+:} false; then :
13455: $as_echo_n "(cached) " >&6
13456: else
13457: ac_check_lib_save_LIBS=$LIBS
13458: LIBS="-lnsl $LIBS"
13459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460: /* end confdefs.h. */
13461:
13462:
13463: int
13464: main ()
13465: {
13466: return main ();
13467: ;
13468: return 0;
13469: }
13470: _ACEOF
13471: if ac_fn_c_try_link "$LINENO"; then :
13472: ac_cv_lib_nsl_main=yes
13473: else
13474: ac_cv_lib_nsl_main=no
13475: fi
13476: rm -f core conftest.err conftest.$ac_objext \
13477: conftest$ac_exeext conftest.$ac_ext
13478: LIBS=$ac_check_lib_save_LIBS
13479: fi
13480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13481: $as_echo "$ac_cv_lib_nsl_main" >&6; }
13482: if test "x$ac_cv_lib_nsl_main" = xyes; then :
13483: cat >>confdefs.h <<_ACEOF
13484: #define HAVE_LIBNSL 1
13485: _ACEOF
13486:
13487: LIBS="-lnsl $LIBS"
13488:
13489: fi
13490:
13491: CURSES=-lcurses
13492: ;;
13493: *-linux*)
13494: opsys=gnu-linux
13495:
13496: $as_echo "#define GNU_LINUX /**/" >>confdefs.h
13497:
13498: ;;
13499: *-nec-sysv4*)
13500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13501: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13502: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13503: $as_echo_n "(cached) " >&6
13504: else
13505: ac_check_lib_save_LIBS=$LIBS
13506: LIBS="-lnsl $LIBS"
13507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508: /* end confdefs.h. */
13509:
13510: /* Override any GCC internal prototype to avoid an error.
13511: Use char because int might match the return type of a GCC
13512: builtin and then its argument prototype would still apply. */
13513: #ifdef __cplusplus
13514: extern "C"
13515: #endif
13516: char gethostbyname ();
13517: int
13518: main ()
13519: {
13520: return gethostbyname ();
13521: ;
13522: return 0;
13523: }
13524: _ACEOF
13525: if ac_fn_c_try_link "$LINENO"; then :
13526: ac_cv_lib_nsl_gethostbyname=yes
13527: else
13528: ac_cv_lib_nsl_gethostbyname=no
13529: fi
13530: rm -f core conftest.err conftest.$ac_objext \
13531: conftest$ac_exeext conftest.$ac_ext
13532: LIBS=$ac_check_lib_save_LIBS
13533: fi
13534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13535: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13536: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13537: cat >>confdefs.h <<_ACEOF
13538: #define HAVE_LIBNSL 1
13539: _ACEOF
13540:
13541: LIBS="-lnsl $LIBS"
13542:
13543: fi
13544:
13545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13546: $as_echo_n "checking for socket in -lsocket... " >&6; }
13547: if ${ac_cv_lib_socket_socket+:} false; then :
13548: $as_echo_n "(cached) " >&6
13549: else
13550: ac_check_lib_save_LIBS=$LIBS
13551: LIBS="-lsocket $LIBS"
13552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553: /* end confdefs.h. */
13554:
13555: /* Override any GCC internal prototype to avoid an error.
13556: Use char because int might match the return type of a GCC
13557: builtin and then its argument prototype would still apply. */
13558: #ifdef __cplusplus
13559: extern "C"
13560: #endif
13561: char socket ();
13562: int
13563: main ()
13564: {
13565: return socket ();
13566: ;
13567: return 0;
13568: }
13569: _ACEOF
13570: if ac_fn_c_try_link "$LINENO"; then :
13571: ac_cv_lib_socket_socket=yes
13572: else
13573: ac_cv_lib_socket_socket=no
13574: fi
13575: rm -f core conftest.err conftest.$ac_objext \
13576: conftest$ac_exeext conftest.$ac_ext
13577: LIBS=$ac_check_lib_save_LIBS
13578: fi
13579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13580: $as_echo "$ac_cv_lib_socket_socket" >&6; }
13581: if test "x$ac_cv_lib_socket_socket" = xyes; then :
13582: cat >>confdefs.h <<_ACEOF
13583: #define HAVE_LIBSOCKET 1
13584: _ACEOF
13585:
13586: LIBS="-lsocket $LIBS"
13587:
13588: fi
13589:
13590: ;;
13591: *-openbsd*)
13592: opsys=openbsd
13593:
13594: $as_echo "#define OPEN_BSD /**/" >>confdefs.h
13595:
13596: ;;
13597: *-bsdi*)
13598: opsys=bsdi
13599: OTHER_METHOD="mtu_kvm.o"
13600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
13601: $as_echo_n "checking for main in -lkvm... " >&6; }
13602: if ${ac_cv_lib_kvm_main+:} false; then :
13603: $as_echo_n "(cached) " >&6
13604: else
13605: ac_check_lib_save_LIBS=$LIBS
13606: LIBS="-lkvm $LIBS"
13607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608: /* end confdefs.h. */
13609:
13610:
13611: int
13612: main ()
13613: {
13614: return main ();
13615: ;
13616: return 0;
13617: }
13618: _ACEOF
13619: if ac_fn_c_try_link "$LINENO"; then :
13620: ac_cv_lib_kvm_main=yes
13621: else
13622: ac_cv_lib_kvm_main=no
13623: fi
13624: rm -f core conftest.err conftest.$ac_objext \
13625: conftest$ac_exeext conftest.$ac_ext
13626: LIBS=$ac_check_lib_save_LIBS
13627: fi
13628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
13629: $as_echo "$ac_cv_lib_kvm_main" >&6; }
13630: if test "x$ac_cv_lib_kvm_main" = xyes; then :
13631: cat >>confdefs.h <<_ACEOF
13632: #define HAVE_LIBKVM 1
13633: _ACEOF
13634:
13635: LIBS="-lkvm $LIBS"
13636:
13637: fi
13638:
13639: ;;
13640: *-irix6.5)
13641: opsys=irix
13642:
13643: $as_echo "#define IRIX_65 /**/" >>confdefs.h
13644:
13645: ;;
13646: esac
13647:
13648: # Check whether --enable-largefile was given.
13649: if test "${enable_largefile+set}" = set; then :
13650: enableval=$enable_largefile;
13651: fi
13652:
13653: if test "$enable_largefile" != no; then
13654:
13655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13656: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13657: if ${ac_cv_sys_largefile_CC+:} false; then :
13658: $as_echo_n "(cached) " >&6
13659: else
13660: ac_cv_sys_largefile_CC=no
13661: if test "$GCC" != yes; then
13662: ac_save_CC=$CC
13663: while :; do
13664: # IRIX 6.2 and later do not support large files by default,
13665: # so use the C compiler's -n32 option if that helps.
13666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667: /* end confdefs.h. */
13668: #include <sys/types.h>
13669: /* Check that off_t can represent 2**63 - 1 correctly.
13670: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13671: since some C++ compilers masquerading as C compilers
13672: incorrectly reject 9223372036854775807. */
13673: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13674: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13675: && LARGE_OFF_T % 2147483647 == 1)
13676: ? 1 : -1];
13677: int
13678: main ()
13679: {
13680:
13681: ;
13682: return 0;
13683: }
13684: _ACEOF
13685: if ac_fn_c_try_compile "$LINENO"; then :
13686: break
13687: fi
13688: rm -f core conftest.err conftest.$ac_objext
13689: CC="$CC -n32"
13690: if ac_fn_c_try_compile "$LINENO"; then :
13691: ac_cv_sys_largefile_CC=' -n32'; break
13692: fi
13693: rm -f core conftest.err conftest.$ac_objext
13694: break
13695: done
13696: CC=$ac_save_CC
13697: rm -f conftest.$ac_ext
13698: fi
13699: fi
13700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13701: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13702: if test "$ac_cv_sys_largefile_CC" != no; then
13703: CC=$CC$ac_cv_sys_largefile_CC
13704: fi
13705:
13706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13707: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13708: if ${ac_cv_sys_file_offset_bits+:} false; then :
13709: $as_echo_n "(cached) " >&6
13710: else
13711: while :; do
13712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713: /* end confdefs.h. */
13714: #include <sys/types.h>
13715: /* Check that off_t can represent 2**63 - 1 correctly.
13716: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13717: since some C++ compilers masquerading as C compilers
13718: incorrectly reject 9223372036854775807. */
13719: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13720: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13721: && LARGE_OFF_T % 2147483647 == 1)
13722: ? 1 : -1];
13723: int
13724: main ()
13725: {
13726:
13727: ;
13728: return 0;
13729: }
13730: _ACEOF
13731: if ac_fn_c_try_compile "$LINENO"; then :
13732: ac_cv_sys_file_offset_bits=no; break
13733: fi
13734: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736: /* end confdefs.h. */
13737: #define _FILE_OFFSET_BITS 64
13738: #include <sys/types.h>
13739: /* Check that off_t can represent 2**63 - 1 correctly.
13740: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13741: since some C++ compilers masquerading as C compilers
13742: incorrectly reject 9223372036854775807. */
13743: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13744: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13745: && LARGE_OFF_T % 2147483647 == 1)
13746: ? 1 : -1];
13747: int
13748: main ()
13749: {
13750:
13751: ;
13752: return 0;
13753: }
13754: _ACEOF
13755: if ac_fn_c_try_compile "$LINENO"; then :
13756: ac_cv_sys_file_offset_bits=64; break
13757: fi
13758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759: ac_cv_sys_file_offset_bits=unknown
13760: break
13761: done
13762: fi
13763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13764: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13765: case $ac_cv_sys_file_offset_bits in #(
13766: no | unknown) ;;
13767: *)
13768: cat >>confdefs.h <<_ACEOF
13769: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13770: _ACEOF
13771: ;;
13772: esac
13773: rm -rf conftest*
13774: if test $ac_cv_sys_file_offset_bits = unknown; then
13775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13776: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13777: if ${ac_cv_sys_large_files+:} false; then :
13778: $as_echo_n "(cached) " >&6
13779: else
13780: while :; do
13781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782: /* end confdefs.h. */
13783: #include <sys/types.h>
13784: /* Check that off_t can represent 2**63 - 1 correctly.
13785: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13786: since some C++ compilers masquerading as C compilers
13787: incorrectly reject 9223372036854775807. */
13788: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13789: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13790: && LARGE_OFF_T % 2147483647 == 1)
13791: ? 1 : -1];
13792: int
13793: main ()
13794: {
13795:
13796: ;
13797: return 0;
13798: }
13799: _ACEOF
13800: if ac_fn_c_try_compile "$LINENO"; then :
13801: ac_cv_sys_large_files=no; break
13802: fi
13803: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805: /* end confdefs.h. */
13806: #define _LARGE_FILES 1
13807: #include <sys/types.h>
13808: /* Check that off_t can represent 2**63 - 1 correctly.
13809: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13810: since some C++ compilers masquerading as C compilers
13811: incorrectly reject 9223372036854775807. */
13812: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13813: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13814: && LARGE_OFF_T % 2147483647 == 1)
13815: ? 1 : -1];
13816: int
13817: main ()
13818: {
13819:
13820: ;
13821: return 0;
13822: }
13823: _ACEOF
13824: if ac_fn_c_try_compile "$LINENO"; then :
13825: ac_cv_sys_large_files=1; break
13826: fi
13827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828: ac_cv_sys_large_files=unknown
13829: break
13830: done
13831: fi
13832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13833: $as_echo "$ac_cv_sys_large_files" >&6; }
13834: case $ac_cv_sys_large_files in #(
13835: no | unknown) ;;
13836: *)
13837: cat >>confdefs.h <<_ACEOF
13838: #define _LARGE_FILES $ac_cv_sys_large_files
13839: _ACEOF
13840: ;;
13841: esac
13842: rm -rf conftest*
13843: fi
13844: fi
13845:
13846:
13847: case "${enable_vtysh}" in
13848: "yes") VTYSH="vtysh";
13849:
13850: $as_echo "#define VTYSH /**/" >>confdefs.h
13851:
13852: # Extract the first word of "perl", so it can be a program name with args.
13853: set dummy perl; ac_word=$2
13854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855: $as_echo_n "checking for $ac_word... " >&6; }
13856: if ${ac_cv_path_PERL+:} false; then :
13857: $as_echo_n "(cached) " >&6
13858: else
13859: case $PERL in
13860: [\\/]* | ?:[\\/]*)
13861: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13862: ;;
13863: *)
13864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865: for as_dir in $PATH
13866: do
13867: IFS=$as_save_IFS
13868: test -z "$as_dir" && as_dir=.
13869: for ac_exec_ext in '' $ac_executable_extensions; do
13870: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13871: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13872: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873: break 2
13874: fi
13875: done
13876: done
13877: IFS=$as_save_IFS
13878:
13879: ;;
13880: esac
13881: fi
13882: PERL=$ac_cv_path_PERL
13883: if test -n "$PERL"; then
13884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13885: $as_echo "$PERL" >&6; }
13886: else
13887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888: $as_echo "no" >&6; }
13889: fi
13890:
13891:
13892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltermcap" >&5
13893: $as_echo_n "checking for tputs in -ltermcap... " >&6; }
13894: if ${ac_cv_lib_termcap_tputs+:} false; then :
13895: $as_echo_n "(cached) " >&6
13896: else
13897: ac_check_lib_save_LIBS=$LIBS
13898: LIBS="-ltermcap $LIBS"
13899: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900: /* end confdefs.h. */
13901:
13902: /* Override any GCC internal prototype to avoid an error.
13903: Use char because int might match the return type of a GCC
13904: builtin and then its argument prototype would still apply. */
13905: #ifdef __cplusplus
13906: extern "C"
13907: #endif
13908: char tputs ();
13909: int
13910: main ()
13911: {
13912: return tputs ();
13913: ;
13914: return 0;
13915: }
13916: _ACEOF
13917: if ac_fn_c_try_link "$LINENO"; then :
13918: ac_cv_lib_termcap_tputs=yes
13919: else
13920: ac_cv_lib_termcap_tputs=no
13921: fi
13922: rm -f core conftest.err conftest.$ac_objext \
13923: conftest$ac_exeext conftest.$ac_ext
13924: LIBS=$ac_check_lib_save_LIBS
13925: fi
13926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tputs" >&5
13927: $as_echo "$ac_cv_lib_termcap_tputs" >&6; }
13928: if test "x$ac_cv_lib_termcap_tputs" = xyes; then :
13929: LIBREADLINE="$LIBREADLINE -ltermcap"
13930: else
13931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltinfo" >&5
13932: $as_echo_n "checking for tputs in -ltinfo... " >&6; }
13933: if ${ac_cv_lib_tinfo_tputs+:} false; then :
13934: $as_echo_n "(cached) " >&6
13935: else
13936: ac_check_lib_save_LIBS=$LIBS
13937: LIBS="-ltinfo $LIBS"
13938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939: /* end confdefs.h. */
13940:
13941: /* Override any GCC internal prototype to avoid an error.
13942: Use char because int might match the return type of a GCC
13943: builtin and then its argument prototype would still apply. */
13944: #ifdef __cplusplus
13945: extern "C"
13946: #endif
13947: char tputs ();
13948: int
13949: main ()
13950: {
13951: return tputs ();
13952: ;
13953: return 0;
13954: }
13955: _ACEOF
13956: if ac_fn_c_try_link "$LINENO"; then :
13957: ac_cv_lib_tinfo_tputs=yes
13958: else
13959: ac_cv_lib_tinfo_tputs=no
13960: fi
13961: rm -f core conftest.err conftest.$ac_objext \
13962: conftest$ac_exeext conftest.$ac_ext
13963: LIBS=$ac_check_lib_save_LIBS
13964: fi
13965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tputs" >&5
13966: $as_echo "$ac_cv_lib_tinfo_tputs" >&6; }
13967: if test "x$ac_cv_lib_tinfo_tputs" = xyes; then :
13968: LIBREADLINE="$LIBREADLINE -ltinfo"
13969: else
13970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
13971: $as_echo_n "checking for tputs in -lcurses... " >&6; }
13972: if ${ac_cv_lib_curses_tputs+:} false; then :
13973: $as_echo_n "(cached) " >&6
13974: else
13975: ac_check_lib_save_LIBS=$LIBS
13976: LIBS="-lcurses $LIBS"
13977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978: /* end confdefs.h. */
13979:
13980: /* Override any GCC internal prototype to avoid an error.
13981: Use char because int might match the return type of a GCC
13982: builtin and then its argument prototype would still apply. */
13983: #ifdef __cplusplus
13984: extern "C"
13985: #endif
13986: char tputs ();
13987: int
13988: main ()
13989: {
13990: return tputs ();
13991: ;
13992: return 0;
13993: }
13994: _ACEOF
13995: if ac_fn_c_try_link "$LINENO"; then :
13996: ac_cv_lib_curses_tputs=yes
13997: else
13998: ac_cv_lib_curses_tputs=no
13999: fi
14000: rm -f core conftest.err conftest.$ac_objext \
14001: conftest$ac_exeext conftest.$ac_ext
14002: LIBS=$ac_check_lib_save_LIBS
14003: fi
14004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
14005: $as_echo "$ac_cv_lib_curses_tputs" >&6; }
14006: if test "x$ac_cv_lib_curses_tputs" = xyes; then :
14007: LIBREADLINE="$LIBREADLINE -lcurses"
14008: else
14009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
14010: $as_echo_n "checking for tputs in -lncurses... " >&6; }
14011: if ${ac_cv_lib_ncurses_tputs+:} false; then :
14012: $as_echo_n "(cached) " >&6
14013: else
14014: ac_check_lib_save_LIBS=$LIBS
14015: LIBS="-lncurses $LIBS"
14016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017: /* end confdefs.h. */
14018:
14019: /* Override any GCC internal prototype to avoid an error.
14020: Use char because int might match the return type of a GCC
14021: builtin and then its argument prototype would still apply. */
14022: #ifdef __cplusplus
14023: extern "C"
14024: #endif
14025: char tputs ();
14026: int
14027: main ()
14028: {
14029: return tputs ();
14030: ;
14031: return 0;
14032: }
14033: _ACEOF
14034: if ac_fn_c_try_link "$LINENO"; then :
14035: ac_cv_lib_ncurses_tputs=yes
14036: else
14037: ac_cv_lib_ncurses_tputs=no
14038: fi
14039: rm -f core conftest.err conftest.$ac_objext \
14040: conftest$ac_exeext conftest.$ac_ext
14041: LIBS=$ac_check_lib_save_LIBS
14042: fi
14043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
14044: $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
14045: if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
14046: LIBREADLINE="$LIBREADLINE -lncurses"
14047: fi
14048:
14049:
14050: fi
14051:
14052:
14053: fi
14054:
14055:
14056: fi
14057:
14058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
14059: $as_echo_n "checking for main in -lreadline... " >&6; }
14060: if ${ac_cv_lib_readline_main+:} false; then :
14061: $as_echo_n "(cached) " >&6
14062: else
14063: ac_check_lib_save_LIBS=$LIBS
14064: LIBS="-lreadline "$LIBREADLINE" $LIBS"
14065: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066: /* end confdefs.h. */
14067:
14068:
14069: int
14070: main ()
14071: {
14072: return main ();
14073: ;
14074: return 0;
14075: }
14076: _ACEOF
14077: if ac_fn_c_try_link "$LINENO"; then :
14078: ac_cv_lib_readline_main=yes
14079: else
14080: ac_cv_lib_readline_main=no
14081: fi
14082: rm -f core conftest.err conftest.$ac_objext \
14083: conftest$ac_exeext conftest.$ac_ext
14084: LIBS=$ac_check_lib_save_LIBS
14085: fi
14086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
14087: $as_echo "$ac_cv_lib_readline_main" >&6; }
14088: if test "x$ac_cv_lib_readline_main" = xyes; then :
14089: LIBREADLINE="$LIBREADLINE -lreadline"
14090: fi
14091:
14092: if test $ac_cv_lib_readline_main = no; then
14093: as_fn_error $? "vtysh needs libreadline but was not found and usable on your system." "$LINENO" 5
14094: fi
14095: ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14096: if test "x$ac_cv_header_readline_history_h" = xyes; then :
14097:
14098: fi
14099:
14100:
14101: if test $ac_cv_header_readline_history_h = no;then
14102: as_fn_error $? "readline is too old to have readline/history.h, please update to the latest readline library." "$LINENO" 5
14103: fi
14104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
14105: $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
14106: if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
14107: $as_echo_n "(cached) " >&6
14108: else
14109: ac_check_lib_save_LIBS=$LIBS
14110: LIBS="-lreadline "$LIBREADLINE" $LIBS"
14111: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112: /* end confdefs.h. */
14113:
14114: /* Override any GCC internal prototype to avoid an error.
14115: Use char because int might match the return type of a GCC
14116: builtin and then its argument prototype would still apply. */
14117: #ifdef __cplusplus
14118: extern "C"
14119: #endif
14120: char rl_completion_matches ();
14121: int
14122: main ()
14123: {
14124: return rl_completion_matches ();
14125: ;
14126: return 0;
14127: }
14128: _ACEOF
14129: if ac_fn_c_try_link "$LINENO"; then :
14130: ac_cv_lib_readline_rl_completion_matches=yes
14131: else
14132: ac_cv_lib_readline_rl_completion_matches=no
14133: fi
14134: rm -f core conftest.err conftest.$ac_objext \
14135: conftest$ac_exeext conftest.$ac_ext
14136: LIBS=$ac_check_lib_save_LIBS
14137: fi
14138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14139: $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
14140: if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
14141: LIBREADLINE="$LIBREADLINE"
14142: fi
14143:
14144: if test $ac_cv_lib_readline_rl_completion_matches = no; then
14145:
14146: $as_echo "#define rl_completion_matches completion_matches" >>confdefs.h
14147:
14148: fi
14149: ;;
14150: "no" ) VTYSH="";;
14151: * ) ;;
14152: esac
14153:
14154:
14155: if test "$with_libpam" = "yes"; then
14156: ac_fn_c_check_header_compile "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "#ifdef SUNOS_5
14157: #define _XPG4_2
14158: #define __EXTENSIONS__
14159: #endif
14160: #include <stdio.h>
14161: #if STDC_HEADERS
14162: # include <stdlib.h>
14163: # include <stddef.h>
14164: #else
14165: # if HAVE_STDLIB_H
14166: # include <stdlib.h>
14167: # endif
14168: #endif
14169: #if HAVE_SYS_TYPES_H
14170: # include <sys/types.h>
14171: #endif
14172: /* sys/conf.h depends on param.h on FBSD at least */
14173: #if HAVE_SYS_PARAM_H
14174: # include <sys/param.h>
14175: #endif
14176: /* Required for MAXSIG */
14177: #if HAVE_SIGNAL_H
14178: # include <signal.h>
14179: #endif
14180: #if HAVE_SYS_SOCKET_H
14181: # include <sys/socket.h>
14182: #endif
14183: #if HAVE_NETINET_IN_H
14184: # include <netinet/in.h>
14185: #endif
14186: #ifdef TIME_WITH_SYS_TIME
14187: # include <sys/time.h>
14188: # include <time.h>
14189: #else
14190: # ifdef HAVE_SYS_TIME_H
14191: # include <sys/time.h>
14192: # else
14193: # include <time.h>
14194: # endif
14195: #endif /* TIME_WITH_SYS_TIME */
14196:
14197: #if HAVE_NET_IF_H
14198: # include <net/if.h>
14199: #endif
14200:
14201: #if HAVE_NET_IF_VAR_H
14202: # include <net/if_var.h>
14203: #endif
14204:
14205: #if HAVE_SYS_UN_H
14206: # include <sys/un.h>
14207: #endif
14208: #if HAVE_NETINET_IN_SYSTM_H
14209: # include <netinet/in_systm.h>
14210: #endif
14211: #if HAVE_NETINET_IN_VAR_H
14212: # include <netinet/in_var.h>
14213: #endif
14214: #if HAVE_NET_IF_DL_H
14215: # include <net/if_dl.h>
14216: #endif
14217: #if HAVE_NET_NETOPT_H
14218: # include <net/netopt.h>
14219: #endif
14220: #if HAVE_NET_ROUTE_H
14221: # include <net/route.h>
14222: #endif
14223: #if HAVE_INET_ND_H
14224: # include <inet/nd.h>
14225: #endif
14226: #if HAVE_ARPA_INET_H
14227: # include <arpa/inet.h>
14228: #endif
14229: /* Required for IDRP */
14230: #if HAVE_NETINET_IP_ICMP_H
14231: # include <netinet/ip_icmp.h>
14232: #endif
14233:
14234: "
14235: if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
14236:
14237: $as_echo "#define HAVE_PAM_MISC_H /**/" >>confdefs.h
14238:
14239:
14240: $as_echo "#define PAM_CONV_FUNC misc_conv" >>confdefs.h
14241:
14242: pam_conv_func="misc_conv"
14243:
14244: fi
14245:
14246:
14247: ac_fn_c_check_header_compile "$LINENO" "security/openpam.h" "ac_cv_header_security_openpam_h" "#ifdef SUNOS_5
14248: #define _XPG4_2
14249: #define __EXTENSIONS__
14250: #endif
14251: #include <stdio.h>
14252: #if STDC_HEADERS
14253: # include <stdlib.h>
14254: # include <stddef.h>
14255: #else
14256: # if HAVE_STDLIB_H
14257: # include <stdlib.h>
14258: # endif
14259: #endif
14260: #if HAVE_SYS_TYPES_H
14261: # include <sys/types.h>
14262: #endif
14263: /* sys/conf.h depends on param.h on FBSD at least */
14264: #if HAVE_SYS_PARAM_H
14265: # include <sys/param.h>
14266: #endif
14267: /* Required for MAXSIG */
14268: #if HAVE_SIGNAL_H
14269: # include <signal.h>
14270: #endif
14271: #if HAVE_SYS_SOCKET_H
14272: # include <sys/socket.h>
14273: #endif
14274: #if HAVE_NETINET_IN_H
14275: # include <netinet/in.h>
14276: #endif
14277: #ifdef TIME_WITH_SYS_TIME
14278: # include <sys/time.h>
14279: # include <time.h>
14280: #else
14281: # ifdef HAVE_SYS_TIME_H
14282: # include <sys/time.h>
14283: # else
14284: # include <time.h>
14285: # endif
14286: #endif /* TIME_WITH_SYS_TIME */
14287:
14288: #if HAVE_NET_IF_H
14289: # include <net/if.h>
14290: #endif
14291:
14292: #if HAVE_NET_IF_VAR_H
14293: # include <net/if_var.h>
14294: #endif
14295:
14296: #if HAVE_SYS_UN_H
14297: # include <sys/un.h>
14298: #endif
14299: #if HAVE_NETINET_IN_SYSTM_H
14300: # include <netinet/in_systm.h>
14301: #endif
14302: #if HAVE_NETINET_IN_VAR_H
14303: # include <netinet/in_var.h>
14304: #endif
14305: #if HAVE_NET_IF_DL_H
14306: # include <net/if_dl.h>
14307: #endif
14308: #if HAVE_NET_NETOPT_H
14309: # include <net/netopt.h>
14310: #endif
14311: #if HAVE_NET_ROUTE_H
14312: # include <net/route.h>
14313: #endif
14314: #if HAVE_INET_ND_H
14315: # include <inet/nd.h>
14316: #endif
14317: #if HAVE_ARPA_INET_H
14318: # include <arpa/inet.h>
14319: #endif
14320: /* Required for IDRP */
14321: #if HAVE_NETINET_IP_ICMP_H
14322: # include <netinet/ip_icmp.h>
14323: #endif
14324: #include <security/pam_appl.h>
14325: "
14326: if test "x$ac_cv_header_security_openpam_h" = xyes; then :
14327:
14328: $as_echo "#define HAVE_OPENPAM_H /**/" >>confdefs.h
14329:
14330:
14331: $as_echo "#define PAM_CONV_FUNC openpam_ttyconv" >>confdefs.h
14332:
14333: pam_conv_func="openpam_ttyconv"
14334:
14335: fi
14336:
14337:
14338: if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
14339: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
14340: $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
14341: with_libpam="no"
14342: fi
14343: fi
14344:
14345: if test "$with_libpam" = "yes"; then
14346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14347: $as_echo_n "checking for pam_start in -lpam... " >&6; }
14348: if ${ac_cv_lib_pam_pam_start+:} false; then :
14349: $as_echo_n "(cached) " >&6
14350: else
14351: ac_check_lib_save_LIBS=$LIBS
14352: LIBS="-lpam $LIBS"
14353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354: /* end confdefs.h. */
14355:
14356: /* Override any GCC internal prototype to avoid an error.
14357: Use char because int might match the return type of a GCC
14358: builtin and then its argument prototype would still apply. */
14359: #ifdef __cplusplus
14360: extern "C"
14361: #endif
14362: char pam_start ();
14363: int
14364: main ()
14365: {
14366: return pam_start ();
14367: ;
14368: return 0;
14369: }
14370: _ACEOF
14371: if ac_fn_c_try_link "$LINENO"; then :
14372: ac_cv_lib_pam_pam_start=yes
14373: else
14374: ac_cv_lib_pam_pam_start=no
14375: fi
14376: rm -f core conftest.err conftest.$ac_objext \
14377: conftest$ac_exeext conftest.$ac_ext
14378: LIBS=$ac_check_lib_save_LIBS
14379: fi
14380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14381: $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14382: if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
14383: as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
14384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
14385: $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
14386: if eval \${$as_ac_Lib+:} false; then :
14387: $as_echo_n "(cached) " >&6
14388: else
14389: ac_check_lib_save_LIBS=$LIBS
14390: LIBS="-lpam $LIBS"
14391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392: /* end confdefs.h. */
14393:
14394: /* Override any GCC internal prototype to avoid an error.
14395: Use char because int might match the return type of a GCC
14396: builtin and then its argument prototype would still apply. */
14397: #ifdef __cplusplus
14398: extern "C"
14399: #endif
14400: char $pam_conv_func ();
14401: int
14402: main ()
14403: {
14404: return $pam_conv_func ();
14405: ;
14406: return 0;
14407: }
14408: _ACEOF
14409: if ac_fn_c_try_link "$LINENO"; then :
14410: eval "$as_ac_Lib=yes"
14411: else
14412: eval "$as_ac_Lib=no"
14413: fi
14414: rm -f core conftest.err conftest.$ac_objext \
14415: conftest$ac_exeext conftest.$ac_ext
14416: LIBS=$ac_check_lib_save_LIBS
14417: fi
14418: eval ac_res=\$$as_ac_Lib
14419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14420: $as_echo "$ac_res" >&6; }
14421: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14422:
14423: $as_echo "#define USE_PAM /**/" >>confdefs.h
14424:
14425: LIBPAM="-lpam"
14426: else
14427:
14428: $as_echo "#define USE_PAM /**/" >>confdefs.h
14429:
14430: LIBPAM="-lpam -lpam_misc"
14431:
14432: fi
14433:
14434:
14435: else
14436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
14437: $as_echo_n "checking for pam_end in -lpam... " >&6; }
14438: if ${ac_cv_lib_pam_pam_end+:} false; then :
14439: $as_echo_n "(cached) " >&6
14440: else
14441: ac_check_lib_save_LIBS=$LIBS
14442: LIBS="-lpam -ldl $LIBS"
14443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444: /* end confdefs.h. */
14445:
14446: /* Override any GCC internal prototype to avoid an error.
14447: Use char because int might match the return type of a GCC
14448: builtin and then its argument prototype would still apply. */
14449: #ifdef __cplusplus
14450: extern "C"
14451: #endif
14452: char pam_end ();
14453: int
14454: main ()
14455: {
14456: return pam_end ();
14457: ;
14458: return 0;
14459: }
14460: _ACEOF
14461: if ac_fn_c_try_link "$LINENO"; then :
14462: ac_cv_lib_pam_pam_end=yes
14463: else
14464: ac_cv_lib_pam_pam_end=no
14465: fi
14466: rm -f core conftest.err conftest.$ac_objext \
14467: conftest$ac_exeext conftest.$ac_ext
14468: LIBS=$ac_check_lib_save_LIBS
14469: fi
14470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
14471: $as_echo "$ac_cv_lib_pam_pam_end" >&6; }
14472: if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
14473: as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
14474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
14475: $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
14476: if eval \${$as_ac_Lib+:} false; then :
14477: $as_echo_n "(cached) " >&6
14478: else
14479: ac_check_lib_save_LIBS=$LIBS
14480: LIBS="-lpam $LIBS"
14481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482: /* end confdefs.h. */
14483:
14484: /* Override any GCC internal prototype to avoid an error.
14485: Use char because int might match the return type of a GCC
14486: builtin and then its argument prototype would still apply. */
14487: #ifdef __cplusplus
14488: extern "C"
14489: #endif
14490: char $pam_conv_func ();
14491: int
14492: main ()
14493: {
14494: return $pam_conv_func ();
14495: ;
14496: return 0;
14497: }
14498: _ACEOF
14499: if ac_fn_c_try_link "$LINENO"; then :
14500: eval "$as_ac_Lib=yes"
14501: else
14502: eval "$as_ac_Lib=no"
14503: fi
14504: rm -f core conftest.err conftest.$ac_objext \
14505: conftest$ac_exeext conftest.$ac_ext
14506: LIBS=$ac_check_lib_save_LIBS
14507: fi
14508: eval ac_res=\$$as_ac_Lib
14509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14510: $as_echo "$ac_res" >&6; }
14511: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14512:
14513: $as_echo "#define USE_PAM /**/" >>confdefs.h
14514:
14515: LIBPAM="-lpam -ldl"
14516: else
14517:
14518: $as_echo "#define USE_PAM /**/" >>confdefs.h
14519:
14520: LIBPAM="-lpam -ldl -lpam_misc"
14521:
14522: fi
14523:
14524:
14525: else
14526: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
14527: $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
14528: fi
14529:
14530:
14531:
14532: fi
14533:
14534: fi
14535:
14536:
14537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14538: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14539: if ${ac_cv_c_bigendian+:} false; then :
14540: $as_echo_n "(cached) " >&6
14541: else
14542: ac_cv_c_bigendian=unknown
14543: # See if we're dealing with a universal compiler.
14544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545: /* end confdefs.h. */
14546: #ifndef __APPLE_CC__
14547: not a universal capable compiler
14548: #endif
14549: typedef int dummy;
14550:
14551: _ACEOF
14552: if ac_fn_c_try_compile "$LINENO"; then :
14553:
14554: # Check for potential -arch flags. It is not universal unless
14555: # there are at least two -arch flags with different values.
14556: ac_arch=
14557: ac_prev=
14558: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14559: if test -n "$ac_prev"; then
14560: case $ac_word in
14561: i?86 | x86_64 | ppc | ppc64)
14562: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14563: ac_arch=$ac_word
14564: else
14565: ac_cv_c_bigendian=universal
14566: break
14567: fi
14568: ;;
14569: esac
14570: ac_prev=
14571: elif test "x$ac_word" = "x-arch"; then
14572: ac_prev=arch
14573: fi
14574: done
14575: fi
14576: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577: if test $ac_cv_c_bigendian = unknown; then
14578: # See if sys/param.h defines the BYTE_ORDER macro.
14579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580: /* end confdefs.h. */
14581: #include <sys/types.h>
14582: #include <sys/param.h>
14583:
14584: int
14585: main ()
14586: {
14587: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14588: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14589: && LITTLE_ENDIAN)
14590: bogus endian macros
14591: #endif
14592:
14593: ;
14594: return 0;
14595: }
14596: _ACEOF
14597: if ac_fn_c_try_compile "$LINENO"; then :
14598: # It does; now see whether it defined to BIG_ENDIAN or not.
14599: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600: /* end confdefs.h. */
14601: #include <sys/types.h>
14602: #include <sys/param.h>
14603:
14604: int
14605: main ()
14606: {
14607: #if BYTE_ORDER != BIG_ENDIAN
14608: not big endian
14609: #endif
14610:
14611: ;
14612: return 0;
14613: }
14614: _ACEOF
14615: if ac_fn_c_try_compile "$LINENO"; then :
14616: ac_cv_c_bigendian=yes
14617: else
14618: ac_cv_c_bigendian=no
14619: fi
14620: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621: fi
14622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623: fi
14624: if test $ac_cv_c_bigendian = unknown; then
14625: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627: /* end confdefs.h. */
14628: #include <limits.h>
14629:
14630: int
14631: main ()
14632: {
14633: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14634: bogus endian macros
14635: #endif
14636:
14637: ;
14638: return 0;
14639: }
14640: _ACEOF
14641: if ac_fn_c_try_compile "$LINENO"; then :
14642: # It does; now see whether it defined to _BIG_ENDIAN or not.
14643: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644: /* end confdefs.h. */
14645: #include <limits.h>
14646:
14647: int
14648: main ()
14649: {
14650: #ifndef _BIG_ENDIAN
14651: not big endian
14652: #endif
14653:
14654: ;
14655: return 0;
14656: }
14657: _ACEOF
14658: if ac_fn_c_try_compile "$LINENO"; then :
14659: ac_cv_c_bigendian=yes
14660: else
14661: ac_cv_c_bigendian=no
14662: fi
14663: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664: fi
14665: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666: fi
14667: if test $ac_cv_c_bigendian = unknown; then
14668: # Compile a test program.
14669: if test "$cross_compiling" = yes; then :
14670: # Try to guess by grepping values from an object file.
14671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672: /* end confdefs.h. */
14673: short int ascii_mm[] =
14674: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14675: short int ascii_ii[] =
14676: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14677: int use_ascii (int i) {
14678: return ascii_mm[i] + ascii_ii[i];
14679: }
14680: short int ebcdic_ii[] =
14681: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14682: short int ebcdic_mm[] =
14683: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14684: int use_ebcdic (int i) {
14685: return ebcdic_mm[i] + ebcdic_ii[i];
14686: }
14687: extern int foo;
14688:
14689: int
14690: main ()
14691: {
14692: return use_ascii (foo) == use_ebcdic (foo);
14693: ;
14694: return 0;
14695: }
14696: _ACEOF
14697: if ac_fn_c_try_compile "$LINENO"; then :
14698: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14699: ac_cv_c_bigendian=yes
14700: fi
14701: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14702: if test "$ac_cv_c_bigendian" = unknown; then
14703: ac_cv_c_bigendian=no
14704: else
14705: # finding both strings is unlikely to happen, but who knows?
14706: ac_cv_c_bigendian=unknown
14707: fi
14708: fi
14709: fi
14710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711: else
14712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713: /* end confdefs.h. */
14714: $ac_includes_default
14715: int
14716: main ()
14717: {
14718:
14719: /* Are we little or big endian? From Harbison&Steele. */
14720: union
14721: {
14722: long int l;
14723: char c[sizeof (long int)];
14724: } u;
14725: u.l = 1;
14726: return u.c[sizeof (long int) - 1] == 1;
14727:
14728: ;
14729: return 0;
14730: }
14731: _ACEOF
14732: if ac_fn_c_try_run "$LINENO"; then :
14733: ac_cv_c_bigendian=no
14734: else
14735: ac_cv_c_bigendian=yes
14736: fi
14737: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14738: conftest.$ac_objext conftest.beam conftest.$ac_ext
14739: fi
14740:
14741: fi
14742: fi
14743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14744: $as_echo "$ac_cv_c_bigendian" >&6; }
14745: case $ac_cv_c_bigendian in #(
14746: yes)
14747: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14748: ;; #(
14749: no)
14750: ;; #(
14751: universal)
14752:
14753: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14754:
14755: ;; #(
14756: *)
14757: as_fn_error $? "unknown endianness
14758: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14759: esac
14760:
14761:
14762:
14763: for ac_header in unistd.h
14764: do :
14765: ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14766: if test "x$ac_cv_header_unistd_h" = xyes; then :
14767: cat >>confdefs.h <<_ACEOF
14768: #define HAVE_UNISTD_H 1
14769: _ACEOF
14770:
14771: fi
14772:
14773: done
14774:
14775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14776: $as_echo_n "checking for working chown... " >&6; }
14777: if ${ac_cv_func_chown_works+:} false; then :
14778: $as_echo_n "(cached) " >&6
14779: else
14780: if test "$cross_compiling" = yes; then :
14781: ac_cv_func_chown_works=no
14782: else
14783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784: /* end confdefs.h. */
14785: $ac_includes_default
14786: #include <fcntl.h>
14787:
14788: int
14789: main ()
14790: {
14791: char *f = "conftest.chown";
14792: struct stat before, after;
14793:
14794: if (creat (f, 0600) < 0)
14795: return 1;
14796: if (stat (f, &before) < 0)
14797: return 1;
14798: if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14799: return 1;
14800: if (stat (f, &after) < 0)
14801: return 1;
14802: return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14803:
14804: ;
14805: return 0;
14806: }
14807: _ACEOF
14808: if ac_fn_c_try_run "$LINENO"; then :
14809: ac_cv_func_chown_works=yes
14810: else
14811: ac_cv_func_chown_works=no
14812: fi
14813: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14814: conftest.$ac_objext conftest.beam conftest.$ac_ext
14815: fi
14816:
14817: rm -f conftest.chown
14818:
14819: fi
14820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14821: $as_echo "$ac_cv_func_chown_works" >&6; }
14822: if test $ac_cv_func_chown_works = yes; then
14823:
14824: $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14825:
14826: fi
14827:
14828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
14829: $as_echo_n "checking for working POSIX fnmatch... " >&6; }
14830: if ${ac_cv_func_fnmatch_works+:} false; then :
14831: $as_echo_n "(cached) " >&6
14832: else
14833: # Some versions of Solaris, SCO, and the GNU C Library
14834: # have a broken or incompatible fnmatch.
14835: # So we run a test program. If we are cross-compiling, take no chance.
14836: # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
14837: if test "$cross_compiling" = yes; then :
14838: ac_cv_func_fnmatch_works=cross
14839: else
14840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841: /* end confdefs.h. */
14842: #include <fnmatch.h>
14843: # define y(a, b, c) (fnmatch (a, b, c) == 0)
14844: # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
14845:
14846: int
14847: main ()
14848: {
14849: return
14850: (!(y ("a*", "abc", 0)
14851: && n ("d*/*1", "d/s/1", FNM_PATHNAME)
14852: && y ("a\\\\bc", "abc", 0)
14853: && n ("a\\\\bc", "abc", FNM_NOESCAPE)
14854: && y ("*x", ".x", 0)
14855: && n ("*x", ".x", FNM_PERIOD)
14856: && 1));
14857: ;
14858: return 0;
14859: }
14860: _ACEOF
14861: if ac_fn_c_try_run "$LINENO"; then :
14862: ac_cv_func_fnmatch_works=yes
14863: else
14864: ac_cv_func_fnmatch_works=no
14865: fi
14866: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14867: conftest.$ac_objext conftest.beam conftest.$ac_ext
14868: fi
14869:
14870: fi
14871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
14872: $as_echo "$ac_cv_func_fnmatch_works" >&6; }
14873: if test $ac_cv_func_fnmatch_works = yes; then :
14874:
14875: $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
14876:
14877: fi
14878:
14879:
14880: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14881: if test "x$ac_cv_type_pid_t" = xyes; then :
14882:
14883: else
14884:
14885: cat >>confdefs.h <<_ACEOF
14886: #define pid_t int
14887: _ACEOF
14888:
14889: fi
14890:
14891: for ac_header in vfork.h
14892: do :
14893: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14894: if test "x$ac_cv_header_vfork_h" = xyes; then :
14895: cat >>confdefs.h <<_ACEOF
14896: #define HAVE_VFORK_H 1
14897: _ACEOF
14898:
14899: fi
14900:
14901: done
14902:
14903: for ac_func in fork vfork
14904: do :
14905: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14906: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14907: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14908: cat >>confdefs.h <<_ACEOF
14909: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14910: _ACEOF
14911:
14912: fi
14913: done
14914:
14915: if test "x$ac_cv_func_fork" = xyes; then
14916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14917: $as_echo_n "checking for working fork... " >&6; }
14918: if ${ac_cv_func_fork_works+:} false; then :
14919: $as_echo_n "(cached) " >&6
14920: else
14921: if test "$cross_compiling" = yes; then :
14922: ac_cv_func_fork_works=cross
14923: else
14924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925: /* end confdefs.h. */
14926: $ac_includes_default
14927: int
14928: main ()
14929: {
14930:
14931: /* By Ruediger Kuhlmann. */
14932: return fork () < 0;
14933:
14934: ;
14935: return 0;
14936: }
14937: _ACEOF
14938: if ac_fn_c_try_run "$LINENO"; then :
14939: ac_cv_func_fork_works=yes
14940: else
14941: ac_cv_func_fork_works=no
14942: fi
14943: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14944: conftest.$ac_objext conftest.beam conftest.$ac_ext
14945: fi
14946:
14947: fi
14948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14949: $as_echo "$ac_cv_func_fork_works" >&6; }
14950:
14951: else
14952: ac_cv_func_fork_works=$ac_cv_func_fork
14953: fi
14954: if test "x$ac_cv_func_fork_works" = xcross; then
14955: case $host in
14956: *-*-amigaos* | *-*-msdosdjgpp*)
14957: # Override, as these systems have only a dummy fork() stub
14958: ac_cv_func_fork_works=no
14959: ;;
14960: *)
14961: ac_cv_func_fork_works=yes
14962: ;;
14963: esac
14964: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14965: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14966: fi
14967: ac_cv_func_vfork_works=$ac_cv_func_vfork
14968: if test "x$ac_cv_func_vfork" = xyes; then
14969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14970: $as_echo_n "checking for working vfork... " >&6; }
14971: if ${ac_cv_func_vfork_works+:} false; then :
14972: $as_echo_n "(cached) " >&6
14973: else
14974: if test "$cross_compiling" = yes; then :
14975: ac_cv_func_vfork_works=cross
14976: else
14977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978: /* end confdefs.h. */
14979: /* Thanks to Paul Eggert for this test. */
14980: $ac_includes_default
14981: #include <sys/wait.h>
14982: #ifdef HAVE_VFORK_H
14983: # include <vfork.h>
14984: #endif
14985: /* On some sparc systems, changes by the child to local and incoming
14986: argument registers are propagated back to the parent. The compiler
14987: is told about this with #include <vfork.h>, but some compilers
14988: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14989: static variable whose address is put into a register that is
14990: clobbered by the vfork. */
14991: static void
14992: #ifdef __cplusplus
14993: sparc_address_test (int arg)
14994: # else
14995: sparc_address_test (arg) int arg;
14996: #endif
14997: {
14998: static pid_t child;
14999: if (!child) {
15000: child = vfork ();
15001: if (child < 0) {
15002: perror ("vfork");
15003: _exit(2);
15004: }
15005: if (!child) {
15006: arg = getpid();
15007: write(-1, "", 0);
15008: _exit (arg);
15009: }
15010: }
15011: }
15012:
15013: int
15014: main ()
15015: {
15016: pid_t parent = getpid ();
15017: pid_t child;
15018:
15019: sparc_address_test (0);
15020:
15021: child = vfork ();
15022:
15023: if (child == 0) {
15024: /* Here is another test for sparc vfork register problems. This
15025: test uses lots of local variables, at least as many local
15026: variables as main has allocated so far including compiler
15027: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15028: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15029: reuse the register of parent for one of the local variables,
15030: since it will think that parent can't possibly be used any more
15031: in this routine. Assigning to the local variable will thus
15032: munge parent in the parent process. */
15033: pid_t
15034: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15035: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15036: /* Convince the compiler that p..p7 are live; otherwise, it might
15037: use the same hardware register for all 8 local variables. */
15038: if (p != p1 || p != p2 || p != p3 || p != p4
15039: || p != p5 || p != p6 || p != p7)
15040: _exit(1);
15041:
15042: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15043: from child file descriptors. If the child closes a descriptor
15044: before it execs or exits, this munges the parent's descriptor
15045: as well. Test for this by closing stdout in the child. */
15046: _exit(close(fileno(stdout)) != 0);
15047: } else {
15048: int status;
15049: struct stat st;
15050:
15051: while (wait(&status) != child)
15052: ;
15053: return (
15054: /* Was there some problem with vforking? */
15055: child < 0
15056:
15057: /* Did the child fail? (This shouldn't happen.) */
15058: || status
15059:
15060: /* Did the vfork/compiler bug occur? */
15061: || parent != getpid()
15062:
15063: /* Did the file descriptor bug occur? */
15064: || fstat(fileno(stdout), &st) != 0
15065: );
15066: }
15067: }
15068: _ACEOF
15069: if ac_fn_c_try_run "$LINENO"; then :
15070: ac_cv_func_vfork_works=yes
15071: else
15072: ac_cv_func_vfork_works=no
15073: fi
15074: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15075: conftest.$ac_objext conftest.beam conftest.$ac_ext
15076: fi
15077:
15078: fi
15079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15080: $as_echo "$ac_cv_func_vfork_works" >&6; }
15081:
15082: fi;
15083: if test "x$ac_cv_func_fork_works" = xcross; then
15084: ac_cv_func_vfork_works=$ac_cv_func_vfork
15085: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15086: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15087: fi
15088:
15089: if test "x$ac_cv_func_vfork_works" = xyes; then
15090:
15091: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15092:
15093: else
15094:
15095: $as_echo "#define vfork fork" >>confdefs.h
15096:
15097: fi
15098: if test "x$ac_cv_func_fork_works" = xyes; then
15099:
15100: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15101:
15102: fi
15103:
15104: for ac_header in stdlib.h
15105: do :
15106: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15107: if test "x$ac_cv_header_stdlib_h" = xyes; then :
15108: cat >>confdefs.h <<_ACEOF
15109: #define HAVE_STDLIB_H 1
15110: _ACEOF
15111:
15112: fi
15113:
15114: done
15115:
15116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15117: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15118: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15119: $as_echo_n "(cached) " >&6
15120: else
15121: if test "$cross_compiling" = yes; then :
15122: ac_cv_func_malloc_0_nonnull=no
15123: else
15124: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125: /* end confdefs.h. */
15126: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15127: # include <stdlib.h>
15128: #else
15129: char *malloc ();
15130: #endif
15131:
15132: int
15133: main ()
15134: {
15135: return ! malloc (0);
15136: ;
15137: return 0;
15138: }
15139: _ACEOF
15140: if ac_fn_c_try_run "$LINENO"; then :
15141: ac_cv_func_malloc_0_nonnull=yes
15142: else
15143: ac_cv_func_malloc_0_nonnull=no
15144: fi
15145: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15146: conftest.$ac_objext conftest.beam conftest.$ac_ext
15147: fi
15148:
15149: fi
15150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15151: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15152: if test $ac_cv_func_malloc_0_nonnull = yes; then :
15153:
15154: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15155:
15156: else
15157: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15158:
15159: case " $LIBOBJS " in
15160: *" malloc.$ac_objext "* ) ;;
15161: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15162: ;;
15163: esac
15164:
15165:
15166: $as_echo "#define malloc rpl_malloc" >>confdefs.h
15167:
15168: fi
15169:
15170:
15171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15172: $as_echo_n "checking for working memcmp... " >&6; }
15173: if ${ac_cv_func_memcmp_working+:} false; then :
15174: $as_echo_n "(cached) " >&6
15175: else
15176: if test "$cross_compiling" = yes; then :
15177: ac_cv_func_memcmp_working=no
15178: else
15179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180: /* end confdefs.h. */
15181: $ac_includes_default
15182: int
15183: main ()
15184: {
15185:
15186: /* Some versions of memcmp are not 8-bit clean. */
15187: char c0 = '\100', c1 = '\200', c2 = '\201';
15188: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15189: return 1;
15190:
15191: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15192: or more and with at least one buffer not starting on a 4-byte boundary.
15193: William Lewis provided this test program. */
15194: {
15195: char foo[21];
15196: char bar[21];
15197: int i;
15198: for (i = 0; i < 4; i++)
15199: {
15200: char *a = foo + i;
15201: char *b = bar + i;
15202: strcpy (a, "--------01111111");
15203: strcpy (b, "--------10000000");
15204: if (memcmp (a, b, 16) >= 0)
15205: return 1;
15206: }
15207: return 0;
15208: }
15209:
15210: ;
15211: return 0;
15212: }
15213: _ACEOF
15214: if ac_fn_c_try_run "$LINENO"; then :
15215: ac_cv_func_memcmp_working=yes
15216: else
15217: ac_cv_func_memcmp_working=no
15218: fi
15219: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15220: conftest.$ac_objext conftest.beam conftest.$ac_ext
15221: fi
15222:
15223: fi
15224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15225: $as_echo "$ac_cv_func_memcmp_working" >&6; }
15226: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15227: *" memcmp.$ac_objext "* ) ;;
15228: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15229: ;;
15230: esac
15231:
15232:
15233:
15234:
15235:
15236: for ac_header in $ac_header_list
15237: do :
15238: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15239: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15240: "
15241: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15242: cat >>confdefs.h <<_ACEOF
15243: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15244: _ACEOF
15245:
15246: fi
15247:
15248: done
15249:
15250:
15251:
15252:
15253:
15254:
15255:
15256:
15257: for ac_func in $ac_func_list
15258: do :
15259: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15260: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15261: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15262: cat >>confdefs.h <<_ACEOF
15263: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15264: _ACEOF
15265:
15266: fi
15267: done
15268:
15269:
15270:
15271:
15272:
15273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15274: $as_echo_n "checking for working mktime... " >&6; }
15275: if ${ac_cv_func_working_mktime+:} false; then :
15276: $as_echo_n "(cached) " >&6
15277: else
15278: if test "$cross_compiling" = yes; then :
15279: ac_cv_func_working_mktime=no
15280: else
15281: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282: /* end confdefs.h. */
15283: /* Test program from Paul Eggert and Tony Leneis. */
15284: #ifdef TIME_WITH_SYS_TIME
15285: # include <sys/time.h>
15286: # include <time.h>
15287: #else
15288: # ifdef HAVE_SYS_TIME_H
15289: # include <sys/time.h>
15290: # else
15291: # include <time.h>
15292: # endif
15293: #endif
15294:
15295: #include <limits.h>
15296: #include <stdlib.h>
15297:
15298: #ifdef HAVE_UNISTD_H
15299: # include <unistd.h>
15300: #endif
15301:
15302: #ifndef HAVE_ALARM
15303: # define alarm(X) /* empty */
15304: #endif
15305:
15306: /* Work around redefinition to rpl_putenv by other config tests. */
15307: #undef putenv
15308:
15309: static time_t time_t_max;
15310: static time_t time_t_min;
15311:
15312: /* Values we'll use to set the TZ environment variable. */
15313: static const char *tz_strings[] = {
15314: (const char *) 0, "TZ=GMT0", "TZ=JST-9",
15315: "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15316: };
15317: #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15318:
15319: /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15320: Based on a problem report from Andreas Jaeger. */
15321: static int
15322: spring_forward_gap ()
15323: {
15324: /* glibc (up to about 1998-10-07) failed this test. */
15325: struct tm tm;
15326:
15327: /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15328: instead of "TZ=America/Vancouver" in order to detect the bug even
15329: on systems that don't support the Olson extension, or don't have the
15330: full zoneinfo tables installed. */
15331: putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15332:
15333: tm.tm_year = 98;
15334: tm.tm_mon = 3;
15335: tm.tm_mday = 5;
15336: tm.tm_hour = 2;
15337: tm.tm_min = 0;
15338: tm.tm_sec = 0;
15339: tm.tm_isdst = -1;
15340: return mktime (&tm) != (time_t) -1;
15341: }
15342:
15343: static int
15344: mktime_test1 (time_t now)
15345: {
15346: struct tm *lt;
15347: return ! (lt = localtime (&now)) || mktime (lt) == now;
15348: }
15349:
15350: static int
15351: mktime_test (time_t now)
15352: {
15353: return (mktime_test1 (now)
15354: && mktime_test1 ((time_t) (time_t_max - now))
15355: && mktime_test1 ((time_t) (time_t_min + now)));
15356: }
15357:
15358: static int
15359: irix_6_4_bug ()
15360: {
15361: /* Based on code from Ariel Faigon. */
15362: struct tm tm;
15363: tm.tm_year = 96;
15364: tm.tm_mon = 3;
15365: tm.tm_mday = 0;
15366: tm.tm_hour = 0;
15367: tm.tm_min = 0;
15368: tm.tm_sec = 0;
15369: tm.tm_isdst = -1;
15370: mktime (&tm);
15371: return tm.tm_mon == 2 && tm.tm_mday == 31;
15372: }
15373:
15374: static int
15375: bigtime_test (int j)
15376: {
15377: struct tm tm;
15378: time_t now;
15379: tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15380: now = mktime (&tm);
15381: if (now != (time_t) -1)
15382: {
15383: struct tm *lt = localtime (&now);
15384: if (! (lt
15385: && lt->tm_year == tm.tm_year
15386: && lt->tm_mon == tm.tm_mon
15387: && lt->tm_mday == tm.tm_mday
15388: && lt->tm_hour == tm.tm_hour
15389: && lt->tm_min == tm.tm_min
15390: && lt->tm_sec == tm.tm_sec
15391: && lt->tm_yday == tm.tm_yday
15392: && lt->tm_wday == tm.tm_wday
15393: && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15394: == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15395: return 0;
15396: }
15397: return 1;
15398: }
15399:
15400: static int
15401: year_2050_test ()
15402: {
15403: /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15404: ignoring leap seconds. */
15405: unsigned long int answer = 2527315200UL;
15406:
15407: struct tm tm;
15408: time_t t;
15409: tm.tm_year = 2050 - 1900;
15410: tm.tm_mon = 2 - 1;
15411: tm.tm_mday = 1;
15412: tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15413: tm.tm_isdst = -1;
15414:
15415: /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15416: instead of "TZ=America/Vancouver" in order to detect the bug even
15417: on systems that don't support the Olson extension, or don't have the
15418: full zoneinfo tables installed. */
15419: putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15420:
15421: t = mktime (&tm);
15422:
15423: /* Check that the result is either a failure, or close enough
15424: to the correct answer that we can assume the discrepancy is
15425: due to leap seconds. */
15426: return (t == (time_t) -1
15427: || (0 < t && answer - 120 <= t && t <= answer + 120));
15428: }
15429:
15430: int
15431: main ()
15432: {
15433: time_t t, delta;
15434: int i, j;
15435:
15436: /* This test makes some buggy mktime implementations loop.
15437: Give up after 60 seconds; a mktime slower than that
15438: isn't worth using anyway. */
15439: alarm (60);
15440:
15441: for (;;)
15442: {
15443: t = (time_t_max << 1) + 1;
15444: if (t <= time_t_max)
15445: break;
15446: time_t_max = t;
15447: }
15448: time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15449:
15450: delta = time_t_max / 997; /* a suitable prime number */
15451: for (i = 0; i < N_STRINGS; i++)
15452: {
15453: if (tz_strings[i])
15454: putenv ((char*) tz_strings[i]);
15455:
15456: for (t = 0; t <= time_t_max - delta; t += delta)
15457: if (! mktime_test (t))
15458: return 1;
15459: if (! (mktime_test ((time_t) 1)
15460: && mktime_test ((time_t) (60 * 60))
15461: && mktime_test ((time_t) (60 * 60 * 24))))
15462: return 1;
15463:
15464: for (j = 1; ; j <<= 1)
15465: if (! bigtime_test (j))
15466: return 1;
15467: else if (INT_MAX / 2 < j)
15468: break;
15469: if (! bigtime_test (INT_MAX))
15470: return 1;
15471: }
15472: return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15473: }
15474: _ACEOF
15475: if ac_fn_c_try_run "$LINENO"; then :
15476: ac_cv_func_working_mktime=yes
15477: else
15478: ac_cv_func_working_mktime=no
15479: fi
15480: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15481: conftest.$ac_objext conftest.beam conftest.$ac_ext
15482: fi
15483:
15484: fi
15485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15486: $as_echo "$ac_cv_func_working_mktime" >&6; }
15487: if test $ac_cv_func_working_mktime = no; then
15488: case " $LIBOBJS " in
15489: *" mktime.$ac_objext "* ) ;;
15490: *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15491: ;;
15492: esac
15493:
15494: fi
15495:
15496: for ac_func in strftime
15497: do :
15498: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15499: if test "x$ac_cv_func_strftime" = xyes; then :
15500: cat >>confdefs.h <<_ACEOF
15501: #define HAVE_STRFTIME 1
15502: _ACEOF
15503:
15504: else
15505: # strftime is in -lintl on SCO UNIX.
15506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15507: $as_echo_n "checking for strftime in -lintl... " >&6; }
15508: if ${ac_cv_lib_intl_strftime+:} false; then :
15509: $as_echo_n "(cached) " >&6
15510: else
15511: ac_check_lib_save_LIBS=$LIBS
15512: LIBS="-lintl $LIBS"
15513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514: /* end confdefs.h. */
15515:
15516: /* Override any GCC internal prototype to avoid an error.
15517: Use char because int might match the return type of a GCC
15518: builtin and then its argument prototype would still apply. */
15519: #ifdef __cplusplus
15520: extern "C"
15521: #endif
15522: char strftime ();
15523: int
15524: main ()
15525: {
15526: return strftime ();
15527: ;
15528: return 0;
15529: }
15530: _ACEOF
15531: if ac_fn_c_try_link "$LINENO"; then :
15532: ac_cv_lib_intl_strftime=yes
15533: else
15534: ac_cv_lib_intl_strftime=no
15535: fi
15536: rm -f core conftest.err conftest.$ac_objext \
15537: conftest$ac_exeext conftest.$ac_ext
15538: LIBS=$ac_check_lib_save_LIBS
15539: fi
15540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15541: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15542: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15543: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15544:
15545: LIBS="-lintl $LIBS"
15546: fi
15547:
15548: fi
15549: done
15550:
15551: for ac_header in stdlib.h
15552: do :
15553: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15554: if test "x$ac_cv_header_stdlib_h" = xyes; then :
15555: cat >>confdefs.h <<_ACEOF
15556: #define HAVE_STDLIB_H 1
15557: _ACEOF
15558:
15559: fi
15560:
15561: done
15562:
15563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15564: $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15565: if ${ac_cv_func_realloc_0_nonnull+:} false; then :
15566: $as_echo_n "(cached) " >&6
15567: else
15568: if test "$cross_compiling" = yes; then :
15569: ac_cv_func_realloc_0_nonnull=no
15570: else
15571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572: /* end confdefs.h. */
15573: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15574: # include <stdlib.h>
15575: #else
15576: char *realloc ();
15577: #endif
15578:
15579: int
15580: main ()
15581: {
15582: return ! realloc (0, 0);
15583: ;
15584: return 0;
15585: }
15586: _ACEOF
15587: if ac_fn_c_try_run "$LINENO"; then :
15588: ac_cv_func_realloc_0_nonnull=yes
15589: else
15590: ac_cv_func_realloc_0_nonnull=no
15591: fi
15592: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15593: conftest.$ac_objext conftest.beam conftest.$ac_ext
15594: fi
15595:
15596: fi
15597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15598: $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15599: if test $ac_cv_func_realloc_0_nonnull = yes; then :
15600:
15601: $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15602:
15603: else
15604: $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15605:
15606: case " $LIBOBJS " in
15607: *" realloc.$ac_objext "* ) ;;
15608: *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15609: ;;
15610: esac
15611:
15612:
15613: $as_echo "#define realloc rpl_realloc" >>confdefs.h
15614:
15615: fi
15616:
15617:
15618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15619: $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15620: if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
15621: $as_echo_n "(cached) " >&6
15622: else
15623: rm -f conftest.sym conftest.file
15624: echo >conftest.file
15625: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15626: if test "$cross_compiling" = yes; then :
15627: ac_cv_func_lstat_dereferences_slashed_symlink=no
15628: else
15629: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630: /* end confdefs.h. */
15631: $ac_includes_default
15632: int
15633: main ()
15634: {
15635: struct stat sbuf;
15636: /* Linux will dereference the symlink and fail, as required by POSIX.
15637: That is better in the sense that it means we will not
15638: have to compile and use the lstat wrapper. */
15639: return lstat ("conftest.sym/", &sbuf) == 0;
15640: ;
15641: return 0;
15642: }
15643: _ACEOF
15644: if ac_fn_c_try_run "$LINENO"; then :
15645: ac_cv_func_lstat_dereferences_slashed_symlink=yes
15646: else
15647: ac_cv_func_lstat_dereferences_slashed_symlink=no
15648: fi
15649: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15650: conftest.$ac_objext conftest.beam conftest.$ac_ext
15651: fi
15652:
15653: else
15654: # If the `ln -s' command failed, then we probably don't even
15655: # have an lstat function.
15656: ac_cv_func_lstat_dereferences_slashed_symlink=no
15657: fi
15658: rm -f conftest.sym conftest.file
15659:
15660: fi
15661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15662: $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15663:
15664: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15665:
15666: cat >>confdefs.h <<_ACEOF
15667: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15668: _ACEOF
15669:
15670:
15671: if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
15672: case " $LIBOBJS " in
15673: *" lstat.$ac_objext "* ) ;;
15674: *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15675: ;;
15676: esac
15677:
15678: fi
15679:
15680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
15681: $as_echo_n "checking whether stat accepts an empty string... " >&6; }
15682: if ${ac_cv_func_stat_empty_string_bug+:} false; then :
15683: $as_echo_n "(cached) " >&6
15684: else
15685: if test "$cross_compiling" = yes; then :
15686: ac_cv_func_stat_empty_string_bug=yes
15687: else
15688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689: /* end confdefs.h. */
15690: $ac_includes_default
15691: int
15692: main ()
15693: {
15694: struct stat sbuf;
15695: return stat ("", &sbuf) == 0;
15696: ;
15697: return 0;
15698: }
15699: _ACEOF
15700: if ac_fn_c_try_run "$LINENO"; then :
15701: ac_cv_func_stat_empty_string_bug=no
15702: else
15703: ac_cv_func_stat_empty_string_bug=yes
15704: fi
15705: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15706: conftest.$ac_objext conftest.beam conftest.$ac_ext
15707: fi
15708:
15709: fi
15710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
15711: $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
15712: if test $ac_cv_func_stat_empty_string_bug = yes; then
15713: case " $LIBOBJS " in
15714: *" stat.$ac_objext "* ) ;;
15715: *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15716: ;;
15717: esac
15718:
15719:
15720: cat >>confdefs.h <<_ACEOF
15721: #define HAVE_STAT_EMPTY_STRING_BUG 1
15722: _ACEOF
15723:
15724: fi
15725:
15726: for ac_header in sys/select.h sys/socket.h
15727: do :
15728: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15729: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15730: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15731: cat >>confdefs.h <<_ACEOF
15732: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15733: _ACEOF
15734:
15735: fi
15736:
15737: done
15738:
15739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
15740: $as_echo_n "checking types of arguments for select... " >&6; }
15741: if ${ac_cv_func_select_args+:} false; then :
15742: $as_echo_n "(cached) " >&6
15743: else
15744: for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15745: for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
15746: for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15747: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748: /* end confdefs.h. */
15749: $ac_includes_default
15750: #ifdef HAVE_SYS_SELECT_H
15751: # include <sys/select.h>
15752: #endif
15753: #ifdef HAVE_SYS_SOCKET_H
15754: # include <sys/socket.h>
15755: #endif
15756:
15757: int
15758: main ()
15759: {
15760: extern int select ($ac_arg1,
15761: $ac_arg234, $ac_arg234, $ac_arg234,
15762: $ac_arg5);
15763: ;
15764: return 0;
15765: }
15766: _ACEOF
15767: if ac_fn_c_try_compile "$LINENO"; then :
15768: ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15769: fi
15770: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771: done
15772: done
15773: done
15774: # Provide a safe default value.
15775: : "${ac_cv_func_select_args=int,int *,struct timeval *}"
15776:
15777: fi
15778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
15779: $as_echo "$ac_cv_func_select_args" >&6; }
15780: ac_save_IFS=$IFS; IFS=','
15781: set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15782: IFS=$ac_save_IFS
15783: shift
15784:
15785: cat >>confdefs.h <<_ACEOF
15786: #define SELECT_TYPE_ARG1 $1
15787: _ACEOF
15788:
15789:
15790: cat >>confdefs.h <<_ACEOF
15791: #define SELECT_TYPE_ARG234 ($2)
15792: _ACEOF
15793:
15794:
15795: cat >>confdefs.h <<_ACEOF
15796: #define SELECT_TYPE_ARG5 ($3)
15797: _ACEOF
15798:
15799: rm -f conftest*
15800:
15801: for ac_func in strftime
15802: do :
15803: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15804: if test "x$ac_cv_func_strftime" = xyes; then :
15805: cat >>confdefs.h <<_ACEOF
15806: #define HAVE_STRFTIME 1
15807: _ACEOF
15808:
15809: else
15810: # strftime is in -lintl on SCO UNIX.
15811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15812: $as_echo_n "checking for strftime in -lintl... " >&6; }
15813: if ${ac_cv_lib_intl_strftime+:} false; then :
15814: $as_echo_n "(cached) " >&6
15815: else
15816: ac_check_lib_save_LIBS=$LIBS
15817: LIBS="-lintl $LIBS"
15818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819: /* end confdefs.h. */
15820:
15821: /* Override any GCC internal prototype to avoid an error.
15822: Use char because int might match the return type of a GCC
15823: builtin and then its argument prototype would still apply. */
15824: #ifdef __cplusplus
15825: extern "C"
15826: #endif
15827: char strftime ();
15828: int
15829: main ()
15830: {
15831: return strftime ();
15832: ;
15833: return 0;
15834: }
15835: _ACEOF
15836: if ac_fn_c_try_link "$LINENO"; then :
15837: ac_cv_lib_intl_strftime=yes
15838: else
15839: ac_cv_lib_intl_strftime=no
15840: fi
15841: rm -f core conftest.err conftest.$ac_objext \
15842: conftest$ac_exeext conftest.$ac_ext
15843: LIBS=$ac_check_lib_save_LIBS
15844: fi
15845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15846: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15847: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15848: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15849:
15850: LIBS="-lintl $LIBS"
15851: fi
15852:
15853: fi
15854: done
15855:
15856: for ac_func in vprintf
15857: do :
15858: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15859: if test "x$ac_cv_func_vprintf" = xyes; then :
15860: cat >>confdefs.h <<_ACEOF
15861: #define HAVE_VPRINTF 1
15862: _ACEOF
15863:
15864: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15865: if test "x$ac_cv_func__doprnt" = xyes; then :
15866:
15867: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15868:
15869: fi
15870:
15871: fi
15872: done
15873:
15874:
15875:
15876: TMPLIBS="$LIBS"
15877: ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
15878: if test "x$ac_cv_header_math_h" = xyes; then :
15879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15880: $as_echo_n "checking for pow in -lm... " >&6; }
15881: if ${ac_cv_lib_m_pow+:} false; then :
15882: $as_echo_n "(cached) " >&6
15883: else
15884: ac_check_lib_save_LIBS=$LIBS
15885: LIBS="-lm $LIBS"
15886: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887: /* end confdefs.h. */
15888:
15889: /* Override any GCC internal prototype to avoid an error.
15890: Use char because int might match the return type of a GCC
15891: builtin and then its argument prototype would still apply. */
15892: #ifdef __cplusplus
15893: extern "C"
15894: #endif
15895: char pow ();
15896: int
15897: main ()
15898: {
15899: return pow ();
15900: ;
15901: return 0;
15902: }
15903: _ACEOF
15904: if ac_fn_c_try_link "$LINENO"; then :
15905: ac_cv_lib_m_pow=yes
15906: else
15907: ac_cv_lib_m_pow=no
15908: fi
15909: rm -f core conftest.err conftest.$ac_objext \
15910: conftest$ac_exeext conftest.$ac_ext
15911: LIBS=$ac_check_lib_save_LIBS
15912: fi
15913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
15914: $as_echo "$ac_cv_lib_m_pow" >&6; }
15915: if test "x$ac_cv_lib_m_pow" = xyes; then :
15916: LIBM="-lm"
15917: LIBS="$LIBS $LIBM"
15918:
15919: $as_echo "#define HAVE_LIBM /**/" >>confdefs.h
15920:
15921: for ac_func in pow
15922: do :
15923: ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
15924: if test "x$ac_cv_func_pow" = xyes; then :
15925: cat >>confdefs.h <<_ACEOF
15926: #define HAVE_POW 1
15927: _ACEOF
15928:
15929: else
15930: LIBM=""
15931: fi
15932: done
15933:
15934:
15935: fi
15936:
15937:
15938: fi
15939:
15940:
15941: if test x"$LIBM" = x ; then
15942: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find working pow function - bgpd may not link" >&5
15943: $as_echo "$as_me: WARNING: Unable to find working pow function - bgpd may not link" >&2;}
15944: fi
15945: LIBS="$TMPLIBS"
15946:
15947:
15948: for ac_func in dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \
15949: inet_ntoa inet_aton strnlen \
15950: memchr memmove memset select socket \
15951: strcasecmp strchr strcspn strdup strerror \
15952: strncasecmp strndup strrchr strspn strstr \
15953: strtol strtoul strlcat strlcpy \
15954: daemon snprintf vsnprintf \
15955: if_nametoindex if_indextoname getifaddrs \
15956: uname fcntl
15957: do :
15958: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15959: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15960: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15961: cat >>confdefs.h <<_ACEOF
15962: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15963: _ACEOF
15964:
15965: fi
15966: done
15967:
15968:
15969: for ac_func in setproctitle
15970: do :
15971: ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
15972: if test "x$ac_cv_func_setproctitle" = xyes; then :
15973: cat >>confdefs.h <<_ACEOF
15974: #define HAVE_SETPROCTITLE 1
15975: _ACEOF
15976:
15977: else
15978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
15979: $as_echo_n "checking for setproctitle in -lutil... " >&6; }
15980: if ${ac_cv_lib_util_setproctitle+:} false; then :
15981: $as_echo_n "(cached) " >&6
15982: else
15983: ac_check_lib_save_LIBS=$LIBS
15984: LIBS="-lutil $LIBS"
15985: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986: /* end confdefs.h. */
15987:
15988: /* Override any GCC internal prototype to avoid an error.
15989: Use char because int might match the return type of a GCC
15990: builtin and then its argument prototype would still apply. */
15991: #ifdef __cplusplus
15992: extern "C"
15993: #endif
15994: char setproctitle ();
15995: int
15996: main ()
15997: {
15998: return setproctitle ();
15999: ;
16000: return 0;
16001: }
16002: _ACEOF
16003: if ac_fn_c_try_link "$LINENO"; then :
16004: ac_cv_lib_util_setproctitle=yes
16005: else
16006: ac_cv_lib_util_setproctitle=no
16007: fi
16008: rm -f core conftest.err conftest.$ac_objext \
16009: conftest$ac_exeext conftest.$ac_ext
16010: LIBS=$ac_check_lib_save_LIBS
16011: fi
16012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
16013: $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
16014: if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
16015: LIBS="$LIBS -lutil"
16016:
16017: $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
16018:
16019:
16020:
16021: fi
16022:
16023:
16024:
16025: fi
16026: done
16027:
16028:
16029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra between kernel interface method" >&5
16030: $as_echo_n "checking zebra between kernel interface method... " >&6; }
16031: if test x"$opsys" = x"gnu-linux"; then
16032: if test "${enable_netlink}" = "yes";then
16033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
16034: $as_echo "netlink" >&6; }
16035: RT_METHOD=rt_netlink.o
16036:
16037: $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
16038:
16039: netlink=yes
16040: elif test "${enable_netlink}" = "no"; then
16041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
16042: $as_echo "ioctl" >&6; }
16043: RT_METHOD=rt_ioctl.o
16044: netlink=no
16045: else
16046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
16047: $as_echo "netlink" >&6; }
16048: RT_METHOD=rt_netlink.o
16049:
16050: $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
16051:
16052: netlink=yes
16053: fi
16054: elif test x"$opsys" = x"sol2-6";then
16055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
16056: $as_echo "Route socket" >&6; }
16057: KERNEL_METHOD="kernel_socket.o"
16058: RT_METHOD="rt_socket.o"
16059: elif test x"$opsys" = x"sol8";then
16060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
16061: $as_echo "Route socket" >&6; }
16062: KERNEL_METHOD="kernel_socket.o"
16063: RT_METHOD="rt_socket.o"
16064: elif test "$opsys" = "irix" ; then
16065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
16066: $as_echo "Route socket" >&6; }
16067: KERNEL_METHOD="kernel_socket.o"
16068: RT_METHOD="rt_socket.o"
16069: else
16070: if test "$cross_compiling" = yes; then :
16071: KERNEL_METHOD=kernel_socket.o
16072: RT_METHOD=rt_socket.o
16073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: socket" >&5
16074: $as_echo "socket" >&6; }
16075: else
16076: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077: /* end confdefs.h. */
16078: #include <errno.h>
16079: #include <sys/types.h>
16080: #include <sys/socket.h>
16081:
16082: main ()
16083: {
16084: int ac_sock;
16085:
16086: ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
16087: if (ac_sock < 0 && errno == EINVAL)
16088: exit (1);
16089: exit (0);
16090: }
16091: _ACEOF
16092: if ac_fn_c_try_run "$LINENO"; then :
16093: KERNEL_METHOD=kernel_socket.o
16094: RT_METHOD=rt_socket.o
16095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: socket" >&5
16096: $as_echo "socket" >&6; }
16097: else
16098: RT_METHOD=rt_ioctl.o
16099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
16100: $as_echo "ioctl" >&6; }
16101: fi
16102: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16103: conftest.$ac_objext conftest.beam conftest.$ac_ext
16104: fi
16105:
16106: fi
16107:
16108:
16109:
16110:
16111:
16112: $as_echo "#define ISIS_METHOD_PFPACKET 1" >>confdefs.h
16113:
16114:
16115: $as_echo "#define ISIS_METHOD_DLPI 2" >>confdefs.h
16116:
16117:
16118: $as_echo "#define ISIS_METHOD_BPF 3" >>confdefs.h
16119:
16120: ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
16121: if test "x$ac_cv_header_net_bpf_h" = xyes; then :
16122:
16123: fi
16124:
16125:
16126: ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
16127: if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
16128:
16129: fi
16130:
16131:
16132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra IS-IS I/O method" >&5
16133: $as_echo_n "checking zebra IS-IS I/O method... " >&6; }
16134: if test x"$opsys" = x"gnu-linux"; then
16135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: pfpacket" >&5
16136: $as_echo "pfpacket" >&6; }
16137: ISIS_METHOD_MACRO="ISIS_METHOD_PFPACKET"
16138: elif test x"$opsys" = x"sol2-6" -o x"$opsys" = x"sol8"; then
16139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
16140: $as_echo "DLPI" >&6; }
16141: ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
16142: else
16143: if test $ac_cv_header_net_bpf_h = no; then
16144: if test $ac_cv_header_sys_dlpi_h = no; then
16145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16146: $as_echo "none" >&6; }
16147: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** IS-IS support will not be built ***" >&5
16148: $as_echo "$as_me: WARNING: *** IS-IS support will not be built ***" >&2;}
16149: ISISD=""
16150: else
16151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
16152: $as_echo "DLPI" >&6; }
16153: fi
16154: ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
16155: else
16156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: BPF" >&5
16157: $as_echo "BPF" >&6; }
16158: ISIS_METHOD_MACRO="ISIS_METHOD_BPF"
16159: fi
16160: fi
16161:
16162: cat >>confdefs.h <<_ACEOF
16163: #define ISIS_METHOD $ISIS_METHOD_MACRO
16164: _ACEOF
16165:
16166:
16167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken CMSG_FIRSTHDR" >&5
16168: $as_echo_n "checking for broken CMSG_FIRSTHDR... " >&6; }
16169: if test "$cross_compiling" = yes; then :
16170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171: $as_echo "no" >&6; }
16172: else
16173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174: /* end confdefs.h. */
16175:
16176: #ifdef SUNOS_5
16177: #define _XPG4_2
16178: #define __EXTENSIONS__
16179: #endif
16180: #ifdef HAVE_STDLIB_H
16181: # include <stdlib.h>
16182: #endif
16183: #ifdef HAVE_SYS_TYPES_H
16184: #include <sys/types.h>
16185: #endif
16186: #ifdef HAVE_SYS_SOCKET_H
16187: #include <sys/socket.h>
16188: #endif
16189:
16190: main()
16191: {
16192: struct msghdr msg;
16193: char buf[4];
16194:
16195: msg.msg_control = buf;
16196: msg.msg_controllen = 0;
16197:
16198: if (CMSG_FIRSTHDR(&msg) != NULL)
16199: exit(0);
16200: exit (1);
16201: }
16202: _ACEOF
16203: if ac_fn_c_try_run "$LINENO"; then :
16204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using workaround" >&5
16205: $as_echo "yes - using workaround" >&6; }
16206: $as_echo "#define HAVE_BROKEN_CMSG_FIRSTHDR /**/" >>confdefs.h
16207:
16208: else
16209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210: $as_echo "no" >&6; }
16211: fi
16212: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16213: conftest.$ac_objext conftest.beam conftest.$ac_ext
16214: fi
16215:
16216:
16217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking route read method" >&5
16218: $as_echo_n "checking route read method... " >&6; }
16219: if ${quagga_cv_rtread_method+:} false; then :
16220: $as_echo_n "(cached) " >&6
16221: else
16222: if test "x$netlink" = xyes; then
16223: quagga_cv_rtread_method="netlink"
16224: else
16225: for quagga_cv_rtread_method in /proc/net/route /dev/ip /dev/null;
16226: do
16227: test x`ls $quagga_cv_rtread_method 2>/dev/null` = x"$quagga_cv_rtread_method" && break
16228: done
16229: case $quagga_cv_rtread_method in
16230: "/proc/net/route") quagga_cv_rtread_method="proc";;
16231: "/dev/ip")
16232: case "$host" in
16233: *-freebsd*) quagga_cv_rtread_method="sysctl";;
16234: *) quagga_cv_rtread_method="getmsg";;
16235: esac;;
16236: *)
16237: quagga_cv_rtread_method="sysctl";;
16238: esac
16239: fi
16240: fi
16241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_rtread_method" >&5
16242: $as_echo "$quagga_cv_rtread_method" >&6; }
16243: RTREAD_METHOD=rtread_${quagga_cv_rtread_method}.o
16244:
16245:
16246: IOCTL_METHOD=ioctl.o
16247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking interface looking up method" >&5
16248: $as_echo_n "checking interface looking up method... " >&6; }
16249: if test "$netlink" = yes; then
16250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
16251: $as_echo "netlink" >&6; }
16252: IF_METHOD=if_netlink.o
16253: elif test "$opsys" = "sol2-6";then
16254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GIF" >&5
16255: $as_echo "Solaris GIF" >&6; }
16256: IF_METHOD=if_ioctl.o
16257: elif test "$opsys" = "sol8";then
16258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GLIF" >&5
16259: $as_echo "Solaris GLIF" >&6; }
16260: IF_METHOD=if_ioctl_solaris.o
16261: IOCTL_METHOD=ioctl_solaris.o
16262: elif test "$opsys" = "irix" ; then
16263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5
16264: $as_echo "IRIX" >&6; }
16265: IF_METHOD=if_ioctl.o
16266: elif test "$opsys" = "openbsd";then
16267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
16268: $as_echo "openbsd" >&6; }
16269: IF_METHOD=if_ioctl.o
16270: elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
16271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysctl" >&5
16272: $as_echo "sysctl" >&6; }
16273: IF_METHOD=if_sysctl.o
16274:
16275: $as_echo "#define HAVE_NET_RT_IFLIST /**/" >>confdefs.h
16276:
16277: else
16278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
16279: $as_echo "ioctl" >&6; }
16280: IF_METHOD=if_ioctl.o
16281: fi
16282:
16283:
16284:
16285: ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "#ifdef SUNOS_5
16286: #define _XPG4_2
16287: #define __EXTENSIONS__
16288: #endif
16289: #include <stdio.h>
16290: #if STDC_HEADERS
16291: # include <stdlib.h>
16292: # include <stddef.h>
16293: #else
16294: # if HAVE_STDLIB_H
16295: # include <stdlib.h>
16296: # endif
16297: #endif
16298: #if HAVE_SYS_TYPES_H
16299: # include <sys/types.h>
16300: #endif
16301: /* sys/conf.h depends on param.h on FBSD at least */
16302: #if HAVE_SYS_PARAM_H
16303: # include <sys/param.h>
16304: #endif
16305: /* Required for MAXSIG */
16306: #if HAVE_SIGNAL_H
16307: # include <signal.h>
16308: #endif
16309: #if HAVE_SYS_SOCKET_H
16310: # include <sys/socket.h>
16311: #endif
16312: #if HAVE_NETINET_IN_H
16313: # include <netinet/in.h>
16314: #endif
16315: #ifdef TIME_WITH_SYS_TIME
16316: # include <sys/time.h>
16317: # include <time.h>
16318: #else
16319: # ifdef HAVE_SYS_TIME_H
16320: # include <sys/time.h>
16321: # else
16322: # include <time.h>
16323: # endif
16324: #endif /* TIME_WITH_SYS_TIME */
16325:
16326: #if HAVE_NET_IF_H
16327: # include <net/if.h>
16328: #endif
16329:
16330: #if HAVE_NET_IF_VAR_H
16331: # include <net/if_var.h>
16332: #endif
16333:
16334: #if HAVE_SYS_UN_H
16335: # include <sys/un.h>
16336: #endif
16337: #if HAVE_NETINET_IN_SYSTM_H
16338: # include <netinet/in_systm.h>
16339: #endif
16340: #if HAVE_NETINET_IN_VAR_H
16341: # include <netinet/in_var.h>
16342: #endif
16343: #if HAVE_NET_IF_DL_H
16344: # include <net/if_dl.h>
16345: #endif
16346: #if HAVE_NET_NETOPT_H
16347: # include <net/netopt.h>
16348: #endif
16349: #if HAVE_NET_ROUTE_H
16350: # include <net/route.h>
16351: #endif
16352: #if HAVE_INET_ND_H
16353: # include <inet/nd.h>
16354: #endif
16355: #if HAVE_ARPA_INET_H
16356: # include <arpa/inet.h>
16357: #endif
16358: /* Required for IDRP */
16359: #if HAVE_NETINET_IP_ICMP_H
16360: # include <netinet/ip_icmp.h>
16361: #endif
16362:
16363: "
16364: if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then :
16365:
16366: cat >>confdefs.h <<_ACEOF
16367: #define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1
16368: _ACEOF
16369:
16370:
16371: fi
16372:
16373:
16374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD struct ip_mreq hack" >&5
16375: $as_echo_n "checking for BSD struct ip_mreq hack... " >&6; }
16376: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377: /* end confdefs.h. */
16378: #ifdef HAVE_SYS_PARAM_H
16379: #include <sys/param.h>
16380: #endif
16381: int
16382: main ()
16383: {
16384: #if (defined(__FreeBSD__) && ((__FreeBSD_version >= 500022 && __FreeBSD_version < 700000) || (__FreeBSD_version < 500000 && __FreeBSD_version >= 440000))) || (defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 106010000)
16385: return (0);
16386: #else
16387: #error No support for BSD struct ip_mreq hack detected
16388: #endif
16389: ;
16390: return 0;
16391: }
16392: _ACEOF
16393: if ac_fn_c_try_compile "$LINENO"; then :
16394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16395: $as_echo "yes" >&6; }
16396:
16397: $as_echo "#define HAVE_BSD_STRUCT_IP_MREQ_HACK /**/" >>confdefs.h
16398:
16399: else
16400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401: $as_echo "no" >&6; }
16402: fi
16403: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404:
16405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC3678 protocol-independed API" >&5
16406: $as_echo_n "checking for RFC3678 protocol-independed API... " >&6; }
16407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408: /* end confdefs.h. */
16409:
16410: #include <sys/types.h>
16411: #include <netinet/in.h>
16412:
16413: int
16414: main ()
16415: {
16416: struct group_req gr; int sock; setsockopt(sock, IPPROTO_IP, MCAST_JOIN_GROUP, (void*)&gr, sizeof(gr));
16417:
16418: ;
16419: return 0;
16420: }
16421: _ACEOF
16422: if ac_fn_c_try_compile "$LINENO"; then :
16423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16424: $as_echo "yes" >&6; }
16425:
16426: $as_echo "#define HAVE_RFC3678 1" >>confdefs.h
16427:
16428: else
16429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430: $as_echo "no" >&6; }
16431: fi
16432: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433:
16434: ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
16435: #define _XPG4_2
16436: #define __EXTENSIONS__
16437: #endif
16438: #include <stdio.h>
16439: #if STDC_HEADERS
16440: # include <stdlib.h>
16441: # include <stddef.h>
16442: #else
16443: # if HAVE_STDLIB_H
16444: # include <stdlib.h>
16445: # endif
16446: #endif
16447: #if HAVE_SYS_TYPES_H
16448: # include <sys/types.h>
16449: #endif
16450: /* sys/conf.h depends on param.h on FBSD at least */
16451: #if HAVE_SYS_PARAM_H
16452: # include <sys/param.h>
16453: #endif
16454: /* Required for MAXSIG */
16455: #if HAVE_SIGNAL_H
16456: # include <signal.h>
16457: #endif
16458: #if HAVE_SYS_SOCKET_H
16459: # include <sys/socket.h>
16460: #endif
16461: #if HAVE_NETINET_IN_H
16462: # include <netinet/in.h>
16463: #endif
16464: #ifdef TIME_WITH_SYS_TIME
16465: # include <sys/time.h>
16466: # include <time.h>
16467: #else
16468: # ifdef HAVE_SYS_TIME_H
16469: # include <sys/time.h>
16470: # else
16471: # include <time.h>
16472: # endif
16473: #endif /* TIME_WITH_SYS_TIME */
16474:
16475: #if HAVE_NET_IF_H
16476: # include <net/if.h>
16477: #endif
16478:
16479: #if HAVE_NET_IF_VAR_H
16480: # include <net/if_var.h>
16481: #endif
16482:
16483: #if HAVE_SYS_UN_H
16484: # include <sys/un.h>
16485: #endif
16486: #if HAVE_NETINET_IN_SYSTM_H
16487: # include <netinet/in_systm.h>
16488: #endif
16489: #if HAVE_NETINET_IN_VAR_H
16490: # include <netinet/in_var.h>
16491: #endif
16492: #if HAVE_NET_IF_DL_H
16493: # include <net/if_dl.h>
16494: #endif
16495: #if HAVE_NET_NETOPT_H
16496: # include <net/netopt.h>
16497: #endif
16498: #if HAVE_NET_ROUTE_H
16499: # include <net/route.h>
16500: #endif
16501: #if HAVE_INET_ND_H
16502: # include <inet/nd.h>
16503: #endif
16504: #if HAVE_ARPA_INET_H
16505: # include <arpa/inet.h>
16506: #endif
16507: /* Required for IDRP */
16508: #if HAVE_NETINET_IP_ICMP_H
16509: # include <netinet/ip_icmp.h>
16510: #endif
16511:
16512: "
16513: if test "x$ac_cv_header_net_if_h" = xyes; then :
16514: ac_fn_c_check_header_compile "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "#ifdef SUNOS_5
16515: #define _XPG4_2
16516: #define __EXTENSIONS__
16517: #endif
16518: #include <stdio.h>
16519: #if STDC_HEADERS
16520: # include <stdlib.h>
16521: # include <stddef.h>
16522: #else
16523: # if HAVE_STDLIB_H
16524: # include <stdlib.h>
16525: # endif
16526: #endif
16527: #if HAVE_SYS_TYPES_H
16528: # include <sys/types.h>
16529: #endif
16530: /* sys/conf.h depends on param.h on FBSD at least */
16531: #if HAVE_SYS_PARAM_H
16532: # include <sys/param.h>
16533: #endif
16534: /* Required for MAXSIG */
16535: #if HAVE_SIGNAL_H
16536: # include <signal.h>
16537: #endif
16538: #if HAVE_SYS_SOCKET_H
16539: # include <sys/socket.h>
16540: #endif
16541: #if HAVE_NETINET_IN_H
16542: # include <netinet/in.h>
16543: #endif
16544: #ifdef TIME_WITH_SYS_TIME
16545: # include <sys/time.h>
16546: # include <time.h>
16547: #else
16548: # ifdef HAVE_SYS_TIME_H
16549: # include <sys/time.h>
16550: # else
16551: # include <time.h>
16552: # endif
16553: #endif /* TIME_WITH_SYS_TIME */
16554:
16555: #if HAVE_NET_IF_H
16556: # include <net/if.h>
16557: #endif
16558:
16559: #if HAVE_NET_IF_VAR_H
16560: # include <net/if_var.h>
16561: #endif
16562:
16563: #if HAVE_SYS_UN_H
16564: # include <sys/un.h>
16565: #endif
16566: #if HAVE_NETINET_IN_SYSTM_H
16567: # include <netinet/in_systm.h>
16568: #endif
16569: #if HAVE_NETINET_IN_VAR_H
16570: # include <netinet/in_var.h>
16571: #endif
16572: #if HAVE_NET_IF_DL_H
16573: # include <net/if_dl.h>
16574: #endif
16575: #if HAVE_NET_NETOPT_H
16576: # include <net/netopt.h>
16577: #endif
16578: #if HAVE_NET_ROUTE_H
16579: # include <net/route.h>
16580: #endif
16581: #if HAVE_INET_ND_H
16582: # include <inet/nd.h>
16583: #endif
16584: #if HAVE_ARPA_INET_H
16585: # include <arpa/inet.h>
16586: #endif
16587: /* Required for IDRP */
16588: #if HAVE_NETINET_IP_ICMP_H
16589: # include <netinet/ip_icmp.h>
16590: #endif
16591:
16592: "
16593: if test "x$ac_cv_header_net_if_media_h" = xyes; then :
16594:
16595: ac_fn_c_check_member "$LINENO" "struct ifmediareq" "ifm_status" "ac_cv_member_struct_ifmediareq_ifm_status" "#ifdef SUNOS_5
16596: #define _XPG4_2
16597: #define __EXTENSIONS__
16598: #endif
16599: #include <stdio.h>
16600: #if STDC_HEADERS
16601: # include <stdlib.h>
16602: # include <stddef.h>
16603: #else
16604: # if HAVE_STDLIB_H
16605: # include <stdlib.h>
16606: # endif
16607: #endif
16608: #if HAVE_SYS_TYPES_H
16609: # include <sys/types.h>
16610: #endif
16611: /* sys/conf.h depends on param.h on FBSD at least */
16612: #if HAVE_SYS_PARAM_H
16613: # include <sys/param.h>
16614: #endif
16615: /* Required for MAXSIG */
16616: #if HAVE_SIGNAL_H
16617: # include <signal.h>
16618: #endif
16619: #if HAVE_SYS_SOCKET_H
16620: # include <sys/socket.h>
16621: #endif
16622: #if HAVE_NETINET_IN_H
16623: # include <netinet/in.h>
16624: #endif
16625: #ifdef TIME_WITH_SYS_TIME
16626: # include <sys/time.h>
16627: # include <time.h>
16628: #else
16629: # ifdef HAVE_SYS_TIME_H
16630: # include <sys/time.h>
16631: # else
16632: # include <time.h>
16633: # endif
16634: #endif /* TIME_WITH_SYS_TIME */
16635:
16636: #if HAVE_NET_IF_H
16637: # include <net/if.h>
16638: #endif
16639:
16640: #if HAVE_NET_IF_VAR_H
16641: # include <net/if_var.h>
16642: #endif
16643:
16644: #if HAVE_SYS_UN_H
16645: # include <sys/un.h>
16646: #endif
16647: #if HAVE_NETINET_IN_SYSTM_H
16648: # include <netinet/in_systm.h>
16649: #endif
16650: #if HAVE_NETINET_IN_VAR_H
16651: # include <netinet/in_var.h>
16652: #endif
16653: #if HAVE_NET_IF_DL_H
16654: # include <net/if_dl.h>
16655: #endif
16656: #if HAVE_NET_NETOPT_H
16657: # include <net/netopt.h>
16658: #endif
16659: #if HAVE_NET_ROUTE_H
16660: # include <net/route.h>
16661: #endif
16662: #if HAVE_INET_ND_H
16663: # include <inet/nd.h>
16664: #endif
16665: #if HAVE_ARPA_INET_H
16666: # include <arpa/inet.h>
16667: #endif
16668: /* Required for IDRP */
16669: #if HAVE_NETINET_IP_ICMP_H
16670: # include <netinet/ip_icmp.h>
16671: #endif
16672:
16673: #include <net/if_media.h>
16674:
16675: "
16676: if test "x$ac_cv_member_struct_ifmediareq_ifm_status" = xyes; then :
16677:
16678: cat >>confdefs.h <<_ACEOF
16679: #define HAVE_STRUCT_IFMEDIAREQ_IFM_STATUS 1
16680: _ACEOF
16681:
16682:
16683: $as_echo "#define HAVE_BSD_LINK_DETECT /**/" >>confdefs.h
16684:
16685: fi
16686:
16687: fi
16688:
16689:
16690: fi
16691:
16692:
16693:
16694:
16695: ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "#ifdef SUNOS_5
16696: #define _XPG4_2
16697: #define __EXTENSIONS__
16698: #endif
16699: #include <stdio.h>
16700: #if STDC_HEADERS
16701: # include <stdlib.h>
16702: # include <stddef.h>
16703: #else
16704: # if HAVE_STDLIB_H
16705: # include <stdlib.h>
16706: # endif
16707: #endif
16708: #if HAVE_SYS_TYPES_H
16709: # include <sys/types.h>
16710: #endif
16711: /* sys/conf.h depends on param.h on FBSD at least */
16712: #if HAVE_SYS_PARAM_H
16713: # include <sys/param.h>
16714: #endif
16715: /* Required for MAXSIG */
16716: #if HAVE_SIGNAL_H
16717: # include <signal.h>
16718: #endif
16719: #if HAVE_SYS_SOCKET_H
16720: # include <sys/socket.h>
16721: #endif
16722: #if HAVE_NETINET_IN_H
16723: # include <netinet/in.h>
16724: #endif
16725: #ifdef TIME_WITH_SYS_TIME
16726: # include <sys/time.h>
16727: # include <time.h>
16728: #else
16729: # ifdef HAVE_SYS_TIME_H
16730: # include <sys/time.h>
16731: # else
16732: # include <time.h>
16733: # endif
16734: #endif /* TIME_WITH_SYS_TIME */
16735:
16736: #if HAVE_NET_IF_H
16737: # include <net/if.h>
16738: #endif
16739:
16740: #if HAVE_NET_IF_VAR_H
16741: # include <net/if_var.h>
16742: #endif
16743:
16744: #if HAVE_SYS_UN_H
16745: # include <sys/un.h>
16746: #endif
16747: #if HAVE_NETINET_IN_SYSTM_H
16748: # include <netinet/in_systm.h>
16749: #endif
16750: #if HAVE_NETINET_IN_VAR_H
16751: # include <netinet/in_var.h>
16752: #endif
16753: #if HAVE_NET_IF_DL_H
16754: # include <net/if_dl.h>
16755: #endif
16756: #if HAVE_NET_NETOPT_H
16757: # include <net/netopt.h>
16758: #endif
16759: #if HAVE_NET_ROUTE_H
16760: # include <net/route.h>
16761: #endif
16762: #if HAVE_INET_ND_H
16763: # include <inet/nd.h>
16764: #endif
16765: #if HAVE_ARPA_INET_H
16766: # include <arpa/inet.h>
16767: #endif
16768: /* Required for IDRP */
16769: #if HAVE_NETINET_IP_ICMP_H
16770: # include <netinet/ip_icmp.h>
16771: #endif
16772:
16773: "
16774: if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
16775:
16776: ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
16777: #define _XPG4_2
16778: #define __EXTENSIONS__
16779: #endif
16780: #include <stdio.h>
16781: #if STDC_HEADERS
16782: # include <stdlib.h>
16783: # include <stddef.h>
16784: #else
16785: # if HAVE_STDLIB_H
16786: # include <stdlib.h>
16787: # endif
16788: #endif
16789: #if HAVE_SYS_TYPES_H
16790: # include <sys/types.h>
16791: #endif
16792: /* sys/conf.h depends on param.h on FBSD at least */
16793: #if HAVE_SYS_PARAM_H
16794: # include <sys/param.h>
16795: #endif
16796: /* Required for MAXSIG */
16797: #if HAVE_SIGNAL_H
16798: # include <signal.h>
16799: #endif
16800: #if HAVE_SYS_SOCKET_H
16801: # include <sys/socket.h>
16802: #endif
16803: #if HAVE_NETINET_IN_H
16804: # include <netinet/in.h>
16805: #endif
16806: #ifdef TIME_WITH_SYS_TIME
16807: # include <sys/time.h>
16808: # include <time.h>
16809: #else
16810: # ifdef HAVE_SYS_TIME_H
16811: # include <sys/time.h>
16812: # else
16813: # include <time.h>
16814: # endif
16815: #endif /* TIME_WITH_SYS_TIME */
16816:
16817: #if HAVE_NET_IF_H
16818: # include <net/if.h>
16819: #endif
16820:
16821: #if HAVE_NET_IF_VAR_H
16822: # include <net/if_var.h>
16823: #endif
16824:
16825: #if HAVE_SYS_UN_H
16826: # include <sys/un.h>
16827: #endif
16828: #if HAVE_NETINET_IN_SYSTM_H
16829: # include <netinet/in_systm.h>
16830: #endif
16831: #if HAVE_NETINET_IN_VAR_H
16832: # include <netinet/in_var.h>
16833: #endif
16834: #if HAVE_NET_IF_DL_H
16835: # include <net/if_dl.h>
16836: #endif
16837: #if HAVE_NET_NETOPT_H
16838: # include <net/netopt.h>
16839: #endif
16840: #if HAVE_NET_ROUTE_H
16841: # include <net/route.h>
16842: #endif
16843: #if HAVE_INET_ND_H
16844: # include <inet/nd.h>
16845: #endif
16846: #if HAVE_ARPA_INET_H
16847: # include <arpa/inet.h>
16848: #endif
16849: /* Required for IDRP */
16850: #if HAVE_NETINET_IP_ICMP_H
16851: # include <netinet/ip_icmp.h>
16852: #endif
16853:
16854: #include <netinet/tcp.h>
16855:
16856: "
16857: if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
16858: ac_have_decl=1
16859: else
16860: ac_have_decl=0
16861: fi
16862:
16863: cat >>confdefs.h <<_ACEOF
16864: #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
16865: _ACEOF
16866:
16867: fi
16868:
16869:
16870: if test $ac_cv_have_decl_TCP_MD5SIG = no; then
16871: ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
16872: if test "x$ac_cv_header_linux_tcp_h" = xyes; then :
16873:
16874: ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
16875: #define _XPG4_2
16876: #define __EXTENSIONS__
16877: #endif
16878: #include <stdio.h>
16879: #if STDC_HEADERS
16880: # include <stdlib.h>
16881: # include <stddef.h>
16882: #else
16883: # if HAVE_STDLIB_H
16884: # include <stdlib.h>
16885: # endif
16886: #endif
16887: #if HAVE_SYS_TYPES_H
16888: # include <sys/types.h>
16889: #endif
16890: /* sys/conf.h depends on param.h on FBSD at least */
16891: #if HAVE_SYS_PARAM_H
16892: # include <sys/param.h>
16893: #endif
16894: /* Required for MAXSIG */
16895: #if HAVE_SIGNAL_H
16896: # include <signal.h>
16897: #endif
16898: #if HAVE_SYS_SOCKET_H
16899: # include <sys/socket.h>
16900: #endif
16901: #if HAVE_NETINET_IN_H
16902: # include <netinet/in.h>
16903: #endif
16904: #ifdef TIME_WITH_SYS_TIME
16905: # include <sys/time.h>
16906: # include <time.h>
16907: #else
16908: # ifdef HAVE_SYS_TIME_H
16909: # include <sys/time.h>
16910: # else
16911: # include <time.h>
16912: # endif
16913: #endif /* TIME_WITH_SYS_TIME */
16914:
16915: #if HAVE_NET_IF_H
16916: # include <net/if.h>
16917: #endif
16918:
16919: #if HAVE_NET_IF_VAR_H
16920: # include <net/if_var.h>
16921: #endif
16922:
16923: #if HAVE_SYS_UN_H
16924: # include <sys/un.h>
16925: #endif
16926: #if HAVE_NETINET_IN_SYSTM_H
16927: # include <netinet/in_systm.h>
16928: #endif
16929: #if HAVE_NETINET_IN_VAR_H
16930: # include <netinet/in_var.h>
16931: #endif
16932: #if HAVE_NET_IF_DL_H
16933: # include <net/if_dl.h>
16934: #endif
16935: #if HAVE_NET_NETOPT_H
16936: # include <net/netopt.h>
16937: #endif
16938: #if HAVE_NET_ROUTE_H
16939: # include <net/route.h>
16940: #endif
16941: #if HAVE_INET_ND_H
16942: # include <inet/nd.h>
16943: #endif
16944: #if HAVE_ARPA_INET_H
16945: # include <arpa/inet.h>
16946: #endif
16947: /* Required for IDRP */
16948: #if HAVE_NETINET_IP_ICMP_H
16949: # include <netinet/ip_icmp.h>
16950: #endif
16951:
16952: #include <linux/tcp.h>
16953:
16954: "
16955: if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
16956: ac_have_decl=1
16957: else
16958: ac_have_decl=0
16959: fi
16960:
16961: cat >>confdefs.h <<_ACEOF
16962: #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
16963: _ACEOF
16964:
16965: fi
16966:
16967:
16968: fi
16969:
16970: if test "$netlink" != yes; then
16971: if test -r /proc/net/dev; then
16972:
16973: $as_echo "#define HAVE_PROC_NET_DEV /**/" >>confdefs.h
16974:
16975: IF_PROC=if_proc.o
16976: fi
16977: if test -r /proc/net/if_inet6; then
16978:
16979: $as_echo "#define HAVE_PROC_NET_IF_INET6 /**/" >>confdefs.h
16980:
16981: IF_PROC=if_proc.o
16982: fi
16983: fi
16984:
16985:
16986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipforward method" >&5
16987: $as_echo_n "checking ipforward method... " >&6; }
16988: if ${quagga_cv_ipforward_method+:} false; then :
16989: $as_echo_n "(cached) " >&6
16990: else
16991: for quagga_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null;
16992: do
16993: test x`ls $quagga_cv_ipforward_method 2>/dev/null` = x"$quagga_cv_ipforward_method" && break
16994: done
16995: case $quagga_cv_ipforward_method in
16996: "/proc/net/snmp") quagga_cv_ipforward_method="proc";;
16997: "/dev/ip")
16998: case "$host" in
16999: *-nec-sysv4*) quagga_cv_ipforward_method="ews";;
17000: *-freebsd*) quagga_cv_ipforward_method="sysctl";;
17001: *) quagga_cv_ipforward_method="solaris";;
17002: esac;;
17003: *) quagga_cv_ipforward_method="sysctl";;
17004: esac
17005: fi
17006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_ipforward_method" >&5
17007: $as_echo "$quagga_cv_ipforward_method" >&6; }
17008: IPFORWARD=ipforward_${quagga_cv_ipforward_method}.o
17009:
17010:
17011: for ac_func in getaddrinfo
17012: do :
17013: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17014: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17015: cat >>confdefs.h <<_ACEOF
17016: #define HAVE_GETADDRINFO 1
17017: _ACEOF
17018: have_getaddrinfo=yes
17019: else
17020: have_getaddrinfo=no
17021: fi
17022: done
17023:
17024:
17025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether does this OS have IPv6 stack" >&5
17026: $as_echo_n "checking whether does this OS have IPv6 stack... " >&6; }
17027: if test "${enable_ipv6}" = "no"; then
17028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17029: $as_echo "disabled" >&6; }
17030: else
17031: if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
17032: zebra_cv_ipv6=yes
17033:
17034: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17035:
17036:
17037: $as_echo "#define INRIA_IPV6 1" >>confdefs.h
17038:
17039: RIPNGD="ripngd"
17040: OSPF6D="ospf6d"
17041: LIB_IPV6=""
17042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: INRIA IPv6" >&5
17043: $as_echo "INRIA IPv6" >&6; }
17044: elif grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
17045: zebra_cv_ipv6=yes
17046:
17047: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17048:
17049:
17050: $as_echo "#define KAME 1" >>confdefs.h
17051:
17052: RIPNGD="ripngd"
17053: OSPF6D="ospf6d"
17054: if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
17055: LIB_IPV6="-L/usr/local/v6/lib -linet6"
17056: fi
17057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: KAME" >&5
17058: $as_echo "KAME" >&6; }
17059: elif grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
17060: zebra_cv_ipv6=yes
17061:
17062: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17063:
17064:
17065: $as_echo "#define MUSICA 1" >>confdefs.h
17066:
17067:
17068: $as_echo "#define KAME 1" >>confdefs.h
17069:
17070: RIPNGD="ripngd"
17071: OSPF6D="ospf6d"
17072: if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
17073: LIB_IPV6="-L/usr/local/v6/lib -linet6"
17074: fi
17075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: MUSICA" >&5
17076: $as_echo "MUSICA" >&6; }
17077: elif grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
17078: zebra_cv_ipv6=yes
17079:
17080: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17081:
17082:
17083: $as_echo "#define NRL 1" >>confdefs.h
17084:
17085: RIPNGD="ripngd"
17086: OSPF6D="ospf6d"
17087: if test x"$opsys" = x"bsdi";then
17088:
17089: $as_echo "#define BSDI_NRL /**/" >>confdefs.h
17090:
17091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: BSDI_NRL" >&5
17092: $as_echo "BSDI_NRL" >&6; }
17093: else
17094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRL" >&5
17095: $as_echo "NRL" >&6; }
17096: fi
17097: elif test x"$opsys" = x"sol8"; then
17098: zebra_cv_ipv6=yes;
17099:
17100: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17101:
17102:
17103: $as_echo "#define SOLARIS_IPV6 1" >>confdefs.h
17104:
17105: RIPNGD="ripngd"
17106: OSPF6D="ospf6d"
17107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris IPv6" >&5
17108: $as_echo "Solaris IPv6" >&6; }
17109: elif test "${enable_ipv6}" = "yes"; then
17110: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111: /* end confdefs.h. */
17112:
17113: #include <linux/version.h>
17114: /* 2.1.128 or later */
17115: #if LINUX_VERSION_CODE >= 0x020180
17116: yes
17117: #endif
17118: _ACEOF
17119: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17120: $EGREP "yes" >/dev/null 2>&1; then :
17121: zebra_cv_ipv6=yes
17122: zebra_cv_linux_ipv6=yes
17123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
17124: $as_echo "Linux IPv6" >&6; }
17125: fi
17126: rm -f conftest*
17127:
17128: else
17129: if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
17130: then
17131: zebra_cv_ipv6=yes
17132: zebra_cv_linux_ipv6=yes
17133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
17134: $as_echo "Linux IPv6" >&6; }
17135: fi
17136: fi
17137:
17138: if test "$zebra_cv_linux_ipv6" = "yes";then
17139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libc has IPv6 support" >&5
17140: $as_echo_n "checking whether libc has IPv6 support... " >&6; }
17141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142: /* end confdefs.h. */
17143: #include <netinet/in.h>
17144:
17145: int
17146: main ()
17147: {
17148: int a; a = (int) in6addr_any.s6_addr[0]; if (a != 12345) return a;
17149: ;
17150: return 0;
17151: }
17152: _ACEOF
17153: if ac_fn_c_try_link "$LINENO"; then :
17154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17155: $as_echo "yes" >&6; }
17156: zebra_cv_ipv6=yes
17157: zebra_cv_linux_ipv6=yes
17158: else
17159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17160: $as_echo "no" >&6; }
17161: zebra_cv_ipv6=no
17162: zebra_cv_linux_ipv6=no
17163: fi
17164: rm -f core conftest.err conftest.$ac_objext \
17165: conftest$ac_exeext conftest.$ac_ext
17166: fi
17167:
17168: if test "$zebra_cv_linux_ipv6" = "yes";then
17169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc >= 2.1" >&5
17170: $as_echo_n "checking for GNU libc >= 2.1... " >&6; }
17171:
17172: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17173:
17174: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175: /* end confdefs.h. */
17176:
17177: #include <features.h>
17178: #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
17179: yes
17180: #endif
17181: _ACEOF
17182: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17183: $EGREP "yes" >/dev/null 2>&1; then :
17184: glibc=yes
17185:
17186: $as_echo "#define LINUX_IPV6 1" >>confdefs.h
17187:
17188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17189: $as_echo "yes" >&6; }
17190: else
17191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192: $as_echo "no" >&6; }
17193:
17194: fi
17195: rm -f conftest*
17196:
17197: RIPNGD="ripngd"
17198: OSPF6D="ospf6d"
17199: if test "$glibc" != "yes"; then
17200: INCLUDES="-I/usr/inet6/include"
17201: if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
17202: LIB_IPV6="-L/usr/inet6/lib -linet6"
17203: fi
17204: fi
17205: fi
17206:
17207: LIBS="$LIB_IPV6 $LIBS"
17208:
17209:
17210: if test x"$RIPNGD" = x""; then
17211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPv4 only" >&5
17212: $as_echo "IPv4 only" >&6; }
17213: fi
17214: fi
17215:
17216: if test "x${zebra_cv_ipv6}" = "xyes"; then
17217: for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
17218: netinet6/in6_var.h netinet6/nd6.h
17219: do :
17220: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17221: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
17222: #define _XPG4_2
17223: #define __EXTENSIONS__
17224: #endif
17225: #include <stdio.h>
17226: #if STDC_HEADERS
17227: # include <stdlib.h>
17228: # include <stddef.h>
17229: #else
17230: # if HAVE_STDLIB_H
17231: # include <stdlib.h>
17232: # endif
17233: #endif
17234: #if HAVE_SYS_TYPES_H
17235: # include <sys/types.h>
17236: #endif
17237: /* sys/conf.h depends on param.h on FBSD at least */
17238: #if HAVE_SYS_PARAM_H
17239: # include <sys/param.h>
17240: #endif
17241: /* Required for MAXSIG */
17242: #if HAVE_SIGNAL_H
17243: # include <signal.h>
17244: #endif
17245: #if HAVE_SYS_SOCKET_H
17246: # include <sys/socket.h>
17247: #endif
17248: #if HAVE_NETINET_IN_H
17249: # include <netinet/in.h>
17250: #endif
17251: #ifdef TIME_WITH_SYS_TIME
17252: # include <sys/time.h>
17253: # include <time.h>
17254: #else
17255: # ifdef HAVE_SYS_TIME_H
17256: # include <sys/time.h>
17257: # else
17258: # include <time.h>
17259: # endif
17260: #endif /* TIME_WITH_SYS_TIME */
17261:
17262: #if HAVE_NET_IF_H
17263: # include <net/if.h>
17264: #endif
17265:
17266: #if HAVE_NET_IF_VAR_H
17267: # include <net/if_var.h>
17268: #endif
17269:
17270: #if HAVE_SYS_UN_H
17271: # include <sys/un.h>
17272: #endif
17273: #if HAVE_NETINET_IN_SYSTM_H
17274: # include <netinet/in_systm.h>
17275: #endif
17276: #if HAVE_NETINET_IN_VAR_H
17277: # include <netinet/in_var.h>
17278: #endif
17279: #if HAVE_NET_IF_DL_H
17280: # include <net/if_dl.h>
17281: #endif
17282: #if HAVE_NET_NETOPT_H
17283: # include <net/netopt.h>
17284: #endif
17285: #if HAVE_NET_ROUTE_H
17286: # include <net/route.h>
17287: #endif
17288: #if HAVE_INET_ND_H
17289: # include <inet/nd.h>
17290: #endif
17291: #if HAVE_ARPA_INET_H
17292: # include <arpa/inet.h>
17293: #endif
17294: /* Required for IDRP */
17295: #if HAVE_NETINET_IP_ICMP_H
17296: # include <netinet/ip_icmp.h>
17297: #endif
17298:
17299: "
17300: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17301: cat >>confdefs.h <<_ACEOF
17302: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17303: _ACEOF
17304:
17305: fi
17306:
17307: done
17308:
17309: fi
17310:
17311:
17312: if test "${enable_doc}" = "no";then
17313: DOC=""
17314: else
17315: DOC="doc"
17316: fi
17317:
17318: if test "${enable_zebra}" = "no";then
17319: ZEBRA=""
17320: else
17321: ZEBRA="zebra"
17322: fi
17323:
17324: if test "${enable_bgpd}" = "no";then
17325: BGPD=""
17326: else
17327: BGPD="bgpd"
17328: fi
17329:
17330: if test "${enable_ripd}" = "no";then
17331: RIPD=""
17332: else
17333: RIPD="ripd"
17334: fi
17335:
17336: if test "${enable_ospfd}" = "no";then
17337: OSPFD=""
17338: else
17339: OSPFD="ospfd"
17340: fi
17341:
17342: if test "${enable_watchquagga}" = "no";then
17343: WATCHQUAGGA=""
17344: else
17345: WATCHQUAGGA="watchquagga"
17346: fi
17347:
17348: OSPFCLIENT=""
17349: if test "${enable_opaque_lsa}" != "no"; then
17350: if test "${enable_ospfapi}" != "no";then
17351:
17352: $as_echo "#define SUPPORT_OSPF_API /**/" >>confdefs.h
17353:
17354:
17355: if test "${enable_ospfclient}" != "no";then
17356: OSPFCLIENT="ospfclient"
17357: fi
17358: fi
17359:
17360: fi
17361:
17362: case "${enable_ripngd}" in
17363: "yes") RIPNGD="ripngd";;
17364: "no" ) RIPNGD="";;
17365: * ) ;;
17366: esac
17367:
17368: case "${enable_ospf6d}" in
17369: "yes") OSPF6D="ospf6d";;
17370: "no" ) OSPF6D="";;
17371: * ) ;;
17372: esac
17373:
17374: case "${enable_isisd}" in
17375: "yes") ISISD="isisd";;
17376: "no" ) ISISD="";;
17377: * ) ;;
17378: esac
17379:
17380: # XXX Perhaps auto-enable on Solaris, but that's messy for cross builds.
17381: case "${enable_solaris}" in
17382: "yes") SOLARIS="solaris";;
17383: "no" ) SOLARIS="";;
17384: * ) ;;
17385: esac
17386:
17387: if test "${enable_bgp_announce}" = "no";then
17388:
17389: $as_echo "#define DISABLE_BGP_ANNOUNCE 1" >>confdefs.h
17390:
17391: else
17392:
17393: $as_echo "#define DISABLE_BGP_ANNOUNCE 0" >>confdefs.h
17394:
17395: fi
17396:
17397:
17398:
17399:
17400:
17401:
17402:
17403:
17404:
17405:
17406:
17407:
17408:
17409:
17410:
17411:
17412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lc" >&5
17413: $as_echo_n "checking for inet_ntop in -lc... " >&6; }
17414: if ${ac_cv_lib_c_inet_ntop+:} false; then :
17415: $as_echo_n "(cached) " >&6
17416: else
17417: ac_check_lib_save_LIBS=$LIBS
17418: LIBS="-lc $LIBS"
17419: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420: /* end confdefs.h. */
17421:
17422: /* Override any GCC internal prototype to avoid an error.
17423: Use char because int might match the return type of a GCC
17424: builtin and then its argument prototype would still apply. */
17425: #ifdef __cplusplus
17426: extern "C"
17427: #endif
17428: char inet_ntop ();
17429: int
17430: main ()
17431: {
17432: return inet_ntop ();
17433: ;
17434: return 0;
17435: }
17436: _ACEOF
17437: if ac_fn_c_try_link "$LINENO"; then :
17438: ac_cv_lib_c_inet_ntop=yes
17439: else
17440: ac_cv_lib_c_inet_ntop=no
17441: fi
17442: rm -f core conftest.err conftest.$ac_objext \
17443: conftest$ac_exeext conftest.$ac_ext
17444: LIBS=$ac_check_lib_save_LIBS
17445: fi
17446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_ntop" >&5
17447: $as_echo "$ac_cv_lib_c_inet_ntop" >&6; }
17448: if test "x$ac_cv_lib_c_inet_ntop" = xyes; then :
17449:
17450: $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
17451:
17452: fi
17453:
17454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lc" >&5
17455: $as_echo_n "checking for inet_pton in -lc... " >&6; }
17456: if ${ac_cv_lib_c_inet_pton+:} false; then :
17457: $as_echo_n "(cached) " >&6
17458: else
17459: ac_check_lib_save_LIBS=$LIBS
17460: LIBS="-lc $LIBS"
17461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462: /* end confdefs.h. */
17463:
17464: /* Override any GCC internal prototype to avoid an error.
17465: Use char because int might match the return type of a GCC
17466: builtin and then its argument prototype would still apply. */
17467: #ifdef __cplusplus
17468: extern "C"
17469: #endif
17470: char inet_pton ();
17471: int
17472: main ()
17473: {
17474: return inet_pton ();
17475: ;
17476: return 0;
17477: }
17478: _ACEOF
17479: if ac_fn_c_try_link "$LINENO"; then :
17480: ac_cv_lib_c_inet_pton=yes
17481: else
17482: ac_cv_lib_c_inet_pton=no
17483: fi
17484: rm -f core conftest.err conftest.$ac_objext \
17485: conftest$ac_exeext conftest.$ac_ext
17486: LIBS=$ac_check_lib_save_LIBS
17487: fi
17488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_pton" >&5
17489: $as_echo "$ac_cv_lib_c_inet_pton" >&6; }
17490: if test "x$ac_cv_lib_c_inet_pton" = xyes; then :
17491:
17492: $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
17493:
17494: fi
17495:
17496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17497: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17498: if ${ac_cv_lib_crypt_crypt+:} false; then :
17499: $as_echo_n "(cached) " >&6
17500: else
17501: ac_check_lib_save_LIBS=$LIBS
17502: LIBS="-lcrypt $LIBS"
17503: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504: /* end confdefs.h. */
17505:
17506: /* Override any GCC internal prototype to avoid an error.
17507: Use char because int might match the return type of a GCC
17508: builtin and then its argument prototype would still apply. */
17509: #ifdef __cplusplus
17510: extern "C"
17511: #endif
17512: char crypt ();
17513: int
17514: main ()
17515: {
17516: return crypt ();
17517: ;
17518: return 0;
17519: }
17520: _ACEOF
17521: if ac_fn_c_try_link "$LINENO"; then :
17522: ac_cv_lib_crypt_crypt=yes
17523: else
17524: ac_cv_lib_crypt_crypt=no
17525: fi
17526: rm -f core conftest.err conftest.$ac_objext \
17527: conftest$ac_exeext conftest.$ac_ext
17528: LIBS=$ac_check_lib_save_LIBS
17529: fi
17530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17531: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17532: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17533: cat >>confdefs.h <<_ACEOF
17534: #define HAVE_LIBCRYPT 1
17535: _ACEOF
17536:
17537: LIBS="-lcrypt $LIBS"
17538:
17539: fi
17540:
17541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
17542: $as_echo_n "checking for res_init in -lresolv... " >&6; }
17543: if ${ac_cv_lib_resolv_res_init+:} false; then :
17544: $as_echo_n "(cached) " >&6
17545: else
17546: ac_check_lib_save_LIBS=$LIBS
17547: LIBS="-lresolv $LIBS"
17548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549: /* end confdefs.h. */
17550:
17551: /* Override any GCC internal prototype to avoid an error.
17552: Use char because int might match the return type of a GCC
17553: builtin and then its argument prototype would still apply. */
17554: #ifdef __cplusplus
17555: extern "C"
17556: #endif
17557: char res_init ();
17558: int
17559: main ()
17560: {
17561: return res_init ();
17562: ;
17563: return 0;
17564: }
17565: _ACEOF
17566: if ac_fn_c_try_link "$LINENO"; then :
17567: ac_cv_lib_resolv_res_init=yes
17568: else
17569: ac_cv_lib_resolv_res_init=no
17570: fi
17571: rm -f core conftest.err conftest.$ac_objext \
17572: conftest$ac_exeext conftest.$ac_ext
17573: LIBS=$ac_check_lib_save_LIBS
17574: fi
17575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5
17576: $as_echo "$ac_cv_lib_resolv_res_init" >&6; }
17577: if test "x$ac_cv_lib_resolv_res_init" = xyes; then :
17578: cat >>confdefs.h <<_ACEOF
17579: #define HAVE_LIBRESOLV 1
17580: _ACEOF
17581:
17582: LIBS="-lresolv $LIBS"
17583:
17584: fi
17585:
17586:
17587: ac_fn_c_check_func "$LINENO" "__inet_ntop" "ac_cv_func___inet_ntop"
17588: if test "x$ac_cv_func___inet_ntop" = xyes; then :
17589:
17590: $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
17591:
17592: fi
17593:
17594: ac_fn_c_check_func "$LINENO" "__inet_pton" "ac_cv_func___inet_pton"
17595: if test "x$ac_cv_func___inet_pton" = xyes; then :
17596:
17597: $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
17598:
17599: fi
17600:
17601: ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton"
17602: if test "x$ac_cv_func___inet_aton" = xyes; then :
17603:
17604: $as_echo "#define HAVE_INET_ATON /**/" >>confdefs.h
17605:
17606: fi
17607:
17608:
17609: if test "x$enable_pcreposix" = "xyes"; then
17610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix_regexec in -lpcreposix" >&5
17611: $as_echo_n "checking for pcreposix_regexec in -lpcreposix... " >&6; }
17612: if ${ac_cv_lib_pcreposix_pcreposix_regexec+:} false; then :
17613: $as_echo_n "(cached) " >&6
17614: else
17615: ac_check_lib_save_LIBS=$LIBS
17616: LIBS="-lpcreposix $LIBS"
17617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618: /* end confdefs.h. */
17619:
17620: /* Override any GCC internal prototype to avoid an error.
17621: Use char because int might match the return type of a GCC
17622: builtin and then its argument prototype would still apply. */
17623: #ifdef __cplusplus
17624: extern "C"
17625: #endif
17626: char pcreposix_regexec ();
17627: int
17628: main ()
17629: {
17630: return pcreposix_regexec ();
17631: ;
17632: return 0;
17633: }
17634: _ACEOF
17635: if ac_fn_c_try_link "$LINENO"; then :
17636: ac_cv_lib_pcreposix_pcreposix_regexec=yes
17637: else
17638: ac_cv_lib_pcreposix_pcreposix_regexec=no
17639: fi
17640: rm -f core conftest.err conftest.$ac_objext \
17641: conftest$ac_exeext conftest.$ac_ext
17642: LIBS=$ac_check_lib_save_LIBS
17643: fi
17644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_pcreposix_regexec" >&5
17645: $as_echo "$ac_cv_lib_pcreposix_pcreposix_regexec" >&6; }
17646: if test "x$ac_cv_lib_pcreposix_pcreposix_regexec" = xyes; then :
17647: cat >>confdefs.h <<_ACEOF
17648: #define HAVE_LIBPCREPOSIX 1
17649: _ACEOF
17650:
17651: LIBS="-lpcreposix $LIBS"
17652:
17653: else
17654: enable_pcreposix=no
17655: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** falling back to other regex library ***" >&5
17656: $as_echo "$as_me: WARNING: *** falling back to other regex library ***" >&2;}
17657: fi
17658:
17659: fi
17660:
17661: if test "x$enable_pcreposix" != "xyes"; then
17662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system has GNU regex" >&5
17663: $as_echo_n "checking whether system has GNU regex... " >&6; }
17664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lc" >&5
17665: $as_echo_n "checking for regexec in -lc... " >&6; }
17666: if ${ac_cv_lib_c_regexec+:} false; then :
17667: $as_echo_n "(cached) " >&6
17668: else
17669: ac_check_lib_save_LIBS=$LIBS
17670: LIBS="-lc $LIBS"
17671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672: /* end confdefs.h. */
17673:
17674: /* Override any GCC internal prototype to avoid an error.
17675: Use char because int might match the return type of a GCC
17676: builtin and then its argument prototype would still apply. */
17677: #ifdef __cplusplus
17678: extern "C"
17679: #endif
17680: char regexec ();
17681: int
17682: main ()
17683: {
17684: return regexec ();
17685: ;
17686: return 0;
17687: }
17688: _ACEOF
17689: if ac_fn_c_try_link "$LINENO"; then :
17690: ac_cv_lib_c_regexec=yes
17691: else
17692: ac_cv_lib_c_regexec=no
17693: fi
17694: rm -f core conftest.err conftest.$ac_objext \
17695: conftest$ac_exeext conftest.$ac_ext
17696: LIBS=$ac_check_lib_save_LIBS
17697: fi
17698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_regexec" >&5
17699: $as_echo "$ac_cv_lib_c_regexec" >&6; }
17700: if test "x$ac_cv_lib_c_regexec" = xyes; then :
17701:
17702: $as_echo "#define HAVE_GNU_REGEX /**/" >>confdefs.h
17703:
17704: LIB_REGEX=""
17705: else
17706: LIB_REGEX="regex.o"
17707: fi
17708:
17709: fi
17710:
17711:
17712:
17713: if test "${enable_snmp}" = "yes"; then
17714: if test "$with_crypto" != "no"; then
17715: LIBS="${LIBS} -lcrypto";
17716: fi
17717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asn_parse_int in -lnetsnmp" >&5
17718: $as_echo_n "checking for asn_parse_int in -lnetsnmp... " >&6; }
17719: if ${ac_cv_lib_netsnmp_asn_parse_int+:} false; then :
17720: $as_echo_n "(cached) " >&6
17721: else
17722: ac_check_lib_save_LIBS=$LIBS
17723: LIBS="-lnetsnmp $LIBS"
17724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725: /* end confdefs.h. */
17726:
17727: /* Override any GCC internal prototype to avoid an error.
17728: Use char because int might match the return type of a GCC
17729: builtin and then its argument prototype would still apply. */
17730: #ifdef __cplusplus
17731: extern "C"
17732: #endif
17733: char asn_parse_int ();
17734: int
17735: main ()
17736: {
17737: return asn_parse_int ();
17738: ;
17739: return 0;
17740: }
17741: _ACEOF
17742: if ac_fn_c_try_link "$LINENO"; then :
17743: ac_cv_lib_netsnmp_asn_parse_int=yes
17744: else
17745: ac_cv_lib_netsnmp_asn_parse_int=no
17746: fi
17747: rm -f core conftest.err conftest.$ac_objext \
17748: conftest$ac_exeext conftest.$ac_ext
17749: LIBS=$ac_check_lib_save_LIBS
17750: fi
17751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
17752: $as_echo "$ac_cv_lib_netsnmp_asn_parse_int" >&6; }
17753: if test "x$ac_cv_lib_netsnmp_asn_parse_int" = xyes; then :
17754:
17755: $as_echo "#define HAVE_NETSNMP /**/" >>confdefs.h
17756:
17757:
17758: $as_echo "#define HAVE_SNMP /**/" >>confdefs.h
17759:
17760: LIBS="${LIBS} -lnetsnmp"
17761: else
17762: as_fn_error $? "--enable-snmp given, but cannot find support for SNMP" "$LINENO" 5
17763: fi
17764:
17765:
17766: ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "#ifdef SUNOS_5
17767: #define _XPG4_2
17768: #define __EXTENSIONS__
17769: #endif
17770: #include <stdio.h>
17771: #if STDC_HEADERS
17772: # include <stdlib.h>
17773: # include <stddef.h>
17774: #else
17775: # if HAVE_STDLIB_H
17776: # include <stdlib.h>
17777: # endif
17778: #endif
17779: #if HAVE_SYS_TYPES_H
17780: # include <sys/types.h>
17781: #endif
17782: /* sys/conf.h depends on param.h on FBSD at least */
17783: #if HAVE_SYS_PARAM_H
17784: # include <sys/param.h>
17785: #endif
17786: /* Required for MAXSIG */
17787: #if HAVE_SIGNAL_H
17788: # include <signal.h>
17789: #endif
17790: #if HAVE_SYS_SOCKET_H
17791: # include <sys/socket.h>
17792: #endif
17793: #if HAVE_NETINET_IN_H
17794: # include <netinet/in.h>
17795: #endif
17796: #ifdef TIME_WITH_SYS_TIME
17797: # include <sys/time.h>
17798: # include <time.h>
17799: #else
17800: # ifdef HAVE_SYS_TIME_H
17801: # include <sys/time.h>
17802: # else
17803: # include <time.h>
17804: # endif
17805: #endif /* TIME_WITH_SYS_TIME */
17806:
17807: #if HAVE_NET_IF_H
17808: # include <net/if.h>
17809: #endif
17810:
17811: #if HAVE_NET_IF_VAR_H
17812: # include <net/if_var.h>
17813: #endif
17814:
17815: #if HAVE_SYS_UN_H
17816: # include <sys/un.h>
17817: #endif
17818: #if HAVE_NETINET_IN_SYSTM_H
17819: # include <netinet/in_systm.h>
17820: #endif
17821: #if HAVE_NETINET_IN_VAR_H
17822: # include <netinet/in_var.h>
17823: #endif
17824: #if HAVE_NET_IF_DL_H
17825: # include <net/if_dl.h>
17826: #endif
17827: #if HAVE_NET_NETOPT_H
17828: # include <net/netopt.h>
17829: #endif
17830: #if HAVE_NET_ROUTE_H
17831: # include <net/route.h>
17832: #endif
17833: #if HAVE_INET_ND_H
17834: # include <inet/nd.h>
17835: #endif
17836: #if HAVE_ARPA_INET_H
17837: # include <arpa/inet.h>
17838: #endif
17839: /* Required for IDRP */
17840: #if HAVE_NETINET_IP_ICMP_H
17841: # include <netinet/ip_icmp.h>
17842: #endif
17843:
17844: #if HAVE_NETINET6_IN6_H
17845: #include <netinet6/in6.h>
17846: #endif
17847: #if HAVE_NETINET_IN6_VAR_H
17848: #include <netinet/in6_var.h>
17849: #endif
17850: #if HAVE_NETINET_ICMP6_H
17851: # include <netinet/icmp6.h>
17852: #endif
17853: #if HAVE_NETINET6_IN6_VAR_H
17854: # include <netinet6/in6_var.h>
17855: #endif
17856: #if HAVE_NETINET6_ND6_H
17857: # include <netinet6/nd6.h>
17858: #endif
17859:
17860: "
17861: if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
17862:
17863: else
17864: as_fn_error $? "--enable-snmp given, but cannot find net-snmp-config.h" "$LINENO" 5
17865: fi
17866:
17867:
17868:
17869: fi
17870:
17871: ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "#ifdef SUNOS_5
17872: #define _XPG4_2
17873: #define __EXTENSIONS__
17874: #endif
17875: #include <stdio.h>
17876: #if STDC_HEADERS
17877: # include <stdlib.h>
17878: # include <stddef.h>
17879: #else
17880: # if HAVE_STDLIB_H
17881: # include <stdlib.h>
17882: # endif
17883: #endif
17884: #if HAVE_SYS_TYPES_H
17885: # include <sys/types.h>
17886: #endif
17887: /* sys/conf.h depends on param.h on FBSD at least */
17888: #if HAVE_SYS_PARAM_H
17889: # include <sys/param.h>
17890: #endif
17891: /* Required for MAXSIG */
17892: #if HAVE_SIGNAL_H
17893: # include <signal.h>
17894: #endif
17895: #if HAVE_SYS_SOCKET_H
17896: # include <sys/socket.h>
17897: #endif
17898: #if HAVE_NETINET_IN_H
17899: # include <netinet/in.h>
17900: #endif
17901: #ifdef TIME_WITH_SYS_TIME
17902: # include <sys/time.h>
17903: # include <time.h>
17904: #else
17905: # ifdef HAVE_SYS_TIME_H
17906: # include <sys/time.h>
17907: # else
17908: # include <time.h>
17909: # endif
17910: #endif /* TIME_WITH_SYS_TIME */
17911:
17912: #if HAVE_NET_IF_H
17913: # include <net/if.h>
17914: #endif
17915:
17916: #if HAVE_NET_IF_VAR_H
17917: # include <net/if_var.h>
17918: #endif
17919:
17920: #if HAVE_SYS_UN_H
17921: # include <sys/un.h>
17922: #endif
17923: #if HAVE_NETINET_IN_SYSTM_H
17924: # include <netinet/in_systm.h>
17925: #endif
17926: #if HAVE_NETINET_IN_VAR_H
17927: # include <netinet/in_var.h>
17928: #endif
17929: #if HAVE_NET_IF_DL_H
17930: # include <net/if_dl.h>
17931: #endif
17932: #if HAVE_NET_NETOPT_H
17933: # include <net/netopt.h>
17934: #endif
17935: #if HAVE_NET_ROUTE_H
17936: # include <net/route.h>
17937: #endif
17938: #if HAVE_INET_ND_H
17939: # include <inet/nd.h>
17940: #endif
17941: #if HAVE_ARPA_INET_H
17942: # include <arpa/inet.h>
17943: #endif
17944: /* Required for IDRP */
17945: #if HAVE_NETINET_IP_ICMP_H
17946: # include <netinet/ip_icmp.h>
17947: #endif
17948:
17949: #if HAVE_NETINET6_IN6_H
17950: #include <netinet6/in6.h>
17951: #endif
17952: #if HAVE_NETINET_IN6_VAR_H
17953: #include <netinet/in6_var.h>
17954: #endif
17955: #if HAVE_NETINET_ICMP6_H
17956: # include <netinet/icmp6.h>
17957: #endif
17958: #if HAVE_NETINET6_IN6_VAR_H
17959: # include <netinet6/in6_var.h>
17960: #endif
17961: #if HAVE_NETINET6_ND6_H
17962: # include <netinet6/nd6.h>
17963: #endif
17964:
17965: "
17966: if test "x$ac_cv_type_struct_sockaddr" = xyes; then :
17967:
17968: cat >>confdefs.h <<_ACEOF
17969: #define HAVE_STRUCT_SOCKADDR 1
17970: _ACEOF
17971:
17972:
17973: fi
17974: ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#ifdef SUNOS_5
17975: #define _XPG4_2
17976: #define __EXTENSIONS__
17977: #endif
17978: #include <stdio.h>
17979: #if STDC_HEADERS
17980: # include <stdlib.h>
17981: # include <stddef.h>
17982: #else
17983: # if HAVE_STDLIB_H
17984: # include <stdlib.h>
17985: # endif
17986: #endif
17987: #if HAVE_SYS_TYPES_H
17988: # include <sys/types.h>
17989: #endif
17990: /* sys/conf.h depends on param.h on FBSD at least */
17991: #if HAVE_SYS_PARAM_H
17992: # include <sys/param.h>
17993: #endif
17994: /* Required for MAXSIG */
17995: #if HAVE_SIGNAL_H
17996: # include <signal.h>
17997: #endif
17998: #if HAVE_SYS_SOCKET_H
17999: # include <sys/socket.h>
18000: #endif
18001: #if HAVE_NETINET_IN_H
18002: # include <netinet/in.h>
18003: #endif
18004: #ifdef TIME_WITH_SYS_TIME
18005: # include <sys/time.h>
18006: # include <time.h>
18007: #else
18008: # ifdef HAVE_SYS_TIME_H
18009: # include <sys/time.h>
18010: # else
18011: # include <time.h>
18012: # endif
18013: #endif /* TIME_WITH_SYS_TIME */
18014:
18015: #if HAVE_NET_IF_H
18016: # include <net/if.h>
18017: #endif
18018:
18019: #if HAVE_NET_IF_VAR_H
18020: # include <net/if_var.h>
18021: #endif
18022:
18023: #if HAVE_SYS_UN_H
18024: # include <sys/un.h>
18025: #endif
18026: #if HAVE_NETINET_IN_SYSTM_H
18027: # include <netinet/in_systm.h>
18028: #endif
18029: #if HAVE_NETINET_IN_VAR_H
18030: # include <netinet/in_var.h>
18031: #endif
18032: #if HAVE_NET_IF_DL_H
18033: # include <net/if_dl.h>
18034: #endif
18035: #if HAVE_NET_NETOPT_H
18036: # include <net/netopt.h>
18037: #endif
18038: #if HAVE_NET_ROUTE_H
18039: # include <net/route.h>
18040: #endif
18041: #if HAVE_INET_ND_H
18042: # include <inet/nd.h>
18043: #endif
18044: #if HAVE_ARPA_INET_H
18045: # include <arpa/inet.h>
18046: #endif
18047: /* Required for IDRP */
18048: #if HAVE_NETINET_IP_ICMP_H
18049: # include <netinet/ip_icmp.h>
18050: #endif
18051:
18052: #if HAVE_NETINET6_IN6_H
18053: #include <netinet6/in6.h>
18054: #endif
18055: #if HAVE_NETINET_IN6_VAR_H
18056: #include <netinet/in6_var.h>
18057: #endif
18058: #if HAVE_NETINET_ICMP6_H
18059: # include <netinet/icmp6.h>
18060: #endif
18061: #if HAVE_NETINET6_IN6_VAR_H
18062: # include <netinet6/in6_var.h>
18063: #endif
18064: #if HAVE_NETINET6_ND6_H
18065: # include <netinet6/nd6.h>
18066: #endif
18067:
18068: "
18069: if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
18070:
18071: cat >>confdefs.h <<_ACEOF
18072: #define HAVE_STRUCT_SOCKADDR_IN 1
18073: _ACEOF
18074:
18075:
18076: fi
18077: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef SUNOS_5
18078: #define _XPG4_2
18079: #define __EXTENSIONS__
18080: #endif
18081: #include <stdio.h>
18082: #if STDC_HEADERS
18083: # include <stdlib.h>
18084: # include <stddef.h>
18085: #else
18086: # if HAVE_STDLIB_H
18087: # include <stdlib.h>
18088: # endif
18089: #endif
18090: #if HAVE_SYS_TYPES_H
18091: # include <sys/types.h>
18092: #endif
18093: /* sys/conf.h depends on param.h on FBSD at least */
18094: #if HAVE_SYS_PARAM_H
18095: # include <sys/param.h>
18096: #endif
18097: /* Required for MAXSIG */
18098: #if HAVE_SIGNAL_H
18099: # include <signal.h>
18100: #endif
18101: #if HAVE_SYS_SOCKET_H
18102: # include <sys/socket.h>
18103: #endif
18104: #if HAVE_NETINET_IN_H
18105: # include <netinet/in.h>
18106: #endif
18107: #ifdef TIME_WITH_SYS_TIME
18108: # include <sys/time.h>
18109: # include <time.h>
18110: #else
18111: # ifdef HAVE_SYS_TIME_H
18112: # include <sys/time.h>
18113: # else
18114: # include <time.h>
18115: # endif
18116: #endif /* TIME_WITH_SYS_TIME */
18117:
18118: #if HAVE_NET_IF_H
18119: # include <net/if.h>
18120: #endif
18121:
18122: #if HAVE_NET_IF_VAR_H
18123: # include <net/if_var.h>
18124: #endif
18125:
18126: #if HAVE_SYS_UN_H
18127: # include <sys/un.h>
18128: #endif
18129: #if HAVE_NETINET_IN_SYSTM_H
18130: # include <netinet/in_systm.h>
18131: #endif
18132: #if HAVE_NETINET_IN_VAR_H
18133: # include <netinet/in_var.h>
18134: #endif
18135: #if HAVE_NET_IF_DL_H
18136: # include <net/if_dl.h>
18137: #endif
18138: #if HAVE_NET_NETOPT_H
18139: # include <net/netopt.h>
18140: #endif
18141: #if HAVE_NET_ROUTE_H
18142: # include <net/route.h>
18143: #endif
18144: #if HAVE_INET_ND_H
18145: # include <inet/nd.h>
18146: #endif
18147: #if HAVE_ARPA_INET_H
18148: # include <arpa/inet.h>
18149: #endif
18150: /* Required for IDRP */
18151: #if HAVE_NETINET_IP_ICMP_H
18152: # include <netinet/ip_icmp.h>
18153: #endif
18154:
18155: #if HAVE_NETINET6_IN6_H
18156: #include <netinet6/in6.h>
18157: #endif
18158: #if HAVE_NETINET_IN6_VAR_H
18159: #include <netinet/in6_var.h>
18160: #endif
18161: #if HAVE_NETINET_ICMP6_H
18162: # include <netinet/icmp6.h>
18163: #endif
18164: #if HAVE_NETINET6_IN6_VAR_H
18165: # include <netinet6/in6_var.h>
18166: #endif
18167: #if HAVE_NETINET6_ND6_H
18168: # include <netinet6/nd6.h>
18169: #endif
18170:
18171: "
18172: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
18173:
18174: cat >>confdefs.h <<_ACEOF
18175: #define HAVE_STRUCT_SOCKADDR_IN6 1
18176: _ACEOF
18177:
18178:
18179: fi
18180: ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#ifdef SUNOS_5
18181: #define _XPG4_2
18182: #define __EXTENSIONS__
18183: #endif
18184: #include <stdio.h>
18185: #if STDC_HEADERS
18186: # include <stdlib.h>
18187: # include <stddef.h>
18188: #else
18189: # if HAVE_STDLIB_H
18190: # include <stdlib.h>
18191: # endif
18192: #endif
18193: #if HAVE_SYS_TYPES_H
18194: # include <sys/types.h>
18195: #endif
18196: /* sys/conf.h depends on param.h on FBSD at least */
18197: #if HAVE_SYS_PARAM_H
18198: # include <sys/param.h>
18199: #endif
18200: /* Required for MAXSIG */
18201: #if HAVE_SIGNAL_H
18202: # include <signal.h>
18203: #endif
18204: #if HAVE_SYS_SOCKET_H
18205: # include <sys/socket.h>
18206: #endif
18207: #if HAVE_NETINET_IN_H
18208: # include <netinet/in.h>
18209: #endif
18210: #ifdef TIME_WITH_SYS_TIME
18211: # include <sys/time.h>
18212: # include <time.h>
18213: #else
18214: # ifdef HAVE_SYS_TIME_H
18215: # include <sys/time.h>
18216: # else
18217: # include <time.h>
18218: # endif
18219: #endif /* TIME_WITH_SYS_TIME */
18220:
18221: #if HAVE_NET_IF_H
18222: # include <net/if.h>
18223: #endif
18224:
18225: #if HAVE_NET_IF_VAR_H
18226: # include <net/if_var.h>
18227: #endif
18228:
18229: #if HAVE_SYS_UN_H
18230: # include <sys/un.h>
18231: #endif
18232: #if HAVE_NETINET_IN_SYSTM_H
18233: # include <netinet/in_systm.h>
18234: #endif
18235: #if HAVE_NETINET_IN_VAR_H
18236: # include <netinet/in_var.h>
18237: #endif
18238: #if HAVE_NET_IF_DL_H
18239: # include <net/if_dl.h>
18240: #endif
18241: #if HAVE_NET_NETOPT_H
18242: # include <net/netopt.h>
18243: #endif
18244: #if HAVE_NET_ROUTE_H
18245: # include <net/route.h>
18246: #endif
18247: #if HAVE_INET_ND_H
18248: # include <inet/nd.h>
18249: #endif
18250: #if HAVE_ARPA_INET_H
18251: # include <arpa/inet.h>
18252: #endif
18253: /* Required for IDRP */
18254: #if HAVE_NETINET_IP_ICMP_H
18255: # include <netinet/ip_icmp.h>
18256: #endif
18257:
18258: #if HAVE_NETINET6_IN6_H
18259: #include <netinet6/in6.h>
18260: #endif
18261: #if HAVE_NETINET_IN6_VAR_H
18262: #include <netinet/in6_var.h>
18263: #endif
18264: #if HAVE_NETINET_ICMP6_H
18265: # include <netinet/icmp6.h>
18266: #endif
18267: #if HAVE_NETINET6_IN6_VAR_H
18268: # include <netinet6/in6_var.h>
18269: #endif
18270: #if HAVE_NETINET6_ND6_H
18271: # include <netinet6/nd6.h>
18272: #endif
18273:
18274: "
18275: if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
18276:
18277: cat >>confdefs.h <<_ACEOF
18278: #define HAVE_STRUCT_SOCKADDR_UN 1
18279: _ACEOF
18280:
18281:
18282: fi
18283: ac_fn_c_check_type "$LINENO" "struct sockaddr_dl" "ac_cv_type_struct_sockaddr_dl" "#ifdef SUNOS_5
18284: #define _XPG4_2
18285: #define __EXTENSIONS__
18286: #endif
18287: #include <stdio.h>
18288: #if STDC_HEADERS
18289: # include <stdlib.h>
18290: # include <stddef.h>
18291: #else
18292: # if HAVE_STDLIB_H
18293: # include <stdlib.h>
18294: # endif
18295: #endif
18296: #if HAVE_SYS_TYPES_H
18297: # include <sys/types.h>
18298: #endif
18299: /* sys/conf.h depends on param.h on FBSD at least */
18300: #if HAVE_SYS_PARAM_H
18301: # include <sys/param.h>
18302: #endif
18303: /* Required for MAXSIG */
18304: #if HAVE_SIGNAL_H
18305: # include <signal.h>
18306: #endif
18307: #if HAVE_SYS_SOCKET_H
18308: # include <sys/socket.h>
18309: #endif
18310: #if HAVE_NETINET_IN_H
18311: # include <netinet/in.h>
18312: #endif
18313: #ifdef TIME_WITH_SYS_TIME
18314: # include <sys/time.h>
18315: # include <time.h>
18316: #else
18317: # ifdef HAVE_SYS_TIME_H
18318: # include <sys/time.h>
18319: # else
18320: # include <time.h>
18321: # endif
18322: #endif /* TIME_WITH_SYS_TIME */
18323:
18324: #if HAVE_NET_IF_H
18325: # include <net/if.h>
18326: #endif
18327:
18328: #if HAVE_NET_IF_VAR_H
18329: # include <net/if_var.h>
18330: #endif
18331:
18332: #if HAVE_SYS_UN_H
18333: # include <sys/un.h>
18334: #endif
18335: #if HAVE_NETINET_IN_SYSTM_H
18336: # include <netinet/in_systm.h>
18337: #endif
18338: #if HAVE_NETINET_IN_VAR_H
18339: # include <netinet/in_var.h>
18340: #endif
18341: #if HAVE_NET_IF_DL_H
18342: # include <net/if_dl.h>
18343: #endif
18344: #if HAVE_NET_NETOPT_H
18345: # include <net/netopt.h>
18346: #endif
18347: #if HAVE_NET_ROUTE_H
18348: # include <net/route.h>
18349: #endif
18350: #if HAVE_INET_ND_H
18351: # include <inet/nd.h>
18352: #endif
18353: #if HAVE_ARPA_INET_H
18354: # include <arpa/inet.h>
18355: #endif
18356: /* Required for IDRP */
18357: #if HAVE_NETINET_IP_ICMP_H
18358: # include <netinet/ip_icmp.h>
18359: #endif
18360:
18361: #if HAVE_NETINET6_IN6_H
18362: #include <netinet6/in6.h>
18363: #endif
18364: #if HAVE_NETINET_IN6_VAR_H
18365: #include <netinet/in6_var.h>
18366: #endif
18367: #if HAVE_NETINET_ICMP6_H
18368: # include <netinet/icmp6.h>
18369: #endif
18370: #if HAVE_NETINET6_IN6_VAR_H
18371: # include <netinet6/in6_var.h>
18372: #endif
18373: #if HAVE_NETINET6_ND6_H
18374: # include <netinet6/nd6.h>
18375: #endif
18376:
18377: "
18378: if test "x$ac_cv_type_struct_sockaddr_dl" = xyes; then :
18379:
18380: cat >>confdefs.h <<_ACEOF
18381: #define HAVE_STRUCT_SOCKADDR_DL 1
18382: _ACEOF
18383:
18384:
18385: fi
18386: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef SUNOS_5
18387: #define _XPG4_2
18388: #define __EXTENSIONS__
18389: #endif
18390: #include <stdio.h>
18391: #if STDC_HEADERS
18392: # include <stdlib.h>
18393: # include <stddef.h>
18394: #else
18395: # if HAVE_STDLIB_H
18396: # include <stdlib.h>
18397: # endif
18398: #endif
18399: #if HAVE_SYS_TYPES_H
18400: # include <sys/types.h>
18401: #endif
18402: /* sys/conf.h depends on param.h on FBSD at least */
18403: #if HAVE_SYS_PARAM_H
18404: # include <sys/param.h>
18405: #endif
18406: /* Required for MAXSIG */
18407: #if HAVE_SIGNAL_H
18408: # include <signal.h>
18409: #endif
18410: #if HAVE_SYS_SOCKET_H
18411: # include <sys/socket.h>
18412: #endif
18413: #if HAVE_NETINET_IN_H
18414: # include <netinet/in.h>
18415: #endif
18416: #ifdef TIME_WITH_SYS_TIME
18417: # include <sys/time.h>
18418: # include <time.h>
18419: #else
18420: # ifdef HAVE_SYS_TIME_H
18421: # include <sys/time.h>
18422: # else
18423: # include <time.h>
18424: # endif
18425: #endif /* TIME_WITH_SYS_TIME */
18426:
18427: #if HAVE_NET_IF_H
18428: # include <net/if.h>
18429: #endif
18430:
18431: #if HAVE_NET_IF_VAR_H
18432: # include <net/if_var.h>
18433: #endif
18434:
18435: #if HAVE_SYS_UN_H
18436: # include <sys/un.h>
18437: #endif
18438: #if HAVE_NETINET_IN_SYSTM_H
18439: # include <netinet/in_systm.h>
18440: #endif
18441: #if HAVE_NETINET_IN_VAR_H
18442: # include <netinet/in_var.h>
18443: #endif
18444: #if HAVE_NET_IF_DL_H
18445: # include <net/if_dl.h>
18446: #endif
18447: #if HAVE_NET_NETOPT_H
18448: # include <net/netopt.h>
18449: #endif
18450: #if HAVE_NET_ROUTE_H
18451: # include <net/route.h>
18452: #endif
18453: #if HAVE_INET_ND_H
18454: # include <inet/nd.h>
18455: #endif
18456: #if HAVE_ARPA_INET_H
18457: # include <arpa/inet.h>
18458: #endif
18459: /* Required for IDRP */
18460: #if HAVE_NETINET_IP_ICMP_H
18461: # include <netinet/ip_icmp.h>
18462: #endif
18463:
18464: #if HAVE_NETINET6_IN6_H
18465: #include <netinet6/in6.h>
18466: #endif
18467: #if HAVE_NETINET_IN6_VAR_H
18468: #include <netinet/in6_var.h>
18469: #endif
18470: #if HAVE_NETINET_ICMP6_H
18471: # include <netinet/icmp6.h>
18472: #endif
18473: #if HAVE_NETINET6_IN6_VAR_H
18474: # include <netinet6/in6_var.h>
18475: #endif
18476: #if HAVE_NETINET6_ND6_H
18477: # include <netinet6/nd6.h>
18478: #endif
18479:
18480: "
18481: if test "x$ac_cv_type_socklen_t" = xyes; then :
18482:
18483: cat >>confdefs.h <<_ACEOF
18484: #define HAVE_SOCKLEN_T 1
18485: _ACEOF
18486:
18487:
18488: fi
18489: ac_fn_c_check_type "$LINENO" "struct ifaliasreq" "ac_cv_type_struct_ifaliasreq" "#ifdef SUNOS_5
18490: #define _XPG4_2
18491: #define __EXTENSIONS__
18492: #endif
18493: #include <stdio.h>
18494: #if STDC_HEADERS
18495: # include <stdlib.h>
18496: # include <stddef.h>
18497: #else
18498: # if HAVE_STDLIB_H
18499: # include <stdlib.h>
18500: # endif
18501: #endif
18502: #if HAVE_SYS_TYPES_H
18503: # include <sys/types.h>
18504: #endif
18505: /* sys/conf.h depends on param.h on FBSD at least */
18506: #if HAVE_SYS_PARAM_H
18507: # include <sys/param.h>
18508: #endif
18509: /* Required for MAXSIG */
18510: #if HAVE_SIGNAL_H
18511: # include <signal.h>
18512: #endif
18513: #if HAVE_SYS_SOCKET_H
18514: # include <sys/socket.h>
18515: #endif
18516: #if HAVE_NETINET_IN_H
18517: # include <netinet/in.h>
18518: #endif
18519: #ifdef TIME_WITH_SYS_TIME
18520: # include <sys/time.h>
18521: # include <time.h>
18522: #else
18523: # ifdef HAVE_SYS_TIME_H
18524: # include <sys/time.h>
18525: # else
18526: # include <time.h>
18527: # endif
18528: #endif /* TIME_WITH_SYS_TIME */
18529:
18530: #if HAVE_NET_IF_H
18531: # include <net/if.h>
18532: #endif
18533:
18534: #if HAVE_NET_IF_VAR_H
18535: # include <net/if_var.h>
18536: #endif
18537:
18538: #if HAVE_SYS_UN_H
18539: # include <sys/un.h>
18540: #endif
18541: #if HAVE_NETINET_IN_SYSTM_H
18542: # include <netinet/in_systm.h>
18543: #endif
18544: #if HAVE_NETINET_IN_VAR_H
18545: # include <netinet/in_var.h>
18546: #endif
18547: #if HAVE_NET_IF_DL_H
18548: # include <net/if_dl.h>
18549: #endif
18550: #if HAVE_NET_NETOPT_H
18551: # include <net/netopt.h>
18552: #endif
18553: #if HAVE_NET_ROUTE_H
18554: # include <net/route.h>
18555: #endif
18556: #if HAVE_INET_ND_H
18557: # include <inet/nd.h>
18558: #endif
18559: #if HAVE_ARPA_INET_H
18560: # include <arpa/inet.h>
18561: #endif
18562: /* Required for IDRP */
18563: #if HAVE_NETINET_IP_ICMP_H
18564: # include <netinet/ip_icmp.h>
18565: #endif
18566:
18567: #if HAVE_NETINET6_IN6_H
18568: #include <netinet6/in6.h>
18569: #endif
18570: #if HAVE_NETINET_IN6_VAR_H
18571: #include <netinet/in6_var.h>
18572: #endif
18573: #if HAVE_NETINET_ICMP6_H
18574: # include <netinet/icmp6.h>
18575: #endif
18576: #if HAVE_NETINET6_IN6_VAR_H
18577: # include <netinet6/in6_var.h>
18578: #endif
18579: #if HAVE_NETINET6_ND6_H
18580: # include <netinet6/nd6.h>
18581: #endif
18582:
18583: "
18584: if test "x$ac_cv_type_struct_ifaliasreq" = xyes; then :
18585:
18586: cat >>confdefs.h <<_ACEOF
18587: #define HAVE_STRUCT_IFALIASREQ 1
18588: _ACEOF
18589:
18590:
18591: fi
18592: ac_fn_c_check_type "$LINENO" "struct if6_aliasreq" "ac_cv_type_struct_if6_aliasreq" "#ifdef SUNOS_5
18593: #define _XPG4_2
18594: #define __EXTENSIONS__
18595: #endif
18596: #include <stdio.h>
18597: #if STDC_HEADERS
18598: # include <stdlib.h>
18599: # include <stddef.h>
18600: #else
18601: # if HAVE_STDLIB_H
18602: # include <stdlib.h>
18603: # endif
18604: #endif
18605: #if HAVE_SYS_TYPES_H
18606: # include <sys/types.h>
18607: #endif
18608: /* sys/conf.h depends on param.h on FBSD at least */
18609: #if HAVE_SYS_PARAM_H
18610: # include <sys/param.h>
18611: #endif
18612: /* Required for MAXSIG */
18613: #if HAVE_SIGNAL_H
18614: # include <signal.h>
18615: #endif
18616: #if HAVE_SYS_SOCKET_H
18617: # include <sys/socket.h>
18618: #endif
18619: #if HAVE_NETINET_IN_H
18620: # include <netinet/in.h>
18621: #endif
18622: #ifdef TIME_WITH_SYS_TIME
18623: # include <sys/time.h>
18624: # include <time.h>
18625: #else
18626: # ifdef HAVE_SYS_TIME_H
18627: # include <sys/time.h>
18628: # else
18629: # include <time.h>
18630: # endif
18631: #endif /* TIME_WITH_SYS_TIME */
18632:
18633: #if HAVE_NET_IF_H
18634: # include <net/if.h>
18635: #endif
18636:
18637: #if HAVE_NET_IF_VAR_H
18638: # include <net/if_var.h>
18639: #endif
18640:
18641: #if HAVE_SYS_UN_H
18642: # include <sys/un.h>
18643: #endif
18644: #if HAVE_NETINET_IN_SYSTM_H
18645: # include <netinet/in_systm.h>
18646: #endif
18647: #if HAVE_NETINET_IN_VAR_H
18648: # include <netinet/in_var.h>
18649: #endif
18650: #if HAVE_NET_IF_DL_H
18651: # include <net/if_dl.h>
18652: #endif
18653: #if HAVE_NET_NETOPT_H
18654: # include <net/netopt.h>
18655: #endif
18656: #if HAVE_NET_ROUTE_H
18657: # include <net/route.h>
18658: #endif
18659: #if HAVE_INET_ND_H
18660: # include <inet/nd.h>
18661: #endif
18662: #if HAVE_ARPA_INET_H
18663: # include <arpa/inet.h>
18664: #endif
18665: /* Required for IDRP */
18666: #if HAVE_NETINET_IP_ICMP_H
18667: # include <netinet/ip_icmp.h>
18668: #endif
18669:
18670: #if HAVE_NETINET6_IN6_H
18671: #include <netinet6/in6.h>
18672: #endif
18673: #if HAVE_NETINET_IN6_VAR_H
18674: #include <netinet/in6_var.h>
18675: #endif
18676: #if HAVE_NETINET_ICMP6_H
18677: # include <netinet/icmp6.h>
18678: #endif
18679: #if HAVE_NETINET6_IN6_VAR_H
18680: # include <netinet6/in6_var.h>
18681: #endif
18682: #if HAVE_NETINET6_ND6_H
18683: # include <netinet6/nd6.h>
18684: #endif
18685:
18686: "
18687: if test "x$ac_cv_type_struct_if6_aliasreq" = xyes; then :
18688:
18689: cat >>confdefs.h <<_ACEOF
18690: #define HAVE_STRUCT_IF6_ALIASREQ 1
18691: _ACEOF
18692:
18693:
18694: fi
18695: ac_fn_c_check_type "$LINENO" "struct in6_aliasreq" "ac_cv_type_struct_in6_aliasreq" "#ifdef SUNOS_5
18696: #define _XPG4_2
18697: #define __EXTENSIONS__
18698: #endif
18699: #include <stdio.h>
18700: #if STDC_HEADERS
18701: # include <stdlib.h>
18702: # include <stddef.h>
18703: #else
18704: # if HAVE_STDLIB_H
18705: # include <stdlib.h>
18706: # endif
18707: #endif
18708: #if HAVE_SYS_TYPES_H
18709: # include <sys/types.h>
18710: #endif
18711: /* sys/conf.h depends on param.h on FBSD at least */
18712: #if HAVE_SYS_PARAM_H
18713: # include <sys/param.h>
18714: #endif
18715: /* Required for MAXSIG */
18716: #if HAVE_SIGNAL_H
18717: # include <signal.h>
18718: #endif
18719: #if HAVE_SYS_SOCKET_H
18720: # include <sys/socket.h>
18721: #endif
18722: #if HAVE_NETINET_IN_H
18723: # include <netinet/in.h>
18724: #endif
18725: #ifdef TIME_WITH_SYS_TIME
18726: # include <sys/time.h>
18727: # include <time.h>
18728: #else
18729: # ifdef HAVE_SYS_TIME_H
18730: # include <sys/time.h>
18731: # else
18732: # include <time.h>
18733: # endif
18734: #endif /* TIME_WITH_SYS_TIME */
18735:
18736: #if HAVE_NET_IF_H
18737: # include <net/if.h>
18738: #endif
18739:
18740: #if HAVE_NET_IF_VAR_H
18741: # include <net/if_var.h>
18742: #endif
18743:
18744: #if HAVE_SYS_UN_H
18745: # include <sys/un.h>
18746: #endif
18747: #if HAVE_NETINET_IN_SYSTM_H
18748: # include <netinet/in_systm.h>
18749: #endif
18750: #if HAVE_NETINET_IN_VAR_H
18751: # include <netinet/in_var.h>
18752: #endif
18753: #if HAVE_NET_IF_DL_H
18754: # include <net/if_dl.h>
18755: #endif
18756: #if HAVE_NET_NETOPT_H
18757: # include <net/netopt.h>
18758: #endif
18759: #if HAVE_NET_ROUTE_H
18760: # include <net/route.h>
18761: #endif
18762: #if HAVE_INET_ND_H
18763: # include <inet/nd.h>
18764: #endif
18765: #if HAVE_ARPA_INET_H
18766: # include <arpa/inet.h>
18767: #endif
18768: /* Required for IDRP */
18769: #if HAVE_NETINET_IP_ICMP_H
18770: # include <netinet/ip_icmp.h>
18771: #endif
18772:
18773: #if HAVE_NETINET6_IN6_H
18774: #include <netinet6/in6.h>
18775: #endif
18776: #if HAVE_NETINET_IN6_VAR_H
18777: #include <netinet/in6_var.h>
18778: #endif
18779: #if HAVE_NETINET_ICMP6_H
18780: # include <netinet/icmp6.h>
18781: #endif
18782: #if HAVE_NETINET6_IN6_VAR_H
18783: # include <netinet6/in6_var.h>
18784: #endif
18785: #if HAVE_NETINET6_ND6_H
18786: # include <netinet6/nd6.h>
18787: #endif
18788:
18789: "
18790: if test "x$ac_cv_type_struct_in6_aliasreq" = xyes; then :
18791:
18792: cat >>confdefs.h <<_ACEOF
18793: #define HAVE_STRUCT_IN6_ALIASREQ 1
18794: _ACEOF
18795:
18796:
18797: fi
18798: ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
18799: #define _XPG4_2
18800: #define __EXTENSIONS__
18801: #endif
18802: #include <stdio.h>
18803: #if STDC_HEADERS
18804: # include <stdlib.h>
18805: # include <stddef.h>
18806: #else
18807: # if HAVE_STDLIB_H
18808: # include <stdlib.h>
18809: # endif
18810: #endif
18811: #if HAVE_SYS_TYPES_H
18812: # include <sys/types.h>
18813: #endif
18814: /* sys/conf.h depends on param.h on FBSD at least */
18815: #if HAVE_SYS_PARAM_H
18816: # include <sys/param.h>
18817: #endif
18818: /* Required for MAXSIG */
18819: #if HAVE_SIGNAL_H
18820: # include <signal.h>
18821: #endif
18822: #if HAVE_SYS_SOCKET_H
18823: # include <sys/socket.h>
18824: #endif
18825: #if HAVE_NETINET_IN_H
18826: # include <netinet/in.h>
18827: #endif
18828: #ifdef TIME_WITH_SYS_TIME
18829: # include <sys/time.h>
18830: # include <time.h>
18831: #else
18832: # ifdef HAVE_SYS_TIME_H
18833: # include <sys/time.h>
18834: # else
18835: # include <time.h>
18836: # endif
18837: #endif /* TIME_WITH_SYS_TIME */
18838:
18839: #if HAVE_NET_IF_H
18840: # include <net/if.h>
18841: #endif
18842:
18843: #if HAVE_NET_IF_VAR_H
18844: # include <net/if_var.h>
18845: #endif
18846:
18847: #if HAVE_SYS_UN_H
18848: # include <sys/un.h>
18849: #endif
18850: #if HAVE_NETINET_IN_SYSTM_H
18851: # include <netinet/in_systm.h>
18852: #endif
18853: #if HAVE_NETINET_IN_VAR_H
18854: # include <netinet/in_var.h>
18855: #endif
18856: #if HAVE_NET_IF_DL_H
18857: # include <net/if_dl.h>
18858: #endif
18859: #if HAVE_NET_NETOPT_H
18860: # include <net/netopt.h>
18861: #endif
18862: #if HAVE_NET_ROUTE_H
18863: # include <net/route.h>
18864: #endif
18865: #if HAVE_INET_ND_H
18866: # include <inet/nd.h>
18867: #endif
18868: #if HAVE_ARPA_INET_H
18869: # include <arpa/inet.h>
18870: #endif
18871: /* Required for IDRP */
18872: #if HAVE_NETINET_IP_ICMP_H
18873: # include <netinet/ip_icmp.h>
18874: #endif
18875:
18876: #if HAVE_NETINET6_IN6_H
18877: #include <netinet6/in6.h>
18878: #endif
18879: #if HAVE_NETINET_IN6_VAR_H
18880: #include <netinet/in6_var.h>
18881: #endif
18882: #if HAVE_NETINET_ICMP6_H
18883: # include <netinet/icmp6.h>
18884: #endif
18885: #if HAVE_NETINET6_IN6_VAR_H
18886: # include <netinet6/in6_var.h>
18887: #endif
18888: #if HAVE_NETINET6_ND6_H
18889: # include <netinet6/nd6.h>
18890: #endif
18891:
18892: "
18893: if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
18894:
18895: cat >>confdefs.h <<_ACEOF
18896: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
18897: _ACEOF
18898:
18899:
18900: fi
18901: ac_fn_c_check_type "$LINENO" "struct rt_addrinfo" "ac_cv_type_struct_rt_addrinfo" "#ifdef SUNOS_5
18902: #define _XPG4_2
18903: #define __EXTENSIONS__
18904: #endif
18905: #include <stdio.h>
18906: #if STDC_HEADERS
18907: # include <stdlib.h>
18908: # include <stddef.h>
18909: #else
18910: # if HAVE_STDLIB_H
18911: # include <stdlib.h>
18912: # endif
18913: #endif
18914: #if HAVE_SYS_TYPES_H
18915: # include <sys/types.h>
18916: #endif
18917: /* sys/conf.h depends on param.h on FBSD at least */
18918: #if HAVE_SYS_PARAM_H
18919: # include <sys/param.h>
18920: #endif
18921: /* Required for MAXSIG */
18922: #if HAVE_SIGNAL_H
18923: # include <signal.h>
18924: #endif
18925: #if HAVE_SYS_SOCKET_H
18926: # include <sys/socket.h>
18927: #endif
18928: #if HAVE_NETINET_IN_H
18929: # include <netinet/in.h>
18930: #endif
18931: #ifdef TIME_WITH_SYS_TIME
18932: # include <sys/time.h>
18933: # include <time.h>
18934: #else
18935: # ifdef HAVE_SYS_TIME_H
18936: # include <sys/time.h>
18937: # else
18938: # include <time.h>
18939: # endif
18940: #endif /* TIME_WITH_SYS_TIME */
18941:
18942: #if HAVE_NET_IF_H
18943: # include <net/if.h>
18944: #endif
18945:
18946: #if HAVE_NET_IF_VAR_H
18947: # include <net/if_var.h>
18948: #endif
18949:
18950: #if HAVE_SYS_UN_H
18951: # include <sys/un.h>
18952: #endif
18953: #if HAVE_NETINET_IN_SYSTM_H
18954: # include <netinet/in_systm.h>
18955: #endif
18956: #if HAVE_NETINET_IN_VAR_H
18957: # include <netinet/in_var.h>
18958: #endif
18959: #if HAVE_NET_IF_DL_H
18960: # include <net/if_dl.h>
18961: #endif
18962: #if HAVE_NET_NETOPT_H
18963: # include <net/netopt.h>
18964: #endif
18965: #if HAVE_NET_ROUTE_H
18966: # include <net/route.h>
18967: #endif
18968: #if HAVE_INET_ND_H
18969: # include <inet/nd.h>
18970: #endif
18971: #if HAVE_ARPA_INET_H
18972: # include <arpa/inet.h>
18973: #endif
18974: /* Required for IDRP */
18975: #if HAVE_NETINET_IP_ICMP_H
18976: # include <netinet/ip_icmp.h>
18977: #endif
18978:
18979: #if HAVE_NETINET6_IN6_H
18980: #include <netinet6/in6.h>
18981: #endif
18982: #if HAVE_NETINET_IN6_VAR_H
18983: #include <netinet/in6_var.h>
18984: #endif
18985: #if HAVE_NETINET_ICMP6_H
18986: # include <netinet/icmp6.h>
18987: #endif
18988: #if HAVE_NETINET6_IN6_VAR_H
18989: # include <netinet6/in6_var.h>
18990: #endif
18991: #if HAVE_NETINET6_ND6_H
18992: # include <netinet6/nd6.h>
18993: #endif
18994:
18995: "
18996: if test "x$ac_cv_type_struct_rt_addrinfo" = xyes; then :
18997:
18998: cat >>confdefs.h <<_ACEOF
18999: #define HAVE_STRUCT_RT_ADDRINFO 1
19000: _ACEOF
19001:
19002:
19003: fi
19004: ac_fn_c_check_type "$LINENO" "struct nd_opt_homeagent_info" "ac_cv_type_struct_nd_opt_homeagent_info" "#ifdef SUNOS_5
19005: #define _XPG4_2
19006: #define __EXTENSIONS__
19007: #endif
19008: #include <stdio.h>
19009: #if STDC_HEADERS
19010: # include <stdlib.h>
19011: # include <stddef.h>
19012: #else
19013: # if HAVE_STDLIB_H
19014: # include <stdlib.h>
19015: # endif
19016: #endif
19017: #if HAVE_SYS_TYPES_H
19018: # include <sys/types.h>
19019: #endif
19020: /* sys/conf.h depends on param.h on FBSD at least */
19021: #if HAVE_SYS_PARAM_H
19022: # include <sys/param.h>
19023: #endif
19024: /* Required for MAXSIG */
19025: #if HAVE_SIGNAL_H
19026: # include <signal.h>
19027: #endif
19028: #if HAVE_SYS_SOCKET_H
19029: # include <sys/socket.h>
19030: #endif
19031: #if HAVE_NETINET_IN_H
19032: # include <netinet/in.h>
19033: #endif
19034: #ifdef TIME_WITH_SYS_TIME
19035: # include <sys/time.h>
19036: # include <time.h>
19037: #else
19038: # ifdef HAVE_SYS_TIME_H
19039: # include <sys/time.h>
19040: # else
19041: # include <time.h>
19042: # endif
19043: #endif /* TIME_WITH_SYS_TIME */
19044:
19045: #if HAVE_NET_IF_H
19046: # include <net/if.h>
19047: #endif
19048:
19049: #if HAVE_NET_IF_VAR_H
19050: # include <net/if_var.h>
19051: #endif
19052:
19053: #if HAVE_SYS_UN_H
19054: # include <sys/un.h>
19055: #endif
19056: #if HAVE_NETINET_IN_SYSTM_H
19057: # include <netinet/in_systm.h>
19058: #endif
19059: #if HAVE_NETINET_IN_VAR_H
19060: # include <netinet/in_var.h>
19061: #endif
19062: #if HAVE_NET_IF_DL_H
19063: # include <net/if_dl.h>
19064: #endif
19065: #if HAVE_NET_NETOPT_H
19066: # include <net/netopt.h>
19067: #endif
19068: #if HAVE_NET_ROUTE_H
19069: # include <net/route.h>
19070: #endif
19071: #if HAVE_INET_ND_H
19072: # include <inet/nd.h>
19073: #endif
19074: #if HAVE_ARPA_INET_H
19075: # include <arpa/inet.h>
19076: #endif
19077: /* Required for IDRP */
19078: #if HAVE_NETINET_IP_ICMP_H
19079: # include <netinet/ip_icmp.h>
19080: #endif
19081:
19082: #if HAVE_NETINET6_IN6_H
19083: #include <netinet6/in6.h>
19084: #endif
19085: #if HAVE_NETINET_IN6_VAR_H
19086: #include <netinet/in6_var.h>
19087: #endif
19088: #if HAVE_NETINET_ICMP6_H
19089: # include <netinet/icmp6.h>
19090: #endif
19091: #if HAVE_NETINET6_IN6_VAR_H
19092: # include <netinet6/in6_var.h>
19093: #endif
19094: #if HAVE_NETINET6_ND6_H
19095: # include <netinet6/nd6.h>
19096: #endif
19097:
19098: "
19099: if test "x$ac_cv_type_struct_nd_opt_homeagent_info" = xyes; then :
19100:
19101: cat >>confdefs.h <<_ACEOF
19102: #define HAVE_STRUCT_ND_OPT_HOMEAGENT_INFO 1
19103: _ACEOF
19104:
19105:
19106: fi
19107: ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
19108: #define _XPG4_2
19109: #define __EXTENSIONS__
19110: #endif
19111: #include <stdio.h>
19112: #if STDC_HEADERS
19113: # include <stdlib.h>
19114: # include <stddef.h>
19115: #else
19116: # if HAVE_STDLIB_H
19117: # include <stdlib.h>
19118: # endif
19119: #endif
19120: #if HAVE_SYS_TYPES_H
19121: # include <sys/types.h>
19122: #endif
19123: /* sys/conf.h depends on param.h on FBSD at least */
19124: #if HAVE_SYS_PARAM_H
19125: # include <sys/param.h>
19126: #endif
19127: /* Required for MAXSIG */
19128: #if HAVE_SIGNAL_H
19129: # include <signal.h>
19130: #endif
19131: #if HAVE_SYS_SOCKET_H
19132: # include <sys/socket.h>
19133: #endif
19134: #if HAVE_NETINET_IN_H
19135: # include <netinet/in.h>
19136: #endif
19137: #ifdef TIME_WITH_SYS_TIME
19138: # include <sys/time.h>
19139: # include <time.h>
19140: #else
19141: # ifdef HAVE_SYS_TIME_H
19142: # include <sys/time.h>
19143: # else
19144: # include <time.h>
19145: # endif
19146: #endif /* TIME_WITH_SYS_TIME */
19147:
19148: #if HAVE_NET_IF_H
19149: # include <net/if.h>
19150: #endif
19151:
19152: #if HAVE_NET_IF_VAR_H
19153: # include <net/if_var.h>
19154: #endif
19155:
19156: #if HAVE_SYS_UN_H
19157: # include <sys/un.h>
19158: #endif
19159: #if HAVE_NETINET_IN_SYSTM_H
19160: # include <netinet/in_systm.h>
19161: #endif
19162: #if HAVE_NETINET_IN_VAR_H
19163: # include <netinet/in_var.h>
19164: #endif
19165: #if HAVE_NET_IF_DL_H
19166: # include <net/if_dl.h>
19167: #endif
19168: #if HAVE_NET_NETOPT_H
19169: # include <net/netopt.h>
19170: #endif
19171: #if HAVE_NET_ROUTE_H
19172: # include <net/route.h>
19173: #endif
19174: #if HAVE_INET_ND_H
19175: # include <inet/nd.h>
19176: #endif
19177: #if HAVE_ARPA_INET_H
19178: # include <arpa/inet.h>
19179: #endif
19180: /* Required for IDRP */
19181: #if HAVE_NETINET_IP_ICMP_H
19182: # include <netinet/ip_icmp.h>
19183: #endif
19184:
19185: #if HAVE_NETINET6_IN6_H
19186: #include <netinet6/in6.h>
19187: #endif
19188: #if HAVE_NETINET_IN6_VAR_H
19189: #include <netinet/in6_var.h>
19190: #endif
19191: #if HAVE_NETINET_ICMP6_H
19192: # include <netinet/icmp6.h>
19193: #endif
19194: #if HAVE_NETINET6_IN6_VAR_H
19195: # include <netinet6/in6_var.h>
19196: #endif
19197: #if HAVE_NETINET6_ND6_H
19198: # include <netinet6/nd6.h>
19199: #endif
19200:
19201: "
19202: if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
19203:
19204: cat >>confdefs.h <<_ACEOF
19205: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
19206: _ACEOF
19207:
19208:
19209: fi
19210:
19211:
19212: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#ifdef SUNOS_5
19213: #define _XPG4_2
19214: #define __EXTENSIONS__
19215: #endif
19216: #include <stdio.h>
19217: #if STDC_HEADERS
19218: # include <stdlib.h>
19219: # include <stddef.h>
19220: #else
19221: # if HAVE_STDLIB_H
19222: # include <stdlib.h>
19223: # endif
19224: #endif
19225: #if HAVE_SYS_TYPES_H
19226: # include <sys/types.h>
19227: #endif
19228: /* sys/conf.h depends on param.h on FBSD at least */
19229: #if HAVE_SYS_PARAM_H
19230: # include <sys/param.h>
19231: #endif
19232: /* Required for MAXSIG */
19233: #if HAVE_SIGNAL_H
19234: # include <signal.h>
19235: #endif
19236: #if HAVE_SYS_SOCKET_H
19237: # include <sys/socket.h>
19238: #endif
19239: #if HAVE_NETINET_IN_H
19240: # include <netinet/in.h>
19241: #endif
19242: #ifdef TIME_WITH_SYS_TIME
19243: # include <sys/time.h>
19244: # include <time.h>
19245: #else
19246: # ifdef HAVE_SYS_TIME_H
19247: # include <sys/time.h>
19248: # else
19249: # include <time.h>
19250: # endif
19251: #endif /* TIME_WITH_SYS_TIME */
19252:
19253: #if HAVE_NET_IF_H
19254: # include <net/if.h>
19255: #endif
19256:
19257: #if HAVE_NET_IF_VAR_H
19258: # include <net/if_var.h>
19259: #endif
19260:
19261: #if HAVE_SYS_UN_H
19262: # include <sys/un.h>
19263: #endif
19264: #if HAVE_NETINET_IN_SYSTM_H
19265: # include <netinet/in_systm.h>
19266: #endif
19267: #if HAVE_NETINET_IN_VAR_H
19268: # include <netinet/in_var.h>
19269: #endif
19270: #if HAVE_NET_IF_DL_H
19271: # include <net/if_dl.h>
19272: #endif
19273: #if HAVE_NET_NETOPT_H
19274: # include <net/netopt.h>
19275: #endif
19276: #if HAVE_NET_ROUTE_H
19277: # include <net/route.h>
19278: #endif
19279: #if HAVE_INET_ND_H
19280: # include <inet/nd.h>
19281: #endif
19282: #if HAVE_ARPA_INET_H
19283: # include <arpa/inet.h>
19284: #endif
19285: /* Required for IDRP */
19286: #if HAVE_NETINET_IP_ICMP_H
19287: # include <netinet/ip_icmp.h>
19288: #endif
19289:
19290: #if HAVE_NETINET6_IN6_H
19291: #include <netinet6/in6.h>
19292: #endif
19293: #if HAVE_NETINET_IN6_VAR_H
19294: #include <netinet/in6_var.h>
19295: #endif
19296: #if HAVE_NETINET_ICMP6_H
19297: # include <netinet/icmp6.h>
19298: #endif
19299: #if HAVE_NETINET6_IN6_VAR_H
19300: # include <netinet6/in6_var.h>
19301: #endif
19302: #if HAVE_NETINET6_ND6_H
19303: # include <netinet6/nd6.h>
19304: #endif
19305:
19306: "
19307: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
19308:
19309: cat >>confdefs.h <<_ACEOF
19310: #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19311: _ACEOF
19312:
19313:
19314: fi
19315: ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef SUNOS_5
19316: #define _XPG4_2
19317: #define __EXTENSIONS__
19318: #endif
19319: #include <stdio.h>
19320: #if STDC_HEADERS
19321: # include <stdlib.h>
19322: # include <stddef.h>
19323: #else
19324: # if HAVE_STDLIB_H
19325: # include <stdlib.h>
19326: # endif
19327: #endif
19328: #if HAVE_SYS_TYPES_H
19329: # include <sys/types.h>
19330: #endif
19331: /* sys/conf.h depends on param.h on FBSD at least */
19332: #if HAVE_SYS_PARAM_H
19333: # include <sys/param.h>
19334: #endif
19335: /* Required for MAXSIG */
19336: #if HAVE_SIGNAL_H
19337: # include <signal.h>
19338: #endif
19339: #if HAVE_SYS_SOCKET_H
19340: # include <sys/socket.h>
19341: #endif
19342: #if HAVE_NETINET_IN_H
19343: # include <netinet/in.h>
19344: #endif
19345: #ifdef TIME_WITH_SYS_TIME
19346: # include <sys/time.h>
19347: # include <time.h>
19348: #else
19349: # ifdef HAVE_SYS_TIME_H
19350: # include <sys/time.h>
19351: # else
19352: # include <time.h>
19353: # endif
19354: #endif /* TIME_WITH_SYS_TIME */
19355:
19356: #if HAVE_NET_IF_H
19357: # include <net/if.h>
19358: #endif
19359:
19360: #if HAVE_NET_IF_VAR_H
19361: # include <net/if_var.h>
19362: #endif
19363:
19364: #if HAVE_SYS_UN_H
19365: # include <sys/un.h>
19366: #endif
19367: #if HAVE_NETINET_IN_SYSTM_H
19368: # include <netinet/in_systm.h>
19369: #endif
19370: #if HAVE_NETINET_IN_VAR_H
19371: # include <netinet/in_var.h>
19372: #endif
19373: #if HAVE_NET_IF_DL_H
19374: # include <net/if_dl.h>
19375: #endif
19376: #if HAVE_NET_NETOPT_H
19377: # include <net/netopt.h>
19378: #endif
19379: #if HAVE_NET_ROUTE_H
19380: # include <net/route.h>
19381: #endif
19382: #if HAVE_INET_ND_H
19383: # include <inet/nd.h>
19384: #endif
19385: #if HAVE_ARPA_INET_H
19386: # include <arpa/inet.h>
19387: #endif
19388: /* Required for IDRP */
19389: #if HAVE_NETINET_IP_ICMP_H
19390: # include <netinet/ip_icmp.h>
19391: #endif
19392:
19393: #if HAVE_NETINET6_IN6_H
19394: #include <netinet6/in6.h>
19395: #endif
19396: #if HAVE_NETINET_IN6_VAR_H
19397: #include <netinet/in6_var.h>
19398: #endif
19399: #if HAVE_NETINET_ICMP6_H
19400: # include <netinet/icmp6.h>
19401: #endif
19402: #if HAVE_NETINET6_IN6_VAR_H
19403: # include <netinet6/in6_var.h>
19404: #endif
19405: #if HAVE_NETINET6_ND6_H
19406: # include <netinet6/nd6.h>
19407: #endif
19408:
19409: "
19410: if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19411:
19412: cat >>confdefs.h <<_ACEOF
19413: #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
19414: _ACEOF
19415:
19416:
19417: fi
19418: ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#ifdef SUNOS_5
19419: #define _XPG4_2
19420: #define __EXTENSIONS__
19421: #endif
19422: #include <stdio.h>
19423: #if STDC_HEADERS
19424: # include <stdlib.h>
19425: # include <stddef.h>
19426: #else
19427: # if HAVE_STDLIB_H
19428: # include <stdlib.h>
19429: # endif
19430: #endif
19431: #if HAVE_SYS_TYPES_H
19432: # include <sys/types.h>
19433: #endif
19434: /* sys/conf.h depends on param.h on FBSD at least */
19435: #if HAVE_SYS_PARAM_H
19436: # include <sys/param.h>
19437: #endif
19438: /* Required for MAXSIG */
19439: #if HAVE_SIGNAL_H
19440: # include <signal.h>
19441: #endif
19442: #if HAVE_SYS_SOCKET_H
19443: # include <sys/socket.h>
19444: #endif
19445: #if HAVE_NETINET_IN_H
19446: # include <netinet/in.h>
19447: #endif
19448: #ifdef TIME_WITH_SYS_TIME
19449: # include <sys/time.h>
19450: # include <time.h>
19451: #else
19452: # ifdef HAVE_SYS_TIME_H
19453: # include <sys/time.h>
19454: # else
19455: # include <time.h>
19456: # endif
19457: #endif /* TIME_WITH_SYS_TIME */
19458:
19459: #if HAVE_NET_IF_H
19460: # include <net/if.h>
19461: #endif
19462:
19463: #if HAVE_NET_IF_VAR_H
19464: # include <net/if_var.h>
19465: #endif
19466:
19467: #if HAVE_SYS_UN_H
19468: # include <sys/un.h>
19469: #endif
19470: #if HAVE_NETINET_IN_SYSTM_H
19471: # include <netinet/in_systm.h>
19472: #endif
19473: #if HAVE_NETINET_IN_VAR_H
19474: # include <netinet/in_var.h>
19475: #endif
19476: #if HAVE_NET_IF_DL_H
19477: # include <net/if_dl.h>
19478: #endif
19479: #if HAVE_NET_NETOPT_H
19480: # include <net/netopt.h>
19481: #endif
19482: #if HAVE_NET_ROUTE_H
19483: # include <net/route.h>
19484: #endif
19485: #if HAVE_INET_ND_H
19486: # include <inet/nd.h>
19487: #endif
19488: #if HAVE_ARPA_INET_H
19489: # include <arpa/inet.h>
19490: #endif
19491: /* Required for IDRP */
19492: #if HAVE_NETINET_IP_ICMP_H
19493: # include <netinet/ip_icmp.h>
19494: #endif
19495:
19496: #if HAVE_NETINET6_IN6_H
19497: #include <netinet6/in6.h>
19498: #endif
19499: #if HAVE_NETINET_IN6_VAR_H
19500: #include <netinet/in6_var.h>
19501: #endif
19502: #if HAVE_NETINET_ICMP6_H
19503: # include <netinet/icmp6.h>
19504: #endif
19505: #if HAVE_NETINET6_IN6_VAR_H
19506: # include <netinet6/in6_var.h>
19507: #endif
19508: #if HAVE_NETINET6_ND6_H
19509: # include <netinet6/nd6.h>
19510: #endif
19511:
19512: "
19513: if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19514:
19515: cat >>confdefs.h <<_ACEOF
19516: #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19517: _ACEOF
19518:
19519:
19520: fi
19521: ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef SUNOS_5
19522: #define _XPG4_2
19523: #define __EXTENSIONS__
19524: #endif
19525: #include <stdio.h>
19526: #if STDC_HEADERS
19527: # include <stdlib.h>
19528: # include <stddef.h>
19529: #else
19530: # if HAVE_STDLIB_H
19531: # include <stdlib.h>
19532: # endif
19533: #endif
19534: #if HAVE_SYS_TYPES_H
19535: # include <sys/types.h>
19536: #endif
19537: /* sys/conf.h depends on param.h on FBSD at least */
19538: #if HAVE_SYS_PARAM_H
19539: # include <sys/param.h>
19540: #endif
19541: /* Required for MAXSIG */
19542: #if HAVE_SIGNAL_H
19543: # include <signal.h>
19544: #endif
19545: #if HAVE_SYS_SOCKET_H
19546: # include <sys/socket.h>
19547: #endif
19548: #if HAVE_NETINET_IN_H
19549: # include <netinet/in.h>
19550: #endif
19551: #ifdef TIME_WITH_SYS_TIME
19552: # include <sys/time.h>
19553: # include <time.h>
19554: #else
19555: # ifdef HAVE_SYS_TIME_H
19556: # include <sys/time.h>
19557: # else
19558: # include <time.h>
19559: # endif
19560: #endif /* TIME_WITH_SYS_TIME */
19561:
19562: #if HAVE_NET_IF_H
19563: # include <net/if.h>
19564: #endif
19565:
19566: #if HAVE_NET_IF_VAR_H
19567: # include <net/if_var.h>
19568: #endif
19569:
19570: #if HAVE_SYS_UN_H
19571: # include <sys/un.h>
19572: #endif
19573: #if HAVE_NETINET_IN_SYSTM_H
19574: # include <netinet/in_systm.h>
19575: #endif
19576: #if HAVE_NETINET_IN_VAR_H
19577: # include <netinet/in_var.h>
19578: #endif
19579: #if HAVE_NET_IF_DL_H
19580: # include <net/if_dl.h>
19581: #endif
19582: #if HAVE_NET_NETOPT_H
19583: # include <net/netopt.h>
19584: #endif
19585: #if HAVE_NET_ROUTE_H
19586: # include <net/route.h>
19587: #endif
19588: #if HAVE_INET_ND_H
19589: # include <inet/nd.h>
19590: #endif
19591: #if HAVE_ARPA_INET_H
19592: # include <arpa/inet.h>
19593: #endif
19594: /* Required for IDRP */
19595: #if HAVE_NETINET_IP_ICMP_H
19596: # include <netinet/ip_icmp.h>
19597: #endif
19598:
19599: #if HAVE_NETINET6_IN6_H
19600: #include <netinet6/in6.h>
19601: #endif
19602: #if HAVE_NETINET_IN6_VAR_H
19603: #include <netinet/in6_var.h>
19604: #endif
19605: #if HAVE_NETINET_ICMP6_H
19606: # include <netinet/icmp6.h>
19607: #endif
19608: #if HAVE_NETINET6_IN6_VAR_H
19609: # include <netinet6/in6_var.h>
19610: #endif
19611: #if HAVE_NETINET6_ND6_H
19612: # include <netinet6/nd6.h>
19613: #endif
19614:
19615: "
19616: if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
19617:
19618: cat >>confdefs.h <<_ACEOF
19619: #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19620: _ACEOF
19621:
19622:
19623: fi
19624: ac_fn_c_check_member "$LINENO" "struct if6_aliasreq" "ifra_lifetime" "ac_cv_member_struct_if6_aliasreq_ifra_lifetime" "#ifdef SUNOS_5
19625: #define _XPG4_2
19626: #define __EXTENSIONS__
19627: #endif
19628: #include <stdio.h>
19629: #if STDC_HEADERS
19630: # include <stdlib.h>
19631: # include <stddef.h>
19632: #else
19633: # if HAVE_STDLIB_H
19634: # include <stdlib.h>
19635: # endif
19636: #endif
19637: #if HAVE_SYS_TYPES_H
19638: # include <sys/types.h>
19639: #endif
19640: /* sys/conf.h depends on param.h on FBSD at least */
19641: #if HAVE_SYS_PARAM_H
19642: # include <sys/param.h>
19643: #endif
19644: /* Required for MAXSIG */
19645: #if HAVE_SIGNAL_H
19646: # include <signal.h>
19647: #endif
19648: #if HAVE_SYS_SOCKET_H
19649: # include <sys/socket.h>
19650: #endif
19651: #if HAVE_NETINET_IN_H
19652: # include <netinet/in.h>
19653: #endif
19654: #ifdef TIME_WITH_SYS_TIME
19655: # include <sys/time.h>
19656: # include <time.h>
19657: #else
19658: # ifdef HAVE_SYS_TIME_H
19659: # include <sys/time.h>
19660: # else
19661: # include <time.h>
19662: # endif
19663: #endif /* TIME_WITH_SYS_TIME */
19664:
19665: #if HAVE_NET_IF_H
19666: # include <net/if.h>
19667: #endif
19668:
19669: #if HAVE_NET_IF_VAR_H
19670: # include <net/if_var.h>
19671: #endif
19672:
19673: #if HAVE_SYS_UN_H
19674: # include <sys/un.h>
19675: #endif
19676: #if HAVE_NETINET_IN_SYSTM_H
19677: # include <netinet/in_systm.h>
19678: #endif
19679: #if HAVE_NETINET_IN_VAR_H
19680: # include <netinet/in_var.h>
19681: #endif
19682: #if HAVE_NET_IF_DL_H
19683: # include <net/if_dl.h>
19684: #endif
19685: #if HAVE_NET_NETOPT_H
19686: # include <net/netopt.h>
19687: #endif
19688: #if HAVE_NET_ROUTE_H
19689: # include <net/route.h>
19690: #endif
19691: #if HAVE_INET_ND_H
19692: # include <inet/nd.h>
19693: #endif
19694: #if HAVE_ARPA_INET_H
19695: # include <arpa/inet.h>
19696: #endif
19697: /* Required for IDRP */
19698: #if HAVE_NETINET_IP_ICMP_H
19699: # include <netinet/ip_icmp.h>
19700: #endif
19701:
19702: #if HAVE_NETINET6_IN6_H
19703: #include <netinet6/in6.h>
19704: #endif
19705: #if HAVE_NETINET_IN6_VAR_H
19706: #include <netinet/in6_var.h>
19707: #endif
19708: #if HAVE_NETINET_ICMP6_H
19709: # include <netinet/icmp6.h>
19710: #endif
19711: #if HAVE_NETINET6_IN6_VAR_H
19712: # include <netinet6/in6_var.h>
19713: #endif
19714: #if HAVE_NETINET6_ND6_H
19715: # include <netinet6/nd6.h>
19716: #endif
19717:
19718: "
19719: if test "x$ac_cv_member_struct_if6_aliasreq_ifra_lifetime" = xyes; then :
19720:
19721: cat >>confdefs.h <<_ACEOF
19722: #define HAVE_STRUCT_IF6_ALIASREQ_IFRA_LIFETIME 1
19723: _ACEOF
19724:
19725:
19726: fi
19727: ac_fn_c_check_member "$LINENO" "struct nd_opt_adv_interval" "nd_opt_ai_type" "ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" "#ifdef SUNOS_5
19728: #define _XPG4_2
19729: #define __EXTENSIONS__
19730: #endif
19731: #include <stdio.h>
19732: #if STDC_HEADERS
19733: # include <stdlib.h>
19734: # include <stddef.h>
19735: #else
19736: # if HAVE_STDLIB_H
19737: # include <stdlib.h>
19738: # endif
19739: #endif
19740: #if HAVE_SYS_TYPES_H
19741: # include <sys/types.h>
19742: #endif
19743: /* sys/conf.h depends on param.h on FBSD at least */
19744: #if HAVE_SYS_PARAM_H
19745: # include <sys/param.h>
19746: #endif
19747: /* Required for MAXSIG */
19748: #if HAVE_SIGNAL_H
19749: # include <signal.h>
19750: #endif
19751: #if HAVE_SYS_SOCKET_H
19752: # include <sys/socket.h>
19753: #endif
19754: #if HAVE_NETINET_IN_H
19755: # include <netinet/in.h>
19756: #endif
19757: #ifdef TIME_WITH_SYS_TIME
19758: # include <sys/time.h>
19759: # include <time.h>
19760: #else
19761: # ifdef HAVE_SYS_TIME_H
19762: # include <sys/time.h>
19763: # else
19764: # include <time.h>
19765: # endif
19766: #endif /* TIME_WITH_SYS_TIME */
19767:
19768: #if HAVE_NET_IF_H
19769: # include <net/if.h>
19770: #endif
19771:
19772: #if HAVE_NET_IF_VAR_H
19773: # include <net/if_var.h>
19774: #endif
19775:
19776: #if HAVE_SYS_UN_H
19777: # include <sys/un.h>
19778: #endif
19779: #if HAVE_NETINET_IN_SYSTM_H
19780: # include <netinet/in_systm.h>
19781: #endif
19782: #if HAVE_NETINET_IN_VAR_H
19783: # include <netinet/in_var.h>
19784: #endif
19785: #if HAVE_NET_IF_DL_H
19786: # include <net/if_dl.h>
19787: #endif
19788: #if HAVE_NET_NETOPT_H
19789: # include <net/netopt.h>
19790: #endif
19791: #if HAVE_NET_ROUTE_H
19792: # include <net/route.h>
19793: #endif
19794: #if HAVE_INET_ND_H
19795: # include <inet/nd.h>
19796: #endif
19797: #if HAVE_ARPA_INET_H
19798: # include <arpa/inet.h>
19799: #endif
19800: /* Required for IDRP */
19801: #if HAVE_NETINET_IP_ICMP_H
19802: # include <netinet/ip_icmp.h>
19803: #endif
19804:
19805: #if HAVE_NETINET6_IN6_H
19806: #include <netinet6/in6.h>
19807: #endif
19808: #if HAVE_NETINET_IN6_VAR_H
19809: #include <netinet/in6_var.h>
19810: #endif
19811: #if HAVE_NETINET_ICMP6_H
19812: # include <netinet/icmp6.h>
19813: #endif
19814: #if HAVE_NETINET6_IN6_VAR_H
19815: # include <netinet6/in6_var.h>
19816: #endif
19817: #if HAVE_NETINET6_ND6_H
19818: # include <netinet6/nd6.h>
19819: #endif
19820:
19821: "
19822: if test "x$ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" = xyes; then :
19823:
19824: cat >>confdefs.h <<_ACEOF
19825: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL_ND_OPT_AI_TYPE 1
19826: _ACEOF
19827:
19828:
19829: fi
19830:
19831:
19832: ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#ifdef SUNOS_5
19833: #define _XPG4_2
19834: #define __EXTENSIONS__
19835: #endif
19836: #include <stdio.h>
19837: #if STDC_HEADERS
19838: # include <stdlib.h>
19839: # include <stddef.h>
19840: #else
19841: # if HAVE_STDLIB_H
19842: # include <stdlib.h>
19843: # endif
19844: #endif
19845: #if HAVE_SYS_TYPES_H
19846: # include <sys/types.h>
19847: #endif
19848: /* sys/conf.h depends on param.h on FBSD at least */
19849: #if HAVE_SYS_PARAM_H
19850: # include <sys/param.h>
19851: #endif
19852: /* Required for MAXSIG */
19853: #if HAVE_SIGNAL_H
19854: # include <signal.h>
19855: #endif
19856: #if HAVE_SYS_SOCKET_H
19857: # include <sys/socket.h>
19858: #endif
19859: #if HAVE_NETINET_IN_H
19860: # include <netinet/in.h>
19861: #endif
19862: #ifdef TIME_WITH_SYS_TIME
19863: # include <sys/time.h>
19864: # include <time.h>
19865: #else
19866: # ifdef HAVE_SYS_TIME_H
19867: # include <sys/time.h>
19868: # else
19869: # include <time.h>
19870: # endif
19871: #endif /* TIME_WITH_SYS_TIME */
19872:
19873: #if HAVE_NET_IF_H
19874: # include <net/if.h>
19875: #endif
19876:
19877: #if HAVE_NET_IF_VAR_H
19878: # include <net/if_var.h>
19879: #endif
19880:
19881: #if HAVE_SYS_UN_H
19882: # include <sys/un.h>
19883: #endif
19884: #if HAVE_NETINET_IN_SYSTM_H
19885: # include <netinet/in_systm.h>
19886: #endif
19887: #if HAVE_NETINET_IN_VAR_H
19888: # include <netinet/in_var.h>
19889: #endif
19890: #if HAVE_NET_IF_DL_H
19891: # include <net/if_dl.h>
19892: #endif
19893: #if HAVE_NET_NETOPT_H
19894: # include <net/netopt.h>
19895: #endif
19896: #if HAVE_NET_ROUTE_H
19897: # include <net/route.h>
19898: #endif
19899: #if HAVE_INET_ND_H
19900: # include <inet/nd.h>
19901: #endif
19902: #if HAVE_ARPA_INET_H
19903: # include <arpa/inet.h>
19904: #endif
19905: /* Required for IDRP */
19906: #if HAVE_NETINET_IP_ICMP_H
19907: # include <netinet/ip_icmp.h>
19908: #endif
19909:
19910: #if HAVE_NETINET6_IN6_H
19911: #include <netinet6/in6.h>
19912: #endif
19913: #if HAVE_NETINET_IN6_VAR_H
19914: #include <netinet/in6_var.h>
19915: #endif
19916: #if HAVE_NETINET_ICMP6_H
19917: # include <netinet/icmp6.h>
19918: #endif
19919: #if HAVE_NETINET6_IN6_VAR_H
19920: # include <netinet6/in6_var.h>
19921: #endif
19922: #if HAVE_NETINET6_ND6_H
19923: # include <netinet6/nd6.h>
19924: #endif
19925:
19926: "
19927: if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
19928:
19929: cat >>confdefs.h <<_ACEOF
19930: #define HAVE_STRUCT_IN_PKTINFO 1
19931: _ACEOF
19932:
19933: ac_fn_c_check_type "$LINENO" "struct icmphdr" "ac_cv_type_struct_icmphdr" "#ifdef SUNOS_5
19934: #define _XPG4_2
19935: #define __EXTENSIONS__
19936: #endif
19937: #include <stdio.h>
19938: #if STDC_HEADERS
19939: # include <stdlib.h>
19940: # include <stddef.h>
19941: #else
19942: # if HAVE_STDLIB_H
19943: # include <stdlib.h>
19944: # endif
19945: #endif
19946: #if HAVE_SYS_TYPES_H
19947: # include <sys/types.h>
19948: #endif
19949: /* sys/conf.h depends on param.h on FBSD at least */
19950: #if HAVE_SYS_PARAM_H
19951: # include <sys/param.h>
19952: #endif
19953: /* Required for MAXSIG */
19954: #if HAVE_SIGNAL_H
19955: # include <signal.h>
19956: #endif
19957: #if HAVE_SYS_SOCKET_H
19958: # include <sys/socket.h>
19959: #endif
19960: #if HAVE_NETINET_IN_H
19961: # include <netinet/in.h>
19962: #endif
19963: #ifdef TIME_WITH_SYS_TIME
19964: # include <sys/time.h>
19965: # include <time.h>
19966: #else
19967: # ifdef HAVE_SYS_TIME_H
19968: # include <sys/time.h>
19969: # else
19970: # include <time.h>
19971: # endif
19972: #endif /* TIME_WITH_SYS_TIME */
19973:
19974: #if HAVE_NET_IF_H
19975: # include <net/if.h>
19976: #endif
19977:
19978: #if HAVE_NET_IF_VAR_H
19979: # include <net/if_var.h>
19980: #endif
19981:
19982: #if HAVE_SYS_UN_H
19983: # include <sys/un.h>
19984: #endif
19985: #if HAVE_NETINET_IN_SYSTM_H
19986: # include <netinet/in_systm.h>
19987: #endif
19988: #if HAVE_NETINET_IN_VAR_H
19989: # include <netinet/in_var.h>
19990: #endif
19991: #if HAVE_NET_IF_DL_H
19992: # include <net/if_dl.h>
19993: #endif
19994: #if HAVE_NET_NETOPT_H
19995: # include <net/netopt.h>
19996: #endif
19997: #if HAVE_NET_ROUTE_H
19998: # include <net/route.h>
19999: #endif
20000: #if HAVE_INET_ND_H
20001: # include <inet/nd.h>
20002: #endif
20003: #if HAVE_ARPA_INET_H
20004: # include <arpa/inet.h>
20005: #endif
20006: /* Required for IDRP */
20007: #if HAVE_NETINET_IP_ICMP_H
20008: # include <netinet/ip_icmp.h>
20009: #endif
20010:
20011: #if HAVE_NETINET6_IN6_H
20012: #include <netinet6/in6.h>
20013: #endif
20014: #if HAVE_NETINET_IN6_VAR_H
20015: #include <netinet/in6_var.h>
20016: #endif
20017: #if HAVE_NETINET_ICMP6_H
20018: # include <netinet/icmp6.h>
20019: #endif
20020: #if HAVE_NETINET6_IN6_VAR_H
20021: # include <netinet6/in6_var.h>
20022: #endif
20023: #if HAVE_NETINET6_ND6_H
20024: # include <netinet6/nd6.h>
20025: #endif
20026:
20027: "
20028: if test "x$ac_cv_type_struct_icmphdr" = xyes; then :
20029:
20030: cat >>confdefs.h <<_ACEOF
20031: #define HAVE_STRUCT_ICMPHDR 1
20032: _ACEOF
20033:
20034: if test "${enable_irdp}" != "no"; then
20035:
20036: $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
20037:
20038: fi
20039: else
20040: if test "${enable_irdp}" = "yes"; then
20041: as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
20042: fi
20043: fi
20044:
20045: else
20046: if test "${enable_irdp}" = "yes"; then
20047: as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
20048: fi
20049: fi
20050:
20051:
20052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrusage is available" >&5
20053: $as_echo_n "checking whether getrusage is available... " >&6; }
20054: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055: /* end confdefs.h. */
20056: #include <sys/resource.h>
20057:
20058: int
20059: main ()
20060: {
20061: struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
20062: ;
20063: return 0;
20064: }
20065: _ACEOF
20066: if ac_fn_c_try_compile "$LINENO"; then :
20067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20068: $as_echo "yes" >&6; }
20069:
20070: $as_echo "#define HAVE_RUSAGE /**/" >>confdefs.h
20071:
20072: else
20073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20074: $as_echo "no" >&6; }
20075: fi
20076: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077:
20078: ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#ifdef SUNOS_5
20079: #define _XPG4_2
20080: #define __EXTENSIONS__
20081: #endif
20082: #include <stdio.h>
20083: #if STDC_HEADERS
20084: # include <stdlib.h>
20085: # include <stddef.h>
20086: #else
20087: # if HAVE_STDLIB_H
20088: # include <stdlib.h>
20089: # endif
20090: #endif
20091: #if HAVE_SYS_TYPES_H
20092: # include <sys/types.h>
20093: #endif
20094: /* sys/conf.h depends on param.h on FBSD at least */
20095: #if HAVE_SYS_PARAM_H
20096: # include <sys/param.h>
20097: #endif
20098: /* Required for MAXSIG */
20099: #if HAVE_SIGNAL_H
20100: # include <signal.h>
20101: #endif
20102: #if HAVE_SYS_SOCKET_H
20103: # include <sys/socket.h>
20104: #endif
20105: #if HAVE_NETINET_IN_H
20106: # include <netinet/in.h>
20107: #endif
20108: #ifdef TIME_WITH_SYS_TIME
20109: # include <sys/time.h>
20110: # include <time.h>
20111: #else
20112: # ifdef HAVE_SYS_TIME_H
20113: # include <sys/time.h>
20114: # else
20115: # include <time.h>
20116: # endif
20117: #endif /* TIME_WITH_SYS_TIME */
20118:
20119: #if HAVE_NET_IF_H
20120: # include <net/if.h>
20121: #endif
20122:
20123: #if HAVE_NET_IF_VAR_H
20124: # include <net/if_var.h>
20125: #endif
20126:
20127: #if HAVE_SYS_UN_H
20128: # include <sys/un.h>
20129: #endif
20130: #if HAVE_NETINET_IN_SYSTM_H
20131: # include <netinet/in_systm.h>
20132: #endif
20133: #if HAVE_NETINET_IN_VAR_H
20134: # include <netinet/in_var.h>
20135: #endif
20136: #if HAVE_NET_IF_DL_H
20137: # include <net/if_dl.h>
20138: #endif
20139: #if HAVE_NET_NETOPT_H
20140: # include <net/netopt.h>
20141: #endif
20142: #if HAVE_NET_ROUTE_H
20143: # include <net/route.h>
20144: #endif
20145: #if HAVE_INET_ND_H
20146: # include <inet/nd.h>
20147: #endif
20148: #if HAVE_ARPA_INET_H
20149: # include <arpa/inet.h>
20150: #endif
20151: /* Required for IDRP */
20152: #if HAVE_NETINET_IP_ICMP_H
20153: # include <netinet/ip_icmp.h>
20154: #endif
20155:
20156: #if HAVE_NETINET6_IN6_H
20157: #include <netinet6/in6.h>
20158: #endif
20159: #if HAVE_NETINET_IN6_VAR_H
20160: #include <netinet/in6_var.h>
20161: #endif
20162: #if HAVE_NETINET_ICMP6_H
20163: # include <netinet/icmp6.h>
20164: #endif
20165: #if HAVE_NETINET6_IN6_VAR_H
20166: # include <netinet6/in6_var.h>
20167: #endif
20168: #if HAVE_NETINET6_ND6_H
20169: # include <netinet6/nd6.h>
20170: #endif
20171:
20172: "
20173: if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
20174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
20175: $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
20176: if ${ac_cv_lib_rt_clock_gettime+:} false; then :
20177: $as_echo_n "(cached) " >&6
20178: else
20179: ac_check_lib_save_LIBS=$LIBS
20180: LIBS="-lrt $LIBS"
20181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182: /* end confdefs.h. */
20183:
20184: /* Override any GCC internal prototype to avoid an error.
20185: Use char because int might match the return type of a GCC
20186: builtin and then its argument prototype would still apply. */
20187: #ifdef __cplusplus
20188: extern "C"
20189: #endif
20190: char clock_gettime ();
20191: int
20192: main ()
20193: {
20194: return clock_gettime ();
20195: ;
20196: return 0;
20197: }
20198: _ACEOF
20199: if ac_fn_c_try_link "$LINENO"; then :
20200: ac_cv_lib_rt_clock_gettime=yes
20201: else
20202: ac_cv_lib_rt_clock_gettime=no
20203: fi
20204: rm -f core conftest.err conftest.$ac_objext \
20205: conftest$ac_exeext conftest.$ac_ext
20206: LIBS=$ac_check_lib_save_LIBS
20207: fi
20208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
20209: $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
20210: if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
20211: LIBS="$LIBS -lrt"
20212: fi
20213:
20214:
20215: $as_echo "#define HAVE_CLOCK_MONOTONIC /**/" >>confdefs.h
20216:
20217:
20218: else
20219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20220: $as_echo "no" >&6; }
20221: fi
20222:
20223:
20224: if test "${enable_capabilities}" != "no"; then
20225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prctl PR_SET_KEEPCAPS is available" >&5
20226: $as_echo_n "checking whether prctl PR_SET_KEEPCAPS is available... " >&6; }
20227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228: /* end confdefs.h. */
20229: #include <sys/prctl.h>
20230: int
20231: main ()
20232: {
20233: prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
20234: ;
20235: return 0;
20236: }
20237: _ACEOF
20238: if ac_fn_c_try_compile "$LINENO"; then :
20239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20240: $as_echo "yes" >&6; }
20241:
20242: $as_echo "#define HAVE_PR_SET_KEEPCAPS /**/" >>confdefs.h
20243:
20244: quagga_ac_keepcaps="yes"
20245: else
20246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20247: $as_echo "no" >&6; }
20248:
20249: fi
20250: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251: if test x"${quagga_ac_keepcaps}" = x"yes"; then
20252: for ac_header in sys/capability.h
20253: do :
20254: ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
20255: if test "x$ac_cv_header_sys_capability_h" = xyes; then :
20256: cat >>confdefs.h <<_ACEOF
20257: #define HAVE_SYS_CAPABILITY_H 1
20258: _ACEOF
20259:
20260: fi
20261:
20262: done
20263:
20264: fi
20265: if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
20266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
20267: $as_echo_n "checking for cap_init in -lcap... " >&6; }
20268: if ${ac_cv_lib_cap_cap_init+:} false; then :
20269: $as_echo_n "(cached) " >&6
20270: else
20271: ac_check_lib_save_LIBS=$LIBS
20272: LIBS="-lcap $LIBS"
20273: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20274: /* end confdefs.h. */
20275:
20276: /* Override any GCC internal prototype to avoid an error.
20277: Use char because int might match the return type of a GCC
20278: builtin and then its argument prototype would still apply. */
20279: #ifdef __cplusplus
20280: extern "C"
20281: #endif
20282: char cap_init ();
20283: int
20284: main ()
20285: {
20286: return cap_init ();
20287: ;
20288: return 0;
20289: }
20290: _ACEOF
20291: if ac_fn_c_try_link "$LINENO"; then :
20292: ac_cv_lib_cap_cap_init=yes
20293: else
20294: ac_cv_lib_cap_cap_init=no
20295: fi
20296: rm -f core conftest.err conftest.$ac_objext \
20297: conftest$ac_exeext conftest.$ac_ext
20298: LIBS=$ac_check_lib_save_LIBS
20299: fi
20300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
20301: $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
20302: if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
20303:
20304: $as_echo "#define HAVE_LCAPS 1" >>confdefs.h
20305:
20306: LIBCAP="-lcap"
20307: quagga_ac_lcaps="yes"
20308:
20309: fi
20310:
20311: else
20312: for ac_header in priv.h
20313: do :
20314: ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
20315: if test "x$ac_cv_header_priv_h" = xyes; then :
20316: cat >>confdefs.h <<_ACEOF
20317: #define HAVE_PRIV_H 1
20318: _ACEOF
20319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris style privileges are available" >&5
20320: $as_echo_n "checking Solaris style privileges are available... " >&6; }
20321: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322: /* end confdefs.h. */
20323: #include <priv.h>
20324: int
20325: main ()
20326: {
20327: getpflags(PRIV_AWARE);
20328: ;
20329: return 0;
20330: }
20331: _ACEOF
20332: if ac_fn_c_try_compile "$LINENO"; then :
20333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20334: $as_echo "yes" >&6; }
20335:
20336: $as_echo "#define HAVE_SOLARIS_CAPABILITIES 1" >>confdefs.h
20337:
20338: quagga_ac_scaps="yes"
20339: else
20340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20341: $as_echo "no" >&6; }
20342:
20343: fi
20344: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345:
20346:
20347: fi
20348:
20349: done
20350:
20351: fi
20352: if test x"${quagga_ac_scaps}" = x"yes" \
20353: -o x"${quagga_ac_lcaps}" = x"yes"; then
20354:
20355: $as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h
20356:
20357: fi
20358: fi
20359:
20360:
20361: ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
20362: if test "x$ac_cv_header_execinfo_h" = xyes; then :
20363: ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
20364: if test "x$ac_cv_func_backtrace" = xyes; then :
20365:
20366: $as_echo "#define HAVE_GLIBC_BACKTRACE /**/" >>confdefs.h
20367:
20368:
20369: $as_echo "#define HAVE_STACK_TRACE /**/" >>confdefs.h
20370:
20371:
20372: fi
20373:
20374:
20375: fi
20376:
20377:
20378:
20379: ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "#ifdef SUNOS_5
20380: #define _XPG4_2
20381: #define __EXTENSIONS__
20382: #endif
20383: #include <stdio.h>
20384: #if STDC_HEADERS
20385: # include <stdlib.h>
20386: # include <stddef.h>
20387: #else
20388: # if HAVE_STDLIB_H
20389: # include <stdlib.h>
20390: # endif
20391: #endif
20392: #if HAVE_SYS_TYPES_H
20393: # include <sys/types.h>
20394: #endif
20395: /* sys/conf.h depends on param.h on FBSD at least */
20396: #if HAVE_SYS_PARAM_H
20397: # include <sys/param.h>
20398: #endif
20399: /* Required for MAXSIG */
20400: #if HAVE_SIGNAL_H
20401: # include <signal.h>
20402: #endif
20403: #if HAVE_SYS_SOCKET_H
20404: # include <sys/socket.h>
20405: #endif
20406: #if HAVE_NETINET_IN_H
20407: # include <netinet/in.h>
20408: #endif
20409: #ifdef TIME_WITH_SYS_TIME
20410: # include <sys/time.h>
20411: # include <time.h>
20412: #else
20413: # ifdef HAVE_SYS_TIME_H
20414: # include <sys/time.h>
20415: # else
20416: # include <time.h>
20417: # endif
20418: #endif /* TIME_WITH_SYS_TIME */
20419:
20420: #if HAVE_NET_IF_H
20421: # include <net/if.h>
20422: #endif
20423:
20424: #if HAVE_NET_IF_VAR_H
20425: # include <net/if_var.h>
20426: #endif
20427:
20428: #if HAVE_SYS_UN_H
20429: # include <sys/un.h>
20430: #endif
20431: #if HAVE_NETINET_IN_SYSTM_H
20432: # include <netinet/in_systm.h>
20433: #endif
20434: #if HAVE_NETINET_IN_VAR_H
20435: # include <netinet/in_var.h>
20436: #endif
20437: #if HAVE_NET_IF_DL_H
20438: # include <net/if_dl.h>
20439: #endif
20440: #if HAVE_NET_NETOPT_H
20441: # include <net/netopt.h>
20442: #endif
20443: #if HAVE_NET_ROUTE_H
20444: # include <net/route.h>
20445: #endif
20446: #if HAVE_INET_ND_H
20447: # include <inet/nd.h>
20448: #endif
20449: #if HAVE_ARPA_INET_H
20450: # include <arpa/inet.h>
20451: #endif
20452: /* Required for IDRP */
20453: #if HAVE_NETINET_IP_ICMP_H
20454: # include <netinet/ip_icmp.h>
20455: #endif
20456:
20457: #if HAVE_NETINET6_IN6_H
20458: #include <netinet6/in6.h>
20459: #endif
20460: #if HAVE_NETINET_IN6_VAR_H
20461: #include <netinet/in6_var.h>
20462: #endif
20463: #if HAVE_NETINET_ICMP6_H
20464: # include <netinet/icmp6.h>
20465: #endif
20466: #if HAVE_NETINET6_IN6_VAR_H
20467: # include <netinet6/in6_var.h>
20468: #endif
20469: #if HAVE_NETINET6_ND6_H
20470: # include <netinet6/nd6.h>
20471: #endif
20472:
20473: "
20474: if test "x$ac_cv_header_malloc_h" = xyes; then :
20475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallinfo is available" >&5
20476: $as_echo_n "checking whether mallinfo is available... " >&6; }
20477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478: /* end confdefs.h. */
20479: #include <malloc.h>
20480: int
20481: main ()
20482: {
20483: struct mallinfo ac_x; ac_x = mallinfo ();
20484: ;
20485: return 0;
20486: }
20487: _ACEOF
20488: if ac_fn_c_try_link "$LINENO"; then :
20489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20490: $as_echo "yes" >&6; }
20491:
20492: $as_echo "#define HAVE_MALLINFO /**/" >>confdefs.h
20493:
20494: else
20495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20496: $as_echo "no" >&6; }
20497:
20498: fi
20499: rm -f core conftest.err conftest.$ac_objext \
20500: conftest$ac_exeext conftest.$ac_ext
20501:
20502: fi
20503:
20504:
20505:
20506: CONFDATE=`date '+%Y%m%d'`
20507:
20508:
20509: # Check whether --enable-pie was given.
20510: if test "${enable_pie+set}" = set; then :
20511: enableval=$enable_pie;
20512: fi
20513:
20514: if test "$enable_pie" != "no"; then
20515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts PIE flags" >&5
20516: $as_echo_n "checking whether $CC accepts PIE flags... " >&6; }
20517: if ${ap_cv_cc_pie+:} false; then :
20518: $as_echo_n "(cached) " >&6
20519: else
20520:
20521: save_CFLAGS=$CFLAGS
20522: save_LDFLAGS=$LDFLAGS
20523: CFLAGS="$CFLAGS -fPIE"
20524: LDFLAGS="$LDFLAGS -pie"
20525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20526: /* end confdefs.h. */
20527: static int foo[30000]; int main () { return 0; }
20528: _ACEOF
20529: if ac_fn_c_try_link "$LINENO"; then :
20530: ap_cv_cc_pie=yes
20531: else
20532: ap_cv_cc_pie=no
20533:
20534: fi
20535: rm -f core conftest.err conftest.$ac_objext \
20536: conftest$ac_exeext conftest.$ac_ext
20537: CFLAGS=$save_CFLAGS
20538: LDFLAGS=$save_LDFLAGS
20539:
20540: fi
20541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_cc_pie" >&5
20542: $as_echo "$ap_cv_cc_pie" >&6; }
20543: if test "$ap_cv_cc_pie" = "yes"; then
20544: PICFLAGS="-fPIE"
20545: PILDFLAGS="-pie"
20546: fi
20547: fi
20548:
20549:
20550:
20551:
20552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking directory to use for state file" >&5
20553: $as_echo_n "checking directory to use for state file... " >&6; }
20554: if test "${prefix}" = "NONE"; then
20555: quagga_statedir_prefix="";
20556: else
20557: quagga_statedir_prefix=${prefix}
20558: fi
20559: if test "${localstatedir}" = '${prefix}/var'; then
20560: for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run ${quagga_statedir_prefix}/var/adm ${quagga_statedir_prefix}/etc /var/run /var/adm /etc /dev/null;
20561: do
20562: test -d $QUAGGA_STATE_DIR && break
20563: done
20564: quagga_statedir=$QUAGGA_STATE_DIR
20565: else
20566: quagga_statedir=${localstatedir}
20567: fi
20568: if test $quagga_statedir = "/dev/null"; then
20569: as_fn_error $? "'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" "$LINENO" 5
20570: fi
20571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${quagga_statedir}" >&5
20572: $as_echo "${quagga_statedir}" >&6; }
20573:
20574:
20575:
20576: cat >>confdefs.h <<_ACEOF
20577: #define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
20578: _ACEOF
20579:
20580:
20581: cat >>confdefs.h <<_ACEOF
20582: #define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
20583: _ACEOF
20584:
20585:
20586: cat >>confdefs.h <<_ACEOF
20587: #define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
20588: _ACEOF
20589:
20590:
20591: cat >>confdefs.h <<_ACEOF
20592: #define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
20593: _ACEOF
20594:
20595:
20596: cat >>confdefs.h <<_ACEOF
20597: #define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
20598: _ACEOF
20599:
20600:
20601: cat >>confdefs.h <<_ACEOF
20602: #define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
20603: _ACEOF
20604:
20605:
20606: cat >>confdefs.h <<_ACEOF
20607: #define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
20608: _ACEOF
20609:
20610:
20611: cat >>confdefs.h <<_ACEOF
20612: #define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid"
20613: _ACEOF
20614:
20615:
20616: cat >>confdefs.h <<_ACEOF
20617: #define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
20618: _ACEOF
20619:
20620:
20621: cat >>confdefs.h <<_ACEOF
20622: #define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
20623: _ACEOF
20624:
20625:
20626: cat >>confdefs.h <<_ACEOF
20627: #define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
20628: _ACEOF
20629:
20630:
20631: cat >>confdefs.h <<_ACEOF
20632: #define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
20633: _ACEOF
20634:
20635:
20636: cat >>confdefs.h <<_ACEOF
20637: #define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
20638: _ACEOF
20639:
20640:
20641: cat >>confdefs.h <<_ACEOF
20642: #define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
20643: _ACEOF
20644:
20645:
20646: cat >>confdefs.h <<_ACEOF
20647: #define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
20648: _ACEOF
20649:
20650:
20651: cat >>confdefs.h <<_ACEOF
20652: #define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
20653: _ACEOF
20654:
20655:
20656: cat >>confdefs.h <<_ACEOF
20657: #define DAEMON_VTY_DIR "$quagga_statedir"
20658: _ACEOF
20659:
20660:
20661:
20662: $as_echo "#define QUAGGA_NO_DEPRECATED_INTERFACES 1" >>confdefs.h
20663:
20664:
20665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working htonl" >&5
20666: $as_echo_n "checking for working htonl... " >&6; }
20667: if ${ac_cv_htonl_works+:} false; then :
20668: $as_echo_n "(cached) " >&6
20669: else
20670: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671: /* end confdefs.h. */
20672: #ifdef SUNOS_5
20673: #define _XPG4_2
20674: #define __EXTENSIONS__
20675: #endif
20676: #include <stdio.h>
20677: #if STDC_HEADERS
20678: # include <stdlib.h>
20679: # include <stddef.h>
20680: #else
20681: # if HAVE_STDLIB_H
20682: # include <stdlib.h>
20683: # endif
20684: #endif
20685: #if HAVE_SYS_TYPES_H
20686: # include <sys/types.h>
20687: #endif
20688: /* sys/conf.h depends on param.h on FBSD at least */
20689: #if HAVE_SYS_PARAM_H
20690: # include <sys/param.h>
20691: #endif
20692: /* Required for MAXSIG */
20693: #if HAVE_SIGNAL_H
20694: # include <signal.h>
20695: #endif
20696: #if HAVE_SYS_SOCKET_H
20697: # include <sys/socket.h>
20698: #endif
20699: #if HAVE_NETINET_IN_H
20700: # include <netinet/in.h>
20701: #endif
20702: #ifdef TIME_WITH_SYS_TIME
20703: # include <sys/time.h>
20704: # include <time.h>
20705: #else
20706: # ifdef HAVE_SYS_TIME_H
20707: # include <sys/time.h>
20708: # else
20709: # include <time.h>
20710: # endif
20711: #endif /* TIME_WITH_SYS_TIME */
20712:
20713: #if HAVE_NET_IF_H
20714: # include <net/if.h>
20715: #endif
20716:
20717: #if HAVE_NET_IF_VAR_H
20718: # include <net/if_var.h>
20719: #endif
20720:
20721: #if HAVE_SYS_UN_H
20722: # include <sys/un.h>
20723: #endif
20724: #if HAVE_NETINET_IN_SYSTM_H
20725: # include <netinet/in_systm.h>
20726: #endif
20727: #if HAVE_NETINET_IN_VAR_H
20728: # include <netinet/in_var.h>
20729: #endif
20730: #if HAVE_NET_IF_DL_H
20731: # include <net/if_dl.h>
20732: #endif
20733: #if HAVE_NET_NETOPT_H
20734: # include <net/netopt.h>
20735: #endif
20736: #if HAVE_NET_ROUTE_H
20737: # include <net/route.h>
20738: #endif
20739: #if HAVE_INET_ND_H
20740: # include <inet/nd.h>
20741: #endif
20742: #if HAVE_ARPA_INET_H
20743: # include <arpa/inet.h>
20744: #endif
20745: /* Required for IDRP */
20746: #if HAVE_NETINET_IP_ICMP_H
20747: # include <netinet/ip_icmp.h>
20748: #endif
20749:
20750: #if HAVE_NETINET6_IN6_H
20751: #include <netinet6/in6.h>
20752: #endif
20753: #if HAVE_NETINET_IN6_VAR_H
20754: #include <netinet/in6_var.h>
20755: #endif
20756: #if HAVE_NETINET_ICMP6_H
20757: # include <netinet/icmp6.h>
20758: #endif
20759: #if HAVE_NETINET6_IN6_VAR_H
20760: # include <netinet6/in6_var.h>
20761: #endif
20762: #if HAVE_NETINET6_ND6_H
20763: # include <netinet6/nd6.h>
20764: #endif
20765:
20766: int
20767: main ()
20768: {
20769: htonl (0);
20770: ;
20771: return 0;
20772: }
20773: _ACEOF
20774: if ac_fn_c_try_link "$LINENO"; then :
20775: ac_cv_htonl_works=yes
20776: else
20777: ac_cv_htonl_works=no
20778: fi
20779: rm -f core conftest.err conftest.$ac_objext \
20780: conftest$ac_exeext conftest.$ac_ext
20781:
20782:
20783: fi
20784:
20785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_htonl_works" >&5
20786: $as_echo "$ac_cv_htonl_works" >&6; }
20787:
20788: ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile watchquagga/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile tests/Makefile m4/Makefile redhat/Makefile pkgsrc/Makefile redhat/quagga.spec lib/version.h doc/defines.texi isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh"
20789:
20790: ac_config_files="$ac_config_files solaris/Makefile"
20791:
20792:
20793: ac_config_files="$ac_config_files vtysh/extract.pl"
20794:
20795: ## Hack, but working solution to avoid rebuilding of quagga.info.
20796: ## It's already in CVS until texinfo 4.7 is more common.
20797: cat >confcache <<\_ACEOF
20798: # This file is a shell script that caches the results of configure
20799: # tests run on this system so they can be shared between configure
20800: # scripts and configure runs, see configure's option --config-cache.
20801: # It is not useful on other systems. If it contains results you don't
20802: # want to keep, you may remove or edit it.
20803: #
20804: # config.status only pays attention to the cache file if you give it
20805: # the --recheck option to rerun configure.
20806: #
20807: # `ac_cv_env_foo' variables (set or unset) will be overridden when
20808: # loading this file, other *unset* `ac_cv_foo' will be assigned the
20809: # following values.
20810:
20811: _ACEOF
20812:
20813: # The following way of writing the cache mishandles newlines in values,
20814: # but we know of no workaround that is simple, portable, and efficient.
20815: # So, we kill variables containing newlines.
20816: # Ultrix sh set writes to stderr and can't be redirected directly,
20817: # and sets the high bit in the cache file unless we assign to the vars.
20818: (
20819: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20820: eval ac_val=\$$ac_var
20821: case $ac_val in #(
20822: *${as_nl}*)
20823: case $ac_var in #(
20824: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20825: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20826: esac
20827: case $ac_var in #(
20828: _ | IFS | as_nl) ;; #(
20829: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20830: *) { eval $ac_var=; unset $ac_var;} ;;
20831: esac ;;
20832: esac
20833: done
20834:
20835: (set) 2>&1 |
20836: case $as_nl`(ac_space=' '; set) 2>&1` in #(
20837: *${as_nl}ac_space=\ *)
20838: # `set' does not quote correctly, so add quotes: double-quote
20839: # substitution turns \\\\ into \\, and sed turns \\ into \.
20840: sed -n \
20841: "s/'/'\\\\''/g;
20842: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20843: ;; #(
20844: *)
20845: # `set' quotes correctly as required by POSIX, so do not add quotes.
20846: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20847: ;;
20848: esac |
20849: sort
20850: ) |
20851: sed '
20852: /^ac_cv_env_/b end
20853: t clear
20854: :clear
20855: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20856: t end
20857: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20858: :end' >>confcache
20859: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20860: if test -w "$cache_file"; then
20861: if test "x$cache_file" != "x/dev/null"; then
20862: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20863: $as_echo "$as_me: updating cache $cache_file" >&6;}
20864: if test ! -f "$cache_file" || test -h "$cache_file"; then
20865: cat confcache >"$cache_file"
20866: else
20867: case $cache_file in #(
20868: */* | ?:*)
20869: mv -f confcache "$cache_file"$$ &&
20870: mv -f "$cache_file"$$ "$cache_file" ;; #(
20871: *)
20872: mv -f confcache "$cache_file" ;;
20873: esac
20874: fi
20875: fi
20876: else
20877: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20878: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20879: fi
20880: fi
20881: rm -f confcache
20882:
20883: test "x$prefix" = xNONE && prefix=$ac_default_prefix
20884: # Let make expand exec_prefix.
20885: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20886:
20887: DEFS=-DHAVE_CONFIG_H
20888:
20889: ac_libobjs=
20890: ac_ltlibobjs=
20891: U=
20892: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20893: # 1. Remove the extension, and $U if already installed.
20894: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20895: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20896: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20897: # will be set to the directory where LIBOBJS objects are built.
20898: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20899: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20900: done
20901: LIBOBJS=$ac_libobjs
20902:
20903: LTLIBOBJS=$ac_ltlibobjs
20904:
20905:
20906: if test -n "$EXEEXT"; then
20907: am__EXEEXT_TRUE=
20908: am__EXEEXT_FALSE='#'
20909: else
20910: am__EXEEXT_TRUE='#'
20911: am__EXEEXT_FALSE=
20912: fi
20913:
20914: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20915: as_fn_error $? "conditional \"AMDEP\" was never defined.
20916: Usually this means the macro was only invoked conditionally." "$LINENO" 5
20917: fi
20918: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20919: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20920: Usually this means the macro was only invoked conditionally." "$LINENO" 5
20921: fi
20922:
20923:
20924: : "${CONFIG_STATUS=./config.status}"
20925: ac_write_fail=0
20926: ac_clean_files_save=$ac_clean_files
20927: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20928: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20929: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20930: as_write_fail=0
20931: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20932: #! $SHELL
20933: # Generated by $as_me.
20934: # Run this file to recreate the current configuration.
20935: # Compiler output produced by configure, useful for debugging
20936: # configure, is in config.log if it exists.
20937:
20938: debug=false
20939: ac_cs_recheck=false
20940: ac_cs_silent=false
20941:
20942: SHELL=\${CONFIG_SHELL-$SHELL}
20943: export SHELL
20944: _ASEOF
20945: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20946: ## -------------------- ##
20947: ## M4sh Initialization. ##
20948: ## -------------------- ##
20949:
20950: # Be more Bourne compatible
20951: DUALCASE=1; export DUALCASE # for MKS sh
20952: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20953: emulate sh
20954: NULLCMD=:
20955: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20956: # is contrary to our usage. Disable this feature.
20957: alias -g '${1+"$@"}'='"$@"'
20958: setopt NO_GLOB_SUBST
20959: else
20960: case `(set -o) 2>/dev/null` in #(
20961: *posix*) :
20962: set -o posix ;; #(
20963: *) :
20964: ;;
20965: esac
20966: fi
20967:
20968:
20969: as_nl='
20970: '
20971: export as_nl
20972: # Printing a long string crashes Solaris 7 /usr/bin/printf.
20973: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20974: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20975: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20976: # Prefer a ksh shell builtin over an external printf program on Solaris,
20977: # but without wasting forks for bash or zsh.
20978: if test -z "$BASH_VERSION$ZSH_VERSION" \
20979: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20980: as_echo='print -r --'
20981: as_echo_n='print -rn --'
20982: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20983: as_echo='printf %s\n'
20984: as_echo_n='printf %s'
20985: else
20986: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20987: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20988: as_echo_n='/usr/ucb/echo -n'
20989: else
20990: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20991: as_echo_n_body='eval
20992: arg=$1;
20993: case $arg in #(
20994: *"$as_nl"*)
20995: expr "X$arg" : "X\\(.*\\)$as_nl";
20996: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20997: esac;
20998: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20999: '
21000: export as_echo_n_body
21001: as_echo_n='sh -c $as_echo_n_body as_echo'
21002: fi
21003: export as_echo_body
21004: as_echo='sh -c $as_echo_body as_echo'
21005: fi
21006:
21007: # The user is always right.
21008: if test "${PATH_SEPARATOR+set}" != set; then
21009: PATH_SEPARATOR=:
21010: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21011: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21012: PATH_SEPARATOR=';'
21013: }
21014: fi
21015:
21016:
21017: # IFS
21018: # We need space, tab and new line, in precisely that order. Quoting is
21019: # there to prevent editors from complaining about space-tab.
21020: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21021: # splitting by setting IFS to empty value.)
21022: IFS=" "" $as_nl"
21023:
21024: # Find who we are. Look in the path if we contain no directory separator.
21025: as_myself=
21026: case $0 in #((
21027: *[\\/]* ) as_myself=$0 ;;
21028: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21029: for as_dir in $PATH
21030: do
21031: IFS=$as_save_IFS
21032: test -z "$as_dir" && as_dir=.
21033: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21034: done
21035: IFS=$as_save_IFS
21036:
21037: ;;
21038: esac
21039: # We did not find ourselves, most probably we were run as `sh COMMAND'
21040: # in which case we are not to be found in the path.
21041: if test "x$as_myself" = x; then
21042: as_myself=$0
21043: fi
21044: if test ! -f "$as_myself"; then
21045: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21046: exit 1
21047: fi
21048:
21049: # Unset variables that we do not need and which cause bugs (e.g. in
21050: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21051: # suppresses any "Segmentation fault" message there. '((' could
21052: # trigger a bug in pdksh 5.2.14.
21053: for as_var in BASH_ENV ENV MAIL MAILPATH
21054: do eval test x\${$as_var+set} = xset \
21055: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21056: done
21057: PS1='$ '
21058: PS2='> '
21059: PS4='+ '
21060:
21061: # NLS nuisances.
21062: LC_ALL=C
21063: export LC_ALL
21064: LANGUAGE=C
21065: export LANGUAGE
21066:
21067: # CDPATH.
21068: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21069:
21070:
21071: # as_fn_error STATUS ERROR [LINENO LOG_FD]
21072: # ----------------------------------------
21073: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21074: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21075: # script with STATUS, using 1 if that was 0.
21076: as_fn_error ()
21077: {
21078: as_status=$1; test $as_status -eq 0 && as_status=1
21079: if test "$4"; then
21080: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21081: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21082: fi
21083: $as_echo "$as_me: error: $2" >&2
21084: as_fn_exit $as_status
21085: } # as_fn_error
21086:
21087:
21088: # as_fn_set_status STATUS
21089: # -----------------------
21090: # Set $? to STATUS, without forking.
21091: as_fn_set_status ()
21092: {
21093: return $1
21094: } # as_fn_set_status
21095:
21096: # as_fn_exit STATUS
21097: # -----------------
21098: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21099: as_fn_exit ()
21100: {
21101: set +e
21102: as_fn_set_status $1
21103: exit $1
21104: } # as_fn_exit
21105:
21106: # as_fn_unset VAR
21107: # ---------------
21108: # Portably unset VAR.
21109: as_fn_unset ()
21110: {
21111: { eval $1=; unset $1;}
21112: }
21113: as_unset=as_fn_unset
21114: # as_fn_append VAR VALUE
21115: # ----------------------
21116: # Append the text in VALUE to the end of the definition contained in VAR. Take
21117: # advantage of any shell optimizations that allow amortized linear growth over
21118: # repeated appends, instead of the typical quadratic growth present in naive
21119: # implementations.
21120: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21121: eval 'as_fn_append ()
21122: {
21123: eval $1+=\$2
21124: }'
21125: else
21126: as_fn_append ()
21127: {
21128: eval $1=\$$1\$2
21129: }
21130: fi # as_fn_append
21131:
21132: # as_fn_arith ARG...
21133: # ------------------
21134: # Perform arithmetic evaluation on the ARGs, and store the result in the
21135: # global $as_val. Take advantage of shells that can avoid forks. The arguments
21136: # must be portable across $(()) and expr.
21137: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21138: eval 'as_fn_arith ()
21139: {
21140: as_val=$(( $* ))
21141: }'
21142: else
21143: as_fn_arith ()
21144: {
21145: as_val=`expr "$@" || test $? -eq 1`
21146: }
21147: fi # as_fn_arith
21148:
21149:
21150: if expr a : '\(a\)' >/dev/null 2>&1 &&
21151: test "X`expr 00001 : '.*\(...\)'`" = X001; then
21152: as_expr=expr
21153: else
21154: as_expr=false
21155: fi
21156:
21157: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21158: as_basename=basename
21159: else
21160: as_basename=false
21161: fi
21162:
21163: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21164: as_dirname=dirname
21165: else
21166: as_dirname=false
21167: fi
21168:
21169: as_me=`$as_basename -- "$0" ||
21170: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21171: X"$0" : 'X\(//\)$' \| \
21172: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21173: $as_echo X/"$0" |
21174: sed '/^.*\/\([^/][^/]*\)\/*$/{
21175: s//\1/
21176: q
21177: }
21178: /^X\/\(\/\/\)$/{
21179: s//\1/
21180: q
21181: }
21182: /^X\/\(\/\).*/{
21183: s//\1/
21184: q
21185: }
21186: s/.*/./; q'`
21187:
21188: # Avoid depending upon Character Ranges.
21189: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21190: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21191: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21192: as_cr_digits='0123456789'
21193: as_cr_alnum=$as_cr_Letters$as_cr_digits
21194:
21195: ECHO_C= ECHO_N= ECHO_T=
21196: case `echo -n x` in #(((((
21197: -n*)
21198: case `echo 'xy\c'` in
21199: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21200: xy) ECHO_C='\c';;
21201: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21202: ECHO_T=' ';;
21203: esac;;
21204: *)
21205: ECHO_N='-n';;
21206: esac
21207:
21208: rm -f conf$$ conf$$.exe conf$$.file
21209: if test -d conf$$.dir; then
21210: rm -f conf$$.dir/conf$$.file
21211: else
21212: rm -f conf$$.dir
21213: mkdir conf$$.dir 2>/dev/null
21214: fi
21215: if (echo >conf$$.file) 2>/dev/null; then
21216: if ln -s conf$$.file conf$$ 2>/dev/null; then
21217: as_ln_s='ln -s'
21218: # ... but there are two gotchas:
21219: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21220: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21221: # In both cases, we have to default to `cp -p'.
21222: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21223: as_ln_s='cp -p'
21224: elif ln conf$$.file conf$$ 2>/dev/null; then
21225: as_ln_s=ln
21226: else
21227: as_ln_s='cp -p'
21228: fi
21229: else
21230: as_ln_s='cp -p'
21231: fi
21232: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21233: rmdir conf$$.dir 2>/dev/null
21234:
21235:
21236: # as_fn_mkdir_p
21237: # -------------
21238: # Create "$as_dir" as a directory, including parents if necessary.
21239: as_fn_mkdir_p ()
21240: {
21241:
21242: case $as_dir in #(
21243: -*) as_dir=./$as_dir;;
21244: esac
21245: test -d "$as_dir" || eval $as_mkdir_p || {
21246: as_dirs=
21247: while :; do
21248: case $as_dir in #(
21249: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21250: *) as_qdir=$as_dir;;
21251: esac
21252: as_dirs="'$as_qdir' $as_dirs"
21253: as_dir=`$as_dirname -- "$as_dir" ||
21254: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21255: X"$as_dir" : 'X\(//\)[^/]' \| \
21256: X"$as_dir" : 'X\(//\)$' \| \
21257: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21258: $as_echo X"$as_dir" |
21259: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21260: s//\1/
21261: q
21262: }
21263: /^X\(\/\/\)[^/].*/{
21264: s//\1/
21265: q
21266: }
21267: /^X\(\/\/\)$/{
21268: s//\1/
21269: q
21270: }
21271: /^X\(\/\).*/{
21272: s//\1/
21273: q
21274: }
21275: s/.*/./; q'`
21276: test -d "$as_dir" && break
21277: done
21278: test -z "$as_dirs" || eval "mkdir $as_dirs"
21279: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21280:
21281:
21282: } # as_fn_mkdir_p
21283: if mkdir -p . 2>/dev/null; then
21284: as_mkdir_p='mkdir -p "$as_dir"'
21285: else
21286: test -d ./-p && rmdir ./-p
21287: as_mkdir_p=false
21288: fi
21289:
21290: if test -x / >/dev/null 2>&1; then
21291: as_test_x='test -x'
21292: else
21293: if ls -dL / >/dev/null 2>&1; then
21294: as_ls_L_option=L
21295: else
21296: as_ls_L_option=
21297: fi
21298: as_test_x='
21299: eval sh -c '\''
21300: if test -d "$1"; then
21301: test -d "$1/.";
21302: else
21303: case $1 in #(
21304: -*)set "./$1";;
21305: esac;
21306: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21307: ???[sx]*):;;*)false;;esac;fi
21308: '\'' sh
21309: '
21310: fi
21311: as_executable_p=$as_test_x
21312:
21313: # Sed expression to map a string onto a valid CPP name.
21314: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21315:
21316: # Sed expression to map a string onto a valid variable name.
21317: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21318:
21319:
21320: exec 6>&1
21321: ## ----------------------------------- ##
21322: ## Main body of $CONFIG_STATUS script. ##
21323: ## ----------------------------------- ##
21324: _ASEOF
21325: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21326:
21327: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21328: # Save the log message, to keep $0 and so on meaningful, and to
21329: # report actual input values of CONFIG_FILES etc. instead of their
21330: # values after options handling.
21331: ac_log="
21332: This file was extended by Quagga $as_me 0.99.20, which was
21333: generated by GNU Autoconf 2.68. Invocation command line was
21334:
21335: CONFIG_FILES = $CONFIG_FILES
21336: CONFIG_HEADERS = $CONFIG_HEADERS
21337: CONFIG_LINKS = $CONFIG_LINKS
21338: CONFIG_COMMANDS = $CONFIG_COMMANDS
21339: $ $0 $@
21340:
21341: on `(hostname || uname -n) 2>/dev/null | sed 1q`
21342: "
21343:
21344: _ACEOF
21345:
21346: case $ac_config_files in *"
21347: "*) set x $ac_config_files; shift; ac_config_files=$*;;
21348: esac
21349:
21350: case $ac_config_headers in *"
21351: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21352: esac
21353:
21354:
21355: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21356: # Files that config.status was made for.
21357: config_files="$ac_config_files"
21358: config_headers="$ac_config_headers"
21359: config_commands="$ac_config_commands"
21360:
21361: _ACEOF
21362:
21363: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21364: ac_cs_usage="\
21365: \`$as_me' instantiates files and other configuration actions
21366: from templates according to the current configuration. Unless the files
21367: and actions are specified as TAGs, all are instantiated by default.
21368:
21369: Usage: $0 [OPTION]... [TAG]...
21370:
21371: -h, --help print this help, then exit
21372: -V, --version print version number and configuration settings, then exit
21373: --config print configuration, then exit
21374: -q, --quiet, --silent
21375: do not print progress messages
21376: -d, --debug don't remove temporary files
21377: --recheck update $as_me by reconfiguring in the same conditions
21378: --file=FILE[:TEMPLATE]
21379: instantiate the configuration file FILE
21380: --header=FILE[:TEMPLATE]
21381: instantiate the configuration header FILE
21382:
21383: Configuration files:
21384: $config_files
21385:
21386: Configuration headers:
21387: $config_headers
21388:
21389: Configuration commands:
21390: $config_commands
21391:
21392: Report bugs to <https://bugzilla.quagga.net>."
21393:
21394: _ACEOF
21395: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21396: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21397: ac_cs_version="\\
21398: Quagga config.status 0.99.20
21399: configured by $0, generated by GNU Autoconf 2.68,
21400: with options \\"\$ac_cs_config\\"
21401:
21402: Copyright (C) 2010 Free Software Foundation, Inc.
21403: This config.status script is free software; the Free Software Foundation
21404: gives unlimited permission to copy, distribute and modify it."
21405:
21406: ac_pwd='$ac_pwd'
21407: srcdir='$srcdir'
21408: INSTALL='$INSTALL'
21409: MKDIR_P='$MKDIR_P'
21410: AWK='$AWK'
21411: test -n "\$AWK" || AWK=awk
21412: _ACEOF
21413:
21414: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21415: # The default lists apply if the user does not specify any file.
21416: ac_need_defaults=:
21417: while test $# != 0
21418: do
21419: case $1 in
21420: --*=?*)
21421: ac_option=`expr "X$1" : 'X\([^=]*\)='`
21422: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21423: ac_shift=:
21424: ;;
21425: --*=)
21426: ac_option=`expr "X$1" : 'X\([^=]*\)='`
21427: ac_optarg=
21428: ac_shift=:
21429: ;;
21430: *)
21431: ac_option=$1
21432: ac_optarg=$2
21433: ac_shift=shift
21434: ;;
21435: esac
21436:
21437: case $ac_option in
21438: # Handling of the options.
21439: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21440: ac_cs_recheck=: ;;
21441: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21442: $as_echo "$ac_cs_version"; exit ;;
21443: --config | --confi | --conf | --con | --co | --c )
21444: $as_echo "$ac_cs_config"; exit ;;
21445: --debug | --debu | --deb | --de | --d | -d )
21446: debug=: ;;
21447: --file | --fil | --fi | --f )
21448: $ac_shift
21449: case $ac_optarg in
21450: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21451: '') as_fn_error $? "missing file argument" ;;
21452: esac
21453: as_fn_append CONFIG_FILES " '$ac_optarg'"
21454: ac_need_defaults=false;;
21455: --header | --heade | --head | --hea )
21456: $ac_shift
21457: case $ac_optarg in
21458: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21459: esac
21460: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21461: ac_need_defaults=false;;
21462: --he | --h)
21463: # Conflict between --help and --header
21464: as_fn_error $? "ambiguous option: \`$1'
21465: Try \`$0 --help' for more information.";;
21466: --help | --hel | -h )
21467: $as_echo "$ac_cs_usage"; exit ;;
21468: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21469: | -silent | --silent | --silen | --sile | --sil | --si | --s)
21470: ac_cs_silent=: ;;
21471:
21472: # This is an error.
21473: -*) as_fn_error $? "unrecognized option: \`$1'
21474: Try \`$0 --help' for more information." ;;
21475:
21476: *) as_fn_append ac_config_targets " $1"
21477: ac_need_defaults=false ;;
21478:
21479: esac
21480: shift
21481: done
21482:
21483: ac_configure_extra_args=
21484:
21485: if $ac_cs_silent; then
21486: exec 6>/dev/null
21487: ac_configure_extra_args="$ac_configure_extra_args --silent"
21488: fi
21489:
21490: _ACEOF
21491: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21492: if \$ac_cs_recheck; then
21493: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21494: shift
21495: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21496: CONFIG_SHELL='$SHELL'
21497: export CONFIG_SHELL
21498: exec "\$@"
21499: fi
21500:
21501: _ACEOF
21502: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21503: exec 5>>config.log
21504: {
21505: echo
21506: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21507: ## Running $as_me. ##
21508: _ASBOX
21509: $as_echo "$ac_log"
21510: } >&5
21511:
21512: _ACEOF
21513: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21514: #
21515: # INIT-COMMANDS
21516: #
21517: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21518:
21519:
21520: # The HP-UX ksh and POSIX shell print the target directory to stdout
21521: # if CDPATH is set.
21522: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21523:
21524: sed_quote_subst='$sed_quote_subst'
21525: double_quote_subst='$double_quote_subst'
21526: delay_variable_subst='$delay_variable_subst'
21527: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21528: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21529: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21530: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21531: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21532: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21533: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21534: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21535: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21536: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21537: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21538: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21539: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21540: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21541: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21542: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21543: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21544: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21545: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21546: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21547: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21548: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21549: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21550: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21551: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21552: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21553: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21554: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21555: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21556: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21557: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21558: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21559: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21560: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21561: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21562: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21563: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21564: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21565: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21566: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21567: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21568: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21569: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21570: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21571: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21572: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21573: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21574: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21575: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21576: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21577: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21578: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21579: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21580: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21581: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21582: 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"`'
21583: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21584: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21585: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21586: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21587: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21588: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21589: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21590: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21591: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21592: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21593: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21594: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21595: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21596: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21597: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21598: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21599: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21600: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21601: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21602: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21603: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21604: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21605: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21606: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21607: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21608: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21609: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21610: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21611: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21612: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21613: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21614: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21615: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21616: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21617: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21618: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21619: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21620: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21621: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21622: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21623: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21624: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21625: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21626: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21627: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21628: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21629: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21630: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21631: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21632: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21633: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21634: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21635: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21636: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21637: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21638: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21639: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21640: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21641: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21642: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21643: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21644: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21645: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21646: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21647: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21648: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21649: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21650: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21651: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21652: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21653: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21654: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21655: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21656: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21657:
21658: LTCC='$LTCC'
21659: LTCFLAGS='$LTCFLAGS'
21660: compiler='$compiler_DEFAULT'
21661:
21662: # A function that is used when there is no print builtin or printf.
21663: func_fallback_echo ()
21664: {
21665: eval 'cat <<_LTECHO_EOF
21666: \$1
21667: _LTECHO_EOF'
21668: }
21669:
21670: # Quote evaled strings.
21671: for var in SHELL \
21672: ECHO \
21673: SED \
21674: GREP \
21675: EGREP \
21676: FGREP \
21677: LD \
21678: NM \
21679: LN_S \
21680: lt_SP2NL \
21681: lt_NL2SP \
21682: reload_flag \
21683: OBJDUMP \
21684: deplibs_check_method \
21685: file_magic_cmd \
21686: file_magic_glob \
21687: want_nocaseglob \
21688: DLLTOOL \
21689: sharedlib_from_linklib_cmd \
21690: AR \
21691: AR_FLAGS \
21692: archiver_list_spec \
21693: STRIP \
21694: RANLIB \
21695: CC \
21696: CFLAGS \
21697: compiler \
21698: lt_cv_sys_global_symbol_pipe \
21699: lt_cv_sys_global_symbol_to_cdecl \
21700: lt_cv_sys_global_symbol_to_c_name_address \
21701: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21702: nm_file_list_spec \
21703: lt_prog_compiler_no_builtin_flag \
21704: lt_prog_compiler_pic \
21705: lt_prog_compiler_wl \
21706: lt_prog_compiler_static \
21707: lt_cv_prog_compiler_c_o \
21708: need_locks \
21709: MANIFEST_TOOL \
21710: DSYMUTIL \
21711: NMEDIT \
21712: LIPO \
21713: OTOOL \
21714: OTOOL64 \
21715: shrext_cmds \
21716: export_dynamic_flag_spec \
21717: whole_archive_flag_spec \
21718: compiler_needs_object \
21719: with_gnu_ld \
21720: allow_undefined_flag \
21721: no_undefined_flag \
21722: hardcode_libdir_flag_spec \
21723: hardcode_libdir_flag_spec_ld \
21724: hardcode_libdir_separator \
21725: exclude_expsyms \
21726: include_expsyms \
21727: file_list_spec \
21728: variables_saved_for_relink \
21729: libname_spec \
21730: library_names_spec \
21731: soname_spec \
21732: install_override_mode \
21733: finish_eval \
21734: old_striplib \
21735: striplib; do
21736: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21737: *[\\\\\\\`\\"\\\$]*)
21738: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21739: ;;
21740: *)
21741: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21742: ;;
21743: esac
21744: done
21745:
21746: # Double-quote double-evaled strings.
21747: for var in reload_cmds \
21748: old_postinstall_cmds \
21749: old_postuninstall_cmds \
21750: old_archive_cmds \
21751: extract_expsyms_cmds \
21752: old_archive_from_new_cmds \
21753: old_archive_from_expsyms_cmds \
21754: archive_cmds \
21755: archive_expsym_cmds \
21756: module_cmds \
21757: module_expsym_cmds \
21758: export_symbols_cmds \
21759: prelink_cmds \
21760: postlink_cmds \
21761: postinstall_cmds \
21762: postuninstall_cmds \
21763: finish_cmds \
21764: sys_lib_search_path_spec \
21765: sys_lib_dlsearch_path_spec; do
21766: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21767: *[\\\\\\\`\\"\\\$]*)
21768: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21769: ;;
21770: *)
21771: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21772: ;;
21773: esac
21774: done
21775:
21776: ac_aux_dir='$ac_aux_dir'
21777: xsi_shell='$xsi_shell'
21778: lt_shell_append='$lt_shell_append'
21779:
21780: # See if we are running on zsh, and set the options which allow our
21781: # commands through without removal of \ escapes INIT.
21782: if test -n "\${ZSH_VERSION+set}" ; then
21783: setopt NO_GLOB_SUBST
21784: fi
21785:
21786:
21787: PACKAGE='$PACKAGE'
21788: VERSION='$VERSION'
21789: TIMESTAMP='$TIMESTAMP'
21790: RM='$RM'
21791: ofile='$ofile'
21792:
21793:
21794:
21795:
21796: _ACEOF
21797:
21798: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21799:
21800: # Handling of arguments.
21801: for ac_config_target in $ac_config_targets
21802: do
21803: case $ac_config_target in
21804: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21805: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21806: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21807: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21808: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21809: "zebra/Makefile") CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
21810: "ripd/Makefile") CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
21811: "ripngd/Makefile") CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
21812: "bgpd/Makefile") CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
21813: "ospfd/Makefile") CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
21814: "watchquagga/Makefile") CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;;
21815: "ospf6d/Makefile") CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
21816: "isisd/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
21817: "vtysh/Makefile") CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
21818: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21819: "ospfclient/Makefile") CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
21820: "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21821: "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21822: "redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
21823: "pkgsrc/Makefile") CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;;
21824: "redhat/quagga.spec") CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
21825: "lib/version.h") CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
21826: "doc/defines.texi") CONFIG_FILES="$CONFIG_FILES doc/defines.texi" ;;
21827: "isisd/topology/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;;
21828: "pkgsrc/bgpd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;;
21829: "pkgsrc/ospf6d.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;;
21830: "pkgsrc/ospfd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;;
21831: "pkgsrc/ripd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;;
21832: "pkgsrc/ripngd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;;
21833: "pkgsrc/zebra.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;;
21834: "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
21835: "vtysh/extract.pl") CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;;
21836:
21837: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21838: esac
21839: done
21840:
21841:
21842: # If the user did not use the arguments to specify the items to instantiate,
21843: # then the envvar interface is used. Set only those that are not.
21844: # We use the long form for the default assignment because of an extremely
21845: # bizarre bug on SunOS 4.1.3.
21846: if $ac_need_defaults; then
21847: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21848: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21849: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21850: fi
21851:
21852: # Have a temporary directory for convenience. Make it in the build tree
21853: # simply because there is no reason against having it here, and in addition,
21854: # creating and moving files from /tmp can sometimes cause problems.
21855: # Hook for its removal unless debugging.
21856: # Note that there is a small window in which the directory will not be cleaned:
21857: # after its creation but before its name has been assigned to `$tmp'.
21858: $debug ||
21859: {
21860: tmp= ac_tmp=
21861: trap 'exit_status=$?
21862: : "${ac_tmp:=$tmp}"
21863: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21864: ' 0
21865: trap 'as_fn_exit 1' 1 2 13 15
21866: }
21867: # Create a (secure) tmp directory for tmp files.
21868:
21869: {
21870: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21871: test -d "$tmp"
21872: } ||
21873: {
21874: tmp=./conf$$-$RANDOM
21875: (umask 077 && mkdir "$tmp")
21876: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21877: ac_tmp=$tmp
21878:
21879: # Set up the scripts for CONFIG_FILES section.
21880: # No need to generate them if there are no CONFIG_FILES.
21881: # This happens for instance with `./config.status config.h'.
21882: if test -n "$CONFIG_FILES"; then
21883:
21884:
21885: ac_cr=`echo X | tr X '\015'`
21886: # On cygwin, bash can eat \r inside `` if the user requested igncr.
21887: # But we know of no other shell where ac_cr would be empty at this
21888: # point, so we can use a bashism as a fallback.
21889: if test "x$ac_cr" = x; then
21890: eval ac_cr=\$\'\\r\'
21891: fi
21892: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21893: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21894: ac_cs_awk_cr='\\r'
21895: else
21896: ac_cs_awk_cr=$ac_cr
21897: fi
21898:
21899: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21900: _ACEOF
21901:
21902:
21903: {
21904: echo "cat >conf$$subs.awk <<_ACEOF" &&
21905: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21906: echo "_ACEOF"
21907: } >conf$$subs.sh ||
21908: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21909: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21910: ac_delim='%!_!# '
21911: for ac_last_try in false false false false false :; do
21912: . ./conf$$subs.sh ||
21913: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21914:
21915: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21916: if test $ac_delim_n = $ac_delim_num; then
21917: break
21918: elif $ac_last_try; then
21919: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21920: else
21921: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21922: fi
21923: done
21924: rm -f conf$$subs.sh
21925:
21926: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21927: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21928: _ACEOF
21929: sed -n '
21930: h
21931: s/^/S["/; s/!.*/"]=/
21932: p
21933: g
21934: s/^[^!]*!//
21935: :repl
21936: t repl
21937: s/'"$ac_delim"'$//
21938: t delim
21939: :nl
21940: h
21941: s/\(.\{148\}\)..*/\1/
21942: t more1
21943: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21944: p
21945: n
21946: b repl
21947: :more1
21948: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21949: p
21950: g
21951: s/.\{148\}//
21952: t nl
21953: :delim
21954: h
21955: s/\(.\{148\}\)..*/\1/
21956: t more2
21957: s/["\\]/\\&/g; s/^/"/; s/$/"/
21958: p
21959: b
21960: :more2
21961: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21962: p
21963: g
21964: s/.\{148\}//
21965: t delim
21966: ' <conf$$subs.awk | sed '
21967: /^[^""]/{
21968: N
21969: s/\n//
21970: }
21971: ' >>$CONFIG_STATUS || ac_write_fail=1
21972: rm -f conf$$subs.awk
21973: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21974: _ACAWK
21975: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21976: for (key in S) S_is_set[key] = 1
21977: FS = ""
21978:
21979: }
21980: {
21981: line = $ 0
21982: nfields = split(line, field, "@")
21983: substed = 0
21984: len = length(field[1])
21985: for (i = 2; i < nfields; i++) {
21986: key = field[i]
21987: keylen = length(key)
21988: if (S_is_set[key]) {
21989: value = S[key]
21990: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21991: len += length(value) + length(field[++i])
21992: substed = 1
21993: } else
21994: len += 1 + keylen
21995: }
21996:
21997: print line
21998: }
21999:
22000: _ACAWK
22001: _ACEOF
22002: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22003: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22004: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22005: else
22006: cat
22007: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22008: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22009: _ACEOF
22010:
22011: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22012: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22013: # trailing colons and then remove the whole line if VPATH becomes empty
22014: # (actually we leave an empty line to preserve line numbers).
22015: if test "x$srcdir" = x.; then
22016: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22017: h
22018: s///
22019: s/^/:/
22020: s/[ ]*$/:/
22021: s/:\$(srcdir):/:/g
22022: s/:\${srcdir}:/:/g
22023: s/:@srcdir@:/:/g
22024: s/^:*//
22025: s/:*$//
22026: x
22027: s/\(=[ ]*\).*/\1/
22028: G
22029: s/\n//
22030: s/^[^=]*=[ ]*$//
22031: }'
22032: fi
22033:
22034: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22035: fi # test -n "$CONFIG_FILES"
22036:
22037: # Set up the scripts for CONFIG_HEADERS section.
22038: # No need to generate them if there are no CONFIG_HEADERS.
22039: # This happens for instance with `./config.status Makefile'.
22040: if test -n "$CONFIG_HEADERS"; then
22041: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22042: BEGIN {
22043: _ACEOF
22044:
22045: # Transform confdefs.h into an awk script `defines.awk', embedded as
22046: # here-document in config.status, that substitutes the proper values into
22047: # config.h.in to produce config.h.
22048:
22049: # Create a delimiter string that does not exist in confdefs.h, to ease
22050: # handling of long lines.
22051: ac_delim='%!_!# '
22052: for ac_last_try in false false :; do
22053: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22054: if test -z "$ac_tt"; then
22055: break
22056: elif $ac_last_try; then
22057: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22058: else
22059: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22060: fi
22061: done
22062:
22063: # For the awk script, D is an array of macro values keyed by name,
22064: # likewise P contains macro parameters if any. Preserve backslash
22065: # newline sequences.
22066:
22067: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22068: sed -n '
22069: s/.\{148\}/&'"$ac_delim"'/g
22070: t rset
22071: :rset
22072: s/^[ ]*#[ ]*define[ ][ ]*/ /
22073: t def
22074: d
22075: :def
22076: s/\\$//
22077: t bsnl
22078: s/["\\]/\\&/g
22079: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22080: D["\1"]=" \3"/p
22081: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22082: d
22083: :bsnl
22084: s/["\\]/\\&/g
22085: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22086: D["\1"]=" \3\\\\\\n"\\/p
22087: t cont
22088: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22089: t cont
22090: d
22091: :cont
22092: n
22093: s/.\{148\}/&'"$ac_delim"'/g
22094: t clear
22095: :clear
22096: s/\\$//
22097: t bsnlc
22098: s/["\\]/\\&/g; s/^/"/; s/$/"/p
22099: d
22100: :bsnlc
22101: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22102: b cont
22103: ' <confdefs.h | sed '
22104: s/'"$ac_delim"'/"\\\
22105: "/g' >>$CONFIG_STATUS || ac_write_fail=1
22106:
22107: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22108: for (key in D) D_is_set[key] = 1
22109: FS = ""
22110: }
22111: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22112: line = \$ 0
22113: split(line, arg, " ")
22114: if (arg[1] == "#") {
22115: defundef = arg[2]
22116: mac1 = arg[3]
22117: } else {
22118: defundef = substr(arg[1], 2)
22119: mac1 = arg[2]
22120: }
22121: split(mac1, mac2, "(") #)
22122: macro = mac2[1]
22123: prefix = substr(line, 1, index(line, defundef) - 1)
22124: if (D_is_set[macro]) {
22125: # Preserve the white space surrounding the "#".
22126: print prefix "define", macro P[macro] D[macro]
22127: next
22128: } else {
22129: # Replace #undef with comments. This is necessary, for example,
22130: # in the case of _POSIX_SOURCE, which is predefined and required
22131: # on some systems where configure will not decide to define it.
22132: if (defundef == "undef") {
22133: print "/*", prefix defundef, macro, "*/"
22134: next
22135: }
22136: }
22137: }
22138: { print }
22139: _ACAWK
22140: _ACEOF
22141: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22142: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22143: fi # test -n "$CONFIG_HEADERS"
22144:
22145:
22146: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22147: shift
22148: for ac_tag
22149: do
22150: case $ac_tag in
22151: :[FHLC]) ac_mode=$ac_tag; continue;;
22152: esac
22153: case $ac_mode$ac_tag in
22154: :[FHL]*:*);;
22155: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22156: :[FH]-) ac_tag=-:-;;
22157: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22158: esac
22159: ac_save_IFS=$IFS
22160: IFS=:
22161: set x $ac_tag
22162: IFS=$ac_save_IFS
22163: shift
22164: ac_file=$1
22165: shift
22166:
22167: case $ac_mode in
22168: :L) ac_source=$1;;
22169: :[FH])
22170: ac_file_inputs=
22171: for ac_f
22172: do
22173: case $ac_f in
22174: -) ac_f="$ac_tmp/stdin";;
22175: *) # Look for the file first in the build tree, then in the source tree
22176: # (if the path is not absolute). The absolute path cannot be DOS-style,
22177: # because $ac_f cannot contain `:'.
22178: test -f "$ac_f" ||
22179: case $ac_f in
22180: [\\/$]*) false;;
22181: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22182: esac ||
22183: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22184: esac
22185: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22186: as_fn_append ac_file_inputs " '$ac_f'"
22187: done
22188:
22189: # Let's still pretend it is `configure' which instantiates (i.e., don't
22190: # use $as_me), people would be surprised to read:
22191: # /* config.h. Generated by config.status. */
22192: configure_input='Generated from '`
22193: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22194: `' by configure.'
22195: if test x"$ac_file" != x-; then
22196: configure_input="$ac_file. $configure_input"
22197: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22198: $as_echo "$as_me: creating $ac_file" >&6;}
22199: fi
22200: # Neutralize special characters interpreted by sed in replacement strings.
22201: case $configure_input in #(
22202: *\&* | *\|* | *\\* )
22203: ac_sed_conf_input=`$as_echo "$configure_input" |
22204: sed 's/[\\\\&|]/\\\\&/g'`;; #(
22205: *) ac_sed_conf_input=$configure_input;;
22206: esac
22207:
22208: case $ac_tag in
22209: *:-:* | *:-) cat >"$ac_tmp/stdin" \
22210: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22211: esac
22212: ;;
22213: esac
22214:
22215: ac_dir=`$as_dirname -- "$ac_file" ||
22216: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22217: X"$ac_file" : 'X\(//\)[^/]' \| \
22218: X"$ac_file" : 'X\(//\)$' \| \
22219: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22220: $as_echo X"$ac_file" |
22221: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22222: s//\1/
22223: q
22224: }
22225: /^X\(\/\/\)[^/].*/{
22226: s//\1/
22227: q
22228: }
22229: /^X\(\/\/\)$/{
22230: s//\1/
22231: q
22232: }
22233: /^X\(\/\).*/{
22234: s//\1/
22235: q
22236: }
22237: s/.*/./; q'`
22238: as_dir="$ac_dir"; as_fn_mkdir_p
22239: ac_builddir=.
22240:
22241: case "$ac_dir" in
22242: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22243: *)
22244: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22245: # A ".." for each directory in $ac_dir_suffix.
22246: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22247: case $ac_top_builddir_sub in
22248: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22250: esac ;;
22251: esac
22252: ac_abs_top_builddir=$ac_pwd
22253: ac_abs_builddir=$ac_pwd$ac_dir_suffix
22254: # for backward compatibility:
22255: ac_top_builddir=$ac_top_build_prefix
22256:
22257: case $srcdir in
22258: .) # We are building in place.
22259: ac_srcdir=.
22260: ac_top_srcdir=$ac_top_builddir_sub
22261: ac_abs_top_srcdir=$ac_pwd ;;
22262: [\\/]* | ?:[\\/]* ) # Absolute name.
22263: ac_srcdir=$srcdir$ac_dir_suffix;
22264: ac_top_srcdir=$srcdir
22265: ac_abs_top_srcdir=$srcdir ;;
22266: *) # Relative name.
22267: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22268: ac_top_srcdir=$ac_top_build_prefix$srcdir
22269: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22270: esac
22271: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22272:
22273:
22274: case $ac_mode in
22275: :F)
22276: #
22277: # CONFIG_FILE
22278: #
22279:
22280: case $INSTALL in
22281: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22282: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22283: esac
22284: ac_MKDIR_P=$MKDIR_P
22285: case $MKDIR_P in
22286: [\\/$]* | ?:[\\/]* ) ;;
22287: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22288: esac
22289: _ACEOF
22290:
22291: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22292: # If the template does not know about datarootdir, expand it.
22293: # FIXME: This hack should be removed a few years after 2.60.
22294: ac_datarootdir_hack=; ac_datarootdir_seen=
22295: ac_sed_dataroot='
22296: /datarootdir/ {
22297: p
22298: q
22299: }
22300: /@datadir@/p
22301: /@docdir@/p
22302: /@infodir@/p
22303: /@localedir@/p
22304: /@mandir@/p'
22305: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22306: *datarootdir*) ac_datarootdir_seen=yes;;
22307: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22308: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22309: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22310: _ACEOF
22311: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22312: ac_datarootdir_hack='
22313: s&@datadir@&$datadir&g
22314: s&@docdir@&$docdir&g
22315: s&@infodir@&$infodir&g
22316: s&@localedir@&$localedir&g
22317: s&@mandir@&$mandir&g
22318: s&\\\${datarootdir}&$datarootdir&g' ;;
22319: esac
22320: _ACEOF
22321:
22322: # Neutralize VPATH when `$srcdir' = `.'.
22323: # Shell code in configure.ac might set extrasub.
22324: # FIXME: do we really want to maintain this feature?
22325: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22326: ac_sed_extra="$ac_vpsub
22327: $extrasub
22328: _ACEOF
22329: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22330: :t
22331: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22332: s|@configure_input@|$ac_sed_conf_input|;t t
22333: s&@top_builddir@&$ac_top_builddir_sub&;t t
22334: s&@top_build_prefix@&$ac_top_build_prefix&;t t
22335: s&@srcdir@&$ac_srcdir&;t t
22336: s&@abs_srcdir@&$ac_abs_srcdir&;t t
22337: s&@top_srcdir@&$ac_top_srcdir&;t t
22338: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22339: s&@builddir@&$ac_builddir&;t t
22340: s&@abs_builddir@&$ac_abs_builddir&;t t
22341: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22342: s&@INSTALL@&$ac_INSTALL&;t t
22343: s&@MKDIR_P@&$ac_MKDIR_P&;t t
22344: $ac_datarootdir_hack
22345: "
22346: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22347: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22348:
22349: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22350: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22351: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22352: "$ac_tmp/out"`; test -z "$ac_out"; } &&
22353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354: which seems to be undefined. Please make sure it is defined" >&5
22355: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22356: which seems to be undefined. Please make sure it is defined" >&2;}
22357:
22358: rm -f "$ac_tmp/stdin"
22359: case $ac_file in
22360: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22361: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22362: esac \
22363: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22364: ;;
22365: :H)
22366: #
22367: # CONFIG_HEADER
22368: #
22369: if test x"$ac_file" != x-; then
22370: {
22371: $as_echo "/* $configure_input */" \
22372: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22373: } >"$ac_tmp/config.h" \
22374: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22375: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22376: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22377: $as_echo "$as_me: $ac_file is unchanged" >&6;}
22378: else
22379: rm -f "$ac_file"
22380: mv "$ac_tmp/config.h" "$ac_file" \
22381: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22382: fi
22383: else
22384: $as_echo "/* $configure_input */" \
22385: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22386: || as_fn_error $? "could not create -" "$LINENO" 5
22387: fi
22388: # Compute "$ac_file"'s index in $config_headers.
22389: _am_arg="$ac_file"
22390: _am_stamp_count=1
22391: for _am_header in $config_headers :; do
22392: case $_am_header in
22393: $_am_arg | $_am_arg:* )
22394: break ;;
22395: * )
22396: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22397: esac
22398: done
22399: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22400: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22401: X"$_am_arg" : 'X\(//\)[^/]' \| \
22402: X"$_am_arg" : 'X\(//\)$' \| \
22403: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22404: $as_echo X"$_am_arg" |
22405: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22406: s//\1/
22407: q
22408: }
22409: /^X\(\/\/\)[^/].*/{
22410: s//\1/
22411: q
22412: }
22413: /^X\(\/\/\)$/{
22414: s//\1/
22415: q
22416: }
22417: /^X\(\/\).*/{
22418: s//\1/
22419: q
22420: }
22421: s/.*/./; q'`/stamp-h$_am_stamp_count
22422: ;;
22423:
22424: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22425: $as_echo "$as_me: executing $ac_file commands" >&6;}
22426: ;;
22427: esac
22428:
22429:
22430: case $ac_file$ac_mode in
22431: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22432: # Autoconf 2.62 quotes --file arguments for eval, but not when files
22433: # are listed without --file. Let's play safe and only enable the eval
22434: # if we detect the quoting.
22435: case $CONFIG_FILES in
22436: *\'*) eval set x "$CONFIG_FILES" ;;
22437: *) set x $CONFIG_FILES ;;
22438: esac
22439: shift
22440: for mf
22441: do
22442: # Strip MF so we end up with the name of the file.
22443: mf=`echo "$mf" | sed -e 's/:.*$//'`
22444: # Check whether this is an Automake generated Makefile or not.
22445: # We used to match only the files named `Makefile.in', but
22446: # some people rename them; so instead we look at the file content.
22447: # Grep'ing the first line is not enough: some people post-process
22448: # each Makefile.in and add a new line on top of each file to say so.
22449: # Grep'ing the whole file is not good either: AIX grep has a line
22450: # limit of 2048, but all sed's we know have understand at least 4000.
22451: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22452: dirpart=`$as_dirname -- "$mf" ||
22453: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22454: X"$mf" : 'X\(//\)[^/]' \| \
22455: X"$mf" : 'X\(//\)$' \| \
22456: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22457: $as_echo X"$mf" |
22458: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22459: s//\1/
22460: q
22461: }
22462: /^X\(\/\/\)[^/].*/{
22463: s//\1/
22464: q
22465: }
22466: /^X\(\/\/\)$/{
22467: s//\1/
22468: q
22469: }
22470: /^X\(\/\).*/{
22471: s//\1/
22472: q
22473: }
22474: s/.*/./; q'`
22475: else
22476: continue
22477: fi
22478: # Extract the definition of DEPDIR, am__include, and am__quote
22479: # from the Makefile without running `make'.
22480: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22481: test -z "$DEPDIR" && continue
22482: am__include=`sed -n 's/^am__include = //p' < "$mf"`
22483: test -z "am__include" && continue
22484: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22485: # When using ansi2knr, U may be empty or an underscore; expand it
22486: U=`sed -n 's/^U = //p' < "$mf"`
22487: # Find all dependency output files, they are included files with
22488: # $(DEPDIR) in their names. We invoke sed twice because it is the
22489: # simplest approach to changing $(DEPDIR) to its actual value in the
22490: # expansion.
22491: for file in `sed -n "
22492: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22493: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22494: # Make sure the directory exists.
22495: test -f "$dirpart/$file" && continue
22496: fdir=`$as_dirname -- "$file" ||
22497: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22498: X"$file" : 'X\(//\)[^/]' \| \
22499: X"$file" : 'X\(//\)$' \| \
22500: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22501: $as_echo X"$file" |
22502: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22503: s//\1/
22504: q
22505: }
22506: /^X\(\/\/\)[^/].*/{
22507: s//\1/
22508: q
22509: }
22510: /^X\(\/\/\)$/{
22511: s//\1/
22512: q
22513: }
22514: /^X\(\/\).*/{
22515: s//\1/
22516: q
22517: }
22518: s/.*/./; q'`
22519: as_dir=$dirpart/$fdir; as_fn_mkdir_p
22520: # echo "creating $dirpart/$file"
22521: echo '# dummy' > "$dirpart/$file"
22522: done
22523: done
22524: }
22525: ;;
22526: "libtool":C)
22527:
22528: # See if we are running on zsh, and set the options which allow our
22529: # commands through without removal of \ escapes.
22530: if test -n "${ZSH_VERSION+set}" ; then
22531: setopt NO_GLOB_SUBST
22532: fi
22533:
22534: cfgfile="${ofile}T"
22535: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22536: $RM "$cfgfile"
22537:
22538: cat <<_LT_EOF >> "$cfgfile"
22539: #! $SHELL
22540:
22541: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22542: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22543: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22544: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22545: #
22546: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22547: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
22548: # Inc.
22549: # Written by Gordon Matzigkeit, 1996
22550: #
22551: # This file is part of GNU Libtool.
22552: #
22553: # GNU Libtool is free software; you can redistribute it and/or
22554: # modify it under the terms of the GNU General Public License as
22555: # published by the Free Software Foundation; either version 2 of
22556: # the License, or (at your option) any later version.
22557: #
22558: # As a special exception to the GNU General Public License,
22559: # if you distribute this file as part of a program or library that
22560: # is built using GNU Libtool, you may include this file under the
22561: # same distribution terms that you use for the rest of that program.
22562: #
22563: # GNU Libtool is distributed in the hope that it will be useful,
22564: # but WITHOUT ANY WARRANTY; without even the implied warranty of
22565: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22566: # GNU General Public License for more details.
22567: #
22568: # You should have received a copy of the GNU General Public License
22569: # along with GNU Libtool; see the file COPYING. If not, a copy
22570: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22571: # obtained by writing to the Free Software Foundation, Inc.,
22572: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22573:
22574:
22575: # The names of the tagged configurations supported by this script.
22576: available_tags=""
22577:
22578: # ### BEGIN LIBTOOL CONFIG
22579:
22580: # Which release of libtool.m4 was used?
22581: macro_version=$macro_version
22582: macro_revision=$macro_revision
22583:
22584: # Whether or not to build shared libraries.
22585: build_libtool_libs=$enable_shared
22586:
22587: # Whether or not to build static libraries.
22588: build_old_libs=$enable_static
22589:
22590: # What type of objects to build.
22591: pic_mode=$pic_mode
22592:
22593: # Whether or not to optimize for fast installation.
22594: fast_install=$enable_fast_install
22595:
22596: # Shell to use when invoking shell scripts.
22597: SHELL=$lt_SHELL
22598:
22599: # An echo program that protects backslashes.
22600: ECHO=$lt_ECHO
22601:
22602: # The host system.
22603: host_alias=$host_alias
22604: host=$host
22605: host_os=$host_os
22606:
22607: # The build system.
22608: build_alias=$build_alias
22609: build=$build
22610: build_os=$build_os
22611:
22612: # A sed program that does not truncate output.
22613: SED=$lt_SED
22614:
22615: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22616: Xsed="\$SED -e 1s/^X//"
22617:
22618: # A grep program that handles long lines.
22619: GREP=$lt_GREP
22620:
22621: # An ERE matcher.
22622: EGREP=$lt_EGREP
22623:
22624: # A literal string matcher.
22625: FGREP=$lt_FGREP
22626:
22627: # A BSD- or MS-compatible name lister.
22628: NM=$lt_NM
22629:
22630: # Whether we need soft or hard links.
22631: LN_S=$lt_LN_S
22632:
22633: # What is the maximum length of a command?
22634: max_cmd_len=$max_cmd_len
22635:
22636: # Object file suffix (normally "o").
22637: objext=$ac_objext
22638:
22639: # Executable file suffix (normally "").
22640: exeext=$exeext
22641:
22642: # whether the shell understands "unset".
22643: lt_unset=$lt_unset
22644:
22645: # turn spaces into newlines.
22646: SP2NL=$lt_lt_SP2NL
22647:
22648: # turn newlines into spaces.
22649: NL2SP=$lt_lt_NL2SP
22650:
22651: # convert \$build file names to \$host format.
22652: to_host_file_cmd=$lt_cv_to_host_file_cmd
22653:
22654: # convert \$build files to toolchain format.
22655: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22656:
22657: # An object symbol dumper.
22658: OBJDUMP=$lt_OBJDUMP
22659:
22660: # Method to check whether dependent libraries are shared objects.
22661: deplibs_check_method=$lt_deplibs_check_method
22662:
22663: # Command to use when deplibs_check_method = "file_magic".
22664: file_magic_cmd=$lt_file_magic_cmd
22665:
22666: # How to find potential files when deplibs_check_method = "file_magic".
22667: file_magic_glob=$lt_file_magic_glob
22668:
22669: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22670: want_nocaseglob=$lt_want_nocaseglob
22671:
22672: # DLL creation program.
22673: DLLTOOL=$lt_DLLTOOL
22674:
22675: # Command to associate shared and link libraries.
22676: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22677:
22678: # The archiver.
22679: AR=$lt_AR
22680:
22681: # Flags to create an archive.
22682: AR_FLAGS=$lt_AR_FLAGS
22683:
22684: # How to feed a file listing to the archiver.
22685: archiver_list_spec=$lt_archiver_list_spec
22686:
22687: # A symbol stripping program.
22688: STRIP=$lt_STRIP
22689:
22690: # Commands used to install an old-style archive.
22691: RANLIB=$lt_RANLIB
22692: old_postinstall_cmds=$lt_old_postinstall_cmds
22693: old_postuninstall_cmds=$lt_old_postuninstall_cmds
22694:
22695: # Whether to use a lock for old archive extraction.
22696: lock_old_archive_extraction=$lock_old_archive_extraction
22697:
22698: # A C compiler.
22699: LTCC=$lt_CC
22700:
22701: # LTCC compiler flags.
22702: LTCFLAGS=$lt_CFLAGS
22703:
22704: # Take the output of nm and produce a listing of raw symbols and C names.
22705: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22706:
22707: # Transform the output of nm in a proper C declaration.
22708: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22709:
22710: # Transform the output of nm in a C name address pair.
22711: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22712:
22713: # Transform the output of nm in a C name address pair when lib prefix is needed.
22714: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22715:
22716: # Specify filename containing input files for \$NM.
22717: nm_file_list_spec=$lt_nm_file_list_spec
22718:
22719: # The root where to search for dependent libraries,and in which our libraries should be installed.
22720: lt_sysroot=$lt_sysroot
22721:
22722: # The name of the directory that contains temporary libtool files.
22723: objdir=$objdir
22724:
22725: # Used to examine libraries when file_magic_cmd begins with "file".
22726: MAGIC_CMD=$MAGIC_CMD
22727:
22728: # Must we lock files when doing compilation?
22729: need_locks=$lt_need_locks
22730:
22731: # Manifest tool.
22732: MANIFEST_TOOL=$lt_MANIFEST_TOOL
22733:
22734: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22735: DSYMUTIL=$lt_DSYMUTIL
22736:
22737: # Tool to change global to local symbols on Mac OS X.
22738: NMEDIT=$lt_NMEDIT
22739:
22740: # Tool to manipulate fat objects and archives on Mac OS X.
22741: LIPO=$lt_LIPO
22742:
22743: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22744: OTOOL=$lt_OTOOL
22745:
22746: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22747: OTOOL64=$lt_OTOOL64
22748:
22749: # Old archive suffix (normally "a").
22750: libext=$libext
22751:
22752: # Shared library suffix (normally ".so").
22753: shrext_cmds=$lt_shrext_cmds
22754:
22755: # The commands to extract the exported symbol list from a shared archive.
22756: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22757:
22758: # Variables whose values should be saved in libtool wrapper scripts and
22759: # restored at link time.
22760: variables_saved_for_relink=$lt_variables_saved_for_relink
22761:
22762: # Do we need the "lib" prefix for modules?
22763: need_lib_prefix=$need_lib_prefix
22764:
22765: # Do we need a version for libraries?
22766: need_version=$need_version
22767:
22768: # Library versioning type.
22769: version_type=$version_type
22770:
22771: # Shared library runtime path variable.
22772: runpath_var=$runpath_var
22773:
22774: # Shared library path variable.
22775: shlibpath_var=$shlibpath_var
22776:
22777: # Is shlibpath searched before the hard-coded library search path?
22778: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22779:
22780: # Format of library name prefix.
22781: libname_spec=$lt_libname_spec
22782:
22783: # List of archive names. First name is the real one, the rest are links.
22784: # The last name is the one that the linker finds with -lNAME
22785: library_names_spec=$lt_library_names_spec
22786:
22787: # The coded name of the library, if different from the real name.
22788: soname_spec=$lt_soname_spec
22789:
22790: # Permission mode override for installation of shared libraries.
22791: install_override_mode=$lt_install_override_mode
22792:
22793: # Command to use after installation of a shared archive.
22794: postinstall_cmds=$lt_postinstall_cmds
22795:
22796: # Command to use after uninstallation of a shared archive.
22797: postuninstall_cmds=$lt_postuninstall_cmds
22798:
22799: # Commands used to finish a libtool library installation in a directory.
22800: finish_cmds=$lt_finish_cmds
22801:
22802: # As "finish_cmds", except a single script fragment to be evaled but
22803: # not shown.
22804: finish_eval=$lt_finish_eval
22805:
22806: # Whether we should hardcode library paths into libraries.
22807: hardcode_into_libs=$hardcode_into_libs
22808:
22809: # Compile-time system search path for libraries.
22810: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22811:
22812: # Run-time system search path for libraries.
22813: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22814:
22815: # Whether dlopen is supported.
22816: dlopen_support=$enable_dlopen
22817:
22818: # Whether dlopen of programs is supported.
22819: dlopen_self=$enable_dlopen_self
22820:
22821: # Whether dlopen of statically linked programs is supported.
22822: dlopen_self_static=$enable_dlopen_self_static
22823:
22824: # Commands to strip libraries.
22825: old_striplib=$lt_old_striplib
22826: striplib=$lt_striplib
22827:
22828:
22829: # The linker used to build libraries.
22830: LD=$lt_LD
22831:
22832: # How to create reloadable object files.
22833: reload_flag=$lt_reload_flag
22834: reload_cmds=$lt_reload_cmds
22835:
22836: # Commands used to build an old-style archive.
22837: old_archive_cmds=$lt_old_archive_cmds
22838:
22839: # A language specific compiler.
22840: CC=$lt_compiler
22841:
22842: # Is the compiler the GNU compiler?
22843: with_gcc=$GCC
22844:
22845: # Compiler flag to turn off builtin functions.
22846: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22847:
22848: # Additional compiler flags for building library objects.
22849: pic_flag=$lt_lt_prog_compiler_pic
22850:
22851: # How to pass a linker flag through the compiler.
22852: wl=$lt_lt_prog_compiler_wl
22853:
22854: # Compiler flag to prevent dynamic linking.
22855: link_static_flag=$lt_lt_prog_compiler_static
22856:
22857: # Does compiler simultaneously support -c and -o options?
22858: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22859:
22860: # Whether or not to add -lc for building shared libraries.
22861: build_libtool_need_lc=$archive_cmds_need_lc
22862:
22863: # Whether or not to disallow shared libs when runtime libs are static.
22864: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22865:
22866: # Compiler flag to allow reflexive dlopens.
22867: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22868:
22869: # Compiler flag to generate shared objects directly from archives.
22870: whole_archive_flag_spec=$lt_whole_archive_flag_spec
22871:
22872: # Whether the compiler copes with passing no objects directly.
22873: compiler_needs_object=$lt_compiler_needs_object
22874:
22875: # Create an old-style archive from a shared archive.
22876: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22877:
22878: # Create a temporary old-style archive to link instead of a shared archive.
22879: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22880:
22881: # Commands used to build a shared archive.
22882: archive_cmds=$lt_archive_cmds
22883: archive_expsym_cmds=$lt_archive_expsym_cmds
22884:
22885: # Commands used to build a loadable module if different from building
22886: # a shared archive.
22887: module_cmds=$lt_module_cmds
22888: module_expsym_cmds=$lt_module_expsym_cmds
22889:
22890: # Whether we are building with GNU ld or not.
22891: with_gnu_ld=$lt_with_gnu_ld
22892:
22893: # Flag that allows shared libraries with undefined symbols to be built.
22894: allow_undefined_flag=$lt_allow_undefined_flag
22895:
22896: # Flag that enforces no undefined symbols.
22897: no_undefined_flag=$lt_no_undefined_flag
22898:
22899: # Flag to hardcode \$libdir into a binary during linking.
22900: # This must work even if \$libdir does not exist
22901: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22902:
22903: # If ld is used when linking, flag to hardcode \$libdir into a binary
22904: # during linking. This must work even if \$libdir does not exist.
22905: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22906:
22907: # Whether we need a single "-rpath" flag with a separated argument.
22908: hardcode_libdir_separator=$lt_hardcode_libdir_separator
22909:
22910: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22911: # DIR into the resulting binary.
22912: hardcode_direct=$hardcode_direct
22913:
22914: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22915: # DIR into the resulting binary and the resulting library dependency is
22916: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22917: # library is relocated.
22918: hardcode_direct_absolute=$hardcode_direct_absolute
22919:
22920: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22921: # into the resulting binary.
22922: hardcode_minus_L=$hardcode_minus_L
22923:
22924: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22925: # into the resulting binary.
22926: hardcode_shlibpath_var=$hardcode_shlibpath_var
22927:
22928: # Set to "yes" if building a shared library automatically hardcodes DIR
22929: # into the library and all subsequent libraries and executables linked
22930: # against it.
22931: hardcode_automatic=$hardcode_automatic
22932:
22933: # Set to yes if linker adds runtime paths of dependent libraries
22934: # to runtime path list.
22935: inherit_rpath=$inherit_rpath
22936:
22937: # Whether libtool must link a program against all its dependency libraries.
22938: link_all_deplibs=$link_all_deplibs
22939:
22940: # Set to "yes" if exported symbols are required.
22941: always_export_symbols=$always_export_symbols
22942:
22943: # The commands to list exported symbols.
22944: export_symbols_cmds=$lt_export_symbols_cmds
22945:
22946: # Symbols that should not be listed in the preloaded symbols.
22947: exclude_expsyms=$lt_exclude_expsyms
22948:
22949: # Symbols that must always be exported.
22950: include_expsyms=$lt_include_expsyms
22951:
22952: # Commands necessary for linking programs (against libraries) with templates.
22953: prelink_cmds=$lt_prelink_cmds
22954:
22955: # Commands necessary for finishing linking programs.
22956: postlink_cmds=$lt_postlink_cmds
22957:
22958: # Specify filename containing input files.
22959: file_list_spec=$lt_file_list_spec
22960:
22961: # How to hardcode a shared library path into an executable.
22962: hardcode_action=$hardcode_action
22963:
22964: # ### END LIBTOOL CONFIG
22965:
22966: _LT_EOF
22967:
22968: case $host_os in
22969: aix3*)
22970: cat <<\_LT_EOF >> "$cfgfile"
22971: # AIX sometimes has problems with the GCC collect2 program. For some
22972: # reason, if we set the COLLECT_NAMES environment variable, the problems
22973: # vanish in a puff of smoke.
22974: if test "X${COLLECT_NAMES+set}" != Xset; then
22975: COLLECT_NAMES=
22976: export COLLECT_NAMES
22977: fi
22978: _LT_EOF
22979: ;;
22980: esac
22981:
22982:
22983: ltmain="$ac_aux_dir/ltmain.sh"
22984:
22985:
22986: # We use sed instead of cat because bash on DJGPP gets confused if
22987: # if finds mixed CR/LF and LF-only lines. Since sed operates in
22988: # text mode, it properly converts lines to CR/LF. This bash problem
22989: # is reportedly fixed, but why not run on old versions too?
22990: sed '$q' "$ltmain" >> "$cfgfile" \
22991: || (rm -f "$cfgfile"; exit 1)
22992:
22993: if test x"$xsi_shell" = xyes; then
22994: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22995: func_dirname ()\
22996: {\
22997: \ case ${1} in\
22998: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22999: \ * ) func_dirname_result="${3}" ;;\
23000: \ esac\
23001: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23002: && mv -f "$cfgfile.tmp" "$cfgfile" \
23003: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23004: test 0 -eq $? || _lt_function_replace_fail=:
23005:
23006:
23007: sed -e '/^func_basename ()$/,/^} # func_basename /c\
23008: func_basename ()\
23009: {\
23010: \ func_basename_result="${1##*/}"\
23011: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23012: && mv -f "$cfgfile.tmp" "$cfgfile" \
23013: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23014: test 0 -eq $? || _lt_function_replace_fail=:
23015:
23016:
23017: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23018: func_dirname_and_basename ()\
23019: {\
23020: \ case ${1} in\
23021: \ */*) func_dirname_result="${1%/*}${2}" ;;\
23022: \ * ) func_dirname_result="${3}" ;;\
23023: \ esac\
23024: \ func_basename_result="${1##*/}"\
23025: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23026: && mv -f "$cfgfile.tmp" "$cfgfile" \
23027: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23028: test 0 -eq $? || _lt_function_replace_fail=:
23029:
23030:
23031: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23032: func_stripname ()\
23033: {\
23034: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23035: \ # positional parameters, so assign one to ordinary parameter first.\
23036: \ func_stripname_result=${3}\
23037: \ func_stripname_result=${func_stripname_result#"${1}"}\
23038: \ func_stripname_result=${func_stripname_result%"${2}"}\
23039: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23040: && mv -f "$cfgfile.tmp" "$cfgfile" \
23041: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23042: test 0 -eq $? || _lt_function_replace_fail=:
23043:
23044:
23045: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23046: func_split_long_opt ()\
23047: {\
23048: \ func_split_long_opt_name=${1%%=*}\
23049: \ func_split_long_opt_arg=${1#*=}\
23050: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23051: && mv -f "$cfgfile.tmp" "$cfgfile" \
23052: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23053: test 0 -eq $? || _lt_function_replace_fail=:
23054:
23055:
23056: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23057: func_split_short_opt ()\
23058: {\
23059: \ func_split_short_opt_arg=${1#??}\
23060: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23061: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23062: && mv -f "$cfgfile.tmp" "$cfgfile" \
23063: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23064: test 0 -eq $? || _lt_function_replace_fail=:
23065:
23066:
23067: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23068: func_lo2o ()\
23069: {\
23070: \ case ${1} in\
23071: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23072: \ *) func_lo2o_result=${1} ;;\
23073: \ esac\
23074: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23075: && mv -f "$cfgfile.tmp" "$cfgfile" \
23076: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23077: test 0 -eq $? || _lt_function_replace_fail=:
23078:
23079:
23080: sed -e '/^func_xform ()$/,/^} # func_xform /c\
23081: func_xform ()\
23082: {\
23083: func_xform_result=${1%.*}.lo\
23084: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23085: && mv -f "$cfgfile.tmp" "$cfgfile" \
23086: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23087: test 0 -eq $? || _lt_function_replace_fail=:
23088:
23089:
23090: sed -e '/^func_arith ()$/,/^} # func_arith /c\
23091: func_arith ()\
23092: {\
23093: func_arith_result=$(( $* ))\
23094: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23095: && mv -f "$cfgfile.tmp" "$cfgfile" \
23096: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23097: test 0 -eq $? || _lt_function_replace_fail=:
23098:
23099:
23100: sed -e '/^func_len ()$/,/^} # func_len /c\
23101: func_len ()\
23102: {\
23103: func_len_result=${#1}\
23104: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23105: && mv -f "$cfgfile.tmp" "$cfgfile" \
23106: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23107: test 0 -eq $? || _lt_function_replace_fail=:
23108:
23109: fi
23110:
23111: if test x"$lt_shell_append" = xyes; then
23112: sed -e '/^func_append ()$/,/^} # func_append /c\
23113: func_append ()\
23114: {\
23115: eval "${1}+=\\${2}"\
23116: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23117: && mv -f "$cfgfile.tmp" "$cfgfile" \
23118: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23119: test 0 -eq $? || _lt_function_replace_fail=:
23120:
23121:
23122: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23123: func_append_quoted ()\
23124: {\
23125: \ func_quote_for_eval "${2}"\
23126: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23127: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23128: && mv -f "$cfgfile.tmp" "$cfgfile" \
23129: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23130: test 0 -eq $? || _lt_function_replace_fail=:
23131:
23132:
23133: # Save a `func_append' function call where possible by direct use of '+='
23134: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23135: && mv -f "$cfgfile.tmp" "$cfgfile" \
23136: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23137: test 0 -eq $? || _lt_function_replace_fail=:
23138: else
23139: # Save a `func_append' function call even when '+=' is not available
23140: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23141: && mv -f "$cfgfile.tmp" "$cfgfile" \
23142: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23143: test 0 -eq $? || _lt_function_replace_fail=:
23144: fi
23145:
23146: if test x"$_lt_function_replace_fail" = x":"; then
23147: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23148: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23149: fi
23150:
23151:
23152: mv -f "$cfgfile" "$ofile" ||
23153: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23154: chmod +x "$ofile"
23155:
23156: ;;
23157: "vtysh/extract.pl":F) chmod +x vtysh/extract.pl ;;
23158:
23159: esac
23160: done # for ac_tag
23161:
23162:
23163: as_fn_exit 0
23164: _ACEOF
23165: ac_clean_files=$ac_clean_files_save
23166:
23167: test $ac_write_fail = 0 ||
23168: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23169:
23170:
23171: # configure is writing to config.log, and then calls config.status.
23172: # config.status does its own redirection, appending to config.log.
23173: # Unfortunately, on DOS this fails, as config.log is still kept open
23174: # by configure, so config.status won't be able to write to it; its
23175: # output is simply discarded. So we exec the FD to /dev/null,
23176: # effectively closing config.log, so it can be properly (re)opened and
23177: # appended to by config.status. When coming back to configure, we
23178: # need to make the FD available again.
23179: if test "$no_create" != yes; then
23180: ac_cs_success=:
23181: ac_config_status_args=
23182: test "$silent" = yes &&
23183: ac_config_status_args="$ac_config_status_args --quiet"
23184: exec 5>/dev/null
23185: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23186: exec 5>>config.log
23187: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23188: # would make configure fail if this is the last instruction.
23189: $ac_cs_success || as_fn_exit 1
23190: fi
23191: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23192: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23193: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23194: fi
23195:
23196:
23197: echo "
23198: Quagga configuration
23199: --------------------
23200: quagga version : ${PACKAGE_VERSION}
23201: host operating system : ${host_os}
23202: source code location : ${srcdir}
23203: compiler : ${CC}
23204: compiler flags : ${CFLAGS}
23205: make : ${MAKE-make}
23206: includes : ${INCLUDES} ${SNMP_INCLUDES}
23207: linker flags : ${LDFLAGS} ${LIBS} ${LIBCAP} ${LIBREADLINE} ${LIBM}
23208: state file directory : ${quagga_statedir}
23209: config file directory : `eval echo \`echo ${sysconfdir}\``
23210: example directory : `eval echo \`echo ${exampledir}\``
23211: user to run as : ${enable_user}
23212: group to run as : ${enable_group}
23213: group for vty sockets : ${enable_vty_group}
23214: config file mask : ${enable_configfile_mask}
23215: log file mask : ${enable_logfile_mask}
23216:
23217: The above user and group must have read/write access to the state file
23218: directory and to the config files in the config file directory."
23219:
23220: if test x"$quagga_cv_gnu_make" = x"no"; then echo "
23221: Warning: The ${MAKE-make} programme detected, either in your path or
23222: via the MAKE variable, is not GNU Make. GNU make may be installed as
23223: gmake on some systems. and is required to complete a build of Quagga
23224: " > /dev/stderr
23225: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>