Annotation of embedaddon/quagga/configure, revision 1.1.1.3
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.3 ! misho 3: # Generated by GNU Autoconf 2.69 for Quagga 0.99.21.
1.1 misho 4: #
5: # Report bugs to <https://bugzilla.quagga.net>.
6: #
7: #
1.1.1.3 ! misho 8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1 misho 9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
1.1.1.3 ! misho 137: # Use a proper internal environment variable to ensure we don't fall
! 138: # into an infinite loop, continuously re-executing ourselves.
! 139: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
! 140: _as_can_reexec=no; export _as_can_reexec;
! 141: # We cannot yet assume a decent shell, so we have to provide a
! 142: # neutralization value for shells without unset; and this also
! 143: # works around shells that cannot unset nonexistent variables.
! 144: # Preserve -v and -x to the replacement shell.
! 145: BASH_ENV=/dev/null
! 146: ENV=/dev/null
! 147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 148: case $- in # ((((
! 149: *v*x* | *x*v* ) as_opts=-vx ;;
! 150: *v* ) as_opts=-v ;;
! 151: *x* ) as_opts=-x ;;
! 152: * ) as_opts= ;;
! 153: esac
! 154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 155: # Admittedly, this is quite paranoid, since all the known shells bail
! 156: # out after a failed `exec'.
! 157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 158: as_fn_exit 255
! 159: fi
! 160: # We don't want this to propagate to other subprocesses.
! 161: { _as_can_reexec=; unset _as_can_reexec;}
1.1 misho 162: if test "x$CONFIG_SHELL" = x; then
163: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164: emulate sh
165: NULLCMD=:
166: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167: # is contrary to our usage. Disable this feature.
168: alias -g '\${1+\"\$@\"}'='\"\$@\"'
169: setopt NO_GLOB_SUBST
170: else
171: case \`(set -o) 2>/dev/null\` in #(
172: *posix*) :
173: set -o posix ;; #(
174: *) :
175: ;;
176: esac
177: fi
178: "
179: as_required="as_fn_return () { (exit \$1); }
180: as_fn_success () { as_fn_return 0; }
181: as_fn_failure () { as_fn_return 1; }
182: as_fn_ret_success () { return 0; }
183: as_fn_ret_failure () { return 1; }
184:
185: exitcode=0
186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191:
192: else
193: exitcode=1; echo positional parameters were not saved.
194: fi
1.1.1.3 ! misho 195: test x\$exitcode = x0 || exit 1
! 196: test -x / || exit 1"
1.1 misho 197: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201: test \$(( 1 + 1 )) = 2 || exit 1
202:
203: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207: PATH=/empty FPATH=/empty; export PATH FPATH
208: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210: if (eval "$as_required") 2>/dev/null; then :
211: as_have_required=yes
212: else
213: as_have_required=no
214: fi
215: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216:
217: else
218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219: as_found=false
220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221: do
222: IFS=$as_save_IFS
223: test -z "$as_dir" && as_dir=.
224: as_found=:
225: case $as_dir in #(
226: /*)
227: for as_base in sh bash ksh sh5; do
228: # Try only shells that exist, to save several forks.
229: as_shell=$as_dir/$as_base
230: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: CONFIG_SHELL=$as_shell as_have_required=yes
233: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234: break 2
235: fi
236: fi
237: done;;
238: esac
239: as_found=false
240: done
241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243: CONFIG_SHELL=$SHELL as_have_required=yes
244: fi; }
245: IFS=$as_save_IFS
246:
247:
248: if test "x$CONFIG_SHELL" != x; then :
1.1.1.3 ! misho 249: export CONFIG_SHELL
! 250: # We cannot yet assume a decent shell, so we have to provide a
! 251: # neutralization value for shells without unset; and this also
! 252: # works around shells that cannot unset nonexistent variables.
! 253: # Preserve -v and -x to the replacement shell.
! 254: BASH_ENV=/dev/null
! 255: ENV=/dev/null
! 256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 257: case $- in # ((((
! 258: *v*x* | *x*v* ) as_opts=-vx ;;
! 259: *v* ) as_opts=-v ;;
! 260: *x* ) as_opts=-x ;;
! 261: * ) as_opts= ;;
! 262: esac
! 263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 264: # Admittedly, this is quite paranoid, since all the known shells bail
! 265: # out after a failed `exec'.
! 266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 267: exit 255
1.1 misho 268: fi
269:
270: if test x$as_have_required = xno; then :
271: $as_echo "$0: This script requires a shell more modern than all"
272: $as_echo "$0: the shells that I found on your system."
273: if test x${ZSH_VERSION+set} = xset ; then
274: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276: else
277: $as_echo "$0: Please tell bug-autoconf@gnu.org and
278: $0: https://bugzilla.quagga.net about your system,
279: $0: including any error possibly output before this
280: $0: message. Then install a modern shell, or manually run
281: $0: the script under such a shell if you do have one."
282: fi
283: exit 1
284: fi
285: fi
286: fi
287: SHELL=${CONFIG_SHELL-/bin/sh}
288: export SHELL
289: # Unset more variables known to interfere with behavior of common tools.
290: CLICOLOR_FORCE= GREP_OPTIONS=
291: unset CLICOLOR_FORCE GREP_OPTIONS
292:
293: ## --------------------- ##
294: ## M4sh Shell Functions. ##
295: ## --------------------- ##
296: # as_fn_unset VAR
297: # ---------------
298: # Portably unset VAR.
299: as_fn_unset ()
300: {
301: { eval $1=; unset $1;}
302: }
303: as_unset=as_fn_unset
304:
305: # as_fn_set_status STATUS
306: # -----------------------
307: # Set $? to STATUS, without forking.
308: as_fn_set_status ()
309: {
310: return $1
311: } # as_fn_set_status
312:
313: # as_fn_exit STATUS
314: # -----------------
315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316: as_fn_exit ()
317: {
318: set +e
319: as_fn_set_status $1
320: exit $1
321: } # as_fn_exit
322:
323: # as_fn_mkdir_p
324: # -------------
325: # Create "$as_dir" as a directory, including parents if necessary.
326: as_fn_mkdir_p ()
327: {
328:
329: case $as_dir in #(
330: -*) as_dir=./$as_dir;;
331: esac
332: test -d "$as_dir" || eval $as_mkdir_p || {
333: as_dirs=
334: while :; do
335: case $as_dir in #(
336: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337: *) as_qdir=$as_dir;;
338: esac
339: as_dirs="'$as_qdir' $as_dirs"
340: as_dir=`$as_dirname -- "$as_dir" ||
341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342: X"$as_dir" : 'X\(//\)[^/]' \| \
343: X"$as_dir" : 'X\(//\)$' \| \
344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345: $as_echo X"$as_dir" |
346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347: s//\1/
348: q
349: }
350: /^X\(\/\/\)[^/].*/{
351: s//\1/
352: q
353: }
354: /^X\(\/\/\)$/{
355: s//\1/
356: q
357: }
358: /^X\(\/\).*/{
359: s//\1/
360: q
361: }
362: s/.*/./; q'`
363: test -d "$as_dir" && break
364: done
365: test -z "$as_dirs" || eval "mkdir $as_dirs"
366: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367:
368:
369: } # as_fn_mkdir_p
1.1.1.3 ! misho 370:
! 371: # as_fn_executable_p FILE
! 372: # -----------------------
! 373: # Test if FILE is an executable regular file.
! 374: as_fn_executable_p ()
! 375: {
! 376: test -f "$1" && test -x "$1"
! 377: } # as_fn_executable_p
1.1 misho 378: # as_fn_append VAR VALUE
379: # ----------------------
380: # Append the text in VALUE to the end of the definition contained in VAR. Take
381: # advantage of any shell optimizations that allow amortized linear growth over
382: # repeated appends, instead of the typical quadratic growth present in naive
383: # implementations.
384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385: eval 'as_fn_append ()
386: {
387: eval $1+=\$2
388: }'
389: else
390: as_fn_append ()
391: {
392: eval $1=\$$1\$2
393: }
394: fi # as_fn_append
395:
396: # as_fn_arith ARG...
397: # ------------------
398: # Perform arithmetic evaluation on the ARGs, and store the result in the
399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
400: # must be portable across $(()) and expr.
401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402: eval 'as_fn_arith ()
403: {
404: as_val=$(( $* ))
405: }'
406: else
407: as_fn_arith ()
408: {
409: as_val=`expr "$@" || test $? -eq 1`
410: }
411: fi # as_fn_arith
412:
413:
414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
415: # ----------------------------------------
416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418: # script with STATUS, using 1 if that was 0.
419: as_fn_error ()
420: {
421: as_status=$1; test $as_status -eq 0 && as_status=1
422: if test "$4"; then
423: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425: fi
426: $as_echo "$as_me: error: $2" >&2
427: as_fn_exit $as_status
428: } # as_fn_error
429:
430: if expr a : '\(a\)' >/dev/null 2>&1 &&
431: test "X`expr 00001 : '.*\(...\)'`" = X001; then
432: as_expr=expr
433: else
434: as_expr=false
435: fi
436:
437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438: as_basename=basename
439: else
440: as_basename=false
441: fi
442:
443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444: as_dirname=dirname
445: else
446: as_dirname=false
447: fi
448:
449: as_me=`$as_basename -- "$0" ||
450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451: X"$0" : 'X\(//\)$' \| \
452: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453: $as_echo X/"$0" |
454: sed '/^.*\/\([^/][^/]*\)\/*$/{
455: s//\1/
456: q
457: }
458: /^X\/\(\/\/\)$/{
459: s//\1/
460: q
461: }
462: /^X\/\(\/\).*/{
463: s//\1/
464: q
465: }
466: s/.*/./; q'`
467:
468: # Avoid depending upon Character Ranges.
469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472: as_cr_digits='0123456789'
473: as_cr_alnum=$as_cr_Letters$as_cr_digits
474:
475:
476: as_lineno_1=$LINENO as_lineno_1a=$LINENO
477: as_lineno_2=$LINENO as_lineno_2a=$LINENO
478: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481: sed -n '
482: p
483: /[$]LINENO/=
484: ' <$as_myself |
485: sed '
486: s/[$]LINENO.*/&-/
487: t lineno
488: b
489: :lineno
490: N
491: :loop
492: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493: t loop
494: s/-\n.*//
495: ' >$as_me.lineno &&
496: chmod +x "$as_me.lineno" ||
497: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498:
1.1.1.3 ! misho 499: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
! 500: # already done that, so ensure we don't try to do so again and fall
! 501: # in an infinite loop. This has already happened in practice.
! 502: _as_can_reexec=no; export _as_can_reexec
1.1 misho 503: # Don't try to exec as it changes $[0], causing all sort of problems
504: # (the dirname of $[0] is not the place where we might find the
505: # original and so on. Autoconf is especially sensitive to this).
506: . "./$as_me.lineno"
507: # Exit status is that of the last command.
508: exit
509: }
510:
511: ECHO_C= ECHO_N= ECHO_T=
512: case `echo -n x` in #(((((
513: -n*)
514: case `echo 'xy\c'` in
515: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516: xy) ECHO_C='\c';;
517: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518: ECHO_T=' ';;
519: esac;;
520: *)
521: ECHO_N='-n';;
522: esac
523:
524: rm -f conf$$ conf$$.exe conf$$.file
525: if test -d conf$$.dir; then
526: rm -f conf$$.dir/conf$$.file
527: else
528: rm -f conf$$.dir
529: mkdir conf$$.dir 2>/dev/null
530: fi
531: if (echo >conf$$.file) 2>/dev/null; then
532: if ln -s conf$$.file conf$$ 2>/dev/null; then
533: as_ln_s='ln -s'
534: # ... but there are two gotchas:
535: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3 ! misho 537: # In both cases, we have to default to `cp -pR'.
1.1 misho 538: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 ! misho 539: as_ln_s='cp -pR'
1.1 misho 540: elif ln conf$$.file conf$$ 2>/dev/null; then
541: as_ln_s=ln
542: else
1.1.1.3 ! misho 543: as_ln_s='cp -pR'
1.1 misho 544: fi
545: else
1.1.1.3 ! misho 546: as_ln_s='cp -pR'
1.1 misho 547: fi
548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549: rmdir conf$$.dir 2>/dev/null
550:
551: if mkdir -p . 2>/dev/null; then
552: as_mkdir_p='mkdir -p "$as_dir"'
553: else
554: test -d ./-p && rmdir ./-p
555: as_mkdir_p=false
556: fi
557:
1.1.1.3 ! misho 558: as_test_x='test -x'
! 559: as_executable_p=as_fn_executable_p
1.1 misho 560:
561: # Sed expression to map a string onto a valid CPP name.
562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563:
564: # Sed expression to map a string onto a valid variable name.
565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566:
567: SHELL=${CONFIG_SHELL-/bin/sh}
568:
569:
570: test -n "$DJDIR" || exec 7<&0 </dev/null
571: exec 6>&1
572:
573: # Name of the host.
574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575: # so uname gets run too.
576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577:
578: #
579: # Initializations.
580: #
581: ac_default_prefix=/usr/local
582: ac_clean_files=
583: ac_config_libobj_dir=.
584: LIBOBJS=
585: cross_compiling=no
586: subdirs=
587: MFLAGS=
588: MAKEFLAGS=
589:
590: # Identity of this package.
591: PACKAGE_NAME='Quagga'
592: PACKAGE_TARNAME='quagga'
1.1.1.3 ! misho 593: PACKAGE_VERSION='0.99.21'
! 594: PACKAGE_STRING='Quagga 0.99.21'
1.1 misho 595: PACKAGE_BUGREPORT='https://bugzilla.quagga.net'
596: PACKAGE_URL=''
597:
598: ac_unique_file="lib/zebra.h"
599: # Factoring default headers for most tests.
600: ac_includes_default="\
601: #include <stdio.h>
602: #ifdef HAVE_SYS_TYPES_H
603: # include <sys/types.h>
604: #endif
605: #ifdef HAVE_SYS_STAT_H
606: # include <sys/stat.h>
607: #endif
608: #ifdef STDC_HEADERS
609: # include <stdlib.h>
610: # include <stddef.h>
611: #else
612: # ifdef HAVE_STDLIB_H
613: # include <stdlib.h>
614: # endif
615: #endif
616: #ifdef HAVE_STRING_H
617: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618: # include <memory.h>
619: # endif
620: # include <string.h>
621: #endif
622: #ifdef HAVE_STRINGS_H
623: # include <strings.h>
624: #endif
625: #ifdef HAVE_INTTYPES_H
626: # include <inttypes.h>
627: #endif
628: #ifdef HAVE_STDINT_H
629: # include <stdint.h>
630: #endif
631: #ifdef HAVE_UNISTD_H
632: # include <unistd.h>
633: #endif"
634:
635: ac_header_list=
636: ac_func_list=
637: ac_subst_vars='am__EXEEXT_FALSE
638: am__EXEEXT_TRUE
639: LTLIBOBJS
640: quagga_statedir
641: PILDFLAGS
642: PICFLAGS
643: CONFDATE
644: LIBCAP
645: SNMP_INCLUDES
646: LIB_REGEX
647: HAVE_LIBPCREPOSIX
648: OSPFAPI
649: OSPFCLIENT
650: CURSES
651: INCLUDES
652: VTYSH
653: SOLARIS
654: ISISD
655: WATCHQUAGGA
1.1.1.3 ! misho 656: BABELD
1.1 misho 657: OSPF6D
658: OSPFD
659: RIPNGD
660: RIPD
661: BGPD
662: ZEBRA
663: DOC
1.1.1.3 ! misho 664: ISISD_FALSE
! 665: ISISD_TRUE
! 666: OSPF6D_FALSE
! 667: OSPF6D_TRUE
! 668: RIPNGD_FALSE
! 669: RIPNGD_TRUE
! 670: OSPFCLIENT_FALSE
! 671: OSPFCLIENT_TRUE
! 672: WATCHQUAGGA_FALSE
! 673: WATCHQUAGGA_TRUE
! 674: BABELD_FALSE
! 675: BABELD_TRUE
! 676: OSPFD_FALSE
! 677: OSPFD_TRUE
! 678: RIPD_FALSE
! 679: RIPD_TRUE
! 680: BGPD_FALSE
! 681: BGPD_TRUE
! 682: ZEBRA_FALSE
! 683: ZEBRA_TRUE
1.1 misho 684: LIB_IPV6
685: IPFORWARD
686: IF_PROC
687: IOCTL_METHOD
688: IF_METHOD
689: RTREAD_METHOD
690: OTHER_METHOD
691: KERNEL_METHOD
692: RT_METHOD
693: LIBM
694: LIBOBJS
695: LIBPAM
1.1.1.3 ! misho 696: VTYSH_FALSE
! 697: VTYSH_TRUE
1.1 misho 698: LIBREADLINE
699: PERL
700: MULTIPATH_NUM
701: enable_vty_group
702: enable_group
703: enable_user
704: ISIS_TOPOLOGY_LIB
705: ISIS_TOPOLOGY_DIR
706: ISIS_TOPOLOGY_INCLUDES
707: OTOOL64
708: OTOOL
709: LIPO
710: NMEDIT
711: DSYMUTIL
712: MANIFEST_TOOL
713: RANLIB
714: ac_ct_AR
715: DLLTOOL
716: OBJDUMP
717: NM
718: ac_ct_DUMPBIN
719: DUMPBIN
720: LD
721: FGREP
722: LIBTOOL
723: AR
724: LN_S
1.1.1.3 ! misho 725: HAVE_LATEX_FALSE
! 726: HAVE_LATEX_TRUE
! 727: LATEXMK
! 728: PDFLATEX
1.1 misho 729: SED
730: EGREP
731: GREP
732: CPP
733: am__fastdepCC_FALSE
734: am__fastdepCC_TRUE
735: CCDEPMODE
1.1.1.2 misho 736: am__nodep
1.1 misho 737: AMDEPBACKSLASH
738: AMDEP_FALSE
739: AMDEP_TRUE
740: am__quote
741: am__include
742: DEPDIR
743: OBJEXT
744: EXEEXT
745: ac_ct_CC
746: CPPFLAGS
747: LDFLAGS
748: CFLAGS
749: CC
750: pkgsrcrcdir
751: pkgsrcdir
752: exampledir
753: GAWK
754: am__untar
755: am__tar
756: AMTAR
757: am__leading_dot
758: SET_MAKE
759: AWK
760: mkdir_p
761: MKDIR_P
762: INSTALL_STRIP_PROGRAM
763: STRIP
764: install_sh
765: MAKEINFO
766: AUTOHEADER
767: AUTOMAKE
768: AUTOCONF
769: ACLOCAL
770: VERSION
771: PACKAGE
772: CYGPATH_W
773: am__isrc
774: INSTALL_DATA
775: INSTALL_SCRIPT
776: INSTALL_PROGRAM
777: target_os
778: target_vendor
779: target_cpu
780: target
781: host_os
782: host_vendor
783: host_cpu
784: host
785: build_os
786: build_vendor
787: build_cpu
788: build
789: target_alias
790: host_alias
791: build_alias
792: LIBS
793: ECHO_T
794: ECHO_N
795: ECHO_C
796: DEFS
797: mandir
798: localedir
799: libdir
800: psdir
801: pdfdir
802: dvidir
803: htmldir
804: infodir
805: docdir
806: oldincludedir
807: includedir
808: localstatedir
809: sharedstatedir
810: sysconfdir
811: datadir
812: datarootdir
813: libexecdir
814: sbindir
815: bindir
816: program_transform_name
817: prefix
818: exec_prefix
819: PACKAGE_URL
820: PACKAGE_BUGREPORT
821: PACKAGE_STRING
822: PACKAGE_VERSION
823: PACKAGE_TARNAME
824: PACKAGE_NAME
825: PATH_SEPARATOR
826: SHELL'
827: ac_subst_files=''
828: ac_user_opts='
829: enable_option_checking
830: enable_exampledir
831: enable_pkgsrcrcdir
832: with_cflags
833: enable_dependency_tracking
834: enable_shared
835: enable_static
836: with_pic
837: enable_fast_install
838: with_gnu_ld
839: with_sysroot
840: enable_libtool_lock
841: enable_vtysh
842: enable_ipv6
843: enable_doc
844: enable_zebra
845: enable_bgpd
846: enable_ripd
847: enable_ripngd
848: enable_ospfd
849: enable_ospf6d
1.1.1.3 ! misho 850: enable_babeld
1.1 misho 851: enable_watchquagga
852: enable_isisd
853: enable_solaris
854: enable_bgp_announce
855: enable_netlink
856: enable_broken_aliases
857: with_crypto
858: enable_snmp
859: with_libpam
860: enable_tcp_zebra
861: enable_opaque_lsa
862: enable_ospfapi
863: enable_ospfclient
864: enable_ospf_te
865: enable_multipath
866: enable_user
867: enable_group
868: enable_vty_group
869: enable_configfile_mask
870: enable_logfile_mask
871: enable_rtadv
872: enable_irdp
873: enable_isis_topology
874: enable_capabilities
875: enable_gcc_ultra_verbose
876: enable_linux24_tcp_md5
877: enable_gcc_rdynamic
878: enable_time_check
879: enable_pcreposix
880: enable_largefile
881: enable_pie
882: '
883: ac_precious_vars='build_alias
884: host_alias
885: target_alias
886: GAWK
887: CC
888: CFLAGS
889: LDFLAGS
890: LIBS
891: CPPFLAGS
892: CPP'
893:
894:
895: # Initialize some variables set by options.
896: ac_init_help=
897: ac_init_version=false
898: ac_unrecognized_opts=
899: ac_unrecognized_sep=
900: # The variables have the same names as the options, with
901: # dashes changed to underlines.
902: cache_file=/dev/null
903: exec_prefix=NONE
904: no_create=
905: no_recursion=
906: prefix=NONE
907: program_prefix=NONE
908: program_suffix=NONE
909: program_transform_name=s,x,x,
910: silent=
911: site=
912: srcdir=
913: verbose=
914: x_includes=NONE
915: x_libraries=NONE
916:
917: # Installation directory options.
918: # These are left unexpanded so users can "make install exec_prefix=/foo"
919: # and all the variables that are supposed to be based on exec_prefix
920: # by default will actually change.
921: # Use braces instead of parens because sh, perl, etc. also accept them.
922: # (The list follows the same order as the GNU Coding Standards.)
923: bindir='${exec_prefix}/bin'
924: sbindir='${exec_prefix}/sbin'
925: libexecdir='${exec_prefix}/libexec'
926: datarootdir='${prefix}/share'
927: datadir='${datarootdir}'
928: sysconfdir='${prefix}/etc'
929: sharedstatedir='${prefix}/com'
930: localstatedir='${prefix}/var'
931: includedir='${prefix}/include'
932: oldincludedir='/usr/include'
933: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934: infodir='${datarootdir}/info'
935: htmldir='${docdir}'
936: dvidir='${docdir}'
937: pdfdir='${docdir}'
938: psdir='${docdir}'
939: libdir='${exec_prefix}/lib'
940: localedir='${datarootdir}/locale'
941: mandir='${datarootdir}/man'
942:
943: ac_prev=
944: ac_dashdash=
945: for ac_option
946: do
947: # If the previous option needs an argument, assign it.
948: if test -n "$ac_prev"; then
949: eval $ac_prev=\$ac_option
950: ac_prev=
951: continue
952: fi
953:
954: case $ac_option in
955: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956: *=) ac_optarg= ;;
957: *) ac_optarg=yes ;;
958: esac
959:
960: # Accept the important Cygnus configure options, so we can diagnose typos.
961:
962: case $ac_dashdash$ac_option in
963: --)
964: ac_dashdash=yes ;;
965:
966: -bindir | --bindir | --bindi | --bind | --bin | --bi)
967: ac_prev=bindir ;;
968: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969: bindir=$ac_optarg ;;
970:
971: -build | --build | --buil | --bui | --bu)
972: ac_prev=build_alias ;;
973: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974: build_alias=$ac_optarg ;;
975:
976: -cache-file | --cache-file | --cache-fil | --cache-fi \
977: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978: ac_prev=cache_file ;;
979: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981: cache_file=$ac_optarg ;;
982:
983: --config-cache | -C)
984: cache_file=config.cache ;;
985:
986: -datadir | --datadir | --datadi | --datad)
987: ac_prev=datadir ;;
988: -datadir=* | --datadir=* | --datadi=* | --datad=*)
989: datadir=$ac_optarg ;;
990:
991: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992: | --dataroo | --dataro | --datar)
993: ac_prev=datarootdir ;;
994: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996: datarootdir=$ac_optarg ;;
997:
998: -disable-* | --disable-*)
999: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000: # Reject names that are not valid shell variable names.
1001: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002: as_fn_error $? "invalid feature name: $ac_useropt"
1003: ac_useropt_orig=$ac_useropt
1004: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005: case $ac_user_opts in
1006: *"
1007: "enable_$ac_useropt"
1008: "*) ;;
1009: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010: ac_unrecognized_sep=', ';;
1011: esac
1012: eval enable_$ac_useropt=no ;;
1013:
1014: -docdir | --docdir | --docdi | --doc | --do)
1015: ac_prev=docdir ;;
1016: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017: docdir=$ac_optarg ;;
1018:
1019: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020: ac_prev=dvidir ;;
1021: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022: dvidir=$ac_optarg ;;
1023:
1024: -enable-* | --enable-*)
1025: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026: # Reject names that are not valid shell variable names.
1027: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028: as_fn_error $? "invalid feature name: $ac_useropt"
1029: ac_useropt_orig=$ac_useropt
1030: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031: case $ac_user_opts in
1032: *"
1033: "enable_$ac_useropt"
1034: "*) ;;
1035: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036: ac_unrecognized_sep=', ';;
1037: esac
1038: eval enable_$ac_useropt=\$ac_optarg ;;
1039:
1040: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042: | --exec | --exe | --ex)
1043: ac_prev=exec_prefix ;;
1044: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046: | --exec=* | --exe=* | --ex=*)
1047: exec_prefix=$ac_optarg ;;
1048:
1049: -gas | --gas | --ga | --g)
1050: # Obsolete; use --with-gas.
1051: with_gas=yes ;;
1052:
1053: -help | --help | --hel | --he | -h)
1054: ac_init_help=long ;;
1055: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056: ac_init_help=recursive ;;
1057: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058: ac_init_help=short ;;
1059:
1060: -host | --host | --hos | --ho)
1061: ac_prev=host_alias ;;
1062: -host=* | --host=* | --hos=* | --ho=*)
1063: host_alias=$ac_optarg ;;
1064:
1065: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066: ac_prev=htmldir ;;
1067: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068: | --ht=*)
1069: htmldir=$ac_optarg ;;
1070:
1071: -includedir | --includedir | --includedi | --included | --include \
1072: | --includ | --inclu | --incl | --inc)
1073: ac_prev=includedir ;;
1074: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075: | --includ=* | --inclu=* | --incl=* | --inc=*)
1076: includedir=$ac_optarg ;;
1077:
1078: -infodir | --infodir | --infodi | --infod | --info | --inf)
1079: ac_prev=infodir ;;
1080: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081: infodir=$ac_optarg ;;
1082:
1083: -libdir | --libdir | --libdi | --libd)
1084: ac_prev=libdir ;;
1085: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086: libdir=$ac_optarg ;;
1087:
1088: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089: | --libexe | --libex | --libe)
1090: ac_prev=libexecdir ;;
1091: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092: | --libexe=* | --libex=* | --libe=*)
1093: libexecdir=$ac_optarg ;;
1094:
1095: -localedir | --localedir | --localedi | --localed | --locale)
1096: ac_prev=localedir ;;
1097: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098: localedir=$ac_optarg ;;
1099:
1100: -localstatedir | --localstatedir | --localstatedi | --localstated \
1101: | --localstate | --localstat | --localsta | --localst | --locals)
1102: ac_prev=localstatedir ;;
1103: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105: localstatedir=$ac_optarg ;;
1106:
1107: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108: ac_prev=mandir ;;
1109: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110: mandir=$ac_optarg ;;
1111:
1112: -nfp | --nfp | --nf)
1113: # Obsolete; use --without-fp.
1114: with_fp=no ;;
1115:
1116: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117: | --no-cr | --no-c | -n)
1118: no_create=yes ;;
1119:
1120: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122: no_recursion=yes ;;
1123:
1124: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126: | --oldin | --oldi | --old | --ol | --o)
1127: ac_prev=oldincludedir ;;
1128: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131: oldincludedir=$ac_optarg ;;
1132:
1133: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134: ac_prev=prefix ;;
1135: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136: prefix=$ac_optarg ;;
1137:
1138: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139: | --program-pre | --program-pr | --program-p)
1140: ac_prev=program_prefix ;;
1141: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143: program_prefix=$ac_optarg ;;
1144:
1145: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146: | --program-suf | --program-su | --program-s)
1147: ac_prev=program_suffix ;;
1148: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150: program_suffix=$ac_optarg ;;
1151:
1152: -program-transform-name | --program-transform-name \
1153: | --program-transform-nam | --program-transform-na \
1154: | --program-transform-n | --program-transform- \
1155: | --program-transform | --program-transfor \
1156: | --program-transfo | --program-transf \
1157: | --program-trans | --program-tran \
1158: | --progr-tra | --program-tr | --program-t)
1159: ac_prev=program_transform_name ;;
1160: -program-transform-name=* | --program-transform-name=* \
1161: | --program-transform-nam=* | --program-transform-na=* \
1162: | --program-transform-n=* | --program-transform-=* \
1163: | --program-transform=* | --program-transfor=* \
1164: | --program-transfo=* | --program-transf=* \
1165: | --program-trans=* | --program-tran=* \
1166: | --progr-tra=* | --program-tr=* | --program-t=*)
1167: program_transform_name=$ac_optarg ;;
1168:
1169: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170: ac_prev=pdfdir ;;
1171: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172: pdfdir=$ac_optarg ;;
1173:
1174: -psdir | --psdir | --psdi | --psd | --ps)
1175: ac_prev=psdir ;;
1176: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177: psdir=$ac_optarg ;;
1178:
1179: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180: | -silent | --silent | --silen | --sile | --sil)
1181: silent=yes ;;
1182:
1183: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184: ac_prev=sbindir ;;
1185: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186: | --sbi=* | --sb=*)
1187: sbindir=$ac_optarg ;;
1188:
1189: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191: | --sharedst | --shareds | --shared | --share | --shar \
1192: | --sha | --sh)
1193: ac_prev=sharedstatedir ;;
1194: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197: | --sha=* | --sh=*)
1198: sharedstatedir=$ac_optarg ;;
1199:
1200: -site | --site | --sit)
1201: ac_prev=site ;;
1202: -site=* | --site=* | --sit=*)
1203: site=$ac_optarg ;;
1204:
1205: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206: ac_prev=srcdir ;;
1207: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208: srcdir=$ac_optarg ;;
1209:
1210: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211: | --syscon | --sysco | --sysc | --sys | --sy)
1212: ac_prev=sysconfdir ;;
1213: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215: sysconfdir=$ac_optarg ;;
1216:
1217: -target | --target | --targe | --targ | --tar | --ta | --t)
1218: ac_prev=target_alias ;;
1219: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220: target_alias=$ac_optarg ;;
1221:
1222: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223: verbose=yes ;;
1224:
1225: -version | --version | --versio | --versi | --vers | -V)
1226: ac_init_version=: ;;
1227:
1228: -with-* | --with-*)
1229: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230: # Reject names that are not valid shell variable names.
1231: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232: as_fn_error $? "invalid package name: $ac_useropt"
1233: ac_useropt_orig=$ac_useropt
1234: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235: case $ac_user_opts in
1236: *"
1237: "with_$ac_useropt"
1238: "*) ;;
1239: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240: ac_unrecognized_sep=', ';;
1241: esac
1242: eval with_$ac_useropt=\$ac_optarg ;;
1243:
1244: -without-* | --without-*)
1245: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246: # Reject names that are not valid shell variable names.
1247: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248: as_fn_error $? "invalid package name: $ac_useropt"
1249: ac_useropt_orig=$ac_useropt
1250: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251: case $ac_user_opts in
1252: *"
1253: "with_$ac_useropt"
1254: "*) ;;
1255: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256: ac_unrecognized_sep=', ';;
1257: esac
1258: eval with_$ac_useropt=no ;;
1259:
1260: --x)
1261: # Obsolete; use --with-x.
1262: with_x=yes ;;
1263:
1264: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265: | --x-incl | --x-inc | --x-in | --x-i)
1266: ac_prev=x_includes ;;
1267: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269: x_includes=$ac_optarg ;;
1270:
1271: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273: ac_prev=x_libraries ;;
1274: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276: x_libraries=$ac_optarg ;;
1277:
1278: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279: Try \`$0 --help' for more information"
1280: ;;
1281:
1282: *=*)
1283: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284: # Reject names that are not valid shell variable names.
1285: case $ac_envvar in #(
1286: '' | [0-9]* | *[!_$as_cr_alnum]* )
1287: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288: esac
1289: eval $ac_envvar=\$ac_optarg
1290: export $ac_envvar ;;
1291:
1292: *)
1293: # FIXME: should be removed in autoconf 3.0.
1294: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298: ;;
1299:
1300: esac
1301: done
1302:
1303: if test -n "$ac_prev"; then
1304: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305: as_fn_error $? "missing argument to $ac_option"
1306: fi
1307:
1308: if test -n "$ac_unrecognized_opts"; then
1309: case $enable_option_checking in
1310: no) ;;
1311: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313: esac
1314: fi
1315:
1316: # Check all directory arguments for consistency.
1317: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318: datadir sysconfdir sharedstatedir localstatedir includedir \
1319: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320: libdir localedir mandir
1321: do
1322: eval ac_val=\$$ac_var
1323: # Remove trailing slashes.
1324: case $ac_val in
1325: */ )
1326: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327: eval $ac_var=\$ac_val;;
1328: esac
1329: # Be sure to have absolute directory names.
1330: case $ac_val in
1331: [\\/$]* | ?:[\\/]* ) continue;;
1332: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333: esac
1334: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335: done
1336:
1337: # There might be people who depend on the old broken behavior: `$host'
1338: # used to hold the argument of --host etc.
1339: # FIXME: To remove some day.
1340: build=$build_alias
1341: host=$host_alias
1342: target=$target_alias
1343:
1344: # FIXME: To remove some day.
1345: if test "x$host_alias" != x; then
1346: if test "x$build_alias" = x; then
1347: cross_compiling=maybe
1348: elif test "x$build_alias" != "x$host_alias"; then
1349: cross_compiling=yes
1350: fi
1351: fi
1352:
1353: ac_tool_prefix=
1354: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355:
1356: test "$silent" = yes && exec 6>/dev/null
1357:
1358:
1359: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360: ac_ls_di=`ls -di .` &&
1361: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362: as_fn_error $? "working directory cannot be determined"
1363: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364: as_fn_error $? "pwd does not report name of working directory"
1365:
1366:
1367: # Find the source files, if location was not specified.
1368: if test -z "$srcdir"; then
1369: ac_srcdir_defaulted=yes
1370: # Try the directory containing this script, then the parent directory.
1371: ac_confdir=`$as_dirname -- "$as_myself" ||
1372: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373: X"$as_myself" : 'X\(//\)[^/]' \| \
1374: X"$as_myself" : 'X\(//\)$' \| \
1375: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376: $as_echo X"$as_myself" |
1377: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378: s//\1/
1379: q
1380: }
1381: /^X\(\/\/\)[^/].*/{
1382: s//\1/
1383: q
1384: }
1385: /^X\(\/\/\)$/{
1386: s//\1/
1387: q
1388: }
1389: /^X\(\/\).*/{
1390: s//\1/
1391: q
1392: }
1393: s/.*/./; q'`
1394: srcdir=$ac_confdir
1395: if test ! -r "$srcdir/$ac_unique_file"; then
1396: srcdir=..
1397: fi
1398: else
1399: ac_srcdir_defaulted=no
1400: fi
1401: if test ! -r "$srcdir/$ac_unique_file"; then
1402: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404: fi
1405: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406: ac_abs_confdir=`(
1407: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408: pwd)`
1409: # When building in place, set srcdir=.
1410: if test "$ac_abs_confdir" = "$ac_pwd"; then
1411: srcdir=.
1412: fi
1413: # Remove unnecessary trailing slashes from srcdir.
1414: # Double slashes in file names in object file debugging info
1415: # mess up M-x gdb in Emacs.
1416: case $srcdir in
1417: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418: esac
1419: for ac_var in $ac_precious_vars; do
1420: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421: eval ac_env_${ac_var}_value=\$${ac_var}
1422: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424: done
1425:
1426: #
1427: # Report the --help message.
1428: #
1429: if test "$ac_init_help" = "long"; then
1430: # Omit some internal or obsolete options to make the list less imposing.
1431: # This message is too long to be a string in the A/UX 3.1 sh.
1432: cat <<_ACEOF
1.1.1.3 ! misho 1433: \`configure' configures Quagga 0.99.21 to adapt to many kinds of systems.
1.1 misho 1434:
1435: Usage: $0 [OPTION]... [VAR=VALUE]...
1436:
1437: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438: VAR=VALUE. See below for descriptions of some of the useful variables.
1439:
1440: Defaults for the options are specified in brackets.
1441:
1442: Configuration:
1443: -h, --help display this help and exit
1444: --help=short display options specific to this package
1445: --help=recursive display the short help of all the included packages
1446: -V, --version display version information and exit
1447: -q, --quiet, --silent do not print \`checking ...' messages
1448: --cache-file=FILE cache test results in FILE [disabled]
1449: -C, --config-cache alias for \`--cache-file=config.cache'
1450: -n, --no-create do not create output files
1451: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452:
1453: Installation directories:
1454: --prefix=PREFIX install architecture-independent files in PREFIX
1455: [$ac_default_prefix]
1456: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457: [PREFIX]
1458:
1459: By default, \`make install' will install all the files in
1460: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462: for instance \`--prefix=\$HOME'.
1463:
1464: For better control, use the options below.
1465:
1466: Fine tuning of the installation directories:
1467: --bindir=DIR user executables [EPREFIX/bin]
1468: --sbindir=DIR system admin executables [EPREFIX/sbin]
1469: --libexecdir=DIR program executables [EPREFIX/libexec]
1470: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473: --libdir=DIR object code libraries [EPREFIX/lib]
1474: --includedir=DIR C header files [PREFIX/include]
1475: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478: --infodir=DIR info documentation [DATAROOTDIR/info]
1479: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480: --mandir=DIR man documentation [DATAROOTDIR/man]
1481: --docdir=DIR documentation root [DATAROOTDIR/doc/quagga]
1482: --htmldir=DIR html documentation [DOCDIR]
1483: --dvidir=DIR dvi documentation [DOCDIR]
1484: --pdfdir=DIR pdf documentation [DOCDIR]
1485: --psdir=DIR ps documentation [DOCDIR]
1486: _ACEOF
1487:
1488: cat <<\_ACEOF
1489:
1490: Program names:
1491: --program-prefix=PREFIX prepend PREFIX to installed program names
1492: --program-suffix=SUFFIX append SUFFIX to installed program names
1493: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494:
1495: System types:
1496: --build=BUILD configure for building on BUILD [guessed]
1497: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498: --target=TARGET configure for building compilers for TARGET [HOST]
1499: _ACEOF
1500: fi
1501:
1502: if test -n "$ac_init_help"; then
1503: case $ac_init_help in
1.1.1.3 ! misho 1504: short | recursive ) echo "Configuration of Quagga 0.99.21:";;
1.1 misho 1505: esac
1506: cat <<\_ACEOF
1507:
1508: Optional Features:
1509: --disable-option-checking ignore unrecognized --enable/--with options
1510: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512: --enable-exampledir specify alternate directory for examples
1513: --enable-pkgsrcrcdir specify directory for rc.d scripts
1514: --disable-dependency-tracking speeds up one-time build
1515: --enable-dependency-tracking do not reject slow dependency extractors
1516: --enable-shared[=PKGS] build shared libraries [default=yes]
1517: --enable-static[=PKGS] build static libraries [default=yes]
1518: --enable-fast-install[=PKGS]
1519: optimize for fast installation [default=yes]
1520: --disable-libtool-lock avoid locking (might break parallel builds)
1521: --enable-vtysh include integrated vty shell for Quagga
1522: --disable-ipv6 turn off IPv6 related features and daemons
1523: --disable-doc do not build docs
1524: --disable-zebra do not build zebra daemon
1525: --disable-bgpd do not build bgpd
1526: --disable-ripd do not build ripd
1527: --disable-ripngd do not build ripngd
1528: --disable-ospfd do not build ospfd
1529: --disable-ospf6d do not build ospf6d
1.1.1.3 ! misho 1530: --disable-babeld do not build babeld
1.1 misho 1531: --disable-watchquagga do not build watchquagga
1532: --enable-isisd build isisd
1533: --enable-solaris build solaris
1534: --disable-bgp-announce, turn off BGP route announcement
1535: --enable-netlink force to use Linux netlink interface
1536: --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
1537: --enable-snmp enable SNMP support
1538: --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon
1539: --disable-opaque-lsa do not build OSPF Opaque-LSA with OSPFAPI support
1540: (RFC2370)
1541: --disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database
1542: --disable-ospfclient do not build OSPFAPI client for OSPFAPI,
1543: (this is the default if --disable-ospfapi is set)
1544: --disable-ospf-te disable Traffic Engineering Extension to OSPF
1545: --enable-multipath=ARG enable multipath function, ARG must be digit
1546: --enable-user=user user to run Quagga suite as (default quagga)
1547: --enable-group=group group to run Quagga suite as (default quagga)
1548: --enable-vty-group=ARG set vty sockets to have specified group as owner
1549: --enable-configfile-mask=ARG set mask for config files
1550: --enable-logfile-mask=ARG set mask for log files
1551: --disable-rtadv disable IPV6 router advertisement feature
1552: --enable-irdp enable IRDP server support in zebra
1553: --enable-isis-topology enable IS-IS topology generator
1554: --disable-capabilities disable using POSIX capabilities
1555: --enable-gcc-ultra-verbose enable ultra verbose GCC warnings
1556: --enable-linux24-tcp-md5 enable support for old, Linux-2.4 RFC2385 patch
1557: --enable-gcc-rdynamic enable gcc linking with -rdynamic for better backtraces
1558: --disable-time-check disable slow thread warning messages
1559: --enable-pcreposix enable using PCRE Posix libs for regex functions
1560: --disable-largefile omit support for large files
1561: --disable-pie Do not build tools as a Position Independent
1562: Executables
1563:
1564: Optional Packages:
1565: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567: --with-cflags Set CFLAGS for use in compilation.
1.1.1.2 misho 1568: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.1 misho 1569: both]
1570: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1571: --with-sysroot=DIR Search for dependent libraries within DIR
1572: (or the compiler's sysroot if not specified).
1573: --without-crypto do not use libcrypto in SNMP
1574: --with-libpam use libpam for PAM support in vtysh
1575:
1576: Some influential environment variables:
1577: GAWK GNU AWK
1578: CC C compiler command
1579: CFLAGS C compiler flags
1580: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581: nonstandard directory <lib dir>
1582: LIBS libraries to pass to the linker, e.g. -l<library>
1583: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1584: you have headers in a nonstandard directory <include dir>
1585: CPP C preprocessor
1586:
1587: Use these variables to override the choices made by `configure' or to help
1588: it to find libraries and programs with nonstandard names/locations.
1589:
1590: Report bugs to <https://bugzilla.quagga.net>.
1591: _ACEOF
1592: ac_status=$?
1593: fi
1594:
1595: if test "$ac_init_help" = "recursive"; then
1596: # If there are subdirs, report their specific --help.
1597: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598: test -d "$ac_dir" ||
1599: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600: continue
1601: ac_builddir=.
1602:
1603: case "$ac_dir" in
1604: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605: *)
1606: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607: # A ".." for each directory in $ac_dir_suffix.
1608: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609: case $ac_top_builddir_sub in
1610: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612: esac ;;
1613: esac
1614: ac_abs_top_builddir=$ac_pwd
1615: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616: # for backward compatibility:
1617: ac_top_builddir=$ac_top_build_prefix
1618:
1619: case $srcdir in
1620: .) # We are building in place.
1621: ac_srcdir=.
1622: ac_top_srcdir=$ac_top_builddir_sub
1623: ac_abs_top_srcdir=$ac_pwd ;;
1624: [\\/]* | ?:[\\/]* ) # Absolute name.
1625: ac_srcdir=$srcdir$ac_dir_suffix;
1626: ac_top_srcdir=$srcdir
1627: ac_abs_top_srcdir=$srcdir ;;
1628: *) # Relative name.
1629: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630: ac_top_srcdir=$ac_top_build_prefix$srcdir
1631: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632: esac
1633: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634:
1635: cd "$ac_dir" || { ac_status=$?; continue; }
1636: # Check for guested configure.
1637: if test -f "$ac_srcdir/configure.gnu"; then
1638: echo &&
1639: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640: elif test -f "$ac_srcdir/configure"; then
1641: echo &&
1642: $SHELL "$ac_srcdir/configure" --help=recursive
1643: else
1644: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645: fi || ac_status=$?
1646: cd "$ac_pwd" || { ac_status=$?; break; }
1647: done
1648: fi
1649:
1650: test -n "$ac_init_help" && exit $ac_status
1651: if $ac_init_version; then
1652: cat <<\_ACEOF
1.1.1.3 ! misho 1653: Quagga configure 0.99.21
! 1654: generated by GNU Autoconf 2.69
1.1 misho 1655:
1.1.1.3 ! misho 1656: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 1657: This configure script is free software; the Free Software Foundation
1658: gives unlimited permission to copy, distribute and modify it.
1659: _ACEOF
1660: exit
1661: fi
1662:
1663: ## ------------------------ ##
1664: ## Autoconf initialization. ##
1665: ## ------------------------ ##
1666:
1667: # ac_fn_c_try_compile LINENO
1668: # --------------------------
1669: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670: ac_fn_c_try_compile ()
1671: {
1672: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673: rm -f conftest.$ac_objext
1674: if { { ac_try="$ac_compile"
1675: case "(($ac_try" in
1676: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677: *) ac_try_echo=$ac_try;;
1678: esac
1679: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680: $as_echo "$ac_try_echo"; } >&5
1681: (eval "$ac_compile") 2>conftest.err
1682: ac_status=$?
1683: if test -s conftest.err; then
1684: grep -v '^ *+' conftest.err >conftest.er1
1685: cat conftest.er1 >&5
1686: mv -f conftest.er1 conftest.err
1687: fi
1688: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689: test $ac_status = 0; } && {
1690: test -z "$ac_c_werror_flag" ||
1691: test ! -s conftest.err
1692: } && test -s conftest.$ac_objext; then :
1693: ac_retval=0
1694: else
1695: $as_echo "$as_me: failed program was:" >&5
1696: sed 's/^/| /' conftest.$ac_ext >&5
1697:
1698: ac_retval=1
1699: fi
1700: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701: as_fn_set_status $ac_retval
1702:
1703: } # ac_fn_c_try_compile
1704:
1705: # ac_fn_c_try_cpp LINENO
1706: # ----------------------
1707: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708: ac_fn_c_try_cpp ()
1709: {
1710: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711: if { { ac_try="$ac_cpp conftest.$ac_ext"
1712: case "(($ac_try" in
1713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714: *) ac_try_echo=$ac_try;;
1715: esac
1716: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717: $as_echo "$ac_try_echo"; } >&5
1718: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719: ac_status=$?
1720: if test -s conftest.err; then
1721: grep -v '^ *+' conftest.err >conftest.er1
1722: cat conftest.er1 >&5
1723: mv -f conftest.er1 conftest.err
1724: fi
1725: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726: test $ac_status = 0; } > conftest.i && {
1727: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728: test ! -s conftest.err
1729: }; then :
1730: ac_retval=0
1731: else
1732: $as_echo "$as_me: failed program was:" >&5
1733: sed 's/^/| /' conftest.$ac_ext >&5
1734:
1735: ac_retval=1
1736: fi
1737: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738: as_fn_set_status $ac_retval
1739:
1740: } # ac_fn_c_try_cpp
1741:
1742: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1743: # -------------------------------------------------------
1744: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1745: # the include files in INCLUDES and setting the cache variable VAR
1746: # accordingly.
1747: ac_fn_c_check_header_mongrel ()
1748: {
1749: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750: if eval \${$3+:} false; then :
1751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752: $as_echo_n "checking for $2... " >&6; }
1753: if eval \${$3+:} false; then :
1754: $as_echo_n "(cached) " >&6
1755: fi
1756: eval ac_res=\$$3
1757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758: $as_echo "$ac_res" >&6; }
1759: else
1760: # Is the header compilable?
1761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1762: $as_echo_n "checking $2 usability... " >&6; }
1763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764: /* end confdefs.h. */
1765: $4
1766: #include <$2>
1767: _ACEOF
1768: if ac_fn_c_try_compile "$LINENO"; then :
1769: ac_header_compiler=yes
1770: else
1771: ac_header_compiler=no
1772: fi
1773: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1775: $as_echo "$ac_header_compiler" >&6; }
1776:
1777: # Is the header present?
1778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1779: $as_echo_n "checking $2 presence... " >&6; }
1780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781: /* end confdefs.h. */
1782: #include <$2>
1783: _ACEOF
1784: if ac_fn_c_try_cpp "$LINENO"; then :
1785: ac_header_preproc=yes
1786: else
1787: ac_header_preproc=no
1788: fi
1789: rm -f conftest.err conftest.i conftest.$ac_ext
1790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1791: $as_echo "$ac_header_preproc" >&6; }
1792:
1793: # So? What about this header?
1794: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1795: yes:no: )
1796: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1797: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1798: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800: ;;
1801: no:yes:* )
1802: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1803: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1804: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1805: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1806: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1807: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1808: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1809: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1810: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812: ( $as_echo "## ------------------------------------------ ##
1813: ## Report this to https://bugzilla.quagga.net ##
1814: ## ------------------------------------------ ##"
1815: ) | sed "s/^/$as_me: WARNING: /" >&2
1816: ;;
1817: esac
1818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819: $as_echo_n "checking for $2... " >&6; }
1820: if eval \${$3+:} false; then :
1821: $as_echo_n "(cached) " >&6
1822: else
1823: eval "$3=\$ac_header_compiler"
1824: fi
1825: eval ac_res=\$$3
1826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827: $as_echo "$ac_res" >&6; }
1828: fi
1829: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830:
1831: } # ac_fn_c_check_header_mongrel
1832:
1833: # ac_fn_c_try_run LINENO
1834: # ----------------------
1835: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836: # that executables *can* be run.
1837: ac_fn_c_try_run ()
1838: {
1839: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840: if { { ac_try="$ac_link"
1841: case "(($ac_try" in
1842: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843: *) ac_try_echo=$ac_try;;
1844: esac
1845: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846: $as_echo "$ac_try_echo"; } >&5
1847: (eval "$ac_link") 2>&5
1848: ac_status=$?
1849: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851: { { case "(($ac_try" in
1852: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853: *) ac_try_echo=$ac_try;;
1854: esac
1855: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856: $as_echo "$ac_try_echo"; } >&5
1857: (eval "$ac_try") 2>&5
1858: ac_status=$?
1859: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860: test $ac_status = 0; }; }; then :
1861: ac_retval=0
1862: else
1863: $as_echo "$as_me: program exited with status $ac_status" >&5
1864: $as_echo "$as_me: failed program was:" >&5
1865: sed 's/^/| /' conftest.$ac_ext >&5
1866:
1867: ac_retval=$ac_status
1868: fi
1869: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871: as_fn_set_status $ac_retval
1872:
1873: } # ac_fn_c_try_run
1874:
1875: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1876: # -------------------------------------------------------
1877: # Tests whether HEADER exists and can be compiled using the include files in
1878: # INCLUDES, setting the cache variable VAR accordingly.
1879: ac_fn_c_check_header_compile ()
1880: {
1881: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883: $as_echo_n "checking for $2... " >&6; }
1884: if eval \${$3+:} false; then :
1885: $as_echo_n "(cached) " >&6
1886: else
1887: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888: /* end confdefs.h. */
1889: $4
1890: #include <$2>
1891: _ACEOF
1892: if ac_fn_c_try_compile "$LINENO"; then :
1893: eval "$3=yes"
1894: else
1895: eval "$3=no"
1896: fi
1897: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898: fi
1899: eval ac_res=\$$3
1900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901: $as_echo "$ac_res" >&6; }
1902: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903:
1904: } # ac_fn_c_check_header_compile
1905:
1906: # ac_fn_c_try_link LINENO
1907: # -----------------------
1908: # Try to link conftest.$ac_ext, and return whether this succeeded.
1909: ac_fn_c_try_link ()
1910: {
1911: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912: rm -f conftest.$ac_objext conftest$ac_exeext
1913: if { { ac_try="$ac_link"
1914: case "(($ac_try" in
1915: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916: *) ac_try_echo=$ac_try;;
1917: esac
1918: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919: $as_echo "$ac_try_echo"; } >&5
1920: (eval "$ac_link") 2>conftest.err
1921: ac_status=$?
1922: if test -s conftest.err; then
1923: grep -v '^ *+' conftest.err >conftest.er1
1924: cat conftest.er1 >&5
1925: mv -f conftest.er1 conftest.err
1926: fi
1927: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928: test $ac_status = 0; } && {
1929: test -z "$ac_c_werror_flag" ||
1930: test ! -s conftest.err
1931: } && test -s conftest$ac_exeext && {
1932: test "$cross_compiling" = yes ||
1.1.1.3 ! misho 1933: test -x conftest$ac_exeext
1.1 misho 1934: }; then :
1935: ac_retval=0
1936: else
1937: $as_echo "$as_me: failed program was:" >&5
1938: sed 's/^/| /' conftest.$ac_ext >&5
1939:
1940: ac_retval=1
1941: fi
1942: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944: # interfere with the next link command; also delete a directory that is
1945: # left behind by Apple's compiler. We do this before executing the actions.
1946: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948: as_fn_set_status $ac_retval
1949:
1950: } # ac_fn_c_try_link
1951:
1952: # ac_fn_c_check_func LINENO FUNC VAR
1953: # ----------------------------------
1954: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955: ac_fn_c_check_func ()
1956: {
1957: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959: $as_echo_n "checking for $2... " >&6; }
1960: if eval \${$3+:} false; then :
1961: $as_echo_n "(cached) " >&6
1962: else
1963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964: /* end confdefs.h. */
1965: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967: #define $2 innocuous_$2
1968:
1969: /* System header to define __stub macros and hopefully few prototypes,
1970: which can conflict with char $2 (); below.
1971: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972: <limits.h> exists even on freestanding compilers. */
1973:
1974: #ifdef __STDC__
1975: # include <limits.h>
1976: #else
1977: # include <assert.h>
1978: #endif
1979:
1980: #undef $2
1981:
1982: /* Override any GCC internal prototype to avoid an error.
1983: Use char because int might match the return type of a GCC
1984: builtin and then its argument prototype would still apply. */
1985: #ifdef __cplusplus
1986: extern "C"
1987: #endif
1988: char $2 ();
1989: /* The GNU C library defines this for functions which it implements
1990: to always fail with ENOSYS. Some functions are actually named
1991: something starting with __ and the normal name is an alias. */
1992: #if defined __stub_$2 || defined __stub___$2
1993: choke me
1994: #endif
1995:
1996: int
1997: main ()
1998: {
1999: return $2 ();
2000: ;
2001: return 0;
2002: }
2003: _ACEOF
2004: if ac_fn_c_try_link "$LINENO"; then :
2005: eval "$3=yes"
2006: else
2007: eval "$3=no"
2008: fi
2009: rm -f core conftest.err conftest.$ac_objext \
2010: conftest$ac_exeext conftest.$ac_ext
2011: fi
2012: eval ac_res=\$$3
2013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014: $as_echo "$ac_res" >&6; }
2015: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016:
2017: } # ac_fn_c_check_func
2018:
2019: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020: # -------------------------------------------
2021: # Tests whether TYPE exists after having included INCLUDES, setting cache
2022: # variable VAR accordingly.
2023: ac_fn_c_check_type ()
2024: {
2025: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027: $as_echo_n "checking for $2... " >&6; }
2028: if eval \${$3+:} false; then :
2029: $as_echo_n "(cached) " >&6
2030: else
2031: eval "$3=no"
2032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033: /* end confdefs.h. */
2034: $4
2035: int
2036: main ()
2037: {
2038: if (sizeof ($2))
2039: return 0;
2040: ;
2041: return 0;
2042: }
2043: _ACEOF
2044: if ac_fn_c_try_compile "$LINENO"; then :
2045: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046: /* end confdefs.h. */
2047: $4
2048: int
2049: main ()
2050: {
2051: if (sizeof (($2)))
2052: return 0;
2053: ;
2054: return 0;
2055: }
2056: _ACEOF
2057: if ac_fn_c_try_compile "$LINENO"; then :
2058:
2059: else
2060: eval "$3=yes"
2061: fi
2062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063: fi
2064: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065: fi
2066: eval ac_res=\$$3
2067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068: $as_echo "$ac_res" >&6; }
2069: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070:
2071: } # ac_fn_c_check_type
2072:
2073: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074: # ----------------------------------------------------
2075: # Tries to find if the field MEMBER exists in type AGGR, after including
2076: # INCLUDES, setting cache variable VAR accordingly.
2077: ac_fn_c_check_member ()
2078: {
2079: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081: $as_echo_n "checking for $2.$3... " >&6; }
2082: if eval \${$4+:} false; then :
2083: $as_echo_n "(cached) " >&6
2084: else
2085: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086: /* end confdefs.h. */
2087: $5
2088: int
2089: main ()
2090: {
2091: static $2 ac_aggr;
2092: if (ac_aggr.$3)
2093: return 0;
2094: ;
2095: return 0;
2096: }
2097: _ACEOF
2098: if ac_fn_c_try_compile "$LINENO"; then :
2099: eval "$4=yes"
2100: else
2101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102: /* end confdefs.h. */
2103: $5
2104: int
2105: main ()
2106: {
2107: static $2 ac_aggr;
2108: if (sizeof ac_aggr.$3)
2109: return 0;
2110: ;
2111: return 0;
2112: }
2113: _ACEOF
2114: if ac_fn_c_try_compile "$LINENO"; then :
2115: eval "$4=yes"
2116: else
2117: eval "$4=no"
2118: fi
2119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120: fi
2121: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122: fi
2123: eval ac_res=\$$4
2124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125: $as_echo "$ac_res" >&6; }
2126: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127:
2128: } # ac_fn_c_check_member
2129:
2130: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2131: # ---------------------------------------------
2132: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2133: # accordingly.
2134: ac_fn_c_check_decl ()
2135: {
2136: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137: as_decl_name=`echo $2|sed 's/ *(.*//'`
2138: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2141: if eval \${$3+:} false; then :
2142: $as_echo_n "(cached) " >&6
2143: else
2144: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145: /* end confdefs.h. */
2146: $4
2147: int
2148: main ()
2149: {
2150: #ifndef $as_decl_name
2151: #ifdef __cplusplus
2152: (void) $as_decl_use;
2153: #else
2154: (void) $as_decl_name;
2155: #endif
2156: #endif
2157:
2158: ;
2159: return 0;
2160: }
2161: _ACEOF
2162: if ac_fn_c_try_compile "$LINENO"; then :
2163: eval "$3=yes"
2164: else
2165: eval "$3=no"
2166: fi
2167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168: fi
2169: eval ac_res=\$$3
2170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171: $as_echo "$ac_res" >&6; }
2172: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173:
2174: } # ac_fn_c_check_decl
2175: cat >config.log <<_ACEOF
2176: This file contains any messages produced by compilers while
2177: running configure, to aid debugging if configure makes a mistake.
2178:
1.1.1.3 ! misho 2179: It was created by Quagga $as_me 0.99.21, which was
! 2180: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 2181:
2182: $ $0 $@
2183:
2184: _ACEOF
2185: exec 5>>config.log
2186: {
2187: cat <<_ASUNAME
2188: ## --------- ##
2189: ## Platform. ##
2190: ## --------- ##
2191:
2192: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197:
2198: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2200:
2201: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2202: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2203: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2205: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2206: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2207: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2208:
2209: _ASUNAME
2210:
2211: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212: for as_dir in $PATH
2213: do
2214: IFS=$as_save_IFS
2215: test -z "$as_dir" && as_dir=.
2216: $as_echo "PATH: $as_dir"
2217: done
2218: IFS=$as_save_IFS
2219:
2220: } >&5
2221:
2222: cat >&5 <<_ACEOF
2223:
2224:
2225: ## ----------- ##
2226: ## Core tests. ##
2227: ## ----------- ##
2228:
2229: _ACEOF
2230:
2231:
2232: # Keep a trace of the command line.
2233: # Strip out --no-create and --no-recursion so they do not pile up.
2234: # Strip out --silent because we don't want to record it for future runs.
2235: # Also quote any args containing shell meta-characters.
2236: # Make two passes to allow for proper duplicate-argument suppression.
2237: ac_configure_args=
2238: ac_configure_args0=
2239: ac_configure_args1=
2240: ac_must_keep_next=false
2241: for ac_pass in 1 2
2242: do
2243: for ac_arg
2244: do
2245: case $ac_arg in
2246: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248: | -silent | --silent | --silen | --sile | --sil)
2249: continue ;;
2250: *\'*)
2251: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252: esac
2253: case $ac_pass in
2254: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255: 2)
2256: as_fn_append ac_configure_args1 " '$ac_arg'"
2257: if test $ac_must_keep_next = true; then
2258: ac_must_keep_next=false # Got value, back to normal.
2259: else
2260: case $ac_arg in
2261: *=* | --config-cache | -C | -disable-* | --disable-* \
2262: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264: | -with-* | --with-* | -without-* | --without-* | --x)
2265: case "$ac_configure_args0 " in
2266: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267: esac
2268: ;;
2269: -* ) ac_must_keep_next=true ;;
2270: esac
2271: fi
2272: as_fn_append ac_configure_args " '$ac_arg'"
2273: ;;
2274: esac
2275: done
2276: done
2277: { ac_configure_args0=; unset ac_configure_args0;}
2278: { ac_configure_args1=; unset ac_configure_args1;}
2279:
2280: # When interrupted or exit'd, cleanup temporary files, and complete
2281: # config.log. We remove comments because anyway the quotes in there
2282: # would cause problems or look ugly.
2283: # WARNING: Use '\'' to represent an apostrophe within the trap.
2284: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285: trap 'exit_status=$?
2286: # Save into config.log some information that might help in debugging.
2287: {
2288: echo
2289:
2290: $as_echo "## ---------------- ##
2291: ## Cache variables. ##
2292: ## ---------------- ##"
2293: echo
2294: # The following way of writing the cache mishandles newlines in values,
2295: (
2296: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297: eval ac_val=\$$ac_var
2298: case $ac_val in #(
2299: *${as_nl}*)
2300: case $ac_var in #(
2301: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303: esac
2304: case $ac_var in #(
2305: _ | IFS | as_nl) ;; #(
2306: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307: *) { eval $ac_var=; unset $ac_var;} ;;
2308: esac ;;
2309: esac
2310: done
2311: (set) 2>&1 |
2312: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313: *${as_nl}ac_space=\ *)
2314: sed -n \
2315: "s/'\''/'\''\\\\'\'''\''/g;
2316: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317: ;; #(
2318: *)
2319: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320: ;;
2321: esac |
2322: sort
2323: )
2324: echo
2325:
2326: $as_echo "## ----------------- ##
2327: ## Output variables. ##
2328: ## ----------------- ##"
2329: echo
2330: for ac_var in $ac_subst_vars
2331: do
2332: eval ac_val=\$$ac_var
2333: case $ac_val in
2334: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335: esac
2336: $as_echo "$ac_var='\''$ac_val'\''"
2337: done | sort
2338: echo
2339:
2340: if test -n "$ac_subst_files"; then
2341: $as_echo "## ------------------- ##
2342: ## File substitutions. ##
2343: ## ------------------- ##"
2344: echo
2345: for ac_var in $ac_subst_files
2346: do
2347: eval ac_val=\$$ac_var
2348: case $ac_val in
2349: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350: esac
2351: $as_echo "$ac_var='\''$ac_val'\''"
2352: done | sort
2353: echo
2354: fi
2355:
2356: if test -s confdefs.h; then
2357: $as_echo "## ----------- ##
2358: ## confdefs.h. ##
2359: ## ----------- ##"
2360: echo
2361: cat confdefs.h
2362: echo
2363: fi
2364: test "$ac_signal" != 0 &&
2365: $as_echo "$as_me: caught signal $ac_signal"
2366: $as_echo "$as_me: exit $exit_status"
2367: } >&5
2368: rm -f core *.core core.conftest.* &&
2369: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370: exit $exit_status
2371: ' 0
2372: for ac_signal in 1 2 13 15; do
2373: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374: done
2375: ac_signal=0
2376:
2377: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378: rm -f -r conftest* confdefs.h
2379:
2380: $as_echo "/* confdefs.h */" > confdefs.h
2381:
2382: # Predefined preprocessor variables.
2383:
2384: cat >>confdefs.h <<_ACEOF
2385: #define PACKAGE_NAME "$PACKAGE_NAME"
2386: _ACEOF
2387:
2388: cat >>confdefs.h <<_ACEOF
2389: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390: _ACEOF
2391:
2392: cat >>confdefs.h <<_ACEOF
2393: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394: _ACEOF
2395:
2396: cat >>confdefs.h <<_ACEOF
2397: #define PACKAGE_STRING "$PACKAGE_STRING"
2398: _ACEOF
2399:
2400: cat >>confdefs.h <<_ACEOF
2401: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402: _ACEOF
2403:
2404: cat >>confdefs.h <<_ACEOF
2405: #define PACKAGE_URL "$PACKAGE_URL"
2406: _ACEOF
2407:
2408:
2409: # Let the site file select an alternate cache file if it wants to.
2410: # Prefer an explicitly selected file to automatically selected ones.
2411: ac_site_file1=NONE
2412: ac_site_file2=NONE
2413: if test -n "$CONFIG_SITE"; then
2414: # We do not want a PATH search for config.site.
2415: case $CONFIG_SITE in #((
2416: -*) ac_site_file1=./$CONFIG_SITE;;
2417: */*) ac_site_file1=$CONFIG_SITE;;
2418: *) ac_site_file1=./$CONFIG_SITE;;
2419: esac
2420: elif test "x$prefix" != xNONE; then
2421: ac_site_file1=$prefix/share/config.site
2422: ac_site_file2=$prefix/etc/config.site
2423: else
2424: ac_site_file1=$ac_default_prefix/share/config.site
2425: ac_site_file2=$ac_default_prefix/etc/config.site
2426: fi
2427: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428: do
2429: test "x$ac_site_file" = xNONE && continue
2430: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433: sed 's/^/| /' "$ac_site_file" >&5
2434: . "$ac_site_file" \
2435: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437: as_fn_error $? "failed to load site script $ac_site_file
2438: See \`config.log' for more details" "$LINENO" 5; }
2439: fi
2440: done
2441:
2442: if test -r "$cache_file"; then
2443: # Some versions of bash will fail to source /dev/null (special files
2444: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2445: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447: $as_echo "$as_me: loading cache $cache_file" >&6;}
2448: case $cache_file in
2449: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450: *) . "./$cache_file";;
2451: esac
2452: fi
2453: else
2454: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455: $as_echo "$as_me: creating cache $cache_file" >&6;}
2456: >$cache_file
2457: fi
2458:
2459: as_fn_append ac_header_list " sys/time.h"
2460: as_fn_append ac_header_list " unistd.h"
2461: as_fn_append ac_func_list " alarm"
2462: # Check that the precious variables saved in the cache have kept the same
2463: # value.
2464: ac_cache_corrupted=false
2465: for ac_var in $ac_precious_vars; do
2466: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467: eval ac_new_set=\$ac_env_${ac_var}_set
2468: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469: eval ac_new_val=\$ac_env_${ac_var}_value
2470: case $ac_old_set,$ac_new_set in
2471: set,)
2472: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474: ac_cache_corrupted=: ;;
2475: ,set)
2476: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478: ac_cache_corrupted=: ;;
2479: ,);;
2480: *)
2481: if test "x$ac_old_val" != "x$ac_new_val"; then
2482: # differences in whitespace do not lead to failure.
2483: ac_old_val_w=`echo x $ac_old_val`
2484: ac_new_val_w=`echo x $ac_new_val`
2485: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488: ac_cache_corrupted=:
2489: else
2490: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492: eval $ac_var=\$ac_old_val
2493: fi
2494: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2495: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2496: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2497: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2498: fi;;
2499: esac
2500: # Pass precious variables to config.status.
2501: if test "$ac_new_set" = set; then
2502: case $ac_new_val in
2503: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504: *) ac_arg=$ac_var=$ac_new_val ;;
2505: esac
2506: case " $ac_configure_args " in
2507: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2508: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509: esac
2510: fi
2511: done
2512: if $ac_cache_corrupted; then
2513: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2518: fi
2519: ## -------------------- ##
2520: ## Main body of script. ##
2521: ## -------------------- ##
2522:
2523: ac_ext=c
2524: ac_cpp='$CPP $CPPFLAGS'
2525: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528:
2529:
2530:
2531:
2532:
2533: ac_aux_dir=
2534: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2535: if test -f "$ac_dir/install-sh"; then
2536: ac_aux_dir=$ac_dir
2537: ac_install_sh="$ac_aux_dir/install-sh -c"
2538: break
2539: elif test -f "$ac_dir/install.sh"; then
2540: ac_aux_dir=$ac_dir
2541: ac_install_sh="$ac_aux_dir/install.sh -c"
2542: break
2543: elif test -f "$ac_dir/shtool"; then
2544: ac_aux_dir=$ac_dir
2545: ac_install_sh="$ac_aux_dir/shtool install -c"
2546: break
2547: fi
2548: done
2549: if test -z "$ac_aux_dir"; then
2550: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2551: fi
2552:
2553: # These three variables are undocumented and unsupported,
2554: # and are intended to be withdrawn in a future Autoconf release.
2555: # They can cause serious problems if a builder's source tree is in a directory
2556: # whose full name contains unusual characters.
2557: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2558: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2559: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2560:
2561:
2562: # Make sure we can run config.sub.
2563: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2564: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2565:
2566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2567: $as_echo_n "checking build system type... " >&6; }
2568: if ${ac_cv_build+:} false; then :
2569: $as_echo_n "(cached) " >&6
2570: else
2571: ac_build_alias=$build_alias
2572: test "x$ac_build_alias" = x &&
2573: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2574: test "x$ac_build_alias" = x &&
2575: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2576: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2577: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2578:
2579: fi
2580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2581: $as_echo "$ac_cv_build" >&6; }
2582: case $ac_cv_build in
2583: *-*-*) ;;
2584: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2585: esac
2586: build=$ac_cv_build
2587: ac_save_IFS=$IFS; IFS='-'
2588: set x $ac_cv_build
2589: shift
2590: build_cpu=$1
2591: build_vendor=$2
2592: shift; shift
2593: # Remember, the first character of IFS is used to create $*,
2594: # except with old shells:
2595: build_os=$*
2596: IFS=$ac_save_IFS
2597: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2598:
2599:
2600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2601: $as_echo_n "checking host system type... " >&6; }
2602: if ${ac_cv_host+:} false; then :
2603: $as_echo_n "(cached) " >&6
2604: else
2605: if test "x$host_alias" = x; then
2606: ac_cv_host=$ac_cv_build
2607: else
2608: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2609: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2610: fi
2611:
2612: fi
2613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2614: $as_echo "$ac_cv_host" >&6; }
2615: case $ac_cv_host in
2616: *-*-*) ;;
2617: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2618: esac
2619: host=$ac_cv_host
2620: ac_save_IFS=$IFS; IFS='-'
2621: set x $ac_cv_host
2622: shift
2623: host_cpu=$1
2624: host_vendor=$2
2625: shift; shift
2626: # Remember, the first character of IFS is used to create $*,
2627: # except with old shells:
2628: host_os=$*
2629: IFS=$ac_save_IFS
2630: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631:
2632:
2633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2634: $as_echo_n "checking target system type... " >&6; }
2635: if ${ac_cv_target+:} false; then :
2636: $as_echo_n "(cached) " >&6
2637: else
2638: if test "x$target_alias" = x; then
2639: ac_cv_target=$ac_cv_host
2640: else
2641: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2642: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2643: fi
2644:
2645: fi
2646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2647: $as_echo "$ac_cv_target" >&6; }
2648: case $ac_cv_target in
2649: *-*-*) ;;
2650: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2651: esac
2652: target=$ac_cv_target
2653: ac_save_IFS=$IFS; IFS='-'
2654: set x $ac_cv_target
2655: shift
2656: target_cpu=$1
2657: target_vendor=$2
2658: shift; shift
2659: # Remember, the first character of IFS is used to create $*,
2660: # except with old shells:
2661: target_os=$*
2662: IFS=$ac_save_IFS
2663: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2664:
2665:
2666: # The aliases save the names the user supplied, while $host etc.
2667: # will get canonicalized.
2668: test -n "$target_alias" &&
2669: test "$program_prefix$program_suffix$program_transform_name" = \
2670: NONENONEs,x,x, &&
2671: program_prefix=${target_alias}-
2672:
2673: am__api_version='1.11'
2674:
2675: # Find a good install program. We prefer a C program (faster),
2676: # so one script is as good as another. But avoid the broken or
2677: # incompatible versions:
2678: # SysV /etc/install, /usr/sbin/install
2679: # SunOS /usr/etc/install
2680: # IRIX /sbin/install
2681: # AIX /bin/install
2682: # AmigaOS /C/install, which installs bootblocks on floppy discs
2683: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2684: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2685: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2686: # OS/2's system install, which has a completely different semantic
2687: # ./install, which can be erroneously created by make from ./install.sh.
2688: # Reject install programs that cannot install multiple files.
2689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2690: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2691: if test -z "$INSTALL"; then
2692: if ${ac_cv_path_install+:} false; then :
2693: $as_echo_n "(cached) " >&6
2694: else
2695: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696: for as_dir in $PATH
2697: do
2698: IFS=$as_save_IFS
2699: test -z "$as_dir" && as_dir=.
2700: # Account for people who put trailing slashes in PATH elements.
2701: case $as_dir/ in #((
2702: ./ | .// | /[cC]/* | \
2703: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2704: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2705: /usr/ucb/* ) ;;
2706: *)
2707: # OSF1 and SCO ODT 3.0 have their own names for install.
2708: # Don't use installbsd from OSF since it installs stuff as root
2709: # by default.
2710: for ac_prog in ginstall scoinst install; do
2711: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2712: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misho 2713: if test $ac_prog = install &&
2714: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715: # AIX install. It has an incompatible calling convention.
2716: :
2717: elif test $ac_prog = install &&
2718: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2719: # program-specific install script used by HP pwplus--don't use.
2720: :
2721: else
2722: rm -rf conftest.one conftest.two conftest.dir
2723: echo one > conftest.one
2724: echo two > conftest.two
2725: mkdir conftest.dir
2726: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2727: test -s conftest.one && test -s conftest.two &&
2728: test -s conftest.dir/conftest.one &&
2729: test -s conftest.dir/conftest.two
2730: then
2731: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2732: break 3
2733: fi
2734: fi
2735: fi
2736: done
2737: done
2738: ;;
2739: esac
2740:
2741: done
2742: IFS=$as_save_IFS
2743:
2744: rm -rf conftest.one conftest.two conftest.dir
2745:
2746: fi
2747: if test "${ac_cv_path_install+set}" = set; then
2748: INSTALL=$ac_cv_path_install
2749: else
2750: # As a last resort, use the slow shell script. Don't cache a
2751: # value for INSTALL within a source directory, because that will
2752: # break other packages using the cache if that directory is
2753: # removed, or if the value is a relative name.
2754: INSTALL=$ac_install_sh
2755: fi
2756: fi
2757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2758: $as_echo "$INSTALL" >&6; }
2759:
2760: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761: # It thinks the first close brace ends the variable substitution.
2762: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763:
2764: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765:
2766: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767:
2768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2769: $as_echo_n "checking whether build environment is sane... " >&6; }
2770: # Just in case
2771: sleep 1
2772: echo timestamp > conftest.file
2773: # Reject unsafe characters in $srcdir or the absolute working directory
2774: # name. Accept space and tab only in the latter.
2775: am_lf='
2776: '
2777: case `pwd` in
2778: *[\\\"\#\$\&\'\`$am_lf]*)
2779: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2780: esac
2781: case $srcdir in
2782: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2783: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2784: esac
2785:
2786: # Do `set' in a subshell so we don't clobber the current shell's
2787: # arguments. Must try -L first in case configure is actually a
2788: # symlink; some systems play weird games with the mod time of symlinks
2789: # (eg FreeBSD returns the mod time of the symlink's containing
2790: # directory).
2791: if (
2792: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2793: if test "$*" = "X"; then
2794: # -L didn't work.
2795: set X `ls -t "$srcdir/configure" conftest.file`
2796: fi
2797: rm -f conftest.file
2798: if test "$*" != "X $srcdir/configure conftest.file" \
2799: && test "$*" != "X conftest.file $srcdir/configure"; then
2800:
2801: # If neither matched, then we have a broken ls. This can happen
2802: # if, for instance, CONFIG_SHELL is bash and it inherits a
2803: # broken ls alias from the environment. This has actually
2804: # happened. Such a system could not be considered "sane".
2805: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2806: alias in your environment" "$LINENO" 5
2807: fi
2808:
2809: test "$2" = conftest.file
2810: )
2811: then
2812: # Ok.
2813: :
2814: else
2815: as_fn_error $? "newly created file is older than distributed files!
2816: Check your system clock" "$LINENO" 5
2817: fi
2818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819: $as_echo "yes" >&6; }
2820: test "$program_prefix" != NONE &&
2821: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2822: # Use a double $ so make ignores it.
2823: test "$program_suffix" != NONE &&
2824: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2825: # Double any \ or $.
2826: # By default was `s,x,x', remove it if useless.
2827: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2828: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2829:
2830: # expand $ac_aux_dir to an absolute path
2831: am_aux_dir=`cd $ac_aux_dir && pwd`
2832:
2833: if test x"${MISSING+set}" != xset; then
2834: case $am_aux_dir in
2835: *\ * | *\ *)
2836: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2837: *)
2838: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2839: esac
2840: fi
2841: # Use eval to expand $SHELL
2842: if eval "$MISSING --run true"; then
2843: am_missing_run="$MISSING --run "
2844: else
2845: am_missing_run=
2846: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2847: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2848: fi
2849:
2850: if test x"${install_sh}" != xset; then
2851: case $am_aux_dir in
2852: *\ * | *\ *)
2853: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2854: *)
2855: install_sh="\${SHELL} $am_aux_dir/install-sh"
2856: esac
2857: fi
2858:
2859: # Installed binaries are usually stripped using `strip' when the user
2860: # run `make install-strip'. However `strip' might not be the right
2861: # tool to use in cross-compilation environments, therefore Automake
2862: # will honor the `STRIP' environment variable to overrule this program.
2863: if test "$cross_compiling" != no; then
2864: if test -n "$ac_tool_prefix"; then
2865: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866: set dummy ${ac_tool_prefix}strip; ac_word=$2
2867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868: $as_echo_n "checking for $ac_word... " >&6; }
2869: if ${ac_cv_prog_STRIP+:} false; then :
2870: $as_echo_n "(cached) " >&6
2871: else
2872: if test -n "$STRIP"; then
2873: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2874: else
2875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876: for as_dir in $PATH
2877: do
2878: IFS=$as_save_IFS
2879: test -z "$as_dir" && as_dir=.
2880: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2881: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2882: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2883: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884: break 2
2885: fi
2886: done
2887: done
2888: IFS=$as_save_IFS
2889:
2890: fi
2891: fi
2892: STRIP=$ac_cv_prog_STRIP
2893: if test -n "$STRIP"; then
2894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2895: $as_echo "$STRIP" >&6; }
2896: else
2897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898: $as_echo "no" >&6; }
2899: fi
2900:
2901:
2902: fi
2903: if test -z "$ac_cv_prog_STRIP"; then
2904: ac_ct_STRIP=$STRIP
2905: # Extract the first word of "strip", so it can be a program name with args.
2906: set dummy strip; ac_word=$2
2907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908: $as_echo_n "checking for $ac_word... " >&6; }
2909: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2910: $as_echo_n "(cached) " >&6
2911: else
2912: if test -n "$ac_ct_STRIP"; then
2913: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2914: else
2915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916: for as_dir in $PATH
2917: do
2918: IFS=$as_save_IFS
2919: test -z "$as_dir" && as_dir=.
2920: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2921: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2922: ac_cv_prog_ac_ct_STRIP="strip"
2923: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924: break 2
2925: fi
2926: done
2927: done
2928: IFS=$as_save_IFS
2929:
2930: fi
2931: fi
2932: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2933: if test -n "$ac_ct_STRIP"; then
2934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2935: $as_echo "$ac_ct_STRIP" >&6; }
2936: else
2937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938: $as_echo "no" >&6; }
2939: fi
2940:
2941: if test "x$ac_ct_STRIP" = x; then
2942: STRIP=":"
2943: else
2944: case $cross_compiling:$ac_tool_warned in
2945: yes:)
2946: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2947: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2948: ac_tool_warned=yes ;;
2949: esac
2950: STRIP=$ac_ct_STRIP
2951: fi
2952: else
2953: STRIP="$ac_cv_prog_STRIP"
2954: fi
2955:
2956: fi
2957: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2958:
2959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2960: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2961: if test -z "$MKDIR_P"; then
2962: if ${ac_cv_path_mkdir+:} false; then :
2963: $as_echo_n "(cached) " >&6
2964: else
2965: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2967: do
2968: IFS=$as_save_IFS
2969: test -z "$as_dir" && as_dir=.
2970: for ac_prog in mkdir gmkdir; do
2971: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2972: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.1 misho 2973: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2974: 'mkdir (GNU coreutils) '* | \
2975: 'mkdir (coreutils) '* | \
2976: 'mkdir (fileutils) '4.1*)
2977: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2978: break 3;;
2979: esac
2980: done
2981: done
2982: done
2983: IFS=$as_save_IFS
2984:
2985: fi
2986:
2987: test -d ./--version && rmdir ./--version
2988: if test "${ac_cv_path_mkdir+set}" = set; then
2989: MKDIR_P="$ac_cv_path_mkdir -p"
2990: else
2991: # As a last resort, use the slow shell script. Don't cache a
2992: # value for MKDIR_P within a source directory, because that will
2993: # break other packages using the cache if that directory is
2994: # removed, or if the value is a relative name.
2995: MKDIR_P="$ac_install_sh -d"
2996: fi
2997: fi
2998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2999: $as_echo "$MKDIR_P" >&6; }
3000:
3001: mkdir_p="$MKDIR_P"
3002: case $mkdir_p in
3003: [\\/$]* | ?:[\\/]*) ;;
3004: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3005: esac
3006:
3007: for ac_prog in gawk mawk nawk awk
3008: do
3009: # Extract the first word of "$ac_prog", so it can be a program name with args.
3010: set dummy $ac_prog; ac_word=$2
3011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012: $as_echo_n "checking for $ac_word... " >&6; }
3013: if ${ac_cv_prog_AWK+:} false; then :
3014: $as_echo_n "(cached) " >&6
3015: else
3016: if test -n "$AWK"; then
3017: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3018: else
3019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020: for as_dir in $PATH
3021: do
3022: IFS=$as_save_IFS
3023: test -z "$as_dir" && as_dir=.
3024: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3025: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3026: ac_cv_prog_AWK="$ac_prog"
3027: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028: break 2
3029: fi
3030: done
3031: done
3032: IFS=$as_save_IFS
3033:
3034: fi
3035: fi
3036: AWK=$ac_cv_prog_AWK
3037: if test -n "$AWK"; then
3038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3039: $as_echo "$AWK" >&6; }
3040: else
3041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042: $as_echo "no" >&6; }
3043: fi
3044:
3045:
3046: test -n "$AWK" && break
3047: done
3048:
3049: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3050: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3051: set x ${MAKE-make}
3052: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3053: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3054: $as_echo_n "(cached) " >&6
3055: else
3056: cat >conftest.make <<\_ACEOF
3057: SHELL = /bin/sh
3058: all:
3059: @echo '@@@%%%=$(MAKE)=@@@%%%'
3060: _ACEOF
3061: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3062: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3063: *@@@%%%=?*=@@@%%%*)
3064: eval ac_cv_prog_make_${ac_make}_set=yes;;
3065: *)
3066: eval ac_cv_prog_make_${ac_make}_set=no;;
3067: esac
3068: rm -f conftest.make
3069: fi
3070: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072: $as_echo "yes" >&6; }
3073: SET_MAKE=
3074: else
3075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076: $as_echo "no" >&6; }
3077: SET_MAKE="MAKE=${MAKE-make}"
3078: fi
3079:
3080: rm -rf .tst 2>/dev/null
3081: mkdir .tst 2>/dev/null
3082: if test -d .tst; then
3083: am__leading_dot=.
3084: else
3085: am__leading_dot=_
3086: fi
3087: rmdir .tst 2>/dev/null
3088:
3089: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3090: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3091: # is not polluted with repeated "-I."
3092: am__isrc=' -I$(srcdir)'
3093: # test to see if srcdir already configured
3094: if test -f $srcdir/config.status; then
3095: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3096: fi
3097: fi
3098:
3099: # test whether we have cygpath
3100: if test -z "$CYGPATH_W"; then
3101: if (cygpath --version) >/dev/null 2>/dev/null; then
3102: CYGPATH_W='cygpath -w'
3103: else
3104: CYGPATH_W=echo
3105: fi
3106: fi
3107:
3108:
3109: # Define the identity of the package.
3110: PACKAGE='quagga'
1.1.1.3 ! misho 3111: VERSION='0.99.21'
1.1 misho 3112:
3113:
3114: cat >>confdefs.h <<_ACEOF
3115: #define PACKAGE "$PACKAGE"
3116: _ACEOF
3117:
3118:
3119: cat >>confdefs.h <<_ACEOF
3120: #define VERSION "$VERSION"
3121: _ACEOF
3122:
3123: # Some tools Automake needs.
3124:
3125: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3126:
3127:
3128: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3129:
3130:
3131: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3132:
3133:
3134: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3135:
3136:
3137: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3138:
3139: # We need awk for the "check" target. The system "awk" is bad on
3140: # some platforms.
1.1.1.3 ! misho 3141: # Always define AMTAR for backward compatibility. Yes, it's still used
! 3142: # in the wild :-( We should find a proper way to deprecate it ...
! 3143: AMTAR='$${TAR-tar}'
1.1 misho 3144:
1.1.1.3 ! misho 3145: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1.1 misho 3146:
3147:
3148:
3149:
3150:
3151: ac_config_headers="$ac_config_headers config.h"
3152:
3153:
3154: # Extract the first word of "gawk", so it can be a program name with args.
3155: set dummy gawk; ac_word=$2
3156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157: $as_echo_n "checking for $ac_word... " >&6; }
3158: if ${ac_cv_prog_GAWK+:} false; then :
3159: $as_echo_n "(cached) " >&6
3160: else
3161: if test -n "$GAWK"; then
3162: ac_cv_prog_GAWK="$GAWK" # Let the user override the test.
3163: else
3164: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165: for as_dir in $PATH
3166: do
3167: IFS=$as_save_IFS
3168: test -z "$as_dir" && as_dir=.
3169: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3170: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3171: ac_cv_prog_GAWK="gawk"
3172: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173: break 2
3174: fi
3175: done
3176: done
3177: IFS=$as_save_IFS
3178:
3179: test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="not-in-PATH"
3180: fi
3181: fi
3182: GAWK=$ac_cv_prog_GAWK
3183: if test -n "$GAWK"; then
3184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5
3185: $as_echo "$GAWK" >&6; }
3186: else
3187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188: $as_echo "no" >&6; }
3189: fi
3190:
3191:
3192: if test "x$GAWK" = "xnot-in-PATH" ; then
3193: as_fn_error $? "GNU awk is required for lib/memtype.h made by memtypes.awk.
3194: BSD awk complains: awk: gensub doesn't support backreferences (subst \"\1\") " "$LINENO" 5
3195: fi
3196:
3197:
3198: exampledir=${sysconfdir}
3199: # Check whether --enable-exampledir was given.
3200: if test "${enable_exampledir+set}" = set; then :
3201: enableval=$enable_exampledir; exampledir="$enableval"
3202: fi
3203:
3204:
3205:
3206: pkgsrcrcdir=""
3207: pkgsrcdir=""
3208: # Check whether --enable-pkgsrcrcdir was given.
3209: if test "${enable_pkgsrcrcdir+set}" = set; then :
3210: enableval=$enable_pkgsrcrcdir; pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc"
3211: fi
3212:
3213:
3214:
3215:
3216:
3217: # Check whether --with-cflags was given.
3218: if test "${with_cflags+set}" = set; then :
3219: withval=$with_cflags;
3220: fi
3221:
3222: if test "x$with_cflags" != "x" ; then
3223: CFLAGS="$with_cflags" ; cflags_specified=yes ;
3224: elif test -n "$CFLAGS" ; then
3225: cflags_specified=yes ;
3226: fi
3227:
3228: ac_ext=c
3229: ac_cpp='$CPP $CPPFLAGS'
3230: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233:
3234: ac_ext=c
3235: ac_cpp='$CPP $CPPFLAGS'
3236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239: if test -n "$ac_tool_prefix"; then
3240: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3241: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243: $as_echo_n "checking for $ac_word... " >&6; }
3244: if ${ac_cv_prog_CC+:} false; then :
3245: $as_echo_n "(cached) " >&6
3246: else
3247: if test -n "$CC"; then
3248: ac_cv_prog_CC="$CC" # Let the user override the test.
3249: else
3250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251: for as_dir in $PATH
3252: do
3253: IFS=$as_save_IFS
3254: test -z "$as_dir" && as_dir=.
3255: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3256: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3257: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3258: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259: break 2
3260: fi
3261: done
3262: done
3263: IFS=$as_save_IFS
3264:
3265: fi
3266: fi
3267: CC=$ac_cv_prog_CC
3268: if test -n "$CC"; then
3269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270: $as_echo "$CC" >&6; }
3271: else
3272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273: $as_echo "no" >&6; }
3274: fi
3275:
3276:
3277: fi
3278: if test -z "$ac_cv_prog_CC"; then
3279: ac_ct_CC=$CC
3280: # Extract the first word of "gcc", so it can be a program name with args.
3281: set dummy gcc; ac_word=$2
3282: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283: $as_echo_n "checking for $ac_word... " >&6; }
3284: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3285: $as_echo_n "(cached) " >&6
3286: else
3287: if test -n "$ac_ct_CC"; then
3288: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289: else
3290: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291: for as_dir in $PATH
3292: do
3293: IFS=$as_save_IFS
3294: test -z "$as_dir" && as_dir=.
3295: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3296: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3297: ac_cv_prog_ac_ct_CC="gcc"
3298: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299: break 2
3300: fi
3301: done
3302: done
3303: IFS=$as_save_IFS
3304:
3305: fi
3306: fi
3307: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308: if test -n "$ac_ct_CC"; then
3309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310: $as_echo "$ac_ct_CC" >&6; }
3311: else
3312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313: $as_echo "no" >&6; }
3314: fi
3315:
3316: if test "x$ac_ct_CC" = x; then
3317: CC=""
3318: else
3319: case $cross_compiling:$ac_tool_warned in
3320: yes:)
3321: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3322: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3323: ac_tool_warned=yes ;;
3324: esac
3325: CC=$ac_ct_CC
3326: fi
3327: else
3328: CC="$ac_cv_prog_CC"
3329: fi
3330:
3331: if test -z "$CC"; then
3332: if test -n "$ac_tool_prefix"; then
3333: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3334: set dummy ${ac_tool_prefix}cc; ac_word=$2
3335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336: $as_echo_n "checking for $ac_word... " >&6; }
3337: if ${ac_cv_prog_CC+:} false; then :
3338: $as_echo_n "(cached) " >&6
3339: else
3340: if test -n "$CC"; then
3341: ac_cv_prog_CC="$CC" # Let the user override the test.
3342: else
3343: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344: for as_dir in $PATH
3345: do
3346: IFS=$as_save_IFS
3347: test -z "$as_dir" && as_dir=.
3348: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3349: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3350: ac_cv_prog_CC="${ac_tool_prefix}cc"
3351: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352: break 2
3353: fi
3354: done
3355: done
3356: IFS=$as_save_IFS
3357:
3358: fi
3359: fi
3360: CC=$ac_cv_prog_CC
3361: if test -n "$CC"; then
3362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363: $as_echo "$CC" >&6; }
3364: else
3365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366: $as_echo "no" >&6; }
3367: fi
3368:
3369:
3370: fi
3371: fi
3372: if test -z "$CC"; then
3373: # Extract the first word of "cc", so it can be a program name with args.
3374: set dummy cc; ac_word=$2
3375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376: $as_echo_n "checking for $ac_word... " >&6; }
3377: if ${ac_cv_prog_CC+:} false; then :
3378: $as_echo_n "(cached) " >&6
3379: else
3380: if test -n "$CC"; then
3381: ac_cv_prog_CC="$CC" # Let the user override the test.
3382: else
3383: ac_prog_rejected=no
3384: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385: for as_dir in $PATH
3386: do
3387: IFS=$as_save_IFS
3388: test -z "$as_dir" && as_dir=.
3389: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3390: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3391: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392: ac_prog_rejected=yes
3393: continue
3394: fi
3395: ac_cv_prog_CC="cc"
3396: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397: break 2
3398: fi
3399: done
3400: done
3401: IFS=$as_save_IFS
3402:
3403: if test $ac_prog_rejected = yes; then
3404: # We found a bogon in the path, so make sure we never use it.
3405: set dummy $ac_cv_prog_CC
3406: shift
3407: if test $# != 0; then
3408: # We chose a different compiler from the bogus one.
3409: # However, it has the same basename, so the bogon will be chosen
3410: # first if we set CC to just the basename; use the full file name.
3411: shift
3412: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3413: fi
3414: fi
3415: fi
3416: fi
3417: CC=$ac_cv_prog_CC
3418: if test -n "$CC"; then
3419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420: $as_echo "$CC" >&6; }
3421: else
3422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423: $as_echo "no" >&6; }
3424: fi
3425:
3426:
3427: fi
3428: if test -z "$CC"; then
3429: if test -n "$ac_tool_prefix"; then
3430: for ac_prog in cl.exe
3431: do
3432: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435: $as_echo_n "checking for $ac_word... " >&6; }
3436: if ${ac_cv_prog_CC+:} false; then :
3437: $as_echo_n "(cached) " >&6
3438: else
3439: if test -n "$CC"; then
3440: ac_cv_prog_CC="$CC" # Let the user override the test.
3441: else
3442: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443: for as_dir in $PATH
3444: do
3445: IFS=$as_save_IFS
3446: test -z "$as_dir" && as_dir=.
3447: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3448: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3449: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3450: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451: break 2
3452: fi
3453: done
3454: done
3455: IFS=$as_save_IFS
3456:
3457: fi
3458: fi
3459: CC=$ac_cv_prog_CC
3460: if test -n "$CC"; then
3461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462: $as_echo "$CC" >&6; }
3463: else
3464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465: $as_echo "no" >&6; }
3466: fi
3467:
3468:
3469: test -n "$CC" && break
3470: done
3471: fi
3472: if test -z "$CC"; then
3473: ac_ct_CC=$CC
3474: for ac_prog in cl.exe
3475: do
3476: # Extract the first word of "$ac_prog", so it can be a program name with args.
3477: set dummy $ac_prog; ac_word=$2
3478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479: $as_echo_n "checking for $ac_word... " >&6; }
3480: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3481: $as_echo_n "(cached) " >&6
3482: else
3483: if test -n "$ac_ct_CC"; then
3484: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3485: else
3486: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487: for as_dir in $PATH
3488: do
3489: IFS=$as_save_IFS
3490: test -z "$as_dir" && as_dir=.
3491: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3492: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3493: ac_cv_prog_ac_ct_CC="$ac_prog"
3494: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495: break 2
3496: fi
3497: done
3498: done
3499: IFS=$as_save_IFS
3500:
3501: fi
3502: fi
3503: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504: if test -n "$ac_ct_CC"; then
3505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506: $as_echo "$ac_ct_CC" >&6; }
3507: else
3508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509: $as_echo "no" >&6; }
3510: fi
3511:
3512:
3513: test -n "$ac_ct_CC" && break
3514: done
3515:
3516: if test "x$ac_ct_CC" = x; then
3517: CC=""
3518: else
3519: case $cross_compiling:$ac_tool_warned in
3520: yes:)
3521: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523: ac_tool_warned=yes ;;
3524: esac
3525: CC=$ac_ct_CC
3526: fi
3527: fi
3528:
3529: fi
3530:
3531:
3532: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534: as_fn_error $? "no acceptable C compiler found in \$PATH
3535: See \`config.log' for more details" "$LINENO" 5; }
3536:
3537: # Provide some information about the compiler.
3538: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3539: set X $ac_compile
3540: ac_compiler=$2
3541: for ac_option in --version -v -V -qversion; do
3542: { { ac_try="$ac_compiler $ac_option >&5"
3543: case "(($ac_try" in
3544: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545: *) ac_try_echo=$ac_try;;
3546: esac
3547: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548: $as_echo "$ac_try_echo"; } >&5
3549: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3550: ac_status=$?
3551: if test -s conftest.err; then
3552: sed '10a\
3553: ... rest of stderr output deleted ...
3554: 10q' conftest.err >conftest.er1
3555: cat conftest.er1 >&5
3556: fi
3557: rm -f conftest.er1 conftest.err
3558: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559: test $ac_status = 0; }
3560: done
3561:
3562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563: /* end confdefs.h. */
3564:
3565: int
3566: main ()
3567: {
3568:
3569: ;
3570: return 0;
3571: }
3572: _ACEOF
3573: ac_clean_files_save=$ac_clean_files
3574: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3575: # Try to create an executable without -o first, disregard a.out.
3576: # It will help us diagnose broken compilers, and finding out an intuition
3577: # of exeext.
3578: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3579: $as_echo_n "checking whether the C compiler works... " >&6; }
3580: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3581:
3582: # The possible output files:
3583: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3584:
3585: ac_rmfiles=
3586: for ac_file in $ac_files
3587: do
3588: case $ac_file in
3589: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591: esac
3592: done
3593: rm -f $ac_rmfiles
3594:
3595: if { { ac_try="$ac_link_default"
3596: case "(($ac_try" in
3597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598: *) ac_try_echo=$ac_try;;
3599: esac
3600: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601: $as_echo "$ac_try_echo"; } >&5
3602: (eval "$ac_link_default") 2>&5
3603: ac_status=$?
3604: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605: test $ac_status = 0; }; then :
3606: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3607: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3608: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3609: # so that the user can short-circuit this test for compilers unknown to
3610: # Autoconf.
3611: for ac_file in $ac_files ''
3612: do
3613: test -f "$ac_file" || continue
3614: case $ac_file in
3615: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3616: ;;
3617: [ab].out )
3618: # We found the default executable, but exeext='' is most
3619: # certainly right.
3620: break;;
3621: *.* )
3622: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3623: then :; else
3624: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625: fi
3626: # We set ac_cv_exeext here because the later test for it is not
3627: # safe: cross compilers may not add the suffix if given an `-o'
3628: # argument, so we may need to know it at that point already.
3629: # Even if this section looks crufty: it has the advantage of
3630: # actually working.
3631: break;;
3632: * )
3633: break;;
3634: esac
3635: done
3636: test "$ac_cv_exeext" = no && ac_cv_exeext=
3637:
3638: else
3639: ac_file=''
3640: fi
3641: if test -z "$ac_file"; then :
3642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643: $as_echo "no" >&6; }
3644: $as_echo "$as_me: failed program was:" >&5
3645: sed 's/^/| /' conftest.$ac_ext >&5
3646:
3647: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649: as_fn_error 77 "C compiler cannot create executables
3650: See \`config.log' for more details" "$LINENO" 5; }
3651: else
3652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653: $as_echo "yes" >&6; }
3654: fi
3655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3656: $as_echo_n "checking for C compiler default output file name... " >&6; }
3657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3658: $as_echo "$ac_file" >&6; }
3659: ac_exeext=$ac_cv_exeext
3660:
3661: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3662: ac_clean_files=$ac_clean_files_save
3663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3664: $as_echo_n "checking for suffix of executables... " >&6; }
3665: if { { ac_try="$ac_link"
3666: case "(($ac_try" in
3667: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668: *) ac_try_echo=$ac_try;;
3669: esac
3670: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671: $as_echo "$ac_try_echo"; } >&5
3672: (eval "$ac_link") 2>&5
3673: ac_status=$?
3674: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675: test $ac_status = 0; }; then :
3676: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3678: # work properly (i.e., refer to `conftest.exe'), while it won't with
3679: # `rm'.
3680: for ac_file in conftest.exe conftest conftest.*; do
3681: test -f "$ac_file" || continue
3682: case $ac_file in
3683: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685: break;;
3686: * ) break;;
3687: esac
3688: done
3689: else
3690: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3693: See \`config.log' for more details" "$LINENO" 5; }
3694: fi
3695: rm -f conftest conftest$ac_cv_exeext
3696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3697: $as_echo "$ac_cv_exeext" >&6; }
3698:
3699: rm -f conftest.$ac_ext
3700: EXEEXT=$ac_cv_exeext
3701: ac_exeext=$EXEEXT
3702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703: /* end confdefs.h. */
3704: #include <stdio.h>
3705: int
3706: main ()
3707: {
3708: FILE *f = fopen ("conftest.out", "w");
3709: return ferror (f) || fclose (f) != 0;
3710:
3711: ;
3712: return 0;
3713: }
3714: _ACEOF
3715: ac_clean_files="$ac_clean_files conftest.out"
3716: # Check that the compiler produces executables we can run. If not, either
3717: # the compiler is broken, or we cross compile.
3718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3719: $as_echo_n "checking whether we are cross compiling... " >&6; }
3720: if test "$cross_compiling" != yes; then
3721: { { ac_try="$ac_link"
3722: case "(($ac_try" in
3723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724: *) ac_try_echo=$ac_try;;
3725: esac
3726: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727: $as_echo "$ac_try_echo"; } >&5
3728: (eval "$ac_link") 2>&5
3729: ac_status=$?
3730: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731: test $ac_status = 0; }
3732: if { ac_try='./conftest$ac_cv_exeext'
3733: { { case "(($ac_try" in
3734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735: *) ac_try_echo=$ac_try;;
3736: esac
3737: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738: $as_echo "$ac_try_echo"; } >&5
3739: (eval "$ac_try") 2>&5
3740: ac_status=$?
3741: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742: test $ac_status = 0; }; }; then
3743: cross_compiling=no
3744: else
3745: if test "$cross_compiling" = maybe; then
3746: cross_compiling=yes
3747: else
3748: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750: as_fn_error $? "cannot run C compiled programs.
3751: If you meant to cross compile, use \`--host'.
3752: See \`config.log' for more details" "$LINENO" 5; }
3753: fi
3754: fi
3755: fi
3756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3757: $as_echo "$cross_compiling" >&6; }
3758:
3759: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3760: ac_clean_files=$ac_clean_files_save
3761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3762: $as_echo_n "checking for suffix of object files... " >&6; }
3763: if ${ac_cv_objext+:} false; then :
3764: $as_echo_n "(cached) " >&6
3765: else
3766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767: /* end confdefs.h. */
3768:
3769: int
3770: main ()
3771: {
3772:
3773: ;
3774: return 0;
3775: }
3776: _ACEOF
3777: rm -f conftest.o conftest.obj
3778: if { { ac_try="$ac_compile"
3779: case "(($ac_try" in
3780: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781: *) ac_try_echo=$ac_try;;
3782: esac
3783: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784: $as_echo "$ac_try_echo"; } >&5
3785: (eval "$ac_compile") 2>&5
3786: ac_status=$?
3787: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788: test $ac_status = 0; }; then :
3789: for ac_file in conftest.o conftest.obj conftest.*; do
3790: test -f "$ac_file" || continue;
3791: case $ac_file in
3792: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3793: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3794: break;;
3795: esac
3796: done
3797: else
3798: $as_echo "$as_me: failed program was:" >&5
3799: sed 's/^/| /' conftest.$ac_ext >&5
3800:
3801: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803: as_fn_error $? "cannot compute suffix of object files: cannot compile
3804: See \`config.log' for more details" "$LINENO" 5; }
3805: fi
3806: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3807: fi
3808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3809: $as_echo "$ac_cv_objext" >&6; }
3810: OBJEXT=$ac_cv_objext
3811: ac_objext=$OBJEXT
3812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3813: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3814: if ${ac_cv_c_compiler_gnu+:} false; then :
3815: $as_echo_n "(cached) " >&6
3816: else
3817: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818: /* end confdefs.h. */
3819:
3820: int
3821: main ()
3822: {
3823: #ifndef __GNUC__
3824: choke me
3825: #endif
3826:
3827: ;
3828: return 0;
3829: }
3830: _ACEOF
3831: if ac_fn_c_try_compile "$LINENO"; then :
3832: ac_compiler_gnu=yes
3833: else
3834: ac_compiler_gnu=no
3835: fi
3836: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3838:
3839: fi
3840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3841: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3842: if test $ac_compiler_gnu = yes; then
3843: GCC=yes
3844: else
3845: GCC=
3846: fi
3847: ac_test_CFLAGS=${CFLAGS+set}
3848: ac_save_CFLAGS=$CFLAGS
3849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3850: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3851: if ${ac_cv_prog_cc_g+:} false; then :
3852: $as_echo_n "(cached) " >&6
3853: else
3854: ac_save_c_werror_flag=$ac_c_werror_flag
3855: ac_c_werror_flag=yes
3856: ac_cv_prog_cc_g=no
3857: CFLAGS="-g"
3858: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859: /* end confdefs.h. */
3860:
3861: int
3862: main ()
3863: {
3864:
3865: ;
3866: return 0;
3867: }
3868: _ACEOF
3869: if ac_fn_c_try_compile "$LINENO"; then :
3870: ac_cv_prog_cc_g=yes
3871: else
3872: CFLAGS=""
3873: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874: /* end confdefs.h. */
3875:
3876: int
3877: main ()
3878: {
3879:
3880: ;
3881: return 0;
3882: }
3883: _ACEOF
3884: if ac_fn_c_try_compile "$LINENO"; then :
3885:
3886: else
3887: ac_c_werror_flag=$ac_save_c_werror_flag
3888: CFLAGS="-g"
3889: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890: /* end confdefs.h. */
3891:
3892: int
3893: main ()
3894: {
3895:
3896: ;
3897: return 0;
3898: }
3899: _ACEOF
3900: if ac_fn_c_try_compile "$LINENO"; then :
3901: ac_cv_prog_cc_g=yes
3902: fi
3903: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904: fi
3905: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906: fi
3907: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908: ac_c_werror_flag=$ac_save_c_werror_flag
3909: fi
3910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3911: $as_echo "$ac_cv_prog_cc_g" >&6; }
3912: if test "$ac_test_CFLAGS" = set; then
3913: CFLAGS=$ac_save_CFLAGS
3914: elif test $ac_cv_prog_cc_g = yes; then
3915: if test "$GCC" = yes; then
3916: CFLAGS="-g -O2"
3917: else
3918: CFLAGS="-g"
3919: fi
3920: else
3921: if test "$GCC" = yes; then
3922: CFLAGS="-O2"
3923: else
3924: CFLAGS=
3925: fi
3926: fi
3927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3928: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3929: if ${ac_cv_prog_cc_c89+:} false; then :
3930: $as_echo_n "(cached) " >&6
3931: else
3932: ac_cv_prog_cc_c89=no
3933: ac_save_CC=$CC
3934: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935: /* end confdefs.h. */
3936: #include <stdarg.h>
3937: #include <stdio.h>
1.1.1.3 ! misho 3938: struct stat;
1.1 misho 3939: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3940: struct buf { int x; };
3941: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942: static char *e (p, i)
3943: char **p;
3944: int i;
3945: {
3946: return p[i];
3947: }
3948: static char *f (char * (*g) (char **, int), char **p, ...)
3949: {
3950: char *s;
3951: va_list v;
3952: va_start (v,p);
3953: s = g (p, va_arg (v,int));
3954: va_end (v);
3955: return s;
3956: }
3957:
3958: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3959: function prototypes and stuff, but not '\xHH' hex character constants.
3960: These don't provoke an error unfortunately, instead are silently treated
3961: as 'x'. The following induces an error, until -std is added to get
3962: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3963: array size at least. It's necessary to write '\x00'==0 to get something
3964: that's true only with -std. */
3965: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3966:
3967: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3968: inside strings and character constants. */
3969: #define FOO(x) 'x'
3970: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3971:
3972: int test (int i, double x);
3973: struct s1 {int (*f) (int a);};
3974: struct s2 {int (*f) (double a);};
3975: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976: int argc;
3977: char **argv;
3978: int
3979: main ()
3980: {
3981: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3982: ;
3983: return 0;
3984: }
3985: _ACEOF
3986: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3987: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3988: do
3989: CC="$ac_save_CC $ac_arg"
3990: if ac_fn_c_try_compile "$LINENO"; then :
3991: ac_cv_prog_cc_c89=$ac_arg
3992: fi
3993: rm -f core conftest.err conftest.$ac_objext
3994: test "x$ac_cv_prog_cc_c89" != "xno" && break
3995: done
3996: rm -f conftest.$ac_ext
3997: CC=$ac_save_CC
3998:
3999: fi
4000: # AC_CACHE_VAL
4001: case "x$ac_cv_prog_cc_c89" in
4002: x)
4003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4004: $as_echo "none needed" >&6; } ;;
4005: xno)
4006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4007: $as_echo "unsupported" >&6; } ;;
4008: *)
4009: CC="$CC $ac_cv_prog_cc_c89"
4010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4011: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4012: esac
4013: if test "x$ac_cv_prog_cc_c89" != xno; then :
4014:
4015: fi
4016:
4017: ac_ext=c
4018: ac_cpp='$CPP $CPPFLAGS'
4019: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022: DEPDIR="${am__leading_dot}deps"
4023:
4024: ac_config_commands="$ac_config_commands depfiles"
4025:
4026:
4027: am_make=${MAKE-make}
4028: cat > confinc << 'END'
4029: am__doit:
4030: @echo this is the am__doit target
4031: .PHONY: am__doit
4032: END
4033: # If we don't find an include directive, just comment out the code.
4034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4035: $as_echo_n "checking for style of include used by $am_make... " >&6; }
4036: am__include="#"
4037: am__quote=
4038: _am_result=none
4039: # First try GNU make style include.
4040: echo "include confinc" > confmf
4041: # Ignore all kinds of additional output from `make'.
4042: case `$am_make -s -f confmf 2> /dev/null` in #(
4043: *the\ am__doit\ target*)
4044: am__include=include
4045: am__quote=
4046: _am_result=GNU
4047: ;;
4048: esac
4049: # Now try BSD make style include.
4050: if test "$am__include" = "#"; then
4051: echo '.include "confinc"' > confmf
4052: case `$am_make -s -f confmf 2> /dev/null` in #(
4053: *the\ am__doit\ target*)
4054: am__include=.include
4055: am__quote="\""
4056: _am_result=BSD
4057: ;;
4058: esac
4059: fi
4060:
4061:
4062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4063: $as_echo "$_am_result" >&6; }
4064: rm -f confinc confmf
4065:
4066: # Check whether --enable-dependency-tracking was given.
4067: if test "${enable_dependency_tracking+set}" = set; then :
4068: enableval=$enable_dependency_tracking;
4069: fi
4070:
4071: if test "x$enable_dependency_tracking" != xno; then
4072: am_depcomp="$ac_aux_dir/depcomp"
4073: AMDEPBACKSLASH='\'
1.1.1.2 misho 4074: am__nodep='_no'
1.1 misho 4075: fi
4076: if test "x$enable_dependency_tracking" != xno; then
4077: AMDEP_TRUE=
4078: AMDEP_FALSE='#'
4079: else
4080: AMDEP_TRUE='#'
4081: AMDEP_FALSE=
4082: fi
4083:
4084:
4085:
4086: depcc="$CC" am_compiler_list=
4087:
4088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4089: $as_echo_n "checking dependency style of $depcc... " >&6; }
4090: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4091: $as_echo_n "(cached) " >&6
4092: else
4093: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094: # We make a subdir and do the tests there. Otherwise we can end up
4095: # making bogus files that we don't know about and never remove. For
4096: # instance it was reported that on HP-UX the gcc test will end up
4097: # making a dummy file named `D' -- because `-MD' means `put the output
4098: # in D'.
1.1.1.2 misho 4099: rm -rf conftest.dir
1.1 misho 4100: mkdir conftest.dir
4101: # Copy depcomp to subdir because otherwise we won't find it if we're
4102: # using a relative directory.
4103: cp "$am_depcomp" conftest.dir
4104: cd conftest.dir
4105: # We will build objects and dependencies in a subdirectory because
4106: # it helps to detect inapplicable dependency modes. For instance
4107: # both Tru64's cc and ICC support -MD to output dependencies as a
4108: # side effect of compilation, but ICC will put the dependencies in
4109: # the current directory while Tru64 will put them in the object
4110: # directory.
4111: mkdir sub
4112:
4113: am_cv_CC_dependencies_compiler_type=none
4114: if test "$am_compiler_list" = ""; then
4115: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4116: fi
4117: am__universal=false
4118: case " $depcc " in #(
4119: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4120: esac
4121:
4122: for depmode in $am_compiler_list; do
4123: # Setup a source with many dependencies, because some compilers
4124: # like to wrap large dependency lists on column 80 (with \), and
4125: # we should not choose a depcomp mode which is confused by this.
4126: #
4127: # We need to recreate these files for each test, as the compiler may
4128: # overwrite some of them when testing with obscure command lines.
4129: # This happens at least with the AIX C compiler.
4130: : > sub/conftest.c
4131: for i in 1 2 3 4 5 6; do
4132: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4133: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4134: # Solaris 8's {/usr,}/bin/sh.
4135: touch sub/conftst$i.h
4136: done
4137: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4138:
4139: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4140: # mode. It turns out that the SunPro C++ compiler does not properly
4141: # handle `-M -o', and we need to detect this. Also, some Intel
4142: # versions had trouble with output in subdirs
4143: am__obj=sub/conftest.${OBJEXT-o}
4144: am__minus_obj="-o $am__obj"
4145: case $depmode in
4146: gcc)
4147: # This depmode causes a compiler race in universal mode.
4148: test "$am__universal" = false || continue
4149: ;;
4150: nosideeffect)
4151: # after this tag, mechanisms are not by side-effect, so they'll
4152: # only be used when explicitly requested
4153: if test "x$enable_dependency_tracking" = xyes; then
4154: continue
4155: else
4156: break
4157: fi
4158: ;;
1.1.1.2 misho 4159: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1.1 misho 4160: # This compiler won't grok `-c -o', but also, the minuso test has
4161: # not run yet. These depmodes are late enough in the game, and
4162: # so weak that their functioning should not be impacted.
4163: am__obj=conftest.${OBJEXT-o}
4164: am__minus_obj=
4165: ;;
4166: none) break ;;
4167: esac
4168: if depmode=$depmode \
4169: source=sub/conftest.c object=$am__obj \
4170: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4171: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4172: >/dev/null 2>conftest.err &&
4173: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4174: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4175: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4176: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4177: # icc doesn't choke on unknown options, it will just issue warnings
4178: # or remarks (even with -Werror). So we grep stderr for any message
4179: # that says an option was ignored or not supported.
4180: # When given -MP, icc 7.0 and 7.1 complain thusly:
4181: # icc: Command line warning: ignoring option '-M'; no argument required
4182: # The diagnosis changed in icc 8.0:
4183: # icc: Command line remark: option '-MP' not supported
4184: if (grep 'ignoring option' conftest.err ||
4185: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4186: am_cv_CC_dependencies_compiler_type=$depmode
4187: break
4188: fi
4189: fi
4190: done
4191:
4192: cd ..
4193: rm -rf conftest.dir
4194: else
4195: am_cv_CC_dependencies_compiler_type=none
4196: fi
4197:
4198: fi
4199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4200: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4201: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4202:
4203: if
4204: test "x$enable_dependency_tracking" != xno \
4205: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4206: am__fastdepCC_TRUE=
4207: am__fastdepCC_FALSE='#'
4208: else
4209: am__fastdepCC_TRUE='#'
4210: am__fastdepCC_FALSE=
4211: fi
4212:
4213:
4214: ac_ext=c
4215: ac_cpp='$CPP $CPPFLAGS'
4216: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4220: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4221: # On Suns, sometimes $CPP names a directory.
4222: if test -n "$CPP" && test -d "$CPP"; then
4223: CPP=
4224: fi
4225: if test -z "$CPP"; then
4226: if ${ac_cv_prog_CPP+:} false; then :
4227: $as_echo_n "(cached) " >&6
4228: else
4229: # Double quotes because CPP needs to be expanded
4230: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4231: do
4232: ac_preproc_ok=false
4233: for ac_c_preproc_warn_flag in '' yes
4234: do
4235: # Use a header file that comes with gcc, so configuring glibc
4236: # with a fresh cross-compiler works.
4237: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4238: # <limits.h> exists even on freestanding compilers.
4239: # On the NeXT, cc -E runs the code through the compiler's parser,
4240: # not just through cpp. "Syntax error" is here to catch this case.
4241: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242: /* end confdefs.h. */
4243: #ifdef __STDC__
4244: # include <limits.h>
4245: #else
4246: # include <assert.h>
4247: #endif
4248: Syntax error
4249: _ACEOF
4250: if ac_fn_c_try_cpp "$LINENO"; then :
4251:
4252: else
4253: # Broken: fails on valid input.
4254: continue
4255: fi
4256: rm -f conftest.err conftest.i conftest.$ac_ext
4257:
4258: # OK, works on sane cases. Now check whether nonexistent headers
4259: # can be detected and how.
4260: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261: /* end confdefs.h. */
4262: #include <ac_nonexistent.h>
4263: _ACEOF
4264: if ac_fn_c_try_cpp "$LINENO"; then :
4265: # Broken: success on invalid input.
4266: continue
4267: else
4268: # Passes both tests.
4269: ac_preproc_ok=:
4270: break
4271: fi
4272: rm -f conftest.err conftest.i conftest.$ac_ext
4273:
4274: done
4275: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4276: rm -f conftest.i conftest.err conftest.$ac_ext
4277: if $ac_preproc_ok; then :
4278: break
4279: fi
4280:
4281: done
4282: ac_cv_prog_CPP=$CPP
4283:
4284: fi
4285: CPP=$ac_cv_prog_CPP
4286: else
4287: ac_cv_prog_CPP=$CPP
4288: fi
4289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4290: $as_echo "$CPP" >&6; }
4291: ac_preproc_ok=false
4292: for ac_c_preproc_warn_flag in '' yes
4293: do
4294: # Use a header file that comes with gcc, so configuring glibc
4295: # with a fresh cross-compiler works.
4296: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297: # <limits.h> exists even on freestanding compilers.
4298: # On the NeXT, cc -E runs the code through the compiler's parser,
4299: # not just through cpp. "Syntax error" is here to catch this case.
4300: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301: /* end confdefs.h. */
4302: #ifdef __STDC__
4303: # include <limits.h>
4304: #else
4305: # include <assert.h>
4306: #endif
4307: Syntax error
4308: _ACEOF
4309: if ac_fn_c_try_cpp "$LINENO"; then :
4310:
4311: else
4312: # Broken: fails on valid input.
4313: continue
4314: fi
4315: rm -f conftest.err conftest.i conftest.$ac_ext
4316:
4317: # OK, works on sane cases. Now check whether nonexistent headers
4318: # can be detected and how.
4319: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320: /* end confdefs.h. */
4321: #include <ac_nonexistent.h>
4322: _ACEOF
4323: if ac_fn_c_try_cpp "$LINENO"; then :
4324: # Broken: success on invalid input.
4325: continue
4326: else
4327: # Passes both tests.
4328: ac_preproc_ok=:
4329: break
4330: fi
4331: rm -f conftest.err conftest.i conftest.$ac_ext
4332:
4333: done
4334: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4335: rm -f conftest.i conftest.err conftest.$ac_ext
4336: if $ac_preproc_ok; then :
4337:
4338: else
4339: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4340: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4341: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4342: See \`config.log' for more details" "$LINENO" 5; }
4343: fi
4344:
4345: ac_ext=c
4346: ac_cpp='$CPP $CPPFLAGS'
4347: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350:
4351: if test "x$CC" != xcc; then
4352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4353: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4354: else
4355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4356: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4357: fi
4358: set dummy $CC; ac_cc=`$as_echo "$2" |
4359: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4360: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4361: $as_echo_n "(cached) " >&6
4362: else
4363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364: /* end confdefs.h. */
4365:
4366: int
4367: main ()
4368: {
4369:
4370: ;
4371: return 0;
4372: }
4373: _ACEOF
4374: # Make sure it works both with $CC and with simple cc.
4375: # We do the test twice because some compilers refuse to overwrite an
4376: # existing .o file with -o, though they will create one.
4377: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4378: rm -f conftest2.*
4379: if { { case "(($ac_try" in
4380: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381: *) ac_try_echo=$ac_try;;
4382: esac
4383: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384: $as_echo "$ac_try_echo"; } >&5
4385: (eval "$ac_try") 2>&5
4386: ac_status=$?
4387: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388: test $ac_status = 0; } &&
4389: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4390: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391: *) ac_try_echo=$ac_try;;
4392: esac
4393: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394: $as_echo "$ac_try_echo"; } >&5
4395: (eval "$ac_try") 2>&5
4396: ac_status=$?
4397: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398: test $ac_status = 0; };
4399: then
4400: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4401: if test "x$CC" != xcc; then
4402: # Test first that cc exists at all.
4403: if { ac_try='cc -c conftest.$ac_ext >&5'
4404: { { case "(($ac_try" in
4405: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406: *) ac_try_echo=$ac_try;;
4407: esac
4408: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409: $as_echo "$ac_try_echo"; } >&5
4410: (eval "$ac_try") 2>&5
4411: ac_status=$?
4412: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413: test $ac_status = 0; }; }; then
4414: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4415: rm -f conftest2.*
4416: if { { case "(($ac_try" in
4417: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418: *) ac_try_echo=$ac_try;;
4419: esac
4420: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421: $as_echo "$ac_try_echo"; } >&5
4422: (eval "$ac_try") 2>&5
4423: ac_status=$?
4424: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425: test $ac_status = 0; } &&
4426: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4427: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428: *) ac_try_echo=$ac_try;;
4429: esac
4430: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431: $as_echo "$ac_try_echo"; } >&5
4432: (eval "$ac_try") 2>&5
4433: ac_status=$?
4434: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435: test $ac_status = 0; };
4436: then
4437: # cc works too.
4438: :
4439: else
4440: # cc exists but doesn't like -o.
4441: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4442: fi
4443: fi
4444: fi
4445: else
4446: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4447: fi
4448: rm -f core conftest*
4449:
4450: fi
4451: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453: $as_echo "yes" >&6; }
4454: else
4455: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456: $as_echo "no" >&6; }
4457:
4458: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4459:
4460: fi
4461:
4462: # FIXME: we rely on the cache variable name because
4463: # there is no other way.
4464: set dummy $CC
4465: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4466: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4467: if test "$am_t" != yes; then
4468: # Losing compiler, so override with the script.
4469: # FIXME: It is wrong to rewrite CC.
4470: # But if we don't then we get into trouble of one sort or another.
4471: # A longer-term fix would be to have automake use am__CC in this case,
4472: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4473: CC="$am_aux_dir/compile $CC"
4474: fi
4475:
4476:
4477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4478: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4479: if ${ac_cv_path_GREP+:} false; then :
4480: $as_echo_n "(cached) " >&6
4481: else
4482: if test -z "$GREP"; then
4483: ac_path_GREP_found=false
4484: # Loop through the user's path and test for each of PROGNAME-LIST
4485: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487: do
4488: IFS=$as_save_IFS
4489: test -z "$as_dir" && as_dir=.
4490: for ac_prog in grep ggrep; do
4491: for ac_exec_ext in '' $ac_executable_extensions; do
4492: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 4493: as_fn_executable_p "$ac_path_GREP" || continue
1.1 misho 4494: # Check for GNU ac_path_GREP and select it if it is found.
4495: # Check for GNU $ac_path_GREP
4496: case `"$ac_path_GREP" --version 2>&1` in
4497: *GNU*)
4498: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4499: *)
4500: ac_count=0
4501: $as_echo_n 0123456789 >"conftest.in"
4502: while :
4503: do
4504: cat "conftest.in" "conftest.in" >"conftest.tmp"
4505: mv "conftest.tmp" "conftest.in"
4506: cp "conftest.in" "conftest.nl"
4507: $as_echo 'GREP' >> "conftest.nl"
4508: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510: as_fn_arith $ac_count + 1 && ac_count=$as_val
4511: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4512: # Best one so far, save it but keep looking for a better one
4513: ac_cv_path_GREP="$ac_path_GREP"
4514: ac_path_GREP_max=$ac_count
4515: fi
4516: # 10*(2^10) chars as input seems more than enough
4517: test $ac_count -gt 10 && break
4518: done
4519: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520: esac
4521:
4522: $ac_path_GREP_found && break 3
4523: done
4524: done
4525: done
4526: IFS=$as_save_IFS
4527: if test -z "$ac_cv_path_GREP"; then
4528: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4529: fi
4530: else
4531: ac_cv_path_GREP=$GREP
4532: fi
4533:
4534: fi
4535: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4536: $as_echo "$ac_cv_path_GREP" >&6; }
4537: GREP="$ac_cv_path_GREP"
4538:
4539:
4540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4541: $as_echo_n "checking for egrep... " >&6; }
4542: if ${ac_cv_path_EGREP+:} false; then :
4543: $as_echo_n "(cached) " >&6
4544: else
4545: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4546: then ac_cv_path_EGREP="$GREP -E"
4547: else
4548: if test -z "$EGREP"; then
4549: ac_path_EGREP_found=false
4550: # Loop through the user's path and test for each of PROGNAME-LIST
4551: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553: do
4554: IFS=$as_save_IFS
4555: test -z "$as_dir" && as_dir=.
4556: for ac_prog in egrep; do
4557: for ac_exec_ext in '' $ac_executable_extensions; do
4558: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 4559: as_fn_executable_p "$ac_path_EGREP" || continue
1.1 misho 4560: # Check for GNU ac_path_EGREP and select it if it is found.
4561: # Check for GNU $ac_path_EGREP
4562: case `"$ac_path_EGREP" --version 2>&1` in
4563: *GNU*)
4564: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4565: *)
4566: ac_count=0
4567: $as_echo_n 0123456789 >"conftest.in"
4568: while :
4569: do
4570: cat "conftest.in" "conftest.in" >"conftest.tmp"
4571: mv "conftest.tmp" "conftest.in"
4572: cp "conftest.in" "conftest.nl"
4573: $as_echo 'EGREP' >> "conftest.nl"
4574: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576: as_fn_arith $ac_count + 1 && ac_count=$as_val
4577: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4578: # Best one so far, save it but keep looking for a better one
4579: ac_cv_path_EGREP="$ac_path_EGREP"
4580: ac_path_EGREP_max=$ac_count
4581: fi
4582: # 10*(2^10) chars as input seems more than enough
4583: test $ac_count -gt 10 && break
4584: done
4585: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586: esac
4587:
4588: $ac_path_EGREP_found && break 3
4589: done
4590: done
4591: done
4592: IFS=$as_save_IFS
4593: if test -z "$ac_cv_path_EGREP"; then
4594: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4595: fi
4596: else
4597: ac_cv_path_EGREP=$EGREP
4598: fi
4599:
4600: fi
4601: fi
4602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4603: $as_echo "$ac_cv_path_EGREP" >&6; }
4604: EGREP="$ac_cv_path_EGREP"
4605:
4606:
4607:
4608: # Extract the first word of "sed", so it can be a program name with args.
4609: set dummy sed; ac_word=$2
4610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611: $as_echo_n "checking for $ac_word... " >&6; }
4612: if ${ac_cv_prog_SED+:} false; then :
4613: $as_echo_n "(cached) " >&6
4614: else
4615: if test -n "$SED"; then
4616: ac_cv_prog_SED="$SED" # Let the user override the test.
4617: else
4618: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619: for as_dir in $PATH
4620: do
4621: IFS=$as_save_IFS
4622: test -z "$as_dir" && as_dir=.
4623: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4624: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4625: ac_cv_prog_SED="sed"
4626: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627: break 2
4628: fi
4629: done
4630: done
4631: IFS=$as_save_IFS
4632:
4633: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="/bin/false"
4634: fi
4635: fi
4636: SED=$ac_cv_prog_SED
4637: if test -n "$SED"; then
4638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4639: $as_echo "$SED" >&6; }
4640: else
4641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642: $as_echo "no" >&6; }
4643: fi
4644:
4645:
4646:
1.1.1.3 ! misho 4647: # Extract the first word of "pdflatex", so it can be a program name with args.
! 4648: set dummy pdflatex; ac_word=$2
! 4649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4650: $as_echo_n "checking for $ac_word... " >&6; }
! 4651: if ${ac_cv_prog_PDFLATEX+:} false; then :
! 4652: $as_echo_n "(cached) " >&6
! 4653: else
! 4654: if test -n "$PDFLATEX"; then
! 4655: ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
! 4656: else
! 4657: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4658: for as_dir in $PATH
! 4659: do
! 4660: IFS=$as_save_IFS
! 4661: test -z "$as_dir" && as_dir=.
! 4662: for ac_exec_ext in '' $ac_executable_extensions; do
! 4663: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4664: ac_cv_prog_PDFLATEX="pdflatex"
! 4665: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4666: break 2
! 4667: fi
! 4668: done
! 4669: done
! 4670: IFS=$as_save_IFS
! 4671:
! 4672: test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="/bin/false"
! 4673: fi
! 4674: fi
! 4675: PDFLATEX=$ac_cv_prog_PDFLATEX
! 4676: if test -n "$PDFLATEX"; then
! 4677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
! 4678: $as_echo "$PDFLATEX" >&6; }
! 4679: else
! 4680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4681: $as_echo "no" >&6; }
! 4682: fi
! 4683:
! 4684:
! 4685: # Extract the first word of "latexmk", so it can be a program name with args.
! 4686: set dummy latexmk; ac_word=$2
! 4687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4688: $as_echo_n "checking for $ac_word... " >&6; }
! 4689: if ${ac_cv_prog_LATEXMK+:} false; then :
! 4690: $as_echo_n "(cached) " >&6
! 4691: else
! 4692: if test -n "$LATEXMK"; then
! 4693: ac_cv_prog_LATEXMK="$LATEXMK" # Let the user override the test.
! 4694: else
! 4695: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4696: for as_dir in $PATH
! 4697: do
! 4698: IFS=$as_save_IFS
! 4699: test -z "$as_dir" && as_dir=.
! 4700: for ac_exec_ext in '' $ac_executable_extensions; do
! 4701: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4702: ac_cv_prog_LATEXMK="latexmk"
! 4703: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4704: break 2
! 4705: fi
! 4706: done
! 4707: done
! 4708: IFS=$as_save_IFS
! 4709:
! 4710: test -z "$ac_cv_prog_LATEXMK" && ac_cv_prog_LATEXMK="/bin/false"
! 4711: fi
! 4712: fi
! 4713: LATEXMK=$ac_cv_prog_LATEXMK
! 4714: if test -n "$LATEXMK"; then
! 4715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
! 4716: $as_echo "$LATEXMK" >&6; }
! 4717: else
! 4718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4719: $as_echo "no" >&6; }
! 4720: fi
! 4721:
! 4722:
! 4723: if test "x$PDFLATEX" = "x/bin/false" -o "x$LATEXMK" = "x/bin/false"; then
! 4724: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not be able to make PDF versions of TeX documents" >&5
! 4725: $as_echo "$as_me: WARNING: Will not be able to make PDF versions of TeX documents" >&2;}
! 4726: else
! 4727: HAVE_LATEX=true
! 4728: fi
! 4729: if test "x$HAVE_LATEX" = "xtrue"; then
! 4730: HAVE_LATEX_TRUE=
! 4731: HAVE_LATEX_FALSE='#'
! 4732: else
! 4733: HAVE_LATEX_TRUE='#'
! 4734: HAVE_LATEX_FALSE=
! 4735: fi
! 4736:
! 4737:
1.1 misho 4738: if test "x${GCC}" = "xyes" ; then
4739: COMPILER="GCC"
4740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel compiler" >&5
4741: $as_echo_n "checking whether we are using the Intel compiler... " >&6; }
4742:
4743:
4744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745: /* end confdefs.h. */
4746: __INTEL_COMPILER
4747: _ACEOF
4748: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749: $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
4750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751: $as_echo "no" >&6; }
4752: else
4753: COMPILER="ICC"
4754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4755: $as_echo "yes" >&6; }
4756:
4757: fi
4758: rm -f conftest*
4759:
4760: else
4761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SunPro compiler" >&5
4762: $as_echo_n "checking whether we are using SunPro compiler... " >&6; }
4763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764: /* end confdefs.h. */
4765: "__SUNPRO_C" __SUNPRO_C
4766: _ACEOF
4767: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768: $EGREP "^__SUNPRO_C.*0x5(7|8|9)" >/dev/null 2>&1; then :
4769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770: $as_echo "no" >&6; }
4771: else
4772: COMPILER="SUNPRO"
4773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4774: $as_echo "yes" >&6; }
4775:
4776: fi
4777: rm -f conftest*
4778:
4779: fi
4780:
4781:
4782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set a default CFLAGS" >&5
4783: $as_echo_n "checking whether to set a default CFLAGS... " >&6; }
4784: if test "x${cflags_specified}" = "x" ; then
4785: case ${COMPILER} in
4786: "ICC")
4787: CFLAGS="-Os -g -Wall -wd 279,869,981"
4788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Intel default" >&5
4789: $as_echo "Intel default" >&6; }
4790: ;;
4791: "GCC")
4792: CFLAGS="-Os -fno-omit-frame-pointer -g -std=gnu99 -Wall"
4793: CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
4794: CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
4795: CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"
4796: CFLAGS="${CFLAGS} -Wchar-subscripts -Wcast-qual"
4797: # TODO: conditionally addd -Wpacked if handled
4798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc default" >&5
4799: $as_echo "gcc default" >&6; }
4800: ;;
4801: "SUNPRO")
4802: CFLAGS="-xO4 -v -g -xspace -xcode=pic32 -xstrconst -xc99"
4803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunPro default" >&5
4804: $as_echo "SunPro default" >&6; }
4805: ;;
4806: *)
4807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown compiler" >&5
4808: $as_echo "unknown compiler" >&6; }
4809: ;;
4810: esac
4811: else
4812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS supplied by user" >&5
4813: $as_echo "CFLAGS supplied by user" >&6; }
4814: fi
4815:
4816:
4817: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4818: $as_echo_n "checking whether ln -s works... " >&6; }
4819: LN_S=$as_ln_s
4820: if test "$LN_S" = "ln -s"; then
4821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822: $as_echo "yes" >&6; }
4823: else
4824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4825: $as_echo "no, using $LN_S" >&6; }
4826: fi
4827:
4828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4829: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4830: set x ${MAKE-make}
4831: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4832: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4833: $as_echo_n "(cached) " >&6
4834: else
4835: cat >conftest.make <<\_ACEOF
4836: SHELL = /bin/sh
4837: all:
4838: @echo '@@@%%%=$(MAKE)=@@@%%%'
4839: _ACEOF
4840: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4841: case `${MAKE-make} -f conftest.make 2>/dev/null` in
4842: *@@@%%%=?*=@@@%%%*)
4843: eval ac_cv_prog_make_${ac_make}_set=yes;;
4844: *)
4845: eval ac_cv_prog_make_${ac_make}_set=no;;
4846: esac
4847: rm -f conftest.make
4848: fi
4849: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851: $as_echo "yes" >&6; }
4852: SET_MAKE=
4853: else
4854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855: $as_echo "no" >&6; }
4856: SET_MAKE="MAKE=${MAKE-make}"
4857: fi
4858:
4859: if test -n "$ac_tool_prefix"; then
4860: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4861: set dummy ${ac_tool_prefix}ar; ac_word=$2
4862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863: $as_echo_n "checking for $ac_word... " >&6; }
4864: if ${ac_cv_prog_AR+:} false; then :
4865: $as_echo_n "(cached) " >&6
4866: else
4867: if test -n "$AR"; then
4868: ac_cv_prog_AR="$AR" # Let the user override the test.
4869: else
4870: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871: for as_dir in $PATH
4872: do
4873: IFS=$as_save_IFS
4874: test -z "$as_dir" && as_dir=.
4875: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4876: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4877: ac_cv_prog_AR="${ac_tool_prefix}ar"
4878: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879: break 2
4880: fi
4881: done
4882: done
4883: IFS=$as_save_IFS
4884:
4885: fi
4886: fi
4887: AR=$ac_cv_prog_AR
4888: if test -n "$AR"; then
4889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4890: $as_echo "$AR" >&6; }
4891: else
4892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893: $as_echo "no" >&6; }
4894: fi
4895:
4896:
4897: fi
4898: if test -z "$ac_cv_prog_AR"; then
4899: ac_ct_AR=$AR
4900: # Extract the first word of "ar", so it can be a program name with args.
4901: set dummy ar; ac_word=$2
4902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903: $as_echo_n "checking for $ac_word... " >&6; }
4904: if ${ac_cv_prog_ac_ct_AR+:} false; then :
4905: $as_echo_n "(cached) " >&6
4906: else
4907: if test -n "$ac_ct_AR"; then
4908: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4909: else
4910: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911: for as_dir in $PATH
4912: do
4913: IFS=$as_save_IFS
4914: test -z "$as_dir" && as_dir=.
4915: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4916: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4917: ac_cv_prog_ac_ct_AR="ar"
4918: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919: break 2
4920: fi
4921: done
4922: done
4923: IFS=$as_save_IFS
4924:
4925: fi
4926: fi
4927: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4928: if test -n "$ac_ct_AR"; then
4929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4930: $as_echo "$ac_ct_AR" >&6; }
4931: else
4932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933: $as_echo "no" >&6; }
4934: fi
4935:
4936: if test "x$ac_ct_AR" = x; then
4937: AR=""
4938: else
4939: case $cross_compiling:$ac_tool_warned in
4940: yes:)
4941: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943: ac_tool_warned=yes ;;
4944: esac
4945: AR=$ac_ct_AR
4946: fi
4947: else
4948: AR="$ac_cv_prog_AR"
4949: fi
4950:
4951:
4952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5
4953: $as_echo_n "checking if ${MAKE-make} is GNU make... " >&6; }
4954: if ${quagga_cv_gnu_make+:} false; then :
4955: $as_echo_n "(cached) " >&6
4956: else
4957: quagga_cv_gnu_make=no
4958: if ${MAKE-make} --version 2>/dev/null | \
4959: grep '^GNU Make ' >/dev/null ; then
4960: quagga_cv_gnu_make=yes;
4961: fi
4962:
4963:
4964: fi
4965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_gnu_make" >&5
4966: $as_echo "$quagga_cv_gnu_make" >&6; }
4967:
4968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4969: $as_echo_n "checking for ANSI C header files... " >&6; }
4970: if ${ac_cv_header_stdc+:} false; then :
4971: $as_echo_n "(cached) " >&6
4972: else
4973: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974: /* end confdefs.h. */
4975: #include <stdlib.h>
4976: #include <stdarg.h>
4977: #include <string.h>
4978: #include <float.h>
4979:
4980: int
4981: main ()
4982: {
4983:
4984: ;
4985: return 0;
4986: }
4987: _ACEOF
4988: if ac_fn_c_try_compile "$LINENO"; then :
4989: ac_cv_header_stdc=yes
4990: else
4991: ac_cv_header_stdc=no
4992: fi
4993: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994:
4995: if test $ac_cv_header_stdc = yes; then
4996: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998: /* end confdefs.h. */
4999: #include <string.h>
5000:
5001: _ACEOF
5002: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003: $EGREP "memchr" >/dev/null 2>&1; then :
5004:
5005: else
5006: ac_cv_header_stdc=no
5007: fi
5008: rm -f conftest*
5009:
5010: fi
5011:
5012: if test $ac_cv_header_stdc = yes; then
5013: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5014: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015: /* end confdefs.h. */
5016: #include <stdlib.h>
5017:
5018: _ACEOF
5019: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020: $EGREP "free" >/dev/null 2>&1; then :
5021:
5022: else
5023: ac_cv_header_stdc=no
5024: fi
5025: rm -f conftest*
5026:
5027: fi
5028:
5029: if test $ac_cv_header_stdc = yes; then
5030: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5031: if test "$cross_compiling" = yes; then :
5032: :
5033: else
5034: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035: /* end confdefs.h. */
5036: #include <ctype.h>
5037: #include <stdlib.h>
5038: #if ((' ' & 0x0FF) == 0x020)
5039: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5040: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5041: #else
5042: # define ISLOWER(c) \
5043: (('a' <= (c) && (c) <= 'i') \
5044: || ('j' <= (c) && (c) <= 'r') \
5045: || ('s' <= (c) && (c) <= 'z'))
5046: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5047: #endif
5048:
5049: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5050: int
5051: main ()
5052: {
5053: int i;
5054: for (i = 0; i < 256; i++)
5055: if (XOR (islower (i), ISLOWER (i))
5056: || toupper (i) != TOUPPER (i))
5057: return 2;
5058: return 0;
5059: }
5060: _ACEOF
5061: if ac_fn_c_try_run "$LINENO"; then :
5062:
5063: else
5064: ac_cv_header_stdc=no
5065: fi
5066: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5067: conftest.$ac_objext conftest.beam conftest.$ac_ext
5068: fi
5069:
5070: fi
5071: fi
5072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5073: $as_echo "$ac_cv_header_stdc" >&6; }
5074: if test $ac_cv_header_stdc = yes; then
5075:
5076: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5077:
5078: fi
5079:
5080: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5081: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5082: inttypes.h stdint.h unistd.h
5083: do :
5084: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5085: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5086: "
5087: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5088: cat >>confdefs.h <<_ACEOF
5089: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5090: _ACEOF
5091:
5092: fi
5093:
5094: done
5095:
5096:
5097:
5098: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5099: if test "x$ac_cv_header_minix_config_h" = xyes; then :
5100: MINIX=yes
5101: else
5102: MINIX=
5103: fi
5104:
5105:
5106: if test "$MINIX" = yes; then
5107:
5108: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5109:
5110:
5111: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5112:
5113:
5114: $as_echo "#define _MINIX 1" >>confdefs.h
5115:
5116: fi
5117:
5118:
5119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5120: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5121: if ${ac_cv_safe_to_define___extensions__+:} false; then :
5122: $as_echo_n "(cached) " >&6
5123: else
5124: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125: /* end confdefs.h. */
5126:
1.1.1.3 ! misho 5127: # define __EXTENSIONS__ 1
! 5128: $ac_includes_default
1.1 misho 5129: int
5130: main ()
5131: {
5132:
5133: ;
5134: return 0;
5135: }
5136: _ACEOF
5137: if ac_fn_c_try_compile "$LINENO"; then :
5138: ac_cv_safe_to_define___extensions__=yes
5139: else
5140: ac_cv_safe_to_define___extensions__=no
5141: fi
5142: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143: fi
5144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5145: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5146: test $ac_cv_safe_to_define___extensions__ = yes &&
5147: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5148:
5149: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5150:
5151: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5152:
5153: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5154:
5155: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5156:
5157:
5158:
5159:
5160: case `pwd` in
5161: *\ * | *\ *)
5162: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5163: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5164: esac
5165:
5166:
5167:
1.1.1.2 misho 5168: macro_version='2.4.2'
5169: macro_revision='1.3337'
1.1 misho 5170:
5171:
5172:
5173:
5174:
5175:
5176:
5177:
5178:
5179:
5180:
5181:
5182:
5183: ltmain="$ac_aux_dir/ltmain.sh"
5184:
5185: # Backslashify metacharacters that are still active within
5186: # double-quoted strings.
5187: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5188:
5189: # Same as above, but do not quote variable references.
5190: double_quote_subst='s/\(["`\\]\)/\\\1/g'
5191:
5192: # Sed substitution to delay expansion of an escaped shell variable in a
5193: # double_quote_subst'ed string.
5194: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5195:
5196: # Sed substitution to delay expansion of an escaped single quote.
5197: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5198:
5199: # Sed substitution to avoid accidental globbing in evaled expressions
5200: no_glob_subst='s/\*/\\\*/g'
5201:
5202: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5203: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5204: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5205:
5206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5207: $as_echo_n "checking how to print strings... " >&6; }
5208: # Test print first, because it will be a builtin if present.
5209: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5210: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5211: ECHO='print -r --'
5212: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5213: ECHO='printf %s\n'
5214: else
5215: # Use this function as a fallback that always works.
5216: func_fallback_echo ()
5217: {
5218: eval 'cat <<_LTECHO_EOF
5219: $1
5220: _LTECHO_EOF'
5221: }
5222: ECHO='func_fallback_echo'
5223: fi
5224:
5225: # func_echo_all arg...
5226: # Invoke $ECHO with all args, space-separated.
5227: func_echo_all ()
5228: {
5229: $ECHO ""
5230: }
5231:
5232: case "$ECHO" in
5233: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5234: $as_echo "printf" >&6; } ;;
5235: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5236: $as_echo "print -r" >&6; } ;;
5237: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5238: $as_echo "cat" >&6; } ;;
5239: esac
5240:
5241:
5242:
5243:
5244:
5245:
5246:
5247:
5248:
5249:
5250:
5251:
5252:
5253:
5254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5255: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5256: if ${ac_cv_path_SED+:} false; then :
5257: $as_echo_n "(cached) " >&6
5258: else
5259: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5260: for ac_i in 1 2 3 4 5 6 7; do
5261: ac_script="$ac_script$as_nl$ac_script"
5262: done
5263: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5264: { ac_script=; unset ac_script;}
5265: if test -z "$SED"; then
5266: ac_path_SED_found=false
5267: # Loop through the user's path and test for each of PROGNAME-LIST
5268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269: for as_dir in $PATH
5270: do
5271: IFS=$as_save_IFS
5272: test -z "$as_dir" && as_dir=.
5273: for ac_prog in sed gsed; do
5274: for ac_exec_ext in '' $ac_executable_extensions; do
5275: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 5276: as_fn_executable_p "$ac_path_SED" || continue
1.1 misho 5277: # Check for GNU ac_path_SED and select it if it is found.
5278: # Check for GNU $ac_path_SED
5279: case `"$ac_path_SED" --version 2>&1` in
5280: *GNU*)
5281: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5282: *)
5283: ac_count=0
5284: $as_echo_n 0123456789 >"conftest.in"
5285: while :
5286: do
5287: cat "conftest.in" "conftest.in" >"conftest.tmp"
5288: mv "conftest.tmp" "conftest.in"
5289: cp "conftest.in" "conftest.nl"
5290: $as_echo '' >> "conftest.nl"
5291: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5292: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5293: as_fn_arith $ac_count + 1 && ac_count=$as_val
5294: if test $ac_count -gt ${ac_path_SED_max-0}; then
5295: # Best one so far, save it but keep looking for a better one
5296: ac_cv_path_SED="$ac_path_SED"
5297: ac_path_SED_max=$ac_count
5298: fi
5299: # 10*(2^10) chars as input seems more than enough
5300: test $ac_count -gt 10 && break
5301: done
5302: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5303: esac
5304:
5305: $ac_path_SED_found && break 3
5306: done
5307: done
5308: done
5309: IFS=$as_save_IFS
5310: if test -z "$ac_cv_path_SED"; then
5311: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5312: fi
5313: else
5314: ac_cv_path_SED=$SED
5315: fi
5316:
5317: fi
5318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5319: $as_echo "$ac_cv_path_SED" >&6; }
5320: SED="$ac_cv_path_SED"
5321: rm -f conftest.sed
5322:
5323: test -z "$SED" && SED=sed
5324: Xsed="$SED -e 1s/^X//"
5325:
5326:
5327:
5328:
5329:
5330:
5331:
5332:
5333:
5334:
5335:
5336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5337: $as_echo_n "checking for fgrep... " >&6; }
5338: if ${ac_cv_path_FGREP+:} false; then :
5339: $as_echo_n "(cached) " >&6
5340: else
5341: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5342: then ac_cv_path_FGREP="$GREP -F"
5343: else
5344: if test -z "$FGREP"; then
5345: ac_path_FGREP_found=false
5346: # Loop through the user's path and test for each of PROGNAME-LIST
5347: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5349: do
5350: IFS=$as_save_IFS
5351: test -z "$as_dir" && as_dir=.
5352: for ac_prog in fgrep; do
5353: for ac_exec_ext in '' $ac_executable_extensions; do
5354: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 5355: as_fn_executable_p "$ac_path_FGREP" || continue
1.1 misho 5356: # Check for GNU ac_path_FGREP and select it if it is found.
5357: # Check for GNU $ac_path_FGREP
5358: case `"$ac_path_FGREP" --version 2>&1` in
5359: *GNU*)
5360: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5361: *)
5362: ac_count=0
5363: $as_echo_n 0123456789 >"conftest.in"
5364: while :
5365: do
5366: cat "conftest.in" "conftest.in" >"conftest.tmp"
5367: mv "conftest.tmp" "conftest.in"
5368: cp "conftest.in" "conftest.nl"
5369: $as_echo 'FGREP' >> "conftest.nl"
5370: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372: as_fn_arith $ac_count + 1 && ac_count=$as_val
5373: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5374: # Best one so far, save it but keep looking for a better one
5375: ac_cv_path_FGREP="$ac_path_FGREP"
5376: ac_path_FGREP_max=$ac_count
5377: fi
5378: # 10*(2^10) chars as input seems more than enough
5379: test $ac_count -gt 10 && break
5380: done
5381: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382: esac
5383:
5384: $ac_path_FGREP_found && break 3
5385: done
5386: done
5387: done
5388: IFS=$as_save_IFS
5389: if test -z "$ac_cv_path_FGREP"; then
5390: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5391: fi
5392: else
5393: ac_cv_path_FGREP=$FGREP
5394: fi
5395:
5396: fi
5397: fi
5398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5399: $as_echo "$ac_cv_path_FGREP" >&6; }
5400: FGREP="$ac_cv_path_FGREP"
5401:
5402:
5403: test -z "$GREP" && GREP=grep
5404:
5405:
5406:
5407:
5408:
5409:
5410:
5411:
5412:
5413:
5414:
5415:
5416:
5417:
5418:
5419:
5420:
5421:
5422:
5423: # Check whether --with-gnu-ld was given.
5424: if test "${with_gnu_ld+set}" = set; then :
5425: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5426: else
5427: with_gnu_ld=no
5428: fi
5429:
5430: ac_prog=ld
5431: if test "$GCC" = yes; then
5432: # Check if gcc -print-prog-name=ld gives a path.
5433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5434: $as_echo_n "checking for ld used by $CC... " >&6; }
5435: case $host in
5436: *-*-mingw*)
5437: # gcc leaves a trailing carriage return which upsets mingw
5438: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5439: *)
5440: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5441: esac
5442: case $ac_prog in
5443: # Accept absolute paths.
5444: [\\/]* | ?:[\\/]*)
5445: re_direlt='/[^/][^/]*/\.\./'
5446: # Canonicalize the pathname of ld
5447: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5448: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5449: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5450: done
5451: test -z "$LD" && LD="$ac_prog"
5452: ;;
5453: "")
5454: # If it fails, then pretend we aren't using GCC.
5455: ac_prog=ld
5456: ;;
5457: *)
5458: # If it is relative, then search for the first ld in PATH.
5459: with_gnu_ld=unknown
5460: ;;
5461: esac
5462: elif test "$with_gnu_ld" = yes; then
5463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5464: $as_echo_n "checking for GNU ld... " >&6; }
5465: else
5466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5467: $as_echo_n "checking for non-GNU ld... " >&6; }
5468: fi
5469: if ${lt_cv_path_LD+:} false; then :
5470: $as_echo_n "(cached) " >&6
5471: else
5472: if test -z "$LD"; then
5473: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5474: for ac_dir in $PATH; do
5475: IFS="$lt_save_ifs"
5476: test -z "$ac_dir" && ac_dir=.
5477: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5478: lt_cv_path_LD="$ac_dir/$ac_prog"
5479: # Check to see if the program is GNU ld. I'd rather use --version,
5480: # but apparently some variants of GNU ld only accept -v.
5481: # Break only if it was the GNU/non-GNU ld that we prefer.
5482: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5483: *GNU* | *'with BFD'*)
5484: test "$with_gnu_ld" != no && break
5485: ;;
5486: *)
5487: test "$with_gnu_ld" != yes && break
5488: ;;
5489: esac
5490: fi
5491: done
5492: IFS="$lt_save_ifs"
5493: else
5494: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5495: fi
5496: fi
5497:
5498: LD="$lt_cv_path_LD"
5499: if test -n "$LD"; then
5500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5501: $as_echo "$LD" >&6; }
5502: else
5503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504: $as_echo "no" >&6; }
5505: fi
5506: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5508: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5509: if ${lt_cv_prog_gnu_ld+:} false; then :
5510: $as_echo_n "(cached) " >&6
5511: else
5512: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5513: case `$LD -v 2>&1 </dev/null` in
5514: *GNU* | *'with BFD'*)
5515: lt_cv_prog_gnu_ld=yes
5516: ;;
5517: *)
5518: lt_cv_prog_gnu_ld=no
5519: ;;
5520: esac
5521: fi
5522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5523: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5524: with_gnu_ld=$lt_cv_prog_gnu_ld
5525:
5526:
5527:
5528:
5529:
5530:
5531:
5532:
5533:
5534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5535: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5536: if ${lt_cv_path_NM+:} false; then :
5537: $as_echo_n "(cached) " >&6
5538: else
5539: if test -n "$NM"; then
5540: # Let the user override the test.
5541: lt_cv_path_NM="$NM"
5542: else
5543: lt_nm_to_check="${ac_tool_prefix}nm"
5544: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5545: lt_nm_to_check="$lt_nm_to_check nm"
5546: fi
5547: for lt_tmp_nm in $lt_nm_to_check; do
5548: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5549: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5550: IFS="$lt_save_ifs"
5551: test -z "$ac_dir" && ac_dir=.
5552: tmp_nm="$ac_dir/$lt_tmp_nm"
5553: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5554: # Check to see if the nm accepts a BSD-compat flag.
5555: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5556: # nm: unknown option "B" ignored
5557: # Tru64's nm complains that /dev/null is an invalid object file
5558: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5559: */dev/null* | *'Invalid file or object type'*)
5560: lt_cv_path_NM="$tmp_nm -B"
5561: break
5562: ;;
5563: *)
5564: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5565: */dev/null*)
5566: lt_cv_path_NM="$tmp_nm -p"
5567: break
5568: ;;
5569: *)
5570: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5571: continue # so that we can try to find one that supports BSD flags
5572: ;;
5573: esac
5574: ;;
5575: esac
5576: fi
5577: done
5578: IFS="$lt_save_ifs"
5579: done
5580: : ${lt_cv_path_NM=no}
5581: fi
5582: fi
5583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5584: $as_echo "$lt_cv_path_NM" >&6; }
5585: if test "$lt_cv_path_NM" != "no"; then
5586: NM="$lt_cv_path_NM"
5587: else
5588: # Didn't find any BSD compatible name lister, look for dumpbin.
5589: if test -n "$DUMPBIN"; then :
5590: # Let the user override the test.
5591: else
5592: if test -n "$ac_tool_prefix"; then
5593: for ac_prog in dumpbin "link -dump"
5594: do
5595: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5596: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598: $as_echo_n "checking for $ac_word... " >&6; }
5599: if ${ac_cv_prog_DUMPBIN+:} false; then :
5600: $as_echo_n "(cached) " >&6
5601: else
5602: if test -n "$DUMPBIN"; then
5603: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5604: else
5605: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606: for as_dir in $PATH
5607: do
5608: IFS=$as_save_IFS
5609: test -z "$as_dir" && as_dir=.
5610: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5611: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5612: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5613: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614: break 2
5615: fi
5616: done
5617: done
5618: IFS=$as_save_IFS
5619:
5620: fi
5621: fi
5622: DUMPBIN=$ac_cv_prog_DUMPBIN
5623: if test -n "$DUMPBIN"; then
5624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5625: $as_echo "$DUMPBIN" >&6; }
5626: else
5627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628: $as_echo "no" >&6; }
5629: fi
5630:
5631:
5632: test -n "$DUMPBIN" && break
5633: done
5634: fi
5635: if test -z "$DUMPBIN"; then
5636: ac_ct_DUMPBIN=$DUMPBIN
5637: for ac_prog in dumpbin "link -dump"
5638: do
5639: # Extract the first word of "$ac_prog", so it can be a program name with args.
5640: set dummy $ac_prog; ac_word=$2
5641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642: $as_echo_n "checking for $ac_word... " >&6; }
5643: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5644: $as_echo_n "(cached) " >&6
5645: else
5646: if test -n "$ac_ct_DUMPBIN"; then
5647: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5648: else
5649: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650: for as_dir in $PATH
5651: do
5652: IFS=$as_save_IFS
5653: test -z "$as_dir" && as_dir=.
5654: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5655: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5656: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5657: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658: break 2
5659: fi
5660: done
5661: done
5662: IFS=$as_save_IFS
5663:
5664: fi
5665: fi
5666: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5667: if test -n "$ac_ct_DUMPBIN"; then
5668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5669: $as_echo "$ac_ct_DUMPBIN" >&6; }
5670: else
5671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672: $as_echo "no" >&6; }
5673: fi
5674:
5675:
5676: test -n "$ac_ct_DUMPBIN" && break
5677: done
5678:
5679: if test "x$ac_ct_DUMPBIN" = x; then
5680: DUMPBIN=":"
5681: else
5682: case $cross_compiling:$ac_tool_warned in
5683: yes:)
5684: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686: ac_tool_warned=yes ;;
5687: esac
5688: DUMPBIN=$ac_ct_DUMPBIN
5689: fi
5690: fi
5691:
5692: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5693: *COFF*)
5694: DUMPBIN="$DUMPBIN -symbols"
5695: ;;
5696: *)
5697: DUMPBIN=:
5698: ;;
5699: esac
5700: fi
5701:
5702: if test "$DUMPBIN" != ":"; then
5703: NM="$DUMPBIN"
5704: fi
5705: fi
5706: test -z "$NM" && NM=nm
5707:
5708:
5709:
5710:
5711:
5712:
5713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5714: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5715: if ${lt_cv_nm_interface+:} false; then :
5716: $as_echo_n "(cached) " >&6
5717: else
5718: lt_cv_nm_interface="BSD nm"
5719: echo "int some_variable = 0;" > conftest.$ac_ext
5720: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5721: (eval "$ac_compile" 2>conftest.err)
5722: cat conftest.err >&5
5723: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5724: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5725: cat conftest.err >&5
5726: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5727: cat conftest.out >&5
5728: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5729: lt_cv_nm_interface="MS dumpbin"
5730: fi
5731: rm -f conftest*
5732: fi
5733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5734: $as_echo "$lt_cv_nm_interface" >&6; }
5735:
5736: # find the maximum length of command line arguments
5737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5738: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5739: if ${lt_cv_sys_max_cmd_len+:} false; then :
5740: $as_echo_n "(cached) " >&6
5741: else
5742: i=0
5743: teststring="ABCD"
5744:
5745: case $build_os in
5746: msdosdjgpp*)
5747: # On DJGPP, this test can blow up pretty badly due to problems in libc
5748: # (any single argument exceeding 2000 bytes causes a buffer overrun
5749: # during glob expansion). Even if it were fixed, the result of this
5750: # check would be larger than it should be.
5751: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5752: ;;
5753:
5754: gnu*)
5755: # Under GNU Hurd, this test is not required because there is
5756: # no limit to the length of command line arguments.
5757: # Libtool will interpret -1 as no limit whatsoever
5758: lt_cv_sys_max_cmd_len=-1;
5759: ;;
5760:
5761: cygwin* | mingw* | cegcc*)
5762: # On Win9x/ME, this test blows up -- it succeeds, but takes
5763: # about 5 minutes as the teststring grows exponentially.
5764: # Worse, since 9x/ME are not pre-emptively multitasking,
5765: # you end up with a "frozen" computer, even though with patience
5766: # the test eventually succeeds (with a max line length of 256k).
5767: # Instead, let's just punt: use the minimum linelength reported by
5768: # all of the supported platforms: 8192 (on NT/2K/XP).
5769: lt_cv_sys_max_cmd_len=8192;
5770: ;;
5771:
5772: mint*)
5773: # On MiNT this can take a long time and run out of memory.
5774: lt_cv_sys_max_cmd_len=8192;
5775: ;;
5776:
5777: amigaos*)
5778: # On AmigaOS with pdksh, this test takes hours, literally.
5779: # So we just punt and use a minimum line length of 8192.
5780: lt_cv_sys_max_cmd_len=8192;
5781: ;;
5782:
5783: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5784: # This has been around since 386BSD, at least. Likely further.
5785: if test -x /sbin/sysctl; then
5786: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5787: elif test -x /usr/sbin/sysctl; then
5788: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5789: else
5790: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5791: fi
5792: # And add a safety zone
5793: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5794: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5795: ;;
5796:
5797: interix*)
5798: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5799: lt_cv_sys_max_cmd_len=196608
5800: ;;
5801:
1.1.1.2 misho 5802: os2*)
5803: # The test takes a long time on OS/2.
5804: lt_cv_sys_max_cmd_len=8192
5805: ;;
5806:
1.1 misho 5807: osf*)
5808: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5809: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5810: # nice to cause kernel panics so lets avoid the loop below.
5811: # First set a reasonable default.
5812: lt_cv_sys_max_cmd_len=16384
5813: #
5814: if test -x /sbin/sysconfig; then
5815: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5816: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5817: esac
5818: fi
5819: ;;
5820: sco3.2v5*)
5821: lt_cv_sys_max_cmd_len=102400
5822: ;;
5823: sysv5* | sco5v6* | sysv4.2uw2*)
5824: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5825: if test -n "$kargmax"; then
5826: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5827: else
5828: lt_cv_sys_max_cmd_len=32768
5829: fi
5830: ;;
5831: *)
5832: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5833: if test -n "$lt_cv_sys_max_cmd_len"; then
5834: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5835: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5836: else
5837: # Make teststring a little bigger before we do anything with it.
5838: # a 1K string should be a reasonable start.
5839: for i in 1 2 3 4 5 6 7 8 ; do
5840: teststring=$teststring$teststring
5841: done
5842: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5843: # If test is not a shell built-in, we'll probably end up computing a
5844: # maximum length that is only half of the actual maximum length, but
5845: # we can't tell.
1.1.1.2 misho 5846: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1.1 misho 5847: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5848: test $i != 17 # 1/2 MB should be enough
5849: do
5850: i=`expr $i + 1`
5851: teststring=$teststring$teststring
5852: done
5853: # Only check the string length outside the loop.
5854: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5855: teststring=
5856: # Add a significant safety factor because C++ compilers can tack on
5857: # massive amounts of additional arguments before passing them to the
5858: # linker. It appears as though 1/2 is a usable value.
5859: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5860: fi
5861: ;;
5862: esac
5863:
5864: fi
5865:
5866: if test -n $lt_cv_sys_max_cmd_len ; then
5867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5868: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5869: else
5870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5871: $as_echo "none" >&6; }
5872: fi
5873: max_cmd_len=$lt_cv_sys_max_cmd_len
5874:
5875:
5876:
5877:
5878:
5879:
5880: : ${CP="cp -f"}
5881: : ${MV="mv -f"}
5882: : ${RM="rm -f"}
5883:
5884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5885: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5886: # Try some XSI features
5887: xsi_shell=no
5888: ( _lt_dummy="a/b/c"
5889: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5890: = c,a/b,b/c, \
5891: && eval 'test $(( 1 + 1 )) -eq 2 \
5892: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5893: && xsi_shell=yes
5894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5895: $as_echo "$xsi_shell" >&6; }
5896:
5897:
5898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5899: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5900: lt_shell_append=no
5901: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5902: >/dev/null 2>&1 \
5903: && lt_shell_append=yes
5904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5905: $as_echo "$lt_shell_append" >&6; }
5906:
5907:
5908: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5909: lt_unset=unset
5910: else
5911: lt_unset=false
5912: fi
5913:
5914:
5915:
5916:
5917:
5918: # test EBCDIC or ASCII
5919: case `echo X|tr X '\101'` in
5920: A) # ASCII based system
5921: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5922: lt_SP2NL='tr \040 \012'
5923: lt_NL2SP='tr \015\012 \040\040'
5924: ;;
5925: *) # EBCDIC based system
5926: lt_SP2NL='tr \100 \n'
5927: lt_NL2SP='tr \r\n \100\100'
5928: ;;
5929: esac
5930:
5931:
5932:
5933:
5934:
5935:
5936:
5937:
5938:
5939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5940: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5941: if ${lt_cv_to_host_file_cmd+:} false; then :
5942: $as_echo_n "(cached) " >&6
5943: else
5944: case $host in
5945: *-*-mingw* )
5946: case $build in
5947: *-*-mingw* ) # actually msys
5948: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5949: ;;
5950: *-*-cygwin* )
5951: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5952: ;;
5953: * ) # otherwise, assume *nix
5954: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5955: ;;
5956: esac
5957: ;;
5958: *-*-cygwin* )
5959: case $build in
5960: *-*-mingw* ) # actually msys
5961: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5962: ;;
5963: *-*-cygwin* )
5964: lt_cv_to_host_file_cmd=func_convert_file_noop
5965: ;;
5966: * ) # otherwise, assume *nix
5967: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5968: ;;
5969: esac
5970: ;;
5971: * ) # unhandled hosts (and "normal" native builds)
5972: lt_cv_to_host_file_cmd=func_convert_file_noop
5973: ;;
5974: esac
5975:
5976: fi
5977:
5978: to_host_file_cmd=$lt_cv_to_host_file_cmd
5979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5980: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5981:
5982:
5983:
5984:
5985:
5986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5987: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5988: if ${lt_cv_to_tool_file_cmd+:} false; then :
5989: $as_echo_n "(cached) " >&6
5990: else
5991: #assume ordinary cross tools, or native build.
5992: lt_cv_to_tool_file_cmd=func_convert_file_noop
5993: case $host in
5994: *-*-mingw* )
5995: case $build in
5996: *-*-mingw* ) # actually msys
5997: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5998: ;;
5999: esac
6000: ;;
6001: esac
6002:
6003: fi
6004:
6005: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6007: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6008:
6009:
6010:
6011:
6012:
6013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6014: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6015: if ${lt_cv_ld_reload_flag+:} false; then :
6016: $as_echo_n "(cached) " >&6
6017: else
6018: lt_cv_ld_reload_flag='-r'
6019: fi
6020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6021: $as_echo "$lt_cv_ld_reload_flag" >&6; }
6022: reload_flag=$lt_cv_ld_reload_flag
6023: case $reload_flag in
6024: "" | " "*) ;;
6025: *) reload_flag=" $reload_flag" ;;
6026: esac
6027: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6028: case $host_os in
6029: cygwin* | mingw* | pw32* | cegcc*)
6030: if test "$GCC" != yes; then
6031: reload_cmds=false
6032: fi
6033: ;;
6034: darwin*)
6035: if test "$GCC" = yes; then
6036: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6037: else
6038: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6039: fi
6040: ;;
6041: esac
6042:
6043:
6044:
6045:
6046:
6047:
6048:
6049:
6050:
6051: if test -n "$ac_tool_prefix"; then
6052: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6053: set dummy ${ac_tool_prefix}objdump; ac_word=$2
6054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055: $as_echo_n "checking for $ac_word... " >&6; }
6056: if ${ac_cv_prog_OBJDUMP+:} false; then :
6057: $as_echo_n "(cached) " >&6
6058: else
6059: if test -n "$OBJDUMP"; then
6060: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6061: else
6062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063: for as_dir in $PATH
6064: do
6065: IFS=$as_save_IFS
6066: test -z "$as_dir" && as_dir=.
6067: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6068: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6069: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6070: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071: break 2
6072: fi
6073: done
6074: done
6075: IFS=$as_save_IFS
6076:
6077: fi
6078: fi
6079: OBJDUMP=$ac_cv_prog_OBJDUMP
6080: if test -n "$OBJDUMP"; then
6081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6082: $as_echo "$OBJDUMP" >&6; }
6083: else
6084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085: $as_echo "no" >&6; }
6086: fi
6087:
6088:
6089: fi
6090: if test -z "$ac_cv_prog_OBJDUMP"; then
6091: ac_ct_OBJDUMP=$OBJDUMP
6092: # Extract the first word of "objdump", so it can be a program name with args.
6093: set dummy objdump; ac_word=$2
6094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095: $as_echo_n "checking for $ac_word... " >&6; }
6096: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6097: $as_echo_n "(cached) " >&6
6098: else
6099: if test -n "$ac_ct_OBJDUMP"; then
6100: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6101: else
6102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103: for as_dir in $PATH
6104: do
6105: IFS=$as_save_IFS
6106: test -z "$as_dir" && as_dir=.
6107: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6108: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6109: ac_cv_prog_ac_ct_OBJDUMP="objdump"
6110: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111: break 2
6112: fi
6113: done
6114: done
6115: IFS=$as_save_IFS
6116:
6117: fi
6118: fi
6119: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6120: if test -n "$ac_ct_OBJDUMP"; then
6121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6122: $as_echo "$ac_ct_OBJDUMP" >&6; }
6123: else
6124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125: $as_echo "no" >&6; }
6126: fi
6127:
6128: if test "x$ac_ct_OBJDUMP" = x; then
6129: OBJDUMP="false"
6130: else
6131: case $cross_compiling:$ac_tool_warned in
6132: yes:)
6133: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135: ac_tool_warned=yes ;;
6136: esac
6137: OBJDUMP=$ac_ct_OBJDUMP
6138: fi
6139: else
6140: OBJDUMP="$ac_cv_prog_OBJDUMP"
6141: fi
6142:
6143: test -z "$OBJDUMP" && OBJDUMP=objdump
6144:
6145:
6146:
6147:
6148:
6149:
6150:
6151:
6152:
6153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6154: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6155: if ${lt_cv_deplibs_check_method+:} false; then :
6156: $as_echo_n "(cached) " >&6
6157: else
6158: lt_cv_file_magic_cmd='$MAGIC_CMD'
6159: lt_cv_file_magic_test_file=
6160: lt_cv_deplibs_check_method='unknown'
6161: # Need to set the preceding variable on all platforms that support
6162: # interlibrary dependencies.
6163: # 'none' -- dependencies not supported.
6164: # `unknown' -- same as none, but documents that we really don't know.
6165: # 'pass_all' -- all dependencies passed with no checks.
6166: # 'test_compile' -- check by making test program.
6167: # 'file_magic [[regex]]' -- check by looking for files in library path
6168: # which responds to the $file_magic_cmd with a given extended regex.
6169: # If you have `file' or equivalent on your system and you're not sure
6170: # whether `pass_all' will *always* work, you probably want this one.
6171:
6172: case $host_os in
6173: aix[4-9]*)
6174: lt_cv_deplibs_check_method=pass_all
6175: ;;
6176:
6177: beos*)
6178: lt_cv_deplibs_check_method=pass_all
6179: ;;
6180:
6181: bsdi[45]*)
6182: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6183: lt_cv_file_magic_cmd='/usr/bin/file -L'
6184: lt_cv_file_magic_test_file=/shlib/libc.so
6185: ;;
6186:
6187: cygwin*)
6188: # func_win32_libid is a shell function defined in ltmain.sh
6189: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6190: lt_cv_file_magic_cmd='func_win32_libid'
6191: ;;
6192:
6193: mingw* | pw32*)
6194: # Base MSYS/MinGW do not provide the 'file' command needed by
6195: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6196: # unless we find 'file', for example because we are cross-compiling.
6197: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6198: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6199: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6200: lt_cv_file_magic_cmd='func_win32_libid'
6201: else
6202: # Keep this pattern in sync with the one in func_win32_libid.
6203: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6204: lt_cv_file_magic_cmd='$OBJDUMP -f'
6205: fi
6206: ;;
6207:
6208: cegcc*)
6209: # use the weaker test based on 'objdump'. See mingw*.
6210: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6211: lt_cv_file_magic_cmd='$OBJDUMP -f'
6212: ;;
6213:
6214: darwin* | rhapsody*)
6215: lt_cv_deplibs_check_method=pass_all
6216: ;;
6217:
6218: freebsd* | dragonfly*)
6219: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6220: case $host_cpu in
6221: i*86 )
6222: # Not sure whether the presence of OpenBSD here was a mistake.
6223: # Let's accept both of them until this is cleared up.
6224: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6225: lt_cv_file_magic_cmd=/usr/bin/file
6226: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6227: ;;
6228: esac
6229: else
6230: lt_cv_deplibs_check_method=pass_all
6231: fi
6232: ;;
6233:
6234: gnu*)
6235: lt_cv_deplibs_check_method=pass_all
6236: ;;
6237:
6238: haiku*)
6239: lt_cv_deplibs_check_method=pass_all
6240: ;;
6241:
6242: hpux10.20* | hpux11*)
6243: lt_cv_file_magic_cmd=/usr/bin/file
6244: case $host_cpu in
6245: ia64*)
6246: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6247: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6248: ;;
6249: hppa*64*)
6250: 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]'
6251: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6252: ;;
6253: *)
6254: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6255: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6256: ;;
6257: esac
6258: ;;
6259:
6260: interix[3-9]*)
6261: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6262: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6263: ;;
6264:
6265: irix5* | irix6* | nonstopux*)
6266: case $LD in
6267: *-32|*"-32 ") libmagic=32-bit;;
6268: *-n32|*"-n32 ") libmagic=N32;;
6269: *-64|*"-64 ") libmagic=64-bit;;
6270: *) libmagic=never-match;;
6271: esac
6272: lt_cv_deplibs_check_method=pass_all
6273: ;;
6274:
1.1.1.2 misho 6275: # This must be glibc/ELF.
1.1 misho 6276: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6277: lt_cv_deplibs_check_method=pass_all
6278: ;;
6279:
6280: netbsd*)
6281: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6282: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6283: else
6284: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6285: fi
6286: ;;
6287:
6288: newos6*)
6289: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6290: lt_cv_file_magic_cmd=/usr/bin/file
6291: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6292: ;;
6293:
6294: *nto* | *qnx*)
6295: lt_cv_deplibs_check_method=pass_all
6296: ;;
6297:
6298: openbsd*)
6299: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6300: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6301: else
6302: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6303: fi
6304: ;;
6305:
6306: osf3* | osf4* | osf5*)
6307: lt_cv_deplibs_check_method=pass_all
6308: ;;
6309:
6310: rdos*)
6311: lt_cv_deplibs_check_method=pass_all
6312: ;;
6313:
6314: solaris*)
6315: lt_cv_deplibs_check_method=pass_all
6316: ;;
6317:
6318: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6319: lt_cv_deplibs_check_method=pass_all
6320: ;;
6321:
6322: sysv4 | sysv4.3*)
6323: case $host_vendor in
6324: motorola)
6325: 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]'
6326: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6327: ;;
6328: ncr)
6329: lt_cv_deplibs_check_method=pass_all
6330: ;;
6331: sequent)
6332: lt_cv_file_magic_cmd='/bin/file'
6333: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6334: ;;
6335: sni)
6336: lt_cv_file_magic_cmd='/bin/file'
6337: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6338: lt_cv_file_magic_test_file=/lib/libc.so
6339: ;;
6340: siemens)
6341: lt_cv_deplibs_check_method=pass_all
6342: ;;
6343: pc)
6344: lt_cv_deplibs_check_method=pass_all
6345: ;;
6346: esac
6347: ;;
6348:
6349: tpf*)
6350: lt_cv_deplibs_check_method=pass_all
6351: ;;
6352: esac
6353:
6354: fi
6355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6356: $as_echo "$lt_cv_deplibs_check_method" >&6; }
6357:
6358: file_magic_glob=
6359: want_nocaseglob=no
6360: if test "$build" = "$host"; then
6361: case $host_os in
6362: mingw* | pw32*)
6363: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6364: want_nocaseglob=yes
6365: else
6366: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6367: fi
6368: ;;
6369: esac
6370: fi
6371:
6372: file_magic_cmd=$lt_cv_file_magic_cmd
6373: deplibs_check_method=$lt_cv_deplibs_check_method
6374: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
6386:
6387:
6388:
6389:
6390:
6391:
6392:
6393:
6394:
6395:
6396:
6397: if test -n "$ac_tool_prefix"; then
6398: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6399: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401: $as_echo_n "checking for $ac_word... " >&6; }
6402: if ${ac_cv_prog_DLLTOOL+:} false; then :
6403: $as_echo_n "(cached) " >&6
6404: else
6405: if test -n "$DLLTOOL"; then
6406: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6407: else
6408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409: for as_dir in $PATH
6410: do
6411: IFS=$as_save_IFS
6412: test -z "$as_dir" && as_dir=.
6413: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6414: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6415: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6416: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417: break 2
6418: fi
6419: done
6420: done
6421: IFS=$as_save_IFS
6422:
6423: fi
6424: fi
6425: DLLTOOL=$ac_cv_prog_DLLTOOL
6426: if test -n "$DLLTOOL"; then
6427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6428: $as_echo "$DLLTOOL" >&6; }
6429: else
6430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431: $as_echo "no" >&6; }
6432: fi
6433:
6434:
6435: fi
6436: if test -z "$ac_cv_prog_DLLTOOL"; then
6437: ac_ct_DLLTOOL=$DLLTOOL
6438: # Extract the first word of "dlltool", so it can be a program name with args.
6439: set dummy dlltool; ac_word=$2
6440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441: $as_echo_n "checking for $ac_word... " >&6; }
6442: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6443: $as_echo_n "(cached) " >&6
6444: else
6445: if test -n "$ac_ct_DLLTOOL"; then
6446: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6447: else
6448: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449: for as_dir in $PATH
6450: do
6451: IFS=$as_save_IFS
6452: test -z "$as_dir" && as_dir=.
6453: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6454: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6455: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6456: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457: break 2
6458: fi
6459: done
6460: done
6461: IFS=$as_save_IFS
6462:
6463: fi
6464: fi
6465: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6466: if test -n "$ac_ct_DLLTOOL"; then
6467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6468: $as_echo "$ac_ct_DLLTOOL" >&6; }
6469: else
6470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471: $as_echo "no" >&6; }
6472: fi
6473:
6474: if test "x$ac_ct_DLLTOOL" = x; then
6475: DLLTOOL="false"
6476: else
6477: case $cross_compiling:$ac_tool_warned in
6478: yes:)
6479: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481: ac_tool_warned=yes ;;
6482: esac
6483: DLLTOOL=$ac_ct_DLLTOOL
6484: fi
6485: else
6486: DLLTOOL="$ac_cv_prog_DLLTOOL"
6487: fi
6488:
6489: test -z "$DLLTOOL" && DLLTOOL=dlltool
6490:
6491:
6492:
6493:
6494:
6495:
6496:
6497:
6498:
6499:
6500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6501: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6502: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6503: $as_echo_n "(cached) " >&6
6504: else
6505: lt_cv_sharedlib_from_linklib_cmd='unknown'
6506:
6507: case $host_os in
6508: cygwin* | mingw* | pw32* | cegcc*)
6509: # two different shell functions defined in ltmain.sh
6510: # decide which to use based on capabilities of $DLLTOOL
6511: case `$DLLTOOL --help 2>&1` in
6512: *--identify-strict*)
6513: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6514: ;;
6515: *)
6516: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6517: ;;
6518: esac
6519: ;;
6520: *)
6521: # fallback: assume linklib IS sharedlib
6522: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6523: ;;
6524: esac
6525:
6526: fi
6527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6528: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6529: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6530: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6531:
6532:
6533:
6534:
6535:
6536:
6537:
6538: if test -n "$ac_tool_prefix"; then
6539: for ac_prog in ar
6540: do
6541: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6542: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544: $as_echo_n "checking for $ac_word... " >&6; }
6545: if ${ac_cv_prog_AR+:} false; then :
6546: $as_echo_n "(cached) " >&6
6547: else
6548: if test -n "$AR"; then
6549: ac_cv_prog_AR="$AR" # Let the user override the test.
6550: else
6551: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552: for as_dir in $PATH
6553: do
6554: IFS=$as_save_IFS
6555: test -z "$as_dir" && as_dir=.
6556: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6557: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6558: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6559: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560: break 2
6561: fi
6562: done
6563: done
6564: IFS=$as_save_IFS
6565:
6566: fi
6567: fi
6568: AR=$ac_cv_prog_AR
6569: if test -n "$AR"; then
6570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6571: $as_echo "$AR" >&6; }
6572: else
6573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574: $as_echo "no" >&6; }
6575: fi
6576:
6577:
6578: test -n "$AR" && break
6579: done
6580: fi
6581: if test -z "$AR"; then
6582: ac_ct_AR=$AR
6583: for ac_prog in ar
6584: do
6585: # Extract the first word of "$ac_prog", so it can be a program name with args.
6586: set dummy $ac_prog; ac_word=$2
6587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588: $as_echo_n "checking for $ac_word... " >&6; }
6589: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6590: $as_echo_n "(cached) " >&6
6591: else
6592: if test -n "$ac_ct_AR"; then
6593: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6594: else
6595: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596: for as_dir in $PATH
6597: do
6598: IFS=$as_save_IFS
6599: test -z "$as_dir" && as_dir=.
6600: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6601: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6602: ac_cv_prog_ac_ct_AR="$ac_prog"
6603: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604: break 2
6605: fi
6606: done
6607: done
6608: IFS=$as_save_IFS
6609:
6610: fi
6611: fi
6612: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6613: if test -n "$ac_ct_AR"; then
6614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6615: $as_echo "$ac_ct_AR" >&6; }
6616: else
6617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618: $as_echo "no" >&6; }
6619: fi
6620:
6621:
6622: test -n "$ac_ct_AR" && break
6623: done
6624:
6625: if test "x$ac_ct_AR" = x; then
6626: AR="false"
6627: else
6628: case $cross_compiling:$ac_tool_warned in
6629: yes:)
6630: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632: ac_tool_warned=yes ;;
6633: esac
6634: AR=$ac_ct_AR
6635: fi
6636: fi
6637:
6638: : ${AR=ar}
6639: : ${AR_FLAGS=cru}
6640:
6641:
6642:
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6652: $as_echo_n "checking for archiver @FILE support... " >&6; }
6653: if ${lt_cv_ar_at_file+:} false; then :
6654: $as_echo_n "(cached) " >&6
6655: else
6656: lt_cv_ar_at_file=no
6657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658: /* end confdefs.h. */
6659:
6660: int
6661: main ()
6662: {
6663:
6664: ;
6665: return 0;
6666: }
6667: _ACEOF
6668: if ac_fn_c_try_compile "$LINENO"; then :
6669: echo conftest.$ac_objext > conftest.lst
6670: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6671: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6672: (eval $lt_ar_try) 2>&5
6673: ac_status=$?
6674: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675: test $ac_status = 0; }
6676: if test "$ac_status" -eq 0; then
6677: # Ensure the archiver fails upon bogus file names.
6678: rm -f conftest.$ac_objext libconftest.a
6679: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6680: (eval $lt_ar_try) 2>&5
6681: ac_status=$?
6682: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6683: test $ac_status = 0; }
6684: if test "$ac_status" -ne 0; then
6685: lt_cv_ar_at_file=@
6686: fi
6687: fi
6688: rm -f conftest.* libconftest.a
6689:
6690: fi
6691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692:
6693: fi
6694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6695: $as_echo "$lt_cv_ar_at_file" >&6; }
6696:
6697: if test "x$lt_cv_ar_at_file" = xno; then
6698: archiver_list_spec=
6699: else
6700: archiver_list_spec=$lt_cv_ar_at_file
6701: fi
6702:
6703:
6704:
6705:
6706:
6707:
6708:
6709: if test -n "$ac_tool_prefix"; then
6710: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6711: set dummy ${ac_tool_prefix}strip; ac_word=$2
6712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713: $as_echo_n "checking for $ac_word... " >&6; }
6714: if ${ac_cv_prog_STRIP+:} false; then :
6715: $as_echo_n "(cached) " >&6
6716: else
6717: if test -n "$STRIP"; then
6718: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6719: else
6720: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721: for as_dir in $PATH
6722: do
6723: IFS=$as_save_IFS
6724: test -z "$as_dir" && as_dir=.
6725: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6726: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6727: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6728: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729: break 2
6730: fi
6731: done
6732: done
6733: IFS=$as_save_IFS
6734:
6735: fi
6736: fi
6737: STRIP=$ac_cv_prog_STRIP
6738: if test -n "$STRIP"; then
6739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6740: $as_echo "$STRIP" >&6; }
6741: else
6742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743: $as_echo "no" >&6; }
6744: fi
6745:
6746:
6747: fi
6748: if test -z "$ac_cv_prog_STRIP"; then
6749: ac_ct_STRIP=$STRIP
6750: # Extract the first word of "strip", so it can be a program name with args.
6751: set dummy strip; ac_word=$2
6752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753: $as_echo_n "checking for $ac_word... " >&6; }
6754: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6755: $as_echo_n "(cached) " >&6
6756: else
6757: if test -n "$ac_ct_STRIP"; then
6758: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6759: else
6760: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761: for as_dir in $PATH
6762: do
6763: IFS=$as_save_IFS
6764: test -z "$as_dir" && as_dir=.
6765: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6766: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6767: ac_cv_prog_ac_ct_STRIP="strip"
6768: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769: break 2
6770: fi
6771: done
6772: done
6773: IFS=$as_save_IFS
6774:
6775: fi
6776: fi
6777: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6778: if test -n "$ac_ct_STRIP"; then
6779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6780: $as_echo "$ac_ct_STRIP" >&6; }
6781: else
6782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783: $as_echo "no" >&6; }
6784: fi
6785:
6786: if test "x$ac_ct_STRIP" = x; then
6787: STRIP=":"
6788: else
6789: case $cross_compiling:$ac_tool_warned in
6790: yes:)
6791: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793: ac_tool_warned=yes ;;
6794: esac
6795: STRIP=$ac_ct_STRIP
6796: fi
6797: else
6798: STRIP="$ac_cv_prog_STRIP"
6799: fi
6800:
6801: test -z "$STRIP" && STRIP=:
6802:
6803:
6804:
6805:
6806:
6807:
6808: if test -n "$ac_tool_prefix"; then
6809: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6810: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812: $as_echo_n "checking for $ac_word... " >&6; }
6813: if ${ac_cv_prog_RANLIB+:} false; then :
6814: $as_echo_n "(cached) " >&6
6815: else
6816: if test -n "$RANLIB"; then
6817: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6818: else
6819: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820: for as_dir in $PATH
6821: do
6822: IFS=$as_save_IFS
6823: test -z "$as_dir" && as_dir=.
6824: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6825: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6826: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6827: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828: break 2
6829: fi
6830: done
6831: done
6832: IFS=$as_save_IFS
6833:
6834: fi
6835: fi
6836: RANLIB=$ac_cv_prog_RANLIB
6837: if test -n "$RANLIB"; then
6838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6839: $as_echo "$RANLIB" >&6; }
6840: else
6841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842: $as_echo "no" >&6; }
6843: fi
6844:
6845:
6846: fi
6847: if test -z "$ac_cv_prog_RANLIB"; then
6848: ac_ct_RANLIB=$RANLIB
6849: # Extract the first word of "ranlib", so it can be a program name with args.
6850: set dummy ranlib; ac_word=$2
6851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852: $as_echo_n "checking for $ac_word... " >&6; }
6853: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6854: $as_echo_n "(cached) " >&6
6855: else
6856: if test -n "$ac_ct_RANLIB"; then
6857: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6858: else
6859: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860: for as_dir in $PATH
6861: do
6862: IFS=$as_save_IFS
6863: test -z "$as_dir" && as_dir=.
6864: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6865: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6866: ac_cv_prog_ac_ct_RANLIB="ranlib"
6867: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868: break 2
6869: fi
6870: done
6871: done
6872: IFS=$as_save_IFS
6873:
6874: fi
6875: fi
6876: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6877: if test -n "$ac_ct_RANLIB"; then
6878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6879: $as_echo "$ac_ct_RANLIB" >&6; }
6880: else
6881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882: $as_echo "no" >&6; }
6883: fi
6884:
6885: if test "x$ac_ct_RANLIB" = x; then
6886: RANLIB=":"
6887: else
6888: case $cross_compiling:$ac_tool_warned in
6889: yes:)
6890: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892: ac_tool_warned=yes ;;
6893: esac
6894: RANLIB=$ac_ct_RANLIB
6895: fi
6896: else
6897: RANLIB="$ac_cv_prog_RANLIB"
6898: fi
6899:
6900: test -z "$RANLIB" && RANLIB=:
6901:
6902:
6903:
6904:
6905:
6906:
6907: # Determine commands to create old-style static archives.
6908: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6909: old_postinstall_cmds='chmod 644 $oldlib'
6910: old_postuninstall_cmds=
6911:
6912: if test -n "$RANLIB"; then
6913: case $host_os in
6914: openbsd*)
1.1.1.2 misho 6915: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misho 6916: ;;
6917: *)
1.1.1.2 misho 6918: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 6919: ;;
6920: esac
1.1.1.2 misho 6921: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 6922: fi
6923:
6924: case $host_os in
6925: darwin*)
6926: lock_old_archive_extraction=yes ;;
6927: *)
6928: lock_old_archive_extraction=no ;;
6929: esac
6930:
6931:
6932:
6933:
6934:
6935:
6936:
6937:
6938:
6939:
6940:
6941:
6942:
6943:
6944:
6945:
6946:
6947:
6948:
6949:
6950:
6951:
6952:
6953:
6954:
6955:
6956:
6957:
6958:
6959:
6960:
6961:
6962:
6963:
6964:
6965:
6966:
6967:
6968:
6969: # If no C compiler was specified, use CC.
6970: LTCC=${LTCC-"$CC"}
6971:
6972: # If no C compiler flags were specified, use CFLAGS.
6973: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6974:
6975: # Allow CC to be a program name with arguments.
6976: compiler=$CC
6977:
6978:
6979: # Check for command to grab the raw symbol name followed by C symbol from nm.
6980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6981: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6982: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6983: $as_echo_n "(cached) " >&6
6984: else
6985:
6986: # These are sane defaults that work on at least a few old systems.
6987: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6988:
6989: # Character class describing NM global symbol codes.
6990: symcode='[BCDEGRST]'
6991:
6992: # Regexp to match symbols that can be accessed directly from C.
6993: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6994:
6995: # Define system-specific variables.
6996: case $host_os in
6997: aix*)
6998: symcode='[BCDT]'
6999: ;;
7000: cygwin* | mingw* | pw32* | cegcc*)
7001: symcode='[ABCDGISTW]'
7002: ;;
7003: hpux*)
7004: if test "$host_cpu" = ia64; then
7005: symcode='[ABCDEGRST]'
7006: fi
7007: ;;
7008: irix* | nonstopux*)
7009: symcode='[BCDEGRST]'
7010: ;;
7011: osf*)
7012: symcode='[BCDEGQRST]'
7013: ;;
7014: solaris*)
7015: symcode='[BDRT]'
7016: ;;
7017: sco3.2v5*)
7018: symcode='[DT]'
7019: ;;
7020: sysv4.2uw2*)
7021: symcode='[DT]'
7022: ;;
7023: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7024: symcode='[ABDT]'
7025: ;;
7026: sysv4)
7027: symcode='[DFNSTU]'
7028: ;;
7029: esac
7030:
7031: # If we're using GNU nm, then use its standard symbol codes.
7032: case `$NM -V 2>&1` in
7033: *GNU* | *'with BFD'*)
7034: symcode='[ABCDGIRSTW]' ;;
7035: esac
7036:
7037: # Transform an extracted symbol line into a proper C declaration.
7038: # Some systems (esp. on ia64) link data and code symbols differently,
7039: # so use this general approach.
7040: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7041:
7042: # Transform an extracted symbol line into symbol name and symbol address
7043: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7044: 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'"
7045:
7046: # Handle CRLF in mingw tool chain
7047: opt_cr=
7048: case $build_os in
7049: mingw*)
7050: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7051: ;;
7052: esac
7053:
7054: # Try without a prefix underscore, then with it.
7055: for ac_symprfx in "" "_"; do
7056:
7057: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7058: symxfrm="\\1 $ac_symprfx\\2 \\2"
7059:
7060: # Write the raw and C identifiers.
7061: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7062: # Fake it for dumpbin and say T for any non-static function
7063: # and D for any global variable.
7064: # Also find C++ and __fastcall symbols from MSVC++,
7065: # which start with @ or ?.
7066: lt_cv_sys_global_symbol_pipe="$AWK '"\
7067: " {last_section=section; section=\$ 3};"\
1.1.1.2 misho 7068: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
1.1 misho 7069: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7070: " \$ 0!~/External *\|/{next};"\
7071: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7072: " {if(hide[section]) next};"\
7073: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7074: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7075: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7076: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7077: " ' prfx=^$ac_symprfx"
7078: else
7079: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7080: fi
7081: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7082:
7083: # Check to see that the pipe works correctly.
7084: pipe_works=no
7085:
7086: rm -f conftest*
7087: cat > conftest.$ac_ext <<_LT_EOF
7088: #ifdef __cplusplus
7089: extern "C" {
7090: #endif
7091: char nm_test_var;
7092: void nm_test_func(void);
7093: void nm_test_func(void){}
7094: #ifdef __cplusplus
7095: }
7096: #endif
7097: int main(){nm_test_var='a';nm_test_func();return(0);}
7098: _LT_EOF
7099:
7100: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7101: (eval $ac_compile) 2>&5
7102: ac_status=$?
7103: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104: test $ac_status = 0; }; then
7105: # Now try to grab the symbols.
7106: nlist=conftest.nm
7107: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7108: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7109: ac_status=$?
7110: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111: test $ac_status = 0; } && test -s "$nlist"; then
7112: # Try sorting and uniquifying the output.
7113: if sort "$nlist" | uniq > "$nlist"T; then
7114: mv -f "$nlist"T "$nlist"
7115: else
7116: rm -f "$nlist"T
7117: fi
7118:
7119: # Make sure that we snagged all the symbols we need.
7120: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7121: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7122: cat <<_LT_EOF > conftest.$ac_ext
7123: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7124: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7125: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7126: relocations are performed -- see ld's documentation on pseudo-relocs. */
7127: # define LT_DLSYM_CONST
7128: #elif defined(__osf__)
7129: /* This system does not cope well with relocations in const data. */
7130: # define LT_DLSYM_CONST
7131: #else
7132: # define LT_DLSYM_CONST const
7133: #endif
7134:
7135: #ifdef __cplusplus
7136: extern "C" {
7137: #endif
7138:
7139: _LT_EOF
7140: # Now generate the symbol file.
7141: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7142:
7143: cat <<_LT_EOF >> conftest.$ac_ext
7144:
7145: /* The mapping between symbol names and symbols. */
7146: LT_DLSYM_CONST struct {
7147: const char *name;
7148: void *address;
7149: }
7150: lt__PROGRAM__LTX_preloaded_symbols[] =
7151: {
7152: { "@PROGRAM@", (void *) 0 },
7153: _LT_EOF
7154: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7155: cat <<\_LT_EOF >> conftest.$ac_ext
7156: {0, (void *) 0}
7157: };
7158:
7159: /* This works around a problem in FreeBSD linker */
7160: #ifdef FREEBSD_WORKAROUND
7161: static const void *lt_preloaded_setup() {
7162: return lt__PROGRAM__LTX_preloaded_symbols;
7163: }
7164: #endif
7165:
7166: #ifdef __cplusplus
7167: }
7168: #endif
7169: _LT_EOF
7170: # Now try linking the two files.
7171: mv conftest.$ac_objext conftstm.$ac_objext
7172: lt_globsym_save_LIBS=$LIBS
7173: lt_globsym_save_CFLAGS=$CFLAGS
7174: LIBS="conftstm.$ac_objext"
7175: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7176: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7177: (eval $ac_link) 2>&5
7178: ac_status=$?
7179: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7180: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7181: pipe_works=yes
7182: fi
7183: LIBS=$lt_globsym_save_LIBS
7184: CFLAGS=$lt_globsym_save_CFLAGS
7185: else
7186: echo "cannot find nm_test_func in $nlist" >&5
7187: fi
7188: else
7189: echo "cannot find nm_test_var in $nlist" >&5
7190: fi
7191: else
7192: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7193: fi
7194: else
7195: echo "$progname: failed program was:" >&5
7196: cat conftest.$ac_ext >&5
7197: fi
7198: rm -rf conftest* conftst*
7199:
7200: # Do not use the global_symbol_pipe unless it works.
7201: if test "$pipe_works" = yes; then
7202: break
7203: else
7204: lt_cv_sys_global_symbol_pipe=
7205: fi
7206: done
7207:
7208: fi
7209:
7210: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7211: lt_cv_sys_global_symbol_to_cdecl=
7212: fi
7213: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7215: $as_echo "failed" >&6; }
7216: else
7217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7218: $as_echo "ok" >&6; }
7219: fi
7220:
7221: # Response file support.
7222: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7223: nm_file_list_spec='@'
7224: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7225: nm_file_list_spec='@'
7226: fi
7227:
7228:
7229:
7230:
7231:
7232:
7233:
7234:
7235:
7236:
7237:
7238:
7239:
7240:
7241:
7242:
7243:
7244:
7245:
7246:
7247:
7248:
7249:
7250:
7251:
7252:
7253:
7254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7255: $as_echo_n "checking for sysroot... " >&6; }
7256:
7257: # Check whether --with-sysroot was given.
7258: if test "${with_sysroot+set}" = set; then :
7259: withval=$with_sysroot;
7260: else
7261: with_sysroot=no
7262: fi
7263:
7264:
7265: lt_sysroot=
7266: case ${with_sysroot} in #(
7267: yes)
7268: if test "$GCC" = yes; then
7269: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7270: fi
7271: ;; #(
7272: /*)
7273: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7274: ;; #(
7275: no|'')
7276: ;; #(
7277: *)
7278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7279: $as_echo "${with_sysroot}" >&6; }
7280: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7281: ;;
7282: esac
7283:
7284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7285: $as_echo "${lt_sysroot:-no}" >&6; }
7286:
7287:
7288:
7289:
7290:
7291: # Check whether --enable-libtool-lock was given.
7292: if test "${enable_libtool_lock+set}" = set; then :
7293: enableval=$enable_libtool_lock;
7294: fi
7295:
7296: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7297:
7298: # Some flags need to be propagated to the compiler or linker for good
7299: # libtool support.
7300: case $host in
7301: ia64-*-hpux*)
7302: # Find out which ABI we are using.
7303: echo 'int i;' > conftest.$ac_ext
7304: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7305: (eval $ac_compile) 2>&5
7306: ac_status=$?
7307: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308: test $ac_status = 0; }; then
7309: case `/usr/bin/file conftest.$ac_objext` in
7310: *ELF-32*)
7311: HPUX_IA64_MODE="32"
7312: ;;
7313: *ELF-64*)
7314: HPUX_IA64_MODE="64"
7315: ;;
7316: esac
7317: fi
7318: rm -rf conftest*
7319: ;;
7320: *-*-irix6*)
7321: # Find out which ABI we are using.
7322: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7323: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324: (eval $ac_compile) 2>&5
7325: ac_status=$?
7326: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327: test $ac_status = 0; }; then
7328: if test "$lt_cv_prog_gnu_ld" = yes; then
7329: case `/usr/bin/file conftest.$ac_objext` in
7330: *32-bit*)
7331: LD="${LD-ld} -melf32bsmip"
7332: ;;
7333: *N32*)
7334: LD="${LD-ld} -melf32bmipn32"
7335: ;;
7336: *64-bit*)
7337: LD="${LD-ld} -melf64bmip"
7338: ;;
7339: esac
7340: else
7341: case `/usr/bin/file conftest.$ac_objext` in
7342: *32-bit*)
7343: LD="${LD-ld} -32"
7344: ;;
7345: *N32*)
7346: LD="${LD-ld} -n32"
7347: ;;
7348: *64-bit*)
7349: LD="${LD-ld} -64"
7350: ;;
7351: esac
7352: fi
7353: fi
7354: rm -rf conftest*
7355: ;;
7356:
7357: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7358: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7359: # Find out which ABI we are using.
7360: echo 'int i;' > conftest.$ac_ext
7361: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7362: (eval $ac_compile) 2>&5
7363: ac_status=$?
7364: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365: test $ac_status = 0; }; then
7366: case `/usr/bin/file conftest.o` in
7367: *32-bit*)
7368: case $host in
7369: x86_64-*kfreebsd*-gnu)
7370: LD="${LD-ld} -m elf_i386_fbsd"
7371: ;;
7372: x86_64-*linux*)
7373: LD="${LD-ld} -m elf_i386"
7374: ;;
7375: ppc64-*linux*|powerpc64-*linux*)
7376: LD="${LD-ld} -m elf32ppclinux"
7377: ;;
7378: s390x-*linux*)
7379: LD="${LD-ld} -m elf_s390"
7380: ;;
7381: sparc64-*linux*)
7382: LD="${LD-ld} -m elf32_sparc"
7383: ;;
7384: esac
7385: ;;
7386: *64-bit*)
7387: case $host in
7388: x86_64-*kfreebsd*-gnu)
7389: LD="${LD-ld} -m elf_x86_64_fbsd"
7390: ;;
7391: x86_64-*linux*)
7392: LD="${LD-ld} -m elf_x86_64"
7393: ;;
7394: ppc*-*linux*|powerpc*-*linux*)
7395: LD="${LD-ld} -m elf64ppc"
7396: ;;
7397: s390*-*linux*|s390*-*tpf*)
7398: LD="${LD-ld} -m elf64_s390"
7399: ;;
7400: sparc*-*linux*)
7401: LD="${LD-ld} -m elf64_sparc"
7402: ;;
7403: esac
7404: ;;
7405: esac
7406: fi
7407: rm -rf conftest*
7408: ;;
7409:
7410: *-*-sco3.2v5*)
7411: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7412: SAVE_CFLAGS="$CFLAGS"
7413: CFLAGS="$CFLAGS -belf"
7414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7415: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7416: if ${lt_cv_cc_needs_belf+:} false; then :
7417: $as_echo_n "(cached) " >&6
7418: else
7419: ac_ext=c
7420: ac_cpp='$CPP $CPPFLAGS'
7421: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7424:
7425: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426: /* end confdefs.h. */
7427:
7428: int
7429: main ()
7430: {
7431:
7432: ;
7433: return 0;
7434: }
7435: _ACEOF
7436: if ac_fn_c_try_link "$LINENO"; then :
7437: lt_cv_cc_needs_belf=yes
7438: else
7439: lt_cv_cc_needs_belf=no
7440: fi
7441: rm -f core conftest.err conftest.$ac_objext \
7442: conftest$ac_exeext conftest.$ac_ext
7443: ac_ext=c
7444: ac_cpp='$CPP $CPPFLAGS'
7445: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7446: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7447: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7448:
7449: fi
7450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7451: $as_echo "$lt_cv_cc_needs_belf" >&6; }
7452: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7453: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7454: CFLAGS="$SAVE_CFLAGS"
7455: fi
7456: ;;
1.1.1.2 misho 7457: *-*solaris*)
1.1 misho 7458: # Find out which ABI we are using.
7459: echo 'int i;' > conftest.$ac_ext
7460: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461: (eval $ac_compile) 2>&5
7462: ac_status=$?
7463: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464: test $ac_status = 0; }; then
7465: case `/usr/bin/file conftest.o` in
7466: *64-bit*)
7467: case $lt_cv_prog_gnu_ld in
1.1.1.2 misho 7468: yes*)
7469: case $host in
7470: i?86-*-solaris*)
7471: LD="${LD-ld} -m elf_x86_64"
7472: ;;
7473: sparc*-*-solaris*)
7474: LD="${LD-ld} -m elf64_sparc"
7475: ;;
7476: esac
7477: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7478: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7479: LD="${LD-ld}_sol2"
7480: fi
7481: ;;
1.1 misho 7482: *)
7483: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7484: LD="${LD-ld} -64"
7485: fi
7486: ;;
7487: esac
7488: ;;
7489: esac
7490: fi
7491: rm -rf conftest*
7492: ;;
7493: esac
7494:
7495: need_locks="$enable_libtool_lock"
7496:
7497: if test -n "$ac_tool_prefix"; then
7498: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7499: set dummy ${ac_tool_prefix}mt; ac_word=$2
7500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501: $as_echo_n "checking for $ac_word... " >&6; }
7502: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7503: $as_echo_n "(cached) " >&6
7504: else
7505: if test -n "$MANIFEST_TOOL"; then
7506: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7507: else
7508: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509: for as_dir in $PATH
7510: do
7511: IFS=$as_save_IFS
7512: test -z "$as_dir" && as_dir=.
7513: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7514: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7515: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7516: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517: break 2
7518: fi
7519: done
7520: done
7521: IFS=$as_save_IFS
7522:
7523: fi
7524: fi
7525: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7526: if test -n "$MANIFEST_TOOL"; then
7527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7528: $as_echo "$MANIFEST_TOOL" >&6; }
7529: else
7530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531: $as_echo "no" >&6; }
7532: fi
7533:
7534:
7535: fi
7536: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7537: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7538: # Extract the first word of "mt", so it can be a program name with args.
7539: set dummy mt; ac_word=$2
7540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541: $as_echo_n "checking for $ac_word... " >&6; }
7542: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7543: $as_echo_n "(cached) " >&6
7544: else
7545: if test -n "$ac_ct_MANIFEST_TOOL"; then
7546: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7547: else
7548: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549: for as_dir in $PATH
7550: do
7551: IFS=$as_save_IFS
7552: test -z "$as_dir" && as_dir=.
7553: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7554: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7555: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7556: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557: break 2
7558: fi
7559: done
7560: done
7561: IFS=$as_save_IFS
7562:
7563: fi
7564: fi
7565: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7566: if test -n "$ac_ct_MANIFEST_TOOL"; then
7567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7568: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7569: else
7570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571: $as_echo "no" >&6; }
7572: fi
7573:
7574: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7575: MANIFEST_TOOL=":"
7576: else
7577: case $cross_compiling:$ac_tool_warned in
7578: yes:)
7579: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581: ac_tool_warned=yes ;;
7582: esac
7583: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7584: fi
7585: else
7586: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7587: fi
7588:
7589: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7591: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7592: if ${lt_cv_path_mainfest_tool+:} false; then :
7593: $as_echo_n "(cached) " >&6
7594: else
7595: lt_cv_path_mainfest_tool=no
7596: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7597: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7598: cat conftest.err >&5
7599: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7600: lt_cv_path_mainfest_tool=yes
7601: fi
7602: rm -f conftest*
7603: fi
7604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7605: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7606: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7607: MANIFEST_TOOL=:
7608: fi
7609:
7610:
7611:
7612:
7613:
7614:
7615: case $host_os in
7616: rhapsody* | darwin*)
7617: if test -n "$ac_tool_prefix"; then
7618: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7619: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621: $as_echo_n "checking for $ac_word... " >&6; }
7622: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7623: $as_echo_n "(cached) " >&6
7624: else
7625: if test -n "$DSYMUTIL"; then
7626: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7627: else
7628: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629: for as_dir in $PATH
7630: do
7631: IFS=$as_save_IFS
7632: test -z "$as_dir" && as_dir=.
7633: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7634: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7635: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7636: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637: break 2
7638: fi
7639: done
7640: done
7641: IFS=$as_save_IFS
7642:
7643: fi
7644: fi
7645: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7646: if test -n "$DSYMUTIL"; then
7647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7648: $as_echo "$DSYMUTIL" >&6; }
7649: else
7650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651: $as_echo "no" >&6; }
7652: fi
7653:
7654:
7655: fi
7656: if test -z "$ac_cv_prog_DSYMUTIL"; then
7657: ac_ct_DSYMUTIL=$DSYMUTIL
7658: # Extract the first word of "dsymutil", so it can be a program name with args.
7659: set dummy dsymutil; ac_word=$2
7660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661: $as_echo_n "checking for $ac_word... " >&6; }
7662: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7663: $as_echo_n "(cached) " >&6
7664: else
7665: if test -n "$ac_ct_DSYMUTIL"; then
7666: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7667: else
7668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669: for as_dir in $PATH
7670: do
7671: IFS=$as_save_IFS
7672: test -z "$as_dir" && as_dir=.
7673: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7674: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7675: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7676: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677: break 2
7678: fi
7679: done
7680: done
7681: IFS=$as_save_IFS
7682:
7683: fi
7684: fi
7685: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7686: if test -n "$ac_ct_DSYMUTIL"; then
7687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7688: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7689: else
7690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691: $as_echo "no" >&6; }
7692: fi
7693:
7694: if test "x$ac_ct_DSYMUTIL" = x; then
7695: DSYMUTIL=":"
7696: else
7697: case $cross_compiling:$ac_tool_warned in
7698: yes:)
7699: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701: ac_tool_warned=yes ;;
7702: esac
7703: DSYMUTIL=$ac_ct_DSYMUTIL
7704: fi
7705: else
7706: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7707: fi
7708:
7709: if test -n "$ac_tool_prefix"; then
7710: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7711: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713: $as_echo_n "checking for $ac_word... " >&6; }
7714: if ${ac_cv_prog_NMEDIT+:} false; then :
7715: $as_echo_n "(cached) " >&6
7716: else
7717: if test -n "$NMEDIT"; then
7718: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7719: else
7720: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721: for as_dir in $PATH
7722: do
7723: IFS=$as_save_IFS
7724: test -z "$as_dir" && as_dir=.
7725: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7726: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7727: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7728: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729: break 2
7730: fi
7731: done
7732: done
7733: IFS=$as_save_IFS
7734:
7735: fi
7736: fi
7737: NMEDIT=$ac_cv_prog_NMEDIT
7738: if test -n "$NMEDIT"; then
7739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7740: $as_echo "$NMEDIT" >&6; }
7741: else
7742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743: $as_echo "no" >&6; }
7744: fi
7745:
7746:
7747: fi
7748: if test -z "$ac_cv_prog_NMEDIT"; then
7749: ac_ct_NMEDIT=$NMEDIT
7750: # Extract the first word of "nmedit", so it can be a program name with args.
7751: set dummy nmedit; ac_word=$2
7752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753: $as_echo_n "checking for $ac_word... " >&6; }
7754: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7755: $as_echo_n "(cached) " >&6
7756: else
7757: if test -n "$ac_ct_NMEDIT"; then
7758: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7759: else
7760: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761: for as_dir in $PATH
7762: do
7763: IFS=$as_save_IFS
7764: test -z "$as_dir" && as_dir=.
7765: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7766: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7767: ac_cv_prog_ac_ct_NMEDIT="nmedit"
7768: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769: break 2
7770: fi
7771: done
7772: done
7773: IFS=$as_save_IFS
7774:
7775: fi
7776: fi
7777: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7778: if test -n "$ac_ct_NMEDIT"; then
7779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7780: $as_echo "$ac_ct_NMEDIT" >&6; }
7781: else
7782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783: $as_echo "no" >&6; }
7784: fi
7785:
7786: if test "x$ac_ct_NMEDIT" = x; then
7787: NMEDIT=":"
7788: else
7789: case $cross_compiling:$ac_tool_warned in
7790: yes:)
7791: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7792: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7793: ac_tool_warned=yes ;;
7794: esac
7795: NMEDIT=$ac_ct_NMEDIT
7796: fi
7797: else
7798: NMEDIT="$ac_cv_prog_NMEDIT"
7799: fi
7800:
7801: if test -n "$ac_tool_prefix"; then
7802: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7803: set dummy ${ac_tool_prefix}lipo; ac_word=$2
7804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805: $as_echo_n "checking for $ac_word... " >&6; }
7806: if ${ac_cv_prog_LIPO+:} false; then :
7807: $as_echo_n "(cached) " >&6
7808: else
7809: if test -n "$LIPO"; then
7810: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7811: else
7812: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813: for as_dir in $PATH
7814: do
7815: IFS=$as_save_IFS
7816: test -z "$as_dir" && as_dir=.
7817: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7818: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7819: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7820: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821: break 2
7822: fi
7823: done
7824: done
7825: IFS=$as_save_IFS
7826:
7827: fi
7828: fi
7829: LIPO=$ac_cv_prog_LIPO
7830: if test -n "$LIPO"; then
7831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7832: $as_echo "$LIPO" >&6; }
7833: else
7834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835: $as_echo "no" >&6; }
7836: fi
7837:
7838:
7839: fi
7840: if test -z "$ac_cv_prog_LIPO"; then
7841: ac_ct_LIPO=$LIPO
7842: # Extract the first word of "lipo", so it can be a program name with args.
7843: set dummy lipo; ac_word=$2
7844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845: $as_echo_n "checking for $ac_word... " >&6; }
7846: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7847: $as_echo_n "(cached) " >&6
7848: else
7849: if test -n "$ac_ct_LIPO"; then
7850: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7851: else
7852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853: for as_dir in $PATH
7854: do
7855: IFS=$as_save_IFS
7856: test -z "$as_dir" && as_dir=.
7857: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7858: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7859: ac_cv_prog_ac_ct_LIPO="lipo"
7860: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861: break 2
7862: fi
7863: done
7864: done
7865: IFS=$as_save_IFS
7866:
7867: fi
7868: fi
7869: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7870: if test -n "$ac_ct_LIPO"; then
7871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7872: $as_echo "$ac_ct_LIPO" >&6; }
7873: else
7874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875: $as_echo "no" >&6; }
7876: fi
7877:
7878: if test "x$ac_ct_LIPO" = x; then
7879: LIPO=":"
7880: else
7881: case $cross_compiling:$ac_tool_warned in
7882: yes:)
7883: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7884: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7885: ac_tool_warned=yes ;;
7886: esac
7887: LIPO=$ac_ct_LIPO
7888: fi
7889: else
7890: LIPO="$ac_cv_prog_LIPO"
7891: fi
7892:
7893: if test -n "$ac_tool_prefix"; then
7894: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7895: set dummy ${ac_tool_prefix}otool; ac_word=$2
7896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897: $as_echo_n "checking for $ac_word... " >&6; }
7898: if ${ac_cv_prog_OTOOL+:} false; then :
7899: $as_echo_n "(cached) " >&6
7900: else
7901: if test -n "$OTOOL"; then
7902: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7903: else
7904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905: for as_dir in $PATH
7906: do
7907: IFS=$as_save_IFS
7908: test -z "$as_dir" && as_dir=.
7909: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7910: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7911: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7912: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913: break 2
7914: fi
7915: done
7916: done
7917: IFS=$as_save_IFS
7918:
7919: fi
7920: fi
7921: OTOOL=$ac_cv_prog_OTOOL
7922: if test -n "$OTOOL"; then
7923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7924: $as_echo "$OTOOL" >&6; }
7925: else
7926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927: $as_echo "no" >&6; }
7928: fi
7929:
7930:
7931: fi
7932: if test -z "$ac_cv_prog_OTOOL"; then
7933: ac_ct_OTOOL=$OTOOL
7934: # Extract the first word of "otool", so it can be a program name with args.
7935: set dummy otool; ac_word=$2
7936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937: $as_echo_n "checking for $ac_word... " >&6; }
7938: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7939: $as_echo_n "(cached) " >&6
7940: else
7941: if test -n "$ac_ct_OTOOL"; then
7942: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7943: else
7944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945: for as_dir in $PATH
7946: do
7947: IFS=$as_save_IFS
7948: test -z "$as_dir" && as_dir=.
7949: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7950: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7951: ac_cv_prog_ac_ct_OTOOL="otool"
7952: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953: break 2
7954: fi
7955: done
7956: done
7957: IFS=$as_save_IFS
7958:
7959: fi
7960: fi
7961: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7962: if test -n "$ac_ct_OTOOL"; then
7963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7964: $as_echo "$ac_ct_OTOOL" >&6; }
7965: else
7966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967: $as_echo "no" >&6; }
7968: fi
7969:
7970: if test "x$ac_ct_OTOOL" = x; then
7971: OTOOL=":"
7972: else
7973: case $cross_compiling:$ac_tool_warned in
7974: yes:)
7975: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7976: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7977: ac_tool_warned=yes ;;
7978: esac
7979: OTOOL=$ac_ct_OTOOL
7980: fi
7981: else
7982: OTOOL="$ac_cv_prog_OTOOL"
7983: fi
7984:
7985: if test -n "$ac_tool_prefix"; then
7986: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7987: set dummy ${ac_tool_prefix}otool64; ac_word=$2
7988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989: $as_echo_n "checking for $ac_word... " >&6; }
7990: if ${ac_cv_prog_OTOOL64+:} false; then :
7991: $as_echo_n "(cached) " >&6
7992: else
7993: if test -n "$OTOOL64"; then
7994: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7995: else
7996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997: for as_dir in $PATH
7998: do
7999: IFS=$as_save_IFS
8000: test -z "$as_dir" && as_dir=.
8001: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 8002: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8003: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8004: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005: break 2
8006: fi
8007: done
8008: done
8009: IFS=$as_save_IFS
8010:
8011: fi
8012: fi
8013: OTOOL64=$ac_cv_prog_OTOOL64
8014: if test -n "$OTOOL64"; then
8015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8016: $as_echo "$OTOOL64" >&6; }
8017: else
8018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019: $as_echo "no" >&6; }
8020: fi
8021:
8022:
8023: fi
8024: if test -z "$ac_cv_prog_OTOOL64"; then
8025: ac_ct_OTOOL64=$OTOOL64
8026: # Extract the first word of "otool64", so it can be a program name with args.
8027: set dummy otool64; ac_word=$2
8028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029: $as_echo_n "checking for $ac_word... " >&6; }
8030: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8031: $as_echo_n "(cached) " >&6
8032: else
8033: if test -n "$ac_ct_OTOOL64"; then
8034: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8035: else
8036: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037: for as_dir in $PATH
8038: do
8039: IFS=$as_save_IFS
8040: test -z "$as_dir" && as_dir=.
8041: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 8042: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8043: ac_cv_prog_ac_ct_OTOOL64="otool64"
8044: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045: break 2
8046: fi
8047: done
8048: done
8049: IFS=$as_save_IFS
8050:
8051: fi
8052: fi
8053: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8054: if test -n "$ac_ct_OTOOL64"; then
8055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8056: $as_echo "$ac_ct_OTOOL64" >&6; }
8057: else
8058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059: $as_echo "no" >&6; }
8060: fi
8061:
8062: if test "x$ac_ct_OTOOL64" = x; then
8063: OTOOL64=":"
8064: else
8065: case $cross_compiling:$ac_tool_warned in
8066: yes:)
8067: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8068: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8069: ac_tool_warned=yes ;;
8070: esac
8071: OTOOL64=$ac_ct_OTOOL64
8072: fi
8073: else
8074: OTOOL64="$ac_cv_prog_OTOOL64"
8075: fi
8076:
8077:
8078:
8079:
8080:
8081:
8082:
8083:
8084:
8085:
8086:
8087:
8088:
8089:
8090:
8091:
8092:
8093:
8094:
8095:
8096:
8097:
8098:
8099:
8100:
8101:
8102:
8103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8104: $as_echo_n "checking for -single_module linker flag... " >&6; }
8105: if ${lt_cv_apple_cc_single_mod+:} false; then :
8106: $as_echo_n "(cached) " >&6
8107: else
8108: lt_cv_apple_cc_single_mod=no
8109: if test -z "${LT_MULTI_MODULE}"; then
8110: # By default we will add the -single_module flag. You can override
8111: # by either setting the environment variable LT_MULTI_MODULE
8112: # non-empty at configure time, or by adding -multi_module to the
8113: # link flags.
8114: rm -rf libconftest.dylib*
8115: echo "int foo(void){return 1;}" > conftest.c
8116: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8117: -dynamiclib -Wl,-single_module conftest.c" >&5
8118: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8119: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8120: _lt_result=$?
1.1.1.2 misho 8121: # If there is a non-empty error log, and "single_module"
8122: # appears in it, assume the flag caused a linker warning
8123: if test -s conftest.err && $GREP single_module conftest.err; then
8124: cat conftest.err >&5
8125: # Otherwise, if the output was created with a 0 exit code from
8126: # the compiler, it worked.
8127: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1.1 misho 8128: lt_cv_apple_cc_single_mod=yes
8129: else
8130: cat conftest.err >&5
8131: fi
8132: rm -rf libconftest.dylib*
8133: rm -f conftest.*
8134: fi
8135: fi
8136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8137: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.2 misho 8138:
1.1 misho 8139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8140: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8141: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8142: $as_echo_n "(cached) " >&6
8143: else
8144: lt_cv_ld_exported_symbols_list=no
8145: save_LDFLAGS=$LDFLAGS
8146: echo "_main" > conftest.sym
8147: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8148: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149: /* end confdefs.h. */
8150:
8151: int
8152: main ()
8153: {
8154:
8155: ;
8156: return 0;
8157: }
8158: _ACEOF
8159: if ac_fn_c_try_link "$LINENO"; then :
8160: lt_cv_ld_exported_symbols_list=yes
8161: else
8162: lt_cv_ld_exported_symbols_list=no
8163: fi
8164: rm -f core conftest.err conftest.$ac_objext \
8165: conftest$ac_exeext conftest.$ac_ext
8166: LDFLAGS="$save_LDFLAGS"
8167:
8168: fi
8169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8170: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.2 misho 8171:
1.1 misho 8172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8173: $as_echo_n "checking for -force_load linker flag... " >&6; }
8174: if ${lt_cv_ld_force_load+:} false; then :
8175: $as_echo_n "(cached) " >&6
8176: else
8177: lt_cv_ld_force_load=no
8178: cat > conftest.c << _LT_EOF
8179: int forced_loaded() { return 2;}
8180: _LT_EOF
8181: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8182: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8183: echo "$AR cru libconftest.a conftest.o" >&5
8184: $AR cru libconftest.a conftest.o 2>&5
8185: echo "$RANLIB libconftest.a" >&5
8186: $RANLIB libconftest.a 2>&5
8187: cat > conftest.c << _LT_EOF
8188: int main() { return 0;}
8189: _LT_EOF
8190: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8191: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8192: _lt_result=$?
1.1.1.2 misho 8193: if test -s conftest.err && $GREP force_load conftest.err; then
8194: cat conftest.err >&5
8195: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1.1 misho 8196: lt_cv_ld_force_load=yes
8197: else
8198: cat conftest.err >&5
8199: fi
8200: rm -f conftest.err libconftest.a conftest conftest.c
8201: rm -rf conftest.dSYM
8202:
8203: fi
8204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8205: $as_echo "$lt_cv_ld_force_load" >&6; }
8206: case $host_os in
8207: rhapsody* | darwin1.[012])
8208: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8209: darwin1.*)
8210: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8211: darwin*) # darwin 5.x on
8212: # if running on 10.5 or later, the deployment target defaults
8213: # to the OS version, if on x86, and 10.4, the deployment
8214: # target defaults to 10.4. Don't you love it?
8215: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8216: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8217: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8218: 10.[012]*)
8219: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8220: 10.*)
8221: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8222: esac
8223: ;;
8224: esac
8225: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8226: _lt_dar_single_mod='$single_module'
8227: fi
8228: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8229: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8230: else
8231: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8232: fi
8233: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8234: _lt_dsymutil='~$DSYMUTIL $lib || :'
8235: else
8236: _lt_dsymutil=
8237: fi
8238: ;;
8239: esac
8240:
8241: for ac_header in dlfcn.h
8242: do :
8243: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8244: "
8245: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8246: cat >>confdefs.h <<_ACEOF
8247: #define HAVE_DLFCN_H 1
8248: _ACEOF
8249:
8250: fi
8251:
8252: done
8253:
8254:
8255:
8256:
8257:
8258: # Set options
8259:
8260:
8261:
8262: enable_dlopen=no
8263:
8264:
8265: enable_win32_dll=no
8266:
8267:
8268: # Check whether --enable-shared was given.
8269: if test "${enable_shared+set}" = set; then :
8270: enableval=$enable_shared; p=${PACKAGE-default}
8271: case $enableval in
8272: yes) enable_shared=yes ;;
8273: no) enable_shared=no ;;
8274: *)
8275: enable_shared=no
8276: # Look at the argument we got. We use all the common list separators.
8277: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8278: for pkg in $enableval; do
8279: IFS="$lt_save_ifs"
8280: if test "X$pkg" = "X$p"; then
8281: enable_shared=yes
8282: fi
8283: done
8284: IFS="$lt_save_ifs"
8285: ;;
8286: esac
8287: else
8288: enable_shared=yes
8289: fi
8290:
8291:
8292:
8293:
8294:
8295:
8296:
8297:
8298:
8299: # Check whether --enable-static was given.
8300: if test "${enable_static+set}" = set; then :
8301: enableval=$enable_static; p=${PACKAGE-default}
8302: case $enableval in
8303: yes) enable_static=yes ;;
8304: no) enable_static=no ;;
8305: *)
8306: enable_static=no
8307: # Look at the argument we got. We use all the common list separators.
8308: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8309: for pkg in $enableval; do
8310: IFS="$lt_save_ifs"
8311: if test "X$pkg" = "X$p"; then
8312: enable_static=yes
8313: fi
8314: done
8315: IFS="$lt_save_ifs"
8316: ;;
8317: esac
8318: else
8319: enable_static=yes
8320: fi
8321:
8322:
8323:
8324:
8325:
8326:
8327:
8328:
8329:
8330:
8331: # Check whether --with-pic was given.
8332: if test "${with_pic+set}" = set; then :
1.1.1.2 misho 8333: withval=$with_pic; lt_p=${PACKAGE-default}
8334: case $withval in
8335: yes|no) pic_mode=$withval ;;
8336: *)
8337: pic_mode=default
8338: # Look at the argument we got. We use all the common list separators.
8339: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8340: for lt_pkg in $withval; do
8341: IFS="$lt_save_ifs"
8342: if test "X$lt_pkg" = "X$lt_p"; then
8343: pic_mode=yes
8344: fi
8345: done
8346: IFS="$lt_save_ifs"
8347: ;;
8348: esac
1.1 misho 8349: else
8350: pic_mode=default
8351: fi
8352:
8353:
8354: test -z "$pic_mode" && pic_mode=default
8355:
8356:
8357:
8358:
8359:
8360:
8361:
8362: # Check whether --enable-fast-install was given.
8363: if test "${enable_fast_install+set}" = set; then :
8364: enableval=$enable_fast_install; p=${PACKAGE-default}
8365: case $enableval in
8366: yes) enable_fast_install=yes ;;
8367: no) enable_fast_install=no ;;
8368: *)
8369: enable_fast_install=no
8370: # Look at the argument we got. We use all the common list separators.
8371: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8372: for pkg in $enableval; do
8373: IFS="$lt_save_ifs"
8374: if test "X$pkg" = "X$p"; then
8375: enable_fast_install=yes
8376: fi
8377: done
8378: IFS="$lt_save_ifs"
8379: ;;
8380: esac
8381: else
8382: enable_fast_install=yes
8383: fi
8384:
8385:
8386:
8387:
8388:
8389:
8390:
8391:
8392:
8393:
8394:
8395: # This can be used to rebuild libtool when needed
8396: LIBTOOL_DEPS="$ltmain"
8397:
8398: # Always use our own libtool.
8399: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8400:
8401:
8402:
8403:
8404:
8405:
8406:
8407:
8408:
8409:
8410:
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421:
8422:
8423:
8424:
8425:
1.1.1.2 misho 8426:
8427:
8428:
8429:
1.1 misho 8430: test -z "$LN_S" && LN_S="ln -s"
8431:
8432:
8433:
8434:
8435:
8436:
8437:
8438:
8439:
8440:
8441:
8442:
8443:
8444:
8445: if test -n "${ZSH_VERSION+set}" ; then
8446: setopt NO_GLOB_SUBST
8447: fi
8448:
8449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8450: $as_echo_n "checking for objdir... " >&6; }
8451: if ${lt_cv_objdir+:} false; then :
8452: $as_echo_n "(cached) " >&6
8453: else
8454: rm -f .libs 2>/dev/null
8455: mkdir .libs 2>/dev/null
8456: if test -d .libs; then
8457: lt_cv_objdir=.libs
8458: else
8459: # MS-DOS does not allow filenames that begin with a dot.
8460: lt_cv_objdir=_libs
8461: fi
8462: rmdir .libs 2>/dev/null
8463: fi
8464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8465: $as_echo "$lt_cv_objdir" >&6; }
8466: objdir=$lt_cv_objdir
8467:
8468:
8469:
8470:
8471:
8472: cat >>confdefs.h <<_ACEOF
8473: #define LT_OBJDIR "$lt_cv_objdir/"
8474: _ACEOF
8475:
8476:
8477:
8478:
8479: case $host_os in
8480: aix3*)
8481: # AIX sometimes has problems with the GCC collect2 program. For some
8482: # reason, if we set the COLLECT_NAMES environment variable, the problems
8483: # vanish in a puff of smoke.
8484: if test "X${COLLECT_NAMES+set}" != Xset; then
8485: COLLECT_NAMES=
8486: export COLLECT_NAMES
8487: fi
8488: ;;
8489: esac
8490:
8491: # Global variables:
8492: ofile=libtool
8493: can_build_shared=yes
8494:
8495: # All known linkers require a `.a' archive for static linking (except MSVC,
8496: # which needs '.lib').
8497: libext=a
8498:
8499: with_gnu_ld="$lt_cv_prog_gnu_ld"
8500:
8501: old_CC="$CC"
8502: old_CFLAGS="$CFLAGS"
8503:
8504: # Set sane defaults for various variables
8505: test -z "$CC" && CC=cc
8506: test -z "$LTCC" && LTCC=$CC
8507: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8508: test -z "$LD" && LD=ld
8509: test -z "$ac_objext" && ac_objext=o
8510:
8511: for cc_temp in $compiler""; do
8512: case $cc_temp in
8513: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8514: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8515: \-*) ;;
8516: *) break;;
8517: esac
8518: done
8519: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8520:
8521:
8522: # Only perform the check for file, if the check method requires it
8523: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8524: case $deplibs_check_method in
8525: file_magic*)
8526: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8528: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8529: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8530: $as_echo_n "(cached) " >&6
8531: else
8532: case $MAGIC_CMD in
8533: [\\/*] | ?:[\\/]*)
8534: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8535: ;;
8536: *)
8537: lt_save_MAGIC_CMD="$MAGIC_CMD"
8538: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8539: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8540: for ac_dir in $ac_dummy; do
8541: IFS="$lt_save_ifs"
8542: test -z "$ac_dir" && ac_dir=.
8543: if test -f $ac_dir/${ac_tool_prefix}file; then
8544: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8545: if test -n "$file_magic_test_file"; then
8546: case $deplibs_check_method in
8547: "file_magic "*)
8548: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8549: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8550: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8551: $EGREP "$file_magic_regex" > /dev/null; then
8552: :
8553: else
8554: cat <<_LT_EOF 1>&2
8555:
8556: *** Warning: the command libtool uses to detect shared libraries,
8557: *** $file_magic_cmd, produces output that libtool cannot recognize.
8558: *** The result is that libtool may fail to recognize shared libraries
8559: *** as such. This will affect the creation of libtool libraries that
8560: *** depend on shared libraries, but programs linked with such libtool
8561: *** libraries will work regardless of this problem. Nevertheless, you
8562: *** may want to report the problem to your system manager and/or to
8563: *** bug-libtool@gnu.org
8564:
8565: _LT_EOF
8566: fi ;;
8567: esac
8568: fi
8569: break
8570: fi
8571: done
8572: IFS="$lt_save_ifs"
8573: MAGIC_CMD="$lt_save_MAGIC_CMD"
8574: ;;
8575: esac
8576: fi
8577:
8578: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8579: if test -n "$MAGIC_CMD"; then
8580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8581: $as_echo "$MAGIC_CMD" >&6; }
8582: else
8583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584: $as_echo "no" >&6; }
8585: fi
8586:
8587:
8588:
8589:
8590:
8591: if test -z "$lt_cv_path_MAGIC_CMD"; then
8592: if test -n "$ac_tool_prefix"; then
8593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8594: $as_echo_n "checking for file... " >&6; }
8595: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8596: $as_echo_n "(cached) " >&6
8597: else
8598: case $MAGIC_CMD in
8599: [\\/*] | ?:[\\/]*)
8600: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8601: ;;
8602: *)
8603: lt_save_MAGIC_CMD="$MAGIC_CMD"
8604: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8605: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8606: for ac_dir in $ac_dummy; do
8607: IFS="$lt_save_ifs"
8608: test -z "$ac_dir" && ac_dir=.
8609: if test -f $ac_dir/file; then
8610: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8611: if test -n "$file_magic_test_file"; then
8612: case $deplibs_check_method in
8613: "file_magic "*)
8614: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8615: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8616: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8617: $EGREP "$file_magic_regex" > /dev/null; then
8618: :
8619: else
8620: cat <<_LT_EOF 1>&2
8621:
8622: *** Warning: the command libtool uses to detect shared libraries,
8623: *** $file_magic_cmd, produces output that libtool cannot recognize.
8624: *** The result is that libtool may fail to recognize shared libraries
8625: *** as such. This will affect the creation of libtool libraries that
8626: *** depend on shared libraries, but programs linked with such libtool
8627: *** libraries will work regardless of this problem. Nevertheless, you
8628: *** may want to report the problem to your system manager and/or to
8629: *** bug-libtool@gnu.org
8630:
8631: _LT_EOF
8632: fi ;;
8633: esac
8634: fi
8635: break
8636: fi
8637: done
8638: IFS="$lt_save_ifs"
8639: MAGIC_CMD="$lt_save_MAGIC_CMD"
8640: ;;
8641: esac
8642: fi
8643:
8644: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8645: if test -n "$MAGIC_CMD"; then
8646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8647: $as_echo "$MAGIC_CMD" >&6; }
8648: else
8649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650: $as_echo "no" >&6; }
8651: fi
8652:
8653:
8654: else
8655: MAGIC_CMD=:
8656: fi
8657: fi
8658:
8659: fi
8660: ;;
8661: esac
8662:
8663: # Use C for the default configuration in the libtool script
8664:
8665: lt_save_CC="$CC"
8666: ac_ext=c
8667: ac_cpp='$CPP $CPPFLAGS'
8668: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8669: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8670: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8671:
8672:
8673: # Source file extension for C test sources.
8674: ac_ext=c
8675:
8676: # Object file extension for compiled C test sources.
8677: objext=o
8678: objext=$objext
8679:
8680: # Code to be used in simple compile tests
8681: lt_simple_compile_test_code="int some_variable = 0;"
8682:
8683: # Code to be used in simple link tests
8684: lt_simple_link_test_code='int main(){return(0);}'
8685:
8686:
8687:
8688:
8689:
8690:
8691:
8692: # If no C compiler was specified, use CC.
8693: LTCC=${LTCC-"$CC"}
8694:
8695: # If no C compiler flags were specified, use CFLAGS.
8696: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8697:
8698: # Allow CC to be a program name with arguments.
8699: compiler=$CC
8700:
8701: # Save the default compiler, since it gets overwritten when the other
8702: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8703: compiler_DEFAULT=$CC
8704:
8705: # save warnings/boilerplate of simple test code
8706: ac_outfile=conftest.$ac_objext
8707: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8708: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8709: _lt_compiler_boilerplate=`cat conftest.err`
8710: $RM conftest*
8711:
8712: ac_outfile=conftest.$ac_objext
8713: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8714: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8715: _lt_linker_boilerplate=`cat conftest.err`
8716: $RM -r conftest*
8717:
8718:
1.1.1.2 misho 8719: ## CAVEAT EMPTOR:
8720: ## There is no encapsulation within the following macros, do not change
8721: ## the running order or otherwise move them around unless you know exactly
8722: ## what you are doing...
1.1 misho 8723: if test -n "$compiler"; then
8724:
8725: lt_prog_compiler_no_builtin_flag=
8726:
8727: if test "$GCC" = yes; then
8728: case $cc_basename in
8729: nvcc*)
8730: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8731: *)
8732: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8733: esac
8734:
8735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8736: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8737: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8738: $as_echo_n "(cached) " >&6
8739: else
8740: lt_cv_prog_compiler_rtti_exceptions=no
8741: ac_outfile=conftest.$ac_objext
8742: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743: lt_compiler_flag="-fno-rtti -fno-exceptions"
8744: # Insert the option either (1) after the last *FLAGS variable, or
8745: # (2) before a word containing "conftest.", or (3) at the end.
8746: # Note that $ac_compile itself does not contain backslashes and begins
8747: # with a dollar sign (not a hyphen), so the echo should work correctly.
8748: # The option is referenced via a variable to avoid confusing sed.
8749: lt_compile=`echo "$ac_compile" | $SED \
8750: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752: -e 's:$: $lt_compiler_flag:'`
8753: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8754: (eval "$lt_compile" 2>conftest.err)
8755: ac_status=$?
8756: cat conftest.err >&5
8757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758: if (exit $ac_status) && test -s "$ac_outfile"; then
8759: # The compiler can only warn and ignore the option if not recognized
8760: # So say no if there are warnings other than the usual output.
8761: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8762: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8764: lt_cv_prog_compiler_rtti_exceptions=yes
8765: fi
8766: fi
8767: $RM conftest*
8768:
8769: fi
8770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8771: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8772:
8773: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8774: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8775: else
8776: :
8777: fi
8778:
8779: fi
8780:
8781:
8782:
8783:
8784:
8785:
8786: lt_prog_compiler_wl=
8787: lt_prog_compiler_pic=
8788: lt_prog_compiler_static=
8789:
8790:
8791: if test "$GCC" = yes; then
8792: lt_prog_compiler_wl='-Wl,'
8793: lt_prog_compiler_static='-static'
8794:
8795: case $host_os in
8796: aix*)
8797: # All AIX code is PIC.
8798: if test "$host_cpu" = ia64; then
8799: # AIX 5 now supports IA64 processor
8800: lt_prog_compiler_static='-Bstatic'
8801: fi
8802: ;;
8803:
8804: amigaos*)
8805: case $host_cpu in
8806: powerpc)
8807: # see comment about AmigaOS4 .so support
8808: lt_prog_compiler_pic='-fPIC'
8809: ;;
8810: m68k)
8811: # FIXME: we need at least 68020 code to build shared libraries, but
8812: # adding the `-m68020' flag to GCC prevents building anything better,
8813: # like `-m68040'.
8814: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8815: ;;
8816: esac
8817: ;;
8818:
8819: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8820: # PIC is the default for these OSes.
8821: ;;
8822:
8823: mingw* | cygwin* | pw32* | os2* | cegcc*)
8824: # This hack is so that the source file can tell whether it is being
8825: # built for inclusion in a dll (and should export symbols for example).
8826: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8827: # (--disable-auto-import) libraries
8828: lt_prog_compiler_pic='-DDLL_EXPORT'
8829: ;;
8830:
8831: darwin* | rhapsody*)
8832: # PIC is the default on this platform
8833: # Common symbols not allowed in MH_DYLIB files
8834: lt_prog_compiler_pic='-fno-common'
8835: ;;
8836:
8837: haiku*)
8838: # PIC is the default for Haiku.
8839: # The "-static" flag exists, but is broken.
8840: lt_prog_compiler_static=
8841: ;;
8842:
8843: hpux*)
8844: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8845: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8846: # sets the default TLS model and affects inlining.
8847: case $host_cpu in
8848: hppa*64*)
8849: # +Z the default
8850: ;;
8851: *)
8852: lt_prog_compiler_pic='-fPIC'
8853: ;;
8854: esac
8855: ;;
8856:
8857: interix[3-9]*)
8858: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8859: # Instead, we relocate shared libraries at runtime.
8860: ;;
8861:
8862: msdosdjgpp*)
8863: # Just because we use GCC doesn't mean we suddenly get shared libraries
8864: # on systems that don't support them.
8865: lt_prog_compiler_can_build_shared=no
8866: enable_shared=no
8867: ;;
8868:
8869: *nto* | *qnx*)
8870: # QNX uses GNU C++, but need to define -shared option too, otherwise
8871: # it will coredump.
8872: lt_prog_compiler_pic='-fPIC -shared'
8873: ;;
8874:
8875: sysv4*MP*)
8876: if test -d /usr/nec; then
8877: lt_prog_compiler_pic=-Kconform_pic
8878: fi
8879: ;;
8880:
8881: *)
8882: lt_prog_compiler_pic='-fPIC'
8883: ;;
8884: esac
8885:
8886: case $cc_basename in
8887: nvcc*) # Cuda Compiler Driver 2.2
8888: lt_prog_compiler_wl='-Xlinker '
1.1.1.2 misho 8889: if test -n "$lt_prog_compiler_pic"; then
8890: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8891: fi
1.1 misho 8892: ;;
8893: esac
8894: else
8895: # PORTME Check for flag to pass linker flags through the system compiler.
8896: case $host_os in
8897: aix*)
8898: lt_prog_compiler_wl='-Wl,'
8899: if test "$host_cpu" = ia64; then
8900: # AIX 5 now supports IA64 processor
8901: lt_prog_compiler_static='-Bstatic'
8902: else
8903: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8904: fi
8905: ;;
8906:
8907: mingw* | cygwin* | pw32* | os2* | cegcc*)
8908: # This hack is so that the source file can tell whether it is being
8909: # built for inclusion in a dll (and should export symbols for example).
8910: lt_prog_compiler_pic='-DDLL_EXPORT'
8911: ;;
8912:
8913: hpux9* | hpux10* | hpux11*)
8914: lt_prog_compiler_wl='-Wl,'
8915: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8916: # not for PA HP-UX.
8917: case $host_cpu in
8918: hppa*64*|ia64*)
8919: # +Z the default
8920: ;;
8921: *)
8922: lt_prog_compiler_pic='+Z'
8923: ;;
8924: esac
8925: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8926: lt_prog_compiler_static='${wl}-a ${wl}archive'
8927: ;;
8928:
8929: irix5* | irix6* | nonstopux*)
8930: lt_prog_compiler_wl='-Wl,'
8931: # PIC (with -KPIC) is the default.
8932: lt_prog_compiler_static='-non_shared'
8933: ;;
8934:
8935: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8936: case $cc_basename in
8937: # old Intel for x86_64 which still supported -KPIC.
8938: ecc*)
8939: lt_prog_compiler_wl='-Wl,'
8940: lt_prog_compiler_pic='-KPIC'
8941: lt_prog_compiler_static='-static'
8942: ;;
8943: # icc used to be incompatible with GCC.
8944: # ICC 10 doesn't accept -KPIC any more.
8945: icc* | ifort*)
8946: lt_prog_compiler_wl='-Wl,'
8947: lt_prog_compiler_pic='-fPIC'
8948: lt_prog_compiler_static='-static'
8949: ;;
8950: # Lahey Fortran 8.1.
8951: lf95*)
8952: lt_prog_compiler_wl='-Wl,'
8953: lt_prog_compiler_pic='--shared'
8954: lt_prog_compiler_static='--static'
8955: ;;
8956: nagfor*)
8957: # NAG Fortran compiler
8958: lt_prog_compiler_wl='-Wl,-Wl,,'
8959: lt_prog_compiler_pic='-PIC'
8960: lt_prog_compiler_static='-Bstatic'
8961: ;;
8962: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8963: # Portland Group compilers (*not* the Pentium gcc compiler,
8964: # which looks to be a dead project)
8965: lt_prog_compiler_wl='-Wl,'
8966: lt_prog_compiler_pic='-fpic'
8967: lt_prog_compiler_static='-Bstatic'
8968: ;;
8969: ccc*)
8970: lt_prog_compiler_wl='-Wl,'
8971: # All Alpha code is PIC.
8972: lt_prog_compiler_static='-non_shared'
8973: ;;
8974: xl* | bgxl* | bgf* | mpixl*)
8975: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8976: lt_prog_compiler_wl='-Wl,'
8977: lt_prog_compiler_pic='-qpic'
8978: lt_prog_compiler_static='-qstaticlink'
8979: ;;
8980: *)
8981: case `$CC -V 2>&1 | sed 5q` in
1.1.1.2 misho 8982: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1.1 misho 8983: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8984: lt_prog_compiler_pic='-KPIC'
8985: lt_prog_compiler_static='-Bstatic'
8986: lt_prog_compiler_wl=''
8987: ;;
1.1.1.2 misho 8988: *Sun\ F* | *Sun*Fortran*)
8989: lt_prog_compiler_pic='-KPIC'
8990: lt_prog_compiler_static='-Bstatic'
8991: lt_prog_compiler_wl='-Qoption ld '
8992: ;;
1.1 misho 8993: *Sun\ C*)
8994: # Sun C 5.9
8995: lt_prog_compiler_pic='-KPIC'
8996: lt_prog_compiler_static='-Bstatic'
8997: lt_prog_compiler_wl='-Wl,'
8998: ;;
1.1.1.2 misho 8999: *Intel*\ [CF]*Compiler*)
9000: lt_prog_compiler_wl='-Wl,'
9001: lt_prog_compiler_pic='-fPIC'
9002: lt_prog_compiler_static='-static'
9003: ;;
9004: *Portland\ Group*)
9005: lt_prog_compiler_wl='-Wl,'
9006: lt_prog_compiler_pic='-fpic'
9007: lt_prog_compiler_static='-Bstatic'
9008: ;;
1.1 misho 9009: esac
9010: ;;
9011: esac
9012: ;;
9013:
9014: newsos6)
9015: lt_prog_compiler_pic='-KPIC'
9016: lt_prog_compiler_static='-Bstatic'
9017: ;;
9018:
9019: *nto* | *qnx*)
9020: # QNX uses GNU C++, but need to define -shared option too, otherwise
9021: # it will coredump.
9022: lt_prog_compiler_pic='-fPIC -shared'
9023: ;;
9024:
9025: osf3* | osf4* | osf5*)
9026: lt_prog_compiler_wl='-Wl,'
9027: # All OSF/1 code is PIC.
9028: lt_prog_compiler_static='-non_shared'
9029: ;;
9030:
9031: rdos*)
9032: lt_prog_compiler_static='-non_shared'
9033: ;;
9034:
9035: solaris*)
9036: lt_prog_compiler_pic='-KPIC'
9037: lt_prog_compiler_static='-Bstatic'
9038: case $cc_basename in
9039: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9040: lt_prog_compiler_wl='-Qoption ld ';;
9041: *)
9042: lt_prog_compiler_wl='-Wl,';;
9043: esac
9044: ;;
9045:
9046: sunos4*)
9047: lt_prog_compiler_wl='-Qoption ld '
9048: lt_prog_compiler_pic='-PIC'
9049: lt_prog_compiler_static='-Bstatic'
9050: ;;
9051:
9052: sysv4 | sysv4.2uw2* | sysv4.3*)
9053: lt_prog_compiler_wl='-Wl,'
9054: lt_prog_compiler_pic='-KPIC'
9055: lt_prog_compiler_static='-Bstatic'
9056: ;;
9057:
9058: sysv4*MP*)
9059: if test -d /usr/nec ;then
9060: lt_prog_compiler_pic='-Kconform_pic'
9061: lt_prog_compiler_static='-Bstatic'
9062: fi
9063: ;;
9064:
9065: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9066: lt_prog_compiler_wl='-Wl,'
9067: lt_prog_compiler_pic='-KPIC'
9068: lt_prog_compiler_static='-Bstatic'
9069: ;;
9070:
9071: unicos*)
9072: lt_prog_compiler_wl='-Wl,'
9073: lt_prog_compiler_can_build_shared=no
9074: ;;
9075:
9076: uts4*)
9077: lt_prog_compiler_pic='-pic'
9078: lt_prog_compiler_static='-Bstatic'
9079: ;;
9080:
9081: *)
9082: lt_prog_compiler_can_build_shared=no
9083: ;;
9084: esac
9085: fi
9086:
9087: case $host_os in
9088: # For platforms which do not support PIC, -DPIC is meaningless:
9089: *djgpp*)
9090: lt_prog_compiler_pic=
9091: ;;
9092: *)
9093: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9094: ;;
9095: esac
9096:
9097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9098: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9099: if ${lt_cv_prog_compiler_pic+:} false; then :
9100: $as_echo_n "(cached) " >&6
9101: else
9102: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9103: fi
9104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9105: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9106: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9107:
9108: #
9109: # Check to make sure the PIC flag actually works.
9110: #
9111: if test -n "$lt_prog_compiler_pic"; then
9112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9113: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9114: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9115: $as_echo_n "(cached) " >&6
9116: else
9117: lt_cv_prog_compiler_pic_works=no
9118: ac_outfile=conftest.$ac_objext
9119: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9120: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9121: # Insert the option either (1) after the last *FLAGS variable, or
9122: # (2) before a word containing "conftest.", or (3) at the end.
9123: # Note that $ac_compile itself does not contain backslashes and begins
9124: # with a dollar sign (not a hyphen), so the echo should work correctly.
9125: # The option is referenced via a variable to avoid confusing sed.
9126: lt_compile=`echo "$ac_compile" | $SED \
9127: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129: -e 's:$: $lt_compiler_flag:'`
9130: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9131: (eval "$lt_compile" 2>conftest.err)
9132: ac_status=$?
9133: cat conftest.err >&5
9134: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135: if (exit $ac_status) && test -s "$ac_outfile"; then
9136: # The compiler can only warn and ignore the option if not recognized
9137: # So say no if there are warnings other than the usual output.
9138: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9139: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9140: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9141: lt_cv_prog_compiler_pic_works=yes
9142: fi
9143: fi
9144: $RM conftest*
9145:
9146: fi
9147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9148: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9149:
9150: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9151: case $lt_prog_compiler_pic in
9152: "" | " "*) ;;
9153: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9154: esac
9155: else
9156: lt_prog_compiler_pic=
9157: lt_prog_compiler_can_build_shared=no
9158: fi
9159:
9160: fi
9161:
9162:
9163:
9164:
9165:
9166:
9167:
9168:
9169:
9170:
9171:
9172: #
9173: # Check to make sure the static flag actually works.
9174: #
9175: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9177: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9178: if ${lt_cv_prog_compiler_static_works+:} false; then :
9179: $as_echo_n "(cached) " >&6
9180: else
9181: lt_cv_prog_compiler_static_works=no
9182: save_LDFLAGS="$LDFLAGS"
9183: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9184: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9185: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9186: # The linker can only warn and ignore the option if not recognized
9187: # So say no if there are warnings
9188: if test -s conftest.err; then
9189: # Append any errors to the config.log.
9190: cat conftest.err 1>&5
9191: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9192: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9193: if diff conftest.exp conftest.er2 >/dev/null; then
9194: lt_cv_prog_compiler_static_works=yes
9195: fi
9196: else
9197: lt_cv_prog_compiler_static_works=yes
9198: fi
9199: fi
9200: $RM -r conftest*
9201: LDFLAGS="$save_LDFLAGS"
9202:
9203: fi
9204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9205: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9206:
9207: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9208: :
9209: else
9210: lt_prog_compiler_static=
9211: fi
9212:
9213:
9214:
9215:
9216:
9217:
9218:
9219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9220: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9221: if ${lt_cv_prog_compiler_c_o+:} false; then :
9222: $as_echo_n "(cached) " >&6
9223: else
9224: lt_cv_prog_compiler_c_o=no
9225: $RM -r conftest 2>/dev/null
9226: mkdir conftest
9227: cd conftest
9228: mkdir out
9229: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230:
9231: lt_compiler_flag="-o out/conftest2.$ac_objext"
9232: # Insert the option either (1) after the last *FLAGS variable, or
9233: # (2) before a word containing "conftest.", or (3) at the end.
9234: # Note that $ac_compile itself does not contain backslashes and begins
9235: # with a dollar sign (not a hyphen), so the echo should work correctly.
9236: lt_compile=`echo "$ac_compile" | $SED \
9237: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9238: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9239: -e 's:$: $lt_compiler_flag:'`
9240: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9241: (eval "$lt_compile" 2>out/conftest.err)
9242: ac_status=$?
9243: cat out/conftest.err >&5
9244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9246: then
9247: # The compiler can only warn and ignore the option if not recognized
9248: # So say no if there are warnings
9249: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9250: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9251: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9252: lt_cv_prog_compiler_c_o=yes
9253: fi
9254: fi
9255: chmod u+w . 2>&5
9256: $RM conftest*
9257: # SGI C++ compiler will create directory out/ii_files/ for
9258: # template instantiation
9259: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9260: $RM out/* && rmdir out
9261: cd ..
9262: $RM -r conftest
9263: $RM conftest*
9264:
9265: fi
9266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9267: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9268:
9269:
9270:
9271:
9272:
9273:
9274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9275: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9276: if ${lt_cv_prog_compiler_c_o+:} false; then :
9277: $as_echo_n "(cached) " >&6
9278: else
9279: lt_cv_prog_compiler_c_o=no
9280: $RM -r conftest 2>/dev/null
9281: mkdir conftest
9282: cd conftest
9283: mkdir out
9284: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9285:
9286: lt_compiler_flag="-o out/conftest2.$ac_objext"
9287: # Insert the option either (1) after the last *FLAGS variable, or
9288: # (2) before a word containing "conftest.", or (3) at the end.
9289: # Note that $ac_compile itself does not contain backslashes and begins
9290: # with a dollar sign (not a hyphen), so the echo should work correctly.
9291: lt_compile=`echo "$ac_compile" | $SED \
9292: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9293: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9294: -e 's:$: $lt_compiler_flag:'`
9295: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9296: (eval "$lt_compile" 2>out/conftest.err)
9297: ac_status=$?
9298: cat out/conftest.err >&5
9299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9301: then
9302: # The compiler can only warn and ignore the option if not recognized
9303: # So say no if there are warnings
9304: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9305: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9306: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9307: lt_cv_prog_compiler_c_o=yes
9308: fi
9309: fi
9310: chmod u+w . 2>&5
9311: $RM conftest*
9312: # SGI C++ compiler will create directory out/ii_files/ for
9313: # template instantiation
9314: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9315: $RM out/* && rmdir out
9316: cd ..
9317: $RM -r conftest
9318: $RM conftest*
9319:
9320: fi
9321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9322: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9323:
9324:
9325:
9326:
9327: hard_links="nottested"
9328: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9329: # do not overwrite the value of need_locks provided by the user
9330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9331: $as_echo_n "checking if we can lock with hard links... " >&6; }
9332: hard_links=yes
9333: $RM conftest*
9334: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335: touch conftest.a
9336: ln conftest.a conftest.b 2>&5 || hard_links=no
9337: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9339: $as_echo "$hard_links" >&6; }
9340: if test "$hard_links" = no; then
9341: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9342: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9343: need_locks=warn
9344: fi
9345: else
9346: need_locks=no
9347: fi
9348:
9349:
9350:
9351:
9352:
9353:
9354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9355: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9356:
9357: runpath_var=
9358: allow_undefined_flag=
9359: always_export_symbols=no
9360: archive_cmds=
9361: archive_expsym_cmds=
9362: compiler_needs_object=no
9363: enable_shared_with_static_runtimes=no
9364: export_dynamic_flag_spec=
9365: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9366: hardcode_automatic=no
9367: hardcode_direct=no
9368: hardcode_direct_absolute=no
9369: hardcode_libdir_flag_spec=
9370: hardcode_libdir_separator=
9371: hardcode_minus_L=no
9372: hardcode_shlibpath_var=unsupported
9373: inherit_rpath=no
9374: link_all_deplibs=unknown
9375: module_cmds=
9376: module_expsym_cmds=
9377: old_archive_from_new_cmds=
9378: old_archive_from_expsyms_cmds=
9379: thread_safe_flag_spec=
9380: whole_archive_flag_spec=
9381: # include_expsyms should be a list of space-separated symbols to be *always*
9382: # included in the symbol list
9383: include_expsyms=
9384: # exclude_expsyms can be an extended regexp of symbols to exclude
9385: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9386: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9387: # as well as any symbol that contains `d'.
9388: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9389: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9390: # platforms (ab)use it in PIC code, but their linkers get confused if
9391: # the symbol is explicitly referenced. Since portable code cannot
9392: # rely on this symbol name, it's probably fine to never include it in
9393: # preloaded symbol tables.
9394: # Exclude shared library initialization/finalization symbols.
9395: extract_expsyms_cmds=
9396:
9397: case $host_os in
9398: cygwin* | mingw* | pw32* | cegcc*)
9399: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9400: # When not using gcc, we currently assume that we are using
9401: # Microsoft Visual C++.
9402: if test "$GCC" != yes; then
9403: with_gnu_ld=no
9404: fi
9405: ;;
9406: interix*)
9407: # we just hope/assume this is gcc and not c89 (= MSVC++)
9408: with_gnu_ld=yes
9409: ;;
9410: openbsd*)
9411: with_gnu_ld=no
9412: ;;
9413: esac
9414:
9415: ld_shlibs=yes
9416:
9417: # On some targets, GNU ld is compatible enough with the native linker
9418: # that we're better off using the native interface for both.
9419: lt_use_gnu_ld_interface=no
9420: if test "$with_gnu_ld" = yes; then
9421: case $host_os in
9422: aix*)
9423: # The AIX port of GNU ld has always aspired to compatibility
9424: # with the native linker. However, as the warning in the GNU ld
9425: # block says, versions before 2.19.5* couldn't really create working
9426: # shared libraries, regardless of the interface used.
9427: case `$LD -v 2>&1` in
9428: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9429: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9430: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9431: *)
9432: lt_use_gnu_ld_interface=yes
9433: ;;
9434: esac
9435: ;;
9436: *)
9437: lt_use_gnu_ld_interface=yes
9438: ;;
9439: esac
9440: fi
9441:
9442: if test "$lt_use_gnu_ld_interface" = yes; then
9443: # If archive_cmds runs LD, not CC, wlarc should be empty
9444: wlarc='${wl}'
9445:
9446: # Set some defaults for GNU ld with shared library support. These
9447: # are reset later if shared libraries are not supported. Putting them
9448: # here allows them to be overridden if necessary.
9449: runpath_var=LD_RUN_PATH
9450: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451: export_dynamic_flag_spec='${wl}--export-dynamic'
9452: # ancient GNU ld didn't support --whole-archive et. al.
9453: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9454: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9455: else
9456: whole_archive_flag_spec=
9457: fi
9458: supports_anon_versioning=no
9459: case `$LD -v 2>&1` in
9460: *GNU\ gold*) supports_anon_versioning=yes ;;
9461: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9462: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9463: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9464: *\ 2.11.*) ;; # other 2.11 versions
9465: *) supports_anon_versioning=yes ;;
9466: esac
9467:
9468: # See if GNU ld supports shared libraries.
9469: case $host_os in
9470: aix[3-9]*)
9471: # On AIX/PPC, the GNU linker is very broken
9472: if test "$host_cpu" != ia64; then
9473: ld_shlibs=no
9474: cat <<_LT_EOF 1>&2
9475:
9476: *** Warning: the GNU linker, at least up to release 2.19, is reported
9477: *** to be unable to reliably create shared libraries on AIX.
9478: *** Therefore, libtool is disabling shared libraries support. If you
9479: *** really care for shared libraries, you may want to install binutils
9480: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9481: *** You will then need to restart the configuration process.
9482:
9483: _LT_EOF
9484: fi
9485: ;;
9486:
9487: amigaos*)
9488: case $host_cpu in
9489: powerpc)
9490: # see comment about AmigaOS4 .so support
9491: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492: archive_expsym_cmds=''
9493: ;;
9494: m68k)
9495: 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)'
9496: hardcode_libdir_flag_spec='-L$libdir'
9497: hardcode_minus_L=yes
9498: ;;
9499: esac
9500: ;;
9501:
9502: beos*)
9503: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9504: allow_undefined_flag=unsupported
9505: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9506: # support --undefined. This deserves some investigation. FIXME
9507: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508: else
9509: ld_shlibs=no
9510: fi
9511: ;;
9512:
9513: cygwin* | mingw* | pw32* | cegcc*)
9514: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9515: # as there is no search path for DLLs.
9516: hardcode_libdir_flag_spec='-L$libdir'
9517: export_dynamic_flag_spec='${wl}--export-all-symbols'
9518: allow_undefined_flag=unsupported
9519: always_export_symbols=no
9520: enable_shared_with_static_runtimes=yes
9521: 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'
9522: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9523:
9524: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9525: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9526: # If the export-symbols file already is a .def file (1st line
9527: # is EXPORTS), use it as is; otherwise, prepend...
9528: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9529: cp $export_symbols $output_objdir/$soname.def;
9530: else
9531: echo EXPORTS > $output_objdir/$soname.def;
9532: cat $export_symbols >> $output_objdir/$soname.def;
9533: fi~
9534: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9535: else
9536: ld_shlibs=no
9537: fi
9538: ;;
9539:
9540: haiku*)
9541: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542: link_all_deplibs=yes
9543: ;;
9544:
9545: interix[3-9]*)
9546: hardcode_direct=no
9547: hardcode_shlibpath_var=no
9548: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549: export_dynamic_flag_spec='${wl}-E'
9550: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9551: # Instead, shared libraries are loaded at an image base (0x10000000 by
9552: # default) and relocated if they conflict, which is a slow very memory
9553: # consuming and fragmenting process. To avoid this, we pick a random,
9554: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9555: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9556: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9557: 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'
9558: ;;
9559:
9560: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9561: tmp_diet=no
9562: if test "$host_os" = linux-dietlibc; then
9563: case $cc_basename in
9564: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9565: esac
9566: fi
9567: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9568: && test "$tmp_diet" = no
9569: then
9570: tmp_addflag=' $pic_flag'
9571: tmp_sharedflag='-shared'
9572: case $cc_basename,$host_cpu in
9573: pgcc*) # Portland Group C compiler
9574: 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'
9575: tmp_addflag=' $pic_flag'
9576: ;;
9577: pgf77* | pgf90* | pgf95* | pgfortran*)
9578: # Portland Group f77 and f90 compilers
9579: 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'
9580: tmp_addflag=' $pic_flag -Mnomain' ;;
9581: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9582: tmp_addflag=' -i_dynamic' ;;
9583: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9584: tmp_addflag=' -i_dynamic -nofor_main' ;;
9585: ifc* | ifort*) # Intel Fortran compiler
9586: tmp_addflag=' -nofor_main' ;;
9587: lf95*) # Lahey Fortran 8.1
9588: whole_archive_flag_spec=
9589: tmp_sharedflag='--shared' ;;
9590: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9591: tmp_sharedflag='-qmkshrobj'
9592: tmp_addflag= ;;
9593: nvcc*) # Cuda Compiler Driver 2.2
9594: 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'
9595: compiler_needs_object=yes
9596: ;;
9597: esac
9598: case `$CC -V 2>&1 | sed 5q` in
9599: *Sun\ C*) # Sun C 5.9
9600: 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'
9601: compiler_needs_object=yes
9602: tmp_sharedflag='-G' ;;
9603: *Sun\ F*) # Sun Fortran 8.3
9604: tmp_sharedflag='-G' ;;
9605: esac
9606: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9607:
9608: if test "x$supports_anon_versioning" = xyes; then
9609: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9610: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9611: echo "local: *; };" >> $output_objdir/$libname.ver~
9612: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9613: fi
9614:
9615: case $cc_basename in
9616: xlf* | bgf* | bgxlf* | mpixlf*)
9617: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9618: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.1.2 misho 9619: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.1 misho 9620: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9621: if test "x$supports_anon_versioning" = xyes; then
9622: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9623: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9624: echo "local: *; };" >> $output_objdir/$libname.ver~
9625: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9626: fi
9627: ;;
9628: esac
9629: else
9630: ld_shlibs=no
9631: fi
9632: ;;
9633:
9634: netbsd*)
9635: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9636: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9637: wlarc=
9638: else
9639: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9641: fi
9642: ;;
9643:
9644: solaris*)
9645: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9646: ld_shlibs=no
9647: cat <<_LT_EOF 1>&2
9648:
9649: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9650: *** create shared libraries on Solaris systems. Therefore, libtool
9651: *** is disabling shared libraries support. We urge you to upgrade GNU
9652: *** binutils to release 2.9.1 or newer. Another option is to modify
9653: *** your PATH or compiler configuration so that the native linker is
9654: *** used, and then restart.
9655:
9656: _LT_EOF
9657: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9658: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9659: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9660: else
9661: ld_shlibs=no
9662: fi
9663: ;;
9664:
9665: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9666: case `$LD -v 2>&1` in
9667: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9668: ld_shlibs=no
9669: cat <<_LT_EOF 1>&2
9670:
9671: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9672: *** reliably create shared libraries on SCO systems. Therefore, libtool
9673: *** is disabling shared libraries support. We urge you to upgrade GNU
9674: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9675: *** your PATH or compiler configuration so that the native linker is
9676: *** used, and then restart.
9677:
9678: _LT_EOF
9679: ;;
9680: *)
9681: # For security reasons, it is highly recommended that you always
9682: # use absolute paths for naming shared libraries, and exclude the
9683: # DT_RUNPATH tag from executables and libraries. But doing so
9684: # requires that you compile everything twice, which is a pain.
9685: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9686: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9687: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9688: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9689: else
9690: ld_shlibs=no
9691: fi
9692: ;;
9693: esac
9694: ;;
9695:
9696: sunos4*)
9697: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9698: wlarc=
9699: hardcode_direct=yes
9700: hardcode_shlibpath_var=no
9701: ;;
9702:
9703: *)
9704: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9705: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9707: else
9708: ld_shlibs=no
9709: fi
9710: ;;
9711: esac
9712:
9713: if test "$ld_shlibs" = no; then
9714: runpath_var=
9715: hardcode_libdir_flag_spec=
9716: export_dynamic_flag_spec=
9717: whole_archive_flag_spec=
9718: fi
9719: else
9720: # PORTME fill in a description of your system's linker (not GNU ld)
9721: case $host_os in
9722: aix3*)
9723: allow_undefined_flag=unsupported
9724: always_export_symbols=yes
9725: 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'
9726: # Note: this linker hardcodes the directories in LIBPATH if there
9727: # are no directories specified by -L.
9728: hardcode_minus_L=yes
9729: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9730: # Neither direct hardcoding nor static linking is supported with a
9731: # broken collect2.
9732: hardcode_direct=unsupported
9733: fi
9734: ;;
9735:
9736: aix[4-9]*)
9737: if test "$host_cpu" = ia64; then
9738: # On IA64, the linker does run time linking by default, so we don't
9739: # have to do anything special.
9740: aix_use_runtimelinking=no
9741: exp_sym_flag='-Bexport'
9742: no_entry_flag=""
9743: else
9744: # If we're using GNU nm, then we don't want the "-C" option.
9745: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9746: # Also, AIX nm treats weak defined symbols like other global
9747: # defined symbols, whereas GNU nm marks them as "W".
9748: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9749: 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'
9750: else
9751: 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'
9752: fi
9753: aix_use_runtimelinking=no
9754:
9755: # Test if we are trying to use run time linking or normal
9756: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9757: # need to do runtime linking.
9758: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9759: for ld_flag in $LDFLAGS; do
9760: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9761: aix_use_runtimelinking=yes
9762: break
9763: fi
9764: done
9765: ;;
9766: esac
9767:
9768: exp_sym_flag='-bexport'
9769: no_entry_flag='-bnoentry'
9770: fi
9771:
9772: # When large executables or shared objects are built, AIX ld can
9773: # have problems creating the table of contents. If linking a library
9774: # or program results in "error TOC overflow" add -mminimal-toc to
9775: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9776: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9777:
9778: archive_cmds=''
9779: hardcode_direct=yes
9780: hardcode_direct_absolute=yes
9781: hardcode_libdir_separator=':'
9782: link_all_deplibs=yes
9783: file_list_spec='${wl}-f,'
9784:
9785: if test "$GCC" = yes; then
9786: case $host_os in aix4.[012]|aix4.[012].*)
9787: # We only want to do this on AIX 4.2 and lower, the check
9788: # below for broken collect2 doesn't work under 4.3+
9789: collect2name=`${CC} -print-prog-name=collect2`
9790: if test -f "$collect2name" &&
9791: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9792: then
9793: # We have reworked collect2
9794: :
9795: else
9796: # We have old collect2
9797: hardcode_direct=unsupported
9798: # It fails to find uninstalled libraries when the uninstalled
9799: # path is not listed in the libpath. Setting hardcode_minus_L
9800: # to unsupported forces relinking
9801: hardcode_minus_L=yes
9802: hardcode_libdir_flag_spec='-L$libdir'
9803: hardcode_libdir_separator=
9804: fi
9805: ;;
9806: esac
9807: shared_flag='-shared'
9808: if test "$aix_use_runtimelinking" = yes; then
9809: shared_flag="$shared_flag "'${wl}-G'
9810: fi
9811: else
9812: # not using gcc
9813: if test "$host_cpu" = ia64; then
9814: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9815: # chokes on -Wl,-G. The following line is correct:
9816: shared_flag='-G'
9817: else
9818: if test "$aix_use_runtimelinking" = yes; then
9819: shared_flag='${wl}-G'
9820: else
9821: shared_flag='${wl}-bM:SRE'
9822: fi
9823: fi
9824: fi
9825:
9826: export_dynamic_flag_spec='${wl}-bexpall'
9827: # It seems that -bexpall does not export symbols beginning with
9828: # underscore (_), so it is better to generate a list of symbols to export.
9829: always_export_symbols=yes
9830: if test "$aix_use_runtimelinking" = yes; then
9831: # Warning - without using the other runtime loading flags (-brtl),
9832: # -berok will link without error, but may produce a broken library.
9833: allow_undefined_flag='-berok'
9834: # Determine the default libpath from the value encoded in an
9835: # empty executable.
9836: if test "${lt_cv_aix_libpath+set}" = set; then
9837: aix_libpath=$lt_cv_aix_libpath
9838: else
9839: if ${lt_cv_aix_libpath_+:} false; then :
9840: $as_echo_n "(cached) " >&6
9841: else
9842: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843: /* end confdefs.h. */
9844:
9845: int
9846: main ()
9847: {
9848:
9849: ;
9850: return 0;
9851: }
9852: _ACEOF
9853: if ac_fn_c_try_link "$LINENO"; then :
9854:
9855: lt_aix_libpath_sed='
9856: /Import File Strings/,/^$/ {
9857: /^0/ {
9858: s/^0 *\([^ ]*\) *$/\1/
9859: p
9860: }
9861: }'
9862: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9863: # Check for a 64-bit object if we didn't find anything.
9864: if test -z "$lt_cv_aix_libpath_"; then
9865: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9866: fi
9867: fi
9868: rm -f core conftest.err conftest.$ac_objext \
9869: conftest$ac_exeext conftest.$ac_ext
9870: if test -z "$lt_cv_aix_libpath_"; then
9871: lt_cv_aix_libpath_="/usr/lib:/lib"
9872: fi
9873:
9874: fi
9875:
9876: aix_libpath=$lt_cv_aix_libpath_
9877: fi
9878:
9879: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9880: 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"
9881: else
9882: if test "$host_cpu" = ia64; then
9883: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9884: allow_undefined_flag="-z nodefs"
9885: 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"
9886: else
9887: # Determine the default libpath from the value encoded in an
9888: # empty executable.
9889: if test "${lt_cv_aix_libpath+set}" = set; then
9890: aix_libpath=$lt_cv_aix_libpath
9891: else
9892: if ${lt_cv_aix_libpath_+:} false; then :
9893: $as_echo_n "(cached) " >&6
9894: else
9895: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896: /* end confdefs.h. */
9897:
9898: int
9899: main ()
9900: {
9901:
9902: ;
9903: return 0;
9904: }
9905: _ACEOF
9906: if ac_fn_c_try_link "$LINENO"; then :
9907:
9908: lt_aix_libpath_sed='
9909: /Import File Strings/,/^$/ {
9910: /^0/ {
9911: s/^0 *\([^ ]*\) *$/\1/
9912: p
9913: }
9914: }'
9915: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9916: # Check for a 64-bit object if we didn't find anything.
9917: if test -z "$lt_cv_aix_libpath_"; then
9918: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9919: fi
9920: fi
9921: rm -f core conftest.err conftest.$ac_objext \
9922: conftest$ac_exeext conftest.$ac_ext
9923: if test -z "$lt_cv_aix_libpath_"; then
9924: lt_cv_aix_libpath_="/usr/lib:/lib"
9925: fi
9926:
9927: fi
9928:
9929: aix_libpath=$lt_cv_aix_libpath_
9930: fi
9931:
9932: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9933: # Warning - without using the other run time loading flags,
9934: # -berok will link without error, but may produce a broken library.
9935: no_undefined_flag=' ${wl}-bernotok'
9936: allow_undefined_flag=' ${wl}-berok'
9937: if test "$with_gnu_ld" = yes; then
9938: # We only use this code for GNU lds that support --whole-archive.
9939: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9940: else
9941: # Exported symbols can be pulled into shared objects from archives
9942: whole_archive_flag_spec='$convenience'
9943: fi
9944: archive_cmds_need_lc=yes
9945: # This is similar to how AIX traditionally builds its shared libraries.
9946: 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'
9947: fi
9948: fi
9949: ;;
9950:
9951: amigaos*)
9952: case $host_cpu in
9953: powerpc)
9954: # see comment about AmigaOS4 .so support
9955: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956: archive_expsym_cmds=''
9957: ;;
9958: m68k)
9959: 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)'
9960: hardcode_libdir_flag_spec='-L$libdir'
9961: hardcode_minus_L=yes
9962: ;;
9963: esac
9964: ;;
9965:
9966: bsdi[45]*)
9967: export_dynamic_flag_spec=-rdynamic
9968: ;;
9969:
9970: cygwin* | mingw* | pw32* | cegcc*)
9971: # When not using gcc, we currently assume that we are using
9972: # Microsoft Visual C++.
9973: # hardcode_libdir_flag_spec is actually meaningless, as there is
9974: # no search path for DLLs.
9975: case $cc_basename in
9976: cl*)
9977: # Native MSVC
9978: hardcode_libdir_flag_spec=' '
9979: allow_undefined_flag=unsupported
9980: always_export_symbols=yes
9981: file_list_spec='@'
9982: # Tell ltmain to make .lib files, not .a files.
9983: libext=lib
9984: # Tell ltmain to make .dll files, not .so files.
9985: shrext_cmds=".dll"
9986: # FIXME: Setting linknames here is a bad hack.
9987: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9988: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9989: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9990: else
9991: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9992: fi~
9993: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9994: linknames='
9995: # The linker will not automatically build a static lib if we build a DLL.
9996: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9997: enable_shared_with_static_runtimes=yes
1.1.1.2 misho 9998: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1.1 misho 9999: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10000: # Don't use ranlib
10001: old_postinstall_cmds='chmod 644 $oldlib'
10002: postlink_cmds='lt_outputfile="@OUTPUT@"~
10003: lt_tool_outputfile="@TOOL_OUTPUT@"~
10004: case $lt_outputfile in
10005: *.exe|*.EXE) ;;
10006: *)
10007: lt_outputfile="$lt_outputfile.exe"
10008: lt_tool_outputfile="$lt_tool_outputfile.exe"
10009: ;;
10010: esac~
10011: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10012: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10013: $RM "$lt_outputfile.manifest";
10014: fi'
10015: ;;
10016: *)
10017: # Assume MSVC wrapper
10018: hardcode_libdir_flag_spec=' '
10019: allow_undefined_flag=unsupported
10020: # Tell ltmain to make .lib files, not .a files.
10021: libext=lib
10022: # Tell ltmain to make .dll files, not .so files.
10023: shrext_cmds=".dll"
10024: # FIXME: Setting linknames here is a bad hack.
10025: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10026: # The linker will automatically build a .lib file if we build a DLL.
10027: old_archive_from_new_cmds='true'
10028: # FIXME: Should let the user specify the lib program.
10029: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10030: enable_shared_with_static_runtimes=yes
10031: ;;
10032: esac
10033: ;;
10034:
10035: darwin* | rhapsody*)
10036:
10037:
10038: archive_cmds_need_lc=no
10039: hardcode_direct=no
10040: hardcode_automatic=yes
10041: hardcode_shlibpath_var=unsupported
10042: if test "$lt_cv_ld_force_load" = "yes"; then
10043: 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\"`'
1.1.1.2 misho 10044:
1.1 misho 10045: else
10046: whole_archive_flag_spec=''
10047: fi
10048: link_all_deplibs=yes
10049: allow_undefined_flag="$_lt_dar_allow_undefined"
10050: case $cc_basename in
10051: ifort*) _lt_dar_can_shared=yes ;;
10052: *) _lt_dar_can_shared=$GCC ;;
10053: esac
10054: if test "$_lt_dar_can_shared" = "yes"; then
10055: output_verbose_link_cmd=func_echo_all
10056: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10057: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10058: 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}"
10059: 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}"
10060:
10061: else
10062: ld_shlibs=no
10063: fi
10064:
10065: ;;
10066:
10067: dgux*)
10068: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069: hardcode_libdir_flag_spec='-L$libdir'
10070: hardcode_shlibpath_var=no
10071: ;;
10072:
10073: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10074: # support. Future versions do this automatically, but an explicit c++rt0.o
10075: # does not break anything, and helps significantly (at the cost of a little
10076: # extra space).
10077: freebsd2.2*)
10078: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10079: hardcode_libdir_flag_spec='-R$libdir'
10080: hardcode_direct=yes
10081: hardcode_shlibpath_var=no
10082: ;;
10083:
10084: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.1.2 misho 10085: freebsd2.*)
1.1 misho 10086: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10087: hardcode_direct=yes
10088: hardcode_minus_L=yes
10089: hardcode_shlibpath_var=no
10090: ;;
10091:
10092: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10093: freebsd* | dragonfly*)
10094: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10095: hardcode_libdir_flag_spec='-R$libdir'
10096: hardcode_direct=yes
10097: hardcode_shlibpath_var=no
10098: ;;
10099:
10100: hpux9*)
10101: if test "$GCC" = yes; then
10102: 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'
10103: else
10104: 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'
10105: fi
10106: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10107: hardcode_libdir_separator=:
10108: hardcode_direct=yes
10109:
10110: # hardcode_minus_L: Not really in the search PATH,
10111: # but as the default location of the library.
10112: hardcode_minus_L=yes
10113: export_dynamic_flag_spec='${wl}-E'
10114: ;;
10115:
10116: hpux10*)
10117: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10118: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10119: else
10120: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10121: fi
10122: if test "$with_gnu_ld" = no; then
10123: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10124: hardcode_libdir_separator=:
10125: hardcode_direct=yes
10126: hardcode_direct_absolute=yes
10127: export_dynamic_flag_spec='${wl}-E'
10128: # hardcode_minus_L: Not really in the search PATH,
10129: # but as the default location of the library.
10130: hardcode_minus_L=yes
10131: fi
10132: ;;
10133:
10134: hpux11*)
10135: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10136: case $host_cpu in
10137: hppa*64*)
10138: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10139: ;;
10140: ia64*)
10141: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10142: ;;
10143: *)
10144: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10145: ;;
10146: esac
10147: else
10148: case $host_cpu in
10149: hppa*64*)
10150: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151: ;;
10152: ia64*)
10153: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10154: ;;
10155: *)
10156:
10157: # Older versions of the 11.00 compiler do not understand -b yet
10158: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10160: $as_echo_n "checking if $CC understands -b... " >&6; }
10161: if ${lt_cv_prog_compiler__b+:} false; then :
10162: $as_echo_n "(cached) " >&6
10163: else
10164: lt_cv_prog_compiler__b=no
10165: save_LDFLAGS="$LDFLAGS"
10166: LDFLAGS="$LDFLAGS -b"
10167: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10168: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10169: # The linker can only warn and ignore the option if not recognized
10170: # So say no if there are warnings
10171: if test -s conftest.err; then
10172: # Append any errors to the config.log.
10173: cat conftest.err 1>&5
10174: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10175: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10176: if diff conftest.exp conftest.er2 >/dev/null; then
10177: lt_cv_prog_compiler__b=yes
10178: fi
10179: else
10180: lt_cv_prog_compiler__b=yes
10181: fi
10182: fi
10183: $RM -r conftest*
10184: LDFLAGS="$save_LDFLAGS"
10185:
10186: fi
10187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10188: $as_echo "$lt_cv_prog_compiler__b" >&6; }
10189:
10190: if test x"$lt_cv_prog_compiler__b" = xyes; then
10191: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10192: else
10193: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10194: fi
10195:
10196: ;;
10197: esac
10198: fi
10199: if test "$with_gnu_ld" = no; then
10200: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10201: hardcode_libdir_separator=:
10202:
10203: case $host_cpu in
10204: hppa*64*|ia64*)
10205: hardcode_direct=no
10206: hardcode_shlibpath_var=no
10207: ;;
10208: *)
10209: hardcode_direct=yes
10210: hardcode_direct_absolute=yes
10211: export_dynamic_flag_spec='${wl}-E'
10212:
10213: # hardcode_minus_L: Not really in the search PATH,
10214: # but as the default location of the library.
10215: hardcode_minus_L=yes
10216: ;;
10217: esac
10218: fi
10219: ;;
10220:
10221: irix5* | irix6* | nonstopux*)
10222: if test "$GCC" = yes; then
10223: 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'
10224: # Try to use the -exported_symbol ld option, if it does not
10225: # work, assume that -exports_file does not work either and
10226: # implicitly export all symbols.
10227: # This should be the same for all languages, so no per-tag cache variable.
10228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10229: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10230: if ${lt_cv_irix_exported_symbol+:} false; then :
10231: $as_echo_n "(cached) " >&6
10232: else
10233: save_LDFLAGS="$LDFLAGS"
10234: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236: /* end confdefs.h. */
10237: int foo (void) { return 0; }
10238: _ACEOF
10239: if ac_fn_c_try_link "$LINENO"; then :
10240: lt_cv_irix_exported_symbol=yes
10241: else
10242: lt_cv_irix_exported_symbol=no
10243: fi
10244: rm -f core conftest.err conftest.$ac_objext \
10245: conftest$ac_exeext conftest.$ac_ext
10246: LDFLAGS="$save_LDFLAGS"
10247: fi
10248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10249: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10250: if test "$lt_cv_irix_exported_symbol" = yes; then
10251: 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'
10252: fi
10253: else
10254: 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'
10255: 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'
10256: fi
10257: archive_cmds_need_lc='no'
10258: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10259: hardcode_libdir_separator=:
10260: inherit_rpath=yes
10261: link_all_deplibs=yes
10262: ;;
10263:
10264: netbsd*)
10265: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10266: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10267: else
10268: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10269: fi
10270: hardcode_libdir_flag_spec='-R$libdir'
10271: hardcode_direct=yes
10272: hardcode_shlibpath_var=no
10273: ;;
10274:
10275: newsos6)
10276: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10277: hardcode_direct=yes
10278: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279: hardcode_libdir_separator=:
10280: hardcode_shlibpath_var=no
10281: ;;
10282:
10283: *nto* | *qnx*)
10284: ;;
10285:
10286: openbsd*)
10287: if test -f /usr/libexec/ld.so; then
10288: hardcode_direct=yes
10289: hardcode_shlibpath_var=no
10290: hardcode_direct_absolute=yes
10291: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10292: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10293: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10294: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10295: export_dynamic_flag_spec='${wl}-E'
10296: else
10297: case $host_os in
10298: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10299: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10300: hardcode_libdir_flag_spec='-R$libdir'
10301: ;;
10302: *)
10303: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10304: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10305: ;;
10306: esac
10307: fi
10308: else
10309: ld_shlibs=no
10310: fi
10311: ;;
10312:
10313: os2*)
10314: hardcode_libdir_flag_spec='-L$libdir'
10315: hardcode_minus_L=yes
10316: allow_undefined_flag=unsupported
10317: 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'
10318: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10319: ;;
10320:
10321: osf3*)
10322: if test "$GCC" = yes; then
10323: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10324: 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'
10325: else
10326: allow_undefined_flag=' -expect_unresolved \*'
10327: 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'
10328: fi
10329: archive_cmds_need_lc='no'
10330: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10331: hardcode_libdir_separator=:
10332: ;;
10333:
10334: osf4* | osf5*) # as osf3* with the addition of -msym flag
10335: if test "$GCC" = yes; then
10336: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10337: 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'
10338: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10339: else
10340: allow_undefined_flag=' -expect_unresolved \*'
10341: 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'
10342: 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~
10343: $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'
10344:
10345: # Both c and cxx compiler support -rpath directly
10346: hardcode_libdir_flag_spec='-rpath $libdir'
10347: fi
10348: archive_cmds_need_lc='no'
10349: hardcode_libdir_separator=:
10350: ;;
10351:
10352: solaris*)
10353: no_undefined_flag=' -z defs'
10354: if test "$GCC" = yes; then
10355: wlarc='${wl}'
10356: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10357: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10358: $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'
10359: else
10360: case `$CC -V 2>&1` in
10361: *"Compilers 5.0"*)
10362: wlarc=''
10363: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10365: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10366: ;;
10367: *)
10368: wlarc='${wl}'
10369: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10370: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10371: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10372: ;;
10373: esac
10374: fi
10375: hardcode_libdir_flag_spec='-R$libdir'
10376: hardcode_shlibpath_var=no
10377: case $host_os in
10378: solaris2.[0-5] | solaris2.[0-5].*) ;;
10379: *)
10380: # The compiler driver will combine and reorder linker options,
10381: # but understands `-z linker_flag'. GCC discards it without `$wl',
10382: # but is careful enough not to reorder.
10383: # Supported since Solaris 2.6 (maybe 2.5.1?)
10384: if test "$GCC" = yes; then
10385: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10386: else
10387: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10388: fi
10389: ;;
10390: esac
10391: link_all_deplibs=yes
10392: ;;
10393:
10394: sunos4*)
10395: if test "x$host_vendor" = xsequent; then
10396: # Use $CC to link under sequent, because it throws in some extra .o
10397: # files that make .init and .fini sections work.
10398: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10399: else
10400: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10401: fi
10402: hardcode_libdir_flag_spec='-L$libdir'
10403: hardcode_direct=yes
10404: hardcode_minus_L=yes
10405: hardcode_shlibpath_var=no
10406: ;;
10407:
10408: sysv4)
10409: case $host_vendor in
10410: sni)
10411: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412: hardcode_direct=yes # is this really true???
10413: ;;
10414: siemens)
10415: ## LD is ld it makes a PLAMLIB
10416: ## CC just makes a GrossModule.
10417: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10418: reload_cmds='$CC -r -o $output$reload_objs'
10419: hardcode_direct=no
10420: ;;
10421: motorola)
10422: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10423: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10424: ;;
10425: esac
10426: runpath_var='LD_RUN_PATH'
10427: hardcode_shlibpath_var=no
10428: ;;
10429:
10430: sysv4.3*)
10431: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432: hardcode_shlibpath_var=no
10433: export_dynamic_flag_spec='-Bexport'
10434: ;;
10435:
10436: sysv4*MP*)
10437: if test -d /usr/nec; then
10438: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439: hardcode_shlibpath_var=no
10440: runpath_var=LD_RUN_PATH
10441: hardcode_runpath_var=yes
10442: ld_shlibs=yes
10443: fi
10444: ;;
10445:
10446: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10447: no_undefined_flag='${wl}-z,text'
10448: archive_cmds_need_lc=no
10449: hardcode_shlibpath_var=no
10450: runpath_var='LD_RUN_PATH'
10451:
10452: if test "$GCC" = yes; then
10453: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455: else
10456: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458: fi
10459: ;;
10460:
10461: sysv5* | sco3.2v5* | sco5v6*)
10462: # Note: We can NOT use -z defs as we might desire, because we do not
10463: # link with -lc, and that would cause any symbols used from libc to
10464: # always be unresolved, which means just about no library would
10465: # ever link correctly. If we're not using GNU ld we use -z text
10466: # though, which does catch some bad symbols but isn't as heavy-handed
10467: # as -z defs.
10468: no_undefined_flag='${wl}-z,text'
10469: allow_undefined_flag='${wl}-z,nodefs'
10470: archive_cmds_need_lc=no
10471: hardcode_shlibpath_var=no
10472: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10473: hardcode_libdir_separator=':'
10474: link_all_deplibs=yes
10475: export_dynamic_flag_spec='${wl}-Bexport'
10476: runpath_var='LD_RUN_PATH'
10477:
10478: if test "$GCC" = yes; then
10479: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481: else
10482: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484: fi
10485: ;;
10486:
10487: uts4*)
10488: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489: hardcode_libdir_flag_spec='-L$libdir'
10490: hardcode_shlibpath_var=no
10491: ;;
10492:
10493: *)
10494: ld_shlibs=no
10495: ;;
10496: esac
10497:
10498: if test x$host_vendor = xsni; then
10499: case $host in
10500: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10501: export_dynamic_flag_spec='${wl}-Blargedynsym'
10502: ;;
10503: esac
10504: fi
10505: fi
10506:
10507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10508: $as_echo "$ld_shlibs" >&6; }
10509: test "$ld_shlibs" = no && can_build_shared=no
10510:
10511: with_gnu_ld=$with_gnu_ld
10512:
10513:
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527: #
10528: # Do we need to explicitly link libc?
10529: #
10530: case "x$archive_cmds_need_lc" in
10531: x|xyes)
10532: # Assume -lc should be added
10533: archive_cmds_need_lc=yes
10534:
10535: if test "$enable_shared" = yes && test "$GCC" = yes; then
10536: case $archive_cmds in
10537: *'~'*)
10538: # FIXME: we may have to deal with multi-command sequences.
10539: ;;
10540: '$CC '*)
10541: # Test whether the compiler implicitly links with -lc since on some
10542: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10543: # to ld, don't add -lc before -lgcc.
10544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10545: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10546: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10547: $as_echo_n "(cached) " >&6
10548: else
10549: $RM conftest*
10550: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10551:
10552: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10553: (eval $ac_compile) 2>&5
10554: ac_status=$?
10555: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10556: test $ac_status = 0; } 2>conftest.err; then
10557: soname=conftest
10558: lib=conftest
10559: libobjs=conftest.$ac_objext
10560: deplibs=
10561: wl=$lt_prog_compiler_wl
10562: pic_flag=$lt_prog_compiler_pic
10563: compiler_flags=-v
10564: linker_flags=-v
10565: verstring=
10566: output_objdir=.
10567: libname=conftest
10568: lt_save_allow_undefined_flag=$allow_undefined_flag
10569: allow_undefined_flag=
10570: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10571: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10572: ac_status=$?
10573: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10574: test $ac_status = 0; }
10575: then
10576: lt_cv_archive_cmds_need_lc=no
10577: else
10578: lt_cv_archive_cmds_need_lc=yes
10579: fi
10580: allow_undefined_flag=$lt_save_allow_undefined_flag
10581: else
10582: cat conftest.err 1>&5
10583: fi
10584: $RM conftest*
10585:
10586: fi
10587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10588: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10589: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10590: ;;
10591: esac
10592: fi
10593: ;;
10594: esac
10595:
10596:
10597:
10598:
10599:
10600:
10601:
10602:
10603:
10604:
10605:
10606:
10607:
10608:
10609:
10610:
10611:
10612:
10613:
10614:
10615:
10616:
10617:
10618:
10619:
10620:
10621:
10622:
10623:
10624:
10625:
10626:
10627:
10628:
10629:
10630:
10631:
10632:
10633:
10634:
10635:
10636:
10637:
10638:
10639:
10640:
10641:
10642:
10643:
10644:
10645:
10646:
10647:
10648:
10649:
10650:
10651:
10652:
10653:
10654:
10655:
10656:
10657:
10658:
10659:
10660:
10661:
10662:
10663:
10664:
10665:
10666:
10667:
10668:
10669:
10670:
10671:
10672:
10673:
10674:
10675:
10676:
10677:
10678:
10679:
10680:
10681:
10682:
10683:
10684:
10685:
10686:
10687:
10688:
10689:
10690:
10691:
10692:
10693:
10694:
10695:
10696:
10697:
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10748: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10749:
10750: if test "$GCC" = yes; then
10751: case $host_os in
10752: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10753: *) lt_awk_arg="/^libraries:/" ;;
10754: esac
10755: case $host_os in
10756: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10757: *) lt_sed_strip_eq="s,=/,/,g" ;;
10758: esac
10759: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10760: case $lt_search_path_spec in
10761: *\;*)
10762: # if the path contains ";" then we assume it to be the separator
10763: # otherwise default to the standard path separator (i.e. ":") - it is
10764: # assumed that no part of a normal pathname contains ";" but that should
10765: # okay in the real world where ";" in dirpaths is itself problematic.
10766: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10767: ;;
10768: *)
10769: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10770: ;;
10771: esac
10772: # Ok, now we have the path, separated by spaces, we can step through it
10773: # and add multilib dir if necessary.
10774: lt_tmp_lt_search_path_spec=
10775: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10776: for lt_sys_path in $lt_search_path_spec; do
10777: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10778: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10779: else
10780: test -d "$lt_sys_path" && \
10781: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10782: fi
10783: done
10784: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10785: BEGIN {RS=" "; FS="/|\n";} {
10786: lt_foo="";
10787: lt_count=0;
10788: for (lt_i = NF; lt_i > 0; lt_i--) {
10789: if ($lt_i != "" && $lt_i != ".") {
10790: if ($lt_i == "..") {
10791: lt_count++;
10792: } else {
10793: if (lt_count == 0) {
10794: lt_foo="/" $lt_i lt_foo;
10795: } else {
10796: lt_count--;
10797: }
10798: }
10799: }
10800: }
10801: if (lt_foo != "") { lt_freq[lt_foo]++; }
10802: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10803: }'`
10804: # AWK program above erroneously prepends '/' to C:/dos/paths
10805: # for these hosts.
10806: case $host_os in
10807: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10808: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10809: esac
10810: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10811: else
10812: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10813: fi
10814: library_names_spec=
10815: libname_spec='lib$name'
10816: soname_spec=
10817: shrext_cmds=".so"
10818: postinstall_cmds=
10819: postuninstall_cmds=
10820: finish_cmds=
10821: finish_eval=
10822: shlibpath_var=
10823: shlibpath_overrides_runpath=unknown
10824: version_type=none
10825: dynamic_linker="$host_os ld.so"
10826: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10827: need_lib_prefix=unknown
10828: hardcode_into_libs=no
10829:
10830: # when you set need_version to no, make sure it does not cause -set_version
10831: # flags to be left without arguments
10832: need_version=unknown
10833:
10834: case $host_os in
10835: aix3*)
1.1.1.2 misho 10836: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10837: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10838: shlibpath_var=LIBPATH
10839:
10840: # AIX 3 has no versioning support, so we append a major version to the name.
10841: soname_spec='${libname}${release}${shared_ext}$major'
10842: ;;
10843:
10844: aix[4-9]*)
1.1.1.2 misho 10845: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10846: need_lib_prefix=no
10847: need_version=no
10848: hardcode_into_libs=yes
10849: if test "$host_cpu" = ia64; then
10850: # AIX 5 supports IA64
10851: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10852: shlibpath_var=LD_LIBRARY_PATH
10853: else
10854: # With GCC up to 2.95.x, collect2 would create an import file
10855: # for dependence libraries. The import file would start with
10856: # the line `#! .'. This would cause the generated library to
10857: # depend on `.', always an invalid library. This was fixed in
10858: # development snapshots of GCC prior to 3.0.
10859: case $host_os in
10860: aix4 | aix4.[01] | aix4.[01].*)
10861: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10862: echo ' yes '
10863: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10864: :
10865: else
10866: can_build_shared=no
10867: fi
10868: ;;
10869: esac
10870: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10871: # soname into executable. Probably we can add versioning support to
10872: # collect2, so additional links can be useful in future.
10873: if test "$aix_use_runtimelinking" = yes; then
10874: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10875: # instead of lib<name>.a to let people know that these are not
10876: # typical AIX shared libraries.
10877: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878: else
10879: # We preserve .a as extension for shared libraries through AIX4.2
10880: # and later when we are not doing run time linking.
10881: library_names_spec='${libname}${release}.a $libname.a'
10882: soname_spec='${libname}${release}${shared_ext}$major'
10883: fi
10884: shlibpath_var=LIBPATH
10885: fi
10886: ;;
10887:
10888: amigaos*)
10889: case $host_cpu in
10890: powerpc)
10891: # Since July 2007 AmigaOS4 officially supports .so libraries.
10892: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10893: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894: ;;
10895: m68k)
10896: library_names_spec='$libname.ixlibrary $libname.a'
10897: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10898: 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'
10899: ;;
10900: esac
10901: ;;
10902:
10903: beos*)
10904: library_names_spec='${libname}${shared_ext}'
10905: dynamic_linker="$host_os ld.so"
10906: shlibpath_var=LIBRARY_PATH
10907: ;;
10908:
10909: bsdi[45]*)
1.1.1.2 misho 10910: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10911: need_version=no
10912: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913: soname_spec='${libname}${release}${shared_ext}$major'
10914: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10915: shlibpath_var=LD_LIBRARY_PATH
10916: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10917: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10918: # the default ld.so.conf also contains /usr/contrib/lib and
10919: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10920: # libtool to hard-code these into programs
10921: ;;
10922:
10923: cygwin* | mingw* | pw32* | cegcc*)
10924: version_type=windows
10925: shrext_cmds=".dll"
10926: need_version=no
10927: need_lib_prefix=no
10928:
10929: case $GCC,$cc_basename in
10930: yes,*)
10931: # gcc
10932: library_names_spec='$libname.dll.a'
10933: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10934: postinstall_cmds='base_file=`basename \${file}`~
10935: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10936: dldir=$destdir/`dirname \$dlpath`~
10937: test -d \$dldir || mkdir -p \$dldir~
10938: $install_prog $dir/$dlname \$dldir/$dlname~
10939: chmod a+x \$dldir/$dlname~
10940: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10941: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10942: fi'
10943: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10944: dlpath=$dir/\$dldll~
10945: $RM \$dlpath'
10946: shlibpath_overrides_runpath=yes
10947:
10948: case $host_os in
10949: cygwin*)
10950: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10951: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10952:
10953: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10954: ;;
10955: mingw* | cegcc*)
10956: # MinGW DLLs use traditional 'lib' prefix
10957: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10958: ;;
10959: pw32*)
10960: # pw32 DLLs use 'pw' prefix rather than 'lib'
10961: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10962: ;;
10963: esac
10964: dynamic_linker='Win32 ld.exe'
10965: ;;
10966:
10967: *,cl*)
10968: # Native MSVC
10969: libname_spec='$name'
10970: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971: library_names_spec='${libname}.dll.lib'
10972:
10973: case $build_os in
10974: mingw*)
10975: sys_lib_search_path_spec=
10976: lt_save_ifs=$IFS
10977: IFS=';'
10978: for lt_path in $LIB
10979: do
10980: IFS=$lt_save_ifs
10981: # Let DOS variable expansion print the short 8.3 style file name.
10982: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10983: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10984: done
10985: IFS=$lt_save_ifs
10986: # Convert to MSYS style.
10987: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10988: ;;
10989: cygwin*)
10990: # Convert to unix form, then to dos form, then back to unix form
10991: # but this time dos style (no spaces!) so that the unix form looks
10992: # like /cygdrive/c/PROGRA~1:/cygdr...
10993: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10994: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10995: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10996: ;;
10997: *)
10998: sys_lib_search_path_spec="$LIB"
10999: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11000: # It is most probably a Windows format PATH.
11001: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11002: else
11003: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11004: fi
11005: # FIXME: find the short name or the path components, as spaces are
11006: # common. (e.g. "Program Files" -> "PROGRA~1")
11007: ;;
11008: esac
11009:
11010: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11011: postinstall_cmds='base_file=`basename \${file}`~
11012: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11013: dldir=$destdir/`dirname \$dlpath`~
11014: test -d \$dldir || mkdir -p \$dldir~
11015: $install_prog $dir/$dlname \$dldir/$dlname'
11016: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11017: dlpath=$dir/\$dldll~
11018: $RM \$dlpath'
11019: shlibpath_overrides_runpath=yes
11020: dynamic_linker='Win32 link.exe'
11021: ;;
11022:
11023: *)
11024: # Assume MSVC wrapper
11025: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11026: dynamic_linker='Win32 ld.exe'
11027: ;;
11028: esac
11029: # FIXME: first we should search . and the directory the executable is in
11030: shlibpath_var=PATH
11031: ;;
11032:
11033: darwin* | rhapsody*)
11034: dynamic_linker="$host_os dyld"
11035: version_type=darwin
11036: need_lib_prefix=no
11037: need_version=no
11038: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11039: soname_spec='${libname}${release}${major}$shared_ext'
11040: shlibpath_overrides_runpath=yes
11041: shlibpath_var=DYLD_LIBRARY_PATH
11042: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11043:
11044: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11045: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11046: ;;
11047:
11048: dgux*)
1.1.1.2 misho 11049: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11050: need_lib_prefix=no
11051: need_version=no
11052: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11053: soname_spec='${libname}${release}${shared_ext}$major'
11054: shlibpath_var=LD_LIBRARY_PATH
11055: ;;
11056:
11057: freebsd* | dragonfly*)
11058: # DragonFly does not have aout. When/if they implement a new
11059: # versioning mechanism, adjust this.
11060: if test -x /usr/bin/objformat; then
11061: objformat=`/usr/bin/objformat`
11062: else
11063: case $host_os in
1.1.1.2 misho 11064: freebsd[23].*) objformat=aout ;;
1.1 misho 11065: *) objformat=elf ;;
11066: esac
11067: fi
1.1.1.2 misho 11068: # Handle Gentoo/FreeBSD as it was Linux
11069: case $host_vendor in
11070: gentoo)
11071: version_type=linux ;;
11072: *)
11073: version_type=freebsd-$objformat ;;
11074: esac
11075:
1.1 misho 11076: case $version_type in
11077: freebsd-elf*)
11078: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11079: need_version=no
11080: need_lib_prefix=no
11081: ;;
11082: freebsd-*)
11083: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11084: need_version=yes
11085: ;;
1.1.1.2 misho 11086: linux)
11087: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11088: soname_spec='${libname}${release}${shared_ext}$major'
11089: need_lib_prefix=no
11090: need_version=no
11091: ;;
1.1 misho 11092: esac
11093: shlibpath_var=LD_LIBRARY_PATH
11094: case $host_os in
1.1.1.2 misho 11095: freebsd2.*)
1.1 misho 11096: shlibpath_overrides_runpath=yes
11097: ;;
11098: freebsd3.[01]* | freebsdelf3.[01]*)
11099: shlibpath_overrides_runpath=yes
11100: hardcode_into_libs=yes
11101: ;;
11102: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11103: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11104: shlibpath_overrides_runpath=no
11105: hardcode_into_libs=yes
11106: ;;
11107: *) # from 4.6 on, and DragonFly
11108: shlibpath_overrides_runpath=yes
11109: hardcode_into_libs=yes
11110: ;;
11111: esac
11112: ;;
11113:
11114: gnu*)
1.1.1.2 misho 11115: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11116: need_lib_prefix=no
11117: need_version=no
11118: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11119: soname_spec='${libname}${release}${shared_ext}$major'
11120: shlibpath_var=LD_LIBRARY_PATH
1.1.1.2 misho 11121: shlibpath_overrides_runpath=no
1.1 misho 11122: hardcode_into_libs=yes
11123: ;;
11124:
11125: haiku*)
1.1.1.2 misho 11126: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11127: need_lib_prefix=no
11128: need_version=no
11129: dynamic_linker="$host_os runtime_loader"
11130: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11131: soname_spec='${libname}${release}${shared_ext}$major'
11132: shlibpath_var=LIBRARY_PATH
11133: shlibpath_overrides_runpath=yes
11134: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11135: hardcode_into_libs=yes
11136: ;;
11137:
11138: hpux9* | hpux10* | hpux11*)
11139: # Give a soname corresponding to the major version so that dld.sl refuses to
11140: # link against other versions.
11141: version_type=sunos
11142: need_lib_prefix=no
11143: need_version=no
11144: case $host_cpu in
11145: ia64*)
11146: shrext_cmds='.so'
11147: hardcode_into_libs=yes
11148: dynamic_linker="$host_os dld.so"
11149: shlibpath_var=LD_LIBRARY_PATH
11150: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11151: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152: soname_spec='${libname}${release}${shared_ext}$major'
11153: if test "X$HPUX_IA64_MODE" = X32; then
11154: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11155: else
11156: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11157: fi
11158: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11159: ;;
11160: hppa*64*)
11161: shrext_cmds='.sl'
11162: hardcode_into_libs=yes
11163: dynamic_linker="$host_os dld.sl"
11164: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11165: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11166: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167: soname_spec='${libname}${release}${shared_ext}$major'
11168: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11169: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11170: ;;
11171: *)
11172: shrext_cmds='.sl'
11173: dynamic_linker="$host_os dld.sl"
11174: shlibpath_var=SHLIB_PATH
11175: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11176: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177: soname_spec='${libname}${release}${shared_ext}$major'
11178: ;;
11179: esac
11180: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11181: postinstall_cmds='chmod 555 $lib'
11182: # or fails outright, so override atomically:
11183: install_override_mode=555
11184: ;;
11185:
11186: interix[3-9]*)
1.1.1.2 misho 11187: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11188: need_lib_prefix=no
11189: need_version=no
11190: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11191: soname_spec='${libname}${release}${shared_ext}$major'
11192: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11193: shlibpath_var=LD_LIBRARY_PATH
11194: shlibpath_overrides_runpath=no
11195: hardcode_into_libs=yes
11196: ;;
11197:
11198: irix5* | irix6* | nonstopux*)
11199: case $host_os in
11200: nonstopux*) version_type=nonstopux ;;
11201: *)
11202: if test "$lt_cv_prog_gnu_ld" = yes; then
1.1.1.2 misho 11203: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11204: else
11205: version_type=irix
11206: fi ;;
11207: esac
11208: need_lib_prefix=no
11209: need_version=no
11210: soname_spec='${libname}${release}${shared_ext}$major'
11211: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11212: case $host_os in
11213: irix5* | nonstopux*)
11214: libsuff= shlibsuff=
11215: ;;
11216: *)
11217: case $LD in # libtool.m4 will add one of these switches to LD
11218: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11219: libsuff= shlibsuff= libmagic=32-bit;;
11220: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11221: libsuff=32 shlibsuff=N32 libmagic=N32;;
11222: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11223: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11224: *) libsuff= shlibsuff= libmagic=never-match;;
11225: esac
11226: ;;
11227: esac
11228: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11229: shlibpath_overrides_runpath=no
11230: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11231: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11232: hardcode_into_libs=yes
11233: ;;
11234:
11235: # No shared lib support for Linux oldld, aout, or coff.
11236: linux*oldld* | linux*aout* | linux*coff*)
11237: dynamic_linker=no
11238: ;;
11239:
1.1.1.2 misho 11240: # This must be glibc/ELF.
1.1 misho 11241: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1.1.2 misho 11242: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11243: need_lib_prefix=no
11244: need_version=no
11245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246: soname_spec='${libname}${release}${shared_ext}$major'
11247: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11248: shlibpath_var=LD_LIBRARY_PATH
11249: shlibpath_overrides_runpath=no
11250:
11251: # Some binutils ld are patched to set DT_RUNPATH
11252: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11253: $as_echo_n "(cached) " >&6
11254: else
11255: lt_cv_shlibpath_overrides_runpath=no
11256: save_LDFLAGS=$LDFLAGS
11257: save_libdir=$libdir
11258: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11259: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11260: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261: /* end confdefs.h. */
11262:
11263: int
11264: main ()
11265: {
11266:
11267: ;
11268: return 0;
11269: }
11270: _ACEOF
11271: if ac_fn_c_try_link "$LINENO"; then :
11272: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11273: lt_cv_shlibpath_overrides_runpath=yes
11274: fi
11275: fi
11276: rm -f core conftest.err conftest.$ac_objext \
11277: conftest$ac_exeext conftest.$ac_ext
11278: LDFLAGS=$save_LDFLAGS
11279: libdir=$save_libdir
11280:
11281: fi
11282:
11283: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11284:
11285: # This implies no fast_install, which is unacceptable.
11286: # Some rework will be needed to allow for fast_install
11287: # before this can be enabled.
11288: hardcode_into_libs=yes
11289:
11290: # Append ld.so.conf contents to the search path
11291: if test -f /etc/ld.so.conf; then
11292: 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' ' '`
1.1.1.2 misho 11293: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.1 misho 11294: fi
11295:
11296: # We used to test for /lib/ld.so.1 and disable shared libraries on
11297: # powerpc, because MkLinux only supported shared libraries with the
11298: # GNU dynamic linker. Since this was broken with cross compilers,
11299: # most powerpc-linux boxes support dynamic linking these days and
11300: # people can always --disable-shared, the test was removed, and we
11301: # assume the GNU/Linux dynamic linker is in use.
11302: dynamic_linker='GNU/Linux ld.so'
11303: ;;
11304:
11305: netbsd*)
11306: version_type=sunos
11307: need_lib_prefix=no
11308: need_version=no
11309: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11310: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11311: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11312: dynamic_linker='NetBSD (a.out) ld.so'
11313: else
11314: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315: soname_spec='${libname}${release}${shared_ext}$major'
11316: dynamic_linker='NetBSD ld.elf_so'
11317: fi
11318: shlibpath_var=LD_LIBRARY_PATH
11319: shlibpath_overrides_runpath=yes
11320: hardcode_into_libs=yes
11321: ;;
11322:
11323: newsos6)
1.1.1.2 misho 11324: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11325: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326: shlibpath_var=LD_LIBRARY_PATH
11327: shlibpath_overrides_runpath=yes
11328: ;;
11329:
11330: *nto* | *qnx*)
11331: version_type=qnx
11332: need_lib_prefix=no
11333: need_version=no
11334: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335: soname_spec='${libname}${release}${shared_ext}$major'
11336: shlibpath_var=LD_LIBRARY_PATH
11337: shlibpath_overrides_runpath=no
11338: hardcode_into_libs=yes
11339: dynamic_linker='ldqnx.so'
11340: ;;
11341:
11342: openbsd*)
11343: version_type=sunos
11344: sys_lib_dlsearch_path_spec="/usr/lib"
11345: need_lib_prefix=no
11346: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11347: case $host_os in
11348: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11349: *) need_version=no ;;
11350: esac
11351: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353: shlibpath_var=LD_LIBRARY_PATH
11354: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11355: case $host_os in
11356: openbsd2.[89] | openbsd2.[89].*)
11357: shlibpath_overrides_runpath=no
11358: ;;
11359: *)
11360: shlibpath_overrides_runpath=yes
11361: ;;
11362: esac
11363: else
11364: shlibpath_overrides_runpath=yes
11365: fi
11366: ;;
11367:
11368: os2*)
11369: libname_spec='$name'
11370: shrext_cmds=".dll"
11371: need_lib_prefix=no
11372: library_names_spec='$libname${shared_ext} $libname.a'
11373: dynamic_linker='OS/2 ld.exe'
11374: shlibpath_var=LIBPATH
11375: ;;
11376:
11377: osf3* | osf4* | osf5*)
11378: version_type=osf
11379: need_lib_prefix=no
11380: need_version=no
11381: soname_spec='${libname}${release}${shared_ext}$major'
11382: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383: shlibpath_var=LD_LIBRARY_PATH
11384: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11385: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11386: ;;
11387:
11388: rdos*)
11389: dynamic_linker=no
11390: ;;
11391:
11392: solaris*)
1.1.1.2 misho 11393: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11394: need_lib_prefix=no
11395: need_version=no
11396: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397: soname_spec='${libname}${release}${shared_ext}$major'
11398: shlibpath_var=LD_LIBRARY_PATH
11399: shlibpath_overrides_runpath=yes
11400: hardcode_into_libs=yes
11401: # ldd complains unless libraries are executable
11402: postinstall_cmds='chmod +x $lib'
11403: ;;
11404:
11405: sunos4*)
11406: version_type=sunos
11407: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11408: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11409: shlibpath_var=LD_LIBRARY_PATH
11410: shlibpath_overrides_runpath=yes
11411: if test "$with_gnu_ld" = yes; then
11412: need_lib_prefix=no
11413: fi
11414: need_version=yes
11415: ;;
11416:
11417: sysv4 | sysv4.3*)
1.1.1.2 misho 11418: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11419: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420: soname_spec='${libname}${release}${shared_ext}$major'
11421: shlibpath_var=LD_LIBRARY_PATH
11422: case $host_vendor in
11423: sni)
11424: shlibpath_overrides_runpath=no
11425: need_lib_prefix=no
11426: runpath_var=LD_RUN_PATH
11427: ;;
11428: siemens)
11429: need_lib_prefix=no
11430: ;;
11431: motorola)
11432: need_lib_prefix=no
11433: need_version=no
11434: shlibpath_overrides_runpath=no
11435: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11436: ;;
11437: esac
11438: ;;
11439:
11440: sysv4*MP*)
11441: if test -d /usr/nec ;then
1.1.1.2 misho 11442: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11443: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11444: soname_spec='$libname${shared_ext}.$major'
11445: shlibpath_var=LD_LIBRARY_PATH
11446: fi
11447: ;;
11448:
11449: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11450: version_type=freebsd-elf
11451: need_lib_prefix=no
11452: need_version=no
11453: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11454: soname_spec='${libname}${release}${shared_ext}$major'
11455: shlibpath_var=LD_LIBRARY_PATH
11456: shlibpath_overrides_runpath=yes
11457: hardcode_into_libs=yes
11458: if test "$with_gnu_ld" = yes; then
11459: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11460: else
11461: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11462: case $host_os in
11463: sco3.2v5*)
11464: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11465: ;;
11466: esac
11467: fi
11468: sys_lib_dlsearch_path_spec='/usr/lib'
11469: ;;
11470:
11471: tpf*)
11472: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
1.1.1.2 misho 11473: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11474: need_lib_prefix=no
11475: need_version=no
11476: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477: shlibpath_var=LD_LIBRARY_PATH
11478: shlibpath_overrides_runpath=no
11479: hardcode_into_libs=yes
11480: ;;
11481:
11482: uts4*)
1.1.1.2 misho 11483: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 11484: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485: soname_spec='${libname}${release}${shared_ext}$major'
11486: shlibpath_var=LD_LIBRARY_PATH
11487: ;;
11488:
11489: *)
11490: dynamic_linker=no
11491: ;;
11492: esac
11493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11494: $as_echo "$dynamic_linker" >&6; }
11495: test "$dynamic_linker" = no && can_build_shared=no
11496:
11497: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11498: if test "$GCC" = yes; then
11499: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11500: fi
11501:
11502: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11503: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11504: fi
11505: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11506: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11507: fi
11508:
11509:
11510:
11511:
11512:
11513:
11514:
11515:
11516:
11517:
11518:
11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560:
11561:
11562:
11563:
11564:
11565:
11566:
11567:
11568:
11569:
11570:
11571:
11572:
11573:
11574:
11575:
11576:
11577:
11578:
11579:
11580:
11581:
11582:
11583:
11584:
11585:
11586:
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11601: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11602: hardcode_action=
11603: if test -n "$hardcode_libdir_flag_spec" ||
11604: test -n "$runpath_var" ||
11605: test "X$hardcode_automatic" = "Xyes" ; then
11606:
11607: # We can hardcode non-existent directories.
11608: if test "$hardcode_direct" != no &&
11609: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11610: # have to relink, otherwise we might link with an installed library
11611: # when we should be linking with a yet-to-be-installed one
11612: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11613: test "$hardcode_minus_L" != no; then
11614: # Linking always hardcodes the temporary library directory.
11615: hardcode_action=relink
11616: else
11617: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11618: hardcode_action=immediate
11619: fi
11620: else
11621: # We cannot hardcode anything, or else we can only hardcode existing
11622: # directories.
11623: hardcode_action=unsupported
11624: fi
11625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11626: $as_echo "$hardcode_action" >&6; }
11627:
11628: if test "$hardcode_action" = relink ||
11629: test "$inherit_rpath" = yes; then
11630: # Fast installation is not supported
11631: enable_fast_install=no
11632: elif test "$shlibpath_overrides_runpath" = yes ||
11633: test "$enable_shared" = no; then
11634: # Fast installation is not necessary
11635: enable_fast_install=needless
11636: fi
11637:
11638:
11639:
11640:
11641:
11642:
11643: if test "x$enable_dlopen" != xyes; then
11644: enable_dlopen=unknown
11645: enable_dlopen_self=unknown
11646: enable_dlopen_self_static=unknown
11647: else
11648: lt_cv_dlopen=no
11649: lt_cv_dlopen_libs=
11650:
11651: case $host_os in
11652: beos*)
11653: lt_cv_dlopen="load_add_on"
11654: lt_cv_dlopen_libs=
11655: lt_cv_dlopen_self=yes
11656: ;;
11657:
11658: mingw* | pw32* | cegcc*)
11659: lt_cv_dlopen="LoadLibrary"
11660: lt_cv_dlopen_libs=
11661: ;;
11662:
11663: cygwin*)
11664: lt_cv_dlopen="dlopen"
11665: lt_cv_dlopen_libs=
11666: ;;
11667:
11668: darwin*)
11669: # if libdl is installed we need to link against it
11670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11671: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11672: if ${ac_cv_lib_dl_dlopen+:} false; then :
11673: $as_echo_n "(cached) " >&6
11674: else
11675: ac_check_lib_save_LIBS=$LIBS
11676: LIBS="-ldl $LIBS"
11677: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678: /* end confdefs.h. */
11679:
11680: /* Override any GCC internal prototype to avoid an error.
11681: Use char because int might match the return type of a GCC
11682: builtin and then its argument prototype would still apply. */
11683: #ifdef __cplusplus
11684: extern "C"
11685: #endif
11686: char dlopen ();
11687: int
11688: main ()
11689: {
11690: return dlopen ();
11691: ;
11692: return 0;
11693: }
11694: _ACEOF
11695: if ac_fn_c_try_link "$LINENO"; then :
11696: ac_cv_lib_dl_dlopen=yes
11697: else
11698: ac_cv_lib_dl_dlopen=no
11699: fi
11700: rm -f core conftest.err conftest.$ac_objext \
11701: conftest$ac_exeext conftest.$ac_ext
11702: LIBS=$ac_check_lib_save_LIBS
11703: fi
11704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11705: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11706: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11707: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11708: else
11709:
11710: lt_cv_dlopen="dyld"
11711: lt_cv_dlopen_libs=
11712: lt_cv_dlopen_self=yes
11713:
11714: fi
11715:
11716: ;;
11717:
11718: *)
11719: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11720: if test "x$ac_cv_func_shl_load" = xyes; then :
11721: lt_cv_dlopen="shl_load"
11722: else
11723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11724: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11725: if ${ac_cv_lib_dld_shl_load+:} false; then :
11726: $as_echo_n "(cached) " >&6
11727: else
11728: ac_check_lib_save_LIBS=$LIBS
11729: LIBS="-ldld $LIBS"
11730: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731: /* end confdefs.h. */
11732:
11733: /* Override any GCC internal prototype to avoid an error.
11734: Use char because int might match the return type of a GCC
11735: builtin and then its argument prototype would still apply. */
11736: #ifdef __cplusplus
11737: extern "C"
11738: #endif
11739: char shl_load ();
11740: int
11741: main ()
11742: {
11743: return shl_load ();
11744: ;
11745: return 0;
11746: }
11747: _ACEOF
11748: if ac_fn_c_try_link "$LINENO"; then :
11749: ac_cv_lib_dld_shl_load=yes
11750: else
11751: ac_cv_lib_dld_shl_load=no
11752: fi
11753: rm -f core conftest.err conftest.$ac_objext \
11754: conftest$ac_exeext conftest.$ac_ext
11755: LIBS=$ac_check_lib_save_LIBS
11756: fi
11757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11758: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11759: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11760: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11761: else
11762: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11763: if test "x$ac_cv_func_dlopen" = xyes; then :
11764: lt_cv_dlopen="dlopen"
11765: else
11766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11767: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11768: if ${ac_cv_lib_dl_dlopen+:} false; then :
11769: $as_echo_n "(cached) " >&6
11770: else
11771: ac_check_lib_save_LIBS=$LIBS
11772: LIBS="-ldl $LIBS"
11773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774: /* end confdefs.h. */
11775:
11776: /* Override any GCC internal prototype to avoid an error.
11777: Use char because int might match the return type of a GCC
11778: builtin and then its argument prototype would still apply. */
11779: #ifdef __cplusplus
11780: extern "C"
11781: #endif
11782: char dlopen ();
11783: int
11784: main ()
11785: {
11786: return dlopen ();
11787: ;
11788: return 0;
11789: }
11790: _ACEOF
11791: if ac_fn_c_try_link "$LINENO"; then :
11792: ac_cv_lib_dl_dlopen=yes
11793: else
11794: ac_cv_lib_dl_dlopen=no
11795: fi
11796: rm -f core conftest.err conftest.$ac_objext \
11797: conftest$ac_exeext conftest.$ac_ext
11798: LIBS=$ac_check_lib_save_LIBS
11799: fi
11800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11801: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11802: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11803: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11804: else
11805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11806: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11807: if ${ac_cv_lib_svld_dlopen+:} false; then :
11808: $as_echo_n "(cached) " >&6
11809: else
11810: ac_check_lib_save_LIBS=$LIBS
11811: LIBS="-lsvld $LIBS"
11812: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813: /* end confdefs.h. */
11814:
11815: /* Override any GCC internal prototype to avoid an error.
11816: Use char because int might match the return type of a GCC
11817: builtin and then its argument prototype would still apply. */
11818: #ifdef __cplusplus
11819: extern "C"
11820: #endif
11821: char dlopen ();
11822: int
11823: main ()
11824: {
11825: return dlopen ();
11826: ;
11827: return 0;
11828: }
11829: _ACEOF
11830: if ac_fn_c_try_link "$LINENO"; then :
11831: ac_cv_lib_svld_dlopen=yes
11832: else
11833: ac_cv_lib_svld_dlopen=no
11834: fi
11835: rm -f core conftest.err conftest.$ac_objext \
11836: conftest$ac_exeext conftest.$ac_ext
11837: LIBS=$ac_check_lib_save_LIBS
11838: fi
11839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11840: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11841: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11842: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11843: else
11844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11845: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11846: if ${ac_cv_lib_dld_dld_link+:} false; then :
11847: $as_echo_n "(cached) " >&6
11848: else
11849: ac_check_lib_save_LIBS=$LIBS
11850: LIBS="-ldld $LIBS"
11851: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852: /* end confdefs.h. */
11853:
11854: /* Override any GCC internal prototype to avoid an error.
11855: Use char because int might match the return type of a GCC
11856: builtin and then its argument prototype would still apply. */
11857: #ifdef __cplusplus
11858: extern "C"
11859: #endif
11860: char dld_link ();
11861: int
11862: main ()
11863: {
11864: return dld_link ();
11865: ;
11866: return 0;
11867: }
11868: _ACEOF
11869: if ac_fn_c_try_link "$LINENO"; then :
11870: ac_cv_lib_dld_dld_link=yes
11871: else
11872: ac_cv_lib_dld_dld_link=no
11873: fi
11874: rm -f core conftest.err conftest.$ac_objext \
11875: conftest$ac_exeext conftest.$ac_ext
11876: LIBS=$ac_check_lib_save_LIBS
11877: fi
11878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11879: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11880: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11881: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11882: fi
11883:
11884:
11885: fi
11886:
11887:
11888: fi
11889:
11890:
11891: fi
11892:
11893:
11894: fi
11895:
11896:
11897: fi
11898:
11899: ;;
11900: esac
11901:
11902: if test "x$lt_cv_dlopen" != xno; then
11903: enable_dlopen=yes
11904: else
11905: enable_dlopen=no
11906: fi
11907:
11908: case $lt_cv_dlopen in
11909: dlopen)
11910: save_CPPFLAGS="$CPPFLAGS"
11911: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11912:
11913: save_LDFLAGS="$LDFLAGS"
11914: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11915:
11916: save_LIBS="$LIBS"
11917: LIBS="$lt_cv_dlopen_libs $LIBS"
11918:
11919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11920: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11921: if ${lt_cv_dlopen_self+:} false; then :
11922: $as_echo_n "(cached) " >&6
11923: else
11924: if test "$cross_compiling" = yes; then :
11925: lt_cv_dlopen_self=cross
11926: else
11927: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11928: lt_status=$lt_dlunknown
11929: cat > conftest.$ac_ext <<_LT_EOF
11930: #line $LINENO "configure"
11931: #include "confdefs.h"
11932:
11933: #if HAVE_DLFCN_H
11934: #include <dlfcn.h>
11935: #endif
11936:
11937: #include <stdio.h>
11938:
11939: #ifdef RTLD_GLOBAL
11940: # define LT_DLGLOBAL RTLD_GLOBAL
11941: #else
11942: # ifdef DL_GLOBAL
11943: # define LT_DLGLOBAL DL_GLOBAL
11944: # else
11945: # define LT_DLGLOBAL 0
11946: # endif
11947: #endif
11948:
11949: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11950: find out it does not work in some platform. */
11951: #ifndef LT_DLLAZY_OR_NOW
11952: # ifdef RTLD_LAZY
11953: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11954: # else
11955: # ifdef DL_LAZY
11956: # define LT_DLLAZY_OR_NOW DL_LAZY
11957: # else
11958: # ifdef RTLD_NOW
11959: # define LT_DLLAZY_OR_NOW RTLD_NOW
11960: # else
11961: # ifdef DL_NOW
11962: # define LT_DLLAZY_OR_NOW DL_NOW
11963: # else
11964: # define LT_DLLAZY_OR_NOW 0
11965: # endif
11966: # endif
11967: # endif
11968: # endif
11969: #endif
11970:
11971: /* When -fvisbility=hidden is used, assume the code has been annotated
11972: correspondingly for the symbols needed. */
11973: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11974: int fnord () __attribute__((visibility("default")));
11975: #endif
11976:
11977: int fnord () { return 42; }
11978: int main ()
11979: {
11980: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11981: int status = $lt_dlunknown;
11982:
11983: if (self)
11984: {
11985: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11986: else
11987: {
11988: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11989: else puts (dlerror ());
11990: }
11991: /* dlclose (self); */
11992: }
11993: else
11994: puts (dlerror ());
11995:
11996: return status;
11997: }
11998: _LT_EOF
11999: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12000: (eval $ac_link) 2>&5
12001: ac_status=$?
12002: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12004: (./conftest; exit; ) >&5 2>/dev/null
12005: lt_status=$?
12006: case x$lt_status in
12007: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12008: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12009: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12010: esac
12011: else :
12012: # compilation failed
12013: lt_cv_dlopen_self=no
12014: fi
12015: fi
12016: rm -fr conftest*
12017:
12018:
12019: fi
12020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12021: $as_echo "$lt_cv_dlopen_self" >&6; }
12022:
12023: if test "x$lt_cv_dlopen_self" = xyes; then
12024: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12026: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12027: if ${lt_cv_dlopen_self_static+:} false; then :
12028: $as_echo_n "(cached) " >&6
12029: else
12030: if test "$cross_compiling" = yes; then :
12031: lt_cv_dlopen_self_static=cross
12032: else
12033: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12034: lt_status=$lt_dlunknown
12035: cat > conftest.$ac_ext <<_LT_EOF
12036: #line $LINENO "configure"
12037: #include "confdefs.h"
12038:
12039: #if HAVE_DLFCN_H
12040: #include <dlfcn.h>
12041: #endif
12042:
12043: #include <stdio.h>
12044:
12045: #ifdef RTLD_GLOBAL
12046: # define LT_DLGLOBAL RTLD_GLOBAL
12047: #else
12048: # ifdef DL_GLOBAL
12049: # define LT_DLGLOBAL DL_GLOBAL
12050: # else
12051: # define LT_DLGLOBAL 0
12052: # endif
12053: #endif
12054:
12055: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12056: find out it does not work in some platform. */
12057: #ifndef LT_DLLAZY_OR_NOW
12058: # ifdef RTLD_LAZY
12059: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12060: # else
12061: # ifdef DL_LAZY
12062: # define LT_DLLAZY_OR_NOW DL_LAZY
12063: # else
12064: # ifdef RTLD_NOW
12065: # define LT_DLLAZY_OR_NOW RTLD_NOW
12066: # else
12067: # ifdef DL_NOW
12068: # define LT_DLLAZY_OR_NOW DL_NOW
12069: # else
12070: # define LT_DLLAZY_OR_NOW 0
12071: # endif
12072: # endif
12073: # endif
12074: # endif
12075: #endif
12076:
12077: /* When -fvisbility=hidden is used, assume the code has been annotated
12078: correspondingly for the symbols needed. */
12079: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12080: int fnord () __attribute__((visibility("default")));
12081: #endif
12082:
12083: int fnord () { return 42; }
12084: int main ()
12085: {
12086: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12087: int status = $lt_dlunknown;
12088:
12089: if (self)
12090: {
12091: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12092: else
12093: {
12094: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12095: else puts (dlerror ());
12096: }
12097: /* dlclose (self); */
12098: }
12099: else
12100: puts (dlerror ());
12101:
12102: return status;
12103: }
12104: _LT_EOF
12105: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12106: (eval $ac_link) 2>&5
12107: ac_status=$?
12108: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12109: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12110: (./conftest; exit; ) >&5 2>/dev/null
12111: lt_status=$?
12112: case x$lt_status in
12113: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12114: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12115: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12116: esac
12117: else :
12118: # compilation failed
12119: lt_cv_dlopen_self_static=no
12120: fi
12121: fi
12122: rm -fr conftest*
12123:
12124:
12125: fi
12126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12127: $as_echo "$lt_cv_dlopen_self_static" >&6; }
12128: fi
12129:
12130: CPPFLAGS="$save_CPPFLAGS"
12131: LDFLAGS="$save_LDFLAGS"
12132: LIBS="$save_LIBS"
12133: ;;
12134: esac
12135:
12136: case $lt_cv_dlopen_self in
12137: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12138: *) enable_dlopen_self=unknown ;;
12139: esac
12140:
12141: case $lt_cv_dlopen_self_static in
12142: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12143: *) enable_dlopen_self_static=unknown ;;
12144: esac
12145: fi
12146:
12147:
12148:
12149:
12150:
12151:
12152:
12153:
12154:
12155:
12156:
12157:
12158:
12159:
12160:
12161:
12162:
12163: striplib=
12164: old_striplib=
12165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12166: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12167: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12168: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12169: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171: $as_echo "yes" >&6; }
12172: else
12173: # FIXME - insert some real tests, host_os isn't really good enough
12174: case $host_os in
12175: darwin*)
12176: if test -n "$STRIP" ; then
12177: striplib="$STRIP -x"
12178: old_striplib="$STRIP -S"
12179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180: $as_echo "yes" >&6; }
12181: else
12182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183: $as_echo "no" >&6; }
12184: fi
12185: ;;
12186: *)
12187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188: $as_echo "no" >&6; }
12189: ;;
12190: esac
12191: fi
12192:
12193:
12194:
12195:
12196:
12197:
12198:
12199:
12200:
12201:
12202:
12203:
12204: # Report which library types will actually be built
12205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12206: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12208: $as_echo "$can_build_shared" >&6; }
12209:
12210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12211: $as_echo_n "checking whether to build shared libraries... " >&6; }
12212: test "$can_build_shared" = "no" && enable_shared=no
12213:
12214: # On AIX, shared libraries and static libraries use the same namespace, and
12215: # are all built from PIC.
12216: case $host_os in
12217: aix3*)
12218: test "$enable_shared" = yes && enable_static=no
12219: if test -n "$RANLIB"; then
12220: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12221: postinstall_cmds='$RANLIB $lib'
12222: fi
12223: ;;
12224:
12225: aix[4-9]*)
12226: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12227: test "$enable_shared" = yes && enable_static=no
12228: fi
12229: ;;
12230: esac
12231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12232: $as_echo "$enable_shared" >&6; }
12233:
12234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12235: $as_echo_n "checking whether to build static libraries... " >&6; }
12236: # Make sure either enable_shared or enable_static is yes.
12237: test "$enable_shared" = yes || enable_static=yes
12238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12239: $as_echo "$enable_static" >&6; }
12240:
12241:
12242:
12243:
12244: fi
12245: ac_ext=c
12246: ac_cpp='$CPP $CPPFLAGS'
12247: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12248: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12249: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12250:
12251: CC="$lt_save_CC"
12252:
12253:
12254:
12255:
12256:
12257:
12258:
12259:
12260:
12261:
12262:
12263:
12264:
1.1.1.2 misho 12265:
12266:
1.1 misho 12267: ac_config_commands="$ac_config_commands libtool"
12268:
12269:
12270:
12271:
12272: # Only expand once:
12273:
12274:
12275:
12276: # Check whether --enable-vtysh was given.
12277: if test "${enable_vtysh+set}" = set; then :
12278: enableval=$enable_vtysh;
12279: fi
12280:
12281: # Check whether --enable-ipv6 was given.
12282: if test "${enable_ipv6+set}" = set; then :
12283: enableval=$enable_ipv6;
12284: fi
12285:
12286: # Check whether --enable-doc was given.
12287: if test "${enable_doc+set}" = set; then :
12288: enableval=$enable_doc;
12289: fi
12290:
12291: # Check whether --enable-zebra was given.
12292: if test "${enable_zebra+set}" = set; then :
12293: enableval=$enable_zebra;
12294: fi
12295:
12296: # Check whether --enable-bgpd was given.
12297: if test "${enable_bgpd+set}" = set; then :
12298: enableval=$enable_bgpd;
12299: fi
12300:
12301: # Check whether --enable-ripd was given.
12302: if test "${enable_ripd+set}" = set; then :
12303: enableval=$enable_ripd;
12304: fi
12305:
12306: # Check whether --enable-ripngd was given.
12307: if test "${enable_ripngd+set}" = set; then :
12308: enableval=$enable_ripngd;
12309: fi
12310:
12311: # Check whether --enable-ospfd was given.
12312: if test "${enable_ospfd+set}" = set; then :
12313: enableval=$enable_ospfd;
12314: fi
12315:
12316: # Check whether --enable-ospf6d was given.
12317: if test "${enable_ospf6d+set}" = set; then :
12318: enableval=$enable_ospf6d;
12319: fi
12320:
1.1.1.3 ! misho 12321: # Check whether --enable-babeld was given.
! 12322: if test "${enable_babeld+set}" = set; then :
! 12323: enableval=$enable_babeld;
! 12324: fi
! 12325:
1.1 misho 12326: # Check whether --enable-watchquagga was given.
12327: if test "${enable_watchquagga+set}" = set; then :
12328: enableval=$enable_watchquagga;
12329: fi
12330:
12331: # Check whether --enable-isisd was given.
12332: if test "${enable_isisd+set}" = set; then :
12333: enableval=$enable_isisd;
12334: fi
12335:
12336: # Check whether --enable-solaris was given.
12337: if test "${enable_solaris+set}" = set; then :
12338: enableval=$enable_solaris;
12339: fi
12340:
12341: # Check whether --enable-bgp-announce was given.
12342: if test "${enable_bgp_announce+set}" = set; then :
12343: enableval=$enable_bgp_announce;
12344: fi
12345:
12346: # Check whether --enable-netlink was given.
12347: if test "${enable_netlink+set}" = set; then :
12348: enableval=$enable_netlink;
12349: fi
12350:
12351: # Check whether --enable-broken-aliases was given.
12352: if test "${enable_broken_aliases+set}" = set; then :
12353: enableval=$enable_broken_aliases;
12354: fi
12355:
12356:
12357: # Check whether --with-crypto was given.
12358: if test "${with_crypto+set}" = set; then :
12359: withval=$with_crypto;
12360: fi
12361:
12362: # Check whether --enable-snmp was given.
12363: if test "${enable_snmp+set}" = set; then :
12364: enableval=$enable_snmp;
12365: fi
12366:
12367:
12368: # Check whether --with-libpam was given.
12369: if test "${with_libpam+set}" = set; then :
12370: withval=$with_libpam;
12371: fi
12372:
12373: # Check whether --enable-tcp-zebra was given.
12374: if test "${enable_tcp_zebra+set}" = set; then :
12375: enableval=$enable_tcp_zebra;
12376: fi
12377:
12378: # Check whether --enable-opaque-lsa was given.
12379: if test "${enable_opaque_lsa+set}" = set; then :
12380: enableval=$enable_opaque_lsa;
12381: fi
12382:
12383: # Check whether --enable-ospfapi was given.
12384: if test "${enable_ospfapi+set}" = set; then :
12385: enableval=$enable_ospfapi;
12386: fi
12387:
12388: # Check whether --enable-ospfclient was given.
12389: if test "${enable_ospfclient+set}" = set; then :
12390: enableval=$enable_ospfclient;
12391: fi
12392:
12393: # Check whether --enable-ospf-te was given.
12394: if test "${enable_ospf_te+set}" = set; then :
12395: enableval=$enable_ospf_te;
12396: fi
12397:
12398: # Check whether --enable-multipath was given.
12399: if test "${enable_multipath+set}" = set; then :
12400: enableval=$enable_multipath;
12401: fi
12402:
12403: # Check whether --enable-user was given.
12404: if test "${enable_user+set}" = set; then :
12405: enableval=$enable_user;
12406: fi
12407:
12408: # Check whether --enable-group was given.
12409: if test "${enable_group+set}" = set; then :
12410: enableval=$enable_group;
12411: fi
12412:
12413: # Check whether --enable-vty_group was given.
12414: if test "${enable_vty_group+set}" = set; then :
12415: enableval=$enable_vty_group;
12416: fi
12417:
12418: # Check whether --enable-configfile_mask was given.
12419: if test "${enable_configfile_mask+set}" = set; then :
12420: enableval=$enable_configfile_mask;
12421: fi
12422:
12423: # Check whether --enable-logfile_mask was given.
12424: if test "${enable_logfile_mask+set}" = set; then :
12425: enableval=$enable_logfile_mask;
12426: fi
12427:
12428:
12429: # Check whether --enable-rtadv was given.
12430: if test "${enable_rtadv+set}" = set; then :
12431: enableval=$enable_rtadv;
12432: fi
12433:
12434: # Check whether --enable-irdp was given.
12435: if test "${enable_irdp+set}" = set; then :
12436: enableval=$enable_irdp;
12437: fi
12438:
12439: # Check whether --enable-isis_topology was given.
12440: if test "${enable_isis_topology+set}" = set; then :
12441: enableval=$enable_isis_topology;
12442: fi
12443:
12444: # Check whether --enable-capabilities was given.
12445: if test "${enable_capabilities+set}" = set; then :
12446: enableval=$enable_capabilities;
12447: fi
12448:
12449: # Check whether --enable-gcc_ultra_verbose was given.
12450: if test "${enable_gcc_ultra_verbose+set}" = set; then :
12451: enableval=$enable_gcc_ultra_verbose;
12452: fi
12453:
12454: # Check whether --enable-linux24_tcp_md5 was given.
12455: if test "${enable_linux24_tcp_md5+set}" = set; then :
12456: enableval=$enable_linux24_tcp_md5;
12457: fi
12458:
12459: # Check whether --enable-gcc-rdynamic was given.
12460: if test "${enable_gcc_rdynamic+set}" = set; then :
12461: enableval=$enable_gcc_rdynamic;
12462: fi
12463:
12464: # Check whether --enable-time-check was given.
12465: if test "${enable_time_check+set}" = set; then :
12466: enableval=$enable_time_check;
12467: fi
12468:
12469: # Check whether --enable-pcreposix was given.
12470: if test "${enable_pcreposix+set}" = set; then :
12471: enableval=$enable_pcreposix;
12472: fi
12473:
12474:
12475: if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
12476: CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
12477: CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
12478: CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
12479: CFLAGS="${CFLAGS} -Wpacked -Wpadded"
12480: fi
12481:
12482: if test x"${enable_gcc_rdynamic}" = x"yes" ; then
12483: LDFLAGS="${LDFLAGS} -rdynamic"
12484: fi
12485:
12486: if test x"${enable_time_check}" != x"no" ; then
12487: if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then
12488:
12489: $as_echo "#define CONSUMED_TIME_CHECK 5000000" >>confdefs.h
12490:
12491: else
12492:
12493: cat >>confdefs.h <<_ACEOF
12494: #define CONSUMED_TIME_CHECK $enable_time_check
12495: _ACEOF
12496:
12497: fi
12498: fi
12499:
12500: if test "${enable_broken_aliases}" = "yes"; then
12501: if test "${enable_netlink}" = "yes"
12502: then
12503: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12504: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12505: as_fn_error $? "Sorry you can not use netlink with broken aliases
12506: See \`config.log' for more details" "$LINENO" 5; }
12507: fi
12508:
12509: $as_echo "#define HAVE_BROKEN_ALIASES /**/" >>confdefs.h
12510:
12511: enable_netlink=no
12512: fi
12513:
12514: if test "${enable_tcp_zebra}" = "yes"; then
12515:
12516: $as_echo "#define HAVE_TCP_ZEBRA /**/" >>confdefs.h
12517:
12518: fi
12519:
12520: if test "${enable_opaque_lsa}" != "no"; then
12521:
12522: $as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h
12523:
12524: fi
12525:
12526: if test "${enable_ospf_te}" != "no"; then
12527:
12528: $as_echo "#define HAVE_OPAQUE_LSA /**/" >>confdefs.h
12529:
12530:
12531: $as_echo "#define HAVE_OSPF_TE /**/" >>confdefs.h
12532:
12533: fi
12534:
12535: if test "${enable_linux24_tcp_md5}" = "yes"; then
12536:
12537: $as_echo "#define HAVE_TCP_MD5_LINUX24 /**/" >>confdefs.h
12538:
12539: fi
12540:
12541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zebra should be configurable to send Route Advertisements" >&5
12542: $as_echo_n "checking if zebra should be configurable to send Route Advertisements... " >&6; }
12543: if test "${enable_rtadv}" != "no"; then
12544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545: $as_echo "yes" >&6; }
12546:
12547: $as_echo "#define HAVE_RTADV /**/" >>confdefs.h
12548:
12549: else
12550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551: $as_echo "no" >&6; }
12552: fi
12553:
12554: if test "${enable_irdp}" = "yes"; then
12555:
12556: $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
12557:
12558: fi
12559:
12560: if test "${enable_isisd}" = "yes" && test "${enable_isis_topology}" = yes; then
12561:
12562: $as_echo "#define TOPOLOGY_GENERATE /**/" >>confdefs.h
12563:
12564: ISIS_TOPOLOGY_INCLUDES="-I./topology"
12565: ISIS_TOPOLOGY_DIR="topology"
12566: ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
12567: fi
12568:
12569:
12570:
12571:
12572:
12573: if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
12574: enable_user="quagga"
12575: elif test "${enable_user}" = "no"; then
12576: enable_user="root"
12577: fi
12578:
12579: if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then
12580: enable_group="quagga"
12581: elif test "${enable_group}" = "no"; then
12582: enable_group="root"
12583: fi
12584:
12585: if test x"${enable_vty_group}" = x"yes" ; then
12586: as_fn_error $? "--enable-vty-group requires a group as argument, not yes" "$LINENO" 5
12587: elif test x"${enable_vty_group}" != x""; then
12588: if test x"${enable_vty_group}" != x"no"; then
12589:
12590: cat >>confdefs.h <<_ACEOF
12591: #define VTY_GROUP "${enable_vty_group}"
12592: _ACEOF
12593:
12594: fi
12595: fi
12596:
12597:
12598:
12599:
12600: cat >>confdefs.h <<_ACEOF
12601: #define QUAGGA_USER "${enable_user}"
12602: _ACEOF
12603:
12604:
12605: cat >>confdefs.h <<_ACEOF
12606: #define QUAGGA_GROUP "${enable_group}"
12607: _ACEOF
12608:
12609:
12610: enable_configfile_mask=${enable_configfile_mask:-0600}
12611:
12612: cat >>confdefs.h <<_ACEOF
12613: #define CONFIGFILE_MASK ${enable_configfile_mask}
12614: _ACEOF
12615:
12616:
12617: enable_logfile_mask=${enable_logfile_mask:-0600}
12618:
12619: cat >>confdefs.h <<_ACEOF
12620: #define LOGFILE_MASK ${enable_logfile_mask}
12621: _ACEOF
12622:
12623:
12624: MULTIPATH_NUM=1
12625:
12626: case "${enable_multipath}" in
12627: [0-9]|[1-9][0-9])
12628: MULTIPATH_NUM="${enable_multipath}"
12629: ;;
12630: "")
12631: ;;
12632: *)
12633: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12634: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12635: as_fn_error $? "Please specify digit to enable multipath ARG
12636: See \`config.log' for more details" "$LINENO" 5; }
12637: ;;
12638: esac
12639:
12640:
12641:
12642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12643: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12644: if ${ac_cv_c_const+:} false; then :
12645: $as_echo_n "(cached) " >&6
12646: else
12647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648: /* end confdefs.h. */
12649:
12650: int
12651: main ()
12652: {
1.1.1.3 ! misho 12653:
1.1 misho 12654: #ifndef __cplusplus
1.1.1.3 ! misho 12655: /* Ultrix mips cc rejects this sort of thing. */
1.1 misho 12656: typedef int charset[2];
1.1.1.3 ! misho 12657: const charset cs = { 0, 0 };
1.1 misho 12658: /* SunOS 4.1.1 cc rejects this. */
12659: char const *const *pcpcc;
12660: char **ppc;
12661: /* NEC SVR4.0.2 mips cc rejects this. */
12662: struct point {int x, y;};
12663: static struct point const zero = {0,0};
12664: /* AIX XL C 1.02.0.0 rejects this.
12665: It does not let you subtract one const X* pointer from another in
12666: an arm of an if-expression whose if-part is not a constant
12667: expression */
12668: const char *g = "string";
12669: pcpcc = &g + (g ? g-g : 0);
12670: /* HPUX 7.0 cc rejects these. */
12671: ++pcpcc;
12672: ppc = (char**) pcpcc;
12673: pcpcc = (char const *const *) ppc;
1.1.1.3 ! misho 12674: { /* SCO 3.2v4 cc rejects this sort of thing. */
! 12675: char tx;
! 12676: char *t = &tx;
1.1 misho 12677: char const *s = 0 ? (char *) 0 : (char const *) 0;
12678:
12679: *t++ = 0;
12680: if (s) return 0;
12681: }
12682: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12683: int x[] = {25, 17};
12684: const int *foo = &x[0];
12685: ++foo;
12686: }
12687: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12688: typedef const int *iptr;
12689: iptr p = 0;
12690: ++p;
12691: }
1.1.1.3 ! misho 12692: { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
1.1 misho 12693: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1.1.1.3 ! misho 12694: struct s { int j; const int *ap[3]; } bx;
! 12695: struct s *b = &bx; b->j = 5;
1.1 misho 12696: }
12697: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12698: const int foo = 10;
12699: if (!foo) return 0;
12700: }
12701: return !cs[0] && !zero.x;
12702: #endif
12703:
12704: ;
12705: return 0;
12706: }
12707: _ACEOF
12708: if ac_fn_c_try_compile "$LINENO"; then :
12709: ac_cv_c_const=yes
12710: else
12711: ac_cv_c_const=no
12712: fi
12713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714: fi
12715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12716: $as_echo "$ac_cv_c_const" >&6; }
12717: if test $ac_cv_c_const = no; then
12718:
12719: $as_echo "#define const /**/" >>confdefs.h
12720:
12721: fi
12722:
12723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12724: $as_echo_n "checking for inline... " >&6; }
12725: if ${ac_cv_c_inline+:} false; then :
12726: $as_echo_n "(cached) " >&6
12727: else
12728: ac_cv_c_inline=no
12729: for ac_kw in inline __inline__ __inline; do
12730: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731: /* end confdefs.h. */
12732: #ifndef __cplusplus
12733: typedef int foo_t;
12734: static $ac_kw foo_t static_foo () {return 0; }
12735: $ac_kw foo_t foo () {return 0; }
12736: #endif
12737:
12738: _ACEOF
12739: if ac_fn_c_try_compile "$LINENO"; then :
12740: ac_cv_c_inline=$ac_kw
12741: fi
12742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743: test "$ac_cv_c_inline" != no && break
12744: done
12745:
12746: fi
12747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12748: $as_echo "$ac_cv_c_inline" >&6; }
12749:
12750: case $ac_cv_c_inline in
12751: inline | yes) ;;
12752: *)
12753: case $ac_cv_c_inline in
12754: no) ac_val=;;
12755: *) ac_val=$ac_cv_c_inline;;
12756: esac
12757: cat >>confdefs.h <<_ACEOF
12758: #ifndef __cplusplus
12759: #define inline $ac_val
12760: #endif
12761: _ACEOF
12762: ;;
12763: esac
12764:
12765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12766: $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12767: if ${ac_cv_c_restrict+:} false; then :
12768: $as_echo_n "(cached) " >&6
12769: else
12770: ac_cv_c_restrict=no
12771: # The order here caters to the fact that C++ does not require restrict.
12772: for ac_kw in __restrict __restrict__ _Restrict restrict; do
12773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774: /* end confdefs.h. */
12775: typedef int * int_ptr;
12776: int foo (int_ptr $ac_kw ip) {
12777: return ip[0];
12778: }
12779: int
12780: main ()
12781: {
12782: int s[1];
12783: int * $ac_kw t = s;
12784: t[0] = 0;
12785: return foo(t)
12786: ;
12787: return 0;
12788: }
12789: _ACEOF
12790: if ac_fn_c_try_compile "$LINENO"; then :
12791: ac_cv_c_restrict=$ac_kw
12792: fi
12793: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794: test "$ac_cv_c_restrict" != no && break
12795: done
12796:
12797: fi
12798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12799: $as_echo "$ac_cv_c_restrict" >&6; }
12800:
12801: case $ac_cv_c_restrict in
12802: restrict) ;;
12803: no) $as_echo "#define restrict /**/" >>confdefs.h
12804: ;;
12805: *) cat >>confdefs.h <<_ACEOF
12806: #define restrict $ac_cv_c_restrict
12807: _ACEOF
12808: ;;
12809: esac
12810:
12811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12812: $as_echo_n "checking for working volatile... " >&6; }
12813: if ${ac_cv_c_volatile+:} false; then :
12814: $as_echo_n "(cached) " >&6
12815: else
12816: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817: /* end confdefs.h. */
12818:
12819: int
12820: main ()
12821: {
12822:
12823: volatile int x;
12824: int * volatile y = (int *) 0;
12825: return !x && !y;
12826: ;
12827: return 0;
12828: }
12829: _ACEOF
12830: if ac_fn_c_try_compile "$LINENO"; then :
12831: ac_cv_c_volatile=yes
12832: else
12833: ac_cv_c_volatile=no
12834: fi
12835: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836: fi
12837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12838: $as_echo "$ac_cv_c_volatile" >&6; }
12839: if test $ac_cv_c_volatile = no; then
12840:
12841: $as_echo "#define volatile /**/" >>confdefs.h
12842:
12843: fi
12844:
12845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12846: $as_echo_n "checking for ANSI C header files... " >&6; }
12847: if ${ac_cv_header_stdc+:} false; then :
12848: $as_echo_n "(cached) " >&6
12849: else
12850: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851: /* end confdefs.h. */
12852: #include <stdlib.h>
12853: #include <stdarg.h>
12854: #include <string.h>
12855: #include <float.h>
12856:
12857: int
12858: main ()
12859: {
12860:
12861: ;
12862: return 0;
12863: }
12864: _ACEOF
12865: if ac_fn_c_try_compile "$LINENO"; then :
12866: ac_cv_header_stdc=yes
12867: else
12868: ac_cv_header_stdc=no
12869: fi
12870: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871:
12872: if test $ac_cv_header_stdc = yes; then
12873: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12874: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875: /* end confdefs.h. */
12876: #include <string.h>
12877:
12878: _ACEOF
12879: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12880: $EGREP "memchr" >/dev/null 2>&1; then :
12881:
12882: else
12883: ac_cv_header_stdc=no
12884: fi
12885: rm -f conftest*
12886:
12887: fi
12888:
12889: if test $ac_cv_header_stdc = yes; then
12890: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892: /* end confdefs.h. */
12893: #include <stdlib.h>
12894:
12895: _ACEOF
12896: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12897: $EGREP "free" >/dev/null 2>&1; then :
12898:
12899: else
12900: ac_cv_header_stdc=no
12901: fi
12902: rm -f conftest*
12903:
12904: fi
12905:
12906: if test $ac_cv_header_stdc = yes; then
12907: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12908: if test "$cross_compiling" = yes; then :
12909: :
12910: else
12911: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912: /* end confdefs.h. */
12913: #include <ctype.h>
12914: #include <stdlib.h>
12915: #if ((' ' & 0x0FF) == 0x020)
12916: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12917: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12918: #else
12919: # define ISLOWER(c) \
12920: (('a' <= (c) && (c) <= 'i') \
12921: || ('j' <= (c) && (c) <= 'r') \
12922: || ('s' <= (c) && (c) <= 'z'))
12923: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12924: #endif
12925:
12926: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12927: int
12928: main ()
12929: {
12930: int i;
12931: for (i = 0; i < 256; i++)
12932: if (XOR (islower (i), ISLOWER (i))
12933: || toupper (i) != TOUPPER (i))
12934: return 2;
12935: return 0;
12936: }
12937: _ACEOF
12938: if ac_fn_c_try_run "$LINENO"; then :
12939:
12940: else
12941: ac_cv_header_stdc=no
12942: fi
12943: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12944: conftest.$ac_objext conftest.beam conftest.$ac_ext
12945: fi
12946:
12947: fi
12948: fi
12949: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12950: $as_echo "$ac_cv_header_stdc" >&6; }
12951: if test $ac_cv_header_stdc = yes; then
12952:
12953: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12954:
12955: fi
12956:
12957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12958: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12959: if ${ac_cv_header_time+:} false; then :
12960: $as_echo_n "(cached) " >&6
12961: else
12962: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963: /* end confdefs.h. */
12964: #include <sys/types.h>
12965: #include <sys/time.h>
12966: #include <time.h>
12967:
12968: int
12969: main ()
12970: {
12971: if ((struct tm *) 0)
12972: return 0;
12973: ;
12974: return 0;
12975: }
12976: _ACEOF
12977: if ac_fn_c_try_compile "$LINENO"; then :
12978: ac_cv_header_time=yes
12979: else
12980: ac_cv_header_time=no
12981: fi
12982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983: fi
12984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12985: $as_echo "$ac_cv_header_time" >&6; }
12986: if test $ac_cv_header_time = yes; then
12987:
12988: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12989:
12990: fi
12991:
12992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12993: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12994: if ${ac_cv_header_sys_wait_h+:} false; then :
12995: $as_echo_n "(cached) " >&6
12996: else
12997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998: /* end confdefs.h. */
12999: #include <sys/types.h>
13000: #include <sys/wait.h>
13001: #ifndef WEXITSTATUS
13002: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13003: #endif
13004: #ifndef WIFEXITED
13005: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13006: #endif
13007:
13008: int
13009: main ()
13010: {
13011: int s;
13012: wait (&s);
13013: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13014: ;
13015: return 0;
13016: }
13017: _ACEOF
13018: if ac_fn_c_try_compile "$LINENO"; then :
13019: ac_cv_header_sys_wait_h=yes
13020: else
13021: ac_cv_header_sys_wait_h=no
13022: fi
13023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024: fi
13025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13026: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13027: if test $ac_cv_header_sys_wait_h = yes; then
13028:
13029: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13030:
13031: fi
13032:
13033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13034: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13035: if ${ac_cv_type_uid_t+:} false; then :
13036: $as_echo_n "(cached) " >&6
13037: else
13038: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039: /* end confdefs.h. */
13040: #include <sys/types.h>
13041:
13042: _ACEOF
13043: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13044: $EGREP "uid_t" >/dev/null 2>&1; then :
13045: ac_cv_type_uid_t=yes
13046: else
13047: ac_cv_type_uid_t=no
13048: fi
13049: rm -f conftest*
13050:
13051: fi
13052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13053: $as_echo "$ac_cv_type_uid_t" >&6; }
13054: if test $ac_cv_type_uid_t = no; then
13055:
13056: $as_echo "#define uid_t int" >>confdefs.h
13057:
13058:
13059: $as_echo "#define gid_t int" >>confdefs.h
13060:
13061: fi
13062:
13063: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13064: if test "x$ac_cv_type_mode_t" = xyes; then :
13065:
13066: else
13067:
13068: cat >>confdefs.h <<_ACEOF
13069: #define mode_t int
13070: _ACEOF
13071:
13072: fi
13073:
13074: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13075: if test "x$ac_cv_type_size_t" = xyes; then :
13076:
13077: else
13078:
13079: cat >>confdefs.h <<_ACEOF
13080: #define size_t unsigned int
13081: _ACEOF
13082:
13083: fi
13084:
13085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13086: $as_echo_n "checking return type of signal handlers... " >&6; }
13087: if ${ac_cv_type_signal+:} false; then :
13088: $as_echo_n "(cached) " >&6
13089: else
13090: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091: /* end confdefs.h. */
13092: #include <sys/types.h>
13093: #include <signal.h>
13094:
13095: int
13096: main ()
13097: {
13098: return *(signal (0, 0)) (0) == 1;
13099: ;
13100: return 0;
13101: }
13102: _ACEOF
13103: if ac_fn_c_try_compile "$LINENO"; then :
13104: ac_cv_type_signal=int
13105: else
13106: ac_cv_type_signal=void
13107: fi
13108: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109: fi
13110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13111: $as_echo "$ac_cv_type_signal" >&6; }
13112:
13113: cat >>confdefs.h <<_ACEOF
13114: #define RETSIGTYPE $ac_cv_type_signal
13115: _ACEOF
13116:
13117:
13118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13119: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13120: if ${ac_cv_struct_tm+:} false; then :
13121: $as_echo_n "(cached) " >&6
13122: else
13123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124: /* end confdefs.h. */
13125: #include <sys/types.h>
13126: #include <time.h>
13127:
13128: int
13129: main ()
13130: {
13131: struct tm tm;
13132: int *p = &tm.tm_sec;
13133: return !p;
13134: ;
13135: return 0;
13136: }
13137: _ACEOF
13138: if ac_fn_c_try_compile "$LINENO"; then :
13139: ac_cv_struct_tm=time.h
13140: else
13141: ac_cv_struct_tm=sys/time.h
13142: fi
13143: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144: fi
13145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13146: $as_echo "$ac_cv_struct_tm" >&6; }
13147: if test $ac_cv_struct_tm = sys/time.h; then
13148:
13149: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13150:
13151: fi
13152:
13153:
13154: for ac_header in stropts.h sys/ksym.h sys/times.h sys/select.h \
13155: sys/types.h linux/version.h netdb.h asm/types.h \
13156: sys/param.h limits.h signal.h \
13157: sys/socket.h netinet/in.h time.h sys/time.h
13158: do :
13159: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13160: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13161: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13162: cat >>confdefs.h <<_ACEOF
13163: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13164: _ACEOF
13165:
13166: fi
13167:
13168: done
13169:
13170:
13171:
13172:
13173: for ac_header in net/if.h
13174: do :
13175: ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
13176: #define _XPG4_2
13177: #define __EXTENSIONS__
13178: #endif
13179: #include <stdio.h>
13180: #if STDC_HEADERS
13181: # include <stdlib.h>
13182: # include <stddef.h>
13183: #else
13184: # if HAVE_STDLIB_H
13185: # include <stdlib.h>
13186: # endif
13187: #endif
13188: #if HAVE_SYS_TYPES_H
13189: # include <sys/types.h>
13190: #endif
13191: /* sys/conf.h depends on param.h on FBSD at least */
13192: #if HAVE_SYS_PARAM_H
13193: # include <sys/param.h>
13194: #endif
13195: /* Required for MAXSIG */
13196: #if HAVE_SIGNAL_H
13197: # include <signal.h>
13198: #endif
13199: #if HAVE_SYS_SOCKET_H
13200: # include <sys/socket.h>
13201: #endif
13202: #if HAVE_NETINET_IN_H
13203: # include <netinet/in.h>
13204: #endif
13205: #ifdef TIME_WITH_SYS_TIME
13206: # include <sys/time.h>
13207: # include <time.h>
13208: #else
13209: # ifdef HAVE_SYS_TIME_H
13210: # include <sys/time.h>
13211: # else
13212: # include <time.h>
13213: # endif
13214: #endif /* TIME_WITH_SYS_TIME */
13215:
13216: "
13217: if test "x$ac_cv_header_net_if_h" = xyes; then :
13218: cat >>confdefs.h <<_ACEOF
13219: #define HAVE_NET_IF_H 1
13220: _ACEOF
13221:
13222: fi
13223:
13224: done
13225:
13226:
13227:
13228:
13229: for ac_header in net/if_var.h
13230: do :
13231: ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "#ifdef SUNOS_5
13232: #define _XPG4_2
13233: #define __EXTENSIONS__
13234: #endif
13235: #include <stdio.h>
13236: #if STDC_HEADERS
13237: # include <stdlib.h>
13238: # include <stddef.h>
13239: #else
13240: # if HAVE_STDLIB_H
13241: # include <stdlib.h>
13242: # endif
13243: #endif
13244: #if HAVE_SYS_TYPES_H
13245: # include <sys/types.h>
13246: #endif
13247: /* sys/conf.h depends on param.h on FBSD at least */
13248: #if HAVE_SYS_PARAM_H
13249: # include <sys/param.h>
13250: #endif
13251: /* Required for MAXSIG */
13252: #if HAVE_SIGNAL_H
13253: # include <signal.h>
13254: #endif
13255: #if HAVE_SYS_SOCKET_H
13256: # include <sys/socket.h>
13257: #endif
13258: #if HAVE_NETINET_IN_H
13259: # include <netinet/in.h>
13260: #endif
13261: #ifdef TIME_WITH_SYS_TIME
13262: # include <sys/time.h>
13263: # include <time.h>
13264: #else
13265: # ifdef HAVE_SYS_TIME_H
13266: # include <sys/time.h>
13267: # else
13268: # include <time.h>
13269: # endif
13270: #endif /* TIME_WITH_SYS_TIME */
13271:
13272: #if HAVE_NET_IF_H
13273: # include <net/if.h>
13274: #endif
13275:
13276: "
13277: if test "x$ac_cv_header_net_if_var_h" = xyes; then :
13278: cat >>confdefs.h <<_ACEOF
13279: #define HAVE_NET_IF_VAR_H 1
13280: _ACEOF
13281:
13282: fi
13283:
13284: done
13285:
13286:
13287:
13288: for ac_header in sys/un.h netinet/in_systm.h netinet/in_var.h \
13289: net/if_dl.h net/netopt.h net/route.h \
13290: inet/nd.h arpa/inet.h netinet/ip_icmp.h \
13291: fcntl.h stddef.h sys/ioctl.h syslog.h wchar.h wctype.h \
13292: sys/sysctl.h sys/sockio.h kvm.h sys/conf.h
13293: do :
13294: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13295: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
13296: #define _XPG4_2
13297: #define __EXTENSIONS__
13298: #endif
13299: #include <stdio.h>
13300: #if STDC_HEADERS
13301: # include <stdlib.h>
13302: # include <stddef.h>
13303: #else
13304: # if HAVE_STDLIB_H
13305: # include <stdlib.h>
13306: # endif
13307: #endif
13308: #if HAVE_SYS_TYPES_H
13309: # include <sys/types.h>
13310: #endif
13311: /* sys/conf.h depends on param.h on FBSD at least */
13312: #if HAVE_SYS_PARAM_H
13313: # include <sys/param.h>
13314: #endif
13315: /* Required for MAXSIG */
13316: #if HAVE_SIGNAL_H
13317: # include <signal.h>
13318: #endif
13319: #if HAVE_SYS_SOCKET_H
13320: # include <sys/socket.h>
13321: #endif
13322: #if HAVE_NETINET_IN_H
13323: # include <netinet/in.h>
13324: #endif
13325: #ifdef TIME_WITH_SYS_TIME
13326: # include <sys/time.h>
13327: # include <time.h>
13328: #else
13329: # ifdef HAVE_SYS_TIME_H
13330: # include <sys/time.h>
13331: # else
13332: # include <time.h>
13333: # endif
13334: #endif /* TIME_WITH_SYS_TIME */
13335:
13336: #if HAVE_NET_IF_H
13337: # include <net/if.h>
13338: #endif
13339:
13340: #if HAVE_NET_IF_VAR_H
13341: # include <net/if_var.h>
13342: #endif
13343:
13344: "
13345: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13346: cat >>confdefs.h <<_ACEOF
13347: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13348: _ACEOF
13349:
13350: fi
13351:
13352: done
13353:
13354:
13355: for ac_header in ucontext.h
13356: do :
13357: ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#ifndef __USE_GNU
13358: #define __USE_GNU
13359: #endif /* __USE_GNU */
13360: #ifdef SUNOS_5
13361: #define _XPG4_2
13362: #define __EXTENSIONS__
13363: #endif
13364: #include <stdio.h>
13365: #if STDC_HEADERS
13366: # include <stdlib.h>
13367: # include <stddef.h>
13368: #else
13369: # if HAVE_STDLIB_H
13370: # include <stdlib.h>
13371: # endif
13372: #endif
13373: #if HAVE_SYS_TYPES_H
13374: # include <sys/types.h>
13375: #endif
13376: /* sys/conf.h depends on param.h on FBSD at least */
13377: #if HAVE_SYS_PARAM_H
13378: # include <sys/param.h>
13379: #endif
13380: /* Required for MAXSIG */
13381: #if HAVE_SIGNAL_H
13382: # include <signal.h>
13383: #endif
13384: #if HAVE_SYS_SOCKET_H
13385: # include <sys/socket.h>
13386: #endif
13387: #if HAVE_NETINET_IN_H
13388: # include <netinet/in.h>
13389: #endif
13390: #ifdef TIME_WITH_SYS_TIME
13391: # include <sys/time.h>
13392: # include <time.h>
13393: #else
13394: # ifdef HAVE_SYS_TIME_H
13395: # include <sys/time.h>
13396: # else
13397: # include <time.h>
13398: # endif
13399: #endif /* TIME_WITH_SYS_TIME */
13400:
13401: #if HAVE_NET_IF_H
13402: # include <net/if.h>
13403: #endif
13404:
13405: #if HAVE_NET_IF_VAR_H
13406: # include <net/if_var.h>
13407: #endif
13408:
13409:
13410: "
13411: if test "x$ac_cv_header_ucontext_h" = xyes; then :
13412: cat >>confdefs.h <<_ACEOF
13413: #define HAVE_UCONTEXT_H 1
13414: _ACEOF
13415:
13416: fi
13417:
13418: done
13419:
13420:
13421:
13422:
13423: case "$host" in
13424: *-sunos5.[6-7]* | *-solaris2.[6-7]*)
13425: opsys=sol2-6
13426:
13427: $as_echo "#define SUNOS_56 1" >>confdefs.h
13428:
13429:
13430: $as_echo "#define SUNOS_5 1" >>confdefs.h
13431:
13432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
13433: $as_echo_n "checking for main in -lxnet... " >&6; }
13434: if ${ac_cv_lib_xnet_main+:} false; then :
13435: $as_echo_n "(cached) " >&6
13436: else
13437: ac_check_lib_save_LIBS=$LIBS
13438: LIBS="-lxnet $LIBS"
13439: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440: /* end confdefs.h. */
13441:
13442:
13443: int
13444: main ()
13445: {
13446: return main ();
13447: ;
13448: return 0;
13449: }
13450: _ACEOF
13451: if ac_fn_c_try_link "$LINENO"; then :
13452: ac_cv_lib_xnet_main=yes
13453: else
13454: ac_cv_lib_xnet_main=no
13455: fi
13456: rm -f core conftest.err conftest.$ac_objext \
13457: conftest$ac_exeext conftest.$ac_ext
13458: LIBS=$ac_check_lib_save_LIBS
13459: fi
13460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
13461: $as_echo "$ac_cv_lib_xnet_main" >&6; }
13462: if test "x$ac_cv_lib_xnet_main" = xyes; then :
13463: cat >>confdefs.h <<_ACEOF
13464: #define HAVE_LIBXNET 1
13465: _ACEOF
13466:
13467: LIBS="-lxnet $LIBS"
13468:
13469: fi
13470:
13471: CURSES=-lcurses
13472: ;;
13473: *-sunos5.[8-9] \
13474: | *-sunos5.1[0-9] \
13475: | *-sunos5.1[0-9].[0-9] \
13476: | *-solaris2.[8-9] \
13477: | *-solaris2.1[0-9] \
13478: | *-solaris2.1[0-9].[0-9])
13479: opsys=sol8
13480:
13481: $as_echo "#define SUNOS_59 1" >>confdefs.h
13482:
13483:
13484: $as_echo "#define SUNOS_5 1" >>confdefs.h
13485:
13486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13487: $as_echo_n "checking for main in -lsocket... " >&6; }
13488: if ${ac_cv_lib_socket_main+:} false; then :
13489: $as_echo_n "(cached) " >&6
13490: else
13491: ac_check_lib_save_LIBS=$LIBS
13492: LIBS="-lsocket $LIBS"
13493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494: /* end confdefs.h. */
13495:
13496:
13497: int
13498: main ()
13499: {
13500: return main ();
13501: ;
13502: return 0;
13503: }
13504: _ACEOF
13505: if ac_fn_c_try_link "$LINENO"; then :
13506: ac_cv_lib_socket_main=yes
13507: else
13508: ac_cv_lib_socket_main=no
13509: fi
13510: rm -f core conftest.err conftest.$ac_objext \
13511: conftest$ac_exeext conftest.$ac_ext
13512: LIBS=$ac_check_lib_save_LIBS
13513: fi
13514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13515: $as_echo "$ac_cv_lib_socket_main" >&6; }
13516: if test "x$ac_cv_lib_socket_main" = xyes; then :
13517: cat >>confdefs.h <<_ACEOF
13518: #define HAVE_LIBSOCKET 1
13519: _ACEOF
13520:
13521: LIBS="-lsocket $LIBS"
13522:
13523: fi
13524:
13525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13526: $as_echo_n "checking for main in -lnsl... " >&6; }
13527: if ${ac_cv_lib_nsl_main+:} false; then :
13528: $as_echo_n "(cached) " >&6
13529: else
13530: ac_check_lib_save_LIBS=$LIBS
13531: LIBS="-lnsl $LIBS"
13532: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533: /* end confdefs.h. */
13534:
13535:
13536: int
13537: main ()
13538: {
13539: return main ();
13540: ;
13541: return 0;
13542: }
13543: _ACEOF
13544: if ac_fn_c_try_link "$LINENO"; then :
13545: ac_cv_lib_nsl_main=yes
13546: else
13547: ac_cv_lib_nsl_main=no
13548: fi
13549: rm -f core conftest.err conftest.$ac_objext \
13550: conftest$ac_exeext conftest.$ac_ext
13551: LIBS=$ac_check_lib_save_LIBS
13552: fi
13553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13554: $as_echo "$ac_cv_lib_nsl_main" >&6; }
13555: if test "x$ac_cv_lib_nsl_main" = xyes; then :
13556: cat >>confdefs.h <<_ACEOF
13557: #define HAVE_LIBNSL 1
13558: _ACEOF
13559:
13560: LIBS="-lnsl $LIBS"
13561:
13562: fi
13563:
13564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lumem" >&5
13565: $as_echo_n "checking for main in -lumem... " >&6; }
13566: if ${ac_cv_lib_umem_main+:} false; then :
13567: $as_echo_n "(cached) " >&6
13568: else
13569: ac_check_lib_save_LIBS=$LIBS
13570: LIBS="-lumem $LIBS"
13571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572: /* end confdefs.h. */
13573:
13574:
13575: int
13576: main ()
13577: {
13578: return main ();
13579: ;
13580: return 0;
13581: }
13582: _ACEOF
13583: if ac_fn_c_try_link "$LINENO"; then :
13584: ac_cv_lib_umem_main=yes
13585: else
13586: ac_cv_lib_umem_main=no
13587: fi
13588: rm -f core conftest.err conftest.$ac_objext \
13589: conftest$ac_exeext conftest.$ac_ext
13590: LIBS=$ac_check_lib_save_LIBS
13591: fi
13592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_main" >&5
13593: $as_echo "$ac_cv_lib_umem_main" >&6; }
13594: if test "x$ac_cv_lib_umem_main" = xyes; then :
13595: cat >>confdefs.h <<_ACEOF
13596: #define HAVE_LIBUMEM 1
13597: _ACEOF
13598:
13599: LIBS="-lumem $LIBS"
13600:
13601: fi
13602:
13603: for ac_func in printstack
13604: do :
13605: ac_fn_c_check_func "$LINENO" "printstack" "ac_cv_func_printstack"
13606: if test "x$ac_cv_func_printstack" = xyes; then :
13607: cat >>confdefs.h <<_ACEOF
13608: #define HAVE_PRINTSTACK 1
13609: _ACEOF
13610:
13611: $as_echo "#define HAVE_PRINTSTACK 1" >>confdefs.h
13612:
13613:
13614: $as_echo "#define HAVE_STACK_TRACE 1" >>confdefs.h
13615:
13616:
13617: fi
13618: done
13619:
13620: CURSES=-lcurses
13621: ;;
13622: *-sunos5* | *-solaris2*)
13623:
13624: $as_echo "#define SUNOS_5 /**/" >>confdefs.h
13625:
13626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13627: $as_echo_n "checking for main in -lsocket... " >&6; }
13628: if ${ac_cv_lib_socket_main+:} false; then :
13629: $as_echo_n "(cached) " >&6
13630: else
13631: ac_check_lib_save_LIBS=$LIBS
13632: LIBS="-lsocket $LIBS"
13633: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634: /* end confdefs.h. */
13635:
13636:
13637: int
13638: main ()
13639: {
13640: return main ();
13641: ;
13642: return 0;
13643: }
13644: _ACEOF
13645: if ac_fn_c_try_link "$LINENO"; then :
13646: ac_cv_lib_socket_main=yes
13647: else
13648: ac_cv_lib_socket_main=no
13649: fi
13650: rm -f core conftest.err conftest.$ac_objext \
13651: conftest$ac_exeext conftest.$ac_ext
13652: LIBS=$ac_check_lib_save_LIBS
13653: fi
13654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13655: $as_echo "$ac_cv_lib_socket_main" >&6; }
13656: if test "x$ac_cv_lib_socket_main" = xyes; then :
13657: cat >>confdefs.h <<_ACEOF
13658: #define HAVE_LIBSOCKET 1
13659: _ACEOF
13660:
13661: LIBS="-lsocket $LIBS"
13662:
13663: fi
13664:
13665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13666: $as_echo_n "checking for main in -lnsl... " >&6; }
13667: if ${ac_cv_lib_nsl_main+:} false; then :
13668: $as_echo_n "(cached) " >&6
13669: else
13670: ac_check_lib_save_LIBS=$LIBS
13671: LIBS="-lnsl $LIBS"
13672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673: /* end confdefs.h. */
13674:
13675:
13676: int
13677: main ()
13678: {
13679: return main ();
13680: ;
13681: return 0;
13682: }
13683: _ACEOF
13684: if ac_fn_c_try_link "$LINENO"; then :
13685: ac_cv_lib_nsl_main=yes
13686: else
13687: ac_cv_lib_nsl_main=no
13688: fi
13689: rm -f core conftest.err conftest.$ac_objext \
13690: conftest$ac_exeext conftest.$ac_ext
13691: LIBS=$ac_check_lib_save_LIBS
13692: fi
13693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13694: $as_echo "$ac_cv_lib_nsl_main" >&6; }
13695: if test "x$ac_cv_lib_nsl_main" = xyes; then :
13696: cat >>confdefs.h <<_ACEOF
13697: #define HAVE_LIBNSL 1
13698: _ACEOF
13699:
13700: LIBS="-lnsl $LIBS"
13701:
13702: fi
13703:
13704: CURSES=-lcurses
13705: ;;
13706: *-linux*)
13707: opsys=gnu-linux
13708:
13709: $as_echo "#define GNU_LINUX /**/" >>confdefs.h
13710:
13711: ;;
13712: *-nec-sysv4*)
13713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13714: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13715: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13716: $as_echo_n "(cached) " >&6
13717: else
13718: ac_check_lib_save_LIBS=$LIBS
13719: LIBS="-lnsl $LIBS"
13720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721: /* end confdefs.h. */
13722:
13723: /* Override any GCC internal prototype to avoid an error.
13724: Use char because int might match the return type of a GCC
13725: builtin and then its argument prototype would still apply. */
13726: #ifdef __cplusplus
13727: extern "C"
13728: #endif
13729: char gethostbyname ();
13730: int
13731: main ()
13732: {
13733: return gethostbyname ();
13734: ;
13735: return 0;
13736: }
13737: _ACEOF
13738: if ac_fn_c_try_link "$LINENO"; then :
13739: ac_cv_lib_nsl_gethostbyname=yes
13740: else
13741: ac_cv_lib_nsl_gethostbyname=no
13742: fi
13743: rm -f core conftest.err conftest.$ac_objext \
13744: conftest$ac_exeext conftest.$ac_ext
13745: LIBS=$ac_check_lib_save_LIBS
13746: fi
13747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13748: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13749: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13750: cat >>confdefs.h <<_ACEOF
13751: #define HAVE_LIBNSL 1
13752: _ACEOF
13753:
13754: LIBS="-lnsl $LIBS"
13755:
13756: fi
13757:
13758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13759: $as_echo_n "checking for socket in -lsocket... " >&6; }
13760: if ${ac_cv_lib_socket_socket+:} false; then :
13761: $as_echo_n "(cached) " >&6
13762: else
13763: ac_check_lib_save_LIBS=$LIBS
13764: LIBS="-lsocket $LIBS"
13765: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766: /* end confdefs.h. */
13767:
13768: /* Override any GCC internal prototype to avoid an error.
13769: Use char because int might match the return type of a GCC
13770: builtin and then its argument prototype would still apply. */
13771: #ifdef __cplusplus
13772: extern "C"
13773: #endif
13774: char socket ();
13775: int
13776: main ()
13777: {
13778: return socket ();
13779: ;
13780: return 0;
13781: }
13782: _ACEOF
13783: if ac_fn_c_try_link "$LINENO"; then :
13784: ac_cv_lib_socket_socket=yes
13785: else
13786: ac_cv_lib_socket_socket=no
13787: fi
13788: rm -f core conftest.err conftest.$ac_objext \
13789: conftest$ac_exeext conftest.$ac_ext
13790: LIBS=$ac_check_lib_save_LIBS
13791: fi
13792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13793: $as_echo "$ac_cv_lib_socket_socket" >&6; }
13794: if test "x$ac_cv_lib_socket_socket" = xyes; then :
13795: cat >>confdefs.h <<_ACEOF
13796: #define HAVE_LIBSOCKET 1
13797: _ACEOF
13798:
13799: LIBS="-lsocket $LIBS"
13800:
13801: fi
13802:
13803: ;;
13804: *-openbsd*)
13805: opsys=openbsd
13806:
13807: $as_echo "#define OPEN_BSD /**/" >>confdefs.h
13808:
13809: ;;
13810: *-bsdi*)
13811: opsys=bsdi
13812: OTHER_METHOD="mtu_kvm.o"
13813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
13814: $as_echo_n "checking for main in -lkvm... " >&6; }
13815: if ${ac_cv_lib_kvm_main+:} false; then :
13816: $as_echo_n "(cached) " >&6
13817: else
13818: ac_check_lib_save_LIBS=$LIBS
13819: LIBS="-lkvm $LIBS"
13820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821: /* end confdefs.h. */
13822:
13823:
13824: int
13825: main ()
13826: {
13827: return main ();
13828: ;
13829: return 0;
13830: }
13831: _ACEOF
13832: if ac_fn_c_try_link "$LINENO"; then :
13833: ac_cv_lib_kvm_main=yes
13834: else
13835: ac_cv_lib_kvm_main=no
13836: fi
13837: rm -f core conftest.err conftest.$ac_objext \
13838: conftest$ac_exeext conftest.$ac_ext
13839: LIBS=$ac_check_lib_save_LIBS
13840: fi
13841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
13842: $as_echo "$ac_cv_lib_kvm_main" >&6; }
13843: if test "x$ac_cv_lib_kvm_main" = xyes; then :
13844: cat >>confdefs.h <<_ACEOF
13845: #define HAVE_LIBKVM 1
13846: _ACEOF
13847:
13848: LIBS="-lkvm $LIBS"
13849:
13850: fi
13851:
13852: ;;
13853: *-irix6.5)
13854: opsys=irix
13855:
13856: $as_echo "#define IRIX_65 /**/" >>confdefs.h
13857:
13858: ;;
13859: esac
13860:
13861: # Check whether --enable-largefile was given.
13862: if test "${enable_largefile+set}" = set; then :
13863: enableval=$enable_largefile;
13864: fi
13865:
13866: if test "$enable_largefile" != no; then
13867:
13868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13869: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13870: if ${ac_cv_sys_largefile_CC+:} false; then :
13871: $as_echo_n "(cached) " >&6
13872: else
13873: ac_cv_sys_largefile_CC=no
13874: if test "$GCC" != yes; then
13875: ac_save_CC=$CC
13876: while :; do
13877: # IRIX 6.2 and later do not support large files by default,
13878: # so use the C compiler's -n32 option if that helps.
13879: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880: /* end confdefs.h. */
13881: #include <sys/types.h>
13882: /* Check that off_t can represent 2**63 - 1 correctly.
13883: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13884: since some C++ compilers masquerading as C compilers
13885: incorrectly reject 9223372036854775807. */
13886: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13887: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13888: && LARGE_OFF_T % 2147483647 == 1)
13889: ? 1 : -1];
13890: int
13891: main ()
13892: {
13893:
13894: ;
13895: return 0;
13896: }
13897: _ACEOF
13898: if ac_fn_c_try_compile "$LINENO"; then :
13899: break
13900: fi
13901: rm -f core conftest.err conftest.$ac_objext
13902: CC="$CC -n32"
13903: if ac_fn_c_try_compile "$LINENO"; then :
13904: ac_cv_sys_largefile_CC=' -n32'; break
13905: fi
13906: rm -f core conftest.err conftest.$ac_objext
13907: break
13908: done
13909: CC=$ac_save_CC
13910: rm -f conftest.$ac_ext
13911: fi
13912: fi
13913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13914: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13915: if test "$ac_cv_sys_largefile_CC" != no; then
13916: CC=$CC$ac_cv_sys_largefile_CC
13917: fi
13918:
13919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13920: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13921: if ${ac_cv_sys_file_offset_bits+:} false; then :
13922: $as_echo_n "(cached) " >&6
13923: else
13924: while :; do
13925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926: /* end confdefs.h. */
13927: #include <sys/types.h>
13928: /* Check that off_t can represent 2**63 - 1 correctly.
13929: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13930: since some C++ compilers masquerading as C compilers
13931: incorrectly reject 9223372036854775807. */
13932: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13933: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13934: && LARGE_OFF_T % 2147483647 == 1)
13935: ? 1 : -1];
13936: int
13937: main ()
13938: {
13939:
13940: ;
13941: return 0;
13942: }
13943: _ACEOF
13944: if ac_fn_c_try_compile "$LINENO"; then :
13945: ac_cv_sys_file_offset_bits=no; break
13946: fi
13947: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949: /* end confdefs.h. */
13950: #define _FILE_OFFSET_BITS 64
13951: #include <sys/types.h>
13952: /* Check that off_t can represent 2**63 - 1 correctly.
13953: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13954: since some C++ compilers masquerading as C compilers
13955: incorrectly reject 9223372036854775807. */
13956: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13957: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13958: && LARGE_OFF_T % 2147483647 == 1)
13959: ? 1 : -1];
13960: int
13961: main ()
13962: {
13963:
13964: ;
13965: return 0;
13966: }
13967: _ACEOF
13968: if ac_fn_c_try_compile "$LINENO"; then :
13969: ac_cv_sys_file_offset_bits=64; break
13970: fi
13971: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972: ac_cv_sys_file_offset_bits=unknown
13973: break
13974: done
13975: fi
13976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13977: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13978: case $ac_cv_sys_file_offset_bits in #(
13979: no | unknown) ;;
13980: *)
13981: cat >>confdefs.h <<_ACEOF
13982: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13983: _ACEOF
13984: ;;
13985: esac
13986: rm -rf conftest*
13987: if test $ac_cv_sys_file_offset_bits = unknown; then
13988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13989: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13990: if ${ac_cv_sys_large_files+:} false; then :
13991: $as_echo_n "(cached) " >&6
13992: else
13993: while :; do
13994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995: /* end confdefs.h. */
13996: #include <sys/types.h>
13997: /* Check that off_t can represent 2**63 - 1 correctly.
13998: We can't simply define LARGE_OFF_T to be 9223372036854775807,
13999: since some C++ compilers masquerading as C compilers
14000: incorrectly reject 9223372036854775807. */
14001: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14002: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14003: && LARGE_OFF_T % 2147483647 == 1)
14004: ? 1 : -1];
14005: int
14006: main ()
14007: {
14008:
14009: ;
14010: return 0;
14011: }
14012: _ACEOF
14013: if ac_fn_c_try_compile "$LINENO"; then :
14014: ac_cv_sys_large_files=no; break
14015: fi
14016: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018: /* end confdefs.h. */
14019: #define _LARGE_FILES 1
14020: #include <sys/types.h>
14021: /* Check that off_t can represent 2**63 - 1 correctly.
14022: We can't simply define LARGE_OFF_T to be 9223372036854775807,
14023: since some C++ compilers masquerading as C compilers
14024: incorrectly reject 9223372036854775807. */
14025: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14026: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14027: && LARGE_OFF_T % 2147483647 == 1)
14028: ? 1 : -1];
14029: int
14030: main ()
14031: {
14032:
14033: ;
14034: return 0;
14035: }
14036: _ACEOF
14037: if ac_fn_c_try_compile "$LINENO"; then :
14038: ac_cv_sys_large_files=1; break
14039: fi
14040: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041: ac_cv_sys_large_files=unknown
14042: break
14043: done
14044: fi
14045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14046: $as_echo "$ac_cv_sys_large_files" >&6; }
14047: case $ac_cv_sys_large_files in #(
14048: no | unknown) ;;
14049: *)
14050: cat >>confdefs.h <<_ACEOF
14051: #define _LARGE_FILES $ac_cv_sys_large_files
14052: _ACEOF
14053: ;;
14054: esac
14055: rm -rf conftest*
14056: fi
1.1.1.3 ! misho 14057:
! 14058:
1.1 misho 14059: fi
14060:
14061:
14062: case "${enable_vtysh}" in
14063: "yes") VTYSH="vtysh";
14064:
14065: $as_echo "#define VTYSH /**/" >>confdefs.h
14066:
14067: # Extract the first word of "perl", so it can be a program name with args.
14068: set dummy perl; ac_word=$2
14069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070: $as_echo_n "checking for $ac_word... " >&6; }
14071: if ${ac_cv_path_PERL+:} false; then :
14072: $as_echo_n "(cached) " >&6
14073: else
14074: case $PERL in
14075: [\\/]* | ?:[\\/]*)
14076: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14077: ;;
14078: *)
14079: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080: for as_dir in $PATH
14081: do
14082: IFS=$as_save_IFS
14083: test -z "$as_dir" && as_dir=.
14084: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 14085: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 14086: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14087: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14088: break 2
14089: fi
14090: done
14091: done
14092: IFS=$as_save_IFS
14093:
14094: ;;
14095: esac
14096: fi
14097: PERL=$ac_cv_path_PERL
14098: if test -n "$PERL"; then
14099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14100: $as_echo "$PERL" >&6; }
14101: else
14102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103: $as_echo "no" >&6; }
14104: fi
14105:
14106:
14107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltermcap" >&5
14108: $as_echo_n "checking for tputs in -ltermcap... " >&6; }
14109: if ${ac_cv_lib_termcap_tputs+:} false; then :
14110: $as_echo_n "(cached) " >&6
14111: else
14112: ac_check_lib_save_LIBS=$LIBS
14113: LIBS="-ltermcap $LIBS"
14114: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115: /* end confdefs.h. */
14116:
14117: /* Override any GCC internal prototype to avoid an error.
14118: Use char because int might match the return type of a GCC
14119: builtin and then its argument prototype would still apply. */
14120: #ifdef __cplusplus
14121: extern "C"
14122: #endif
14123: char tputs ();
14124: int
14125: main ()
14126: {
14127: return tputs ();
14128: ;
14129: return 0;
14130: }
14131: _ACEOF
14132: if ac_fn_c_try_link "$LINENO"; then :
14133: ac_cv_lib_termcap_tputs=yes
14134: else
14135: ac_cv_lib_termcap_tputs=no
14136: fi
14137: rm -f core conftest.err conftest.$ac_objext \
14138: conftest$ac_exeext conftest.$ac_ext
14139: LIBS=$ac_check_lib_save_LIBS
14140: fi
14141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tputs" >&5
14142: $as_echo "$ac_cv_lib_termcap_tputs" >&6; }
14143: if test "x$ac_cv_lib_termcap_tputs" = xyes; then :
14144: LIBREADLINE="$LIBREADLINE -ltermcap"
14145: else
14146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -ltinfo" >&5
14147: $as_echo_n "checking for tputs in -ltinfo... " >&6; }
14148: if ${ac_cv_lib_tinfo_tputs+:} false; then :
14149: $as_echo_n "(cached) " >&6
14150: else
14151: ac_check_lib_save_LIBS=$LIBS
14152: LIBS="-ltinfo $LIBS"
14153: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154: /* end confdefs.h. */
14155:
14156: /* Override any GCC internal prototype to avoid an error.
14157: Use char because int might match the return type of a GCC
14158: builtin and then its argument prototype would still apply. */
14159: #ifdef __cplusplus
14160: extern "C"
14161: #endif
14162: char tputs ();
14163: int
14164: main ()
14165: {
14166: return tputs ();
14167: ;
14168: return 0;
14169: }
14170: _ACEOF
14171: if ac_fn_c_try_link "$LINENO"; then :
14172: ac_cv_lib_tinfo_tputs=yes
14173: else
14174: ac_cv_lib_tinfo_tputs=no
14175: fi
14176: rm -f core conftest.err conftest.$ac_objext \
14177: conftest$ac_exeext conftest.$ac_ext
14178: LIBS=$ac_check_lib_save_LIBS
14179: fi
14180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tputs" >&5
14181: $as_echo "$ac_cv_lib_tinfo_tputs" >&6; }
14182: if test "x$ac_cv_lib_tinfo_tputs" = xyes; then :
14183: LIBREADLINE="$LIBREADLINE -ltinfo"
14184: else
14185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
14186: $as_echo_n "checking for tputs in -lcurses... " >&6; }
14187: if ${ac_cv_lib_curses_tputs+:} false; then :
14188: $as_echo_n "(cached) " >&6
14189: else
14190: ac_check_lib_save_LIBS=$LIBS
14191: LIBS="-lcurses $LIBS"
14192: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193: /* end confdefs.h. */
14194:
14195: /* Override any GCC internal prototype to avoid an error.
14196: Use char because int might match the return type of a GCC
14197: builtin and then its argument prototype would still apply. */
14198: #ifdef __cplusplus
14199: extern "C"
14200: #endif
14201: char tputs ();
14202: int
14203: main ()
14204: {
14205: return tputs ();
14206: ;
14207: return 0;
14208: }
14209: _ACEOF
14210: if ac_fn_c_try_link "$LINENO"; then :
14211: ac_cv_lib_curses_tputs=yes
14212: else
14213: ac_cv_lib_curses_tputs=no
14214: fi
14215: rm -f core conftest.err conftest.$ac_objext \
14216: conftest$ac_exeext conftest.$ac_ext
14217: LIBS=$ac_check_lib_save_LIBS
14218: fi
14219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
14220: $as_echo "$ac_cv_lib_curses_tputs" >&6; }
14221: if test "x$ac_cv_lib_curses_tputs" = xyes; then :
14222: LIBREADLINE="$LIBREADLINE -lcurses"
14223: else
14224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
14225: $as_echo_n "checking for tputs in -lncurses... " >&6; }
14226: if ${ac_cv_lib_ncurses_tputs+:} false; then :
14227: $as_echo_n "(cached) " >&6
14228: else
14229: ac_check_lib_save_LIBS=$LIBS
14230: LIBS="-lncurses $LIBS"
14231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232: /* end confdefs.h. */
14233:
14234: /* Override any GCC internal prototype to avoid an error.
14235: Use char because int might match the return type of a GCC
14236: builtin and then its argument prototype would still apply. */
14237: #ifdef __cplusplus
14238: extern "C"
14239: #endif
14240: char tputs ();
14241: int
14242: main ()
14243: {
14244: return tputs ();
14245: ;
14246: return 0;
14247: }
14248: _ACEOF
14249: if ac_fn_c_try_link "$LINENO"; then :
14250: ac_cv_lib_ncurses_tputs=yes
14251: else
14252: ac_cv_lib_ncurses_tputs=no
14253: fi
14254: rm -f core conftest.err conftest.$ac_objext \
14255: conftest$ac_exeext conftest.$ac_ext
14256: LIBS=$ac_check_lib_save_LIBS
14257: fi
14258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
14259: $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
14260: if test "x$ac_cv_lib_ncurses_tputs" = xyes; then :
14261: LIBREADLINE="$LIBREADLINE -lncurses"
14262: fi
14263:
14264:
14265: fi
14266:
14267:
14268: fi
14269:
14270:
14271: fi
14272:
14273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
14274: $as_echo_n "checking for main in -lreadline... " >&6; }
14275: if ${ac_cv_lib_readline_main+:} false; then :
14276: $as_echo_n "(cached) " >&6
14277: else
14278: ac_check_lib_save_LIBS=$LIBS
14279: LIBS="-lreadline "$LIBREADLINE" $LIBS"
14280: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281: /* end confdefs.h. */
14282:
14283:
14284: int
14285: main ()
14286: {
14287: return main ();
14288: ;
14289: return 0;
14290: }
14291: _ACEOF
14292: if ac_fn_c_try_link "$LINENO"; then :
14293: ac_cv_lib_readline_main=yes
14294: else
14295: ac_cv_lib_readline_main=no
14296: fi
14297: rm -f core conftest.err conftest.$ac_objext \
14298: conftest$ac_exeext conftest.$ac_ext
14299: LIBS=$ac_check_lib_save_LIBS
14300: fi
14301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
14302: $as_echo "$ac_cv_lib_readline_main" >&6; }
14303: if test "x$ac_cv_lib_readline_main" = xyes; then :
14304: LIBREADLINE="$LIBREADLINE -lreadline"
14305: fi
14306:
14307: if test $ac_cv_lib_readline_main = no; then
14308: as_fn_error $? "vtysh needs libreadline but was not found and usable on your system." "$LINENO" 5
14309: fi
14310: ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14311: if test "x$ac_cv_header_readline_history_h" = xyes; then :
14312:
14313: fi
14314:
14315:
14316: if test $ac_cv_header_readline_history_h = no;then
14317: as_fn_error $? "readline is too old to have readline/history.h, please update to the latest readline library." "$LINENO" 5
14318: fi
14319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
14320: $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
14321: if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
14322: $as_echo_n "(cached) " >&6
14323: else
14324: ac_check_lib_save_LIBS=$LIBS
14325: LIBS="-lreadline "$LIBREADLINE" $LIBS"
14326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327: /* end confdefs.h. */
14328:
14329: /* Override any GCC internal prototype to avoid an error.
14330: Use char because int might match the return type of a GCC
14331: builtin and then its argument prototype would still apply. */
14332: #ifdef __cplusplus
14333: extern "C"
14334: #endif
14335: char rl_completion_matches ();
14336: int
14337: main ()
14338: {
14339: return rl_completion_matches ();
14340: ;
14341: return 0;
14342: }
14343: _ACEOF
14344: if ac_fn_c_try_link "$LINENO"; then :
14345: ac_cv_lib_readline_rl_completion_matches=yes
14346: else
14347: ac_cv_lib_readline_rl_completion_matches=no
14348: fi
14349: rm -f core conftest.err conftest.$ac_objext \
14350: conftest$ac_exeext conftest.$ac_ext
14351: LIBS=$ac_check_lib_save_LIBS
14352: fi
14353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
14354: $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
14355: if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
14356: LIBREADLINE="$LIBREADLINE"
14357: fi
14358:
14359: if test $ac_cv_lib_readline_rl_completion_matches = no; then
14360:
14361: $as_echo "#define rl_completion_matches completion_matches" >>confdefs.h
14362:
14363: fi
14364: ;;
14365: "no" ) VTYSH="";;
14366: * ) ;;
14367: esac
14368:
1.1.1.3 ! misho 14369: if test "x$VTYSH" = "xvtysh"; then
! 14370: VTYSH_TRUE=
! 14371: VTYSH_FALSE='#'
! 14372: else
! 14373: VTYSH_TRUE='#'
! 14374: VTYSH_FALSE=
! 14375: fi
! 14376:
1.1 misho 14377:
14378: if test "$with_libpam" = "yes"; then
14379: ac_fn_c_check_header_compile "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "#ifdef SUNOS_5
14380: #define _XPG4_2
14381: #define __EXTENSIONS__
14382: #endif
14383: #include <stdio.h>
14384: #if STDC_HEADERS
14385: # include <stdlib.h>
14386: # include <stddef.h>
14387: #else
14388: # if HAVE_STDLIB_H
14389: # include <stdlib.h>
14390: # endif
14391: #endif
14392: #if HAVE_SYS_TYPES_H
14393: # include <sys/types.h>
14394: #endif
14395: /* sys/conf.h depends on param.h on FBSD at least */
14396: #if HAVE_SYS_PARAM_H
14397: # include <sys/param.h>
14398: #endif
14399: /* Required for MAXSIG */
14400: #if HAVE_SIGNAL_H
14401: # include <signal.h>
14402: #endif
14403: #if HAVE_SYS_SOCKET_H
14404: # include <sys/socket.h>
14405: #endif
14406: #if HAVE_NETINET_IN_H
14407: # include <netinet/in.h>
14408: #endif
14409: #ifdef TIME_WITH_SYS_TIME
14410: # include <sys/time.h>
14411: # include <time.h>
14412: #else
14413: # ifdef HAVE_SYS_TIME_H
14414: # include <sys/time.h>
14415: # else
14416: # include <time.h>
14417: # endif
14418: #endif /* TIME_WITH_SYS_TIME */
14419:
14420: #if HAVE_NET_IF_H
14421: # include <net/if.h>
14422: #endif
14423:
14424: #if HAVE_NET_IF_VAR_H
14425: # include <net/if_var.h>
14426: #endif
14427:
14428: #if HAVE_SYS_UN_H
14429: # include <sys/un.h>
14430: #endif
14431: #if HAVE_NETINET_IN_SYSTM_H
14432: # include <netinet/in_systm.h>
14433: #endif
14434: #if HAVE_NETINET_IN_VAR_H
14435: # include <netinet/in_var.h>
14436: #endif
14437: #if HAVE_NET_IF_DL_H
14438: # include <net/if_dl.h>
14439: #endif
14440: #if HAVE_NET_NETOPT_H
14441: # include <net/netopt.h>
14442: #endif
14443: #if HAVE_NET_ROUTE_H
14444: # include <net/route.h>
14445: #endif
14446: #if HAVE_INET_ND_H
14447: # include <inet/nd.h>
14448: #endif
14449: #if HAVE_ARPA_INET_H
14450: # include <arpa/inet.h>
14451: #endif
14452: /* Required for IDRP */
14453: #if HAVE_NETINET_IP_ICMP_H
14454: # include <netinet/ip_icmp.h>
14455: #endif
14456:
14457: "
14458: if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
14459:
14460: $as_echo "#define HAVE_PAM_MISC_H /**/" >>confdefs.h
14461:
14462:
14463: $as_echo "#define PAM_CONV_FUNC misc_conv" >>confdefs.h
14464:
14465: pam_conv_func="misc_conv"
14466:
14467: fi
14468:
14469:
14470: ac_fn_c_check_header_compile "$LINENO" "security/openpam.h" "ac_cv_header_security_openpam_h" "#ifdef SUNOS_5
14471: #define _XPG4_2
14472: #define __EXTENSIONS__
14473: #endif
14474: #include <stdio.h>
14475: #if STDC_HEADERS
14476: # include <stdlib.h>
14477: # include <stddef.h>
14478: #else
14479: # if HAVE_STDLIB_H
14480: # include <stdlib.h>
14481: # endif
14482: #endif
14483: #if HAVE_SYS_TYPES_H
14484: # include <sys/types.h>
14485: #endif
14486: /* sys/conf.h depends on param.h on FBSD at least */
14487: #if HAVE_SYS_PARAM_H
14488: # include <sys/param.h>
14489: #endif
14490: /* Required for MAXSIG */
14491: #if HAVE_SIGNAL_H
14492: # include <signal.h>
14493: #endif
14494: #if HAVE_SYS_SOCKET_H
14495: # include <sys/socket.h>
14496: #endif
14497: #if HAVE_NETINET_IN_H
14498: # include <netinet/in.h>
14499: #endif
14500: #ifdef TIME_WITH_SYS_TIME
14501: # include <sys/time.h>
14502: # include <time.h>
14503: #else
14504: # ifdef HAVE_SYS_TIME_H
14505: # include <sys/time.h>
14506: # else
14507: # include <time.h>
14508: # endif
14509: #endif /* TIME_WITH_SYS_TIME */
14510:
14511: #if HAVE_NET_IF_H
14512: # include <net/if.h>
14513: #endif
14514:
14515: #if HAVE_NET_IF_VAR_H
14516: # include <net/if_var.h>
14517: #endif
14518:
14519: #if HAVE_SYS_UN_H
14520: # include <sys/un.h>
14521: #endif
14522: #if HAVE_NETINET_IN_SYSTM_H
14523: # include <netinet/in_systm.h>
14524: #endif
14525: #if HAVE_NETINET_IN_VAR_H
14526: # include <netinet/in_var.h>
14527: #endif
14528: #if HAVE_NET_IF_DL_H
14529: # include <net/if_dl.h>
14530: #endif
14531: #if HAVE_NET_NETOPT_H
14532: # include <net/netopt.h>
14533: #endif
14534: #if HAVE_NET_ROUTE_H
14535: # include <net/route.h>
14536: #endif
14537: #if HAVE_INET_ND_H
14538: # include <inet/nd.h>
14539: #endif
14540: #if HAVE_ARPA_INET_H
14541: # include <arpa/inet.h>
14542: #endif
14543: /* Required for IDRP */
14544: #if HAVE_NETINET_IP_ICMP_H
14545: # include <netinet/ip_icmp.h>
14546: #endif
14547: #include <security/pam_appl.h>
14548: "
14549: if test "x$ac_cv_header_security_openpam_h" = xyes; then :
14550:
14551: $as_echo "#define HAVE_OPENPAM_H /**/" >>confdefs.h
14552:
14553:
14554: $as_echo "#define PAM_CONV_FUNC openpam_ttyconv" >>confdefs.h
14555:
14556: pam_conv_func="openpam_ttyconv"
14557:
14558: fi
14559:
14560:
14561: if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
14562: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
14563: $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
14564: with_libpam="no"
14565: fi
14566: fi
14567:
14568: if test "$with_libpam" = "yes"; then
14569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14570: $as_echo_n "checking for pam_start in -lpam... " >&6; }
14571: if ${ac_cv_lib_pam_pam_start+:} false; then :
14572: $as_echo_n "(cached) " >&6
14573: else
14574: ac_check_lib_save_LIBS=$LIBS
14575: LIBS="-lpam $LIBS"
14576: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577: /* end confdefs.h. */
14578:
14579: /* Override any GCC internal prototype to avoid an error.
14580: Use char because int might match the return type of a GCC
14581: builtin and then its argument prototype would still apply. */
14582: #ifdef __cplusplus
14583: extern "C"
14584: #endif
14585: char pam_start ();
14586: int
14587: main ()
14588: {
14589: return pam_start ();
14590: ;
14591: return 0;
14592: }
14593: _ACEOF
14594: if ac_fn_c_try_link "$LINENO"; then :
14595: ac_cv_lib_pam_pam_start=yes
14596: else
14597: ac_cv_lib_pam_pam_start=no
14598: fi
14599: rm -f core conftest.err conftest.$ac_objext \
14600: conftest$ac_exeext conftest.$ac_ext
14601: LIBS=$ac_check_lib_save_LIBS
14602: fi
14603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14604: $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14605: if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
14606: as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
14607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
14608: $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
14609: if eval \${$as_ac_Lib+:} false; then :
14610: $as_echo_n "(cached) " >&6
14611: else
14612: ac_check_lib_save_LIBS=$LIBS
14613: LIBS="-lpam $LIBS"
14614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615: /* end confdefs.h. */
14616:
14617: /* Override any GCC internal prototype to avoid an error.
14618: Use char because int might match the return type of a GCC
14619: builtin and then its argument prototype would still apply. */
14620: #ifdef __cplusplus
14621: extern "C"
14622: #endif
14623: char $pam_conv_func ();
14624: int
14625: main ()
14626: {
14627: return $pam_conv_func ();
14628: ;
14629: return 0;
14630: }
14631: _ACEOF
14632: if ac_fn_c_try_link "$LINENO"; then :
14633: eval "$as_ac_Lib=yes"
14634: else
14635: eval "$as_ac_Lib=no"
14636: fi
14637: rm -f core conftest.err conftest.$ac_objext \
14638: conftest$ac_exeext conftest.$ac_ext
14639: LIBS=$ac_check_lib_save_LIBS
14640: fi
14641: eval ac_res=\$$as_ac_Lib
14642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14643: $as_echo "$ac_res" >&6; }
14644: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14645:
14646: $as_echo "#define USE_PAM /**/" >>confdefs.h
14647:
14648: LIBPAM="-lpam"
14649: else
14650:
14651: $as_echo "#define USE_PAM /**/" >>confdefs.h
14652:
14653: LIBPAM="-lpam -lpam_misc"
14654:
14655: fi
14656:
14657:
14658: else
14659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
14660: $as_echo_n "checking for pam_end in -lpam... " >&6; }
14661: if ${ac_cv_lib_pam_pam_end+:} false; then :
14662: $as_echo_n "(cached) " >&6
14663: else
14664: ac_check_lib_save_LIBS=$LIBS
14665: LIBS="-lpam -ldl $LIBS"
14666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667: /* end confdefs.h. */
14668:
14669: /* Override any GCC internal prototype to avoid an error.
14670: Use char because int might match the return type of a GCC
14671: builtin and then its argument prototype would still apply. */
14672: #ifdef __cplusplus
14673: extern "C"
14674: #endif
14675: char pam_end ();
14676: int
14677: main ()
14678: {
14679: return pam_end ();
14680: ;
14681: return 0;
14682: }
14683: _ACEOF
14684: if ac_fn_c_try_link "$LINENO"; then :
14685: ac_cv_lib_pam_pam_end=yes
14686: else
14687: ac_cv_lib_pam_pam_end=no
14688: fi
14689: rm -f core conftest.err conftest.$ac_objext \
14690: conftest$ac_exeext conftest.$ac_ext
14691: LIBS=$ac_check_lib_save_LIBS
14692: fi
14693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
14694: $as_echo "$ac_cv_lib_pam_pam_end" >&6; }
14695: if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
14696: as_ac_Lib=`$as_echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
14697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pam_conv_func in -lpam" >&5
14698: $as_echo_n "checking for $pam_conv_func in -lpam... " >&6; }
14699: if eval \${$as_ac_Lib+:} false; then :
14700: $as_echo_n "(cached) " >&6
14701: else
14702: ac_check_lib_save_LIBS=$LIBS
14703: LIBS="-lpam $LIBS"
14704: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705: /* end confdefs.h. */
14706:
14707: /* Override any GCC internal prototype to avoid an error.
14708: Use char because int might match the return type of a GCC
14709: builtin and then its argument prototype would still apply. */
14710: #ifdef __cplusplus
14711: extern "C"
14712: #endif
14713: char $pam_conv_func ();
14714: int
14715: main ()
14716: {
14717: return $pam_conv_func ();
14718: ;
14719: return 0;
14720: }
14721: _ACEOF
14722: if ac_fn_c_try_link "$LINENO"; then :
14723: eval "$as_ac_Lib=yes"
14724: else
14725: eval "$as_ac_Lib=no"
14726: fi
14727: rm -f core conftest.err conftest.$ac_objext \
14728: conftest$ac_exeext conftest.$ac_ext
14729: LIBS=$ac_check_lib_save_LIBS
14730: fi
14731: eval ac_res=\$$as_ac_Lib
14732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14733: $as_echo "$ac_res" >&6; }
14734: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14735:
14736: $as_echo "#define USE_PAM /**/" >>confdefs.h
14737:
14738: LIBPAM="-lpam -ldl"
14739: else
14740:
14741: $as_echo "#define USE_PAM /**/" >>confdefs.h
14742:
14743: LIBPAM="-lpam -ldl -lpam_misc"
14744:
14745: fi
14746:
14747:
14748: else
14749: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pam support will not be built ***" >&5
14750: $as_echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
14751: fi
14752:
14753:
14754:
14755: fi
14756:
14757: fi
14758:
14759:
14760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14761: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14762: if ${ac_cv_c_bigendian+:} false; then :
14763: $as_echo_n "(cached) " >&6
14764: else
14765: ac_cv_c_bigendian=unknown
14766: # See if we're dealing with a universal compiler.
14767: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768: /* end confdefs.h. */
14769: #ifndef __APPLE_CC__
14770: not a universal capable compiler
14771: #endif
14772: typedef int dummy;
14773:
14774: _ACEOF
14775: if ac_fn_c_try_compile "$LINENO"; then :
14776:
14777: # Check for potential -arch flags. It is not universal unless
14778: # there are at least two -arch flags with different values.
14779: ac_arch=
14780: ac_prev=
14781: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14782: if test -n "$ac_prev"; then
14783: case $ac_word in
14784: i?86 | x86_64 | ppc | ppc64)
14785: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14786: ac_arch=$ac_word
14787: else
14788: ac_cv_c_bigendian=universal
14789: break
14790: fi
14791: ;;
14792: esac
14793: ac_prev=
14794: elif test "x$ac_word" = "x-arch"; then
14795: ac_prev=arch
14796: fi
14797: done
14798: fi
14799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800: if test $ac_cv_c_bigendian = unknown; then
14801: # See if sys/param.h defines the BYTE_ORDER macro.
14802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803: /* end confdefs.h. */
14804: #include <sys/types.h>
14805: #include <sys/param.h>
14806:
14807: int
14808: main ()
14809: {
14810: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14811: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14812: && LITTLE_ENDIAN)
14813: bogus endian macros
14814: #endif
14815:
14816: ;
14817: return 0;
14818: }
14819: _ACEOF
14820: if ac_fn_c_try_compile "$LINENO"; then :
14821: # It does; now see whether it defined to BIG_ENDIAN or not.
14822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823: /* end confdefs.h. */
14824: #include <sys/types.h>
14825: #include <sys/param.h>
14826:
14827: int
14828: main ()
14829: {
14830: #if BYTE_ORDER != BIG_ENDIAN
14831: not big endian
14832: #endif
14833:
14834: ;
14835: return 0;
14836: }
14837: _ACEOF
14838: if ac_fn_c_try_compile "$LINENO"; then :
14839: ac_cv_c_bigendian=yes
14840: else
14841: ac_cv_c_bigendian=no
14842: fi
14843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844: fi
14845: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846: fi
14847: if test $ac_cv_c_bigendian = unknown; then
14848: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850: /* end confdefs.h. */
14851: #include <limits.h>
14852:
14853: int
14854: main ()
14855: {
14856: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14857: bogus endian macros
14858: #endif
14859:
14860: ;
14861: return 0;
14862: }
14863: _ACEOF
14864: if ac_fn_c_try_compile "$LINENO"; then :
14865: # It does; now see whether it defined to _BIG_ENDIAN or not.
14866: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867: /* end confdefs.h. */
14868: #include <limits.h>
14869:
14870: int
14871: main ()
14872: {
14873: #ifndef _BIG_ENDIAN
14874: not big endian
14875: #endif
14876:
14877: ;
14878: return 0;
14879: }
14880: _ACEOF
14881: if ac_fn_c_try_compile "$LINENO"; then :
14882: ac_cv_c_bigendian=yes
14883: else
14884: ac_cv_c_bigendian=no
14885: fi
14886: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887: fi
14888: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889: fi
14890: if test $ac_cv_c_bigendian = unknown; then
14891: # Compile a test program.
14892: if test "$cross_compiling" = yes; then :
14893: # Try to guess by grepping values from an object file.
14894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895: /* end confdefs.h. */
14896: short int ascii_mm[] =
14897: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14898: short int ascii_ii[] =
14899: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14900: int use_ascii (int i) {
14901: return ascii_mm[i] + ascii_ii[i];
14902: }
14903: short int ebcdic_ii[] =
14904: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14905: short int ebcdic_mm[] =
14906: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14907: int use_ebcdic (int i) {
14908: return ebcdic_mm[i] + ebcdic_ii[i];
14909: }
14910: extern int foo;
14911:
14912: int
14913: main ()
14914: {
14915: return use_ascii (foo) == use_ebcdic (foo);
14916: ;
14917: return 0;
14918: }
14919: _ACEOF
14920: if ac_fn_c_try_compile "$LINENO"; then :
14921: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14922: ac_cv_c_bigendian=yes
14923: fi
14924: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14925: if test "$ac_cv_c_bigendian" = unknown; then
14926: ac_cv_c_bigendian=no
14927: else
14928: # finding both strings is unlikely to happen, but who knows?
14929: ac_cv_c_bigendian=unknown
14930: fi
14931: fi
14932: fi
14933: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14934: else
14935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936: /* end confdefs.h. */
14937: $ac_includes_default
14938: int
14939: main ()
14940: {
14941:
14942: /* Are we little or big endian? From Harbison&Steele. */
14943: union
14944: {
14945: long int l;
14946: char c[sizeof (long int)];
14947: } u;
14948: u.l = 1;
14949: return u.c[sizeof (long int) - 1] == 1;
14950:
14951: ;
14952: return 0;
14953: }
14954: _ACEOF
14955: if ac_fn_c_try_run "$LINENO"; then :
14956: ac_cv_c_bigendian=no
14957: else
14958: ac_cv_c_bigendian=yes
14959: fi
14960: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961: conftest.$ac_objext conftest.beam conftest.$ac_ext
14962: fi
14963:
14964: fi
14965: fi
14966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14967: $as_echo "$ac_cv_c_bigendian" >&6; }
14968: case $ac_cv_c_bigendian in #(
14969: yes)
14970: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14971: ;; #(
14972: no)
14973: ;; #(
14974: universal)
14975:
14976: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14977:
14978: ;; #(
14979: *)
14980: as_fn_error $? "unknown endianness
14981: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14982: esac
14983:
14984:
14985:
14986: for ac_header in unistd.h
14987: do :
14988: ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14989: if test "x$ac_cv_header_unistd_h" = xyes; then :
14990: cat >>confdefs.h <<_ACEOF
14991: #define HAVE_UNISTD_H 1
14992: _ACEOF
14993:
14994: fi
14995:
14996: done
14997:
14998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14999: $as_echo_n "checking for working chown... " >&6; }
15000: if ${ac_cv_func_chown_works+:} false; then :
15001: $as_echo_n "(cached) " >&6
15002: else
15003: if test "$cross_compiling" = yes; then :
15004: ac_cv_func_chown_works=no
15005: else
15006: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007: /* end confdefs.h. */
15008: $ac_includes_default
15009: #include <fcntl.h>
15010:
15011: int
15012: main ()
15013: {
15014: char *f = "conftest.chown";
15015: struct stat before, after;
15016:
15017: if (creat (f, 0600) < 0)
15018: return 1;
15019: if (stat (f, &before) < 0)
15020: return 1;
15021: if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15022: return 1;
15023: if (stat (f, &after) < 0)
15024: return 1;
15025: return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15026:
15027: ;
15028: return 0;
15029: }
15030: _ACEOF
15031: if ac_fn_c_try_run "$LINENO"; then :
15032: ac_cv_func_chown_works=yes
15033: else
15034: ac_cv_func_chown_works=no
15035: fi
15036: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15037: conftest.$ac_objext conftest.beam conftest.$ac_ext
15038: fi
15039:
15040: rm -f conftest.chown
15041:
15042: fi
15043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15044: $as_echo "$ac_cv_func_chown_works" >&6; }
15045: if test $ac_cv_func_chown_works = yes; then
15046:
15047: $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15048:
15049: fi
15050:
15051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
15052: $as_echo_n "checking for working POSIX fnmatch... " >&6; }
15053: if ${ac_cv_func_fnmatch_works+:} false; then :
15054: $as_echo_n "(cached) " >&6
15055: else
15056: # Some versions of Solaris, SCO, and the GNU C Library
15057: # have a broken or incompatible fnmatch.
15058: # So we run a test program. If we are cross-compiling, take no chance.
15059: # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
15060: if test "$cross_compiling" = yes; then :
15061: ac_cv_func_fnmatch_works=cross
15062: else
15063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064: /* end confdefs.h. */
15065: #include <fnmatch.h>
15066: # define y(a, b, c) (fnmatch (a, b, c) == 0)
15067: # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
15068:
15069: int
15070: main ()
15071: {
15072: return
15073: (!(y ("a*", "abc", 0)
15074: && n ("d*/*1", "d/s/1", FNM_PATHNAME)
15075: && y ("a\\\\bc", "abc", 0)
15076: && n ("a\\\\bc", "abc", FNM_NOESCAPE)
15077: && y ("*x", ".x", 0)
15078: && n ("*x", ".x", FNM_PERIOD)
15079: && 1));
15080: ;
15081: return 0;
15082: }
15083: _ACEOF
15084: if ac_fn_c_try_run "$LINENO"; then :
15085: ac_cv_func_fnmatch_works=yes
15086: else
15087: ac_cv_func_fnmatch_works=no
15088: fi
15089: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15090: conftest.$ac_objext conftest.beam conftest.$ac_ext
15091: fi
15092:
15093: fi
15094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
15095: $as_echo "$ac_cv_func_fnmatch_works" >&6; }
15096: if test $ac_cv_func_fnmatch_works = yes; then :
15097:
15098: $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15099:
15100: fi
15101:
15102:
15103: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15104: if test "x$ac_cv_type_pid_t" = xyes; then :
15105:
15106: else
15107:
15108: cat >>confdefs.h <<_ACEOF
15109: #define pid_t int
15110: _ACEOF
15111:
15112: fi
15113:
15114: for ac_header in vfork.h
15115: do :
15116: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15117: if test "x$ac_cv_header_vfork_h" = xyes; then :
15118: cat >>confdefs.h <<_ACEOF
15119: #define HAVE_VFORK_H 1
15120: _ACEOF
15121:
15122: fi
15123:
15124: done
15125:
15126: for ac_func in fork vfork
15127: do :
15128: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15129: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15130: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15131: cat >>confdefs.h <<_ACEOF
15132: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15133: _ACEOF
15134:
15135: fi
15136: done
15137:
15138: if test "x$ac_cv_func_fork" = xyes; then
15139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15140: $as_echo_n "checking for working fork... " >&6; }
15141: if ${ac_cv_func_fork_works+:} false; then :
15142: $as_echo_n "(cached) " >&6
15143: else
15144: if test "$cross_compiling" = yes; then :
15145: ac_cv_func_fork_works=cross
15146: else
15147: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148: /* end confdefs.h. */
15149: $ac_includes_default
15150: int
15151: main ()
15152: {
15153:
15154: /* By Ruediger Kuhlmann. */
15155: return fork () < 0;
15156:
15157: ;
15158: return 0;
15159: }
15160: _ACEOF
15161: if ac_fn_c_try_run "$LINENO"; then :
15162: ac_cv_func_fork_works=yes
15163: else
15164: ac_cv_func_fork_works=no
15165: fi
15166: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15167: conftest.$ac_objext conftest.beam conftest.$ac_ext
15168: fi
15169:
15170: fi
15171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15172: $as_echo "$ac_cv_func_fork_works" >&6; }
15173:
15174: else
15175: ac_cv_func_fork_works=$ac_cv_func_fork
15176: fi
15177: if test "x$ac_cv_func_fork_works" = xcross; then
15178: case $host in
15179: *-*-amigaos* | *-*-msdosdjgpp*)
15180: # Override, as these systems have only a dummy fork() stub
15181: ac_cv_func_fork_works=no
15182: ;;
15183: *)
15184: ac_cv_func_fork_works=yes
15185: ;;
15186: esac
15187: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15188: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15189: fi
15190: ac_cv_func_vfork_works=$ac_cv_func_vfork
15191: if test "x$ac_cv_func_vfork" = xyes; then
15192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15193: $as_echo_n "checking for working vfork... " >&6; }
15194: if ${ac_cv_func_vfork_works+:} false; then :
15195: $as_echo_n "(cached) " >&6
15196: else
15197: if test "$cross_compiling" = yes; then :
15198: ac_cv_func_vfork_works=cross
15199: else
15200: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201: /* end confdefs.h. */
15202: /* Thanks to Paul Eggert for this test. */
15203: $ac_includes_default
15204: #include <sys/wait.h>
15205: #ifdef HAVE_VFORK_H
15206: # include <vfork.h>
15207: #endif
15208: /* On some sparc systems, changes by the child to local and incoming
15209: argument registers are propagated back to the parent. The compiler
15210: is told about this with #include <vfork.h>, but some compilers
15211: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15212: static variable whose address is put into a register that is
15213: clobbered by the vfork. */
15214: static void
15215: #ifdef __cplusplus
15216: sparc_address_test (int arg)
15217: # else
15218: sparc_address_test (arg) int arg;
15219: #endif
15220: {
15221: static pid_t child;
15222: if (!child) {
15223: child = vfork ();
15224: if (child < 0) {
15225: perror ("vfork");
15226: _exit(2);
15227: }
15228: if (!child) {
15229: arg = getpid();
15230: write(-1, "", 0);
15231: _exit (arg);
15232: }
15233: }
15234: }
15235:
15236: int
15237: main ()
15238: {
15239: pid_t parent = getpid ();
15240: pid_t child;
15241:
15242: sparc_address_test (0);
15243:
15244: child = vfork ();
15245:
15246: if (child == 0) {
15247: /* Here is another test for sparc vfork register problems. This
15248: test uses lots of local variables, at least as many local
15249: variables as main has allocated so far including compiler
15250: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15251: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15252: reuse the register of parent for one of the local variables,
15253: since it will think that parent can't possibly be used any more
15254: in this routine. Assigning to the local variable will thus
15255: munge parent in the parent process. */
15256: pid_t
15257: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15258: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15259: /* Convince the compiler that p..p7 are live; otherwise, it might
15260: use the same hardware register for all 8 local variables. */
15261: if (p != p1 || p != p2 || p != p3 || p != p4
15262: || p != p5 || p != p6 || p != p7)
15263: _exit(1);
15264:
15265: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15266: from child file descriptors. If the child closes a descriptor
15267: before it execs or exits, this munges the parent's descriptor
15268: as well. Test for this by closing stdout in the child. */
15269: _exit(close(fileno(stdout)) != 0);
15270: } else {
15271: int status;
15272: struct stat st;
15273:
15274: while (wait(&status) != child)
15275: ;
15276: return (
15277: /* Was there some problem with vforking? */
15278: child < 0
15279:
15280: /* Did the child fail? (This shouldn't happen.) */
15281: || status
15282:
15283: /* Did the vfork/compiler bug occur? */
15284: || parent != getpid()
15285:
15286: /* Did the file descriptor bug occur? */
15287: || fstat(fileno(stdout), &st) != 0
15288: );
15289: }
15290: }
15291: _ACEOF
15292: if ac_fn_c_try_run "$LINENO"; then :
15293: ac_cv_func_vfork_works=yes
15294: else
15295: ac_cv_func_vfork_works=no
15296: fi
15297: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15298: conftest.$ac_objext conftest.beam conftest.$ac_ext
15299: fi
15300:
15301: fi
15302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15303: $as_echo "$ac_cv_func_vfork_works" >&6; }
15304:
15305: fi;
15306: if test "x$ac_cv_func_fork_works" = xcross; then
15307: ac_cv_func_vfork_works=$ac_cv_func_vfork
15308: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15309: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15310: fi
15311:
15312: if test "x$ac_cv_func_vfork_works" = xyes; then
15313:
15314: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15315:
15316: else
15317:
15318: $as_echo "#define vfork fork" >>confdefs.h
15319:
15320: fi
15321: if test "x$ac_cv_func_fork_works" = xyes; then
15322:
15323: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15324:
15325: fi
15326:
15327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15328: $as_echo_n "checking for working memcmp... " >&6; }
15329: if ${ac_cv_func_memcmp_working+:} false; then :
15330: $as_echo_n "(cached) " >&6
15331: else
15332: if test "$cross_compiling" = yes; then :
15333: ac_cv_func_memcmp_working=no
15334: else
15335: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336: /* end confdefs.h. */
15337: $ac_includes_default
15338: int
15339: main ()
15340: {
15341:
15342: /* Some versions of memcmp are not 8-bit clean. */
15343: char c0 = '\100', c1 = '\200', c2 = '\201';
15344: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15345: return 1;
15346:
15347: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15348: or more and with at least one buffer not starting on a 4-byte boundary.
15349: William Lewis provided this test program. */
15350: {
15351: char foo[21];
15352: char bar[21];
15353: int i;
15354: for (i = 0; i < 4; i++)
15355: {
15356: char *a = foo + i;
15357: char *b = bar + i;
15358: strcpy (a, "--------01111111");
15359: strcpy (b, "--------10000000");
15360: if (memcmp (a, b, 16) >= 0)
15361: return 1;
15362: }
15363: return 0;
15364: }
15365:
15366: ;
15367: return 0;
15368: }
15369: _ACEOF
15370: if ac_fn_c_try_run "$LINENO"; then :
15371: ac_cv_func_memcmp_working=yes
15372: else
15373: ac_cv_func_memcmp_working=no
15374: fi
15375: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15376: conftest.$ac_objext conftest.beam conftest.$ac_ext
15377: fi
15378:
15379: fi
15380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15381: $as_echo "$ac_cv_func_memcmp_working" >&6; }
15382: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15383: *" memcmp.$ac_objext "* ) ;;
15384: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15385: ;;
15386: esac
15387:
15388:
15389:
15390:
15391:
15392: for ac_header in $ac_header_list
15393: do :
15394: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15395: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15396: "
15397: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15398: cat >>confdefs.h <<_ACEOF
15399: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15400: _ACEOF
15401:
15402: fi
15403:
15404: done
15405:
15406:
15407:
15408:
15409:
15410:
15411:
15412:
15413: for ac_func in $ac_func_list
15414: do :
15415: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15416: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15417: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15418: cat >>confdefs.h <<_ACEOF
15419: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15420: _ACEOF
15421:
15422: fi
15423: done
15424:
15425:
15426:
15427:
15428:
15429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15430: $as_echo_n "checking for working mktime... " >&6; }
15431: if ${ac_cv_func_working_mktime+:} false; then :
15432: $as_echo_n "(cached) " >&6
15433: else
15434: if test "$cross_compiling" = yes; then :
15435: ac_cv_func_working_mktime=no
15436: else
15437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438: /* end confdefs.h. */
15439: /* Test program from Paul Eggert and Tony Leneis. */
15440: #ifdef TIME_WITH_SYS_TIME
15441: # include <sys/time.h>
15442: # include <time.h>
15443: #else
15444: # ifdef HAVE_SYS_TIME_H
15445: # include <sys/time.h>
15446: # else
15447: # include <time.h>
15448: # endif
15449: #endif
15450:
15451: #include <limits.h>
15452: #include <stdlib.h>
15453:
15454: #ifdef HAVE_UNISTD_H
15455: # include <unistd.h>
15456: #endif
15457:
15458: #ifndef HAVE_ALARM
15459: # define alarm(X) /* empty */
15460: #endif
15461:
15462: /* Work around redefinition to rpl_putenv by other config tests. */
15463: #undef putenv
15464:
15465: static time_t time_t_max;
15466: static time_t time_t_min;
15467:
15468: /* Values we'll use to set the TZ environment variable. */
15469: static const char *tz_strings[] = {
15470: (const char *) 0, "TZ=GMT0", "TZ=JST-9",
15471: "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15472: };
15473: #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15474:
15475: /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15476: Based on a problem report from Andreas Jaeger. */
15477: static int
15478: spring_forward_gap ()
15479: {
15480: /* glibc (up to about 1998-10-07) failed this test. */
15481: struct tm tm;
15482:
15483: /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15484: instead of "TZ=America/Vancouver" in order to detect the bug even
15485: on systems that don't support the Olson extension, or don't have the
15486: full zoneinfo tables installed. */
15487: putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15488:
15489: tm.tm_year = 98;
15490: tm.tm_mon = 3;
15491: tm.tm_mday = 5;
15492: tm.tm_hour = 2;
15493: tm.tm_min = 0;
15494: tm.tm_sec = 0;
15495: tm.tm_isdst = -1;
15496: return mktime (&tm) != (time_t) -1;
15497: }
15498:
15499: static int
15500: mktime_test1 (time_t now)
15501: {
15502: struct tm *lt;
15503: return ! (lt = localtime (&now)) || mktime (lt) == now;
15504: }
15505:
15506: static int
15507: mktime_test (time_t now)
15508: {
15509: return (mktime_test1 (now)
15510: && mktime_test1 ((time_t) (time_t_max - now))
15511: && mktime_test1 ((time_t) (time_t_min + now)));
15512: }
15513:
15514: static int
15515: irix_6_4_bug ()
15516: {
15517: /* Based on code from Ariel Faigon. */
15518: struct tm tm;
15519: tm.tm_year = 96;
15520: tm.tm_mon = 3;
15521: tm.tm_mday = 0;
15522: tm.tm_hour = 0;
15523: tm.tm_min = 0;
15524: tm.tm_sec = 0;
15525: tm.tm_isdst = -1;
15526: mktime (&tm);
15527: return tm.tm_mon == 2 && tm.tm_mday == 31;
15528: }
15529:
15530: static int
15531: bigtime_test (int j)
15532: {
15533: struct tm tm;
15534: time_t now;
15535: tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15536: now = mktime (&tm);
15537: if (now != (time_t) -1)
15538: {
15539: struct tm *lt = localtime (&now);
15540: if (! (lt
15541: && lt->tm_year == tm.tm_year
15542: && lt->tm_mon == tm.tm_mon
15543: && lt->tm_mday == tm.tm_mday
15544: && lt->tm_hour == tm.tm_hour
15545: && lt->tm_min == tm.tm_min
15546: && lt->tm_sec == tm.tm_sec
15547: && lt->tm_yday == tm.tm_yday
15548: && lt->tm_wday == tm.tm_wday
15549: && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15550: == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15551: return 0;
15552: }
15553: return 1;
15554: }
15555:
15556: static int
15557: year_2050_test ()
15558: {
15559: /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15560: ignoring leap seconds. */
15561: unsigned long int answer = 2527315200UL;
15562:
15563: struct tm tm;
15564: time_t t;
15565: tm.tm_year = 2050 - 1900;
15566: tm.tm_mon = 2 - 1;
15567: tm.tm_mday = 1;
15568: tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15569: tm.tm_isdst = -1;
15570:
15571: /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15572: instead of "TZ=America/Vancouver" in order to detect the bug even
15573: on systems that don't support the Olson extension, or don't have the
15574: full zoneinfo tables installed. */
15575: putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15576:
15577: t = mktime (&tm);
15578:
15579: /* Check that the result is either a failure, or close enough
15580: to the correct answer that we can assume the discrepancy is
15581: due to leap seconds. */
15582: return (t == (time_t) -1
15583: || (0 < t && answer - 120 <= t && t <= answer + 120));
15584: }
15585:
15586: int
15587: main ()
15588: {
15589: time_t t, delta;
15590: int i, j;
15591:
15592: /* This test makes some buggy mktime implementations loop.
15593: Give up after 60 seconds; a mktime slower than that
15594: isn't worth using anyway. */
15595: alarm (60);
15596:
15597: for (;;)
15598: {
15599: t = (time_t_max << 1) + 1;
15600: if (t <= time_t_max)
15601: break;
15602: time_t_max = t;
15603: }
15604: time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15605:
15606: delta = time_t_max / 997; /* a suitable prime number */
15607: for (i = 0; i < N_STRINGS; i++)
15608: {
15609: if (tz_strings[i])
15610: putenv ((char*) tz_strings[i]);
15611:
15612: for (t = 0; t <= time_t_max - delta; t += delta)
15613: if (! mktime_test (t))
15614: return 1;
15615: if (! (mktime_test ((time_t) 1)
15616: && mktime_test ((time_t) (60 * 60))
15617: && mktime_test ((time_t) (60 * 60 * 24))))
15618: return 1;
15619:
15620: for (j = 1; ; j <<= 1)
15621: if (! bigtime_test (j))
15622: return 1;
15623: else if (INT_MAX / 2 < j)
15624: break;
15625: if (! bigtime_test (INT_MAX))
15626: return 1;
15627: }
15628: return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15629: }
15630: _ACEOF
15631: if ac_fn_c_try_run "$LINENO"; then :
15632: ac_cv_func_working_mktime=yes
15633: else
15634: ac_cv_func_working_mktime=no
15635: fi
15636: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15637: conftest.$ac_objext conftest.beam conftest.$ac_ext
15638: fi
15639:
15640: fi
15641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15642: $as_echo "$ac_cv_func_working_mktime" >&6; }
15643: if test $ac_cv_func_working_mktime = no; then
15644: case " $LIBOBJS " in
15645: *" mktime.$ac_objext "* ) ;;
15646: *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15647: ;;
15648: esac
15649:
15650: fi
15651:
15652: for ac_func in strftime
15653: do :
15654: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15655: if test "x$ac_cv_func_strftime" = xyes; then :
15656: cat >>confdefs.h <<_ACEOF
15657: #define HAVE_STRFTIME 1
15658: _ACEOF
15659:
15660: else
15661: # strftime is in -lintl on SCO UNIX.
15662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15663: $as_echo_n "checking for strftime in -lintl... " >&6; }
15664: if ${ac_cv_lib_intl_strftime+:} false; then :
15665: $as_echo_n "(cached) " >&6
15666: else
15667: ac_check_lib_save_LIBS=$LIBS
15668: LIBS="-lintl $LIBS"
15669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670: /* end confdefs.h. */
15671:
15672: /* Override any GCC internal prototype to avoid an error.
15673: Use char because int might match the return type of a GCC
15674: builtin and then its argument prototype would still apply. */
15675: #ifdef __cplusplus
15676: extern "C"
15677: #endif
15678: char strftime ();
15679: int
15680: main ()
15681: {
15682: return strftime ();
15683: ;
15684: return 0;
15685: }
15686: _ACEOF
15687: if ac_fn_c_try_link "$LINENO"; then :
15688: ac_cv_lib_intl_strftime=yes
15689: else
15690: ac_cv_lib_intl_strftime=no
15691: fi
15692: rm -f core conftest.err conftest.$ac_objext \
15693: conftest$ac_exeext conftest.$ac_ext
15694: LIBS=$ac_check_lib_save_LIBS
15695: fi
15696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15697: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15698: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15699: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15700:
15701: LIBS="-lintl $LIBS"
15702: fi
15703:
15704: fi
15705: done
15706:
15707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15708: $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15709: if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
15710: $as_echo_n "(cached) " >&6
15711: else
15712: rm -f conftest.sym conftest.file
15713: echo >conftest.file
15714: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15715: if test "$cross_compiling" = yes; then :
15716: ac_cv_func_lstat_dereferences_slashed_symlink=no
15717: else
15718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719: /* end confdefs.h. */
15720: $ac_includes_default
15721: int
15722: main ()
15723: {
15724: struct stat sbuf;
15725: /* Linux will dereference the symlink and fail, as required by POSIX.
15726: That is better in the sense that it means we will not
15727: have to compile and use the lstat wrapper. */
15728: return lstat ("conftest.sym/", &sbuf) == 0;
15729: ;
15730: return 0;
15731: }
15732: _ACEOF
15733: if ac_fn_c_try_run "$LINENO"; then :
15734: ac_cv_func_lstat_dereferences_slashed_symlink=yes
15735: else
15736: ac_cv_func_lstat_dereferences_slashed_symlink=no
15737: fi
15738: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15739: conftest.$ac_objext conftest.beam conftest.$ac_ext
15740: fi
15741:
15742: else
15743: # If the `ln -s' command failed, then we probably don't even
15744: # have an lstat function.
15745: ac_cv_func_lstat_dereferences_slashed_symlink=no
15746: fi
15747: rm -f conftest.sym conftest.file
15748:
15749: fi
15750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15751: $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15752:
15753: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15754:
15755: cat >>confdefs.h <<_ACEOF
15756: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15757: _ACEOF
15758:
15759:
15760: if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
15761: case " $LIBOBJS " in
15762: *" lstat.$ac_objext "* ) ;;
15763: *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15764: ;;
15765: esac
15766:
15767: fi
15768:
15769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
15770: $as_echo_n "checking whether stat accepts an empty string... " >&6; }
15771: if ${ac_cv_func_stat_empty_string_bug+:} false; then :
15772: $as_echo_n "(cached) " >&6
15773: else
15774: if test "$cross_compiling" = yes; then :
15775: ac_cv_func_stat_empty_string_bug=yes
15776: else
15777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778: /* end confdefs.h. */
15779: $ac_includes_default
15780: int
15781: main ()
15782: {
15783: struct stat sbuf;
15784: return stat ("", &sbuf) == 0;
15785: ;
15786: return 0;
15787: }
15788: _ACEOF
15789: if ac_fn_c_try_run "$LINENO"; then :
15790: ac_cv_func_stat_empty_string_bug=no
15791: else
15792: ac_cv_func_stat_empty_string_bug=yes
15793: fi
15794: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15795: conftest.$ac_objext conftest.beam conftest.$ac_ext
15796: fi
15797:
15798: fi
15799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
15800: $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
15801: if test $ac_cv_func_stat_empty_string_bug = yes; then
15802: case " $LIBOBJS " in
15803: *" stat.$ac_objext "* ) ;;
15804: *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15805: ;;
15806: esac
15807:
15808:
15809: cat >>confdefs.h <<_ACEOF
15810: #define HAVE_STAT_EMPTY_STRING_BUG 1
15811: _ACEOF
15812:
15813: fi
15814:
15815: for ac_header in sys/select.h sys/socket.h
15816: do :
15817: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15819: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15820: cat >>confdefs.h <<_ACEOF
15821: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15822: _ACEOF
15823:
15824: fi
15825:
15826: done
15827:
15828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
15829: $as_echo_n "checking types of arguments for select... " >&6; }
15830: if ${ac_cv_func_select_args+:} false; then :
15831: $as_echo_n "(cached) " >&6
15832: else
15833: for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15834: for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
15835: for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837: /* end confdefs.h. */
15838: $ac_includes_default
15839: #ifdef HAVE_SYS_SELECT_H
15840: # include <sys/select.h>
15841: #endif
15842: #ifdef HAVE_SYS_SOCKET_H
15843: # include <sys/socket.h>
15844: #endif
15845:
15846: int
15847: main ()
15848: {
15849: extern int select ($ac_arg1,
15850: $ac_arg234, $ac_arg234, $ac_arg234,
15851: $ac_arg5);
15852: ;
15853: return 0;
15854: }
15855: _ACEOF
15856: if ac_fn_c_try_compile "$LINENO"; then :
15857: ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15858: fi
15859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860: done
15861: done
15862: done
15863: # Provide a safe default value.
15864: : "${ac_cv_func_select_args=int,int *,struct timeval *}"
15865:
15866: fi
15867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
15868: $as_echo "$ac_cv_func_select_args" >&6; }
15869: ac_save_IFS=$IFS; IFS=','
15870: set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15871: IFS=$ac_save_IFS
15872: shift
15873:
15874: cat >>confdefs.h <<_ACEOF
15875: #define SELECT_TYPE_ARG1 $1
15876: _ACEOF
15877:
15878:
15879: cat >>confdefs.h <<_ACEOF
15880: #define SELECT_TYPE_ARG234 ($2)
15881: _ACEOF
15882:
15883:
15884: cat >>confdefs.h <<_ACEOF
15885: #define SELECT_TYPE_ARG5 ($3)
15886: _ACEOF
15887:
15888: rm -f conftest*
15889:
15890: for ac_func in strftime
15891: do :
15892: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15893: if test "x$ac_cv_func_strftime" = xyes; then :
15894: cat >>confdefs.h <<_ACEOF
15895: #define HAVE_STRFTIME 1
15896: _ACEOF
15897:
15898: else
15899: # strftime is in -lintl on SCO UNIX.
15900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15901: $as_echo_n "checking for strftime in -lintl... " >&6; }
15902: if ${ac_cv_lib_intl_strftime+:} false; then :
15903: $as_echo_n "(cached) " >&6
15904: else
15905: ac_check_lib_save_LIBS=$LIBS
15906: LIBS="-lintl $LIBS"
15907: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908: /* end confdefs.h. */
15909:
15910: /* Override any GCC internal prototype to avoid an error.
15911: Use char because int might match the return type of a GCC
15912: builtin and then its argument prototype would still apply. */
15913: #ifdef __cplusplus
15914: extern "C"
15915: #endif
15916: char strftime ();
15917: int
15918: main ()
15919: {
15920: return strftime ();
15921: ;
15922: return 0;
15923: }
15924: _ACEOF
15925: if ac_fn_c_try_link "$LINENO"; then :
15926: ac_cv_lib_intl_strftime=yes
15927: else
15928: ac_cv_lib_intl_strftime=no
15929: fi
15930: rm -f core conftest.err conftest.$ac_objext \
15931: conftest$ac_exeext conftest.$ac_ext
15932: LIBS=$ac_check_lib_save_LIBS
15933: fi
15934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15935: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15936: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15937: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15938:
15939: LIBS="-lintl $LIBS"
15940: fi
15941:
15942: fi
15943: done
15944:
15945: for ac_func in vprintf
15946: do :
15947: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15948: if test "x$ac_cv_func_vprintf" = xyes; then :
15949: cat >>confdefs.h <<_ACEOF
15950: #define HAVE_VPRINTF 1
15951: _ACEOF
15952:
15953: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15954: if test "x$ac_cv_func__doprnt" = xyes; then :
15955:
15956: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15957:
15958: fi
15959:
15960: fi
15961: done
15962:
15963:
15964:
15965: TMPLIBS="$LIBS"
15966: ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
15967: if test "x$ac_cv_header_math_h" = xyes; then :
15968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15969: $as_echo_n "checking for pow in -lm... " >&6; }
15970: if ${ac_cv_lib_m_pow+:} false; then :
15971: $as_echo_n "(cached) " >&6
15972: else
15973: ac_check_lib_save_LIBS=$LIBS
15974: LIBS="-lm $LIBS"
15975: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976: /* end confdefs.h. */
15977:
15978: /* Override any GCC internal prototype to avoid an error.
15979: Use char because int might match the return type of a GCC
15980: builtin and then its argument prototype would still apply. */
15981: #ifdef __cplusplus
15982: extern "C"
15983: #endif
15984: char pow ();
15985: int
15986: main ()
15987: {
15988: return pow ();
15989: ;
15990: return 0;
15991: }
15992: _ACEOF
15993: if ac_fn_c_try_link "$LINENO"; then :
15994: ac_cv_lib_m_pow=yes
15995: else
15996: ac_cv_lib_m_pow=no
15997: fi
15998: rm -f core conftest.err conftest.$ac_objext \
15999: conftest$ac_exeext conftest.$ac_ext
16000: LIBS=$ac_check_lib_save_LIBS
16001: fi
16002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16003: $as_echo "$ac_cv_lib_m_pow" >&6; }
16004: if test "x$ac_cv_lib_m_pow" = xyes; then :
16005: LIBM="-lm"
16006: LIBS="$LIBS $LIBM"
16007:
16008: $as_echo "#define HAVE_LIBM /**/" >>confdefs.h
16009:
16010: for ac_func in pow
16011: do :
16012: ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16013: if test "x$ac_cv_func_pow" = xyes; then :
16014: cat >>confdefs.h <<_ACEOF
16015: #define HAVE_POW 1
16016: _ACEOF
16017:
16018: else
16019: LIBM=""
16020: fi
16021: done
16022:
16023:
16024: fi
16025:
16026:
16027: fi
16028:
16029:
16030: if test x"$LIBM" = x ; then
16031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find working pow function - bgpd may not link" >&5
16032: $as_echo "$as_me: WARNING: Unable to find working pow function - bgpd may not link" >&2;}
16033: fi
16034: LIBS="$TMPLIBS"
16035:
16036:
16037: for ac_func in dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \
16038: inet_ntoa inet_aton strnlen \
16039: memchr memmove memset select socket \
16040: strcasecmp strchr strcspn strdup strerror \
16041: strncasecmp strndup strrchr strspn strstr \
16042: strtol strtoul strlcat strlcpy \
16043: daemon snprintf vsnprintf \
16044: if_nametoindex if_indextoname getifaddrs \
16045: uname fcntl
16046: do :
16047: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16048: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16049: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16050: cat >>confdefs.h <<_ACEOF
16051: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16052: _ACEOF
16053:
16054: fi
16055: done
16056:
16057:
16058: for ac_func in setproctitle
16059: do :
16060: ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
16061: if test "x$ac_cv_func_setproctitle" = xyes; then :
16062: cat >>confdefs.h <<_ACEOF
16063: #define HAVE_SETPROCTITLE 1
16064: _ACEOF
16065:
16066: else
16067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
16068: $as_echo_n "checking for setproctitle in -lutil... " >&6; }
16069: if ${ac_cv_lib_util_setproctitle+:} false; then :
16070: $as_echo_n "(cached) " >&6
16071: else
16072: ac_check_lib_save_LIBS=$LIBS
16073: LIBS="-lutil $LIBS"
16074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075: /* end confdefs.h. */
16076:
16077: /* Override any GCC internal prototype to avoid an error.
16078: Use char because int might match the return type of a GCC
16079: builtin and then its argument prototype would still apply. */
16080: #ifdef __cplusplus
16081: extern "C"
16082: #endif
16083: char setproctitle ();
16084: int
16085: main ()
16086: {
16087: return setproctitle ();
16088: ;
16089: return 0;
16090: }
16091: _ACEOF
16092: if ac_fn_c_try_link "$LINENO"; then :
16093: ac_cv_lib_util_setproctitle=yes
16094: else
16095: ac_cv_lib_util_setproctitle=no
16096: fi
16097: rm -f core conftest.err conftest.$ac_objext \
16098: conftest$ac_exeext conftest.$ac_ext
16099: LIBS=$ac_check_lib_save_LIBS
16100: fi
16101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
16102: $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
16103: if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
16104: LIBS="$LIBS -lutil"
16105:
16106: $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
16107:
16108:
16109:
16110: fi
16111:
16112:
16113:
16114: fi
16115: done
16116:
16117:
16118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra between kernel interface method" >&5
16119: $as_echo_n "checking zebra between kernel interface method... " >&6; }
16120: if test x"$opsys" = x"gnu-linux"; then
16121: if test "${enable_netlink}" = "yes";then
16122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
16123: $as_echo "netlink" >&6; }
16124: RT_METHOD=rt_netlink.o
16125:
16126: $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
16127:
16128: netlink=yes
16129: elif test "${enable_netlink}" = "no"; then
16130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
16131: $as_echo "ioctl" >&6; }
16132: RT_METHOD=rt_ioctl.o
16133: netlink=no
16134: else
16135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
16136: $as_echo "netlink" >&6; }
16137: RT_METHOD=rt_netlink.o
16138:
16139: $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h
16140:
16141: netlink=yes
16142: fi
16143: elif test x"$opsys" = x"sol2-6";then
16144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
16145: $as_echo "Route socket" >&6; }
16146: KERNEL_METHOD="kernel_socket.o"
16147: RT_METHOD="rt_socket.o"
16148: elif test x"$opsys" = x"sol8";then
16149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
16150: $as_echo "Route socket" >&6; }
16151: KERNEL_METHOD="kernel_socket.o"
16152: RT_METHOD="rt_socket.o"
16153: elif test "$opsys" = "irix" ; then
16154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Route socket" >&5
16155: $as_echo "Route socket" >&6; }
16156: KERNEL_METHOD="kernel_socket.o"
16157: RT_METHOD="rt_socket.o"
16158: else
16159: if test "$cross_compiling" = yes; then :
16160: KERNEL_METHOD=kernel_socket.o
16161: RT_METHOD=rt_socket.o
16162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: socket" >&5
16163: $as_echo "socket" >&6; }
16164: else
16165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166: /* end confdefs.h. */
16167: #include <errno.h>
16168: #include <sys/types.h>
16169: #include <sys/socket.h>
16170:
16171: main ()
16172: {
16173: int ac_sock;
16174:
16175: ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
16176: if (ac_sock < 0 && errno == EINVAL)
16177: exit (1);
16178: exit (0);
16179: }
16180: _ACEOF
16181: if ac_fn_c_try_run "$LINENO"; then :
16182: KERNEL_METHOD=kernel_socket.o
16183: RT_METHOD=rt_socket.o
16184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: socket" >&5
16185: $as_echo "socket" >&6; }
16186: else
16187: RT_METHOD=rt_ioctl.o
16188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
16189: $as_echo "ioctl" >&6; }
16190: fi
16191: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16192: conftest.$ac_objext conftest.beam conftest.$ac_ext
16193: fi
16194:
16195: fi
16196:
16197:
16198:
16199:
16200:
16201: $as_echo "#define ISIS_METHOD_PFPACKET 1" >>confdefs.h
16202:
16203:
16204: $as_echo "#define ISIS_METHOD_DLPI 2" >>confdefs.h
16205:
16206:
16207: $as_echo "#define ISIS_METHOD_BPF 3" >>confdefs.h
16208:
16209: ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
16210: if test "x$ac_cv_header_net_bpf_h" = xyes; then :
16211:
16212: fi
16213:
16214:
16215: ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
16216: if test "x$ac_cv_header_sys_dlpi_h" = xyes; then :
16217:
16218: fi
16219:
16220:
16221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking zebra IS-IS I/O method" >&5
16222: $as_echo_n "checking zebra IS-IS I/O method... " >&6; }
16223: if test x"$opsys" = x"gnu-linux"; then
16224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: pfpacket" >&5
16225: $as_echo "pfpacket" >&6; }
16226: ISIS_METHOD_MACRO="ISIS_METHOD_PFPACKET"
16227: elif test x"$opsys" = x"sol2-6" -o x"$opsys" = x"sol8"; then
16228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
16229: $as_echo "DLPI" >&6; }
16230: ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
16231: else
16232: if test $ac_cv_header_net_bpf_h = no; then
16233: if test $ac_cv_header_sys_dlpi_h = no; then
16234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16235: $as_echo "none" >&6; }
16236: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** IS-IS support will not be built ***" >&5
16237: $as_echo "$as_me: WARNING: *** IS-IS support will not be built ***" >&2;}
16238: ISISD=""
16239: else
16240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLPI" >&5
16241: $as_echo "DLPI" >&6; }
16242: fi
16243: ISIS_METHOD_MACRO="ISIS_METHOD_DLPI"
16244: else
16245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: BPF" >&5
16246: $as_echo "BPF" >&6; }
16247: ISIS_METHOD_MACRO="ISIS_METHOD_BPF"
16248: fi
16249: fi
16250:
16251: cat >>confdefs.h <<_ACEOF
16252: #define ISIS_METHOD $ISIS_METHOD_MACRO
16253: _ACEOF
16254:
16255:
16256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken CMSG_FIRSTHDR" >&5
16257: $as_echo_n "checking for broken CMSG_FIRSTHDR... " >&6; }
16258: if test "$cross_compiling" = yes; then :
16259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260: $as_echo "no" >&6; }
16261: else
16262: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263: /* end confdefs.h. */
16264:
16265: #ifdef SUNOS_5
16266: #define _XPG4_2
16267: #define __EXTENSIONS__
16268: #endif
16269: #ifdef HAVE_STDLIB_H
16270: # include <stdlib.h>
16271: #endif
16272: #ifdef HAVE_SYS_TYPES_H
16273: #include <sys/types.h>
16274: #endif
16275: #ifdef HAVE_SYS_SOCKET_H
16276: #include <sys/socket.h>
16277: #endif
16278:
16279: main()
16280: {
16281: struct msghdr msg;
16282: char buf[4];
16283:
16284: msg.msg_control = buf;
16285: msg.msg_controllen = 0;
16286:
16287: if (CMSG_FIRSTHDR(&msg) != NULL)
16288: exit(0);
16289: exit (1);
16290: }
16291: _ACEOF
16292: if ac_fn_c_try_run "$LINENO"; then :
16293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - using workaround" >&5
16294: $as_echo "yes - using workaround" >&6; }
16295: $as_echo "#define HAVE_BROKEN_CMSG_FIRSTHDR /**/" >>confdefs.h
16296:
16297: else
16298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16299: $as_echo "no" >&6; }
16300: fi
16301: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16302: conftest.$ac_objext conftest.beam conftest.$ac_ext
16303: fi
16304:
16305:
16306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking route read method" >&5
16307: $as_echo_n "checking route read method... " >&6; }
16308: if ${quagga_cv_rtread_method+:} false; then :
16309: $as_echo_n "(cached) " >&6
16310: else
16311: if test "x$netlink" = xyes; then
16312: quagga_cv_rtread_method="netlink"
16313: else
16314: for quagga_cv_rtread_method in /proc/net/route /dev/ip /dev/null;
16315: do
16316: test x`ls $quagga_cv_rtread_method 2>/dev/null` = x"$quagga_cv_rtread_method" && break
16317: done
16318: case $quagga_cv_rtread_method in
16319: "/proc/net/route") quagga_cv_rtread_method="proc";;
16320: "/dev/ip")
16321: case "$host" in
16322: *-freebsd*) quagga_cv_rtread_method="sysctl";;
16323: *) quagga_cv_rtread_method="getmsg";;
16324: esac;;
16325: *)
16326: quagga_cv_rtread_method="sysctl";;
16327: esac
16328: fi
16329: fi
16330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_rtread_method" >&5
16331: $as_echo "$quagga_cv_rtread_method" >&6; }
16332: RTREAD_METHOD=rtread_${quagga_cv_rtread_method}.o
16333:
16334:
16335: IOCTL_METHOD=ioctl.o
16336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking interface looking up method" >&5
16337: $as_echo_n "checking interface looking up method... " >&6; }
16338: if test "$netlink" = yes; then
16339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: netlink" >&5
16340: $as_echo "netlink" >&6; }
16341: IF_METHOD=if_netlink.o
16342: elif test "$opsys" = "sol2-6";then
16343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GIF" >&5
16344: $as_echo "Solaris GIF" >&6; }
16345: IF_METHOD=if_ioctl.o
16346: elif test "$opsys" = "sol8";then
16347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris GLIF" >&5
16348: $as_echo "Solaris GLIF" >&6; }
16349: IF_METHOD=if_ioctl_solaris.o
16350: IOCTL_METHOD=ioctl_solaris.o
16351: elif test "$opsys" = "irix" ; then
16352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5
16353: $as_echo "IRIX" >&6; }
16354: IF_METHOD=if_ioctl.o
16355: elif test "$opsys" = "openbsd";then
16356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
16357: $as_echo "openbsd" >&6; }
16358: IF_METHOD=if_ioctl.o
16359: elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
16360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysctl" >&5
16361: $as_echo "sysctl" >&6; }
16362: IF_METHOD=if_sysctl.o
16363:
16364: $as_echo "#define HAVE_NET_RT_IFLIST /**/" >>confdefs.h
16365:
16366: else
16367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ioctl" >&5
16368: $as_echo "ioctl" >&6; }
16369: IF_METHOD=if_ioctl.o
16370: fi
16371:
16372:
16373:
16374: ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "#ifdef SUNOS_5
16375: #define _XPG4_2
16376: #define __EXTENSIONS__
16377: #endif
16378: #include <stdio.h>
16379: #if STDC_HEADERS
16380: # include <stdlib.h>
16381: # include <stddef.h>
16382: #else
16383: # if HAVE_STDLIB_H
16384: # include <stdlib.h>
16385: # endif
16386: #endif
16387: #if HAVE_SYS_TYPES_H
16388: # include <sys/types.h>
16389: #endif
16390: /* sys/conf.h depends on param.h on FBSD at least */
16391: #if HAVE_SYS_PARAM_H
16392: # include <sys/param.h>
16393: #endif
16394: /* Required for MAXSIG */
16395: #if HAVE_SIGNAL_H
16396: # include <signal.h>
16397: #endif
16398: #if HAVE_SYS_SOCKET_H
16399: # include <sys/socket.h>
16400: #endif
16401: #if HAVE_NETINET_IN_H
16402: # include <netinet/in.h>
16403: #endif
16404: #ifdef TIME_WITH_SYS_TIME
16405: # include <sys/time.h>
16406: # include <time.h>
16407: #else
16408: # ifdef HAVE_SYS_TIME_H
16409: # include <sys/time.h>
16410: # else
16411: # include <time.h>
16412: # endif
16413: #endif /* TIME_WITH_SYS_TIME */
16414:
16415: #if HAVE_NET_IF_H
16416: # include <net/if.h>
16417: #endif
16418:
16419: #if HAVE_NET_IF_VAR_H
16420: # include <net/if_var.h>
16421: #endif
16422:
16423: #if HAVE_SYS_UN_H
16424: # include <sys/un.h>
16425: #endif
16426: #if HAVE_NETINET_IN_SYSTM_H
16427: # include <netinet/in_systm.h>
16428: #endif
16429: #if HAVE_NETINET_IN_VAR_H
16430: # include <netinet/in_var.h>
16431: #endif
16432: #if HAVE_NET_IF_DL_H
16433: # include <net/if_dl.h>
16434: #endif
16435: #if HAVE_NET_NETOPT_H
16436: # include <net/netopt.h>
16437: #endif
16438: #if HAVE_NET_ROUTE_H
16439: # include <net/route.h>
16440: #endif
16441: #if HAVE_INET_ND_H
16442: # include <inet/nd.h>
16443: #endif
16444: #if HAVE_ARPA_INET_H
16445: # include <arpa/inet.h>
16446: #endif
16447: /* Required for IDRP */
16448: #if HAVE_NETINET_IP_ICMP_H
16449: # include <netinet/ip_icmp.h>
16450: #endif
16451:
16452: "
16453: if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then :
16454:
16455: cat >>confdefs.h <<_ACEOF
16456: #define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1
16457: _ACEOF
16458:
16459:
16460: fi
16461:
16462:
16463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD struct ip_mreq hack" >&5
16464: $as_echo_n "checking for BSD struct ip_mreq hack... " >&6; }
16465: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466: /* end confdefs.h. */
16467: #ifdef HAVE_SYS_PARAM_H
16468: #include <sys/param.h>
16469: #endif
16470: int
16471: main ()
16472: {
16473: #if (defined(__FreeBSD__) && ((__FreeBSD_version >= 500022 && __FreeBSD_version < 700000) || (__FreeBSD_version < 500000 && __FreeBSD_version >= 440000))) || (defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 106010000)
16474: return (0);
16475: #else
16476: #error No support for BSD struct ip_mreq hack detected
16477: #endif
16478: ;
16479: return 0;
16480: }
16481: _ACEOF
16482: if ac_fn_c_try_compile "$LINENO"; then :
16483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16484: $as_echo "yes" >&6; }
16485:
16486: $as_echo "#define HAVE_BSD_STRUCT_IP_MREQ_HACK /**/" >>confdefs.h
16487:
16488: else
16489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16490: $as_echo "no" >&6; }
16491: fi
16492: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493:
16494: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC3678 protocol-independed API" >&5
16495: $as_echo_n "checking for RFC3678 protocol-independed API... " >&6; }
16496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497: /* end confdefs.h. */
16498:
16499: #include <sys/types.h>
16500: #include <netinet/in.h>
16501:
16502: int
16503: main ()
16504: {
16505: struct group_req gr; int sock; setsockopt(sock, IPPROTO_IP, MCAST_JOIN_GROUP, (void*)&gr, sizeof(gr));
16506:
16507: ;
16508: return 0;
16509: }
16510: _ACEOF
16511: if ac_fn_c_try_compile "$LINENO"; then :
16512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16513: $as_echo "yes" >&6; }
16514:
16515: $as_echo "#define HAVE_RFC3678 1" >>confdefs.h
16516:
16517: else
16518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16519: $as_echo "no" >&6; }
16520: fi
16521: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522:
16523: ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef SUNOS_5
16524: #define _XPG4_2
16525: #define __EXTENSIONS__
16526: #endif
16527: #include <stdio.h>
16528: #if STDC_HEADERS
16529: # include <stdlib.h>
16530: # include <stddef.h>
16531: #else
16532: # if HAVE_STDLIB_H
16533: # include <stdlib.h>
16534: # endif
16535: #endif
16536: #if HAVE_SYS_TYPES_H
16537: # include <sys/types.h>
16538: #endif
16539: /* sys/conf.h depends on param.h on FBSD at least */
16540: #if HAVE_SYS_PARAM_H
16541: # include <sys/param.h>
16542: #endif
16543: /* Required for MAXSIG */
16544: #if HAVE_SIGNAL_H
16545: # include <signal.h>
16546: #endif
16547: #if HAVE_SYS_SOCKET_H
16548: # include <sys/socket.h>
16549: #endif
16550: #if HAVE_NETINET_IN_H
16551: # include <netinet/in.h>
16552: #endif
16553: #ifdef TIME_WITH_SYS_TIME
16554: # include <sys/time.h>
16555: # include <time.h>
16556: #else
16557: # ifdef HAVE_SYS_TIME_H
16558: # include <sys/time.h>
16559: # else
16560: # include <time.h>
16561: # endif
16562: #endif /* TIME_WITH_SYS_TIME */
16563:
16564: #if HAVE_NET_IF_H
16565: # include <net/if.h>
16566: #endif
16567:
16568: #if HAVE_NET_IF_VAR_H
16569: # include <net/if_var.h>
16570: #endif
16571:
16572: #if HAVE_SYS_UN_H
16573: # include <sys/un.h>
16574: #endif
16575: #if HAVE_NETINET_IN_SYSTM_H
16576: # include <netinet/in_systm.h>
16577: #endif
16578: #if HAVE_NETINET_IN_VAR_H
16579: # include <netinet/in_var.h>
16580: #endif
16581: #if HAVE_NET_IF_DL_H
16582: # include <net/if_dl.h>
16583: #endif
16584: #if HAVE_NET_NETOPT_H
16585: # include <net/netopt.h>
16586: #endif
16587: #if HAVE_NET_ROUTE_H
16588: # include <net/route.h>
16589: #endif
16590: #if HAVE_INET_ND_H
16591: # include <inet/nd.h>
16592: #endif
16593: #if HAVE_ARPA_INET_H
16594: # include <arpa/inet.h>
16595: #endif
16596: /* Required for IDRP */
16597: #if HAVE_NETINET_IP_ICMP_H
16598: # include <netinet/ip_icmp.h>
16599: #endif
16600:
16601: "
16602: if test "x$ac_cv_header_net_if_h" = xyes; then :
16603: ac_fn_c_check_header_compile "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "#ifdef SUNOS_5
16604: #define _XPG4_2
16605: #define __EXTENSIONS__
16606: #endif
16607: #include <stdio.h>
16608: #if STDC_HEADERS
16609: # include <stdlib.h>
16610: # include <stddef.h>
16611: #else
16612: # if HAVE_STDLIB_H
16613: # include <stdlib.h>
16614: # endif
16615: #endif
16616: #if HAVE_SYS_TYPES_H
16617: # include <sys/types.h>
16618: #endif
16619: /* sys/conf.h depends on param.h on FBSD at least */
16620: #if HAVE_SYS_PARAM_H
16621: # include <sys/param.h>
16622: #endif
16623: /* Required for MAXSIG */
16624: #if HAVE_SIGNAL_H
16625: # include <signal.h>
16626: #endif
16627: #if HAVE_SYS_SOCKET_H
16628: # include <sys/socket.h>
16629: #endif
16630: #if HAVE_NETINET_IN_H
16631: # include <netinet/in.h>
16632: #endif
16633: #ifdef TIME_WITH_SYS_TIME
16634: # include <sys/time.h>
16635: # include <time.h>
16636: #else
16637: # ifdef HAVE_SYS_TIME_H
16638: # include <sys/time.h>
16639: # else
16640: # include <time.h>
16641: # endif
16642: #endif /* TIME_WITH_SYS_TIME */
16643:
16644: #if HAVE_NET_IF_H
16645: # include <net/if.h>
16646: #endif
16647:
16648: #if HAVE_NET_IF_VAR_H
16649: # include <net/if_var.h>
16650: #endif
16651:
16652: #if HAVE_SYS_UN_H
16653: # include <sys/un.h>
16654: #endif
16655: #if HAVE_NETINET_IN_SYSTM_H
16656: # include <netinet/in_systm.h>
16657: #endif
16658: #if HAVE_NETINET_IN_VAR_H
16659: # include <netinet/in_var.h>
16660: #endif
16661: #if HAVE_NET_IF_DL_H
16662: # include <net/if_dl.h>
16663: #endif
16664: #if HAVE_NET_NETOPT_H
16665: # include <net/netopt.h>
16666: #endif
16667: #if HAVE_NET_ROUTE_H
16668: # include <net/route.h>
16669: #endif
16670: #if HAVE_INET_ND_H
16671: # include <inet/nd.h>
16672: #endif
16673: #if HAVE_ARPA_INET_H
16674: # include <arpa/inet.h>
16675: #endif
16676: /* Required for IDRP */
16677: #if HAVE_NETINET_IP_ICMP_H
16678: # include <netinet/ip_icmp.h>
16679: #endif
16680:
16681: "
16682: if test "x$ac_cv_header_net_if_media_h" = xyes; then :
16683:
16684: ac_fn_c_check_member "$LINENO" "struct ifmediareq" "ifm_status" "ac_cv_member_struct_ifmediareq_ifm_status" "#ifdef SUNOS_5
16685: #define _XPG4_2
16686: #define __EXTENSIONS__
16687: #endif
16688: #include <stdio.h>
16689: #if STDC_HEADERS
16690: # include <stdlib.h>
16691: # include <stddef.h>
16692: #else
16693: # if HAVE_STDLIB_H
16694: # include <stdlib.h>
16695: # endif
16696: #endif
16697: #if HAVE_SYS_TYPES_H
16698: # include <sys/types.h>
16699: #endif
16700: /* sys/conf.h depends on param.h on FBSD at least */
16701: #if HAVE_SYS_PARAM_H
16702: # include <sys/param.h>
16703: #endif
16704: /* Required for MAXSIG */
16705: #if HAVE_SIGNAL_H
16706: # include <signal.h>
16707: #endif
16708: #if HAVE_SYS_SOCKET_H
16709: # include <sys/socket.h>
16710: #endif
16711: #if HAVE_NETINET_IN_H
16712: # include <netinet/in.h>
16713: #endif
16714: #ifdef TIME_WITH_SYS_TIME
16715: # include <sys/time.h>
16716: # include <time.h>
16717: #else
16718: # ifdef HAVE_SYS_TIME_H
16719: # include <sys/time.h>
16720: # else
16721: # include <time.h>
16722: # endif
16723: #endif /* TIME_WITH_SYS_TIME */
16724:
16725: #if HAVE_NET_IF_H
16726: # include <net/if.h>
16727: #endif
16728:
16729: #if HAVE_NET_IF_VAR_H
16730: # include <net/if_var.h>
16731: #endif
16732:
16733: #if HAVE_SYS_UN_H
16734: # include <sys/un.h>
16735: #endif
16736: #if HAVE_NETINET_IN_SYSTM_H
16737: # include <netinet/in_systm.h>
16738: #endif
16739: #if HAVE_NETINET_IN_VAR_H
16740: # include <netinet/in_var.h>
16741: #endif
16742: #if HAVE_NET_IF_DL_H
16743: # include <net/if_dl.h>
16744: #endif
16745: #if HAVE_NET_NETOPT_H
16746: # include <net/netopt.h>
16747: #endif
16748: #if HAVE_NET_ROUTE_H
16749: # include <net/route.h>
16750: #endif
16751: #if HAVE_INET_ND_H
16752: # include <inet/nd.h>
16753: #endif
16754: #if HAVE_ARPA_INET_H
16755: # include <arpa/inet.h>
16756: #endif
16757: /* Required for IDRP */
16758: #if HAVE_NETINET_IP_ICMP_H
16759: # include <netinet/ip_icmp.h>
16760: #endif
16761:
16762: #include <net/if_media.h>
16763:
16764: "
16765: if test "x$ac_cv_member_struct_ifmediareq_ifm_status" = xyes; then :
16766:
16767: cat >>confdefs.h <<_ACEOF
16768: #define HAVE_STRUCT_IFMEDIAREQ_IFM_STATUS 1
16769: _ACEOF
16770:
16771:
16772: $as_echo "#define HAVE_BSD_LINK_DETECT /**/" >>confdefs.h
16773:
16774: fi
16775:
16776: fi
16777:
16778:
16779: fi
16780:
16781:
16782:
16783:
16784: ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "#ifdef SUNOS_5
16785: #define _XPG4_2
16786: #define __EXTENSIONS__
16787: #endif
16788: #include <stdio.h>
16789: #if STDC_HEADERS
16790: # include <stdlib.h>
16791: # include <stddef.h>
16792: #else
16793: # if HAVE_STDLIB_H
16794: # include <stdlib.h>
16795: # endif
16796: #endif
16797: #if HAVE_SYS_TYPES_H
16798: # include <sys/types.h>
16799: #endif
16800: /* sys/conf.h depends on param.h on FBSD at least */
16801: #if HAVE_SYS_PARAM_H
16802: # include <sys/param.h>
16803: #endif
16804: /* Required for MAXSIG */
16805: #if HAVE_SIGNAL_H
16806: # include <signal.h>
16807: #endif
16808: #if HAVE_SYS_SOCKET_H
16809: # include <sys/socket.h>
16810: #endif
16811: #if HAVE_NETINET_IN_H
16812: # include <netinet/in.h>
16813: #endif
16814: #ifdef TIME_WITH_SYS_TIME
16815: # include <sys/time.h>
16816: # include <time.h>
16817: #else
16818: # ifdef HAVE_SYS_TIME_H
16819: # include <sys/time.h>
16820: # else
16821: # include <time.h>
16822: # endif
16823: #endif /* TIME_WITH_SYS_TIME */
16824:
16825: #if HAVE_NET_IF_H
16826: # include <net/if.h>
16827: #endif
16828:
16829: #if HAVE_NET_IF_VAR_H
16830: # include <net/if_var.h>
16831: #endif
16832:
16833: #if HAVE_SYS_UN_H
16834: # include <sys/un.h>
16835: #endif
16836: #if HAVE_NETINET_IN_SYSTM_H
16837: # include <netinet/in_systm.h>
16838: #endif
16839: #if HAVE_NETINET_IN_VAR_H
16840: # include <netinet/in_var.h>
16841: #endif
16842: #if HAVE_NET_IF_DL_H
16843: # include <net/if_dl.h>
16844: #endif
16845: #if HAVE_NET_NETOPT_H
16846: # include <net/netopt.h>
16847: #endif
16848: #if HAVE_NET_ROUTE_H
16849: # include <net/route.h>
16850: #endif
16851: #if HAVE_INET_ND_H
16852: # include <inet/nd.h>
16853: #endif
16854: #if HAVE_ARPA_INET_H
16855: # include <arpa/inet.h>
16856: #endif
16857: /* Required for IDRP */
16858: #if HAVE_NETINET_IP_ICMP_H
16859: # include <netinet/ip_icmp.h>
16860: #endif
16861:
16862: "
16863: if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
16864:
16865: ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
16866: #define _XPG4_2
16867: #define __EXTENSIONS__
16868: #endif
16869: #include <stdio.h>
16870: #if STDC_HEADERS
16871: # include <stdlib.h>
16872: # include <stddef.h>
16873: #else
16874: # if HAVE_STDLIB_H
16875: # include <stdlib.h>
16876: # endif
16877: #endif
16878: #if HAVE_SYS_TYPES_H
16879: # include <sys/types.h>
16880: #endif
16881: /* sys/conf.h depends on param.h on FBSD at least */
16882: #if HAVE_SYS_PARAM_H
16883: # include <sys/param.h>
16884: #endif
16885: /* Required for MAXSIG */
16886: #if HAVE_SIGNAL_H
16887: # include <signal.h>
16888: #endif
16889: #if HAVE_SYS_SOCKET_H
16890: # include <sys/socket.h>
16891: #endif
16892: #if HAVE_NETINET_IN_H
16893: # include <netinet/in.h>
16894: #endif
16895: #ifdef TIME_WITH_SYS_TIME
16896: # include <sys/time.h>
16897: # include <time.h>
16898: #else
16899: # ifdef HAVE_SYS_TIME_H
16900: # include <sys/time.h>
16901: # else
16902: # include <time.h>
16903: # endif
16904: #endif /* TIME_WITH_SYS_TIME */
16905:
16906: #if HAVE_NET_IF_H
16907: # include <net/if.h>
16908: #endif
16909:
16910: #if HAVE_NET_IF_VAR_H
16911: # include <net/if_var.h>
16912: #endif
16913:
16914: #if HAVE_SYS_UN_H
16915: # include <sys/un.h>
16916: #endif
16917: #if HAVE_NETINET_IN_SYSTM_H
16918: # include <netinet/in_systm.h>
16919: #endif
16920: #if HAVE_NETINET_IN_VAR_H
16921: # include <netinet/in_var.h>
16922: #endif
16923: #if HAVE_NET_IF_DL_H
16924: # include <net/if_dl.h>
16925: #endif
16926: #if HAVE_NET_NETOPT_H
16927: # include <net/netopt.h>
16928: #endif
16929: #if HAVE_NET_ROUTE_H
16930: # include <net/route.h>
16931: #endif
16932: #if HAVE_INET_ND_H
16933: # include <inet/nd.h>
16934: #endif
16935: #if HAVE_ARPA_INET_H
16936: # include <arpa/inet.h>
16937: #endif
16938: /* Required for IDRP */
16939: #if HAVE_NETINET_IP_ICMP_H
16940: # include <netinet/ip_icmp.h>
16941: #endif
16942:
16943: #include <netinet/tcp.h>
16944:
16945: "
16946: if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
16947: ac_have_decl=1
16948: else
16949: ac_have_decl=0
16950: fi
16951:
16952: cat >>confdefs.h <<_ACEOF
16953: #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
16954: _ACEOF
16955:
16956: fi
16957:
16958:
16959: if test $ac_cv_have_decl_TCP_MD5SIG = no; then
16960: ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
16961: if test "x$ac_cv_header_linux_tcp_h" = xyes; then :
16962:
16963: ac_fn_c_check_decl "$LINENO" "TCP_MD5SIG" "ac_cv_have_decl_TCP_MD5SIG" "#ifdef SUNOS_5
16964: #define _XPG4_2
16965: #define __EXTENSIONS__
16966: #endif
16967: #include <stdio.h>
16968: #if STDC_HEADERS
16969: # include <stdlib.h>
16970: # include <stddef.h>
16971: #else
16972: # if HAVE_STDLIB_H
16973: # include <stdlib.h>
16974: # endif
16975: #endif
16976: #if HAVE_SYS_TYPES_H
16977: # include <sys/types.h>
16978: #endif
16979: /* sys/conf.h depends on param.h on FBSD at least */
16980: #if HAVE_SYS_PARAM_H
16981: # include <sys/param.h>
16982: #endif
16983: /* Required for MAXSIG */
16984: #if HAVE_SIGNAL_H
16985: # include <signal.h>
16986: #endif
16987: #if HAVE_SYS_SOCKET_H
16988: # include <sys/socket.h>
16989: #endif
16990: #if HAVE_NETINET_IN_H
16991: # include <netinet/in.h>
16992: #endif
16993: #ifdef TIME_WITH_SYS_TIME
16994: # include <sys/time.h>
16995: # include <time.h>
16996: #else
16997: # ifdef HAVE_SYS_TIME_H
16998: # include <sys/time.h>
16999: # else
17000: # include <time.h>
17001: # endif
17002: #endif /* TIME_WITH_SYS_TIME */
17003:
17004: #if HAVE_NET_IF_H
17005: # include <net/if.h>
17006: #endif
17007:
17008: #if HAVE_NET_IF_VAR_H
17009: # include <net/if_var.h>
17010: #endif
17011:
17012: #if HAVE_SYS_UN_H
17013: # include <sys/un.h>
17014: #endif
17015: #if HAVE_NETINET_IN_SYSTM_H
17016: # include <netinet/in_systm.h>
17017: #endif
17018: #if HAVE_NETINET_IN_VAR_H
17019: # include <netinet/in_var.h>
17020: #endif
17021: #if HAVE_NET_IF_DL_H
17022: # include <net/if_dl.h>
17023: #endif
17024: #if HAVE_NET_NETOPT_H
17025: # include <net/netopt.h>
17026: #endif
17027: #if HAVE_NET_ROUTE_H
17028: # include <net/route.h>
17029: #endif
17030: #if HAVE_INET_ND_H
17031: # include <inet/nd.h>
17032: #endif
17033: #if HAVE_ARPA_INET_H
17034: # include <arpa/inet.h>
17035: #endif
17036: /* Required for IDRP */
17037: #if HAVE_NETINET_IP_ICMP_H
17038: # include <netinet/ip_icmp.h>
17039: #endif
17040:
17041: #include <linux/tcp.h>
17042:
17043: "
17044: if test "x$ac_cv_have_decl_TCP_MD5SIG" = xyes; then :
17045: ac_have_decl=1
17046: else
17047: ac_have_decl=0
17048: fi
17049:
17050: cat >>confdefs.h <<_ACEOF
17051: #define HAVE_DECL_TCP_MD5SIG $ac_have_decl
17052: _ACEOF
17053:
17054: fi
17055:
17056:
17057: fi
17058:
17059: if test "$netlink" != yes; then
17060: if test -r /proc/net/dev; then
17061:
17062: $as_echo "#define HAVE_PROC_NET_DEV /**/" >>confdefs.h
17063:
17064: IF_PROC=if_proc.o
17065: fi
17066: if test -r /proc/net/if_inet6; then
17067:
17068: $as_echo "#define HAVE_PROC_NET_IF_INET6 /**/" >>confdefs.h
17069:
17070: IF_PROC=if_proc.o
17071: fi
17072: fi
17073:
17074:
17075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipforward method" >&5
17076: $as_echo_n "checking ipforward method... " >&6; }
17077: if ${quagga_cv_ipforward_method+:} false; then :
17078: $as_echo_n "(cached) " >&6
17079: else
1.1.1.3 ! misho 17080: if test x$cross_compiling = xyes; then
! 17081: if test x"$opsys" = x"gnu-linux"; then
! 17082: quagga_cv_ipforward_method=/proc/net/snmp
! 17083: else
! 17084: quagga_cv_ipforward_method=/dev/ip
! 17085: fi
! 17086: else
1.1 misho 17087: for quagga_cv_ipforward_method in /proc/net/snmp /dev/ip /dev/null;
1.1.1.3 ! misho 17088: do
! 17089: test x`ls $quagga_cv_ipforward_method 2>/dev/null` = x"$quagga_cv_ipforward_method" && break
! 17090: done
! 17091: fi
1.1 misho 17092: case $quagga_cv_ipforward_method in
17093: "/proc/net/snmp") quagga_cv_ipforward_method="proc";;
17094: "/dev/ip")
17095: case "$host" in
17096: *-nec-sysv4*) quagga_cv_ipforward_method="ews";;
17097: *-freebsd*) quagga_cv_ipforward_method="sysctl";;
17098: *) quagga_cv_ipforward_method="solaris";;
17099: esac;;
17100: *) quagga_cv_ipforward_method="sysctl";;
17101: esac
17102: fi
17103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quagga_cv_ipforward_method" >&5
17104: $as_echo "$quagga_cv_ipforward_method" >&6; }
17105: IPFORWARD=ipforward_${quagga_cv_ipforward_method}.o
17106:
17107:
17108: for ac_func in getaddrinfo
17109: do :
17110: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17111: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17112: cat >>confdefs.h <<_ACEOF
17113: #define HAVE_GETADDRINFO 1
17114: _ACEOF
17115: have_getaddrinfo=yes
17116: else
17117: have_getaddrinfo=no
17118: fi
17119: done
17120:
17121:
17122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether does this OS have IPv6 stack" >&5
17123: $as_echo_n "checking whether does this OS have IPv6 stack... " >&6; }
17124: if test "${enable_ipv6}" = "no"; then
17125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17126: $as_echo "disabled" >&6; }
17127: else
17128: if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
17129: zebra_cv_ipv6=yes
17130:
17131: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17132:
17133:
17134: $as_echo "#define INRIA_IPV6 1" >>confdefs.h
17135:
17136: RIPNGD="ripngd"
17137: OSPF6D="ospf6d"
17138: LIB_IPV6=""
17139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: INRIA IPv6" >&5
17140: $as_echo "INRIA IPv6" >&6; }
17141: elif grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
17142: zebra_cv_ipv6=yes
17143:
17144: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17145:
17146:
17147: $as_echo "#define KAME 1" >>confdefs.h
17148:
17149: RIPNGD="ripngd"
17150: OSPF6D="ospf6d"
17151: if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
17152: LIB_IPV6="-L/usr/local/v6/lib -linet6"
17153: fi
17154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: KAME" >&5
17155: $as_echo "KAME" >&6; }
17156: elif grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
17157: zebra_cv_ipv6=yes
17158:
17159: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17160:
17161:
17162: $as_echo "#define MUSICA 1" >>confdefs.h
17163:
17164:
17165: $as_echo "#define KAME 1" >>confdefs.h
17166:
17167: RIPNGD="ripngd"
17168: OSPF6D="ospf6d"
17169: if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
17170: LIB_IPV6="-L/usr/local/v6/lib -linet6"
17171: fi
17172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: MUSICA" >&5
17173: $as_echo "MUSICA" >&6; }
17174: elif grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
17175: zebra_cv_ipv6=yes
17176:
17177: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17178:
17179:
17180: $as_echo "#define NRL 1" >>confdefs.h
17181:
17182: RIPNGD="ripngd"
17183: OSPF6D="ospf6d"
17184: if test x"$opsys" = x"bsdi";then
17185:
17186: $as_echo "#define BSDI_NRL /**/" >>confdefs.h
17187:
17188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: BSDI_NRL" >&5
17189: $as_echo "BSDI_NRL" >&6; }
17190: else
17191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: NRL" >&5
17192: $as_echo "NRL" >&6; }
17193: fi
17194: elif test x"$opsys" = x"sol8"; then
17195: zebra_cv_ipv6=yes;
17196:
17197: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17198:
17199:
17200: $as_echo "#define SOLARIS_IPV6 1" >>confdefs.h
17201:
17202: RIPNGD="ripngd"
17203: OSPF6D="ospf6d"
17204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris IPv6" >&5
17205: $as_echo "Solaris IPv6" >&6; }
17206: elif test "${enable_ipv6}" = "yes"; then
17207: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208: /* end confdefs.h. */
17209:
17210: #include <linux/version.h>
17211: /* 2.1.128 or later */
17212: #if LINUX_VERSION_CODE >= 0x020180
17213: yes
17214: #endif
17215: _ACEOF
17216: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17217: $EGREP "yes" >/dev/null 2>&1; then :
17218: zebra_cv_ipv6=yes
17219: zebra_cv_linux_ipv6=yes
17220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
17221: $as_echo "Linux IPv6" >&6; }
17222: fi
17223: rm -f conftest*
17224:
17225: else
17226: if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
17227: then
17228: zebra_cv_ipv6=yes
17229: zebra_cv_linux_ipv6=yes
17230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux IPv6" >&5
17231: $as_echo "Linux IPv6" >&6; }
17232: fi
17233: fi
17234:
17235: if test "$zebra_cv_linux_ipv6" = "yes";then
17236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libc has IPv6 support" >&5
17237: $as_echo_n "checking whether libc has IPv6 support... " >&6; }
17238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239: /* end confdefs.h. */
17240: #include <netinet/in.h>
17241:
17242: int
17243: main ()
17244: {
17245: int a; a = (int) in6addr_any.s6_addr[0]; if (a != 12345) return a;
17246: ;
17247: return 0;
17248: }
17249: _ACEOF
17250: if ac_fn_c_try_link "$LINENO"; then :
17251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252: $as_echo "yes" >&6; }
17253: zebra_cv_ipv6=yes
17254: zebra_cv_linux_ipv6=yes
17255: else
17256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17257: $as_echo "no" >&6; }
17258: zebra_cv_ipv6=no
17259: zebra_cv_linux_ipv6=no
17260: fi
17261: rm -f core conftest.err conftest.$ac_objext \
17262: conftest$ac_exeext conftest.$ac_ext
17263: fi
17264:
17265: if test "$zebra_cv_linux_ipv6" = "yes";then
17266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc >= 2.1" >&5
17267: $as_echo_n "checking for GNU libc >= 2.1... " >&6; }
17268:
17269: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
17270:
17271: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272: /* end confdefs.h. */
17273:
17274: #include <features.h>
17275: #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
17276: yes
17277: #endif
17278: _ACEOF
17279: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17280: $EGREP "yes" >/dev/null 2>&1; then :
17281: glibc=yes
17282:
17283: $as_echo "#define LINUX_IPV6 1" >>confdefs.h
17284:
17285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17286: $as_echo "yes" >&6; }
17287: else
17288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17289: $as_echo "no" >&6; }
17290:
17291: fi
17292: rm -f conftest*
17293:
17294: RIPNGD="ripngd"
17295: OSPF6D="ospf6d"
17296: if test "$glibc" != "yes"; then
17297: INCLUDES="-I/usr/inet6/include"
17298: if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
17299: LIB_IPV6="-L/usr/inet6/lib -linet6"
17300: fi
17301: fi
17302: fi
17303:
17304: LIBS="$LIB_IPV6 $LIBS"
17305:
17306:
17307: if test x"$RIPNGD" = x""; then
17308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPv4 only" >&5
17309: $as_echo "IPv4 only" >&6; }
17310: fi
17311: fi
17312:
17313: if test "x${zebra_cv_ipv6}" = "xyes"; then
17314: for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
17315: netinet6/in6_var.h netinet6/nd6.h
17316: do :
17317: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17318: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef SUNOS_5
17319: #define _XPG4_2
17320: #define __EXTENSIONS__
17321: #endif
17322: #include <stdio.h>
17323: #if STDC_HEADERS
17324: # include <stdlib.h>
17325: # include <stddef.h>
17326: #else
17327: # if HAVE_STDLIB_H
17328: # include <stdlib.h>
17329: # endif
17330: #endif
17331: #if HAVE_SYS_TYPES_H
17332: # include <sys/types.h>
17333: #endif
17334: /* sys/conf.h depends on param.h on FBSD at least */
17335: #if HAVE_SYS_PARAM_H
17336: # include <sys/param.h>
17337: #endif
17338: /* Required for MAXSIG */
17339: #if HAVE_SIGNAL_H
17340: # include <signal.h>
17341: #endif
17342: #if HAVE_SYS_SOCKET_H
17343: # include <sys/socket.h>
17344: #endif
17345: #if HAVE_NETINET_IN_H
17346: # include <netinet/in.h>
17347: #endif
17348: #ifdef TIME_WITH_SYS_TIME
17349: # include <sys/time.h>
17350: # include <time.h>
17351: #else
17352: # ifdef HAVE_SYS_TIME_H
17353: # include <sys/time.h>
17354: # else
17355: # include <time.h>
17356: # endif
17357: #endif /* TIME_WITH_SYS_TIME */
17358:
17359: #if HAVE_NET_IF_H
17360: # include <net/if.h>
17361: #endif
17362:
17363: #if HAVE_NET_IF_VAR_H
17364: # include <net/if_var.h>
17365: #endif
17366:
17367: #if HAVE_SYS_UN_H
17368: # include <sys/un.h>
17369: #endif
17370: #if HAVE_NETINET_IN_SYSTM_H
17371: # include <netinet/in_systm.h>
17372: #endif
17373: #if HAVE_NETINET_IN_VAR_H
17374: # include <netinet/in_var.h>
17375: #endif
17376: #if HAVE_NET_IF_DL_H
17377: # include <net/if_dl.h>
17378: #endif
17379: #if HAVE_NET_NETOPT_H
17380: # include <net/netopt.h>
17381: #endif
17382: #if HAVE_NET_ROUTE_H
17383: # include <net/route.h>
17384: #endif
17385: #if HAVE_INET_ND_H
17386: # include <inet/nd.h>
17387: #endif
17388: #if HAVE_ARPA_INET_H
17389: # include <arpa/inet.h>
17390: #endif
17391: /* Required for IDRP */
17392: #if HAVE_NETINET_IP_ICMP_H
17393: # include <netinet/ip_icmp.h>
17394: #endif
17395:
17396: "
17397: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17398: cat >>confdefs.h <<_ACEOF
17399: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17400: _ACEOF
17401:
17402: fi
17403:
17404: done
17405:
17406: fi
17407:
17408:
17409: if test "${enable_doc}" = "no";then
17410: DOC=""
17411: else
17412: DOC="doc"
17413: fi
17414:
17415: if test "${enable_zebra}" = "no";then
17416: ZEBRA=""
17417: else
17418: ZEBRA="zebra"
17419: fi
1.1.1.3 ! misho 17420: if test "x$ZEBRA" = "xzebra"; then
! 17421: ZEBRA_TRUE=
! 17422: ZEBRA_FALSE='#'
! 17423: else
! 17424: ZEBRA_TRUE='#'
! 17425: ZEBRA_FALSE=
! 17426: fi
! 17427:
1.1 misho 17428:
17429: if test "${enable_bgpd}" = "no";then
17430: BGPD=""
17431: else
17432: BGPD="bgpd"
17433: fi
1.1.1.3 ! misho 17434: if test "x$BGPD" = "xbgpd"; then
! 17435: BGPD_TRUE=
! 17436: BGPD_FALSE='#'
! 17437: else
! 17438: BGPD_TRUE='#'
! 17439: BGPD_FALSE=
! 17440: fi
! 17441:
1.1 misho 17442:
17443: if test "${enable_ripd}" = "no";then
17444: RIPD=""
17445: else
17446: RIPD="ripd"
17447: fi
1.1.1.3 ! misho 17448: if test "x$RIPD" = "xripd"; then
! 17449: RIPD_TRUE=
! 17450: RIPD_FALSE='#'
! 17451: else
! 17452: RIPD_TRUE='#'
! 17453: RIPD_FALSE=
! 17454: fi
! 17455:
1.1 misho 17456:
17457: if test "${enable_ospfd}" = "no";then
17458: OSPFD=""
17459: else
17460: OSPFD="ospfd"
17461: fi
1.1.1.3 ! misho 17462: if test "x$OSPFD" = "xospfd"; then
! 17463: OSPFD_TRUE=
! 17464: OSPFD_FALSE='#'
! 17465: else
! 17466: OSPFD_TRUE='#'
! 17467: OSPFD_FALSE=
! 17468: fi
! 17469:
! 17470:
! 17471: if test "${enable_babeld}" = "no";then
! 17472: BABELD=""
! 17473: else
! 17474: BABELD="babeld"
! 17475: fi
! 17476: if test "x$BABELD" = "xbabeld"; then
! 17477: BABELD_TRUE=
! 17478: BABELD_FALSE='#'
! 17479: else
! 17480: BABELD_TRUE='#'
! 17481: BABELD_FALSE=
! 17482: fi
! 17483:
1.1 misho 17484:
17485: if test "${enable_watchquagga}" = "no";then
17486: WATCHQUAGGA=""
17487: else
17488: WATCHQUAGGA="watchquagga"
17489: fi
1.1.1.3 ! misho 17490: if test "x$WATCHQUAGGA" = "xwatchquagga"; then
! 17491: WATCHQUAGGA_TRUE=
! 17492: WATCHQUAGGA_FALSE='#'
! 17493: else
! 17494: WATCHQUAGGA_TRUE='#'
! 17495: WATCHQUAGGA_FALSE=
! 17496: fi
! 17497:
1.1 misho 17498:
17499: OSPFCLIENT=""
17500: if test "${enable_opaque_lsa}" != "no"; then
17501: if test "${enable_ospfapi}" != "no";then
17502:
17503: $as_echo "#define SUPPORT_OSPF_API /**/" >>confdefs.h
17504:
17505:
17506: if test "${enable_ospfclient}" != "no";then
17507: OSPFCLIENT="ospfclient"
17508: fi
17509: fi
17510:
17511: fi
1.1.1.3 ! misho 17512: if test "x$OSPFCLIENT" = "xospfclient"; then
! 17513: OSPFCLIENT_TRUE=
! 17514: OSPFCLIENT_FALSE='#'
! 17515: else
! 17516: OSPFCLIENT_TRUE='#'
! 17517: OSPFCLIENT_FALSE=
! 17518: fi
! 17519:
1.1 misho 17520:
17521: case "${enable_ripngd}" in
17522: "yes") RIPNGD="ripngd";;
17523: "no" ) RIPNGD="";;
17524: * ) ;;
17525: esac
1.1.1.3 ! misho 17526: if test "x$RIPNGD" = "xripngd"; then
! 17527: RIPNGD_TRUE=
! 17528: RIPNGD_FALSE='#'
! 17529: else
! 17530: RIPNGD_TRUE='#'
! 17531: RIPNGD_FALSE=
! 17532: fi
! 17533:
1.1 misho 17534:
17535: case "${enable_ospf6d}" in
17536: "yes") OSPF6D="ospf6d";;
17537: "no" ) OSPF6D="";;
17538: * ) ;;
17539: esac
1.1.1.3 ! misho 17540: if test "x$OSPF6D" = "xospf6d"; then
! 17541: OSPF6D_TRUE=
! 17542: OSPF6D_FALSE='#'
! 17543: else
! 17544: OSPF6D_TRUE='#'
! 17545: OSPF6D_FALSE=
! 17546: fi
! 17547:
1.1 misho 17548:
17549: case "${enable_isisd}" in
17550: "yes") ISISD="isisd";;
17551: "no" ) ISISD="";;
17552: * ) ;;
17553: esac
1.1.1.3 ! misho 17554: if test "x$ISISD" = "xisisd"; then
! 17555: ISISD_TRUE=
! 17556: ISISD_FALSE='#'
! 17557: else
! 17558: ISISD_TRUE='#'
! 17559: ISISD_FALSE=
! 17560: fi
! 17561:
1.1 misho 17562:
17563: # XXX Perhaps auto-enable on Solaris, but that's messy for cross builds.
17564: case "${enable_solaris}" in
17565: "yes") SOLARIS="solaris";;
17566: "no" ) SOLARIS="";;
17567: * ) ;;
17568: esac
17569:
17570: if test "${enable_bgp_announce}" = "no";then
17571:
17572: $as_echo "#define DISABLE_BGP_ANNOUNCE 1" >>confdefs.h
17573:
17574: else
17575:
17576: $as_echo "#define DISABLE_BGP_ANNOUNCE 0" >>confdefs.h
17577:
17578: fi
17579:
17580:
17581:
17582:
17583:
17584:
17585:
17586:
17587:
17588:
17589:
17590:
17591:
17592:
17593:
17594:
1.1.1.3 ! misho 17595:
1.1 misho 17596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lc" >&5
17597: $as_echo_n "checking for inet_ntop in -lc... " >&6; }
17598: if ${ac_cv_lib_c_inet_ntop+:} false; then :
17599: $as_echo_n "(cached) " >&6
17600: else
17601: ac_check_lib_save_LIBS=$LIBS
17602: LIBS="-lc $LIBS"
17603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604: /* end confdefs.h. */
17605:
17606: /* Override any GCC internal prototype to avoid an error.
17607: Use char because int might match the return type of a GCC
17608: builtin and then its argument prototype would still apply. */
17609: #ifdef __cplusplus
17610: extern "C"
17611: #endif
17612: char inet_ntop ();
17613: int
17614: main ()
17615: {
17616: return inet_ntop ();
17617: ;
17618: return 0;
17619: }
17620: _ACEOF
17621: if ac_fn_c_try_link "$LINENO"; then :
17622: ac_cv_lib_c_inet_ntop=yes
17623: else
17624: ac_cv_lib_c_inet_ntop=no
17625: fi
17626: rm -f core conftest.err conftest.$ac_objext \
17627: conftest$ac_exeext conftest.$ac_ext
17628: LIBS=$ac_check_lib_save_LIBS
17629: fi
17630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_ntop" >&5
17631: $as_echo "$ac_cv_lib_c_inet_ntop" >&6; }
17632: if test "x$ac_cv_lib_c_inet_ntop" = xyes; then :
17633:
17634: $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
17635:
17636: fi
17637:
17638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lc" >&5
17639: $as_echo_n "checking for inet_pton in -lc... " >&6; }
17640: if ${ac_cv_lib_c_inet_pton+:} false; then :
17641: $as_echo_n "(cached) " >&6
17642: else
17643: ac_check_lib_save_LIBS=$LIBS
17644: LIBS="-lc $LIBS"
17645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646: /* end confdefs.h. */
17647:
17648: /* Override any GCC internal prototype to avoid an error.
17649: Use char because int might match the return type of a GCC
17650: builtin and then its argument prototype would still apply. */
17651: #ifdef __cplusplus
17652: extern "C"
17653: #endif
17654: char inet_pton ();
17655: int
17656: main ()
17657: {
17658: return inet_pton ();
17659: ;
17660: return 0;
17661: }
17662: _ACEOF
17663: if ac_fn_c_try_link "$LINENO"; then :
17664: ac_cv_lib_c_inet_pton=yes
17665: else
17666: ac_cv_lib_c_inet_pton=no
17667: fi
17668: rm -f core conftest.err conftest.$ac_objext \
17669: conftest$ac_exeext conftest.$ac_ext
17670: LIBS=$ac_check_lib_save_LIBS
17671: fi
17672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_pton" >&5
17673: $as_echo "$ac_cv_lib_c_inet_pton" >&6; }
17674: if test "x$ac_cv_lib_c_inet_pton" = xyes; then :
17675:
17676: $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
17677:
17678: fi
17679:
17680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17681: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17682: if ${ac_cv_lib_crypt_crypt+:} false; then :
17683: $as_echo_n "(cached) " >&6
17684: else
17685: ac_check_lib_save_LIBS=$LIBS
17686: LIBS="-lcrypt $LIBS"
17687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688: /* end confdefs.h. */
17689:
17690: /* Override any GCC internal prototype to avoid an error.
17691: Use char because int might match the return type of a GCC
17692: builtin and then its argument prototype would still apply. */
17693: #ifdef __cplusplus
17694: extern "C"
17695: #endif
17696: char crypt ();
17697: int
17698: main ()
17699: {
17700: return crypt ();
17701: ;
17702: return 0;
17703: }
17704: _ACEOF
17705: if ac_fn_c_try_link "$LINENO"; then :
17706: ac_cv_lib_crypt_crypt=yes
17707: else
17708: ac_cv_lib_crypt_crypt=no
17709: fi
17710: rm -f core conftest.err conftest.$ac_objext \
17711: conftest$ac_exeext conftest.$ac_ext
17712: LIBS=$ac_check_lib_save_LIBS
17713: fi
17714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17715: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17716: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17717: cat >>confdefs.h <<_ACEOF
17718: #define HAVE_LIBCRYPT 1
17719: _ACEOF
17720:
17721: LIBS="-lcrypt $LIBS"
17722:
17723: fi
17724:
17725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5
17726: $as_echo_n "checking for res_init in -lresolv... " >&6; }
17727: if ${ac_cv_lib_resolv_res_init+:} false; then :
17728: $as_echo_n "(cached) " >&6
17729: else
17730: ac_check_lib_save_LIBS=$LIBS
17731: LIBS="-lresolv $LIBS"
17732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733: /* end confdefs.h. */
17734:
17735: /* Override any GCC internal prototype to avoid an error.
17736: Use char because int might match the return type of a GCC
17737: builtin and then its argument prototype would still apply. */
17738: #ifdef __cplusplus
17739: extern "C"
17740: #endif
17741: char res_init ();
17742: int
17743: main ()
17744: {
17745: return res_init ();
17746: ;
17747: return 0;
17748: }
17749: _ACEOF
17750: if ac_fn_c_try_link "$LINENO"; then :
17751: ac_cv_lib_resolv_res_init=yes
17752: else
17753: ac_cv_lib_resolv_res_init=no
17754: fi
17755: rm -f core conftest.err conftest.$ac_objext \
17756: conftest$ac_exeext conftest.$ac_ext
17757: LIBS=$ac_check_lib_save_LIBS
17758: fi
17759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5
17760: $as_echo "$ac_cv_lib_resolv_res_init" >&6; }
17761: if test "x$ac_cv_lib_resolv_res_init" = xyes; then :
17762: cat >>confdefs.h <<_ACEOF
17763: #define HAVE_LIBRESOLV 1
17764: _ACEOF
17765:
17766: LIBS="-lresolv $LIBS"
17767:
17768: fi
17769:
17770:
17771: ac_fn_c_check_func "$LINENO" "__inet_ntop" "ac_cv_func___inet_ntop"
17772: if test "x$ac_cv_func___inet_ntop" = xyes; then :
17773:
17774: $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
17775:
17776: fi
17777:
17778: ac_fn_c_check_func "$LINENO" "__inet_pton" "ac_cv_func___inet_pton"
17779: if test "x$ac_cv_func___inet_pton" = xyes; then :
17780:
17781: $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
17782:
17783: fi
17784:
17785: ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton"
17786: if test "x$ac_cv_func___inet_aton" = xyes; then :
17787:
17788: $as_echo "#define HAVE_INET_ATON /**/" >>confdefs.h
17789:
17790: fi
17791:
17792:
17793: if test "x$enable_pcreposix" = "xyes"; then
17794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix_regexec in -lpcreposix" >&5
17795: $as_echo_n "checking for pcreposix_regexec in -lpcreposix... " >&6; }
17796: if ${ac_cv_lib_pcreposix_pcreposix_regexec+:} false; then :
17797: $as_echo_n "(cached) " >&6
17798: else
17799: ac_check_lib_save_LIBS=$LIBS
17800: LIBS="-lpcreposix $LIBS"
17801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802: /* end confdefs.h. */
17803:
17804: /* Override any GCC internal prototype to avoid an error.
17805: Use char because int might match the return type of a GCC
17806: builtin and then its argument prototype would still apply. */
17807: #ifdef __cplusplus
17808: extern "C"
17809: #endif
17810: char pcreposix_regexec ();
17811: int
17812: main ()
17813: {
17814: return pcreposix_regexec ();
17815: ;
17816: return 0;
17817: }
17818: _ACEOF
17819: if ac_fn_c_try_link "$LINENO"; then :
17820: ac_cv_lib_pcreposix_pcreposix_regexec=yes
17821: else
17822: ac_cv_lib_pcreposix_pcreposix_regexec=no
17823: fi
17824: rm -f core conftest.err conftest.$ac_objext \
17825: conftest$ac_exeext conftest.$ac_ext
17826: LIBS=$ac_check_lib_save_LIBS
17827: fi
17828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_pcreposix_regexec" >&5
17829: $as_echo "$ac_cv_lib_pcreposix_pcreposix_regexec" >&6; }
17830: if test "x$ac_cv_lib_pcreposix_pcreposix_regexec" = xyes; then :
17831: cat >>confdefs.h <<_ACEOF
17832: #define HAVE_LIBPCREPOSIX 1
17833: _ACEOF
17834:
17835: LIBS="-lpcreposix $LIBS"
17836:
17837: else
17838: enable_pcreposix=no
17839: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** falling back to other regex library ***" >&5
17840: $as_echo "$as_me: WARNING: *** falling back to other regex library ***" >&2;}
17841: fi
17842:
17843: fi
17844:
17845: if test "x$enable_pcreposix" != "xyes"; then
17846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system has GNU regex" >&5
17847: $as_echo_n "checking whether system has GNU regex... " >&6; }
17848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lc" >&5
17849: $as_echo_n "checking for regexec in -lc... " >&6; }
17850: if ${ac_cv_lib_c_regexec+:} false; then :
17851: $as_echo_n "(cached) " >&6
17852: else
17853: ac_check_lib_save_LIBS=$LIBS
17854: LIBS="-lc $LIBS"
17855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856: /* end confdefs.h. */
17857:
17858: /* Override any GCC internal prototype to avoid an error.
17859: Use char because int might match the return type of a GCC
17860: builtin and then its argument prototype would still apply. */
17861: #ifdef __cplusplus
17862: extern "C"
17863: #endif
17864: char regexec ();
17865: int
17866: main ()
17867: {
17868: return regexec ();
17869: ;
17870: return 0;
17871: }
17872: _ACEOF
17873: if ac_fn_c_try_link "$LINENO"; then :
17874: ac_cv_lib_c_regexec=yes
17875: else
17876: ac_cv_lib_c_regexec=no
17877: fi
17878: rm -f core conftest.err conftest.$ac_objext \
17879: conftest$ac_exeext conftest.$ac_ext
17880: LIBS=$ac_check_lib_save_LIBS
17881: fi
17882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_regexec" >&5
17883: $as_echo "$ac_cv_lib_c_regexec" >&6; }
17884: if test "x$ac_cv_lib_c_regexec" = xyes; then :
17885:
17886: $as_echo "#define HAVE_GNU_REGEX /**/" >>confdefs.h
17887:
17888: LIB_REGEX=""
17889: else
17890: LIB_REGEX="regex.o"
17891: fi
17892:
17893: fi
17894:
17895:
17896:
17897: if test "${enable_snmp}" = "yes"; then
17898: if test "$with_crypto" != "no"; then
17899: LIBS="${LIBS} -lcrypto";
17900: fi
17901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asn_parse_int in -lnetsnmp" >&5
17902: $as_echo_n "checking for asn_parse_int in -lnetsnmp... " >&6; }
17903: if ${ac_cv_lib_netsnmp_asn_parse_int+:} false; then :
17904: $as_echo_n "(cached) " >&6
17905: else
17906: ac_check_lib_save_LIBS=$LIBS
17907: LIBS="-lnetsnmp $LIBS"
17908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909: /* end confdefs.h. */
17910:
17911: /* Override any GCC internal prototype to avoid an error.
17912: Use char because int might match the return type of a GCC
17913: builtin and then its argument prototype would still apply. */
17914: #ifdef __cplusplus
17915: extern "C"
17916: #endif
17917: char asn_parse_int ();
17918: int
17919: main ()
17920: {
17921: return asn_parse_int ();
17922: ;
17923: return 0;
17924: }
17925: _ACEOF
17926: if ac_fn_c_try_link "$LINENO"; then :
17927: ac_cv_lib_netsnmp_asn_parse_int=yes
17928: else
17929: ac_cv_lib_netsnmp_asn_parse_int=no
17930: fi
17931: rm -f core conftest.err conftest.$ac_objext \
17932: conftest$ac_exeext conftest.$ac_ext
17933: LIBS=$ac_check_lib_save_LIBS
17934: fi
17935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
17936: $as_echo "$ac_cv_lib_netsnmp_asn_parse_int" >&6; }
17937: if test "x$ac_cv_lib_netsnmp_asn_parse_int" = xyes; then :
17938:
17939: $as_echo "#define HAVE_NETSNMP /**/" >>confdefs.h
17940:
17941:
17942: $as_echo "#define HAVE_SNMP /**/" >>confdefs.h
17943:
17944: LIBS="${LIBS} -lnetsnmp"
17945: else
17946: as_fn_error $? "--enable-snmp given, but cannot find support for SNMP" "$LINENO" 5
17947: fi
17948:
17949:
17950: 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
17951: #define _XPG4_2
17952: #define __EXTENSIONS__
17953: #endif
17954: #include <stdio.h>
17955: #if STDC_HEADERS
17956: # include <stdlib.h>
17957: # include <stddef.h>
17958: #else
17959: # if HAVE_STDLIB_H
17960: # include <stdlib.h>
17961: # endif
17962: #endif
17963: #if HAVE_SYS_TYPES_H
17964: # include <sys/types.h>
17965: #endif
17966: /* sys/conf.h depends on param.h on FBSD at least */
17967: #if HAVE_SYS_PARAM_H
17968: # include <sys/param.h>
17969: #endif
17970: /* Required for MAXSIG */
17971: #if HAVE_SIGNAL_H
17972: # include <signal.h>
17973: #endif
17974: #if HAVE_SYS_SOCKET_H
17975: # include <sys/socket.h>
17976: #endif
17977: #if HAVE_NETINET_IN_H
17978: # include <netinet/in.h>
17979: #endif
17980: #ifdef TIME_WITH_SYS_TIME
17981: # include <sys/time.h>
17982: # include <time.h>
17983: #else
17984: # ifdef HAVE_SYS_TIME_H
17985: # include <sys/time.h>
17986: # else
17987: # include <time.h>
17988: # endif
17989: #endif /* TIME_WITH_SYS_TIME */
17990:
17991: #if HAVE_NET_IF_H
17992: # include <net/if.h>
17993: #endif
17994:
17995: #if HAVE_NET_IF_VAR_H
17996: # include <net/if_var.h>
17997: #endif
17998:
17999: #if HAVE_SYS_UN_H
18000: # include <sys/un.h>
18001: #endif
18002: #if HAVE_NETINET_IN_SYSTM_H
18003: # include <netinet/in_systm.h>
18004: #endif
18005: #if HAVE_NETINET_IN_VAR_H
18006: # include <netinet/in_var.h>
18007: #endif
18008: #if HAVE_NET_IF_DL_H
18009: # include <net/if_dl.h>
18010: #endif
18011: #if HAVE_NET_NETOPT_H
18012: # include <net/netopt.h>
18013: #endif
18014: #if HAVE_NET_ROUTE_H
18015: # include <net/route.h>
18016: #endif
18017: #if HAVE_INET_ND_H
18018: # include <inet/nd.h>
18019: #endif
18020: #if HAVE_ARPA_INET_H
18021: # include <arpa/inet.h>
18022: #endif
18023: /* Required for IDRP */
18024: #if HAVE_NETINET_IP_ICMP_H
18025: # include <netinet/ip_icmp.h>
18026: #endif
18027:
18028: #if HAVE_NETINET6_IN6_H
18029: #include <netinet6/in6.h>
18030: #endif
18031: #if HAVE_NETINET_IN6_VAR_H
18032: #include <netinet/in6_var.h>
18033: #endif
18034: #if HAVE_NETINET_ICMP6_H
18035: # include <netinet/icmp6.h>
18036: #endif
18037: #if HAVE_NETINET6_IN6_VAR_H
18038: # include <netinet6/in6_var.h>
18039: #endif
18040: #if HAVE_NETINET6_ND6_H
18041: # include <netinet6/nd6.h>
18042: #endif
18043:
18044: "
18045: if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
18046:
18047: else
18048: as_fn_error $? "--enable-snmp given, but cannot find net-snmp-config.h" "$LINENO" 5
18049: fi
18050:
18051:
18052:
18053: fi
18054:
18055: ac_fn_c_check_type "$LINENO" "struct sockaddr" "ac_cv_type_struct_sockaddr" "#ifdef SUNOS_5
18056: #define _XPG4_2
18057: #define __EXTENSIONS__
18058: #endif
18059: #include <stdio.h>
18060: #if STDC_HEADERS
18061: # include <stdlib.h>
18062: # include <stddef.h>
18063: #else
18064: # if HAVE_STDLIB_H
18065: # include <stdlib.h>
18066: # endif
18067: #endif
18068: #if HAVE_SYS_TYPES_H
18069: # include <sys/types.h>
18070: #endif
18071: /* sys/conf.h depends on param.h on FBSD at least */
18072: #if HAVE_SYS_PARAM_H
18073: # include <sys/param.h>
18074: #endif
18075: /* Required for MAXSIG */
18076: #if HAVE_SIGNAL_H
18077: # include <signal.h>
18078: #endif
18079: #if HAVE_SYS_SOCKET_H
18080: # include <sys/socket.h>
18081: #endif
18082: #if HAVE_NETINET_IN_H
18083: # include <netinet/in.h>
18084: #endif
18085: #ifdef TIME_WITH_SYS_TIME
18086: # include <sys/time.h>
18087: # include <time.h>
18088: #else
18089: # ifdef HAVE_SYS_TIME_H
18090: # include <sys/time.h>
18091: # else
18092: # include <time.h>
18093: # endif
18094: #endif /* TIME_WITH_SYS_TIME */
18095:
18096: #if HAVE_NET_IF_H
18097: # include <net/if.h>
18098: #endif
18099:
18100: #if HAVE_NET_IF_VAR_H
18101: # include <net/if_var.h>
18102: #endif
18103:
18104: #if HAVE_SYS_UN_H
18105: # include <sys/un.h>
18106: #endif
18107: #if HAVE_NETINET_IN_SYSTM_H
18108: # include <netinet/in_systm.h>
18109: #endif
18110: #if HAVE_NETINET_IN_VAR_H
18111: # include <netinet/in_var.h>
18112: #endif
18113: #if HAVE_NET_IF_DL_H
18114: # include <net/if_dl.h>
18115: #endif
18116: #if HAVE_NET_NETOPT_H
18117: # include <net/netopt.h>
18118: #endif
18119: #if HAVE_NET_ROUTE_H
18120: # include <net/route.h>
18121: #endif
18122: #if HAVE_INET_ND_H
18123: # include <inet/nd.h>
18124: #endif
18125: #if HAVE_ARPA_INET_H
18126: # include <arpa/inet.h>
18127: #endif
18128: /* Required for IDRP */
18129: #if HAVE_NETINET_IP_ICMP_H
18130: # include <netinet/ip_icmp.h>
18131: #endif
18132:
18133: #if HAVE_NETINET6_IN6_H
18134: #include <netinet6/in6.h>
18135: #endif
18136: #if HAVE_NETINET_IN6_VAR_H
18137: #include <netinet/in6_var.h>
18138: #endif
18139: #if HAVE_NETINET_ICMP6_H
18140: # include <netinet/icmp6.h>
18141: #endif
18142: #if HAVE_NETINET6_IN6_VAR_H
18143: # include <netinet6/in6_var.h>
18144: #endif
18145: #if HAVE_NETINET6_ND6_H
18146: # include <netinet6/nd6.h>
18147: #endif
18148:
18149: "
18150: if test "x$ac_cv_type_struct_sockaddr" = xyes; then :
18151:
18152: cat >>confdefs.h <<_ACEOF
18153: #define HAVE_STRUCT_SOCKADDR 1
18154: _ACEOF
18155:
18156:
18157: fi
18158: ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#ifdef SUNOS_5
18159: #define _XPG4_2
18160: #define __EXTENSIONS__
18161: #endif
18162: #include <stdio.h>
18163: #if STDC_HEADERS
18164: # include <stdlib.h>
18165: # include <stddef.h>
18166: #else
18167: # if HAVE_STDLIB_H
18168: # include <stdlib.h>
18169: # endif
18170: #endif
18171: #if HAVE_SYS_TYPES_H
18172: # include <sys/types.h>
18173: #endif
18174: /* sys/conf.h depends on param.h on FBSD at least */
18175: #if HAVE_SYS_PARAM_H
18176: # include <sys/param.h>
18177: #endif
18178: /* Required for MAXSIG */
18179: #if HAVE_SIGNAL_H
18180: # include <signal.h>
18181: #endif
18182: #if HAVE_SYS_SOCKET_H
18183: # include <sys/socket.h>
18184: #endif
18185: #if HAVE_NETINET_IN_H
18186: # include <netinet/in.h>
18187: #endif
18188: #ifdef TIME_WITH_SYS_TIME
18189: # include <sys/time.h>
18190: # include <time.h>
18191: #else
18192: # ifdef HAVE_SYS_TIME_H
18193: # include <sys/time.h>
18194: # else
18195: # include <time.h>
18196: # endif
18197: #endif /* TIME_WITH_SYS_TIME */
18198:
18199: #if HAVE_NET_IF_H
18200: # include <net/if.h>
18201: #endif
18202:
18203: #if HAVE_NET_IF_VAR_H
18204: # include <net/if_var.h>
18205: #endif
18206:
18207: #if HAVE_SYS_UN_H
18208: # include <sys/un.h>
18209: #endif
18210: #if HAVE_NETINET_IN_SYSTM_H
18211: # include <netinet/in_systm.h>
18212: #endif
18213: #if HAVE_NETINET_IN_VAR_H
18214: # include <netinet/in_var.h>
18215: #endif
18216: #if HAVE_NET_IF_DL_H
18217: # include <net/if_dl.h>
18218: #endif
18219: #if HAVE_NET_NETOPT_H
18220: # include <net/netopt.h>
18221: #endif
18222: #if HAVE_NET_ROUTE_H
18223: # include <net/route.h>
18224: #endif
18225: #if HAVE_INET_ND_H
18226: # include <inet/nd.h>
18227: #endif
18228: #if HAVE_ARPA_INET_H
18229: # include <arpa/inet.h>
18230: #endif
18231: /* Required for IDRP */
18232: #if HAVE_NETINET_IP_ICMP_H
18233: # include <netinet/ip_icmp.h>
18234: #endif
18235:
18236: #if HAVE_NETINET6_IN6_H
18237: #include <netinet6/in6.h>
18238: #endif
18239: #if HAVE_NETINET_IN6_VAR_H
18240: #include <netinet/in6_var.h>
18241: #endif
18242: #if HAVE_NETINET_ICMP6_H
18243: # include <netinet/icmp6.h>
18244: #endif
18245: #if HAVE_NETINET6_IN6_VAR_H
18246: # include <netinet6/in6_var.h>
18247: #endif
18248: #if HAVE_NETINET6_ND6_H
18249: # include <netinet6/nd6.h>
18250: #endif
18251:
18252: "
18253: if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
18254:
18255: cat >>confdefs.h <<_ACEOF
18256: #define HAVE_STRUCT_SOCKADDR_IN 1
18257: _ACEOF
18258:
18259:
18260: fi
18261: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef SUNOS_5
18262: #define _XPG4_2
18263: #define __EXTENSIONS__
18264: #endif
18265: #include <stdio.h>
18266: #if STDC_HEADERS
18267: # include <stdlib.h>
18268: # include <stddef.h>
18269: #else
18270: # if HAVE_STDLIB_H
18271: # include <stdlib.h>
18272: # endif
18273: #endif
18274: #if HAVE_SYS_TYPES_H
18275: # include <sys/types.h>
18276: #endif
18277: /* sys/conf.h depends on param.h on FBSD at least */
18278: #if HAVE_SYS_PARAM_H
18279: # include <sys/param.h>
18280: #endif
18281: /* Required for MAXSIG */
18282: #if HAVE_SIGNAL_H
18283: # include <signal.h>
18284: #endif
18285: #if HAVE_SYS_SOCKET_H
18286: # include <sys/socket.h>
18287: #endif
18288: #if HAVE_NETINET_IN_H
18289: # include <netinet/in.h>
18290: #endif
18291: #ifdef TIME_WITH_SYS_TIME
18292: # include <sys/time.h>
18293: # include <time.h>
18294: #else
18295: # ifdef HAVE_SYS_TIME_H
18296: # include <sys/time.h>
18297: # else
18298: # include <time.h>
18299: # endif
18300: #endif /* TIME_WITH_SYS_TIME */
18301:
18302: #if HAVE_NET_IF_H
18303: # include <net/if.h>
18304: #endif
18305:
18306: #if HAVE_NET_IF_VAR_H
18307: # include <net/if_var.h>
18308: #endif
18309:
18310: #if HAVE_SYS_UN_H
18311: # include <sys/un.h>
18312: #endif
18313: #if HAVE_NETINET_IN_SYSTM_H
18314: # include <netinet/in_systm.h>
18315: #endif
18316: #if HAVE_NETINET_IN_VAR_H
18317: # include <netinet/in_var.h>
18318: #endif
18319: #if HAVE_NET_IF_DL_H
18320: # include <net/if_dl.h>
18321: #endif
18322: #if HAVE_NET_NETOPT_H
18323: # include <net/netopt.h>
18324: #endif
18325: #if HAVE_NET_ROUTE_H
18326: # include <net/route.h>
18327: #endif
18328: #if HAVE_INET_ND_H
18329: # include <inet/nd.h>
18330: #endif
18331: #if HAVE_ARPA_INET_H
18332: # include <arpa/inet.h>
18333: #endif
18334: /* Required for IDRP */
18335: #if HAVE_NETINET_IP_ICMP_H
18336: # include <netinet/ip_icmp.h>
18337: #endif
18338:
18339: #if HAVE_NETINET6_IN6_H
18340: #include <netinet6/in6.h>
18341: #endif
18342: #if HAVE_NETINET_IN6_VAR_H
18343: #include <netinet/in6_var.h>
18344: #endif
18345: #if HAVE_NETINET_ICMP6_H
18346: # include <netinet/icmp6.h>
18347: #endif
18348: #if HAVE_NETINET6_IN6_VAR_H
18349: # include <netinet6/in6_var.h>
18350: #endif
18351: #if HAVE_NETINET6_ND6_H
18352: # include <netinet6/nd6.h>
18353: #endif
18354:
18355: "
18356: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
18357:
18358: cat >>confdefs.h <<_ACEOF
18359: #define HAVE_STRUCT_SOCKADDR_IN6 1
18360: _ACEOF
18361:
18362:
18363: fi
18364: ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#ifdef SUNOS_5
18365: #define _XPG4_2
18366: #define __EXTENSIONS__
18367: #endif
18368: #include <stdio.h>
18369: #if STDC_HEADERS
18370: # include <stdlib.h>
18371: # include <stddef.h>
18372: #else
18373: # if HAVE_STDLIB_H
18374: # include <stdlib.h>
18375: # endif
18376: #endif
18377: #if HAVE_SYS_TYPES_H
18378: # include <sys/types.h>
18379: #endif
18380: /* sys/conf.h depends on param.h on FBSD at least */
18381: #if HAVE_SYS_PARAM_H
18382: # include <sys/param.h>
18383: #endif
18384: /* Required for MAXSIG */
18385: #if HAVE_SIGNAL_H
18386: # include <signal.h>
18387: #endif
18388: #if HAVE_SYS_SOCKET_H
18389: # include <sys/socket.h>
18390: #endif
18391: #if HAVE_NETINET_IN_H
18392: # include <netinet/in.h>
18393: #endif
18394: #ifdef TIME_WITH_SYS_TIME
18395: # include <sys/time.h>
18396: # include <time.h>
18397: #else
18398: # ifdef HAVE_SYS_TIME_H
18399: # include <sys/time.h>
18400: # else
18401: # include <time.h>
18402: # endif
18403: #endif /* TIME_WITH_SYS_TIME */
18404:
18405: #if HAVE_NET_IF_H
18406: # include <net/if.h>
18407: #endif
18408:
18409: #if HAVE_NET_IF_VAR_H
18410: # include <net/if_var.h>
18411: #endif
18412:
18413: #if HAVE_SYS_UN_H
18414: # include <sys/un.h>
18415: #endif
18416: #if HAVE_NETINET_IN_SYSTM_H
18417: # include <netinet/in_systm.h>
18418: #endif
18419: #if HAVE_NETINET_IN_VAR_H
18420: # include <netinet/in_var.h>
18421: #endif
18422: #if HAVE_NET_IF_DL_H
18423: # include <net/if_dl.h>
18424: #endif
18425: #if HAVE_NET_NETOPT_H
18426: # include <net/netopt.h>
18427: #endif
18428: #if HAVE_NET_ROUTE_H
18429: # include <net/route.h>
18430: #endif
18431: #if HAVE_INET_ND_H
18432: # include <inet/nd.h>
18433: #endif
18434: #if HAVE_ARPA_INET_H
18435: # include <arpa/inet.h>
18436: #endif
18437: /* Required for IDRP */
18438: #if HAVE_NETINET_IP_ICMP_H
18439: # include <netinet/ip_icmp.h>
18440: #endif
18441:
18442: #if HAVE_NETINET6_IN6_H
18443: #include <netinet6/in6.h>
18444: #endif
18445: #if HAVE_NETINET_IN6_VAR_H
18446: #include <netinet/in6_var.h>
18447: #endif
18448: #if HAVE_NETINET_ICMP6_H
18449: # include <netinet/icmp6.h>
18450: #endif
18451: #if HAVE_NETINET6_IN6_VAR_H
18452: # include <netinet6/in6_var.h>
18453: #endif
18454: #if HAVE_NETINET6_ND6_H
18455: # include <netinet6/nd6.h>
18456: #endif
18457:
18458: "
18459: if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
18460:
18461: cat >>confdefs.h <<_ACEOF
18462: #define HAVE_STRUCT_SOCKADDR_UN 1
18463: _ACEOF
18464:
18465:
18466: fi
18467: ac_fn_c_check_type "$LINENO" "struct sockaddr_dl" "ac_cv_type_struct_sockaddr_dl" "#ifdef SUNOS_5
18468: #define _XPG4_2
18469: #define __EXTENSIONS__
18470: #endif
18471: #include <stdio.h>
18472: #if STDC_HEADERS
18473: # include <stdlib.h>
18474: # include <stddef.h>
18475: #else
18476: # if HAVE_STDLIB_H
18477: # include <stdlib.h>
18478: # endif
18479: #endif
18480: #if HAVE_SYS_TYPES_H
18481: # include <sys/types.h>
18482: #endif
18483: /* sys/conf.h depends on param.h on FBSD at least */
18484: #if HAVE_SYS_PARAM_H
18485: # include <sys/param.h>
18486: #endif
18487: /* Required for MAXSIG */
18488: #if HAVE_SIGNAL_H
18489: # include <signal.h>
18490: #endif
18491: #if HAVE_SYS_SOCKET_H
18492: # include <sys/socket.h>
18493: #endif
18494: #if HAVE_NETINET_IN_H
18495: # include <netinet/in.h>
18496: #endif
18497: #ifdef TIME_WITH_SYS_TIME
18498: # include <sys/time.h>
18499: # include <time.h>
18500: #else
18501: # ifdef HAVE_SYS_TIME_H
18502: # include <sys/time.h>
18503: # else
18504: # include <time.h>
18505: # endif
18506: #endif /* TIME_WITH_SYS_TIME */
18507:
18508: #if HAVE_NET_IF_H
18509: # include <net/if.h>
18510: #endif
18511:
18512: #if HAVE_NET_IF_VAR_H
18513: # include <net/if_var.h>
18514: #endif
18515:
18516: #if HAVE_SYS_UN_H
18517: # include <sys/un.h>
18518: #endif
18519: #if HAVE_NETINET_IN_SYSTM_H
18520: # include <netinet/in_systm.h>
18521: #endif
18522: #if HAVE_NETINET_IN_VAR_H
18523: # include <netinet/in_var.h>
18524: #endif
18525: #if HAVE_NET_IF_DL_H
18526: # include <net/if_dl.h>
18527: #endif
18528: #if HAVE_NET_NETOPT_H
18529: # include <net/netopt.h>
18530: #endif
18531: #if HAVE_NET_ROUTE_H
18532: # include <net/route.h>
18533: #endif
18534: #if HAVE_INET_ND_H
18535: # include <inet/nd.h>
18536: #endif
18537: #if HAVE_ARPA_INET_H
18538: # include <arpa/inet.h>
18539: #endif
18540: /* Required for IDRP */
18541: #if HAVE_NETINET_IP_ICMP_H
18542: # include <netinet/ip_icmp.h>
18543: #endif
18544:
18545: #if HAVE_NETINET6_IN6_H
18546: #include <netinet6/in6.h>
18547: #endif
18548: #if HAVE_NETINET_IN6_VAR_H
18549: #include <netinet/in6_var.h>
18550: #endif
18551: #if HAVE_NETINET_ICMP6_H
18552: # include <netinet/icmp6.h>
18553: #endif
18554: #if HAVE_NETINET6_IN6_VAR_H
18555: # include <netinet6/in6_var.h>
18556: #endif
18557: #if HAVE_NETINET6_ND6_H
18558: # include <netinet6/nd6.h>
18559: #endif
18560:
18561: "
18562: if test "x$ac_cv_type_struct_sockaddr_dl" = xyes; then :
18563:
18564: cat >>confdefs.h <<_ACEOF
18565: #define HAVE_STRUCT_SOCKADDR_DL 1
18566: _ACEOF
18567:
18568:
18569: fi
18570: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef SUNOS_5
18571: #define _XPG4_2
18572: #define __EXTENSIONS__
18573: #endif
18574: #include <stdio.h>
18575: #if STDC_HEADERS
18576: # include <stdlib.h>
18577: # include <stddef.h>
18578: #else
18579: # if HAVE_STDLIB_H
18580: # include <stdlib.h>
18581: # endif
18582: #endif
18583: #if HAVE_SYS_TYPES_H
18584: # include <sys/types.h>
18585: #endif
18586: /* sys/conf.h depends on param.h on FBSD at least */
18587: #if HAVE_SYS_PARAM_H
18588: # include <sys/param.h>
18589: #endif
18590: /* Required for MAXSIG */
18591: #if HAVE_SIGNAL_H
18592: # include <signal.h>
18593: #endif
18594: #if HAVE_SYS_SOCKET_H
18595: # include <sys/socket.h>
18596: #endif
18597: #if HAVE_NETINET_IN_H
18598: # include <netinet/in.h>
18599: #endif
18600: #ifdef TIME_WITH_SYS_TIME
18601: # include <sys/time.h>
18602: # include <time.h>
18603: #else
18604: # ifdef HAVE_SYS_TIME_H
18605: # include <sys/time.h>
18606: # else
18607: # include <time.h>
18608: # endif
18609: #endif /* TIME_WITH_SYS_TIME */
18610:
18611: #if HAVE_NET_IF_H
18612: # include <net/if.h>
18613: #endif
18614:
18615: #if HAVE_NET_IF_VAR_H
18616: # include <net/if_var.h>
18617: #endif
18618:
18619: #if HAVE_SYS_UN_H
18620: # include <sys/un.h>
18621: #endif
18622: #if HAVE_NETINET_IN_SYSTM_H
18623: # include <netinet/in_systm.h>
18624: #endif
18625: #if HAVE_NETINET_IN_VAR_H
18626: # include <netinet/in_var.h>
18627: #endif
18628: #if HAVE_NET_IF_DL_H
18629: # include <net/if_dl.h>
18630: #endif
18631: #if HAVE_NET_NETOPT_H
18632: # include <net/netopt.h>
18633: #endif
18634: #if HAVE_NET_ROUTE_H
18635: # include <net/route.h>
18636: #endif
18637: #if HAVE_INET_ND_H
18638: # include <inet/nd.h>
18639: #endif
18640: #if HAVE_ARPA_INET_H
18641: # include <arpa/inet.h>
18642: #endif
18643: /* Required for IDRP */
18644: #if HAVE_NETINET_IP_ICMP_H
18645: # include <netinet/ip_icmp.h>
18646: #endif
18647:
18648: #if HAVE_NETINET6_IN6_H
18649: #include <netinet6/in6.h>
18650: #endif
18651: #if HAVE_NETINET_IN6_VAR_H
18652: #include <netinet/in6_var.h>
18653: #endif
18654: #if HAVE_NETINET_ICMP6_H
18655: # include <netinet/icmp6.h>
18656: #endif
18657: #if HAVE_NETINET6_IN6_VAR_H
18658: # include <netinet6/in6_var.h>
18659: #endif
18660: #if HAVE_NETINET6_ND6_H
18661: # include <netinet6/nd6.h>
18662: #endif
18663:
18664: "
18665: if test "x$ac_cv_type_socklen_t" = xyes; then :
18666:
18667: cat >>confdefs.h <<_ACEOF
18668: #define HAVE_SOCKLEN_T 1
18669: _ACEOF
18670:
18671:
18672: fi
18673: ac_fn_c_check_type "$LINENO" "struct ifaliasreq" "ac_cv_type_struct_ifaliasreq" "#ifdef SUNOS_5
18674: #define _XPG4_2
18675: #define __EXTENSIONS__
18676: #endif
18677: #include <stdio.h>
18678: #if STDC_HEADERS
18679: # include <stdlib.h>
18680: # include <stddef.h>
18681: #else
18682: # if HAVE_STDLIB_H
18683: # include <stdlib.h>
18684: # endif
18685: #endif
18686: #if HAVE_SYS_TYPES_H
18687: # include <sys/types.h>
18688: #endif
18689: /* sys/conf.h depends on param.h on FBSD at least */
18690: #if HAVE_SYS_PARAM_H
18691: # include <sys/param.h>
18692: #endif
18693: /* Required for MAXSIG */
18694: #if HAVE_SIGNAL_H
18695: # include <signal.h>
18696: #endif
18697: #if HAVE_SYS_SOCKET_H
18698: # include <sys/socket.h>
18699: #endif
18700: #if HAVE_NETINET_IN_H
18701: # include <netinet/in.h>
18702: #endif
18703: #ifdef TIME_WITH_SYS_TIME
18704: # include <sys/time.h>
18705: # include <time.h>
18706: #else
18707: # ifdef HAVE_SYS_TIME_H
18708: # include <sys/time.h>
18709: # else
18710: # include <time.h>
18711: # endif
18712: #endif /* TIME_WITH_SYS_TIME */
18713:
18714: #if HAVE_NET_IF_H
18715: # include <net/if.h>
18716: #endif
18717:
18718: #if HAVE_NET_IF_VAR_H
18719: # include <net/if_var.h>
18720: #endif
18721:
18722: #if HAVE_SYS_UN_H
18723: # include <sys/un.h>
18724: #endif
18725: #if HAVE_NETINET_IN_SYSTM_H
18726: # include <netinet/in_systm.h>
18727: #endif
18728: #if HAVE_NETINET_IN_VAR_H
18729: # include <netinet/in_var.h>
18730: #endif
18731: #if HAVE_NET_IF_DL_H
18732: # include <net/if_dl.h>
18733: #endif
18734: #if HAVE_NET_NETOPT_H
18735: # include <net/netopt.h>
18736: #endif
18737: #if HAVE_NET_ROUTE_H
18738: # include <net/route.h>
18739: #endif
18740: #if HAVE_INET_ND_H
18741: # include <inet/nd.h>
18742: #endif
18743: #if HAVE_ARPA_INET_H
18744: # include <arpa/inet.h>
18745: #endif
18746: /* Required for IDRP */
18747: #if HAVE_NETINET_IP_ICMP_H
18748: # include <netinet/ip_icmp.h>
18749: #endif
18750:
18751: #if HAVE_NETINET6_IN6_H
18752: #include <netinet6/in6.h>
18753: #endif
18754: #if HAVE_NETINET_IN6_VAR_H
18755: #include <netinet/in6_var.h>
18756: #endif
18757: #if HAVE_NETINET_ICMP6_H
18758: # include <netinet/icmp6.h>
18759: #endif
18760: #if HAVE_NETINET6_IN6_VAR_H
18761: # include <netinet6/in6_var.h>
18762: #endif
18763: #if HAVE_NETINET6_ND6_H
18764: # include <netinet6/nd6.h>
18765: #endif
18766:
18767: "
18768: if test "x$ac_cv_type_struct_ifaliasreq" = xyes; then :
18769:
18770: cat >>confdefs.h <<_ACEOF
18771: #define HAVE_STRUCT_IFALIASREQ 1
18772: _ACEOF
18773:
18774:
18775: fi
18776: ac_fn_c_check_type "$LINENO" "struct if6_aliasreq" "ac_cv_type_struct_if6_aliasreq" "#ifdef SUNOS_5
18777: #define _XPG4_2
18778: #define __EXTENSIONS__
18779: #endif
18780: #include <stdio.h>
18781: #if STDC_HEADERS
18782: # include <stdlib.h>
18783: # include <stddef.h>
18784: #else
18785: # if HAVE_STDLIB_H
18786: # include <stdlib.h>
18787: # endif
18788: #endif
18789: #if HAVE_SYS_TYPES_H
18790: # include <sys/types.h>
18791: #endif
18792: /* sys/conf.h depends on param.h on FBSD at least */
18793: #if HAVE_SYS_PARAM_H
18794: # include <sys/param.h>
18795: #endif
18796: /* Required for MAXSIG */
18797: #if HAVE_SIGNAL_H
18798: # include <signal.h>
18799: #endif
18800: #if HAVE_SYS_SOCKET_H
18801: # include <sys/socket.h>
18802: #endif
18803: #if HAVE_NETINET_IN_H
18804: # include <netinet/in.h>
18805: #endif
18806: #ifdef TIME_WITH_SYS_TIME
18807: # include <sys/time.h>
18808: # include <time.h>
18809: #else
18810: # ifdef HAVE_SYS_TIME_H
18811: # include <sys/time.h>
18812: # else
18813: # include <time.h>
18814: # endif
18815: #endif /* TIME_WITH_SYS_TIME */
18816:
18817: #if HAVE_NET_IF_H
18818: # include <net/if.h>
18819: #endif
18820:
18821: #if HAVE_NET_IF_VAR_H
18822: # include <net/if_var.h>
18823: #endif
18824:
18825: #if HAVE_SYS_UN_H
18826: # include <sys/un.h>
18827: #endif
18828: #if HAVE_NETINET_IN_SYSTM_H
18829: # include <netinet/in_systm.h>
18830: #endif
18831: #if HAVE_NETINET_IN_VAR_H
18832: # include <netinet/in_var.h>
18833: #endif
18834: #if HAVE_NET_IF_DL_H
18835: # include <net/if_dl.h>
18836: #endif
18837: #if HAVE_NET_NETOPT_H
18838: # include <net/netopt.h>
18839: #endif
18840: #if HAVE_NET_ROUTE_H
18841: # include <net/route.h>
18842: #endif
18843: #if HAVE_INET_ND_H
18844: # include <inet/nd.h>
18845: #endif
18846: #if HAVE_ARPA_INET_H
18847: # include <arpa/inet.h>
18848: #endif
18849: /* Required for IDRP */
18850: #if HAVE_NETINET_IP_ICMP_H
18851: # include <netinet/ip_icmp.h>
18852: #endif
18853:
18854: #if HAVE_NETINET6_IN6_H
18855: #include <netinet6/in6.h>
18856: #endif
18857: #if HAVE_NETINET_IN6_VAR_H
18858: #include <netinet/in6_var.h>
18859: #endif
18860: #if HAVE_NETINET_ICMP6_H
18861: # include <netinet/icmp6.h>
18862: #endif
18863: #if HAVE_NETINET6_IN6_VAR_H
18864: # include <netinet6/in6_var.h>
18865: #endif
18866: #if HAVE_NETINET6_ND6_H
18867: # include <netinet6/nd6.h>
18868: #endif
18869:
18870: "
18871: if test "x$ac_cv_type_struct_if6_aliasreq" = xyes; then :
18872:
18873: cat >>confdefs.h <<_ACEOF
18874: #define HAVE_STRUCT_IF6_ALIASREQ 1
18875: _ACEOF
18876:
18877:
18878: fi
18879: ac_fn_c_check_type "$LINENO" "struct in6_aliasreq" "ac_cv_type_struct_in6_aliasreq" "#ifdef SUNOS_5
18880: #define _XPG4_2
18881: #define __EXTENSIONS__
18882: #endif
18883: #include <stdio.h>
18884: #if STDC_HEADERS
18885: # include <stdlib.h>
18886: # include <stddef.h>
18887: #else
18888: # if HAVE_STDLIB_H
18889: # include <stdlib.h>
18890: # endif
18891: #endif
18892: #if HAVE_SYS_TYPES_H
18893: # include <sys/types.h>
18894: #endif
18895: /* sys/conf.h depends on param.h on FBSD at least */
18896: #if HAVE_SYS_PARAM_H
18897: # include <sys/param.h>
18898: #endif
18899: /* Required for MAXSIG */
18900: #if HAVE_SIGNAL_H
18901: # include <signal.h>
18902: #endif
18903: #if HAVE_SYS_SOCKET_H
18904: # include <sys/socket.h>
18905: #endif
18906: #if HAVE_NETINET_IN_H
18907: # include <netinet/in.h>
18908: #endif
18909: #ifdef TIME_WITH_SYS_TIME
18910: # include <sys/time.h>
18911: # include <time.h>
18912: #else
18913: # ifdef HAVE_SYS_TIME_H
18914: # include <sys/time.h>
18915: # else
18916: # include <time.h>
18917: # endif
18918: #endif /* TIME_WITH_SYS_TIME */
18919:
18920: #if HAVE_NET_IF_H
18921: # include <net/if.h>
18922: #endif
18923:
18924: #if HAVE_NET_IF_VAR_H
18925: # include <net/if_var.h>
18926: #endif
18927:
18928: #if HAVE_SYS_UN_H
18929: # include <sys/un.h>
18930: #endif
18931: #if HAVE_NETINET_IN_SYSTM_H
18932: # include <netinet/in_systm.h>
18933: #endif
18934: #if HAVE_NETINET_IN_VAR_H
18935: # include <netinet/in_var.h>
18936: #endif
18937: #if HAVE_NET_IF_DL_H
18938: # include <net/if_dl.h>
18939: #endif
18940: #if HAVE_NET_NETOPT_H
18941: # include <net/netopt.h>
18942: #endif
18943: #if HAVE_NET_ROUTE_H
18944: # include <net/route.h>
18945: #endif
18946: #if HAVE_INET_ND_H
18947: # include <inet/nd.h>
18948: #endif
18949: #if HAVE_ARPA_INET_H
18950: # include <arpa/inet.h>
18951: #endif
18952: /* Required for IDRP */
18953: #if HAVE_NETINET_IP_ICMP_H
18954: # include <netinet/ip_icmp.h>
18955: #endif
18956:
18957: #if HAVE_NETINET6_IN6_H
18958: #include <netinet6/in6.h>
18959: #endif
18960: #if HAVE_NETINET_IN6_VAR_H
18961: #include <netinet/in6_var.h>
18962: #endif
18963: #if HAVE_NETINET_ICMP6_H
18964: # include <netinet/icmp6.h>
18965: #endif
18966: #if HAVE_NETINET6_IN6_VAR_H
18967: # include <netinet6/in6_var.h>
18968: #endif
18969: #if HAVE_NETINET6_ND6_H
18970: # include <netinet6/nd6.h>
18971: #endif
18972:
18973: "
18974: if test "x$ac_cv_type_struct_in6_aliasreq" = xyes; then :
18975:
18976: cat >>confdefs.h <<_ACEOF
18977: #define HAVE_STRUCT_IN6_ALIASREQ 1
18978: _ACEOF
18979:
18980:
18981: fi
18982: ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
18983: #define _XPG4_2
18984: #define __EXTENSIONS__
18985: #endif
18986: #include <stdio.h>
18987: #if STDC_HEADERS
18988: # include <stdlib.h>
18989: # include <stddef.h>
18990: #else
18991: # if HAVE_STDLIB_H
18992: # include <stdlib.h>
18993: # endif
18994: #endif
18995: #if HAVE_SYS_TYPES_H
18996: # include <sys/types.h>
18997: #endif
18998: /* sys/conf.h depends on param.h on FBSD at least */
18999: #if HAVE_SYS_PARAM_H
19000: # include <sys/param.h>
19001: #endif
19002: /* Required for MAXSIG */
19003: #if HAVE_SIGNAL_H
19004: # include <signal.h>
19005: #endif
19006: #if HAVE_SYS_SOCKET_H
19007: # include <sys/socket.h>
19008: #endif
19009: #if HAVE_NETINET_IN_H
19010: # include <netinet/in.h>
19011: #endif
19012: #ifdef TIME_WITH_SYS_TIME
19013: # include <sys/time.h>
19014: # include <time.h>
19015: #else
19016: # ifdef HAVE_SYS_TIME_H
19017: # include <sys/time.h>
19018: # else
19019: # include <time.h>
19020: # endif
19021: #endif /* TIME_WITH_SYS_TIME */
19022:
19023: #if HAVE_NET_IF_H
19024: # include <net/if.h>
19025: #endif
19026:
19027: #if HAVE_NET_IF_VAR_H
19028: # include <net/if_var.h>
19029: #endif
19030:
19031: #if HAVE_SYS_UN_H
19032: # include <sys/un.h>
19033: #endif
19034: #if HAVE_NETINET_IN_SYSTM_H
19035: # include <netinet/in_systm.h>
19036: #endif
19037: #if HAVE_NETINET_IN_VAR_H
19038: # include <netinet/in_var.h>
19039: #endif
19040: #if HAVE_NET_IF_DL_H
19041: # include <net/if_dl.h>
19042: #endif
19043: #if HAVE_NET_NETOPT_H
19044: # include <net/netopt.h>
19045: #endif
19046: #if HAVE_NET_ROUTE_H
19047: # include <net/route.h>
19048: #endif
19049: #if HAVE_INET_ND_H
19050: # include <inet/nd.h>
19051: #endif
19052: #if HAVE_ARPA_INET_H
19053: # include <arpa/inet.h>
19054: #endif
19055: /* Required for IDRP */
19056: #if HAVE_NETINET_IP_ICMP_H
19057: # include <netinet/ip_icmp.h>
19058: #endif
19059:
19060: #if HAVE_NETINET6_IN6_H
19061: #include <netinet6/in6.h>
19062: #endif
19063: #if HAVE_NETINET_IN6_VAR_H
19064: #include <netinet/in6_var.h>
19065: #endif
19066: #if HAVE_NETINET_ICMP6_H
19067: # include <netinet/icmp6.h>
19068: #endif
19069: #if HAVE_NETINET6_IN6_VAR_H
19070: # include <netinet6/in6_var.h>
19071: #endif
19072: #if HAVE_NETINET6_ND6_H
19073: # include <netinet6/nd6.h>
19074: #endif
19075:
19076: "
19077: if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
19078:
19079: cat >>confdefs.h <<_ACEOF
19080: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
19081: _ACEOF
19082:
19083:
19084: fi
19085: ac_fn_c_check_type "$LINENO" "struct rt_addrinfo" "ac_cv_type_struct_rt_addrinfo" "#ifdef SUNOS_5
19086: #define _XPG4_2
19087: #define __EXTENSIONS__
19088: #endif
19089: #include <stdio.h>
19090: #if STDC_HEADERS
19091: # include <stdlib.h>
19092: # include <stddef.h>
19093: #else
19094: # if HAVE_STDLIB_H
19095: # include <stdlib.h>
19096: # endif
19097: #endif
19098: #if HAVE_SYS_TYPES_H
19099: # include <sys/types.h>
19100: #endif
19101: /* sys/conf.h depends on param.h on FBSD at least */
19102: #if HAVE_SYS_PARAM_H
19103: # include <sys/param.h>
19104: #endif
19105: /* Required for MAXSIG */
19106: #if HAVE_SIGNAL_H
19107: # include <signal.h>
19108: #endif
19109: #if HAVE_SYS_SOCKET_H
19110: # include <sys/socket.h>
19111: #endif
19112: #if HAVE_NETINET_IN_H
19113: # include <netinet/in.h>
19114: #endif
19115: #ifdef TIME_WITH_SYS_TIME
19116: # include <sys/time.h>
19117: # include <time.h>
19118: #else
19119: # ifdef HAVE_SYS_TIME_H
19120: # include <sys/time.h>
19121: # else
19122: # include <time.h>
19123: # endif
19124: #endif /* TIME_WITH_SYS_TIME */
19125:
19126: #if HAVE_NET_IF_H
19127: # include <net/if.h>
19128: #endif
19129:
19130: #if HAVE_NET_IF_VAR_H
19131: # include <net/if_var.h>
19132: #endif
19133:
19134: #if HAVE_SYS_UN_H
19135: # include <sys/un.h>
19136: #endif
19137: #if HAVE_NETINET_IN_SYSTM_H
19138: # include <netinet/in_systm.h>
19139: #endif
19140: #if HAVE_NETINET_IN_VAR_H
19141: # include <netinet/in_var.h>
19142: #endif
19143: #if HAVE_NET_IF_DL_H
19144: # include <net/if_dl.h>
19145: #endif
19146: #if HAVE_NET_NETOPT_H
19147: # include <net/netopt.h>
19148: #endif
19149: #if HAVE_NET_ROUTE_H
19150: # include <net/route.h>
19151: #endif
19152: #if HAVE_INET_ND_H
19153: # include <inet/nd.h>
19154: #endif
19155: #if HAVE_ARPA_INET_H
19156: # include <arpa/inet.h>
19157: #endif
19158: /* Required for IDRP */
19159: #if HAVE_NETINET_IP_ICMP_H
19160: # include <netinet/ip_icmp.h>
19161: #endif
19162:
19163: #if HAVE_NETINET6_IN6_H
19164: #include <netinet6/in6.h>
19165: #endif
19166: #if HAVE_NETINET_IN6_VAR_H
19167: #include <netinet/in6_var.h>
19168: #endif
19169: #if HAVE_NETINET_ICMP6_H
19170: # include <netinet/icmp6.h>
19171: #endif
19172: #if HAVE_NETINET6_IN6_VAR_H
19173: # include <netinet6/in6_var.h>
19174: #endif
19175: #if HAVE_NETINET6_ND6_H
19176: # include <netinet6/nd6.h>
19177: #endif
19178:
19179: "
19180: if test "x$ac_cv_type_struct_rt_addrinfo" = xyes; then :
19181:
19182: cat >>confdefs.h <<_ACEOF
19183: #define HAVE_STRUCT_RT_ADDRINFO 1
19184: _ACEOF
19185:
19186:
19187: fi
19188: ac_fn_c_check_type "$LINENO" "struct nd_opt_homeagent_info" "ac_cv_type_struct_nd_opt_homeagent_info" "#ifdef SUNOS_5
19189: #define _XPG4_2
19190: #define __EXTENSIONS__
19191: #endif
19192: #include <stdio.h>
19193: #if STDC_HEADERS
19194: # include <stdlib.h>
19195: # include <stddef.h>
19196: #else
19197: # if HAVE_STDLIB_H
19198: # include <stdlib.h>
19199: # endif
19200: #endif
19201: #if HAVE_SYS_TYPES_H
19202: # include <sys/types.h>
19203: #endif
19204: /* sys/conf.h depends on param.h on FBSD at least */
19205: #if HAVE_SYS_PARAM_H
19206: # include <sys/param.h>
19207: #endif
19208: /* Required for MAXSIG */
19209: #if HAVE_SIGNAL_H
19210: # include <signal.h>
19211: #endif
19212: #if HAVE_SYS_SOCKET_H
19213: # include <sys/socket.h>
19214: #endif
19215: #if HAVE_NETINET_IN_H
19216: # include <netinet/in.h>
19217: #endif
19218: #ifdef TIME_WITH_SYS_TIME
19219: # include <sys/time.h>
19220: # include <time.h>
19221: #else
19222: # ifdef HAVE_SYS_TIME_H
19223: # include <sys/time.h>
19224: # else
19225: # include <time.h>
19226: # endif
19227: #endif /* TIME_WITH_SYS_TIME */
19228:
19229: #if HAVE_NET_IF_H
19230: # include <net/if.h>
19231: #endif
19232:
19233: #if HAVE_NET_IF_VAR_H
19234: # include <net/if_var.h>
19235: #endif
19236:
19237: #if HAVE_SYS_UN_H
19238: # include <sys/un.h>
19239: #endif
19240: #if HAVE_NETINET_IN_SYSTM_H
19241: # include <netinet/in_systm.h>
19242: #endif
19243: #if HAVE_NETINET_IN_VAR_H
19244: # include <netinet/in_var.h>
19245: #endif
19246: #if HAVE_NET_IF_DL_H
19247: # include <net/if_dl.h>
19248: #endif
19249: #if HAVE_NET_NETOPT_H
19250: # include <net/netopt.h>
19251: #endif
19252: #if HAVE_NET_ROUTE_H
19253: # include <net/route.h>
19254: #endif
19255: #if HAVE_INET_ND_H
19256: # include <inet/nd.h>
19257: #endif
19258: #if HAVE_ARPA_INET_H
19259: # include <arpa/inet.h>
19260: #endif
19261: /* Required for IDRP */
19262: #if HAVE_NETINET_IP_ICMP_H
19263: # include <netinet/ip_icmp.h>
19264: #endif
19265:
19266: #if HAVE_NETINET6_IN6_H
19267: #include <netinet6/in6.h>
19268: #endif
19269: #if HAVE_NETINET_IN6_VAR_H
19270: #include <netinet/in6_var.h>
19271: #endif
19272: #if HAVE_NETINET_ICMP6_H
19273: # include <netinet/icmp6.h>
19274: #endif
19275: #if HAVE_NETINET6_IN6_VAR_H
19276: # include <netinet6/in6_var.h>
19277: #endif
19278: #if HAVE_NETINET6_ND6_H
19279: # include <netinet6/nd6.h>
19280: #endif
19281:
19282: "
19283: if test "x$ac_cv_type_struct_nd_opt_homeagent_info" = xyes; then :
19284:
19285: cat >>confdefs.h <<_ACEOF
19286: #define HAVE_STRUCT_ND_OPT_HOMEAGENT_INFO 1
19287: _ACEOF
19288:
19289:
19290: fi
19291: ac_fn_c_check_type "$LINENO" "struct nd_opt_adv_interval" "ac_cv_type_struct_nd_opt_adv_interval" "#ifdef SUNOS_5
19292: #define _XPG4_2
19293: #define __EXTENSIONS__
19294: #endif
19295: #include <stdio.h>
19296: #if STDC_HEADERS
19297: # include <stdlib.h>
19298: # include <stddef.h>
19299: #else
19300: # if HAVE_STDLIB_H
19301: # include <stdlib.h>
19302: # endif
19303: #endif
19304: #if HAVE_SYS_TYPES_H
19305: # include <sys/types.h>
19306: #endif
19307: /* sys/conf.h depends on param.h on FBSD at least */
19308: #if HAVE_SYS_PARAM_H
19309: # include <sys/param.h>
19310: #endif
19311: /* Required for MAXSIG */
19312: #if HAVE_SIGNAL_H
19313: # include <signal.h>
19314: #endif
19315: #if HAVE_SYS_SOCKET_H
19316: # include <sys/socket.h>
19317: #endif
19318: #if HAVE_NETINET_IN_H
19319: # include <netinet/in.h>
19320: #endif
19321: #ifdef TIME_WITH_SYS_TIME
19322: # include <sys/time.h>
19323: # include <time.h>
19324: #else
19325: # ifdef HAVE_SYS_TIME_H
19326: # include <sys/time.h>
19327: # else
19328: # include <time.h>
19329: # endif
19330: #endif /* TIME_WITH_SYS_TIME */
19331:
19332: #if HAVE_NET_IF_H
19333: # include <net/if.h>
19334: #endif
19335:
19336: #if HAVE_NET_IF_VAR_H
19337: # include <net/if_var.h>
19338: #endif
19339:
19340: #if HAVE_SYS_UN_H
19341: # include <sys/un.h>
19342: #endif
19343: #if HAVE_NETINET_IN_SYSTM_H
19344: # include <netinet/in_systm.h>
19345: #endif
19346: #if HAVE_NETINET_IN_VAR_H
19347: # include <netinet/in_var.h>
19348: #endif
19349: #if HAVE_NET_IF_DL_H
19350: # include <net/if_dl.h>
19351: #endif
19352: #if HAVE_NET_NETOPT_H
19353: # include <net/netopt.h>
19354: #endif
19355: #if HAVE_NET_ROUTE_H
19356: # include <net/route.h>
19357: #endif
19358: #if HAVE_INET_ND_H
19359: # include <inet/nd.h>
19360: #endif
19361: #if HAVE_ARPA_INET_H
19362: # include <arpa/inet.h>
19363: #endif
19364: /* Required for IDRP */
19365: #if HAVE_NETINET_IP_ICMP_H
19366: # include <netinet/ip_icmp.h>
19367: #endif
19368:
19369: #if HAVE_NETINET6_IN6_H
19370: #include <netinet6/in6.h>
19371: #endif
19372: #if HAVE_NETINET_IN6_VAR_H
19373: #include <netinet/in6_var.h>
19374: #endif
19375: #if HAVE_NETINET_ICMP6_H
19376: # include <netinet/icmp6.h>
19377: #endif
19378: #if HAVE_NETINET6_IN6_VAR_H
19379: # include <netinet6/in6_var.h>
19380: #endif
19381: #if HAVE_NETINET6_ND6_H
19382: # include <netinet6/nd6.h>
19383: #endif
19384:
19385: "
19386: if test "x$ac_cv_type_struct_nd_opt_adv_interval" = xyes; then :
19387:
19388: cat >>confdefs.h <<_ACEOF
19389: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL 1
19390: _ACEOF
19391:
19392:
19393: fi
19394:
19395:
19396: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#ifdef SUNOS_5
19397: #define _XPG4_2
19398: #define __EXTENSIONS__
19399: #endif
19400: #include <stdio.h>
19401: #if STDC_HEADERS
19402: # include <stdlib.h>
19403: # include <stddef.h>
19404: #else
19405: # if HAVE_STDLIB_H
19406: # include <stdlib.h>
19407: # endif
19408: #endif
19409: #if HAVE_SYS_TYPES_H
19410: # include <sys/types.h>
19411: #endif
19412: /* sys/conf.h depends on param.h on FBSD at least */
19413: #if HAVE_SYS_PARAM_H
19414: # include <sys/param.h>
19415: #endif
19416: /* Required for MAXSIG */
19417: #if HAVE_SIGNAL_H
19418: # include <signal.h>
19419: #endif
19420: #if HAVE_SYS_SOCKET_H
19421: # include <sys/socket.h>
19422: #endif
19423: #if HAVE_NETINET_IN_H
19424: # include <netinet/in.h>
19425: #endif
19426: #ifdef TIME_WITH_SYS_TIME
19427: # include <sys/time.h>
19428: # include <time.h>
19429: #else
19430: # ifdef HAVE_SYS_TIME_H
19431: # include <sys/time.h>
19432: # else
19433: # include <time.h>
19434: # endif
19435: #endif /* TIME_WITH_SYS_TIME */
19436:
19437: #if HAVE_NET_IF_H
19438: # include <net/if.h>
19439: #endif
19440:
19441: #if HAVE_NET_IF_VAR_H
19442: # include <net/if_var.h>
19443: #endif
19444:
19445: #if HAVE_SYS_UN_H
19446: # include <sys/un.h>
19447: #endif
19448: #if HAVE_NETINET_IN_SYSTM_H
19449: # include <netinet/in_systm.h>
19450: #endif
19451: #if HAVE_NETINET_IN_VAR_H
19452: # include <netinet/in_var.h>
19453: #endif
19454: #if HAVE_NET_IF_DL_H
19455: # include <net/if_dl.h>
19456: #endif
19457: #if HAVE_NET_NETOPT_H
19458: # include <net/netopt.h>
19459: #endif
19460: #if HAVE_NET_ROUTE_H
19461: # include <net/route.h>
19462: #endif
19463: #if HAVE_INET_ND_H
19464: # include <inet/nd.h>
19465: #endif
19466: #if HAVE_ARPA_INET_H
19467: # include <arpa/inet.h>
19468: #endif
19469: /* Required for IDRP */
19470: #if HAVE_NETINET_IP_ICMP_H
19471: # include <netinet/ip_icmp.h>
19472: #endif
19473:
19474: #if HAVE_NETINET6_IN6_H
19475: #include <netinet6/in6.h>
19476: #endif
19477: #if HAVE_NETINET_IN6_VAR_H
19478: #include <netinet/in6_var.h>
19479: #endif
19480: #if HAVE_NETINET_ICMP6_H
19481: # include <netinet/icmp6.h>
19482: #endif
19483: #if HAVE_NETINET6_IN6_VAR_H
19484: # include <netinet6/in6_var.h>
19485: #endif
19486: #if HAVE_NETINET6_ND6_H
19487: # include <netinet6/nd6.h>
19488: #endif
19489:
19490: "
19491: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
19492:
19493: cat >>confdefs.h <<_ACEOF
19494: #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19495: _ACEOF
19496:
19497:
19498: fi
19499: ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef SUNOS_5
19500: #define _XPG4_2
19501: #define __EXTENSIONS__
19502: #endif
19503: #include <stdio.h>
19504: #if STDC_HEADERS
19505: # include <stdlib.h>
19506: # include <stddef.h>
19507: #else
19508: # if HAVE_STDLIB_H
19509: # include <stdlib.h>
19510: # endif
19511: #endif
19512: #if HAVE_SYS_TYPES_H
19513: # include <sys/types.h>
19514: #endif
19515: /* sys/conf.h depends on param.h on FBSD at least */
19516: #if HAVE_SYS_PARAM_H
19517: # include <sys/param.h>
19518: #endif
19519: /* Required for MAXSIG */
19520: #if HAVE_SIGNAL_H
19521: # include <signal.h>
19522: #endif
19523: #if HAVE_SYS_SOCKET_H
19524: # include <sys/socket.h>
19525: #endif
19526: #if HAVE_NETINET_IN_H
19527: # include <netinet/in.h>
19528: #endif
19529: #ifdef TIME_WITH_SYS_TIME
19530: # include <sys/time.h>
19531: # include <time.h>
19532: #else
19533: # ifdef HAVE_SYS_TIME_H
19534: # include <sys/time.h>
19535: # else
19536: # include <time.h>
19537: # endif
19538: #endif /* TIME_WITH_SYS_TIME */
19539:
19540: #if HAVE_NET_IF_H
19541: # include <net/if.h>
19542: #endif
19543:
19544: #if HAVE_NET_IF_VAR_H
19545: # include <net/if_var.h>
19546: #endif
19547:
19548: #if HAVE_SYS_UN_H
19549: # include <sys/un.h>
19550: #endif
19551: #if HAVE_NETINET_IN_SYSTM_H
19552: # include <netinet/in_systm.h>
19553: #endif
19554: #if HAVE_NETINET_IN_VAR_H
19555: # include <netinet/in_var.h>
19556: #endif
19557: #if HAVE_NET_IF_DL_H
19558: # include <net/if_dl.h>
19559: #endif
19560: #if HAVE_NET_NETOPT_H
19561: # include <net/netopt.h>
19562: #endif
19563: #if HAVE_NET_ROUTE_H
19564: # include <net/route.h>
19565: #endif
19566: #if HAVE_INET_ND_H
19567: # include <inet/nd.h>
19568: #endif
19569: #if HAVE_ARPA_INET_H
19570: # include <arpa/inet.h>
19571: #endif
19572: /* Required for IDRP */
19573: #if HAVE_NETINET_IP_ICMP_H
19574: # include <netinet/ip_icmp.h>
19575: #endif
19576:
19577: #if HAVE_NETINET6_IN6_H
19578: #include <netinet6/in6.h>
19579: #endif
19580: #if HAVE_NETINET_IN6_VAR_H
19581: #include <netinet/in6_var.h>
19582: #endif
19583: #if HAVE_NETINET_ICMP6_H
19584: # include <netinet/icmp6.h>
19585: #endif
19586: #if HAVE_NETINET6_IN6_VAR_H
19587: # include <netinet6/in6_var.h>
19588: #endif
19589: #if HAVE_NETINET6_ND6_H
19590: # include <netinet6/nd6.h>
19591: #endif
19592:
19593: "
19594: if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19595:
19596: cat >>confdefs.h <<_ACEOF
19597: #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
19598: _ACEOF
19599:
19600:
19601: fi
19602: ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#ifdef SUNOS_5
19603: #define _XPG4_2
19604: #define __EXTENSIONS__
19605: #endif
19606: #include <stdio.h>
19607: #if STDC_HEADERS
19608: # include <stdlib.h>
19609: # include <stddef.h>
19610: #else
19611: # if HAVE_STDLIB_H
19612: # include <stdlib.h>
19613: # endif
19614: #endif
19615: #if HAVE_SYS_TYPES_H
19616: # include <sys/types.h>
19617: #endif
19618: /* sys/conf.h depends on param.h on FBSD at least */
19619: #if HAVE_SYS_PARAM_H
19620: # include <sys/param.h>
19621: #endif
19622: /* Required for MAXSIG */
19623: #if HAVE_SIGNAL_H
19624: # include <signal.h>
19625: #endif
19626: #if HAVE_SYS_SOCKET_H
19627: # include <sys/socket.h>
19628: #endif
19629: #if HAVE_NETINET_IN_H
19630: # include <netinet/in.h>
19631: #endif
19632: #ifdef TIME_WITH_SYS_TIME
19633: # include <sys/time.h>
19634: # include <time.h>
19635: #else
19636: # ifdef HAVE_SYS_TIME_H
19637: # include <sys/time.h>
19638: # else
19639: # include <time.h>
19640: # endif
19641: #endif /* TIME_WITH_SYS_TIME */
19642:
19643: #if HAVE_NET_IF_H
19644: # include <net/if.h>
19645: #endif
19646:
19647: #if HAVE_NET_IF_VAR_H
19648: # include <net/if_var.h>
19649: #endif
19650:
19651: #if HAVE_SYS_UN_H
19652: # include <sys/un.h>
19653: #endif
19654: #if HAVE_NETINET_IN_SYSTM_H
19655: # include <netinet/in_systm.h>
19656: #endif
19657: #if HAVE_NETINET_IN_VAR_H
19658: # include <netinet/in_var.h>
19659: #endif
19660: #if HAVE_NET_IF_DL_H
19661: # include <net/if_dl.h>
19662: #endif
19663: #if HAVE_NET_NETOPT_H
19664: # include <net/netopt.h>
19665: #endif
19666: #if HAVE_NET_ROUTE_H
19667: # include <net/route.h>
19668: #endif
19669: #if HAVE_INET_ND_H
19670: # include <inet/nd.h>
19671: #endif
19672: #if HAVE_ARPA_INET_H
19673: # include <arpa/inet.h>
19674: #endif
19675: /* Required for IDRP */
19676: #if HAVE_NETINET_IP_ICMP_H
19677: # include <netinet/ip_icmp.h>
19678: #endif
19679:
19680: #if HAVE_NETINET6_IN6_H
19681: #include <netinet6/in6.h>
19682: #endif
19683: #if HAVE_NETINET_IN6_VAR_H
19684: #include <netinet/in6_var.h>
19685: #endif
19686: #if HAVE_NETINET_ICMP6_H
19687: # include <netinet/icmp6.h>
19688: #endif
19689: #if HAVE_NETINET6_IN6_VAR_H
19690: # include <netinet6/in6_var.h>
19691: #endif
19692: #if HAVE_NETINET6_ND6_H
19693: # include <netinet6/nd6.h>
19694: #endif
19695:
19696: "
19697: if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19698:
19699: cat >>confdefs.h <<_ACEOF
19700: #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19701: _ACEOF
19702:
19703:
19704: fi
19705: ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef SUNOS_5
19706: #define _XPG4_2
19707: #define __EXTENSIONS__
19708: #endif
19709: #include <stdio.h>
19710: #if STDC_HEADERS
19711: # include <stdlib.h>
19712: # include <stddef.h>
19713: #else
19714: # if HAVE_STDLIB_H
19715: # include <stdlib.h>
19716: # endif
19717: #endif
19718: #if HAVE_SYS_TYPES_H
19719: # include <sys/types.h>
19720: #endif
19721: /* sys/conf.h depends on param.h on FBSD at least */
19722: #if HAVE_SYS_PARAM_H
19723: # include <sys/param.h>
19724: #endif
19725: /* Required for MAXSIG */
19726: #if HAVE_SIGNAL_H
19727: # include <signal.h>
19728: #endif
19729: #if HAVE_SYS_SOCKET_H
19730: # include <sys/socket.h>
19731: #endif
19732: #if HAVE_NETINET_IN_H
19733: # include <netinet/in.h>
19734: #endif
19735: #ifdef TIME_WITH_SYS_TIME
19736: # include <sys/time.h>
19737: # include <time.h>
19738: #else
19739: # ifdef HAVE_SYS_TIME_H
19740: # include <sys/time.h>
19741: # else
19742: # include <time.h>
19743: # endif
19744: #endif /* TIME_WITH_SYS_TIME */
19745:
19746: #if HAVE_NET_IF_H
19747: # include <net/if.h>
19748: #endif
19749:
19750: #if HAVE_NET_IF_VAR_H
19751: # include <net/if_var.h>
19752: #endif
19753:
19754: #if HAVE_SYS_UN_H
19755: # include <sys/un.h>
19756: #endif
19757: #if HAVE_NETINET_IN_SYSTM_H
19758: # include <netinet/in_systm.h>
19759: #endif
19760: #if HAVE_NETINET_IN_VAR_H
19761: # include <netinet/in_var.h>
19762: #endif
19763: #if HAVE_NET_IF_DL_H
19764: # include <net/if_dl.h>
19765: #endif
19766: #if HAVE_NET_NETOPT_H
19767: # include <net/netopt.h>
19768: #endif
19769: #if HAVE_NET_ROUTE_H
19770: # include <net/route.h>
19771: #endif
19772: #if HAVE_INET_ND_H
19773: # include <inet/nd.h>
19774: #endif
19775: #if HAVE_ARPA_INET_H
19776: # include <arpa/inet.h>
19777: #endif
19778: /* Required for IDRP */
19779: #if HAVE_NETINET_IP_ICMP_H
19780: # include <netinet/ip_icmp.h>
19781: #endif
19782:
19783: #if HAVE_NETINET6_IN6_H
19784: #include <netinet6/in6.h>
19785: #endif
19786: #if HAVE_NETINET_IN6_VAR_H
19787: #include <netinet/in6_var.h>
19788: #endif
19789: #if HAVE_NETINET_ICMP6_H
19790: # include <netinet/icmp6.h>
19791: #endif
19792: #if HAVE_NETINET6_IN6_VAR_H
19793: # include <netinet6/in6_var.h>
19794: #endif
19795: #if HAVE_NETINET6_ND6_H
19796: # include <netinet6/nd6.h>
19797: #endif
19798:
19799: "
19800: if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
19801:
19802: cat >>confdefs.h <<_ACEOF
19803: #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19804: _ACEOF
19805:
19806:
19807: fi
19808: ac_fn_c_check_member "$LINENO" "struct if6_aliasreq" "ifra_lifetime" "ac_cv_member_struct_if6_aliasreq_ifra_lifetime" "#ifdef SUNOS_5
19809: #define _XPG4_2
19810: #define __EXTENSIONS__
19811: #endif
19812: #include <stdio.h>
19813: #if STDC_HEADERS
19814: # include <stdlib.h>
19815: # include <stddef.h>
19816: #else
19817: # if HAVE_STDLIB_H
19818: # include <stdlib.h>
19819: # endif
19820: #endif
19821: #if HAVE_SYS_TYPES_H
19822: # include <sys/types.h>
19823: #endif
19824: /* sys/conf.h depends on param.h on FBSD at least */
19825: #if HAVE_SYS_PARAM_H
19826: # include <sys/param.h>
19827: #endif
19828: /* Required for MAXSIG */
19829: #if HAVE_SIGNAL_H
19830: # include <signal.h>
19831: #endif
19832: #if HAVE_SYS_SOCKET_H
19833: # include <sys/socket.h>
19834: #endif
19835: #if HAVE_NETINET_IN_H
19836: # include <netinet/in.h>
19837: #endif
19838: #ifdef TIME_WITH_SYS_TIME
19839: # include <sys/time.h>
19840: # include <time.h>
19841: #else
19842: # ifdef HAVE_SYS_TIME_H
19843: # include <sys/time.h>
19844: # else
19845: # include <time.h>
19846: # endif
19847: #endif /* TIME_WITH_SYS_TIME */
19848:
19849: #if HAVE_NET_IF_H
19850: # include <net/if.h>
19851: #endif
19852:
19853: #if HAVE_NET_IF_VAR_H
19854: # include <net/if_var.h>
19855: #endif
19856:
19857: #if HAVE_SYS_UN_H
19858: # include <sys/un.h>
19859: #endif
19860: #if HAVE_NETINET_IN_SYSTM_H
19861: # include <netinet/in_systm.h>
19862: #endif
19863: #if HAVE_NETINET_IN_VAR_H
19864: # include <netinet/in_var.h>
19865: #endif
19866: #if HAVE_NET_IF_DL_H
19867: # include <net/if_dl.h>
19868: #endif
19869: #if HAVE_NET_NETOPT_H
19870: # include <net/netopt.h>
19871: #endif
19872: #if HAVE_NET_ROUTE_H
19873: # include <net/route.h>
19874: #endif
19875: #if HAVE_INET_ND_H
19876: # include <inet/nd.h>
19877: #endif
19878: #if HAVE_ARPA_INET_H
19879: # include <arpa/inet.h>
19880: #endif
19881: /* Required for IDRP */
19882: #if HAVE_NETINET_IP_ICMP_H
19883: # include <netinet/ip_icmp.h>
19884: #endif
19885:
19886: #if HAVE_NETINET6_IN6_H
19887: #include <netinet6/in6.h>
19888: #endif
19889: #if HAVE_NETINET_IN6_VAR_H
19890: #include <netinet/in6_var.h>
19891: #endif
19892: #if HAVE_NETINET_ICMP6_H
19893: # include <netinet/icmp6.h>
19894: #endif
19895: #if HAVE_NETINET6_IN6_VAR_H
19896: # include <netinet6/in6_var.h>
19897: #endif
19898: #if HAVE_NETINET6_ND6_H
19899: # include <netinet6/nd6.h>
19900: #endif
19901:
19902: "
19903: if test "x$ac_cv_member_struct_if6_aliasreq_ifra_lifetime" = xyes; then :
19904:
19905: cat >>confdefs.h <<_ACEOF
19906: #define HAVE_STRUCT_IF6_ALIASREQ_IFRA_LIFETIME 1
19907: _ACEOF
19908:
19909:
19910: fi
19911: 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
19912: #define _XPG4_2
19913: #define __EXTENSIONS__
19914: #endif
19915: #include <stdio.h>
19916: #if STDC_HEADERS
19917: # include <stdlib.h>
19918: # include <stddef.h>
19919: #else
19920: # if HAVE_STDLIB_H
19921: # include <stdlib.h>
19922: # endif
19923: #endif
19924: #if HAVE_SYS_TYPES_H
19925: # include <sys/types.h>
19926: #endif
19927: /* sys/conf.h depends on param.h on FBSD at least */
19928: #if HAVE_SYS_PARAM_H
19929: # include <sys/param.h>
19930: #endif
19931: /* Required for MAXSIG */
19932: #if HAVE_SIGNAL_H
19933: # include <signal.h>
19934: #endif
19935: #if HAVE_SYS_SOCKET_H
19936: # include <sys/socket.h>
19937: #endif
19938: #if HAVE_NETINET_IN_H
19939: # include <netinet/in.h>
19940: #endif
19941: #ifdef TIME_WITH_SYS_TIME
19942: # include <sys/time.h>
19943: # include <time.h>
19944: #else
19945: # ifdef HAVE_SYS_TIME_H
19946: # include <sys/time.h>
19947: # else
19948: # include <time.h>
19949: # endif
19950: #endif /* TIME_WITH_SYS_TIME */
19951:
19952: #if HAVE_NET_IF_H
19953: # include <net/if.h>
19954: #endif
19955:
19956: #if HAVE_NET_IF_VAR_H
19957: # include <net/if_var.h>
19958: #endif
19959:
19960: #if HAVE_SYS_UN_H
19961: # include <sys/un.h>
19962: #endif
19963: #if HAVE_NETINET_IN_SYSTM_H
19964: # include <netinet/in_systm.h>
19965: #endif
19966: #if HAVE_NETINET_IN_VAR_H
19967: # include <netinet/in_var.h>
19968: #endif
19969: #if HAVE_NET_IF_DL_H
19970: # include <net/if_dl.h>
19971: #endif
19972: #if HAVE_NET_NETOPT_H
19973: # include <net/netopt.h>
19974: #endif
19975: #if HAVE_NET_ROUTE_H
19976: # include <net/route.h>
19977: #endif
19978: #if HAVE_INET_ND_H
19979: # include <inet/nd.h>
19980: #endif
19981: #if HAVE_ARPA_INET_H
19982: # include <arpa/inet.h>
19983: #endif
19984: /* Required for IDRP */
19985: #if HAVE_NETINET_IP_ICMP_H
19986: # include <netinet/ip_icmp.h>
19987: #endif
19988:
19989: #if HAVE_NETINET6_IN6_H
19990: #include <netinet6/in6.h>
19991: #endif
19992: #if HAVE_NETINET_IN6_VAR_H
19993: #include <netinet/in6_var.h>
19994: #endif
19995: #if HAVE_NETINET_ICMP6_H
19996: # include <netinet/icmp6.h>
19997: #endif
19998: #if HAVE_NETINET6_IN6_VAR_H
19999: # include <netinet6/in6_var.h>
20000: #endif
20001: #if HAVE_NETINET6_ND6_H
20002: # include <netinet6/nd6.h>
20003: #endif
20004:
20005: "
20006: if test "x$ac_cv_member_struct_nd_opt_adv_interval_nd_opt_ai_type" = xyes; then :
20007:
20008: cat >>confdefs.h <<_ACEOF
20009: #define HAVE_STRUCT_ND_OPT_ADV_INTERVAL_ND_OPT_AI_TYPE 1
20010: _ACEOF
20011:
20012:
20013: fi
20014:
20015:
20016: ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#ifdef SUNOS_5
20017: #define _XPG4_2
20018: #define __EXTENSIONS__
20019: #endif
20020: #include <stdio.h>
20021: #if STDC_HEADERS
20022: # include <stdlib.h>
20023: # include <stddef.h>
20024: #else
20025: # if HAVE_STDLIB_H
20026: # include <stdlib.h>
20027: # endif
20028: #endif
20029: #if HAVE_SYS_TYPES_H
20030: # include <sys/types.h>
20031: #endif
20032: /* sys/conf.h depends on param.h on FBSD at least */
20033: #if HAVE_SYS_PARAM_H
20034: # include <sys/param.h>
20035: #endif
20036: /* Required for MAXSIG */
20037: #if HAVE_SIGNAL_H
20038: # include <signal.h>
20039: #endif
20040: #if HAVE_SYS_SOCKET_H
20041: # include <sys/socket.h>
20042: #endif
20043: #if HAVE_NETINET_IN_H
20044: # include <netinet/in.h>
20045: #endif
20046: #ifdef TIME_WITH_SYS_TIME
20047: # include <sys/time.h>
20048: # include <time.h>
20049: #else
20050: # ifdef HAVE_SYS_TIME_H
20051: # include <sys/time.h>
20052: # else
20053: # include <time.h>
20054: # endif
20055: #endif /* TIME_WITH_SYS_TIME */
20056:
20057: #if HAVE_NET_IF_H
20058: # include <net/if.h>
20059: #endif
20060:
20061: #if HAVE_NET_IF_VAR_H
20062: # include <net/if_var.h>
20063: #endif
20064:
20065: #if HAVE_SYS_UN_H
20066: # include <sys/un.h>
20067: #endif
20068: #if HAVE_NETINET_IN_SYSTM_H
20069: # include <netinet/in_systm.h>
20070: #endif
20071: #if HAVE_NETINET_IN_VAR_H
20072: # include <netinet/in_var.h>
20073: #endif
20074: #if HAVE_NET_IF_DL_H
20075: # include <net/if_dl.h>
20076: #endif
20077: #if HAVE_NET_NETOPT_H
20078: # include <net/netopt.h>
20079: #endif
20080: #if HAVE_NET_ROUTE_H
20081: # include <net/route.h>
20082: #endif
20083: #if HAVE_INET_ND_H
20084: # include <inet/nd.h>
20085: #endif
20086: #if HAVE_ARPA_INET_H
20087: # include <arpa/inet.h>
20088: #endif
20089: /* Required for IDRP */
20090: #if HAVE_NETINET_IP_ICMP_H
20091: # include <netinet/ip_icmp.h>
20092: #endif
20093:
20094: #if HAVE_NETINET6_IN6_H
20095: #include <netinet6/in6.h>
20096: #endif
20097: #if HAVE_NETINET_IN6_VAR_H
20098: #include <netinet/in6_var.h>
20099: #endif
20100: #if HAVE_NETINET_ICMP6_H
20101: # include <netinet/icmp6.h>
20102: #endif
20103: #if HAVE_NETINET6_IN6_VAR_H
20104: # include <netinet6/in6_var.h>
20105: #endif
20106: #if HAVE_NETINET6_ND6_H
20107: # include <netinet6/nd6.h>
20108: #endif
20109:
20110: "
20111: if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
20112:
20113: cat >>confdefs.h <<_ACEOF
20114: #define HAVE_STRUCT_IN_PKTINFO 1
20115: _ACEOF
20116:
20117: ac_fn_c_check_type "$LINENO" "struct icmphdr" "ac_cv_type_struct_icmphdr" "#ifdef SUNOS_5
20118: #define _XPG4_2
20119: #define __EXTENSIONS__
20120: #endif
20121: #include <stdio.h>
20122: #if STDC_HEADERS
20123: # include <stdlib.h>
20124: # include <stddef.h>
20125: #else
20126: # if HAVE_STDLIB_H
20127: # include <stdlib.h>
20128: # endif
20129: #endif
20130: #if HAVE_SYS_TYPES_H
20131: # include <sys/types.h>
20132: #endif
20133: /* sys/conf.h depends on param.h on FBSD at least */
20134: #if HAVE_SYS_PARAM_H
20135: # include <sys/param.h>
20136: #endif
20137: /* Required for MAXSIG */
20138: #if HAVE_SIGNAL_H
20139: # include <signal.h>
20140: #endif
20141: #if HAVE_SYS_SOCKET_H
20142: # include <sys/socket.h>
20143: #endif
20144: #if HAVE_NETINET_IN_H
20145: # include <netinet/in.h>
20146: #endif
20147: #ifdef TIME_WITH_SYS_TIME
20148: # include <sys/time.h>
20149: # include <time.h>
20150: #else
20151: # ifdef HAVE_SYS_TIME_H
20152: # include <sys/time.h>
20153: # else
20154: # include <time.h>
20155: # endif
20156: #endif /* TIME_WITH_SYS_TIME */
20157:
20158: #if HAVE_NET_IF_H
20159: # include <net/if.h>
20160: #endif
20161:
20162: #if HAVE_NET_IF_VAR_H
20163: # include <net/if_var.h>
20164: #endif
20165:
20166: #if HAVE_SYS_UN_H
20167: # include <sys/un.h>
20168: #endif
20169: #if HAVE_NETINET_IN_SYSTM_H
20170: # include <netinet/in_systm.h>
20171: #endif
20172: #if HAVE_NETINET_IN_VAR_H
20173: # include <netinet/in_var.h>
20174: #endif
20175: #if HAVE_NET_IF_DL_H
20176: # include <net/if_dl.h>
20177: #endif
20178: #if HAVE_NET_NETOPT_H
20179: # include <net/netopt.h>
20180: #endif
20181: #if HAVE_NET_ROUTE_H
20182: # include <net/route.h>
20183: #endif
20184: #if HAVE_INET_ND_H
20185: # include <inet/nd.h>
20186: #endif
20187: #if HAVE_ARPA_INET_H
20188: # include <arpa/inet.h>
20189: #endif
20190: /* Required for IDRP */
20191: #if HAVE_NETINET_IP_ICMP_H
20192: # include <netinet/ip_icmp.h>
20193: #endif
20194:
20195: #if HAVE_NETINET6_IN6_H
20196: #include <netinet6/in6.h>
20197: #endif
20198: #if HAVE_NETINET_IN6_VAR_H
20199: #include <netinet/in6_var.h>
20200: #endif
20201: #if HAVE_NETINET_ICMP6_H
20202: # include <netinet/icmp6.h>
20203: #endif
20204: #if HAVE_NETINET6_IN6_VAR_H
20205: # include <netinet6/in6_var.h>
20206: #endif
20207: #if HAVE_NETINET6_ND6_H
20208: # include <netinet6/nd6.h>
20209: #endif
20210:
20211: "
20212: if test "x$ac_cv_type_struct_icmphdr" = xyes; then :
20213:
20214: cat >>confdefs.h <<_ACEOF
20215: #define HAVE_STRUCT_ICMPHDR 1
20216: _ACEOF
20217:
20218: if test "${enable_irdp}" != "no"; then
20219:
20220: $as_echo "#define HAVE_IRDP /**/" >>confdefs.h
20221:
20222: fi
20223: else
20224: if test "${enable_irdp}" = "yes"; then
20225: as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
20226: fi
20227: fi
20228:
20229: else
20230: if test "${enable_irdp}" = "yes"; then
20231: as_fn_error $? "'IRDP requires in_pktinfo at the moment!'" "$LINENO" 5
20232: fi
20233: fi
20234:
20235:
20236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrusage is available" >&5
20237: $as_echo_n "checking whether getrusage is available... " >&6; }
20238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239: /* end confdefs.h. */
20240: #include <sys/resource.h>
20241:
20242: int
20243: main ()
20244: {
20245: struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
20246: ;
20247: return 0;
20248: }
20249: _ACEOF
20250: if ac_fn_c_try_compile "$LINENO"; then :
20251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20252: $as_echo "yes" >&6; }
20253:
20254: $as_echo "#define HAVE_RUSAGE /**/" >>confdefs.h
20255:
20256: else
20257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20258: $as_echo "no" >&6; }
20259: fi
20260: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20261:
20262: ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#ifdef SUNOS_5
20263: #define _XPG4_2
20264: #define __EXTENSIONS__
20265: #endif
20266: #include <stdio.h>
20267: #if STDC_HEADERS
20268: # include <stdlib.h>
20269: # include <stddef.h>
20270: #else
20271: # if HAVE_STDLIB_H
20272: # include <stdlib.h>
20273: # endif
20274: #endif
20275: #if HAVE_SYS_TYPES_H
20276: # include <sys/types.h>
20277: #endif
20278: /* sys/conf.h depends on param.h on FBSD at least */
20279: #if HAVE_SYS_PARAM_H
20280: # include <sys/param.h>
20281: #endif
20282: /* Required for MAXSIG */
20283: #if HAVE_SIGNAL_H
20284: # include <signal.h>
20285: #endif
20286: #if HAVE_SYS_SOCKET_H
20287: # include <sys/socket.h>
20288: #endif
20289: #if HAVE_NETINET_IN_H
20290: # include <netinet/in.h>
20291: #endif
20292: #ifdef TIME_WITH_SYS_TIME
20293: # include <sys/time.h>
20294: # include <time.h>
20295: #else
20296: # ifdef HAVE_SYS_TIME_H
20297: # include <sys/time.h>
20298: # else
20299: # include <time.h>
20300: # endif
20301: #endif /* TIME_WITH_SYS_TIME */
20302:
20303: #if HAVE_NET_IF_H
20304: # include <net/if.h>
20305: #endif
20306:
20307: #if HAVE_NET_IF_VAR_H
20308: # include <net/if_var.h>
20309: #endif
20310:
20311: #if HAVE_SYS_UN_H
20312: # include <sys/un.h>
20313: #endif
20314: #if HAVE_NETINET_IN_SYSTM_H
20315: # include <netinet/in_systm.h>
20316: #endif
20317: #if HAVE_NETINET_IN_VAR_H
20318: # include <netinet/in_var.h>
20319: #endif
20320: #if HAVE_NET_IF_DL_H
20321: # include <net/if_dl.h>
20322: #endif
20323: #if HAVE_NET_NETOPT_H
20324: # include <net/netopt.h>
20325: #endif
20326: #if HAVE_NET_ROUTE_H
20327: # include <net/route.h>
20328: #endif
20329: #if HAVE_INET_ND_H
20330: # include <inet/nd.h>
20331: #endif
20332: #if HAVE_ARPA_INET_H
20333: # include <arpa/inet.h>
20334: #endif
20335: /* Required for IDRP */
20336: #if HAVE_NETINET_IP_ICMP_H
20337: # include <netinet/ip_icmp.h>
20338: #endif
20339:
20340: #if HAVE_NETINET6_IN6_H
20341: #include <netinet6/in6.h>
20342: #endif
20343: #if HAVE_NETINET_IN6_VAR_H
20344: #include <netinet/in6_var.h>
20345: #endif
20346: #if HAVE_NETINET_ICMP6_H
20347: # include <netinet/icmp6.h>
20348: #endif
20349: #if HAVE_NETINET6_IN6_VAR_H
20350: # include <netinet6/in6_var.h>
20351: #endif
20352: #if HAVE_NETINET6_ND6_H
20353: # include <netinet6/nd6.h>
20354: #endif
20355:
20356: "
20357: if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
20358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
20359: $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
20360: if ${ac_cv_lib_rt_clock_gettime+:} false; then :
20361: $as_echo_n "(cached) " >&6
20362: else
20363: ac_check_lib_save_LIBS=$LIBS
20364: LIBS="-lrt $LIBS"
20365: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20366: /* end confdefs.h. */
20367:
20368: /* Override any GCC internal prototype to avoid an error.
20369: Use char because int might match the return type of a GCC
20370: builtin and then its argument prototype would still apply. */
20371: #ifdef __cplusplus
20372: extern "C"
20373: #endif
20374: char clock_gettime ();
20375: int
20376: main ()
20377: {
20378: return clock_gettime ();
20379: ;
20380: return 0;
20381: }
20382: _ACEOF
20383: if ac_fn_c_try_link "$LINENO"; then :
20384: ac_cv_lib_rt_clock_gettime=yes
20385: else
20386: ac_cv_lib_rt_clock_gettime=no
20387: fi
20388: rm -f core conftest.err conftest.$ac_objext \
20389: conftest$ac_exeext conftest.$ac_ext
20390: LIBS=$ac_check_lib_save_LIBS
20391: fi
20392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
20393: $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
20394: if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
20395: LIBS="$LIBS -lrt"
20396: fi
20397:
20398:
20399: $as_echo "#define HAVE_CLOCK_MONOTONIC /**/" >>confdefs.h
20400:
20401:
20402: else
20403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20404: $as_echo "no" >&6; }
20405: fi
20406:
20407:
20408: if test "${enable_capabilities}" != "no"; then
20409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prctl PR_SET_KEEPCAPS is available" >&5
20410: $as_echo_n "checking whether prctl PR_SET_KEEPCAPS is available... " >&6; }
20411: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412: /* end confdefs.h. */
20413: #include <sys/prctl.h>
20414: int
20415: main ()
20416: {
20417: prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
20418: ;
20419: return 0;
20420: }
20421: _ACEOF
20422: if ac_fn_c_try_compile "$LINENO"; then :
20423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20424: $as_echo "yes" >&6; }
20425:
20426: $as_echo "#define HAVE_PR_SET_KEEPCAPS /**/" >>confdefs.h
20427:
20428: quagga_ac_keepcaps="yes"
20429: else
20430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20431: $as_echo "no" >&6; }
20432:
20433: fi
20434: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435: if test x"${quagga_ac_keepcaps}" = x"yes"; then
20436: for ac_header in sys/capability.h
20437: do :
20438: ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
20439: if test "x$ac_cv_header_sys_capability_h" = xyes; then :
20440: cat >>confdefs.h <<_ACEOF
20441: #define HAVE_SYS_CAPABILITY_H 1
20442: _ACEOF
20443:
20444: fi
20445:
20446: done
20447:
20448: fi
20449: if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
20450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
20451: $as_echo_n "checking for cap_init in -lcap... " >&6; }
20452: if ${ac_cv_lib_cap_cap_init+:} false; then :
20453: $as_echo_n "(cached) " >&6
20454: else
20455: ac_check_lib_save_LIBS=$LIBS
20456: LIBS="-lcap $LIBS"
20457: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458: /* end confdefs.h. */
20459:
20460: /* Override any GCC internal prototype to avoid an error.
20461: Use char because int might match the return type of a GCC
20462: builtin and then its argument prototype would still apply. */
20463: #ifdef __cplusplus
20464: extern "C"
20465: #endif
20466: char cap_init ();
20467: int
20468: main ()
20469: {
20470: return cap_init ();
20471: ;
20472: return 0;
20473: }
20474: _ACEOF
20475: if ac_fn_c_try_link "$LINENO"; then :
20476: ac_cv_lib_cap_cap_init=yes
20477: else
20478: ac_cv_lib_cap_cap_init=no
20479: fi
20480: rm -f core conftest.err conftest.$ac_objext \
20481: conftest$ac_exeext conftest.$ac_ext
20482: LIBS=$ac_check_lib_save_LIBS
20483: fi
20484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
20485: $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
20486: if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
20487:
20488: $as_echo "#define HAVE_LCAPS 1" >>confdefs.h
20489:
20490: LIBCAP="-lcap"
20491: quagga_ac_lcaps="yes"
20492:
20493: fi
20494:
20495: else
20496: for ac_header in priv.h
20497: do :
20498: ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
20499: if test "x$ac_cv_header_priv_h" = xyes; then :
20500: cat >>confdefs.h <<_ACEOF
20501: #define HAVE_PRIV_H 1
20502: _ACEOF
20503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris style privileges are available" >&5
20504: $as_echo_n "checking Solaris style privileges are available... " >&6; }
20505: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506: /* end confdefs.h. */
20507: #include <priv.h>
20508: int
20509: main ()
20510: {
20511: getpflags(PRIV_AWARE);
20512: ;
20513: return 0;
20514: }
20515: _ACEOF
20516: if ac_fn_c_try_compile "$LINENO"; then :
20517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20518: $as_echo "yes" >&6; }
20519:
20520: $as_echo "#define HAVE_SOLARIS_CAPABILITIES 1" >>confdefs.h
20521:
20522: quagga_ac_scaps="yes"
20523: else
20524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20525: $as_echo "no" >&6; }
20526:
20527: fi
20528: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529:
20530:
20531: fi
20532:
20533: done
20534:
20535: fi
20536: if test x"${quagga_ac_scaps}" = x"yes" \
20537: -o x"${quagga_ac_lcaps}" = x"yes"; then
20538:
20539: $as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h
20540:
20541: fi
20542: fi
20543:
20544:
20545: ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
20546: if test "x$ac_cv_header_execinfo_h" = xyes; then :
20547: ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
20548: if test "x$ac_cv_func_backtrace" = xyes; then :
20549:
20550: $as_echo "#define HAVE_GLIBC_BACKTRACE /**/" >>confdefs.h
20551:
20552:
20553: $as_echo "#define HAVE_STACK_TRACE /**/" >>confdefs.h
20554:
20555:
20556: fi
20557:
20558:
20559: fi
20560:
20561:
20562:
20563: ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "#ifdef SUNOS_5
20564: #define _XPG4_2
20565: #define __EXTENSIONS__
20566: #endif
20567: #include <stdio.h>
20568: #if STDC_HEADERS
20569: # include <stdlib.h>
20570: # include <stddef.h>
20571: #else
20572: # if HAVE_STDLIB_H
20573: # include <stdlib.h>
20574: # endif
20575: #endif
20576: #if HAVE_SYS_TYPES_H
20577: # include <sys/types.h>
20578: #endif
20579: /* sys/conf.h depends on param.h on FBSD at least */
20580: #if HAVE_SYS_PARAM_H
20581: # include <sys/param.h>
20582: #endif
20583: /* Required for MAXSIG */
20584: #if HAVE_SIGNAL_H
20585: # include <signal.h>
20586: #endif
20587: #if HAVE_SYS_SOCKET_H
20588: # include <sys/socket.h>
20589: #endif
20590: #if HAVE_NETINET_IN_H
20591: # include <netinet/in.h>
20592: #endif
20593: #ifdef TIME_WITH_SYS_TIME
20594: # include <sys/time.h>
20595: # include <time.h>
20596: #else
20597: # ifdef HAVE_SYS_TIME_H
20598: # include <sys/time.h>
20599: # else
20600: # include <time.h>
20601: # endif
20602: #endif /* TIME_WITH_SYS_TIME */
20603:
20604: #if HAVE_NET_IF_H
20605: # include <net/if.h>
20606: #endif
20607:
20608: #if HAVE_NET_IF_VAR_H
20609: # include <net/if_var.h>
20610: #endif
20611:
20612: #if HAVE_SYS_UN_H
20613: # include <sys/un.h>
20614: #endif
20615: #if HAVE_NETINET_IN_SYSTM_H
20616: # include <netinet/in_systm.h>
20617: #endif
20618: #if HAVE_NETINET_IN_VAR_H
20619: # include <netinet/in_var.h>
20620: #endif
20621: #if HAVE_NET_IF_DL_H
20622: # include <net/if_dl.h>
20623: #endif
20624: #if HAVE_NET_NETOPT_H
20625: # include <net/netopt.h>
20626: #endif
20627: #if HAVE_NET_ROUTE_H
20628: # include <net/route.h>
20629: #endif
20630: #if HAVE_INET_ND_H
20631: # include <inet/nd.h>
20632: #endif
20633: #if HAVE_ARPA_INET_H
20634: # include <arpa/inet.h>
20635: #endif
20636: /* Required for IDRP */
20637: #if HAVE_NETINET_IP_ICMP_H
20638: # include <netinet/ip_icmp.h>
20639: #endif
20640:
20641: #if HAVE_NETINET6_IN6_H
20642: #include <netinet6/in6.h>
20643: #endif
20644: #if HAVE_NETINET_IN6_VAR_H
20645: #include <netinet/in6_var.h>
20646: #endif
20647: #if HAVE_NETINET_ICMP6_H
20648: # include <netinet/icmp6.h>
20649: #endif
20650: #if HAVE_NETINET6_IN6_VAR_H
20651: # include <netinet6/in6_var.h>
20652: #endif
20653: #if HAVE_NETINET6_ND6_H
20654: # include <netinet6/nd6.h>
20655: #endif
20656:
20657: "
20658: if test "x$ac_cv_header_malloc_h" = xyes; then :
20659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mallinfo is available" >&5
20660: $as_echo_n "checking whether mallinfo is available... " >&6; }
20661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20662: /* end confdefs.h. */
20663: #include <malloc.h>
20664: int
20665: main ()
20666: {
20667: struct mallinfo ac_x; ac_x = mallinfo ();
20668: ;
20669: return 0;
20670: }
20671: _ACEOF
20672: if ac_fn_c_try_link "$LINENO"; then :
20673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20674: $as_echo "yes" >&6; }
20675:
20676: $as_echo "#define HAVE_MALLINFO /**/" >>confdefs.h
20677:
20678: else
20679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20680: $as_echo "no" >&6; }
20681:
20682: fi
20683: rm -f core conftest.err conftest.$ac_objext \
20684: conftest$ac_exeext conftest.$ac_ext
20685:
20686: fi
20687:
20688:
20689:
20690: CONFDATE=`date '+%Y%m%d'`
20691:
20692:
20693: # Check whether --enable-pie was given.
20694: if test "${enable_pie+set}" = set; then :
20695: enableval=$enable_pie;
20696: fi
20697:
20698: if test "$enable_pie" != "no"; then
20699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts PIE flags" >&5
20700: $as_echo_n "checking whether $CC accepts PIE flags... " >&6; }
20701: if ${ap_cv_cc_pie+:} false; then :
20702: $as_echo_n "(cached) " >&6
20703: else
20704:
20705: save_CFLAGS=$CFLAGS
20706: save_LDFLAGS=$LDFLAGS
20707: CFLAGS="$CFLAGS -fPIE"
20708: LDFLAGS="$LDFLAGS -pie"
20709: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710: /* end confdefs.h. */
20711: static int foo[30000]; int main () { return 0; }
20712: _ACEOF
20713: if ac_fn_c_try_link "$LINENO"; then :
20714: ap_cv_cc_pie=yes
20715: else
20716: ap_cv_cc_pie=no
20717:
20718: fi
20719: rm -f core conftest.err conftest.$ac_objext \
20720: conftest$ac_exeext conftest.$ac_ext
20721: CFLAGS=$save_CFLAGS
20722: LDFLAGS=$save_LDFLAGS
20723:
20724: fi
20725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_cc_pie" >&5
20726: $as_echo "$ap_cv_cc_pie" >&6; }
20727: if test "$ap_cv_cc_pie" = "yes"; then
20728: PICFLAGS="-fPIE"
20729: PILDFLAGS="-pie"
20730: fi
20731: fi
20732:
20733:
20734:
20735:
20736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking directory to use for state file" >&5
20737: $as_echo_n "checking directory to use for state file... " >&6; }
20738: if test "${prefix}" = "NONE"; then
20739: quagga_statedir_prefix="";
20740: else
20741: quagga_statedir_prefix=${prefix}
20742: fi
20743: if test "${localstatedir}" = '${prefix}/var'; then
20744: 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;
20745: do
20746: test -d $QUAGGA_STATE_DIR && break
20747: done
20748: quagga_statedir=$QUAGGA_STATE_DIR
20749: else
20750: quagga_statedir=${localstatedir}
20751: fi
20752: if test $quagga_statedir = "/dev/null"; then
20753: as_fn_error $? "'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" "$LINENO" 5
20754: fi
20755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${quagga_statedir}" >&5
20756: $as_echo "${quagga_statedir}" >&6; }
20757:
20758:
20759:
20760: cat >>confdefs.h <<_ACEOF
20761: #define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
20762: _ACEOF
20763:
20764:
20765: cat >>confdefs.h <<_ACEOF
20766: #define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
20767: _ACEOF
20768:
20769:
20770: cat >>confdefs.h <<_ACEOF
20771: #define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
20772: _ACEOF
20773:
20774:
20775: cat >>confdefs.h <<_ACEOF
20776: #define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
20777: _ACEOF
20778:
20779:
20780: cat >>confdefs.h <<_ACEOF
20781: #define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
20782: _ACEOF
20783:
20784:
20785: cat >>confdefs.h <<_ACEOF
20786: #define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
20787: _ACEOF
20788:
20789:
20790: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 20791: #define PATH_BABELD_PID "$quagga_statedir/babeld.pid"
! 20792: _ACEOF
! 20793:
! 20794:
! 20795: cat >>confdefs.h <<_ACEOF
1.1 misho 20796: #define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
20797: _ACEOF
20798:
20799:
20800: cat >>confdefs.h <<_ACEOF
20801: #define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid"
20802: _ACEOF
20803:
20804:
20805: cat >>confdefs.h <<_ACEOF
20806: #define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
20807: _ACEOF
20808:
20809:
20810: cat >>confdefs.h <<_ACEOF
20811: #define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
20812: _ACEOF
20813:
20814:
20815: cat >>confdefs.h <<_ACEOF
20816: #define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
20817: _ACEOF
20818:
20819:
20820: cat >>confdefs.h <<_ACEOF
20821: #define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
20822: _ACEOF
20823:
20824:
20825: cat >>confdefs.h <<_ACEOF
20826: #define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
20827: _ACEOF
20828:
20829:
20830: cat >>confdefs.h <<_ACEOF
20831: #define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
20832: _ACEOF
20833:
20834:
20835: cat >>confdefs.h <<_ACEOF
20836: #define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
20837: _ACEOF
20838:
20839:
20840: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho 20841: #define BABEL_VTYSH_PATH "$quagga_statedir/babeld.vty"
! 20842: _ACEOF
! 20843:
! 20844:
! 20845: cat >>confdefs.h <<_ACEOF
1.1 misho 20846: #define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
20847: _ACEOF
20848:
20849:
20850: cat >>confdefs.h <<_ACEOF
20851: #define DAEMON_VTY_DIR "$quagga_statedir"
20852: _ACEOF
20853:
20854:
20855:
20856: $as_echo "#define QUAGGA_NO_DEPRECATED_INTERFACES 1" >>confdefs.h
20857:
20858:
20859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working htonl" >&5
20860: $as_echo_n "checking for working htonl... " >&6; }
20861: if ${ac_cv_htonl_works+:} false; then :
20862: $as_echo_n "(cached) " >&6
20863: else
20864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865: /* end confdefs.h. */
20866: #ifdef SUNOS_5
20867: #define _XPG4_2
20868: #define __EXTENSIONS__
20869: #endif
20870: #include <stdio.h>
20871: #if STDC_HEADERS
20872: # include <stdlib.h>
20873: # include <stddef.h>
20874: #else
20875: # if HAVE_STDLIB_H
20876: # include <stdlib.h>
20877: # endif
20878: #endif
20879: #if HAVE_SYS_TYPES_H
20880: # include <sys/types.h>
20881: #endif
20882: /* sys/conf.h depends on param.h on FBSD at least */
20883: #if HAVE_SYS_PARAM_H
20884: # include <sys/param.h>
20885: #endif
20886: /* Required for MAXSIG */
20887: #if HAVE_SIGNAL_H
20888: # include <signal.h>
20889: #endif
20890: #if HAVE_SYS_SOCKET_H
20891: # include <sys/socket.h>
20892: #endif
20893: #if HAVE_NETINET_IN_H
20894: # include <netinet/in.h>
20895: #endif
20896: #ifdef TIME_WITH_SYS_TIME
20897: # include <sys/time.h>
20898: # include <time.h>
20899: #else
20900: # ifdef HAVE_SYS_TIME_H
20901: # include <sys/time.h>
20902: # else
20903: # include <time.h>
20904: # endif
20905: #endif /* TIME_WITH_SYS_TIME */
20906:
20907: #if HAVE_NET_IF_H
20908: # include <net/if.h>
20909: #endif
20910:
20911: #if HAVE_NET_IF_VAR_H
20912: # include <net/if_var.h>
20913: #endif
20914:
20915: #if HAVE_SYS_UN_H
20916: # include <sys/un.h>
20917: #endif
20918: #if HAVE_NETINET_IN_SYSTM_H
20919: # include <netinet/in_systm.h>
20920: #endif
20921: #if HAVE_NETINET_IN_VAR_H
20922: # include <netinet/in_var.h>
20923: #endif
20924: #if HAVE_NET_IF_DL_H
20925: # include <net/if_dl.h>
20926: #endif
20927: #if HAVE_NET_NETOPT_H
20928: # include <net/netopt.h>
20929: #endif
20930: #if HAVE_NET_ROUTE_H
20931: # include <net/route.h>
20932: #endif
20933: #if HAVE_INET_ND_H
20934: # include <inet/nd.h>
20935: #endif
20936: #if HAVE_ARPA_INET_H
20937: # include <arpa/inet.h>
20938: #endif
20939: /* Required for IDRP */
20940: #if HAVE_NETINET_IP_ICMP_H
20941: # include <netinet/ip_icmp.h>
20942: #endif
20943:
20944: #if HAVE_NETINET6_IN6_H
20945: #include <netinet6/in6.h>
20946: #endif
20947: #if HAVE_NETINET_IN6_VAR_H
20948: #include <netinet/in6_var.h>
20949: #endif
20950: #if HAVE_NETINET_ICMP6_H
20951: # include <netinet/icmp6.h>
20952: #endif
20953: #if HAVE_NETINET6_IN6_VAR_H
20954: # include <netinet6/in6_var.h>
20955: #endif
20956: #if HAVE_NETINET6_ND6_H
20957: # include <netinet6/nd6.h>
20958: #endif
20959:
20960: int
20961: main ()
20962: {
20963: htonl (0);
20964: ;
20965: return 0;
20966: }
20967: _ACEOF
20968: if ac_fn_c_try_link "$LINENO"; then :
20969: ac_cv_htonl_works=yes
20970: else
20971: ac_cv_htonl_works=no
20972: fi
20973: rm -f core conftest.err conftest.$ac_objext \
20974: conftest$ac_exeext conftest.$ac_ext
20975:
20976:
20977: fi
20978:
20979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_htonl_works" >&5
20980: $as_echo "$ac_cv_htonl_works" >&6; }
20981:
1.1.1.3 ! misho 20982: 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 babeld/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"
1.1 misho 20983:
20984: ac_config_files="$ac_config_files solaris/Makefile"
20985:
20986:
20987: ac_config_files="$ac_config_files vtysh/extract.pl"
20988:
20989: ## Hack, but working solution to avoid rebuilding of quagga.info.
20990: ## It's already in CVS until texinfo 4.7 is more common.
20991: cat >confcache <<\_ACEOF
20992: # This file is a shell script that caches the results of configure
20993: # tests run on this system so they can be shared between configure
20994: # scripts and configure runs, see configure's option --config-cache.
20995: # It is not useful on other systems. If it contains results you don't
20996: # want to keep, you may remove or edit it.
20997: #
20998: # config.status only pays attention to the cache file if you give it
20999: # the --recheck option to rerun configure.
21000: #
21001: # `ac_cv_env_foo' variables (set or unset) will be overridden when
21002: # loading this file, other *unset* `ac_cv_foo' will be assigned the
21003: # following values.
21004:
21005: _ACEOF
21006:
21007: # The following way of writing the cache mishandles newlines in values,
21008: # but we know of no workaround that is simple, portable, and efficient.
21009: # So, we kill variables containing newlines.
21010: # Ultrix sh set writes to stderr and can't be redirected directly,
21011: # and sets the high bit in the cache file unless we assign to the vars.
21012: (
21013: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21014: eval ac_val=\$$ac_var
21015: case $ac_val in #(
21016: *${as_nl}*)
21017: case $ac_var in #(
21018: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21019: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21020: esac
21021: case $ac_var in #(
21022: _ | IFS | as_nl) ;; #(
21023: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21024: *) { eval $ac_var=; unset $ac_var;} ;;
21025: esac ;;
21026: esac
21027: done
21028:
21029: (set) 2>&1 |
21030: case $as_nl`(ac_space=' '; set) 2>&1` in #(
21031: *${as_nl}ac_space=\ *)
21032: # `set' does not quote correctly, so add quotes: double-quote
21033: # substitution turns \\\\ into \\, and sed turns \\ into \.
21034: sed -n \
21035: "s/'/'\\\\''/g;
21036: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21037: ;; #(
21038: *)
21039: # `set' quotes correctly as required by POSIX, so do not add quotes.
21040: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21041: ;;
21042: esac |
21043: sort
21044: ) |
21045: sed '
21046: /^ac_cv_env_/b end
21047: t clear
21048: :clear
21049: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21050: t end
21051: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21052: :end' >>confcache
21053: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21054: if test -w "$cache_file"; then
21055: if test "x$cache_file" != "x/dev/null"; then
21056: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21057: $as_echo "$as_me: updating cache $cache_file" >&6;}
21058: if test ! -f "$cache_file" || test -h "$cache_file"; then
21059: cat confcache >"$cache_file"
21060: else
21061: case $cache_file in #(
21062: */* | ?:*)
21063: mv -f confcache "$cache_file"$$ &&
21064: mv -f "$cache_file"$$ "$cache_file" ;; #(
21065: *)
21066: mv -f confcache "$cache_file" ;;
21067: esac
21068: fi
21069: fi
21070: else
21071: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21072: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21073: fi
21074: fi
21075: rm -f confcache
21076:
21077: test "x$prefix" = xNONE && prefix=$ac_default_prefix
21078: # Let make expand exec_prefix.
21079: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21080:
21081: DEFS=-DHAVE_CONFIG_H
21082:
21083: ac_libobjs=
21084: ac_ltlibobjs=
21085: U=
21086: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21087: # 1. Remove the extension, and $U if already installed.
21088: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21089: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21090: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21091: # will be set to the directory where LIBOBJS objects are built.
21092: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21093: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21094: done
21095: LIBOBJS=$ac_libobjs
21096:
21097: LTLIBOBJS=$ac_ltlibobjs
21098:
21099:
21100: if test -n "$EXEEXT"; then
21101: am__EXEEXT_TRUE=
21102: am__EXEEXT_FALSE='#'
21103: else
21104: am__EXEEXT_TRUE='#'
21105: am__EXEEXT_FALSE=
21106: fi
21107:
21108: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21109: as_fn_error $? "conditional \"AMDEP\" was never defined.
21110: Usually this means the macro was only invoked conditionally." "$LINENO" 5
21111: fi
21112: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21113: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21114: Usually this means the macro was only invoked conditionally." "$LINENO" 5
21115: fi
1.1.1.3 ! misho 21116: if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then
! 21117: as_fn_error $? "conditional \"HAVE_LATEX\" was never defined.
! 21118: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21119: fi
! 21120: if test -z "${VTYSH_TRUE}" && test -z "${VTYSH_FALSE}"; then
! 21121: as_fn_error $? "conditional \"VTYSH\" was never defined.
! 21122: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21123: fi
1.1 misho 21124:
1.1.1.3 ! misho 21125: if test -z "${ZEBRA_TRUE}" && test -z "${ZEBRA_FALSE}"; then
! 21126: as_fn_error $? "conditional \"ZEBRA\" was never defined.
! 21127: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21128: fi
! 21129: if test -z "${BGPD_TRUE}" && test -z "${BGPD_FALSE}"; then
! 21130: as_fn_error $? "conditional \"BGPD\" was never defined.
! 21131: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21132: fi
! 21133: if test -z "${RIPD_TRUE}" && test -z "${RIPD_FALSE}"; then
! 21134: as_fn_error $? "conditional \"RIPD\" was never defined.
! 21135: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21136: fi
! 21137: if test -z "${OSPFD_TRUE}" && test -z "${OSPFD_FALSE}"; then
! 21138: as_fn_error $? "conditional \"OSPFD\" was never defined.
! 21139: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21140: fi
! 21141: if test -z "${BABELD_TRUE}" && test -z "${BABELD_FALSE}"; then
! 21142: as_fn_error $? "conditional \"BABELD\" was never defined.
! 21143: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21144: fi
! 21145: if test -z "${WATCHQUAGGA_TRUE}" && test -z "${WATCHQUAGGA_FALSE}"; then
! 21146: as_fn_error $? "conditional \"WATCHQUAGGA\" was never defined.
! 21147: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21148: fi
! 21149: if test -z "${OSPFCLIENT_TRUE}" && test -z "${OSPFCLIENT_FALSE}"; then
! 21150: as_fn_error $? "conditional \"OSPFCLIENT\" was never defined.
! 21151: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21152: fi
! 21153: if test -z "${RIPNGD_TRUE}" && test -z "${RIPNGD_FALSE}"; then
! 21154: as_fn_error $? "conditional \"RIPNGD\" was never defined.
! 21155: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21156: fi
! 21157: if test -z "${OSPF6D_TRUE}" && test -z "${OSPF6D_FALSE}"; then
! 21158: as_fn_error $? "conditional \"OSPF6D\" was never defined.
! 21159: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21160: fi
! 21161: if test -z "${ISISD_TRUE}" && test -z "${ISISD_FALSE}"; then
! 21162: as_fn_error $? "conditional \"ISISD\" was never defined.
! 21163: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 21164: fi
1.1 misho 21165:
21166: : "${CONFIG_STATUS=./config.status}"
21167: ac_write_fail=0
21168: ac_clean_files_save=$ac_clean_files
21169: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21170: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21171: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21172: as_write_fail=0
21173: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21174: #! $SHELL
21175: # Generated by $as_me.
21176: # Run this file to recreate the current configuration.
21177: # Compiler output produced by configure, useful for debugging
21178: # configure, is in config.log if it exists.
21179:
21180: debug=false
21181: ac_cs_recheck=false
21182: ac_cs_silent=false
21183:
21184: SHELL=\${CONFIG_SHELL-$SHELL}
21185: export SHELL
21186: _ASEOF
21187: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21188: ## -------------------- ##
21189: ## M4sh Initialization. ##
21190: ## -------------------- ##
21191:
21192: # Be more Bourne compatible
21193: DUALCASE=1; export DUALCASE # for MKS sh
21194: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21195: emulate sh
21196: NULLCMD=:
21197: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21198: # is contrary to our usage. Disable this feature.
21199: alias -g '${1+"$@"}'='"$@"'
21200: setopt NO_GLOB_SUBST
21201: else
21202: case `(set -o) 2>/dev/null` in #(
21203: *posix*) :
21204: set -o posix ;; #(
21205: *) :
21206: ;;
21207: esac
21208: fi
21209:
21210:
21211: as_nl='
21212: '
21213: export as_nl
21214: # Printing a long string crashes Solaris 7 /usr/bin/printf.
21215: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21216: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21217: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21218: # Prefer a ksh shell builtin over an external printf program on Solaris,
21219: # but without wasting forks for bash or zsh.
21220: if test -z "$BASH_VERSION$ZSH_VERSION" \
21221: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21222: as_echo='print -r --'
21223: as_echo_n='print -rn --'
21224: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21225: as_echo='printf %s\n'
21226: as_echo_n='printf %s'
21227: else
21228: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21229: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21230: as_echo_n='/usr/ucb/echo -n'
21231: else
21232: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21233: as_echo_n_body='eval
21234: arg=$1;
21235: case $arg in #(
21236: *"$as_nl"*)
21237: expr "X$arg" : "X\\(.*\\)$as_nl";
21238: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21239: esac;
21240: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21241: '
21242: export as_echo_n_body
21243: as_echo_n='sh -c $as_echo_n_body as_echo'
21244: fi
21245: export as_echo_body
21246: as_echo='sh -c $as_echo_body as_echo'
21247: fi
21248:
21249: # The user is always right.
21250: if test "${PATH_SEPARATOR+set}" != set; then
21251: PATH_SEPARATOR=:
21252: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21253: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21254: PATH_SEPARATOR=';'
21255: }
21256: fi
21257:
21258:
21259: # IFS
21260: # We need space, tab and new line, in precisely that order. Quoting is
21261: # there to prevent editors from complaining about space-tab.
21262: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21263: # splitting by setting IFS to empty value.)
21264: IFS=" "" $as_nl"
21265:
21266: # Find who we are. Look in the path if we contain no directory separator.
21267: as_myself=
21268: case $0 in #((
21269: *[\\/]* ) as_myself=$0 ;;
21270: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21271: for as_dir in $PATH
21272: do
21273: IFS=$as_save_IFS
21274: test -z "$as_dir" && as_dir=.
21275: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21276: done
21277: IFS=$as_save_IFS
21278:
21279: ;;
21280: esac
21281: # We did not find ourselves, most probably we were run as `sh COMMAND'
21282: # in which case we are not to be found in the path.
21283: if test "x$as_myself" = x; then
21284: as_myself=$0
21285: fi
21286: if test ! -f "$as_myself"; then
21287: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21288: exit 1
21289: fi
21290:
21291: # Unset variables that we do not need and which cause bugs (e.g. in
21292: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21293: # suppresses any "Segmentation fault" message there. '((' could
21294: # trigger a bug in pdksh 5.2.14.
21295: for as_var in BASH_ENV ENV MAIL MAILPATH
21296: do eval test x\${$as_var+set} = xset \
21297: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21298: done
21299: PS1='$ '
21300: PS2='> '
21301: PS4='+ '
21302:
21303: # NLS nuisances.
21304: LC_ALL=C
21305: export LC_ALL
21306: LANGUAGE=C
21307: export LANGUAGE
21308:
21309: # CDPATH.
21310: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21311:
21312:
21313: # as_fn_error STATUS ERROR [LINENO LOG_FD]
21314: # ----------------------------------------
21315: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21316: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21317: # script with STATUS, using 1 if that was 0.
21318: as_fn_error ()
21319: {
21320: as_status=$1; test $as_status -eq 0 && as_status=1
21321: if test "$4"; then
21322: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21323: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21324: fi
21325: $as_echo "$as_me: error: $2" >&2
21326: as_fn_exit $as_status
21327: } # as_fn_error
21328:
21329:
21330: # as_fn_set_status STATUS
21331: # -----------------------
21332: # Set $? to STATUS, without forking.
21333: as_fn_set_status ()
21334: {
21335: return $1
21336: } # as_fn_set_status
21337:
21338: # as_fn_exit STATUS
21339: # -----------------
21340: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21341: as_fn_exit ()
21342: {
21343: set +e
21344: as_fn_set_status $1
21345: exit $1
21346: } # as_fn_exit
21347:
21348: # as_fn_unset VAR
21349: # ---------------
21350: # Portably unset VAR.
21351: as_fn_unset ()
21352: {
21353: { eval $1=; unset $1;}
21354: }
21355: as_unset=as_fn_unset
21356: # as_fn_append VAR VALUE
21357: # ----------------------
21358: # Append the text in VALUE to the end of the definition contained in VAR. Take
21359: # advantage of any shell optimizations that allow amortized linear growth over
21360: # repeated appends, instead of the typical quadratic growth present in naive
21361: # implementations.
21362: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21363: eval 'as_fn_append ()
21364: {
21365: eval $1+=\$2
21366: }'
21367: else
21368: as_fn_append ()
21369: {
21370: eval $1=\$$1\$2
21371: }
21372: fi # as_fn_append
21373:
21374: # as_fn_arith ARG...
21375: # ------------------
21376: # Perform arithmetic evaluation on the ARGs, and store the result in the
21377: # global $as_val. Take advantage of shells that can avoid forks. The arguments
21378: # must be portable across $(()) and expr.
21379: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21380: eval 'as_fn_arith ()
21381: {
21382: as_val=$(( $* ))
21383: }'
21384: else
21385: as_fn_arith ()
21386: {
21387: as_val=`expr "$@" || test $? -eq 1`
21388: }
21389: fi # as_fn_arith
21390:
21391:
21392: if expr a : '\(a\)' >/dev/null 2>&1 &&
21393: test "X`expr 00001 : '.*\(...\)'`" = X001; then
21394: as_expr=expr
21395: else
21396: as_expr=false
21397: fi
21398:
21399: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21400: as_basename=basename
21401: else
21402: as_basename=false
21403: fi
21404:
21405: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21406: as_dirname=dirname
21407: else
21408: as_dirname=false
21409: fi
21410:
21411: as_me=`$as_basename -- "$0" ||
21412: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21413: X"$0" : 'X\(//\)$' \| \
21414: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21415: $as_echo X/"$0" |
21416: sed '/^.*\/\([^/][^/]*\)\/*$/{
21417: s//\1/
21418: q
21419: }
21420: /^X\/\(\/\/\)$/{
21421: s//\1/
21422: q
21423: }
21424: /^X\/\(\/\).*/{
21425: s//\1/
21426: q
21427: }
21428: s/.*/./; q'`
21429:
21430: # Avoid depending upon Character Ranges.
21431: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21432: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21433: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21434: as_cr_digits='0123456789'
21435: as_cr_alnum=$as_cr_Letters$as_cr_digits
21436:
21437: ECHO_C= ECHO_N= ECHO_T=
21438: case `echo -n x` in #(((((
21439: -n*)
21440: case `echo 'xy\c'` in
21441: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21442: xy) ECHO_C='\c';;
21443: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21444: ECHO_T=' ';;
21445: esac;;
21446: *)
21447: ECHO_N='-n';;
21448: esac
21449:
21450: rm -f conf$$ conf$$.exe conf$$.file
21451: if test -d conf$$.dir; then
21452: rm -f conf$$.dir/conf$$.file
21453: else
21454: rm -f conf$$.dir
21455: mkdir conf$$.dir 2>/dev/null
21456: fi
21457: if (echo >conf$$.file) 2>/dev/null; then
21458: if ln -s conf$$.file conf$$ 2>/dev/null; then
21459: as_ln_s='ln -s'
21460: # ... but there are two gotchas:
21461: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21462: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3 ! misho 21463: # In both cases, we have to default to `cp -pR'.
1.1 misho 21464: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 ! misho 21465: as_ln_s='cp -pR'
1.1 misho 21466: elif ln conf$$.file conf$$ 2>/dev/null; then
21467: as_ln_s=ln
21468: else
1.1.1.3 ! misho 21469: as_ln_s='cp -pR'
1.1 misho 21470: fi
21471: else
1.1.1.3 ! misho 21472: as_ln_s='cp -pR'
1.1 misho 21473: fi
21474: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21475: rmdir conf$$.dir 2>/dev/null
21476:
21477:
21478: # as_fn_mkdir_p
21479: # -------------
21480: # Create "$as_dir" as a directory, including parents if necessary.
21481: as_fn_mkdir_p ()
21482: {
21483:
21484: case $as_dir in #(
21485: -*) as_dir=./$as_dir;;
21486: esac
21487: test -d "$as_dir" || eval $as_mkdir_p || {
21488: as_dirs=
21489: while :; do
21490: case $as_dir in #(
21491: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21492: *) as_qdir=$as_dir;;
21493: esac
21494: as_dirs="'$as_qdir' $as_dirs"
21495: as_dir=`$as_dirname -- "$as_dir" ||
21496: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21497: X"$as_dir" : 'X\(//\)[^/]' \| \
21498: X"$as_dir" : 'X\(//\)$' \| \
21499: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21500: $as_echo X"$as_dir" |
21501: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21502: s//\1/
21503: q
21504: }
21505: /^X\(\/\/\)[^/].*/{
21506: s//\1/
21507: q
21508: }
21509: /^X\(\/\/\)$/{
21510: s//\1/
21511: q
21512: }
21513: /^X\(\/\).*/{
21514: s//\1/
21515: q
21516: }
21517: s/.*/./; q'`
21518: test -d "$as_dir" && break
21519: done
21520: test -z "$as_dirs" || eval "mkdir $as_dirs"
21521: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21522:
21523:
21524: } # as_fn_mkdir_p
21525: if mkdir -p . 2>/dev/null; then
21526: as_mkdir_p='mkdir -p "$as_dir"'
21527: else
21528: test -d ./-p && rmdir ./-p
21529: as_mkdir_p=false
21530: fi
21531:
1.1.1.3 ! misho 21532:
! 21533: # as_fn_executable_p FILE
! 21534: # -----------------------
! 21535: # Test if FILE is an executable regular file.
! 21536: as_fn_executable_p ()
! 21537: {
! 21538: test -f "$1" && test -x "$1"
! 21539: } # as_fn_executable_p
! 21540: as_test_x='test -x'
! 21541: as_executable_p=as_fn_executable_p
1.1 misho 21542:
21543: # Sed expression to map a string onto a valid CPP name.
21544: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21545:
21546: # Sed expression to map a string onto a valid variable name.
21547: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21548:
21549:
21550: exec 6>&1
21551: ## ----------------------------------- ##
21552: ## Main body of $CONFIG_STATUS script. ##
21553: ## ----------------------------------- ##
21554: _ASEOF
21555: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21556:
21557: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21558: # Save the log message, to keep $0 and so on meaningful, and to
21559: # report actual input values of CONFIG_FILES etc. instead of their
21560: # values after options handling.
21561: ac_log="
1.1.1.3 ! misho 21562: This file was extended by Quagga $as_me 0.99.21, which was
! 21563: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 21564:
21565: CONFIG_FILES = $CONFIG_FILES
21566: CONFIG_HEADERS = $CONFIG_HEADERS
21567: CONFIG_LINKS = $CONFIG_LINKS
21568: CONFIG_COMMANDS = $CONFIG_COMMANDS
21569: $ $0 $@
21570:
21571: on `(hostname || uname -n) 2>/dev/null | sed 1q`
21572: "
21573:
21574: _ACEOF
21575:
21576: case $ac_config_files in *"
21577: "*) set x $ac_config_files; shift; ac_config_files=$*;;
21578: esac
21579:
21580: case $ac_config_headers in *"
21581: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21582: esac
21583:
21584:
21585: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21586: # Files that config.status was made for.
21587: config_files="$ac_config_files"
21588: config_headers="$ac_config_headers"
21589: config_commands="$ac_config_commands"
21590:
21591: _ACEOF
21592:
21593: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21594: ac_cs_usage="\
21595: \`$as_me' instantiates files and other configuration actions
21596: from templates according to the current configuration. Unless the files
21597: and actions are specified as TAGs, all are instantiated by default.
21598:
21599: Usage: $0 [OPTION]... [TAG]...
21600:
21601: -h, --help print this help, then exit
21602: -V, --version print version number and configuration settings, then exit
21603: --config print configuration, then exit
21604: -q, --quiet, --silent
21605: do not print progress messages
21606: -d, --debug don't remove temporary files
21607: --recheck update $as_me by reconfiguring in the same conditions
21608: --file=FILE[:TEMPLATE]
21609: instantiate the configuration file FILE
21610: --header=FILE[:TEMPLATE]
21611: instantiate the configuration header FILE
21612:
21613: Configuration files:
21614: $config_files
21615:
21616: Configuration headers:
21617: $config_headers
21618:
21619: Configuration commands:
21620: $config_commands
21621:
21622: Report bugs to <https://bugzilla.quagga.net>."
21623:
21624: _ACEOF
21625: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21626: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21627: ac_cs_version="\\
1.1.1.3 ! misho 21628: Quagga config.status 0.99.21
! 21629: configured by $0, generated by GNU Autoconf 2.69,
1.1 misho 21630: with options \\"\$ac_cs_config\\"
21631:
1.1.1.3 ! misho 21632: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 21633: This config.status script is free software; the Free Software Foundation
21634: gives unlimited permission to copy, distribute and modify it."
21635:
21636: ac_pwd='$ac_pwd'
21637: srcdir='$srcdir'
21638: INSTALL='$INSTALL'
21639: MKDIR_P='$MKDIR_P'
21640: AWK='$AWK'
21641: test -n "\$AWK" || AWK=awk
21642: _ACEOF
21643:
21644: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21645: # The default lists apply if the user does not specify any file.
21646: ac_need_defaults=:
21647: while test $# != 0
21648: do
21649: case $1 in
21650: --*=?*)
21651: ac_option=`expr "X$1" : 'X\([^=]*\)='`
21652: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21653: ac_shift=:
21654: ;;
21655: --*=)
21656: ac_option=`expr "X$1" : 'X\([^=]*\)='`
21657: ac_optarg=
21658: ac_shift=:
21659: ;;
21660: *)
21661: ac_option=$1
21662: ac_optarg=$2
21663: ac_shift=shift
21664: ;;
21665: esac
21666:
21667: case $ac_option in
21668: # Handling of the options.
21669: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21670: ac_cs_recheck=: ;;
21671: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21672: $as_echo "$ac_cs_version"; exit ;;
21673: --config | --confi | --conf | --con | --co | --c )
21674: $as_echo "$ac_cs_config"; exit ;;
21675: --debug | --debu | --deb | --de | --d | -d )
21676: debug=: ;;
21677: --file | --fil | --fi | --f )
21678: $ac_shift
21679: case $ac_optarg in
21680: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21681: '') as_fn_error $? "missing file argument" ;;
21682: esac
21683: as_fn_append CONFIG_FILES " '$ac_optarg'"
21684: ac_need_defaults=false;;
21685: --header | --heade | --head | --hea )
21686: $ac_shift
21687: case $ac_optarg in
21688: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21689: esac
21690: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21691: ac_need_defaults=false;;
21692: --he | --h)
21693: # Conflict between --help and --header
21694: as_fn_error $? "ambiguous option: \`$1'
21695: Try \`$0 --help' for more information.";;
21696: --help | --hel | -h )
21697: $as_echo "$ac_cs_usage"; exit ;;
21698: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21699: | -silent | --silent | --silen | --sile | --sil | --si | --s)
21700: ac_cs_silent=: ;;
21701:
21702: # This is an error.
21703: -*) as_fn_error $? "unrecognized option: \`$1'
21704: Try \`$0 --help' for more information." ;;
21705:
21706: *) as_fn_append ac_config_targets " $1"
21707: ac_need_defaults=false ;;
21708:
21709: esac
21710: shift
21711: done
21712:
21713: ac_configure_extra_args=
21714:
21715: if $ac_cs_silent; then
21716: exec 6>/dev/null
21717: ac_configure_extra_args="$ac_configure_extra_args --silent"
21718: fi
21719:
21720: _ACEOF
21721: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21722: if \$ac_cs_recheck; then
1.1.1.3 ! misho 21723: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 misho 21724: shift
21725: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21726: CONFIG_SHELL='$SHELL'
21727: export CONFIG_SHELL
21728: exec "\$@"
21729: fi
21730:
21731: _ACEOF
21732: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21733: exec 5>>config.log
21734: {
21735: echo
21736: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21737: ## Running $as_me. ##
21738: _ASBOX
21739: $as_echo "$ac_log"
21740: } >&5
21741:
21742: _ACEOF
21743: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21744: #
21745: # INIT-COMMANDS
21746: #
21747: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21748:
21749:
21750: # The HP-UX ksh and POSIX shell print the target directory to stdout
21751: # if CDPATH is set.
21752: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21753:
21754: sed_quote_subst='$sed_quote_subst'
21755: double_quote_subst='$double_quote_subst'
21756: delay_variable_subst='$delay_variable_subst'
21757: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21758: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21759: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21760: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21761: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21762: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21763: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21764: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 21765: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1.1 misho 21766: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21767: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21768: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21769: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21770: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21771: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21772: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21773: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21774: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21775: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21776: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21777: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21778: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21779: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21780: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21781: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21782: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21783: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21784: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21785: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21786: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21787: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21788: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21789: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21790: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21791: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21792: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21793: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21794: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21795: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21796: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21797: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21798: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21799: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21800: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21801: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21802: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21803: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21804: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21805: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21806: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21807: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21808: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21809: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21810: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21811: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21812: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21813: 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"`'
21814: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21815: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21816: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21817: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21818: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21819: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21820: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21821: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21822: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21823: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21824: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21825: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21826: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21827: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21828: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21829: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21830: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21831: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21832: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21833: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21834: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21835: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21836: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21837: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21838: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21839: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21840: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21841: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21842: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21843: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21844: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21845: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21846: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21847: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21848: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21849: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21850: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21851: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21852: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21853: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21854: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21855: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21856: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21857: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21858: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21859: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21860: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21861: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21862: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21863: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21864: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21865: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21866: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21867: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21868: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21869: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21870: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21871: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21872: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21873: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21874: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21875: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21876: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21877: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21878: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21879: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21880: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21881: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21882: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21883: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21884: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21885: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21886: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21887:
21888: LTCC='$LTCC'
21889: LTCFLAGS='$LTCFLAGS'
21890: compiler='$compiler_DEFAULT'
21891:
21892: # A function that is used when there is no print builtin or printf.
21893: func_fallback_echo ()
21894: {
21895: eval 'cat <<_LTECHO_EOF
21896: \$1
21897: _LTECHO_EOF'
21898: }
21899:
21900: # Quote evaled strings.
21901: for var in SHELL \
21902: ECHO \
1.1.1.2 misho 21903: PATH_SEPARATOR \
1.1 misho 21904: SED \
21905: GREP \
21906: EGREP \
21907: FGREP \
21908: LD \
21909: NM \
21910: LN_S \
21911: lt_SP2NL \
21912: lt_NL2SP \
21913: reload_flag \
21914: OBJDUMP \
21915: deplibs_check_method \
21916: file_magic_cmd \
21917: file_magic_glob \
21918: want_nocaseglob \
21919: DLLTOOL \
21920: sharedlib_from_linklib_cmd \
21921: AR \
21922: AR_FLAGS \
21923: archiver_list_spec \
21924: STRIP \
21925: RANLIB \
21926: CC \
21927: CFLAGS \
21928: compiler \
21929: lt_cv_sys_global_symbol_pipe \
21930: lt_cv_sys_global_symbol_to_cdecl \
21931: lt_cv_sys_global_symbol_to_c_name_address \
21932: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21933: nm_file_list_spec \
21934: lt_prog_compiler_no_builtin_flag \
21935: lt_prog_compiler_pic \
21936: lt_prog_compiler_wl \
21937: lt_prog_compiler_static \
21938: lt_cv_prog_compiler_c_o \
21939: need_locks \
21940: MANIFEST_TOOL \
21941: DSYMUTIL \
21942: NMEDIT \
21943: LIPO \
21944: OTOOL \
21945: OTOOL64 \
21946: shrext_cmds \
21947: export_dynamic_flag_spec \
21948: whole_archive_flag_spec \
21949: compiler_needs_object \
21950: with_gnu_ld \
21951: allow_undefined_flag \
21952: no_undefined_flag \
21953: hardcode_libdir_flag_spec \
21954: hardcode_libdir_separator \
21955: exclude_expsyms \
21956: include_expsyms \
21957: file_list_spec \
21958: variables_saved_for_relink \
21959: libname_spec \
21960: library_names_spec \
21961: soname_spec \
21962: install_override_mode \
21963: finish_eval \
21964: old_striplib \
21965: striplib; do
21966: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21967: *[\\\\\\\`\\"\\\$]*)
21968: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21969: ;;
21970: *)
21971: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21972: ;;
21973: esac
21974: done
21975:
21976: # Double-quote double-evaled strings.
21977: for var in reload_cmds \
21978: old_postinstall_cmds \
21979: old_postuninstall_cmds \
21980: old_archive_cmds \
21981: extract_expsyms_cmds \
21982: old_archive_from_new_cmds \
21983: old_archive_from_expsyms_cmds \
21984: archive_cmds \
21985: archive_expsym_cmds \
21986: module_cmds \
21987: module_expsym_cmds \
21988: export_symbols_cmds \
21989: prelink_cmds \
21990: postlink_cmds \
21991: postinstall_cmds \
21992: postuninstall_cmds \
21993: finish_cmds \
21994: sys_lib_search_path_spec \
21995: sys_lib_dlsearch_path_spec; do
21996: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21997: *[\\\\\\\`\\"\\\$]*)
21998: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21999: ;;
22000: *)
22001: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22002: ;;
22003: esac
22004: done
22005:
22006: ac_aux_dir='$ac_aux_dir'
22007: xsi_shell='$xsi_shell'
22008: lt_shell_append='$lt_shell_append'
22009:
22010: # See if we are running on zsh, and set the options which allow our
22011: # commands through without removal of \ escapes INIT.
22012: if test -n "\${ZSH_VERSION+set}" ; then
22013: setopt NO_GLOB_SUBST
22014: fi
22015:
22016:
22017: PACKAGE='$PACKAGE'
22018: VERSION='$VERSION'
22019: TIMESTAMP='$TIMESTAMP'
22020: RM='$RM'
22021: ofile='$ofile'
22022:
22023:
22024:
22025:
22026: _ACEOF
22027:
22028: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22029:
22030: # Handling of arguments.
22031: for ac_config_target in $ac_config_targets
22032: do
22033: case $ac_config_target in
22034: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22035: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22036: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22037: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22038: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22039: "zebra/Makefile") CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
22040: "ripd/Makefile") CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
22041: "ripngd/Makefile") CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
22042: "bgpd/Makefile") CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
22043: "ospfd/Makefile") CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
22044: "watchquagga/Makefile") CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;;
22045: "ospf6d/Makefile") CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
22046: "isisd/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
1.1.1.3 ! misho 22047: "babeld/Makefile") CONFIG_FILES="$CONFIG_FILES babeld/Makefile" ;;
1.1 misho 22048: "vtysh/Makefile") CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
22049: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22050: "ospfclient/Makefile") CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
22051: "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22052: "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22053: "redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
22054: "pkgsrc/Makefile") CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;;
22055: "redhat/quagga.spec") CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
22056: "lib/version.h") CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
22057: "doc/defines.texi") CONFIG_FILES="$CONFIG_FILES doc/defines.texi" ;;
22058: "isisd/topology/Makefile") CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;;
22059: "pkgsrc/bgpd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;;
22060: "pkgsrc/ospf6d.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;;
22061: "pkgsrc/ospfd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;;
22062: "pkgsrc/ripd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;;
22063: "pkgsrc/ripngd.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;;
22064: "pkgsrc/zebra.sh") CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;;
22065: "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
22066: "vtysh/extract.pl") CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;;
22067:
22068: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22069: esac
22070: done
22071:
22072:
22073: # If the user did not use the arguments to specify the items to instantiate,
22074: # then the envvar interface is used. Set only those that are not.
22075: # We use the long form for the default assignment because of an extremely
22076: # bizarre bug on SunOS 4.1.3.
22077: if $ac_need_defaults; then
22078: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22079: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22080: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22081: fi
22082:
22083: # Have a temporary directory for convenience. Make it in the build tree
22084: # simply because there is no reason against having it here, and in addition,
22085: # creating and moving files from /tmp can sometimes cause problems.
22086: # Hook for its removal unless debugging.
22087: # Note that there is a small window in which the directory will not be cleaned:
22088: # after its creation but before its name has been assigned to `$tmp'.
22089: $debug ||
22090: {
22091: tmp= ac_tmp=
22092: trap 'exit_status=$?
22093: : "${ac_tmp:=$tmp}"
22094: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22095: ' 0
22096: trap 'as_fn_exit 1' 1 2 13 15
22097: }
22098: # Create a (secure) tmp directory for tmp files.
22099:
22100: {
22101: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22102: test -d "$tmp"
22103: } ||
22104: {
22105: tmp=./conf$$-$RANDOM
22106: (umask 077 && mkdir "$tmp")
22107: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22108: ac_tmp=$tmp
22109:
22110: # Set up the scripts for CONFIG_FILES section.
22111: # No need to generate them if there are no CONFIG_FILES.
22112: # This happens for instance with `./config.status config.h'.
22113: if test -n "$CONFIG_FILES"; then
22114:
22115:
22116: ac_cr=`echo X | tr X '\015'`
22117: # On cygwin, bash can eat \r inside `` if the user requested igncr.
22118: # But we know of no other shell where ac_cr would be empty at this
22119: # point, so we can use a bashism as a fallback.
22120: if test "x$ac_cr" = x; then
22121: eval ac_cr=\$\'\\r\'
22122: fi
22123: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22124: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22125: ac_cs_awk_cr='\\r'
22126: else
22127: ac_cs_awk_cr=$ac_cr
22128: fi
22129:
22130: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22131: _ACEOF
22132:
22133:
22134: {
22135: echo "cat >conf$$subs.awk <<_ACEOF" &&
22136: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22137: echo "_ACEOF"
22138: } >conf$$subs.sh ||
22139: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22140: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22141: ac_delim='%!_!# '
22142: for ac_last_try in false false false false false :; do
22143: . ./conf$$subs.sh ||
22144: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22145:
22146: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22147: if test $ac_delim_n = $ac_delim_num; then
22148: break
22149: elif $ac_last_try; then
22150: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22151: else
22152: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22153: fi
22154: done
22155: rm -f conf$$subs.sh
22156:
22157: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22158: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22159: _ACEOF
22160: sed -n '
22161: h
22162: s/^/S["/; s/!.*/"]=/
22163: p
22164: g
22165: s/^[^!]*!//
22166: :repl
22167: t repl
22168: s/'"$ac_delim"'$//
22169: t delim
22170: :nl
22171: h
22172: s/\(.\{148\}\)..*/\1/
22173: t more1
22174: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22175: p
22176: n
22177: b repl
22178: :more1
22179: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22180: p
22181: g
22182: s/.\{148\}//
22183: t nl
22184: :delim
22185: h
22186: s/\(.\{148\}\)..*/\1/
22187: t more2
22188: s/["\\]/\\&/g; s/^/"/; s/$/"/
22189: p
22190: b
22191: :more2
22192: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22193: p
22194: g
22195: s/.\{148\}//
22196: t delim
22197: ' <conf$$subs.awk | sed '
22198: /^[^""]/{
22199: N
22200: s/\n//
22201: }
22202: ' >>$CONFIG_STATUS || ac_write_fail=1
22203: rm -f conf$$subs.awk
22204: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22205: _ACAWK
22206: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22207: for (key in S) S_is_set[key] = 1
22208: FS = ""
22209:
22210: }
22211: {
22212: line = $ 0
22213: nfields = split(line, field, "@")
22214: substed = 0
22215: len = length(field[1])
22216: for (i = 2; i < nfields; i++) {
22217: key = field[i]
22218: keylen = length(key)
22219: if (S_is_set[key]) {
22220: value = S[key]
22221: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22222: len += length(value) + length(field[++i])
22223: substed = 1
22224: } else
22225: len += 1 + keylen
22226: }
22227:
22228: print line
22229: }
22230:
22231: _ACAWK
22232: _ACEOF
22233: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22234: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22235: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22236: else
22237: cat
22238: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22239: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22240: _ACEOF
22241:
22242: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22243: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22244: # trailing colons and then remove the whole line if VPATH becomes empty
22245: # (actually we leave an empty line to preserve line numbers).
22246: if test "x$srcdir" = x.; then
22247: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22248: h
22249: s///
22250: s/^/:/
22251: s/[ ]*$/:/
22252: s/:\$(srcdir):/:/g
22253: s/:\${srcdir}:/:/g
22254: s/:@srcdir@:/:/g
22255: s/^:*//
22256: s/:*$//
22257: x
22258: s/\(=[ ]*\).*/\1/
22259: G
22260: s/\n//
22261: s/^[^=]*=[ ]*$//
22262: }'
22263: fi
22264:
22265: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22266: fi # test -n "$CONFIG_FILES"
22267:
22268: # Set up the scripts for CONFIG_HEADERS section.
22269: # No need to generate them if there are no CONFIG_HEADERS.
22270: # This happens for instance with `./config.status Makefile'.
22271: if test -n "$CONFIG_HEADERS"; then
22272: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22273: BEGIN {
22274: _ACEOF
22275:
22276: # Transform confdefs.h into an awk script `defines.awk', embedded as
22277: # here-document in config.status, that substitutes the proper values into
22278: # config.h.in to produce config.h.
22279:
22280: # Create a delimiter string that does not exist in confdefs.h, to ease
22281: # handling of long lines.
22282: ac_delim='%!_!# '
22283: for ac_last_try in false false :; do
22284: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22285: if test -z "$ac_tt"; then
22286: break
22287: elif $ac_last_try; then
22288: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22289: else
22290: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22291: fi
22292: done
22293:
22294: # For the awk script, D is an array of macro values keyed by name,
22295: # likewise P contains macro parameters if any. Preserve backslash
22296: # newline sequences.
22297:
22298: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22299: sed -n '
22300: s/.\{148\}/&'"$ac_delim"'/g
22301: t rset
22302: :rset
22303: s/^[ ]*#[ ]*define[ ][ ]*/ /
22304: t def
22305: d
22306: :def
22307: s/\\$//
22308: t bsnl
22309: s/["\\]/\\&/g
22310: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22311: D["\1"]=" \3"/p
22312: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22313: d
22314: :bsnl
22315: s/["\\]/\\&/g
22316: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22317: D["\1"]=" \3\\\\\\n"\\/p
22318: t cont
22319: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22320: t cont
22321: d
22322: :cont
22323: n
22324: s/.\{148\}/&'"$ac_delim"'/g
22325: t clear
22326: :clear
22327: s/\\$//
22328: t bsnlc
22329: s/["\\]/\\&/g; s/^/"/; s/$/"/p
22330: d
22331: :bsnlc
22332: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22333: b cont
22334: ' <confdefs.h | sed '
22335: s/'"$ac_delim"'/"\\\
22336: "/g' >>$CONFIG_STATUS || ac_write_fail=1
22337:
22338: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22339: for (key in D) D_is_set[key] = 1
22340: FS = ""
22341: }
22342: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22343: line = \$ 0
22344: split(line, arg, " ")
22345: if (arg[1] == "#") {
22346: defundef = arg[2]
22347: mac1 = arg[3]
22348: } else {
22349: defundef = substr(arg[1], 2)
22350: mac1 = arg[2]
22351: }
22352: split(mac1, mac2, "(") #)
22353: macro = mac2[1]
22354: prefix = substr(line, 1, index(line, defundef) - 1)
22355: if (D_is_set[macro]) {
22356: # Preserve the white space surrounding the "#".
22357: print prefix "define", macro P[macro] D[macro]
22358: next
22359: } else {
22360: # Replace #undef with comments. This is necessary, for example,
22361: # in the case of _POSIX_SOURCE, which is predefined and required
22362: # on some systems where configure will not decide to define it.
22363: if (defundef == "undef") {
22364: print "/*", prefix defundef, macro, "*/"
22365: next
22366: }
22367: }
22368: }
22369: { print }
22370: _ACAWK
22371: _ACEOF
22372: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22373: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22374: fi # test -n "$CONFIG_HEADERS"
22375:
22376:
22377: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22378: shift
22379: for ac_tag
22380: do
22381: case $ac_tag in
22382: :[FHLC]) ac_mode=$ac_tag; continue;;
22383: esac
22384: case $ac_mode$ac_tag in
22385: :[FHL]*:*);;
22386: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22387: :[FH]-) ac_tag=-:-;;
22388: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22389: esac
22390: ac_save_IFS=$IFS
22391: IFS=:
22392: set x $ac_tag
22393: IFS=$ac_save_IFS
22394: shift
22395: ac_file=$1
22396: shift
22397:
22398: case $ac_mode in
22399: :L) ac_source=$1;;
22400: :[FH])
22401: ac_file_inputs=
22402: for ac_f
22403: do
22404: case $ac_f in
22405: -) ac_f="$ac_tmp/stdin";;
22406: *) # Look for the file first in the build tree, then in the source tree
22407: # (if the path is not absolute). The absolute path cannot be DOS-style,
22408: # because $ac_f cannot contain `:'.
22409: test -f "$ac_f" ||
22410: case $ac_f in
22411: [\\/$]*) false;;
22412: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22413: esac ||
22414: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22415: esac
22416: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22417: as_fn_append ac_file_inputs " '$ac_f'"
22418: done
22419:
22420: # Let's still pretend it is `configure' which instantiates (i.e., don't
22421: # use $as_me), people would be surprised to read:
22422: # /* config.h. Generated by config.status. */
22423: configure_input='Generated from '`
22424: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22425: `' by configure.'
22426: if test x"$ac_file" != x-; then
22427: configure_input="$ac_file. $configure_input"
22428: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22429: $as_echo "$as_me: creating $ac_file" >&6;}
22430: fi
22431: # Neutralize special characters interpreted by sed in replacement strings.
22432: case $configure_input in #(
22433: *\&* | *\|* | *\\* )
22434: ac_sed_conf_input=`$as_echo "$configure_input" |
22435: sed 's/[\\\\&|]/\\\\&/g'`;; #(
22436: *) ac_sed_conf_input=$configure_input;;
22437: esac
22438:
22439: case $ac_tag in
22440: *:-:* | *:-) cat >"$ac_tmp/stdin" \
22441: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22442: esac
22443: ;;
22444: esac
22445:
22446: ac_dir=`$as_dirname -- "$ac_file" ||
22447: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22448: X"$ac_file" : 'X\(//\)[^/]' \| \
22449: X"$ac_file" : 'X\(//\)$' \| \
22450: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22451: $as_echo X"$ac_file" |
22452: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22453: s//\1/
22454: q
22455: }
22456: /^X\(\/\/\)[^/].*/{
22457: s//\1/
22458: q
22459: }
22460: /^X\(\/\/\)$/{
22461: s//\1/
22462: q
22463: }
22464: /^X\(\/\).*/{
22465: s//\1/
22466: q
22467: }
22468: s/.*/./; q'`
22469: as_dir="$ac_dir"; as_fn_mkdir_p
22470: ac_builddir=.
22471:
22472: case "$ac_dir" in
22473: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22474: *)
22475: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22476: # A ".." for each directory in $ac_dir_suffix.
22477: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22478: case $ac_top_builddir_sub in
22479: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22480: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22481: esac ;;
22482: esac
22483: ac_abs_top_builddir=$ac_pwd
22484: ac_abs_builddir=$ac_pwd$ac_dir_suffix
22485: # for backward compatibility:
22486: ac_top_builddir=$ac_top_build_prefix
22487:
22488: case $srcdir in
22489: .) # We are building in place.
22490: ac_srcdir=.
22491: ac_top_srcdir=$ac_top_builddir_sub
22492: ac_abs_top_srcdir=$ac_pwd ;;
22493: [\\/]* | ?:[\\/]* ) # Absolute name.
22494: ac_srcdir=$srcdir$ac_dir_suffix;
22495: ac_top_srcdir=$srcdir
22496: ac_abs_top_srcdir=$srcdir ;;
22497: *) # Relative name.
22498: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22499: ac_top_srcdir=$ac_top_build_prefix$srcdir
22500: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22501: esac
22502: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22503:
22504:
22505: case $ac_mode in
22506: :F)
22507: #
22508: # CONFIG_FILE
22509: #
22510:
22511: case $INSTALL in
22512: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22513: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22514: esac
22515: ac_MKDIR_P=$MKDIR_P
22516: case $MKDIR_P in
22517: [\\/$]* | ?:[\\/]* ) ;;
22518: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22519: esac
22520: _ACEOF
22521:
22522: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22523: # If the template does not know about datarootdir, expand it.
22524: # FIXME: This hack should be removed a few years after 2.60.
22525: ac_datarootdir_hack=; ac_datarootdir_seen=
22526: ac_sed_dataroot='
22527: /datarootdir/ {
22528: p
22529: q
22530: }
22531: /@datadir@/p
22532: /@docdir@/p
22533: /@infodir@/p
22534: /@localedir@/p
22535: /@mandir@/p'
22536: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22537: *datarootdir*) ac_datarootdir_seen=yes;;
22538: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22539: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22540: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22541: _ACEOF
22542: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22543: ac_datarootdir_hack='
22544: s&@datadir@&$datadir&g
22545: s&@docdir@&$docdir&g
22546: s&@infodir@&$infodir&g
22547: s&@localedir@&$localedir&g
22548: s&@mandir@&$mandir&g
22549: s&\\\${datarootdir}&$datarootdir&g' ;;
22550: esac
22551: _ACEOF
22552:
22553: # Neutralize VPATH when `$srcdir' = `.'.
22554: # Shell code in configure.ac might set extrasub.
22555: # FIXME: do we really want to maintain this feature?
22556: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22557: ac_sed_extra="$ac_vpsub
22558: $extrasub
22559: _ACEOF
22560: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22561: :t
22562: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22563: s|@configure_input@|$ac_sed_conf_input|;t t
22564: s&@top_builddir@&$ac_top_builddir_sub&;t t
22565: s&@top_build_prefix@&$ac_top_build_prefix&;t t
22566: s&@srcdir@&$ac_srcdir&;t t
22567: s&@abs_srcdir@&$ac_abs_srcdir&;t t
22568: s&@top_srcdir@&$ac_top_srcdir&;t t
22569: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22570: s&@builddir@&$ac_builddir&;t t
22571: s&@abs_builddir@&$ac_abs_builddir&;t t
22572: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22573: s&@INSTALL@&$ac_INSTALL&;t t
22574: s&@MKDIR_P@&$ac_MKDIR_P&;t t
22575: $ac_datarootdir_hack
22576: "
22577: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22578: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22579:
22580: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22581: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22582: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22583: "$ac_tmp/out"`; test -z "$ac_out"; } &&
22584: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22585: which seems to be undefined. Please make sure it is defined" >&5
22586: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22587: which seems to be undefined. Please make sure it is defined" >&2;}
22588:
22589: rm -f "$ac_tmp/stdin"
22590: case $ac_file in
22591: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22592: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22593: esac \
22594: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22595: ;;
22596: :H)
22597: #
22598: # CONFIG_HEADER
22599: #
22600: if test x"$ac_file" != x-; then
22601: {
22602: $as_echo "/* $configure_input */" \
22603: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22604: } >"$ac_tmp/config.h" \
22605: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22606: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22607: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22608: $as_echo "$as_me: $ac_file is unchanged" >&6;}
22609: else
22610: rm -f "$ac_file"
22611: mv "$ac_tmp/config.h" "$ac_file" \
22612: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22613: fi
22614: else
22615: $as_echo "/* $configure_input */" \
22616: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22617: || as_fn_error $? "could not create -" "$LINENO" 5
22618: fi
22619: # Compute "$ac_file"'s index in $config_headers.
22620: _am_arg="$ac_file"
22621: _am_stamp_count=1
22622: for _am_header in $config_headers :; do
22623: case $_am_header in
22624: $_am_arg | $_am_arg:* )
22625: break ;;
22626: * )
22627: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22628: esac
22629: done
22630: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22631: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632: X"$_am_arg" : 'X\(//\)[^/]' \| \
22633: X"$_am_arg" : 'X\(//\)$' \| \
22634: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22635: $as_echo X"$_am_arg" |
22636: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22637: s//\1/
22638: q
22639: }
22640: /^X\(\/\/\)[^/].*/{
22641: s//\1/
22642: q
22643: }
22644: /^X\(\/\/\)$/{
22645: s//\1/
22646: q
22647: }
22648: /^X\(\/\).*/{
22649: s//\1/
22650: q
22651: }
22652: s/.*/./; q'`/stamp-h$_am_stamp_count
22653: ;;
22654:
22655: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22656: $as_echo "$as_me: executing $ac_file commands" >&6;}
22657: ;;
22658: esac
22659:
22660:
22661: case $ac_file$ac_mode in
22662: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22663: # Autoconf 2.62 quotes --file arguments for eval, but not when files
22664: # are listed without --file. Let's play safe and only enable the eval
22665: # if we detect the quoting.
22666: case $CONFIG_FILES in
22667: *\'*) eval set x "$CONFIG_FILES" ;;
22668: *) set x $CONFIG_FILES ;;
22669: esac
22670: shift
22671: for mf
22672: do
22673: # Strip MF so we end up with the name of the file.
22674: mf=`echo "$mf" | sed -e 's/:.*$//'`
22675: # Check whether this is an Automake generated Makefile or not.
22676: # We used to match only the files named `Makefile.in', but
22677: # some people rename them; so instead we look at the file content.
22678: # Grep'ing the first line is not enough: some people post-process
22679: # each Makefile.in and add a new line on top of each file to say so.
22680: # Grep'ing the whole file is not good either: AIX grep has a line
22681: # limit of 2048, but all sed's we know have understand at least 4000.
22682: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22683: dirpart=`$as_dirname -- "$mf" ||
22684: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22685: X"$mf" : 'X\(//\)[^/]' \| \
22686: X"$mf" : 'X\(//\)$' \| \
22687: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22688: $as_echo X"$mf" |
22689: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22690: s//\1/
22691: q
22692: }
22693: /^X\(\/\/\)[^/].*/{
22694: s//\1/
22695: q
22696: }
22697: /^X\(\/\/\)$/{
22698: s//\1/
22699: q
22700: }
22701: /^X\(\/\).*/{
22702: s//\1/
22703: q
22704: }
22705: s/.*/./; q'`
22706: else
22707: continue
22708: fi
22709: # Extract the definition of DEPDIR, am__include, and am__quote
22710: # from the Makefile without running `make'.
22711: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22712: test -z "$DEPDIR" && continue
22713: am__include=`sed -n 's/^am__include = //p' < "$mf"`
22714: test -z "am__include" && continue
22715: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22716: # When using ansi2knr, U may be empty or an underscore; expand it
22717: U=`sed -n 's/^U = //p' < "$mf"`
22718: # Find all dependency output files, they are included files with
22719: # $(DEPDIR) in their names. We invoke sed twice because it is the
22720: # simplest approach to changing $(DEPDIR) to its actual value in the
22721: # expansion.
22722: for file in `sed -n "
22723: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22724: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22725: # Make sure the directory exists.
22726: test -f "$dirpart/$file" && continue
22727: fdir=`$as_dirname -- "$file" ||
22728: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22729: X"$file" : 'X\(//\)[^/]' \| \
22730: X"$file" : 'X\(//\)$' \| \
22731: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22732: $as_echo X"$file" |
22733: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22734: s//\1/
22735: q
22736: }
22737: /^X\(\/\/\)[^/].*/{
22738: s//\1/
22739: q
22740: }
22741: /^X\(\/\/\)$/{
22742: s//\1/
22743: q
22744: }
22745: /^X\(\/\).*/{
22746: s//\1/
22747: q
22748: }
22749: s/.*/./; q'`
22750: as_dir=$dirpart/$fdir; as_fn_mkdir_p
22751: # echo "creating $dirpart/$file"
22752: echo '# dummy' > "$dirpart/$file"
22753: done
22754: done
22755: }
22756: ;;
22757: "libtool":C)
22758:
22759: # See if we are running on zsh, and set the options which allow our
22760: # commands through without removal of \ escapes.
22761: if test -n "${ZSH_VERSION+set}" ; then
22762: setopt NO_GLOB_SUBST
22763: fi
22764:
22765: cfgfile="${ofile}T"
22766: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22767: $RM "$cfgfile"
22768:
22769: cat <<_LT_EOF >> "$cfgfile"
22770: #! $SHELL
22771:
22772: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22773: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22774: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22775: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22776: #
22777: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.1.2 misho 22778: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22779: # Foundation, Inc.
1.1 misho 22780: # Written by Gordon Matzigkeit, 1996
22781: #
22782: # This file is part of GNU Libtool.
22783: #
22784: # GNU Libtool is free software; you can redistribute it and/or
22785: # modify it under the terms of the GNU General Public License as
22786: # published by the Free Software Foundation; either version 2 of
22787: # the License, or (at your option) any later version.
22788: #
22789: # As a special exception to the GNU General Public License,
22790: # if you distribute this file as part of a program or library that
22791: # is built using GNU Libtool, you may include this file under the
22792: # same distribution terms that you use for the rest of that program.
22793: #
22794: # GNU Libtool is distributed in the hope that it will be useful,
22795: # but WITHOUT ANY WARRANTY; without even the implied warranty of
22796: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22797: # GNU General Public License for more details.
22798: #
22799: # You should have received a copy of the GNU General Public License
22800: # along with GNU Libtool; see the file COPYING. If not, a copy
22801: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22802: # obtained by writing to the Free Software Foundation, Inc.,
22803: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22804:
22805:
22806: # The names of the tagged configurations supported by this script.
22807: available_tags=""
22808:
22809: # ### BEGIN LIBTOOL CONFIG
22810:
22811: # Which release of libtool.m4 was used?
22812: macro_version=$macro_version
22813: macro_revision=$macro_revision
22814:
22815: # Whether or not to build shared libraries.
22816: build_libtool_libs=$enable_shared
22817:
22818: # Whether or not to build static libraries.
22819: build_old_libs=$enable_static
22820:
22821: # What type of objects to build.
22822: pic_mode=$pic_mode
22823:
22824: # Whether or not to optimize for fast installation.
22825: fast_install=$enable_fast_install
22826:
22827: # Shell to use when invoking shell scripts.
22828: SHELL=$lt_SHELL
22829:
22830: # An echo program that protects backslashes.
22831: ECHO=$lt_ECHO
22832:
1.1.1.2 misho 22833: # The PATH separator for the build system.
22834: PATH_SEPARATOR=$lt_PATH_SEPARATOR
22835:
1.1 misho 22836: # The host system.
22837: host_alias=$host_alias
22838: host=$host
22839: host_os=$host_os
22840:
22841: # The build system.
22842: build_alias=$build_alias
22843: build=$build
22844: build_os=$build_os
22845:
22846: # A sed program that does not truncate output.
22847: SED=$lt_SED
22848:
22849: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22850: Xsed="\$SED -e 1s/^X//"
22851:
22852: # A grep program that handles long lines.
22853: GREP=$lt_GREP
22854:
22855: # An ERE matcher.
22856: EGREP=$lt_EGREP
22857:
22858: # A literal string matcher.
22859: FGREP=$lt_FGREP
22860:
22861: # A BSD- or MS-compatible name lister.
22862: NM=$lt_NM
22863:
22864: # Whether we need soft or hard links.
22865: LN_S=$lt_LN_S
22866:
22867: # What is the maximum length of a command?
22868: max_cmd_len=$max_cmd_len
22869:
22870: # Object file suffix (normally "o").
22871: objext=$ac_objext
22872:
22873: # Executable file suffix (normally "").
22874: exeext=$exeext
22875:
22876: # whether the shell understands "unset".
22877: lt_unset=$lt_unset
22878:
22879: # turn spaces into newlines.
22880: SP2NL=$lt_lt_SP2NL
22881:
22882: # turn newlines into spaces.
22883: NL2SP=$lt_lt_NL2SP
22884:
22885: # convert \$build file names to \$host format.
22886: to_host_file_cmd=$lt_cv_to_host_file_cmd
22887:
22888: # convert \$build files to toolchain format.
22889: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22890:
22891: # An object symbol dumper.
22892: OBJDUMP=$lt_OBJDUMP
22893:
22894: # Method to check whether dependent libraries are shared objects.
22895: deplibs_check_method=$lt_deplibs_check_method
22896:
22897: # Command to use when deplibs_check_method = "file_magic".
22898: file_magic_cmd=$lt_file_magic_cmd
22899:
22900: # How to find potential files when deplibs_check_method = "file_magic".
22901: file_magic_glob=$lt_file_magic_glob
22902:
22903: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22904: want_nocaseglob=$lt_want_nocaseglob
22905:
22906: # DLL creation program.
22907: DLLTOOL=$lt_DLLTOOL
22908:
22909: # Command to associate shared and link libraries.
22910: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22911:
22912: # The archiver.
22913: AR=$lt_AR
22914:
22915: # Flags to create an archive.
22916: AR_FLAGS=$lt_AR_FLAGS
22917:
22918: # How to feed a file listing to the archiver.
22919: archiver_list_spec=$lt_archiver_list_spec
22920:
22921: # A symbol stripping program.
22922: STRIP=$lt_STRIP
22923:
22924: # Commands used to install an old-style archive.
22925: RANLIB=$lt_RANLIB
22926: old_postinstall_cmds=$lt_old_postinstall_cmds
22927: old_postuninstall_cmds=$lt_old_postuninstall_cmds
22928:
22929: # Whether to use a lock for old archive extraction.
22930: lock_old_archive_extraction=$lock_old_archive_extraction
22931:
22932: # A C compiler.
22933: LTCC=$lt_CC
22934:
22935: # LTCC compiler flags.
22936: LTCFLAGS=$lt_CFLAGS
22937:
22938: # Take the output of nm and produce a listing of raw symbols and C names.
22939: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22940:
22941: # Transform the output of nm in a proper C declaration.
22942: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22943:
22944: # Transform the output of nm in a C name address pair.
22945: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22946:
22947: # Transform the output of nm in a C name address pair when lib prefix is needed.
22948: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22949:
22950: # Specify filename containing input files for \$NM.
22951: nm_file_list_spec=$lt_nm_file_list_spec
22952:
22953: # The root where to search for dependent libraries,and in which our libraries should be installed.
22954: lt_sysroot=$lt_sysroot
22955:
22956: # The name of the directory that contains temporary libtool files.
22957: objdir=$objdir
22958:
22959: # Used to examine libraries when file_magic_cmd begins with "file".
22960: MAGIC_CMD=$MAGIC_CMD
22961:
22962: # Must we lock files when doing compilation?
22963: need_locks=$lt_need_locks
22964:
22965: # Manifest tool.
22966: MANIFEST_TOOL=$lt_MANIFEST_TOOL
22967:
22968: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22969: DSYMUTIL=$lt_DSYMUTIL
22970:
22971: # Tool to change global to local symbols on Mac OS X.
22972: NMEDIT=$lt_NMEDIT
22973:
22974: # Tool to manipulate fat objects and archives on Mac OS X.
22975: LIPO=$lt_LIPO
22976:
22977: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22978: OTOOL=$lt_OTOOL
22979:
22980: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22981: OTOOL64=$lt_OTOOL64
22982:
22983: # Old archive suffix (normally "a").
22984: libext=$libext
22985:
22986: # Shared library suffix (normally ".so").
22987: shrext_cmds=$lt_shrext_cmds
22988:
22989: # The commands to extract the exported symbol list from a shared archive.
22990: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22991:
22992: # Variables whose values should be saved in libtool wrapper scripts and
22993: # restored at link time.
22994: variables_saved_for_relink=$lt_variables_saved_for_relink
22995:
22996: # Do we need the "lib" prefix for modules?
22997: need_lib_prefix=$need_lib_prefix
22998:
22999: # Do we need a version for libraries?
23000: need_version=$need_version
23001:
23002: # Library versioning type.
23003: version_type=$version_type
23004:
23005: # Shared library runtime path variable.
23006: runpath_var=$runpath_var
23007:
23008: # Shared library path variable.
23009: shlibpath_var=$shlibpath_var
23010:
23011: # Is shlibpath searched before the hard-coded library search path?
23012: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23013:
23014: # Format of library name prefix.
23015: libname_spec=$lt_libname_spec
23016:
23017: # List of archive names. First name is the real one, the rest are links.
23018: # The last name is the one that the linker finds with -lNAME
23019: library_names_spec=$lt_library_names_spec
23020:
23021: # The coded name of the library, if different from the real name.
23022: soname_spec=$lt_soname_spec
23023:
23024: # Permission mode override for installation of shared libraries.
23025: install_override_mode=$lt_install_override_mode
23026:
23027: # Command to use after installation of a shared archive.
23028: postinstall_cmds=$lt_postinstall_cmds
23029:
23030: # Command to use after uninstallation of a shared archive.
23031: postuninstall_cmds=$lt_postuninstall_cmds
23032:
23033: # Commands used to finish a libtool library installation in a directory.
23034: finish_cmds=$lt_finish_cmds
23035:
23036: # As "finish_cmds", except a single script fragment to be evaled but
23037: # not shown.
23038: finish_eval=$lt_finish_eval
23039:
23040: # Whether we should hardcode library paths into libraries.
23041: hardcode_into_libs=$hardcode_into_libs
23042:
23043: # Compile-time system search path for libraries.
23044: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23045:
23046: # Run-time system search path for libraries.
23047: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23048:
23049: # Whether dlopen is supported.
23050: dlopen_support=$enable_dlopen
23051:
23052: # Whether dlopen of programs is supported.
23053: dlopen_self=$enable_dlopen_self
23054:
23055: # Whether dlopen of statically linked programs is supported.
23056: dlopen_self_static=$enable_dlopen_self_static
23057:
23058: # Commands to strip libraries.
23059: old_striplib=$lt_old_striplib
23060: striplib=$lt_striplib
23061:
23062:
23063: # The linker used to build libraries.
23064: LD=$lt_LD
23065:
23066: # How to create reloadable object files.
23067: reload_flag=$lt_reload_flag
23068: reload_cmds=$lt_reload_cmds
23069:
23070: # Commands used to build an old-style archive.
23071: old_archive_cmds=$lt_old_archive_cmds
23072:
23073: # A language specific compiler.
23074: CC=$lt_compiler
23075:
23076: # Is the compiler the GNU compiler?
23077: with_gcc=$GCC
23078:
23079: # Compiler flag to turn off builtin functions.
23080: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23081:
23082: # Additional compiler flags for building library objects.
23083: pic_flag=$lt_lt_prog_compiler_pic
23084:
23085: # How to pass a linker flag through the compiler.
23086: wl=$lt_lt_prog_compiler_wl
23087:
23088: # Compiler flag to prevent dynamic linking.
23089: link_static_flag=$lt_lt_prog_compiler_static
23090:
23091: # Does compiler simultaneously support -c and -o options?
23092: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23093:
23094: # Whether or not to add -lc for building shared libraries.
23095: build_libtool_need_lc=$archive_cmds_need_lc
23096:
23097: # Whether or not to disallow shared libs when runtime libs are static.
23098: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23099:
23100: # Compiler flag to allow reflexive dlopens.
23101: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23102:
23103: # Compiler flag to generate shared objects directly from archives.
23104: whole_archive_flag_spec=$lt_whole_archive_flag_spec
23105:
23106: # Whether the compiler copes with passing no objects directly.
23107: compiler_needs_object=$lt_compiler_needs_object
23108:
23109: # Create an old-style archive from a shared archive.
23110: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23111:
23112: # Create a temporary old-style archive to link instead of a shared archive.
23113: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23114:
23115: # Commands used to build a shared archive.
23116: archive_cmds=$lt_archive_cmds
23117: archive_expsym_cmds=$lt_archive_expsym_cmds
23118:
23119: # Commands used to build a loadable module if different from building
23120: # a shared archive.
23121: module_cmds=$lt_module_cmds
23122: module_expsym_cmds=$lt_module_expsym_cmds
23123:
23124: # Whether we are building with GNU ld or not.
23125: with_gnu_ld=$lt_with_gnu_ld
23126:
23127: # Flag that allows shared libraries with undefined symbols to be built.
23128: allow_undefined_flag=$lt_allow_undefined_flag
23129:
23130: # Flag that enforces no undefined symbols.
23131: no_undefined_flag=$lt_no_undefined_flag
23132:
23133: # Flag to hardcode \$libdir into a binary during linking.
23134: # This must work even if \$libdir does not exist
23135: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23136:
23137: # Whether we need a single "-rpath" flag with a separated argument.
23138: hardcode_libdir_separator=$lt_hardcode_libdir_separator
23139:
23140: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23141: # DIR into the resulting binary.
23142: hardcode_direct=$hardcode_direct
23143:
23144: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23145: # DIR into the resulting binary and the resulting library dependency is
23146: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23147: # library is relocated.
23148: hardcode_direct_absolute=$hardcode_direct_absolute
23149:
23150: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23151: # into the resulting binary.
23152: hardcode_minus_L=$hardcode_minus_L
23153:
23154: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23155: # into the resulting binary.
23156: hardcode_shlibpath_var=$hardcode_shlibpath_var
23157:
23158: # Set to "yes" if building a shared library automatically hardcodes DIR
23159: # into the library and all subsequent libraries and executables linked
23160: # against it.
23161: hardcode_automatic=$hardcode_automatic
23162:
23163: # Set to yes if linker adds runtime paths of dependent libraries
23164: # to runtime path list.
23165: inherit_rpath=$inherit_rpath
23166:
23167: # Whether libtool must link a program against all its dependency libraries.
23168: link_all_deplibs=$link_all_deplibs
23169:
23170: # Set to "yes" if exported symbols are required.
23171: always_export_symbols=$always_export_symbols
23172:
23173: # The commands to list exported symbols.
23174: export_symbols_cmds=$lt_export_symbols_cmds
23175:
23176: # Symbols that should not be listed in the preloaded symbols.
23177: exclude_expsyms=$lt_exclude_expsyms
23178:
23179: # Symbols that must always be exported.
23180: include_expsyms=$lt_include_expsyms
23181:
23182: # Commands necessary for linking programs (against libraries) with templates.
23183: prelink_cmds=$lt_prelink_cmds
23184:
23185: # Commands necessary for finishing linking programs.
23186: postlink_cmds=$lt_postlink_cmds
23187:
23188: # Specify filename containing input files.
23189: file_list_spec=$lt_file_list_spec
23190:
23191: # How to hardcode a shared library path into an executable.
23192: hardcode_action=$hardcode_action
23193:
23194: # ### END LIBTOOL CONFIG
23195:
23196: _LT_EOF
23197:
23198: case $host_os in
23199: aix3*)
23200: cat <<\_LT_EOF >> "$cfgfile"
23201: # AIX sometimes has problems with the GCC collect2 program. For some
23202: # reason, if we set the COLLECT_NAMES environment variable, the problems
23203: # vanish in a puff of smoke.
23204: if test "X${COLLECT_NAMES+set}" != Xset; then
23205: COLLECT_NAMES=
23206: export COLLECT_NAMES
23207: fi
23208: _LT_EOF
23209: ;;
23210: esac
23211:
23212:
23213: ltmain="$ac_aux_dir/ltmain.sh"
23214:
23215:
23216: # We use sed instead of cat because bash on DJGPP gets confused if
23217: # if finds mixed CR/LF and LF-only lines. Since sed operates in
23218: # text mode, it properly converts lines to CR/LF. This bash problem
23219: # is reportedly fixed, but why not run on old versions too?
23220: sed '$q' "$ltmain" >> "$cfgfile" \
23221: || (rm -f "$cfgfile"; exit 1)
23222:
23223: if test x"$xsi_shell" = xyes; then
23224: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23225: func_dirname ()\
23226: {\
23227: \ case ${1} in\
23228: \ */*) func_dirname_result="${1%/*}${2}" ;;\
23229: \ * ) func_dirname_result="${3}" ;;\
23230: \ esac\
23231: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23232: && mv -f "$cfgfile.tmp" "$cfgfile" \
23233: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23234: test 0 -eq $? || _lt_function_replace_fail=:
23235:
23236:
23237: sed -e '/^func_basename ()$/,/^} # func_basename /c\
23238: func_basename ()\
23239: {\
23240: \ func_basename_result="${1##*/}"\
23241: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23242: && mv -f "$cfgfile.tmp" "$cfgfile" \
23243: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23244: test 0 -eq $? || _lt_function_replace_fail=:
23245:
23246:
23247: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23248: func_dirname_and_basename ()\
23249: {\
23250: \ case ${1} in\
23251: \ */*) func_dirname_result="${1%/*}${2}" ;;\
23252: \ * ) func_dirname_result="${3}" ;;\
23253: \ esac\
23254: \ func_basename_result="${1##*/}"\
23255: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23256: && mv -f "$cfgfile.tmp" "$cfgfile" \
23257: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23258: test 0 -eq $? || _lt_function_replace_fail=:
23259:
23260:
23261: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23262: func_stripname ()\
23263: {\
23264: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23265: \ # positional parameters, so assign one to ordinary parameter first.\
23266: \ func_stripname_result=${3}\
23267: \ func_stripname_result=${func_stripname_result#"${1}"}\
23268: \ func_stripname_result=${func_stripname_result%"${2}"}\
23269: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23270: && mv -f "$cfgfile.tmp" "$cfgfile" \
23271: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23272: test 0 -eq $? || _lt_function_replace_fail=:
23273:
23274:
23275: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23276: func_split_long_opt ()\
23277: {\
23278: \ func_split_long_opt_name=${1%%=*}\
23279: \ func_split_long_opt_arg=${1#*=}\
23280: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23281: && mv -f "$cfgfile.tmp" "$cfgfile" \
23282: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23283: test 0 -eq $? || _lt_function_replace_fail=:
23284:
23285:
23286: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23287: func_split_short_opt ()\
23288: {\
23289: \ func_split_short_opt_arg=${1#??}\
23290: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23291: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23292: && mv -f "$cfgfile.tmp" "$cfgfile" \
23293: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23294: test 0 -eq $? || _lt_function_replace_fail=:
23295:
23296:
23297: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23298: func_lo2o ()\
23299: {\
23300: \ case ${1} in\
23301: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23302: \ *) func_lo2o_result=${1} ;;\
23303: \ esac\
23304: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23305: && mv -f "$cfgfile.tmp" "$cfgfile" \
23306: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23307: test 0 -eq $? || _lt_function_replace_fail=:
23308:
23309:
23310: sed -e '/^func_xform ()$/,/^} # func_xform /c\
23311: func_xform ()\
23312: {\
23313: func_xform_result=${1%.*}.lo\
23314: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23315: && mv -f "$cfgfile.tmp" "$cfgfile" \
23316: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23317: test 0 -eq $? || _lt_function_replace_fail=:
23318:
23319:
23320: sed -e '/^func_arith ()$/,/^} # func_arith /c\
23321: func_arith ()\
23322: {\
23323: func_arith_result=$(( $* ))\
23324: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23325: && mv -f "$cfgfile.tmp" "$cfgfile" \
23326: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23327: test 0 -eq $? || _lt_function_replace_fail=:
23328:
23329:
23330: sed -e '/^func_len ()$/,/^} # func_len /c\
23331: func_len ()\
23332: {\
23333: func_len_result=${#1}\
23334: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23335: && mv -f "$cfgfile.tmp" "$cfgfile" \
23336: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23337: test 0 -eq $? || _lt_function_replace_fail=:
23338:
23339: fi
23340:
23341: if test x"$lt_shell_append" = xyes; then
23342: sed -e '/^func_append ()$/,/^} # func_append /c\
23343: func_append ()\
23344: {\
23345: eval "${1}+=\\${2}"\
23346: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23347: && mv -f "$cfgfile.tmp" "$cfgfile" \
23348: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23349: test 0 -eq $? || _lt_function_replace_fail=:
23350:
23351:
23352: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23353: func_append_quoted ()\
23354: {\
23355: \ func_quote_for_eval "${2}"\
23356: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23357: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23358: && mv -f "$cfgfile.tmp" "$cfgfile" \
23359: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23360: test 0 -eq $? || _lt_function_replace_fail=:
23361:
23362:
23363: # Save a `func_append' function call where possible by direct use of '+='
23364: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23365: && mv -f "$cfgfile.tmp" "$cfgfile" \
23366: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23367: test 0 -eq $? || _lt_function_replace_fail=:
23368: else
23369: # Save a `func_append' function call even when '+=' is not available
23370: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23371: && mv -f "$cfgfile.tmp" "$cfgfile" \
23372: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23373: test 0 -eq $? || _lt_function_replace_fail=:
23374: fi
23375:
23376: if test x"$_lt_function_replace_fail" = x":"; then
23377: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23378: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23379: fi
23380:
23381:
23382: mv -f "$cfgfile" "$ofile" ||
23383: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23384: chmod +x "$ofile"
23385:
23386: ;;
23387: "vtysh/extract.pl":F) chmod +x vtysh/extract.pl ;;
23388:
23389: esac
23390: done # for ac_tag
23391:
23392:
23393: as_fn_exit 0
23394: _ACEOF
23395: ac_clean_files=$ac_clean_files_save
23396:
23397: test $ac_write_fail = 0 ||
23398: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23399:
23400:
23401: # configure is writing to config.log, and then calls config.status.
23402: # config.status does its own redirection, appending to config.log.
23403: # Unfortunately, on DOS this fails, as config.log is still kept open
23404: # by configure, so config.status won't be able to write to it; its
23405: # output is simply discarded. So we exec the FD to /dev/null,
23406: # effectively closing config.log, so it can be properly (re)opened and
23407: # appended to by config.status. When coming back to configure, we
23408: # need to make the FD available again.
23409: if test "$no_create" != yes; then
23410: ac_cs_success=:
23411: ac_config_status_args=
23412: test "$silent" = yes &&
23413: ac_config_status_args="$ac_config_status_args --quiet"
23414: exec 5>/dev/null
23415: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23416: exec 5>>config.log
23417: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23418: # would make configure fail if this is the last instruction.
23419: $ac_cs_success || as_fn_exit 1
23420: fi
23421: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23422: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23423: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23424: fi
23425:
23426:
23427: echo "
23428: Quagga configuration
23429: --------------------
23430: quagga version : ${PACKAGE_VERSION}
23431: host operating system : ${host_os}
23432: source code location : ${srcdir}
23433: compiler : ${CC}
23434: compiler flags : ${CFLAGS}
23435: make : ${MAKE-make}
23436: includes : ${INCLUDES} ${SNMP_INCLUDES}
23437: linker flags : ${LDFLAGS} ${LIBS} ${LIBCAP} ${LIBREADLINE} ${LIBM}
23438: state file directory : ${quagga_statedir}
23439: config file directory : `eval echo \`echo ${sysconfdir}\``
23440: example directory : `eval echo \`echo ${exampledir}\``
23441: user to run as : ${enable_user}
23442: group to run as : ${enable_group}
23443: group for vty sockets : ${enable_vty_group}
23444: config file mask : ${enable_configfile_mask}
23445: log file mask : ${enable_logfile_mask}
23446:
23447: The above user and group must have read/write access to the state file
23448: directory and to the config files in the config file directory."
23449:
23450: if test x"$quagga_cv_gnu_make" = x"no"; then echo "
23451: Warning: The ${MAKE-make} programme detected, either in your path or
23452: via the MAKE variable, is not GNU Make. GNU make may be installed as
23453: gmake on some systems. and is required to complete a build of Quagga
23454: " > /dev/stderr
23455: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>