Annotation of embedaddon/ipsec-tools/configure, revision 1.1.1.2.2.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.2 misho 3: # Generated by GNU Autoconf 2.69 for ipsec-tools 0.8.1.
1.1 misho 4: #
5: #
1.1.1.2 misho 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1 misho 7: #
8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18: emulate sh
19: NULLCMD=:
20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81:
82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 misho 90: as_myself=
1.1 misho 91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
1.1.1.2 misho 135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
1.1 misho 160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.1.1.2 misho 193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
1.1 misho 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1.1.1.2 misho 199: test \$(( 1 + 1 )) = 2 || exit 1
200:
201: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205: PATH=/empty FPATH=/empty; export PATH FPATH
206: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
1.1 misho 208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219: do
220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
1.1.1.2 misho 247: export CONFIG_SHELL
248: # We cannot yet assume a decent shell, so we have to provide a
249: # neutralization value for shells without unset; and this also
250: # works around shells that cannot unset nonexistent variables.
251: # Preserve -v and -x to the replacement shell.
252: BASH_ENV=/dev/null
253: ENV=/dev/null
254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255: case $- in # ((((
256: *v*x* | *x*v* ) as_opts=-vx ;;
257: *v* ) as_opts=-v ;;
258: *x* ) as_opts=-x ;;
259: * ) as_opts= ;;
260: esac
261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262: # Admittedly, this is quite paranoid, since all the known shells bail
263: # out after a failed `exec'.
264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265: exit 255
1.1 misho 266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274: else
275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
279: fi
280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
1.1.1.2 misho 367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
1.1 misho 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
426:
427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
445:
446: as_me=`$as_basename -- "$0" ||
447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
464:
465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
482: sed '
483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
487: N
488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490: t loop
491: s/-\n.*//
492: ' >$as_me.lineno &&
493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495:
1.1.1.2 misho 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497: # already done that, so ensure we don't try to do so again and fall
498: # in an infinite loop. This has already happened in practice.
499: _as_can_reexec=no; export _as_can_reexec
1.1 misho 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
504: # Exit status is that of the last command.
505: exit
506: }
507:
508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
519: esac
520:
521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
524: else
525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
527: fi
528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.2 misho 534: # In both cases, we have to default to `cp -pR'.
1.1 misho 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.2 misho 536: as_ln_s='cp -pR'
1.1 misho 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.1.1.2 misho 540: as_ln_s='cp -pR'
1.1 misho 541: fi
542: else
1.1.1.2 misho 543: as_ln_s='cp -pR'
1.1 misho 544: fi
545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
547:
548: if mkdir -p . 2>/dev/null; then
549: as_mkdir_p='mkdir -p "$as_dir"'
550: else
551: test -d ./-p && rmdir ./-p
552: as_mkdir_p=false
553: fi
554:
1.1.1.2 misho 555: as_test_x='test -x'
556: as_executable_p=as_fn_executable_p
1.1 misho 557:
558: # Sed expression to map a string onto a valid CPP name.
559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560:
561: # Sed expression to map a string onto a valid variable name.
562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563:
564: SHELL=${CONFIG_SHELL-/bin/sh}
565:
566:
567: test -n "$DJDIR" || exec 7<&0 </dev/null
568: exec 6>&1
569:
570: # Name of the host.
571: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572: # so uname gets run too.
573: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574:
575: #
576: # Initializations.
577: #
578: ac_default_prefix=/usr/local
579: ac_clean_files=
580: ac_config_libobj_dir=.
581: LIBOBJS=
582: cross_compiling=no
583: subdirs=
584: MFLAGS=
585: MAKEFLAGS=
586:
587: # Identity of this package.
588: PACKAGE_NAME='ipsec-tools'
589: PACKAGE_TARNAME='ipsec-tools'
1.1.1.2 misho 590: PACKAGE_VERSION='0.8.1'
591: PACKAGE_STRING='ipsec-tools 0.8.1'
1.1 misho 592: PACKAGE_BUGREPORT=''
593: PACKAGE_URL=''
594:
595: ac_unique_file="configure.ac"
596: # Factoring default headers for most tests.
597: ac_includes_default="\
598: #include <stdio.h>
599: #ifdef HAVE_SYS_TYPES_H
600: # include <sys/types.h>
601: #endif
602: #ifdef HAVE_SYS_STAT_H
603: # include <sys/stat.h>
604: #endif
605: #ifdef STDC_HEADERS
606: # include <stdlib.h>
607: # include <stddef.h>
608: #else
609: # ifdef HAVE_STDLIB_H
610: # include <stdlib.h>
611: # endif
612: #endif
613: #ifdef HAVE_STRING_H
614: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615: # include <memory.h>
616: # endif
617: # include <string.h>
618: #endif
619: #ifdef HAVE_STRINGS_H
620: # include <strings.h>
621: #endif
622: #ifdef HAVE_INTTYPES_H
623: # include <inttypes.h>
624: #endif
625: #ifdef HAVE_STDINT_H
626: # include <stdint.h>
627: #endif
628: #ifdef HAVE_UNISTD_H
629: # include <unistd.h>
630: #endif"
631:
632: ac_subst_vars='am__EXEEXT_FALSE
633: am__EXEEXT_TRUE
634: LTLIBOBJS
635: include_racoondir
636: SECCTX_OBJS
637: NATT_OBJS
638: KRB5_CONFIG
639: FRAG_OBJS
640: HYBRID_OBJS
641: EXTRA_CRYPTO
642: CRYPTOBJS
643: LIBOBJS
644: GLIBC_BUGS
645: KERNEL_INCLUDE
646: CONFIGURE_AMFLAGS
647: RPM
648: INCLUDE_GLIBC
649: INSTALL_OPTS
650: LEXLIB
651: LEX_OUTPUT_ROOT
652: LEX
653: YFLAGS
654: YACC
655: OTOOL64
656: OTOOL
657: LIPO
658: NMEDIT
659: DSYMUTIL
1.1.1.2 misho 660: MANIFEST_TOOL
1.1 misho 661: RANLIB
1.1.1.2 misho 662: ac_ct_AR
1.1 misho 663: AR
1.1.1.2 misho 664: DLLTOOL
1.1 misho 665: OBJDUMP
666: LN_S
667: NM
668: ac_ct_DUMPBIN
669: DUMPBIN
670: LD
671: FGREP
672: SED
673: host_os
674: host_vendor
675: host_cpu
676: host
677: build_os
678: build_vendor
679: build_cpu
680: build
681: LIBTOOL
682: EGREP
683: GREP
684: CPP
685: am__fastdepCC_FALSE
686: am__fastdepCC_TRUE
687: CCDEPMODE
1.1.1.2 misho 688: am__nodep
1.1 misho 689: AMDEPBACKSLASH
690: AMDEP_FALSE
691: AMDEP_TRUE
692: am__quote
693: am__include
694: DEPDIR
695: OBJEXT
696: EXEEXT
697: ac_ct_CC
698: CPPFLAGS
699: LDFLAGS
700: CFLAGS
701: CC
1.1.1.2 misho 702: AM_BACKSLASH
703: AM_DEFAULT_VERBOSITY
704: AM_DEFAULT_V
705: AM_V
1.1 misho 706: am__untar
707: am__tar
708: AMTAR
709: am__leading_dot
710: SET_MAKE
711: AWK
712: mkdir_p
713: MKDIR_P
714: INSTALL_STRIP_PROGRAM
715: STRIP
716: install_sh
717: MAKEINFO
718: AUTOHEADER
719: AUTOMAKE
720: AUTOCONF
721: ACLOCAL
722: VERSION
723: PACKAGE
724: CYGPATH_W
725: am__isrc
726: INSTALL_DATA
727: INSTALL_SCRIPT
728: INSTALL_PROGRAM
729: target_alias
730: host_alias
731: build_alias
732: LIBS
733: ECHO_T
734: ECHO_N
735: ECHO_C
736: DEFS
737: mandir
738: localedir
739: libdir
740: psdir
741: pdfdir
742: dvidir
743: htmldir
744: infodir
745: docdir
746: oldincludedir
747: includedir
748: localstatedir
749: sharedstatedir
750: sysconfdir
751: datadir
752: datarootdir
753: libexecdir
754: sbindir
755: bindir
756: program_transform_name
757: prefix
758: exec_prefix
759: PACKAGE_URL
760: PACKAGE_BUGREPORT
761: PACKAGE_STRING
762: PACKAGE_VERSION
763: PACKAGE_TARNAME
764: PACKAGE_NAME
765: PATH_SEPARATOR
766: SHELL'
767: ac_subst_files=''
768: ac_user_opts='
769: enable_option_checking
1.1.1.2 misho 770: enable_silent_rules
1.1 misho 771: enable_shared
772: enable_dependency_tracking
773: enable_static
774: with_pic
775: enable_fast_install
776: with_gnu_ld
1.1.1.2 misho 777: with_sysroot
1.1 misho 778: enable_libtool_lock
779: with_kernel_headers
780: with_readline
781: with_flexdir
782: with_flexlib
783: with_openssl
784: enable_adminport
785: enable_rc5
786: enable_idea
787: with_libiconv
788: enable_hybrid
789: enable_frag
790: with_libradius
791: with_libpam
792: with_libldap
793: enable_gssapi
794: enable_stats
795: enable_dpd
796: enable_samode_unspec
797: enable_ipv6
798: enable_natt
799: enable_natt_versions
800: enable_broken_natt
801: enable_security_context
802: '
803: ac_precious_vars='build_alias
804: host_alias
805: target_alias
806: CC
807: CFLAGS
808: LDFLAGS
809: LIBS
810: CPPFLAGS
811: CPP
812: YACC
813: YFLAGS'
814:
815:
816: # Initialize some variables set by options.
817: ac_init_help=
818: ac_init_version=false
819: ac_unrecognized_opts=
820: ac_unrecognized_sep=
821: # The variables have the same names as the options, with
822: # dashes changed to underlines.
823: cache_file=/dev/null
824: exec_prefix=NONE
825: no_create=
826: no_recursion=
827: prefix=NONE
828: program_prefix=NONE
829: program_suffix=NONE
830: program_transform_name=s,x,x,
831: silent=
832: site=
833: srcdir=
834: verbose=
835: x_includes=NONE
836: x_libraries=NONE
837:
838: # Installation directory options.
839: # These are left unexpanded so users can "make install exec_prefix=/foo"
840: # and all the variables that are supposed to be based on exec_prefix
841: # by default will actually change.
842: # Use braces instead of parens because sh, perl, etc. also accept them.
843: # (The list follows the same order as the GNU Coding Standards.)
844: bindir='${exec_prefix}/bin'
845: sbindir='${exec_prefix}/sbin'
846: libexecdir='${exec_prefix}/libexec'
847: datarootdir='${prefix}/share'
848: datadir='${datarootdir}'
849: sysconfdir='${prefix}/etc'
850: sharedstatedir='${prefix}/com'
851: localstatedir='${prefix}/var'
852: includedir='${prefix}/include'
853: oldincludedir='/usr/include'
854: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855: infodir='${datarootdir}/info'
856: htmldir='${docdir}'
857: dvidir='${docdir}'
858: pdfdir='${docdir}'
859: psdir='${docdir}'
860: libdir='${exec_prefix}/lib'
861: localedir='${datarootdir}/locale'
862: mandir='${datarootdir}/man'
863:
864: ac_prev=
865: ac_dashdash=
866: for ac_option
867: do
868: # If the previous option needs an argument, assign it.
869: if test -n "$ac_prev"; then
870: eval $ac_prev=\$ac_option
871: ac_prev=
872: continue
873: fi
874:
875: case $ac_option in
876: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877: *=) ac_optarg= ;;
878: *) ac_optarg=yes ;;
879: esac
880:
881: # Accept the important Cygnus configure options, so we can diagnose typos.
882:
883: case $ac_dashdash$ac_option in
884: --)
885: ac_dashdash=yes ;;
886:
887: -bindir | --bindir | --bindi | --bind | --bin | --bi)
888: ac_prev=bindir ;;
889: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890: bindir=$ac_optarg ;;
891:
892: -build | --build | --buil | --bui | --bu)
893: ac_prev=build_alias ;;
894: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895: build_alias=$ac_optarg ;;
896:
897: -cache-file | --cache-file | --cache-fil | --cache-fi \
898: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899: ac_prev=cache_file ;;
900: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902: cache_file=$ac_optarg ;;
903:
904: --config-cache | -C)
905: cache_file=config.cache ;;
906:
907: -datadir | --datadir | --datadi | --datad)
908: ac_prev=datadir ;;
909: -datadir=* | --datadir=* | --datadi=* | --datad=*)
910: datadir=$ac_optarg ;;
911:
912: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913: | --dataroo | --dataro | --datar)
914: ac_prev=datarootdir ;;
915: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917: datarootdir=$ac_optarg ;;
918:
919: -disable-* | --disable-*)
920: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921: # Reject names that are not valid shell variable names.
922: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923: as_fn_error $? "invalid feature name: $ac_useropt"
924: ac_useropt_orig=$ac_useropt
925: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926: case $ac_user_opts in
927: *"
928: "enable_$ac_useropt"
929: "*) ;;
930: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931: ac_unrecognized_sep=', ';;
932: esac
933: eval enable_$ac_useropt=no ;;
934:
935: -docdir | --docdir | --docdi | --doc | --do)
936: ac_prev=docdir ;;
937: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938: docdir=$ac_optarg ;;
939:
940: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941: ac_prev=dvidir ;;
942: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943: dvidir=$ac_optarg ;;
944:
945: -enable-* | --enable-*)
946: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947: # Reject names that are not valid shell variable names.
948: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949: as_fn_error $? "invalid feature name: $ac_useropt"
950: ac_useropt_orig=$ac_useropt
951: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952: case $ac_user_opts in
953: *"
954: "enable_$ac_useropt"
955: "*) ;;
956: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957: ac_unrecognized_sep=', ';;
958: esac
959: eval enable_$ac_useropt=\$ac_optarg ;;
960:
961: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963: | --exec | --exe | --ex)
964: ac_prev=exec_prefix ;;
965: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967: | --exec=* | --exe=* | --ex=*)
968: exec_prefix=$ac_optarg ;;
969:
970: -gas | --gas | --ga | --g)
971: # Obsolete; use --with-gas.
972: with_gas=yes ;;
973:
974: -help | --help | --hel | --he | -h)
975: ac_init_help=long ;;
976: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977: ac_init_help=recursive ;;
978: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979: ac_init_help=short ;;
980:
981: -host | --host | --hos | --ho)
982: ac_prev=host_alias ;;
983: -host=* | --host=* | --hos=* | --ho=*)
984: host_alias=$ac_optarg ;;
985:
986: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987: ac_prev=htmldir ;;
988: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989: | --ht=*)
990: htmldir=$ac_optarg ;;
991:
992: -includedir | --includedir | --includedi | --included | --include \
993: | --includ | --inclu | --incl | --inc)
994: ac_prev=includedir ;;
995: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996: | --includ=* | --inclu=* | --incl=* | --inc=*)
997: includedir=$ac_optarg ;;
998:
999: -infodir | --infodir | --infodi | --infod | --info | --inf)
1000: ac_prev=infodir ;;
1001: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002: infodir=$ac_optarg ;;
1003:
1004: -libdir | --libdir | --libdi | --libd)
1005: ac_prev=libdir ;;
1006: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007: libdir=$ac_optarg ;;
1008:
1009: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010: | --libexe | --libex | --libe)
1011: ac_prev=libexecdir ;;
1012: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013: | --libexe=* | --libex=* | --libe=*)
1014: libexecdir=$ac_optarg ;;
1015:
1016: -localedir | --localedir | --localedi | --localed | --locale)
1017: ac_prev=localedir ;;
1018: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019: localedir=$ac_optarg ;;
1020:
1021: -localstatedir | --localstatedir | --localstatedi | --localstated \
1022: | --localstate | --localstat | --localsta | --localst | --locals)
1023: ac_prev=localstatedir ;;
1024: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026: localstatedir=$ac_optarg ;;
1027:
1028: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029: ac_prev=mandir ;;
1030: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031: mandir=$ac_optarg ;;
1032:
1033: -nfp | --nfp | --nf)
1034: # Obsolete; use --without-fp.
1035: with_fp=no ;;
1036:
1037: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038: | --no-cr | --no-c | -n)
1039: no_create=yes ;;
1040:
1041: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043: no_recursion=yes ;;
1044:
1045: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047: | --oldin | --oldi | --old | --ol | --o)
1048: ac_prev=oldincludedir ;;
1049: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052: oldincludedir=$ac_optarg ;;
1053:
1054: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055: ac_prev=prefix ;;
1056: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057: prefix=$ac_optarg ;;
1058:
1059: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060: | --program-pre | --program-pr | --program-p)
1061: ac_prev=program_prefix ;;
1062: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064: program_prefix=$ac_optarg ;;
1065:
1066: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067: | --program-suf | --program-su | --program-s)
1068: ac_prev=program_suffix ;;
1069: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071: program_suffix=$ac_optarg ;;
1072:
1073: -program-transform-name | --program-transform-name \
1074: | --program-transform-nam | --program-transform-na \
1075: | --program-transform-n | --program-transform- \
1076: | --program-transform | --program-transfor \
1077: | --program-transfo | --program-transf \
1078: | --program-trans | --program-tran \
1079: | --progr-tra | --program-tr | --program-t)
1080: ac_prev=program_transform_name ;;
1081: -program-transform-name=* | --program-transform-name=* \
1082: | --program-transform-nam=* | --program-transform-na=* \
1083: | --program-transform-n=* | --program-transform-=* \
1084: | --program-transform=* | --program-transfor=* \
1085: | --program-transfo=* | --program-transf=* \
1086: | --program-trans=* | --program-tran=* \
1087: | --progr-tra=* | --program-tr=* | --program-t=*)
1088: program_transform_name=$ac_optarg ;;
1089:
1090: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091: ac_prev=pdfdir ;;
1092: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093: pdfdir=$ac_optarg ;;
1094:
1095: -psdir | --psdir | --psdi | --psd | --ps)
1096: ac_prev=psdir ;;
1097: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098: psdir=$ac_optarg ;;
1099:
1100: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101: | -silent | --silent | --silen | --sile | --sil)
1102: silent=yes ;;
1103:
1104: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105: ac_prev=sbindir ;;
1106: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107: | --sbi=* | --sb=*)
1108: sbindir=$ac_optarg ;;
1109:
1110: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112: | --sharedst | --shareds | --shared | --share | --shar \
1113: | --sha | --sh)
1114: ac_prev=sharedstatedir ;;
1115: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118: | --sha=* | --sh=*)
1119: sharedstatedir=$ac_optarg ;;
1120:
1121: -site | --site | --sit)
1122: ac_prev=site ;;
1123: -site=* | --site=* | --sit=*)
1124: site=$ac_optarg ;;
1125:
1126: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127: ac_prev=srcdir ;;
1128: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129: srcdir=$ac_optarg ;;
1130:
1131: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132: | --syscon | --sysco | --sysc | --sys | --sy)
1133: ac_prev=sysconfdir ;;
1134: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136: sysconfdir=$ac_optarg ;;
1137:
1138: -target | --target | --targe | --targ | --tar | --ta | --t)
1139: ac_prev=target_alias ;;
1140: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141: target_alias=$ac_optarg ;;
1142:
1143: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144: verbose=yes ;;
1145:
1146: -version | --version | --versio | --versi | --vers | -V)
1147: ac_init_version=: ;;
1148:
1149: -with-* | --with-*)
1150: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151: # Reject names that are not valid shell variable names.
1152: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153: as_fn_error $? "invalid package name: $ac_useropt"
1154: ac_useropt_orig=$ac_useropt
1155: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156: case $ac_user_opts in
1157: *"
1158: "with_$ac_useropt"
1159: "*) ;;
1160: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161: ac_unrecognized_sep=', ';;
1162: esac
1163: eval with_$ac_useropt=\$ac_optarg ;;
1164:
1165: -without-* | --without-*)
1166: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167: # Reject names that are not valid shell variable names.
1168: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169: as_fn_error $? "invalid package name: $ac_useropt"
1170: ac_useropt_orig=$ac_useropt
1171: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172: case $ac_user_opts in
1173: *"
1174: "with_$ac_useropt"
1175: "*) ;;
1176: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177: ac_unrecognized_sep=', ';;
1178: esac
1179: eval with_$ac_useropt=no ;;
1180:
1181: --x)
1182: # Obsolete; use --with-x.
1183: with_x=yes ;;
1184:
1185: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186: | --x-incl | --x-inc | --x-in | --x-i)
1187: ac_prev=x_includes ;;
1188: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190: x_includes=$ac_optarg ;;
1191:
1192: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194: ac_prev=x_libraries ;;
1195: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197: x_libraries=$ac_optarg ;;
1198:
1199: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200: Try \`$0 --help' for more information"
1201: ;;
1202:
1203: *=*)
1204: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205: # Reject names that are not valid shell variable names.
1206: case $ac_envvar in #(
1207: '' | [0-9]* | *[!_$as_cr_alnum]* )
1208: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209: esac
1210: eval $ac_envvar=\$ac_optarg
1211: export $ac_envvar ;;
1212:
1213: *)
1214: # FIXME: should be removed in autoconf 3.0.
1215: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1.1.2 misho 1218: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misho 1219: ;;
1220:
1221: esac
1222: done
1223:
1224: if test -n "$ac_prev"; then
1225: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226: as_fn_error $? "missing argument to $ac_option"
1227: fi
1228:
1229: if test -n "$ac_unrecognized_opts"; then
1230: case $enable_option_checking in
1231: no) ;;
1232: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234: esac
1235: fi
1236:
1237: # Check all directory arguments for consistency.
1238: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239: datadir sysconfdir sharedstatedir localstatedir includedir \
1240: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241: libdir localedir mandir
1242: do
1243: eval ac_val=\$$ac_var
1244: # Remove trailing slashes.
1245: case $ac_val in
1246: */ )
1247: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248: eval $ac_var=\$ac_val;;
1249: esac
1250: # Be sure to have absolute directory names.
1251: case $ac_val in
1252: [\\/$]* | ?:[\\/]* ) continue;;
1253: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254: esac
1255: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256: done
1257:
1258: # There might be people who depend on the old broken behavior: `$host'
1259: # used to hold the argument of --host etc.
1260: # FIXME: To remove some day.
1261: build=$build_alias
1262: host=$host_alias
1263: target=$target_alias
1264:
1265: # FIXME: To remove some day.
1266: if test "x$host_alias" != x; then
1267: if test "x$build_alias" = x; then
1268: cross_compiling=maybe
1269: elif test "x$build_alias" != "x$host_alias"; then
1270: cross_compiling=yes
1271: fi
1272: fi
1273:
1274: ac_tool_prefix=
1275: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276:
1277: test "$silent" = yes && exec 6>/dev/null
1278:
1279:
1280: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281: ac_ls_di=`ls -di .` &&
1282: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283: as_fn_error $? "working directory cannot be determined"
1284: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285: as_fn_error $? "pwd does not report name of working directory"
1286:
1287:
1288: # Find the source files, if location was not specified.
1289: if test -z "$srcdir"; then
1290: ac_srcdir_defaulted=yes
1291: # Try the directory containing this script, then the parent directory.
1292: ac_confdir=`$as_dirname -- "$as_myself" ||
1293: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294: X"$as_myself" : 'X\(//\)[^/]' \| \
1295: X"$as_myself" : 'X\(//\)$' \| \
1296: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297: $as_echo X"$as_myself" |
1298: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299: s//\1/
1300: q
1301: }
1302: /^X\(\/\/\)[^/].*/{
1303: s//\1/
1304: q
1305: }
1306: /^X\(\/\/\)$/{
1307: s//\1/
1308: q
1309: }
1310: /^X\(\/\).*/{
1311: s//\1/
1312: q
1313: }
1314: s/.*/./; q'`
1315: srcdir=$ac_confdir
1316: if test ! -r "$srcdir/$ac_unique_file"; then
1317: srcdir=..
1318: fi
1319: else
1320: ac_srcdir_defaulted=no
1321: fi
1322: if test ! -r "$srcdir/$ac_unique_file"; then
1323: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325: fi
1326: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327: ac_abs_confdir=`(
1328: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329: pwd)`
1330: # When building in place, set srcdir=.
1331: if test "$ac_abs_confdir" = "$ac_pwd"; then
1332: srcdir=.
1333: fi
1334: # Remove unnecessary trailing slashes from srcdir.
1335: # Double slashes in file names in object file debugging info
1336: # mess up M-x gdb in Emacs.
1337: case $srcdir in
1338: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339: esac
1340: for ac_var in $ac_precious_vars; do
1341: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342: eval ac_env_${ac_var}_value=\$${ac_var}
1343: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345: done
1346:
1347: #
1348: # Report the --help message.
1349: #
1350: if test "$ac_init_help" = "long"; then
1351: # Omit some internal or obsolete options to make the list less imposing.
1352: # This message is too long to be a string in the A/UX 3.1 sh.
1353: cat <<_ACEOF
1.1.1.2 misho 1354: \`configure' configures ipsec-tools 0.8.1 to adapt to many kinds of systems.
1.1 misho 1355:
1356: Usage: $0 [OPTION]... [VAR=VALUE]...
1357:
1358: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359: VAR=VALUE. See below for descriptions of some of the useful variables.
1360:
1361: Defaults for the options are specified in brackets.
1362:
1363: Configuration:
1364: -h, --help display this help and exit
1365: --help=short display options specific to this package
1366: --help=recursive display the short help of all the included packages
1367: -V, --version display version information and exit
1368: -q, --quiet, --silent do not print \`checking ...' messages
1369: --cache-file=FILE cache test results in FILE [disabled]
1370: -C, --config-cache alias for \`--cache-file=config.cache'
1371: -n, --no-create do not create output files
1372: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373:
1374: Installation directories:
1375: --prefix=PREFIX install architecture-independent files in PREFIX
1376: [$ac_default_prefix]
1377: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378: [PREFIX]
1379:
1380: By default, \`make install' will install all the files in
1381: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383: for instance \`--prefix=\$HOME'.
1384:
1385: For better control, use the options below.
1386:
1387: Fine tuning of the installation directories:
1388: --bindir=DIR user executables [EPREFIX/bin]
1389: --sbindir=DIR system admin executables [EPREFIX/sbin]
1390: --libexecdir=DIR program executables [EPREFIX/libexec]
1391: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394: --libdir=DIR object code libraries [EPREFIX/lib]
1395: --includedir=DIR C header files [PREFIX/include]
1396: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399: --infodir=DIR info documentation [DATAROOTDIR/info]
1400: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401: --mandir=DIR man documentation [DATAROOTDIR/man]
1402: --docdir=DIR documentation root [DATAROOTDIR/doc/ipsec-tools]
1403: --htmldir=DIR html documentation [DOCDIR]
1404: --dvidir=DIR dvi documentation [DOCDIR]
1405: --pdfdir=DIR pdf documentation [DOCDIR]
1406: --psdir=DIR ps documentation [DOCDIR]
1407: _ACEOF
1408:
1409: cat <<\_ACEOF
1410:
1411: Program names:
1412: --program-prefix=PREFIX prepend PREFIX to installed program names
1413: --program-suffix=SUFFIX append SUFFIX to installed program names
1414: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415:
1416: System types:
1417: --build=BUILD configure for building on BUILD [guessed]
1418: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419: _ACEOF
1420: fi
1421:
1422: if test -n "$ac_init_help"; then
1423: case $ac_init_help in
1.1.1.2 misho 1424: short | recursive ) echo "Configuration of ipsec-tools 0.8.1:";;
1.1 misho 1425: esac
1426: cat <<\_ACEOF
1427:
1428: Optional Features:
1429: --disable-option-checking ignore unrecognized --enable/--with options
1430: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 misho 1432: --enable-silent-rules less verbose build output (undo: "make V=1")
1433: --disable-silent-rules verbose build output (undo: "make V=0")
1.1 misho 1434: --enable-shared[=PKGS] build shared libraries [default=no]
1.1.1.2 misho 1435: --enable-dependency-tracking
1436: do not reject slow dependency extractors
1437: --disable-dependency-tracking
1438: speeds up one-time build
1.1 misho 1439: --enable-static[=PKGS] build static libraries [default=yes]
1440: --enable-fast-install[=PKGS]
1441: optimize for fast installation [default=yes]
1442: --disable-libtool-lock avoid locking (might break parallel builds)
1443: --enable-adminport enable admin port
1444: --enable-rc5 enable RC5 encryption (patented)
1445: --enable-idea enable IDEA encryption (patented)
1446: --enable-hybrid enable hybrid, both mode-cfg and xauth support
1447: --enable-frag enable IKE fragmentation payload support
1448: --enable-gssapi enable GSS-API authentication
1449: --enable-stats enable statistics logging function
1450: --enable-dpd enable dead peer detection
1451: --enable-samode-unspec enable to use unspecified a mode of SA
1452: --disable-ipv6 disable ipv6 support
1453: --enable-natt enable NAT-Traversal (yes/no/kernel)
1454: --enable-natt-versions=list list of supported NAT-T versions delimited by coma.
1455: --enable-broken-natt broken in-kernel NAT-T
1456: --enable-security-context enable Security Context(yes/no/kernel)
1457:
1458: Optional Packages:
1459: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.2 misho 1461: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.1 misho 1462: both]
1463: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.1.1.2 misho 1464: --with-sysroot=DIR Search for dependent libraries within DIR
1465: (or the compiler's sysroot if not specified).
1.1 misho 1466: --with-kernel-headers=/lib/modules/<uname>/build/include
1467: where your Linux Kernel headers are installed
1468: --with-readline support readline input (yes by default)
1469: --with-flex use directiory (default: no)
1470: --with-flexlib=<LIB> specify flex library.
1471: --with-openssl=DIR specify OpenSSL directory
1472: --with-libiconv=DIR specify libiconv path (like/usr/pkg)
1473: --with-libradius=DIR specify libradius path (like/usr/pkg)
1474: --with-libpam=DIR specify libpam path (like/usr/pkg)
1475: --with-libldap=DIR specify libldap path (like/usr/pkg)
1476:
1477: Some influential environment variables:
1478: CC C compiler command
1479: CFLAGS C compiler flags
1480: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481: nonstandard directory <lib dir>
1482: LIBS libraries to pass to the linker, e.g. -l<library>
1483: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484: you have headers in a nonstandard directory <include dir>
1485: CPP C preprocessor
1.1.1.2 misho 1486: YACC The `Yet Another Compiler Compiler' implementation to use.
1487: Defaults to the first program found out of: `bison -y', `byacc',
1488: `yacc'.
1.1 misho 1489: YFLAGS The list of arguments that will be passed by default to $YACC.
1490: This script will default YFLAGS to the empty string to avoid a
1491: default value of `-d' given by some make applications.
1492:
1493: Use these variables to override the choices made by `configure' or to help
1494: it to find libraries and programs with nonstandard names/locations.
1495:
1496: Report bugs to the package provider.
1497: _ACEOF
1498: ac_status=$?
1499: fi
1500:
1501: if test "$ac_init_help" = "recursive"; then
1502: # If there are subdirs, report their specific --help.
1503: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504: test -d "$ac_dir" ||
1505: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506: continue
1507: ac_builddir=.
1508:
1509: case "$ac_dir" in
1510: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511: *)
1512: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513: # A ".." for each directory in $ac_dir_suffix.
1514: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515: case $ac_top_builddir_sub in
1516: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518: esac ;;
1519: esac
1520: ac_abs_top_builddir=$ac_pwd
1521: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522: # for backward compatibility:
1523: ac_top_builddir=$ac_top_build_prefix
1524:
1525: case $srcdir in
1526: .) # We are building in place.
1527: ac_srcdir=.
1528: ac_top_srcdir=$ac_top_builddir_sub
1529: ac_abs_top_srcdir=$ac_pwd ;;
1530: [\\/]* | ?:[\\/]* ) # Absolute name.
1531: ac_srcdir=$srcdir$ac_dir_suffix;
1532: ac_top_srcdir=$srcdir
1533: ac_abs_top_srcdir=$srcdir ;;
1534: *) # Relative name.
1535: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536: ac_top_srcdir=$ac_top_build_prefix$srcdir
1537: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538: esac
1539: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540:
1541: cd "$ac_dir" || { ac_status=$?; continue; }
1542: # Check for guested configure.
1543: if test -f "$ac_srcdir/configure.gnu"; then
1544: echo &&
1545: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546: elif test -f "$ac_srcdir/configure"; then
1547: echo &&
1548: $SHELL "$ac_srcdir/configure" --help=recursive
1549: else
1550: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551: fi || ac_status=$?
1552: cd "$ac_pwd" || { ac_status=$?; break; }
1553: done
1554: fi
1555:
1556: test -n "$ac_init_help" && exit $ac_status
1557: if $ac_init_version; then
1558: cat <<\_ACEOF
1.1.1.2 misho 1559: ipsec-tools configure 0.8.1
1560: generated by GNU Autoconf 2.69
1.1 misho 1561:
1.1.1.2 misho 1562: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 1563: This configure script is free software; the Free Software Foundation
1564: gives unlimited permission to copy, distribute and modify it.
1565: _ACEOF
1566: exit
1567: fi
1568:
1569: ## ------------------------ ##
1570: ## Autoconf initialization. ##
1571: ## ------------------------ ##
1572:
1573: # ac_fn_c_try_compile LINENO
1574: # --------------------------
1575: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576: ac_fn_c_try_compile ()
1577: {
1578: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579: rm -f conftest.$ac_objext
1580: if { { ac_try="$ac_compile"
1581: case "(($ac_try" in
1582: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583: *) ac_try_echo=$ac_try;;
1584: esac
1585: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586: $as_echo "$ac_try_echo"; } >&5
1587: (eval "$ac_compile") 2>conftest.err
1588: ac_status=$?
1589: if test -s conftest.err; then
1590: grep -v '^ *+' conftest.err >conftest.er1
1591: cat conftest.er1 >&5
1592: mv -f conftest.er1 conftest.err
1593: fi
1594: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595: test $ac_status = 0; } && {
1596: test -z "$ac_c_werror_flag" ||
1597: test ! -s conftest.err
1598: } && test -s conftest.$ac_objext; then :
1599: ac_retval=0
1600: else
1601: $as_echo "$as_me: failed program was:" >&5
1602: sed 's/^/| /' conftest.$ac_ext >&5
1603:
1604: ac_retval=1
1605: fi
1.1.1.2 misho 1606: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1607: as_fn_set_status $ac_retval
1608:
1609: } # ac_fn_c_try_compile
1610:
1611: # ac_fn_c_try_cpp LINENO
1612: # ----------------------
1613: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614: ac_fn_c_try_cpp ()
1615: {
1616: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617: if { { ac_try="$ac_cpp conftest.$ac_ext"
1618: case "(($ac_try" in
1619: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620: *) ac_try_echo=$ac_try;;
1621: esac
1622: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623: $as_echo "$ac_try_echo"; } >&5
1624: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625: ac_status=$?
1626: if test -s conftest.err; then
1627: grep -v '^ *+' conftest.err >conftest.er1
1628: cat conftest.er1 >&5
1629: mv -f conftest.er1 conftest.err
1630: fi
1631: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632: test $ac_status = 0; } > conftest.i && {
1633: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634: test ! -s conftest.err
1635: }; then :
1636: ac_retval=0
1637: else
1638: $as_echo "$as_me: failed program was:" >&5
1639: sed 's/^/| /' conftest.$ac_ext >&5
1640:
1641: ac_retval=1
1642: fi
1.1.1.2 misho 1643: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1644: as_fn_set_status $ac_retval
1645:
1646: } # ac_fn_c_try_cpp
1647:
1648: # ac_fn_c_try_run LINENO
1649: # ----------------------
1650: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1651: # that executables *can* be run.
1652: ac_fn_c_try_run ()
1653: {
1654: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655: if { { ac_try="$ac_link"
1656: case "(($ac_try" in
1657: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658: *) ac_try_echo=$ac_try;;
1659: esac
1660: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661: $as_echo "$ac_try_echo"; } >&5
1662: (eval "$ac_link") 2>&5
1663: ac_status=$?
1664: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1666: { { case "(($ac_try" in
1667: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668: *) ac_try_echo=$ac_try;;
1669: esac
1670: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671: $as_echo "$ac_try_echo"; } >&5
1672: (eval "$ac_try") 2>&5
1673: ac_status=$?
1674: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675: test $ac_status = 0; }; }; then :
1676: ac_retval=0
1677: else
1678: $as_echo "$as_me: program exited with status $ac_status" >&5
1679: $as_echo "$as_me: failed program was:" >&5
1680: sed 's/^/| /' conftest.$ac_ext >&5
1681:
1682: ac_retval=$ac_status
1683: fi
1684: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.1.1.2 misho 1685: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1686: as_fn_set_status $ac_retval
1687:
1688: } # ac_fn_c_try_run
1689:
1690: # ac_fn_c_try_link LINENO
1691: # -----------------------
1692: # Try to link conftest.$ac_ext, and return whether this succeeded.
1693: ac_fn_c_try_link ()
1694: {
1695: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696: rm -f conftest.$ac_objext conftest$ac_exeext
1697: if { { ac_try="$ac_link"
1698: case "(($ac_try" in
1699: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700: *) ac_try_echo=$ac_try;;
1701: esac
1702: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703: $as_echo "$ac_try_echo"; } >&5
1704: (eval "$ac_link") 2>conftest.err
1705: ac_status=$?
1706: if test -s conftest.err; then
1707: grep -v '^ *+' conftest.err >conftest.er1
1708: cat conftest.er1 >&5
1709: mv -f conftest.er1 conftest.err
1710: fi
1711: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712: test $ac_status = 0; } && {
1713: test -z "$ac_c_werror_flag" ||
1714: test ! -s conftest.err
1715: } && test -s conftest$ac_exeext && {
1716: test "$cross_compiling" = yes ||
1.1.1.2 misho 1717: test -x conftest$ac_exeext
1.1 misho 1718: }; then :
1719: ac_retval=0
1720: else
1721: $as_echo "$as_me: failed program was:" >&5
1722: sed 's/^/| /' conftest.$ac_ext >&5
1723:
1724: ac_retval=1
1725: fi
1726: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728: # interfere with the next link command; also delete a directory that is
1729: # left behind by Apple's compiler. We do this before executing the actions.
1730: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.1.1.2 misho 1731: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1732: as_fn_set_status $ac_retval
1733:
1734: } # ac_fn_c_try_link
1735:
1736: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737: # -------------------------------------------------------
1738: # Tests whether HEADER exists and can be compiled using the include files in
1739: # INCLUDES, setting the cache variable VAR accordingly.
1740: ac_fn_c_check_header_compile ()
1741: {
1742: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744: $as_echo_n "checking for $2... " >&6; }
1.1.1.2 misho 1745: if eval \${$3+:} false; then :
1.1 misho 1746: $as_echo_n "(cached) " >&6
1747: else
1748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749: /* end confdefs.h. */
1750: $4
1751: #include <$2>
1752: _ACEOF
1753: if ac_fn_c_try_compile "$LINENO"; then :
1754: eval "$3=yes"
1755: else
1756: eval "$3=no"
1757: fi
1758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759: fi
1760: eval ac_res=\$$3
1761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762: $as_echo "$ac_res" >&6; }
1.1.1.2 misho 1763: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1764:
1765: } # ac_fn_c_check_header_compile
1766:
1767: # ac_fn_c_check_func LINENO FUNC VAR
1768: # ----------------------------------
1769: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770: ac_fn_c_check_func ()
1771: {
1772: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774: $as_echo_n "checking for $2... " >&6; }
1.1.1.2 misho 1775: if eval \${$3+:} false; then :
1.1 misho 1776: $as_echo_n "(cached) " >&6
1777: else
1778: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779: /* end confdefs.h. */
1780: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782: #define $2 innocuous_$2
1783:
1784: /* System header to define __stub macros and hopefully few prototypes,
1785: which can conflict with char $2 (); below.
1786: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787: <limits.h> exists even on freestanding compilers. */
1788:
1789: #ifdef __STDC__
1790: # include <limits.h>
1791: #else
1792: # include <assert.h>
1793: #endif
1794:
1795: #undef $2
1796:
1797: /* Override any GCC internal prototype to avoid an error.
1798: Use char because int might match the return type of a GCC
1799: builtin and then its argument prototype would still apply. */
1800: #ifdef __cplusplus
1801: extern "C"
1802: #endif
1803: char $2 ();
1804: /* The GNU C library defines this for functions which it implements
1805: to always fail with ENOSYS. Some functions are actually named
1806: something starting with __ and the normal name is an alias. */
1807: #if defined __stub_$2 || defined __stub___$2
1808: choke me
1809: #endif
1810:
1811: int
1812: main ()
1813: {
1814: return $2 ();
1815: ;
1816: return 0;
1817: }
1818: _ACEOF
1819: if ac_fn_c_try_link "$LINENO"; then :
1820: eval "$3=yes"
1821: else
1822: eval "$3=no"
1823: fi
1824: rm -f core conftest.err conftest.$ac_objext \
1825: conftest$ac_exeext conftest.$ac_ext
1826: fi
1827: eval ac_res=\$$3
1828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829: $as_echo "$ac_res" >&6; }
1.1.1.2 misho 1830: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1831:
1832: } # ac_fn_c_check_func
1833:
1834: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1835: # -------------------------------------------------------
1836: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1837: # the include files in INCLUDES and setting the cache variable VAR
1838: # accordingly.
1839: ac_fn_c_check_header_mongrel ()
1840: {
1841: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.2 misho 1842: if eval \${$3+:} false; then :
1.1 misho 1843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844: $as_echo_n "checking for $2... " >&6; }
1.1.1.2 misho 1845: if eval \${$3+:} false; then :
1.1 misho 1846: $as_echo_n "(cached) " >&6
1847: fi
1848: eval ac_res=\$$3
1849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850: $as_echo "$ac_res" >&6; }
1851: else
1852: # Is the header compilable?
1853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1854: $as_echo_n "checking $2 usability... " >&6; }
1855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856: /* end confdefs.h. */
1857: $4
1858: #include <$2>
1859: _ACEOF
1860: if ac_fn_c_try_compile "$LINENO"; then :
1861: ac_header_compiler=yes
1862: else
1863: ac_header_compiler=no
1864: fi
1865: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1867: $as_echo "$ac_header_compiler" >&6; }
1868:
1869: # Is the header present?
1870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1871: $as_echo_n "checking $2 presence... " >&6; }
1872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873: /* end confdefs.h. */
1874: #include <$2>
1875: _ACEOF
1876: if ac_fn_c_try_cpp "$LINENO"; then :
1877: ac_header_preproc=yes
1878: else
1879: ac_header_preproc=no
1880: fi
1881: rm -f conftest.err conftest.i conftest.$ac_ext
1882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1883: $as_echo "$ac_header_preproc" >&6; }
1884:
1885: # So? What about this header?
1886: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1887: yes:no: )
1888: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1889: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1890: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892: ;;
1893: no:yes:* )
1894: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1895: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1896: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1897: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1898: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1899: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1900: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1901: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1902: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904: ;;
1905: esac
1906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907: $as_echo_n "checking for $2... " >&6; }
1.1.1.2 misho 1908: if eval \${$3+:} false; then :
1.1 misho 1909: $as_echo_n "(cached) " >&6
1910: else
1911: eval "$3=\$ac_header_compiler"
1912: fi
1913: eval ac_res=\$$3
1914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915: $as_echo "$ac_res" >&6; }
1916: fi
1.1.1.2 misho 1917: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1918:
1919: } # ac_fn_c_check_header_mongrel
1920:
1921: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1922: # ----------------------------------------------------
1923: # Tries to find if the field MEMBER exists in type AGGR, after including
1924: # INCLUDES, setting cache variable VAR accordingly.
1925: ac_fn_c_check_member ()
1926: {
1927: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1929: $as_echo_n "checking for $2.$3... " >&6; }
1.1.1.2 misho 1930: if eval \${$4+:} false; then :
1.1 misho 1931: $as_echo_n "(cached) " >&6
1932: else
1933: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934: /* end confdefs.h. */
1935: $5
1936: int
1937: main ()
1938: {
1939: static $2 ac_aggr;
1940: if (ac_aggr.$3)
1941: return 0;
1942: ;
1943: return 0;
1944: }
1945: _ACEOF
1946: if ac_fn_c_try_compile "$LINENO"; then :
1947: eval "$4=yes"
1948: else
1949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950: /* end confdefs.h. */
1951: $5
1952: int
1953: main ()
1954: {
1955: static $2 ac_aggr;
1956: if (sizeof ac_aggr.$3)
1957: return 0;
1958: ;
1959: return 0;
1960: }
1961: _ACEOF
1962: if ac_fn_c_try_compile "$LINENO"; then :
1963: eval "$4=yes"
1964: else
1965: eval "$4=no"
1966: fi
1967: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968: fi
1969: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970: fi
1971: eval ac_res=\$$4
1972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973: $as_echo "$ac_res" >&6; }
1.1.1.2 misho 1974: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1975:
1976: } # ac_fn_c_check_member
1977:
1978: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979: # -------------------------------------------
1980: # Tests whether TYPE exists after having included INCLUDES, setting cache
1981: # variable VAR accordingly.
1982: ac_fn_c_check_type ()
1983: {
1984: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986: $as_echo_n "checking for $2... " >&6; }
1.1.1.2 misho 1987: if eval \${$3+:} false; then :
1.1 misho 1988: $as_echo_n "(cached) " >&6
1989: else
1990: eval "$3=no"
1991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992: /* end confdefs.h. */
1993: $4
1994: int
1995: main ()
1996: {
1997: if (sizeof ($2))
1998: return 0;
1999: ;
2000: return 0;
2001: }
2002: _ACEOF
2003: if ac_fn_c_try_compile "$LINENO"; then :
2004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005: /* end confdefs.h. */
2006: $4
2007: int
2008: main ()
2009: {
2010: if (sizeof (($2)))
2011: return 0;
2012: ;
2013: return 0;
2014: }
2015: _ACEOF
2016: if ac_fn_c_try_compile "$LINENO"; then :
2017:
2018: else
2019: eval "$3=yes"
2020: fi
2021: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022: fi
2023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024: fi
2025: eval ac_res=\$$3
2026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027: $as_echo "$ac_res" >&6; }
1.1.1.2 misho 2028: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 2029:
2030: } # ac_fn_c_check_type
2031: cat >config.log <<_ACEOF
2032: This file contains any messages produced by compilers while
2033: running configure, to aid debugging if configure makes a mistake.
2034:
1.1.1.2 misho 2035: It was created by ipsec-tools $as_me 0.8.1, which was
2036: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 2037:
2038: $ $0 $@
2039:
2040: _ACEOF
2041: exec 5>>config.log
2042: {
2043: cat <<_ASUNAME
2044: ## --------- ##
2045: ## Platform. ##
2046: ## --------- ##
2047:
2048: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053:
2054: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2056:
2057: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2058: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2059: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2060: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2061: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2062: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2063: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064:
2065: _ASUNAME
2066:
2067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068: for as_dir in $PATH
2069: do
2070: IFS=$as_save_IFS
2071: test -z "$as_dir" && as_dir=.
2072: $as_echo "PATH: $as_dir"
2073: done
2074: IFS=$as_save_IFS
2075:
2076: } >&5
2077:
2078: cat >&5 <<_ACEOF
2079:
2080:
2081: ## ----------- ##
2082: ## Core tests. ##
2083: ## ----------- ##
2084:
2085: _ACEOF
2086:
2087:
2088: # Keep a trace of the command line.
2089: # Strip out --no-create and --no-recursion so they do not pile up.
2090: # Strip out --silent because we don't want to record it for future runs.
2091: # Also quote any args containing shell meta-characters.
2092: # Make two passes to allow for proper duplicate-argument suppression.
2093: ac_configure_args=
2094: ac_configure_args0=
2095: ac_configure_args1=
2096: ac_must_keep_next=false
2097: for ac_pass in 1 2
2098: do
2099: for ac_arg
2100: do
2101: case $ac_arg in
2102: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104: | -silent | --silent | --silen | --sile | --sil)
2105: continue ;;
2106: *\'*)
2107: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108: esac
2109: case $ac_pass in
2110: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2111: 2)
2112: as_fn_append ac_configure_args1 " '$ac_arg'"
2113: if test $ac_must_keep_next = true; then
2114: ac_must_keep_next=false # Got value, back to normal.
2115: else
2116: case $ac_arg in
2117: *=* | --config-cache | -C | -disable-* | --disable-* \
2118: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120: | -with-* | --with-* | -without-* | --without-* | --x)
2121: case "$ac_configure_args0 " in
2122: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123: esac
2124: ;;
2125: -* ) ac_must_keep_next=true ;;
2126: esac
2127: fi
2128: as_fn_append ac_configure_args " '$ac_arg'"
2129: ;;
2130: esac
2131: done
2132: done
2133: { ac_configure_args0=; unset ac_configure_args0;}
2134: { ac_configure_args1=; unset ac_configure_args1;}
2135:
2136: # When interrupted or exit'd, cleanup temporary files, and complete
2137: # config.log. We remove comments because anyway the quotes in there
2138: # would cause problems or look ugly.
2139: # WARNING: Use '\'' to represent an apostrophe within the trap.
2140: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2141: trap 'exit_status=$?
2142: # Save into config.log some information that might help in debugging.
2143: {
2144: echo
2145:
2146: $as_echo "## ---------------- ##
2147: ## Cache variables. ##
2148: ## ---------------- ##"
2149: echo
2150: # The following way of writing the cache mishandles newlines in values,
2151: (
2152: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153: eval ac_val=\$$ac_var
2154: case $ac_val in #(
2155: *${as_nl}*)
2156: case $ac_var in #(
2157: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159: esac
2160: case $ac_var in #(
2161: _ | IFS | as_nl) ;; #(
2162: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163: *) { eval $ac_var=; unset $ac_var;} ;;
2164: esac ;;
2165: esac
2166: done
2167: (set) 2>&1 |
2168: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169: *${as_nl}ac_space=\ *)
2170: sed -n \
2171: "s/'\''/'\''\\\\'\'''\''/g;
2172: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173: ;; #(
2174: *)
2175: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2176: ;;
2177: esac |
2178: sort
2179: )
2180: echo
2181:
2182: $as_echo "## ----------------- ##
2183: ## Output variables. ##
2184: ## ----------------- ##"
2185: echo
2186: for ac_var in $ac_subst_vars
2187: do
2188: eval ac_val=\$$ac_var
2189: case $ac_val in
2190: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191: esac
2192: $as_echo "$ac_var='\''$ac_val'\''"
2193: done | sort
2194: echo
2195:
2196: if test -n "$ac_subst_files"; then
2197: $as_echo "## ------------------- ##
2198: ## File substitutions. ##
2199: ## ------------------- ##"
2200: echo
2201: for ac_var in $ac_subst_files
2202: do
2203: eval ac_val=\$$ac_var
2204: case $ac_val in
2205: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206: esac
2207: $as_echo "$ac_var='\''$ac_val'\''"
2208: done | sort
2209: echo
2210: fi
2211:
2212: if test -s confdefs.h; then
2213: $as_echo "## ----------- ##
2214: ## confdefs.h. ##
2215: ## ----------- ##"
2216: echo
2217: cat confdefs.h
2218: echo
2219: fi
2220: test "$ac_signal" != 0 &&
2221: $as_echo "$as_me: caught signal $ac_signal"
2222: $as_echo "$as_me: exit $exit_status"
2223: } >&5
2224: rm -f core *.core core.conftest.* &&
2225: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226: exit $exit_status
2227: ' 0
2228: for ac_signal in 1 2 13 15; do
2229: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230: done
2231: ac_signal=0
2232:
2233: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234: rm -f -r conftest* confdefs.h
2235:
2236: $as_echo "/* confdefs.h */" > confdefs.h
2237:
2238: # Predefined preprocessor variables.
2239:
2240: cat >>confdefs.h <<_ACEOF
2241: #define PACKAGE_NAME "$PACKAGE_NAME"
2242: _ACEOF
2243:
2244: cat >>confdefs.h <<_ACEOF
2245: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2246: _ACEOF
2247:
2248: cat >>confdefs.h <<_ACEOF
2249: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250: _ACEOF
2251:
2252: cat >>confdefs.h <<_ACEOF
2253: #define PACKAGE_STRING "$PACKAGE_STRING"
2254: _ACEOF
2255:
2256: cat >>confdefs.h <<_ACEOF
2257: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2258: _ACEOF
2259:
2260: cat >>confdefs.h <<_ACEOF
2261: #define PACKAGE_URL "$PACKAGE_URL"
2262: _ACEOF
2263:
2264:
2265: # Let the site file select an alternate cache file if it wants to.
2266: # Prefer an explicitly selected file to automatically selected ones.
2267: ac_site_file1=NONE
2268: ac_site_file2=NONE
2269: if test -n "$CONFIG_SITE"; then
2270: # We do not want a PATH search for config.site.
2271: case $CONFIG_SITE in #((
2272: -*) ac_site_file1=./$CONFIG_SITE;;
2273: */*) ac_site_file1=$CONFIG_SITE;;
2274: *) ac_site_file1=./$CONFIG_SITE;;
2275: esac
2276: elif test "x$prefix" != xNONE; then
2277: ac_site_file1=$prefix/share/config.site
2278: ac_site_file2=$prefix/etc/config.site
2279: else
2280: ac_site_file1=$ac_default_prefix/share/config.site
2281: ac_site_file2=$ac_default_prefix/etc/config.site
2282: fi
2283: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2284: do
2285: test "x$ac_site_file" = xNONE && continue
2286: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2287: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289: sed 's/^/| /' "$ac_site_file" >&5
2290: . "$ac_site_file" \
2291: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293: as_fn_error $? "failed to load site script $ac_site_file
1.1.1.2 misho 2294: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2295: fi
2296: done
2297:
2298: if test -r "$cache_file"; then
2299: # Some versions of bash will fail to source /dev/null (special files
2300: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2301: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2302: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2303: $as_echo "$as_me: loading cache $cache_file" >&6;}
2304: case $cache_file in
2305: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2306: *) . "./$cache_file";;
2307: esac
2308: fi
2309: else
2310: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2311: $as_echo "$as_me: creating cache $cache_file" >&6;}
2312: >$cache_file
2313: fi
2314:
2315: # Check that the precious variables saved in the cache have kept the same
2316: # value.
2317: ac_cache_corrupted=false
2318: for ac_var in $ac_precious_vars; do
2319: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2320: eval ac_new_set=\$ac_env_${ac_var}_set
2321: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2322: eval ac_new_val=\$ac_env_${ac_var}_value
2323: case $ac_old_set,$ac_new_set in
2324: set,)
2325: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2326: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2327: ac_cache_corrupted=: ;;
2328: ,set)
2329: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2330: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2331: ac_cache_corrupted=: ;;
2332: ,);;
2333: *)
2334: if test "x$ac_old_val" != "x$ac_new_val"; then
2335: # differences in whitespace do not lead to failure.
2336: ac_old_val_w=`echo x $ac_old_val`
2337: ac_new_val_w=`echo x $ac_new_val`
2338: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2339: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2340: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2341: ac_cache_corrupted=:
2342: else
2343: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2344: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2345: eval $ac_var=\$ac_old_val
2346: fi
2347: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2348: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2349: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2350: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2351: fi;;
2352: esac
2353: # Pass precious variables to config.status.
2354: if test "$ac_new_set" = set; then
2355: case $ac_new_val in
2356: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2357: *) ac_arg=$ac_var=$ac_new_val ;;
2358: esac
2359: case " $ac_configure_args " in
2360: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2361: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2362: esac
2363: fi
2364: done
2365: if $ac_cache_corrupted; then
2366: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2369: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2370: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2371: fi
2372: ## -------------------- ##
2373: ## Main body of script. ##
2374: ## -------------------- ##
2375:
2376: ac_ext=c
2377: ac_cpp='$CPP $CPPFLAGS'
2378: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381:
2382:
2383:
2384: ac_config_headers="$ac_config_headers config.h"
2385:
2386:
1.1.1.2.2.1! misho 2387: am__api_version='1.14'
1.1 misho 2388:
2389: ac_aux_dir=
2390: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391: if test -f "$ac_dir/install-sh"; then
2392: ac_aux_dir=$ac_dir
2393: ac_install_sh="$ac_aux_dir/install-sh -c"
2394: break
2395: elif test -f "$ac_dir/install.sh"; then
2396: ac_aux_dir=$ac_dir
2397: ac_install_sh="$ac_aux_dir/install.sh -c"
2398: break
2399: elif test -f "$ac_dir/shtool"; then
2400: ac_aux_dir=$ac_dir
2401: ac_install_sh="$ac_aux_dir/shtool install -c"
2402: break
2403: fi
2404: done
2405: if test -z "$ac_aux_dir"; then
2406: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2407: fi
2408:
2409: # These three variables are undocumented and unsupported,
2410: # and are intended to be withdrawn in a future Autoconf release.
2411: # They can cause serious problems if a builder's source tree is in a directory
2412: # whose full name contains unusual characters.
2413: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2414: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2415: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2416:
2417:
2418: # Find a good install program. We prefer a C program (faster),
2419: # so one script is as good as another. But avoid the broken or
2420: # incompatible versions:
2421: # SysV /etc/install, /usr/sbin/install
2422: # SunOS /usr/etc/install
2423: # IRIX /sbin/install
2424: # AIX /bin/install
2425: # AmigaOS /C/install, which installs bootblocks on floppy discs
2426: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2427: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2428: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2429: # OS/2's system install, which has a completely different semantic
2430: # ./install, which can be erroneously created by make from ./install.sh.
2431: # Reject install programs that cannot install multiple files.
2432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2433: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2434: if test -z "$INSTALL"; then
1.1.1.2 misho 2435: if ${ac_cv_path_install+:} false; then :
1.1 misho 2436: $as_echo_n "(cached) " >&6
2437: else
2438: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439: for as_dir in $PATH
2440: do
2441: IFS=$as_save_IFS
2442: test -z "$as_dir" && as_dir=.
2443: # Account for people who put trailing slashes in PATH elements.
2444: case $as_dir/ in #((
2445: ./ | .// | /[cC]/* | \
2446: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2447: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2448: /usr/ucb/* ) ;;
2449: *)
2450: # OSF1 and SCO ODT 3.0 have their own names for install.
2451: # Don't use installbsd from OSF since it installs stuff as root
2452: # by default.
2453: for ac_prog in ginstall scoinst install; do
2454: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 2455: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misho 2456: if test $ac_prog = install &&
2457: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2458: # AIX install. It has an incompatible calling convention.
2459: :
2460: elif test $ac_prog = install &&
2461: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2462: # program-specific install script used by HP pwplus--don't use.
2463: :
2464: else
2465: rm -rf conftest.one conftest.two conftest.dir
2466: echo one > conftest.one
2467: echo two > conftest.two
2468: mkdir conftest.dir
2469: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2470: test -s conftest.one && test -s conftest.two &&
2471: test -s conftest.dir/conftest.one &&
2472: test -s conftest.dir/conftest.two
2473: then
2474: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2475: break 3
2476: fi
2477: fi
2478: fi
2479: done
2480: done
2481: ;;
2482: esac
2483:
2484: done
2485: IFS=$as_save_IFS
2486:
2487: rm -rf conftest.one conftest.two conftest.dir
2488:
2489: fi
2490: if test "${ac_cv_path_install+set}" = set; then
2491: INSTALL=$ac_cv_path_install
2492: else
2493: # As a last resort, use the slow shell script. Don't cache a
2494: # value for INSTALL within a source directory, because that will
2495: # break other packages using the cache if that directory is
2496: # removed, or if the value is a relative name.
2497: INSTALL=$ac_install_sh
2498: fi
2499: fi
2500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2501: $as_echo "$INSTALL" >&6; }
2502:
2503: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2504: # It thinks the first close brace ends the variable substitution.
2505: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2506:
2507: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2508:
2509: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2510:
2511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2512: $as_echo_n "checking whether build environment is sane... " >&6; }
2513: # Reject unsafe characters in $srcdir or the absolute working directory
2514: # name. Accept space and tab only in the latter.
2515: am_lf='
2516: '
2517: case `pwd` in
2518: *[\\\"\#\$\&\'\`$am_lf]*)
1.1.1.2 misho 2519: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.1 misho 2520: esac
2521: case $srcdir in
2522: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.1.1.2 misho 2523: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.1 misho 2524: esac
2525:
1.1.1.2 misho 2526: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 misho 2527: # arguments. Must try -L first in case configure is actually a
2528: # symlink; some systems play weird games with the mod time of symlinks
2529: # (eg FreeBSD returns the mod time of the symlink's containing
2530: # directory).
2531: if (
1.1.1.2 misho 2532: am_has_slept=no
2533: for am_try in 1 2; do
2534: echo "timestamp, slept: $am_has_slept" > conftest.file
2535: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2536: if test "$*" = "X"; then
2537: # -L didn't work.
2538: set X `ls -t "$srcdir/configure" conftest.file`
2539: fi
2540: if test "$*" != "X $srcdir/configure conftest.file" \
2541: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 misho 2542:
1.1.1.2 misho 2543: # If neither matched, then we have a broken ls. This can happen
2544: # if, for instance, CONFIG_SHELL is bash and it inherits a
2545: # broken ls alias from the environment. This has actually
2546: # happened. Such a system could not be considered "sane".
2547: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2548: alias in your environment" "$LINENO" 5
2549: fi
2550: if test "$2" = conftest.file || test $am_try -eq 2; then
2551: break
2552: fi
2553: # Just in case.
2554: sleep 1
2555: am_has_slept=yes
2556: done
1.1 misho 2557: test "$2" = conftest.file
2558: )
2559: then
2560: # Ok.
2561: :
2562: else
2563: as_fn_error $? "newly created file is older than distributed files!
2564: Check your system clock" "$LINENO" 5
2565: fi
2566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2567: $as_echo "yes" >&6; }
1.1.1.2 misho 2568: # If we didn't sleep, we still need to ensure time stamps of config.status and
2569: # generated files are strictly newer.
2570: am_sleep_pid=
2571: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2572: ( sleep 1 ) &
2573: am_sleep_pid=$!
2574: fi
2575:
2576: rm -f conftest.file
2577:
1.1 misho 2578: test "$program_prefix" != NONE &&
2579: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2580: # Use a double $ so make ignores it.
2581: test "$program_suffix" != NONE &&
2582: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2583: # Double any \ or $.
2584: # By default was `s,x,x', remove it if useless.
2585: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2586: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2587:
2588: # expand $ac_aux_dir to an absolute path
2589: am_aux_dir=`cd $ac_aux_dir && pwd`
2590:
2591: if test x"${MISSING+set}" != xset; then
2592: case $am_aux_dir in
2593: *\ * | *\ *)
2594: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2595: *)
2596: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2597: esac
2598: fi
2599: # Use eval to expand $SHELL
1.1.1.2 misho 2600: if eval "$MISSING --is-lightweight"; then
2601: am_missing_run="$MISSING "
1.1 misho 2602: else
2603: am_missing_run=
1.1.1.2 misho 2604: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2605: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.1 misho 2606: fi
2607:
2608: if test x"${install_sh}" != xset; then
2609: case $am_aux_dir in
2610: *\ * | *\ *)
2611: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2612: *)
2613: install_sh="\${SHELL} $am_aux_dir/install-sh"
2614: esac
2615: fi
2616:
1.1.1.2 misho 2617: # Installed binaries are usually stripped using 'strip' when the user
2618: # run "make install-strip". However 'strip' might not be the right
1.1 misho 2619: # tool to use in cross-compilation environments, therefore Automake
1.1.1.2 misho 2620: # will honor the 'STRIP' environment variable to overrule this program.
1.1 misho 2621: if test "$cross_compiling" != no; then
2622: if test -n "$ac_tool_prefix"; then
2623: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2624: set dummy ${ac_tool_prefix}strip; ac_word=$2
2625: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2627: if ${ac_cv_prog_STRIP+:} false; then :
1.1 misho 2628: $as_echo_n "(cached) " >&6
2629: else
2630: if test -n "$STRIP"; then
2631: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2632: else
2633: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634: for as_dir in $PATH
2635: do
2636: IFS=$as_save_IFS
2637: test -z "$as_dir" && as_dir=.
2638: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 2639: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2640: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2641: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642: break 2
2643: fi
2644: done
2645: done
2646: IFS=$as_save_IFS
2647:
2648: fi
2649: fi
2650: STRIP=$ac_cv_prog_STRIP
2651: if test -n "$STRIP"; then
2652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2653: $as_echo "$STRIP" >&6; }
2654: else
2655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656: $as_echo "no" >&6; }
2657: fi
2658:
2659:
2660: fi
2661: if test -z "$ac_cv_prog_STRIP"; then
2662: ac_ct_STRIP=$STRIP
2663: # Extract the first word of "strip", so it can be a program name with args.
2664: set dummy strip; ac_word=$2
2665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2667: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.1 misho 2668: $as_echo_n "(cached) " >&6
2669: else
2670: if test -n "$ac_ct_STRIP"; then
2671: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2672: else
2673: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674: for as_dir in $PATH
2675: do
2676: IFS=$as_save_IFS
2677: test -z "$as_dir" && as_dir=.
2678: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 2679: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2680: ac_cv_prog_ac_ct_STRIP="strip"
2681: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682: break 2
2683: fi
2684: done
2685: done
2686: IFS=$as_save_IFS
2687:
2688: fi
2689: fi
2690: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2691: if test -n "$ac_ct_STRIP"; then
2692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2693: $as_echo "$ac_ct_STRIP" >&6; }
2694: else
2695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696: $as_echo "no" >&6; }
2697: fi
2698:
2699: if test "x$ac_ct_STRIP" = x; then
2700: STRIP=":"
2701: else
2702: case $cross_compiling:$ac_tool_warned in
2703: yes:)
2704: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706: ac_tool_warned=yes ;;
2707: esac
2708: STRIP=$ac_ct_STRIP
2709: fi
2710: else
2711: STRIP="$ac_cv_prog_STRIP"
2712: fi
2713:
2714: fi
2715: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2716:
2717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2718: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2719: if test -z "$MKDIR_P"; then
1.1.1.2 misho 2720: if ${ac_cv_path_mkdir+:} false; then :
1.1 misho 2721: $as_echo_n "(cached) " >&6
2722: else
2723: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2725: do
2726: IFS=$as_save_IFS
2727: test -z "$as_dir" && as_dir=.
2728: for ac_prog in mkdir gmkdir; do
2729: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 2730: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.1 misho 2731: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2732: 'mkdir (GNU coreutils) '* | \
2733: 'mkdir (coreutils) '* | \
2734: 'mkdir (fileutils) '4.1*)
2735: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2736: break 3;;
2737: esac
2738: done
2739: done
2740: done
2741: IFS=$as_save_IFS
2742:
2743: fi
2744:
2745: test -d ./--version && rmdir ./--version
2746: if test "${ac_cv_path_mkdir+set}" = set; then
2747: MKDIR_P="$ac_cv_path_mkdir -p"
2748: else
2749: # As a last resort, use the slow shell script. Don't cache a
2750: # value for MKDIR_P within a source directory, because that will
2751: # break other packages using the cache if that directory is
2752: # removed, or if the value is a relative name.
2753: MKDIR_P="$ac_install_sh -d"
2754: fi
2755: fi
2756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2757: $as_echo "$MKDIR_P" >&6; }
2758:
2759: for ac_prog in gawk mawk nawk awk
2760: do
2761: # Extract the first word of "$ac_prog", so it can be a program name with args.
2762: set dummy $ac_prog; ac_word=$2
2763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2765: if ${ac_cv_prog_AWK+:} false; then :
1.1 misho 2766: $as_echo_n "(cached) " >&6
2767: else
2768: if test -n "$AWK"; then
2769: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2770: else
2771: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772: for as_dir in $PATH
2773: do
2774: IFS=$as_save_IFS
2775: test -z "$as_dir" && as_dir=.
2776: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 2777: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2778: ac_cv_prog_AWK="$ac_prog"
2779: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780: break 2
2781: fi
2782: done
2783: done
2784: IFS=$as_save_IFS
2785:
2786: fi
2787: fi
2788: AWK=$ac_cv_prog_AWK
2789: if test -n "$AWK"; then
2790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2791: $as_echo "$AWK" >&6; }
2792: else
2793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794: $as_echo "no" >&6; }
2795: fi
2796:
2797:
2798: test -n "$AWK" && break
2799: done
2800:
2801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2802: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2803: set x ${MAKE-make}
2804: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.1.1.2 misho 2805: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.1 misho 2806: $as_echo_n "(cached) " >&6
2807: else
2808: cat >conftest.make <<\_ACEOF
2809: SHELL = /bin/sh
2810: all:
2811: @echo '@@@%%%=$(MAKE)=@@@%%%'
2812: _ACEOF
2813: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2814: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2815: *@@@%%%=?*=@@@%%%*)
2816: eval ac_cv_prog_make_${ac_make}_set=yes;;
2817: *)
2818: eval ac_cv_prog_make_${ac_make}_set=no;;
2819: esac
2820: rm -f conftest.make
2821: fi
2822: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2824: $as_echo "yes" >&6; }
2825: SET_MAKE=
2826: else
2827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828: $as_echo "no" >&6; }
2829: SET_MAKE="MAKE=${MAKE-make}"
2830: fi
2831:
2832: rm -rf .tst 2>/dev/null
2833: mkdir .tst 2>/dev/null
2834: if test -d .tst; then
2835: am__leading_dot=.
2836: else
2837: am__leading_dot=_
2838: fi
2839: rmdir .tst 2>/dev/null
2840:
1.1.1.2 misho 2841: # Check whether --enable-silent-rules was given.
2842: if test "${enable_silent_rules+set}" = set; then :
2843: enableval=$enable_silent_rules;
2844: fi
2845:
2846: case $enable_silent_rules in # (((
2847: yes) AM_DEFAULT_VERBOSITY=0;;
2848: no) AM_DEFAULT_VERBOSITY=1;;
2849: *) AM_DEFAULT_VERBOSITY=1;;
2850: esac
2851: am_make=${MAKE-make}
2852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2853: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2854: if ${am_cv_make_support_nested_variables+:} false; then :
2855: $as_echo_n "(cached) " >&6
2856: else
2857: if $as_echo 'TRUE=$(BAR$(V))
2858: BAR0=false
2859: BAR1=true
2860: V=1
2861: am__doit:
2862: @$(TRUE)
2863: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2864: am_cv_make_support_nested_variables=yes
2865: else
2866: am_cv_make_support_nested_variables=no
2867: fi
2868: fi
2869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2870: $as_echo "$am_cv_make_support_nested_variables" >&6; }
2871: if test $am_cv_make_support_nested_variables = yes; then
2872: AM_V='$(V)'
2873: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2874: else
2875: AM_V=$AM_DEFAULT_VERBOSITY
2876: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2877: fi
2878: AM_BACKSLASH='\'
2879:
1.1 misho 2880: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2881: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2882: # is not polluted with repeated "-I."
2883: am__isrc=' -I$(srcdir)'
2884: # test to see if srcdir already configured
2885: if test -f $srcdir/config.status; then
2886: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2887: fi
2888: fi
2889:
2890: # test whether we have cygpath
2891: if test -z "$CYGPATH_W"; then
2892: if (cygpath --version) >/dev/null 2>/dev/null; then
2893: CYGPATH_W='cygpath -w'
2894: else
2895: CYGPATH_W=echo
2896: fi
2897: fi
2898:
2899:
2900: # Define the identity of the package.
2901: PACKAGE='ipsec-tools'
1.1.1.2 misho 2902: VERSION='0.8.1'
1.1 misho 2903:
2904:
2905: cat >>confdefs.h <<_ACEOF
2906: #define PACKAGE "$PACKAGE"
2907: _ACEOF
2908:
2909:
2910: cat >>confdefs.h <<_ACEOF
2911: #define VERSION "$VERSION"
2912: _ACEOF
2913:
2914: # Some tools Automake needs.
2915:
2916: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2917:
2918:
2919: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2920:
2921:
2922: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2923:
2924:
2925: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2926:
2927:
2928: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2929:
1.1.1.2 misho 2930: # For better backward compatibility. To be removed once Automake 1.9.x
2931: # dies out for good. For more background, see:
2932: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2933: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2934: mkdir_p='$(MKDIR_P)'
2935:
1.1 misho 2936: # We need awk for the "check" target. The system "awk" is bad on
2937: # some platforms.
1.1.1.2 misho 2938: # Always define AMTAR for backward compatibility. Yes, it's still used
2939: # in the wild :-( We should find a proper way to deprecate it ...
2940: AMTAR='$${TAR-tar}'
1.1 misho 2941:
1.1.1.2.2.1! misho 2942:
! 2943: # We'll loop over all known methods to create a tar archive until one works.
! 2944: _am_tools='gnutar pax cpio none'
! 2945:
1.1.1.2 misho 2946: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1.1 misho 2947:
2948:
2949:
2950:
2951:
2952:
1.1.1.2.2.1! misho 2953: # POSIX will say in a future version that running "rm -f" with no argument
! 2954: # is OK; and we want to be able to make that assumption in our Makefile
! 2955: # recipes. So use an aggressive probe to check that the usage we want is
! 2956: # actually supported "in the wild" to an acceptable degree.
! 2957: # See automake bug#10828.
! 2958: # To make any issue more visible, cause the running configure to be aborted
! 2959: # by default if the 'rm' program in use doesn't match our expectations; the
! 2960: # user can still override this though.
! 2961: if rm -f && rm -fr && rm -rf; then : OK; else
! 2962: cat >&2 <<'END'
! 2963: Oops!
! 2964:
! 2965: Your 'rm' program seems unable to run without file operands specified
! 2966: on the command line, even when the '-f' option is present. This is contrary
! 2967: to the behaviour of most rm programs out there, and not conforming with
! 2968: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
! 2969:
! 2970: Please tell bug-automake@gnu.org about your system, including the value
! 2971: of your $PATH and any error possibly output before this message. This
! 2972: can help us improve future automake versions.
! 2973:
! 2974: END
! 2975: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
! 2976: echo 'Configuration will proceed anyway, since you have set the' >&2
! 2977: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
! 2978: echo >&2
! 2979: else
! 2980: cat >&2 <<'END'
! 2981: Aborting the configuration process, to ensure you take notice of the issue.
! 2982:
! 2983: You can download and install GNU coreutils to get an 'rm' implementation
! 2984: that behaves properly: <http://www.gnu.org/software/coreutils/>.
! 2985:
! 2986: If you want to complete the configuration process using your problematic
! 2987: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
! 2988: to "yes", and re-run configure.
! 2989:
! 2990: END
! 2991: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
! 2992: fi
! 2993: fi
! 2994:
1.1 misho 2995: # Check whether --enable-shared was given.
2996: if test "${enable_shared+set}" = set; then :
2997: enableval=$enable_shared; p=${PACKAGE-default}
2998: case $enableval in
2999: yes) enable_shared=yes ;;
3000: no) enable_shared=no ;;
3001: *)
3002: enable_shared=no
3003: # Look at the argument we got. We use all the common list separators.
3004: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3005: for pkg in $enableval; do
3006: IFS="$lt_save_ifs"
3007: if test "X$pkg" = "X$p"; then
3008: enable_shared=yes
3009: fi
3010: done
3011: IFS="$lt_save_ifs"
3012: ;;
3013: esac
3014: else
3015: enable_shared=no
3016: fi
3017:
3018:
3019:
3020:
3021:
3022:
3023:
3024:
3025:
3026:
3027: ac_ext=c
3028: ac_cpp='$CPP $CPPFLAGS'
3029: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032: if test -n "$ac_tool_prefix"; then
3033: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3037: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3038: $as_echo_n "(cached) " >&6
3039: else
3040: if test -n "$CC"; then
3041: ac_cv_prog_CC="$CC" # Let the user override the test.
3042: else
3043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044: for as_dir in $PATH
3045: do
3046: IFS=$as_save_IFS
3047: test -z "$as_dir" && as_dir=.
3048: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 3049: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3050: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3051: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052: break 2
3053: fi
3054: done
3055: done
3056: IFS=$as_save_IFS
3057:
3058: fi
3059: fi
3060: CC=$ac_cv_prog_CC
3061: if test -n "$CC"; then
3062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063: $as_echo "$CC" >&6; }
3064: else
3065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066: $as_echo "no" >&6; }
3067: fi
3068:
3069:
3070: fi
3071: if test -z "$ac_cv_prog_CC"; then
3072: ac_ct_CC=$CC
3073: # Extract the first word of "gcc", so it can be a program name with args.
3074: set dummy gcc; ac_word=$2
3075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3077: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 3078: $as_echo_n "(cached) " >&6
3079: else
3080: if test -n "$ac_ct_CC"; then
3081: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082: else
3083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084: for as_dir in $PATH
3085: do
3086: IFS=$as_save_IFS
3087: test -z "$as_dir" && as_dir=.
3088: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 3089: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3090: ac_cv_prog_ac_ct_CC="gcc"
3091: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092: break 2
3093: fi
3094: done
3095: done
3096: IFS=$as_save_IFS
3097:
3098: fi
3099: fi
3100: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101: if test -n "$ac_ct_CC"; then
3102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103: $as_echo "$ac_ct_CC" >&6; }
3104: else
3105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106: $as_echo "no" >&6; }
3107: fi
3108:
3109: if test "x$ac_ct_CC" = x; then
3110: CC=""
3111: else
3112: case $cross_compiling:$ac_tool_warned in
3113: yes:)
3114: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116: ac_tool_warned=yes ;;
3117: esac
3118: CC=$ac_ct_CC
3119: fi
3120: else
3121: CC="$ac_cv_prog_CC"
3122: fi
3123:
3124: if test -z "$CC"; then
3125: if test -n "$ac_tool_prefix"; then
3126: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127: set dummy ${ac_tool_prefix}cc; ac_word=$2
3128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3130: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3131: $as_echo_n "(cached) " >&6
3132: else
3133: if test -n "$CC"; then
3134: ac_cv_prog_CC="$CC" # Let the user override the test.
3135: else
3136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137: for as_dir in $PATH
3138: do
3139: IFS=$as_save_IFS
3140: test -z "$as_dir" && as_dir=.
3141: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 3142: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3143: ac_cv_prog_CC="${ac_tool_prefix}cc"
3144: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145: break 2
3146: fi
3147: done
3148: done
3149: IFS=$as_save_IFS
3150:
3151: fi
3152: fi
3153: CC=$ac_cv_prog_CC
3154: if test -n "$CC"; then
3155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156: $as_echo "$CC" >&6; }
3157: else
3158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159: $as_echo "no" >&6; }
3160: fi
3161:
3162:
3163: fi
3164: fi
3165: if test -z "$CC"; then
3166: # Extract the first word of "cc", so it can be a program name with args.
3167: set dummy cc; ac_word=$2
3168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3170: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3171: $as_echo_n "(cached) " >&6
3172: else
3173: if test -n "$CC"; then
3174: ac_cv_prog_CC="$CC" # Let the user override the test.
3175: else
3176: ac_prog_rejected=no
3177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178: for as_dir in $PATH
3179: do
3180: IFS=$as_save_IFS
3181: test -z "$as_dir" && as_dir=.
3182: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 3183: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3184: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185: ac_prog_rejected=yes
3186: continue
3187: fi
3188: ac_cv_prog_CC="cc"
3189: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190: break 2
3191: fi
3192: done
3193: done
3194: IFS=$as_save_IFS
3195:
3196: if test $ac_prog_rejected = yes; then
3197: # We found a bogon in the path, so make sure we never use it.
3198: set dummy $ac_cv_prog_CC
3199: shift
3200: if test $# != 0; then
3201: # We chose a different compiler from the bogus one.
3202: # However, it has the same basename, so the bogon will be chosen
3203: # first if we set CC to just the basename; use the full file name.
3204: shift
3205: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3206: fi
3207: fi
3208: fi
3209: fi
3210: CC=$ac_cv_prog_CC
3211: if test -n "$CC"; then
3212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213: $as_echo "$CC" >&6; }
3214: else
3215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216: $as_echo "no" >&6; }
3217: fi
3218:
3219:
3220: fi
3221: if test -z "$CC"; then
3222: if test -n "$ac_tool_prefix"; then
3223: for ac_prog in cl.exe
3224: do
3225: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3229: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3230: $as_echo_n "(cached) " >&6
3231: else
3232: if test -n "$CC"; then
3233: ac_cv_prog_CC="$CC" # Let the user override the test.
3234: else
3235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236: for as_dir in $PATH
3237: do
3238: IFS=$as_save_IFS
3239: test -z "$as_dir" && as_dir=.
3240: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 3241: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3242: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3243: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244: break 2
3245: fi
3246: done
3247: done
3248: IFS=$as_save_IFS
3249:
3250: fi
3251: fi
3252: CC=$ac_cv_prog_CC
3253: if test -n "$CC"; then
3254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255: $as_echo "$CC" >&6; }
3256: else
3257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258: $as_echo "no" >&6; }
3259: fi
3260:
3261:
3262: test -n "$CC" && break
3263: done
3264: fi
3265: if test -z "$CC"; then
3266: ac_ct_CC=$CC
3267: for ac_prog in cl.exe
3268: do
3269: # Extract the first word of "$ac_prog", so it can be a program name with args.
3270: set dummy $ac_prog; ac_word=$2
3271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3273: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 3274: $as_echo_n "(cached) " >&6
3275: else
3276: if test -n "$ac_ct_CC"; then
3277: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278: else
3279: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280: for as_dir in $PATH
3281: do
3282: IFS=$as_save_IFS
3283: test -z "$as_dir" && as_dir=.
3284: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 3285: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3286: ac_cv_prog_ac_ct_CC="$ac_prog"
3287: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288: break 2
3289: fi
3290: done
3291: done
3292: IFS=$as_save_IFS
3293:
3294: fi
3295: fi
3296: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297: if test -n "$ac_ct_CC"; then
3298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299: $as_echo "$ac_ct_CC" >&6; }
3300: else
3301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302: $as_echo "no" >&6; }
3303: fi
3304:
3305:
3306: test -n "$ac_ct_CC" && break
3307: done
3308:
3309: if test "x$ac_ct_CC" = x; then
3310: CC=""
3311: else
3312: case $cross_compiling:$ac_tool_warned in
3313: yes:)
3314: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316: ac_tool_warned=yes ;;
3317: esac
3318: CC=$ac_ct_CC
3319: fi
3320: fi
3321:
3322: fi
3323:
3324:
3325: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327: as_fn_error $? "no acceptable C compiler found in \$PATH
1.1.1.2 misho 3328: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3329:
3330: # Provide some information about the compiler.
3331: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3332: set X $ac_compile
3333: ac_compiler=$2
3334: for ac_option in --version -v -V -qversion; do
3335: { { ac_try="$ac_compiler $ac_option >&5"
3336: case "(($ac_try" in
3337: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338: *) ac_try_echo=$ac_try;;
3339: esac
3340: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341: $as_echo "$ac_try_echo"; } >&5
3342: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3343: ac_status=$?
3344: if test -s conftest.err; then
3345: sed '10a\
3346: ... rest of stderr output deleted ...
3347: 10q' conftest.err >conftest.er1
3348: cat conftest.er1 >&5
3349: fi
3350: rm -f conftest.er1 conftest.err
3351: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352: test $ac_status = 0; }
3353: done
3354:
3355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356: /* end confdefs.h. */
3357:
3358: int
3359: main ()
3360: {
3361:
3362: ;
3363: return 0;
3364: }
3365: _ACEOF
3366: ac_clean_files_save=$ac_clean_files
3367: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3368: # Try to create an executable without -o first, disregard a.out.
3369: # It will help us diagnose broken compilers, and finding out an intuition
3370: # of exeext.
3371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3372: $as_echo_n "checking whether the C compiler works... " >&6; }
3373: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3374:
3375: # The possible output files:
3376: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3377:
3378: ac_rmfiles=
3379: for ac_file in $ac_files
3380: do
3381: case $ac_file in
3382: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3384: esac
3385: done
3386: rm -f $ac_rmfiles
3387:
3388: if { { ac_try="$ac_link_default"
3389: case "(($ac_try" in
3390: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391: *) ac_try_echo=$ac_try;;
3392: esac
3393: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394: $as_echo "$ac_try_echo"; } >&5
3395: (eval "$ac_link_default") 2>&5
3396: ac_status=$?
3397: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398: test $ac_status = 0; }; then :
3399: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3400: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3401: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3402: # so that the user can short-circuit this test for compilers unknown to
3403: # Autoconf.
3404: for ac_file in $ac_files ''
3405: do
3406: test -f "$ac_file" || continue
3407: case $ac_file in
3408: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3409: ;;
3410: [ab].out )
3411: # We found the default executable, but exeext='' is most
3412: # certainly right.
3413: break;;
3414: *.* )
3415: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3416: then :; else
3417: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418: fi
3419: # We set ac_cv_exeext here because the later test for it is not
3420: # safe: cross compilers may not add the suffix if given an `-o'
3421: # argument, so we may need to know it at that point already.
3422: # Even if this section looks crufty: it has the advantage of
3423: # actually working.
3424: break;;
3425: * )
3426: break;;
3427: esac
3428: done
3429: test "$ac_cv_exeext" = no && ac_cv_exeext=
3430:
3431: else
3432: ac_file=''
3433: fi
3434: if test -z "$ac_file"; then :
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436: $as_echo "no" >&6; }
3437: $as_echo "$as_me: failed program was:" >&5
3438: sed 's/^/| /' conftest.$ac_ext >&5
3439:
3440: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442: as_fn_error 77 "C compiler cannot create executables
1.1.1.2 misho 3443: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3444: else
3445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446: $as_echo "yes" >&6; }
3447: fi
3448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449: $as_echo_n "checking for C compiler default output file name... " >&6; }
3450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451: $as_echo "$ac_file" >&6; }
3452: ac_exeext=$ac_cv_exeext
3453:
3454: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3455: ac_clean_files=$ac_clean_files_save
3456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3457: $as_echo_n "checking for suffix of executables... " >&6; }
3458: if { { ac_try="$ac_link"
3459: case "(($ac_try" in
3460: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461: *) ac_try_echo=$ac_try;;
3462: esac
3463: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464: $as_echo "$ac_try_echo"; } >&5
3465: (eval "$ac_link") 2>&5
3466: ac_status=$?
3467: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468: test $ac_status = 0; }; then :
3469: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3470: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3471: # work properly (i.e., refer to `conftest.exe'), while it won't with
3472: # `rm'.
3473: for ac_file in conftest.exe conftest conftest.*; do
3474: test -f "$ac_file" || continue
3475: case $ac_file in
3476: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478: break;;
3479: * ) break;;
3480: esac
3481: done
3482: else
3483: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.1.1.2 misho 3486: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3487: fi
3488: rm -f conftest conftest$ac_cv_exeext
3489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3490: $as_echo "$ac_cv_exeext" >&6; }
3491:
3492: rm -f conftest.$ac_ext
3493: EXEEXT=$ac_cv_exeext
3494: ac_exeext=$EXEEXT
3495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496: /* end confdefs.h. */
3497: #include <stdio.h>
3498: int
3499: main ()
3500: {
3501: FILE *f = fopen ("conftest.out", "w");
3502: return ferror (f) || fclose (f) != 0;
3503:
3504: ;
3505: return 0;
3506: }
3507: _ACEOF
3508: ac_clean_files="$ac_clean_files conftest.out"
3509: # Check that the compiler produces executables we can run. If not, either
3510: # the compiler is broken, or we cross compile.
3511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512: $as_echo_n "checking whether we are cross compiling... " >&6; }
3513: if test "$cross_compiling" != yes; then
3514: { { ac_try="$ac_link"
3515: case "(($ac_try" in
3516: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517: *) ac_try_echo=$ac_try;;
3518: esac
3519: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520: $as_echo "$ac_try_echo"; } >&5
3521: (eval "$ac_link") 2>&5
3522: ac_status=$?
3523: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524: test $ac_status = 0; }
3525: if { ac_try='./conftest$ac_cv_exeext'
3526: { { case "(($ac_try" in
3527: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528: *) ac_try_echo=$ac_try;;
3529: esac
3530: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531: $as_echo "$ac_try_echo"; } >&5
3532: (eval "$ac_try") 2>&5
3533: ac_status=$?
3534: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535: test $ac_status = 0; }; }; then
3536: cross_compiling=no
3537: else
3538: if test "$cross_compiling" = maybe; then
3539: cross_compiling=yes
3540: else
3541: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543: as_fn_error $? "cannot run C compiled programs.
3544: If you meant to cross compile, use \`--host'.
1.1.1.2 misho 3545: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3546: fi
3547: fi
3548: fi
3549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550: $as_echo "$cross_compiling" >&6; }
3551:
3552: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3553: ac_clean_files=$ac_clean_files_save
3554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3555: $as_echo_n "checking for suffix of object files... " >&6; }
1.1.1.2 misho 3556: if ${ac_cv_objext+:} false; then :
1.1 misho 3557: $as_echo_n "(cached) " >&6
3558: else
3559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560: /* end confdefs.h. */
3561:
3562: int
3563: main ()
3564: {
3565:
3566: ;
3567: return 0;
3568: }
3569: _ACEOF
3570: rm -f conftest.o conftest.obj
3571: if { { ac_try="$ac_compile"
3572: case "(($ac_try" in
3573: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574: *) ac_try_echo=$ac_try;;
3575: esac
3576: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577: $as_echo "$ac_try_echo"; } >&5
3578: (eval "$ac_compile") 2>&5
3579: ac_status=$?
3580: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581: test $ac_status = 0; }; then :
3582: for ac_file in conftest.o conftest.obj conftest.*; do
3583: test -f "$ac_file" || continue;
3584: case $ac_file in
3585: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3586: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3587: break;;
3588: esac
3589: done
3590: else
3591: $as_echo "$as_me: failed program was:" >&5
3592: sed 's/^/| /' conftest.$ac_ext >&5
3593:
3594: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.1.1.2 misho 3597: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3598: fi
3599: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600: fi
3601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3602: $as_echo "$ac_cv_objext" >&6; }
3603: OBJEXT=$ac_cv_objext
3604: ac_objext=$OBJEXT
3605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3606: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1.1.2 misho 3607: if ${ac_cv_c_compiler_gnu+:} false; then :
1.1 misho 3608: $as_echo_n "(cached) " >&6
3609: else
3610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611: /* end confdefs.h. */
3612:
3613: int
3614: main ()
3615: {
3616: #ifndef __GNUC__
3617: choke me
3618: #endif
3619:
3620: ;
3621: return 0;
3622: }
3623: _ACEOF
3624: if ac_fn_c_try_compile "$LINENO"; then :
3625: ac_compiler_gnu=yes
3626: else
3627: ac_compiler_gnu=no
3628: fi
3629: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3631:
3632: fi
3633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3634: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3635: if test $ac_compiler_gnu = yes; then
3636: GCC=yes
3637: else
3638: GCC=
3639: fi
3640: ac_test_CFLAGS=${CFLAGS+set}
3641: ac_save_CFLAGS=$CFLAGS
3642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3643: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1.1.2 misho 3644: if ${ac_cv_prog_cc_g+:} false; then :
1.1 misho 3645: $as_echo_n "(cached) " >&6
3646: else
3647: ac_save_c_werror_flag=$ac_c_werror_flag
3648: ac_c_werror_flag=yes
3649: ac_cv_prog_cc_g=no
3650: CFLAGS="-g"
3651: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652: /* end confdefs.h. */
3653:
3654: int
3655: main ()
3656: {
3657:
3658: ;
3659: return 0;
3660: }
3661: _ACEOF
3662: if ac_fn_c_try_compile "$LINENO"; then :
3663: ac_cv_prog_cc_g=yes
3664: else
3665: CFLAGS=""
3666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667: /* end confdefs.h. */
3668:
3669: int
3670: main ()
3671: {
3672:
3673: ;
3674: return 0;
3675: }
3676: _ACEOF
3677: if ac_fn_c_try_compile "$LINENO"; then :
3678:
3679: else
3680: ac_c_werror_flag=$ac_save_c_werror_flag
3681: CFLAGS="-g"
3682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683: /* end confdefs.h. */
3684:
3685: int
3686: main ()
3687: {
3688:
3689: ;
3690: return 0;
3691: }
3692: _ACEOF
3693: if ac_fn_c_try_compile "$LINENO"; then :
3694: ac_cv_prog_cc_g=yes
3695: fi
3696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697: fi
3698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699: fi
3700: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701: ac_c_werror_flag=$ac_save_c_werror_flag
3702: fi
3703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3704: $as_echo "$ac_cv_prog_cc_g" >&6; }
3705: if test "$ac_test_CFLAGS" = set; then
3706: CFLAGS=$ac_save_CFLAGS
3707: elif test $ac_cv_prog_cc_g = yes; then
3708: if test "$GCC" = yes; then
3709: CFLAGS="-g -O2"
3710: else
3711: CFLAGS="-g"
3712: fi
3713: else
3714: if test "$GCC" = yes; then
3715: CFLAGS="-O2"
3716: else
3717: CFLAGS=
3718: fi
3719: fi
3720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3721: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.1.2 misho 3722: if ${ac_cv_prog_cc_c89+:} false; then :
1.1 misho 3723: $as_echo_n "(cached) " >&6
3724: else
3725: ac_cv_prog_cc_c89=no
3726: ac_save_CC=$CC
3727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728: /* end confdefs.h. */
3729: #include <stdarg.h>
3730: #include <stdio.h>
1.1.1.2 misho 3731: struct stat;
1.1 misho 3732: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3733: struct buf { int x; };
3734: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3735: static char *e (p, i)
3736: char **p;
3737: int i;
3738: {
3739: return p[i];
3740: }
3741: static char *f (char * (*g) (char **, int), char **p, ...)
3742: {
3743: char *s;
3744: va_list v;
3745: va_start (v,p);
3746: s = g (p, va_arg (v,int));
3747: va_end (v);
3748: return s;
3749: }
3750:
3751: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3752: function prototypes and stuff, but not '\xHH' hex character constants.
3753: These don't provoke an error unfortunately, instead are silently treated
3754: as 'x'. The following induces an error, until -std is added to get
3755: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3756: array size at least. It's necessary to write '\x00'==0 to get something
3757: that's true only with -std. */
3758: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3759:
3760: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3761: inside strings and character constants. */
3762: #define FOO(x) 'x'
3763: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3764:
3765: int test (int i, double x);
3766: struct s1 {int (*f) (int a);};
3767: struct s2 {int (*f) (double a);};
3768: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3769: int argc;
3770: char **argv;
3771: int
3772: main ()
3773: {
3774: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3775: ;
3776: return 0;
3777: }
3778: _ACEOF
3779: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3780: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3781: do
3782: CC="$ac_save_CC $ac_arg"
3783: if ac_fn_c_try_compile "$LINENO"; then :
3784: ac_cv_prog_cc_c89=$ac_arg
3785: fi
3786: rm -f core conftest.err conftest.$ac_objext
3787: test "x$ac_cv_prog_cc_c89" != "xno" && break
3788: done
3789: rm -f conftest.$ac_ext
3790: CC=$ac_save_CC
3791:
3792: fi
3793: # AC_CACHE_VAL
3794: case "x$ac_cv_prog_cc_c89" in
3795: x)
3796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3797: $as_echo "none needed" >&6; } ;;
3798: xno)
3799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3800: $as_echo "unsupported" >&6; } ;;
3801: *)
3802: CC="$CC $ac_cv_prog_cc_c89"
3803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3804: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3805: esac
3806: if test "x$ac_cv_prog_cc_c89" != xno; then :
3807:
3808: fi
3809:
3810: ac_ext=c
3811: ac_cpp='$CPP $CPPFLAGS'
3812: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.2.2.1! misho 3815:
! 3816: ac_ext=c
! 3817: ac_cpp='$CPP $CPPFLAGS'
! 3818: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3819: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3820: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
! 3822: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
! 3823: if ${am_cv_prog_cc_c_o+:} false; then :
! 3824: $as_echo_n "(cached) " >&6
! 3825: else
! 3826: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3827: /* end confdefs.h. */
! 3828:
! 3829: int
! 3830: main ()
! 3831: {
! 3832:
! 3833: ;
! 3834: return 0;
! 3835: }
! 3836: _ACEOF
! 3837: # Make sure it works both with $CC and with simple cc.
! 3838: # Following AC_PROG_CC_C_O, we do the test twice because some
! 3839: # compilers refuse to overwrite an existing .o file with -o,
! 3840: # though they will create one.
! 3841: am_cv_prog_cc_c_o=yes
! 3842: for am_i in 1 2; do
! 3843: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
! 3844: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
! 3845: ac_status=$?
! 3846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3847: (exit $ac_status); } \
! 3848: && test -f conftest2.$ac_objext; then
! 3849: : OK
! 3850: else
! 3851: am_cv_prog_cc_c_o=no
! 3852: break
! 3853: fi
! 3854: done
! 3855: rm -f core conftest*
! 3856: unset am_i
! 3857: fi
! 3858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
! 3859: $as_echo "$am_cv_prog_cc_c_o" >&6; }
! 3860: if test "$am_cv_prog_cc_c_o" != yes; then
! 3861: # Losing compiler, so override with the script.
! 3862: # FIXME: It is wrong to rewrite CC.
! 3863: # But if we don't then we get into trouble of one sort or another.
! 3864: # A longer-term fix would be to have automake use am__CC in this case,
! 3865: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
! 3866: CC="$am_aux_dir/compile $CC"
! 3867: fi
! 3868: ac_ext=c
! 3869: ac_cpp='$CPP $CPPFLAGS'
! 3870: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3871: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3872: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3873:
1.1 misho 3874: DEPDIR="${am__leading_dot}deps"
3875:
3876: ac_config_commands="$ac_config_commands depfiles"
3877:
3878:
3879: am_make=${MAKE-make}
3880: cat > confinc << 'END'
3881: am__doit:
3882: @echo this is the am__doit target
3883: .PHONY: am__doit
3884: END
3885: # If we don't find an include directive, just comment out the code.
3886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3887: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3888: am__include="#"
3889: am__quote=
3890: _am_result=none
3891: # First try GNU make style include.
3892: echo "include confinc" > confmf
1.1.1.2 misho 3893: # Ignore all kinds of additional output from 'make'.
1.1 misho 3894: case `$am_make -s -f confmf 2> /dev/null` in #(
3895: *the\ am__doit\ target*)
3896: am__include=include
3897: am__quote=
3898: _am_result=GNU
3899: ;;
3900: esac
3901: # Now try BSD make style include.
3902: if test "$am__include" = "#"; then
3903: echo '.include "confinc"' > confmf
3904: case `$am_make -s -f confmf 2> /dev/null` in #(
3905: *the\ am__doit\ target*)
3906: am__include=.include
3907: am__quote="\""
3908: _am_result=BSD
3909: ;;
3910: esac
3911: fi
3912:
3913:
3914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3915: $as_echo "$_am_result" >&6; }
3916: rm -f confinc confmf
3917:
3918: # Check whether --enable-dependency-tracking was given.
3919: if test "${enable_dependency_tracking+set}" = set; then :
3920: enableval=$enable_dependency_tracking;
3921: fi
3922:
3923: if test "x$enable_dependency_tracking" != xno; then
3924: am_depcomp="$ac_aux_dir/depcomp"
3925: AMDEPBACKSLASH='\'
1.1.1.2 misho 3926: am__nodep='_no'
1.1 misho 3927: fi
3928: if test "x$enable_dependency_tracking" != xno; then
3929: AMDEP_TRUE=
3930: AMDEP_FALSE='#'
3931: else
3932: AMDEP_TRUE='#'
3933: AMDEP_FALSE=
3934: fi
3935:
3936:
3937:
3938: depcc="$CC" am_compiler_list=
3939:
3940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3941: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.1.1.2 misho 3942: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.1 misho 3943: $as_echo_n "(cached) " >&6
3944: else
3945: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3946: # We make a subdir and do the tests there. Otherwise we can end up
3947: # making bogus files that we don't know about and never remove. For
3948: # instance it was reported that on HP-UX the gcc test will end up
1.1.1.2 misho 3949: # making a dummy file named 'D' -- because '-MD' means "put the output
3950: # in D".
3951: rm -rf conftest.dir
1.1 misho 3952: mkdir conftest.dir
3953: # Copy depcomp to subdir because otherwise we won't find it if we're
3954: # using a relative directory.
3955: cp "$am_depcomp" conftest.dir
3956: cd conftest.dir
3957: # We will build objects and dependencies in a subdirectory because
3958: # it helps to detect inapplicable dependency modes. For instance
3959: # both Tru64's cc and ICC support -MD to output dependencies as a
3960: # side effect of compilation, but ICC will put the dependencies in
3961: # the current directory while Tru64 will put them in the object
3962: # directory.
3963: mkdir sub
3964:
3965: am_cv_CC_dependencies_compiler_type=none
3966: if test "$am_compiler_list" = ""; then
3967: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3968: fi
3969: am__universal=false
3970: case " $depcc " in #(
3971: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3972: esac
3973:
3974: for depmode in $am_compiler_list; do
3975: # Setup a source with many dependencies, because some compilers
3976: # like to wrap large dependency lists on column 80 (with \), and
3977: # we should not choose a depcomp mode which is confused by this.
3978: #
3979: # We need to recreate these files for each test, as the compiler may
3980: # overwrite some of them when testing with obscure command lines.
3981: # This happens at least with the AIX C compiler.
3982: : > sub/conftest.c
3983: for i in 1 2 3 4 5 6; do
3984: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1.1.2 misho 3985: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3986: # Solaris 10 /bin/sh.
3987: echo '/* dummy */' > sub/conftst$i.h
1.1 misho 3988: done
3989: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990:
1.1.1.2 misho 3991: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.1 misho 3992: # mode. It turns out that the SunPro C++ compiler does not properly
1.1.1.2 misho 3993: # handle '-M -o', and we need to detect this. Also, some Intel
3994: # versions had trouble with output in subdirs.
1.1 misho 3995: am__obj=sub/conftest.${OBJEXT-o}
3996: am__minus_obj="-o $am__obj"
3997: case $depmode in
3998: gcc)
3999: # This depmode causes a compiler race in universal mode.
4000: test "$am__universal" = false || continue
4001: ;;
4002: nosideeffect)
1.1.1.2 misho 4003: # After this tag, mechanisms are not by side-effect, so they'll
4004: # only be used when explicitly requested.
1.1 misho 4005: if test "x$enable_dependency_tracking" = xyes; then
4006: continue
4007: else
4008: break
4009: fi
4010: ;;
1.1.1.2 misho 4011: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4012: # This compiler won't grok '-c -o', but also, the minuso test has
1.1 misho 4013: # not run yet. These depmodes are late enough in the game, and
4014: # so weak that their functioning should not be impacted.
4015: am__obj=conftest.${OBJEXT-o}
4016: am__minus_obj=
4017: ;;
4018: none) break ;;
4019: esac
4020: if depmode=$depmode \
4021: source=sub/conftest.c object=$am__obj \
4022: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4024: >/dev/null 2>conftest.err &&
4025: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4026: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4028: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029: # icc doesn't choke on unknown options, it will just issue warnings
4030: # or remarks (even with -Werror). So we grep stderr for any message
4031: # that says an option was ignored or not supported.
4032: # When given -MP, icc 7.0 and 7.1 complain thusly:
4033: # icc: Command line warning: ignoring option '-M'; no argument required
4034: # The diagnosis changed in icc 8.0:
4035: # icc: Command line remark: option '-MP' not supported
4036: if (grep 'ignoring option' conftest.err ||
4037: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038: am_cv_CC_dependencies_compiler_type=$depmode
4039: break
4040: fi
4041: fi
4042: done
4043:
4044: cd ..
4045: rm -rf conftest.dir
4046: else
4047: am_cv_CC_dependencies_compiler_type=none
4048: fi
4049:
4050: fi
4051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4052: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4053: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4054:
4055: if
4056: test "x$enable_dependency_tracking" != xno \
4057: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4058: am__fastdepCC_TRUE=
4059: am__fastdepCC_FALSE='#'
4060: else
4061: am__fastdepCC_TRUE='#'
4062: am__fastdepCC_FALSE=
4063: fi
4064:
4065:
1.1.1.2 misho 4066:
1.1 misho 4067: ac_ext=c
4068: ac_cpp='$CPP $CPPFLAGS'
4069: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.2 misho 4072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4073: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4074: # On Suns, sometimes $CPP names a directory.
4075: if test -n "$CPP" && test -d "$CPP"; then
4076: CPP=
4077: fi
4078: if test -z "$CPP"; then
4079: if ${ac_cv_prog_CPP+:} false; then :
1.1 misho 4080: $as_echo_n "(cached) " >&6
4081: else
1.1.1.2 misho 4082: # Double quotes because CPP needs to be expanded
4083: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084: do
4085: ac_preproc_ok=false
4086: for ac_c_preproc_warn_flag in '' yes
1.1 misho 4087: do
1.1.1.2 misho 4088: # Use a header file that comes with gcc, so configuring glibc
4089: # with a fresh cross-compiler works.
4090: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091: # <limits.h> exists even on freestanding compilers.
4092: # On the NeXT, cc -E runs the code through the compiler's parser,
4093: # not just through cpp. "Syntax error" is here to catch this case.
4094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095: /* end confdefs.h. */
4096: #ifdef __STDC__
4097: # include <limits.h>
4098: #else
4099: # include <assert.h>
4100: #endif
4101: Syntax error
4102: _ACEOF
4103: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 4104:
1.1.1.2 misho 4105: else
4106: # Broken: fails on valid input.
4107: continue
1.1 misho 4108: fi
1.1.1.2 misho 4109: rm -f conftest.err conftest.i conftest.$ac_ext
4110:
4111: # OK, works on sane cases. Now check whether nonexistent headers
4112: # can be detected and how.
4113: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114: /* end confdefs.h. */
4115: #include <ac_nonexistent.h>
4116: _ACEOF
4117: if ac_fn_c_try_cpp "$LINENO"; then :
4118: # Broken: success on invalid input.
4119: continue
1.1 misho 4120: else
1.1.1.2 misho 4121: # Passes both tests.
4122: ac_preproc_ok=:
4123: break
4124: fi
4125: rm -f conftest.err conftest.i conftest.$ac_ext
4126:
4127: done
4128: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129: rm -f conftest.i conftest.err conftest.$ac_ext
4130: if $ac_preproc_ok; then :
4131: break
1.1 misho 4132: fi
4133:
1.1.1.2 misho 4134: done
4135: ac_cv_prog_CPP=$CPP
1.1 misho 4136:
4137: fi
1.1.1.2 misho 4138: CPP=$ac_cv_prog_CPP
1.1 misho 4139: else
1.1.1.2 misho 4140: ac_cv_prog_CPP=$CPP
4141: fi
4142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4143: $as_echo "$CPP" >&6; }
4144: ac_preproc_ok=false
4145: for ac_c_preproc_warn_flag in '' yes
1.1 misho 4146: do
1.1.1.2 misho 4147: # Use a header file that comes with gcc, so configuring glibc
4148: # with a fresh cross-compiler works.
4149: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150: # <limits.h> exists even on freestanding compilers.
4151: # On the NeXT, cc -E runs the code through the compiler's parser,
4152: # not just through cpp. "Syntax error" is here to catch this case.
4153: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154: /* end confdefs.h. */
4155: #ifdef __STDC__
4156: # include <limits.h>
4157: #else
4158: # include <assert.h>
4159: #endif
4160: Syntax error
4161: _ACEOF
4162: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 4163:
4164: else
1.1.1.2 misho 4165: # Broken: fails on valid input.
4166: continue
1.1 misho 4167: fi
1.1.1.2 misho 4168: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 4169:
1.1.1.2 misho 4170: # OK, works on sane cases. Now check whether nonexistent headers
4171: # can be detected and how.
4172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173: /* end confdefs.h. */
4174: #include <ac_nonexistent.h>
4175: _ACEOF
4176: if ac_fn_c_try_cpp "$LINENO"; then :
4177: # Broken: success on invalid input.
4178: continue
1.1 misho 4179: else
1.1.1.2 misho 4180: # Passes both tests.
4181: ac_preproc_ok=:
4182: break
1.1 misho 4183: fi
4184: rm -f conftest.err conftest.i conftest.$ac_ext
4185:
4186: done
4187: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4188: rm -f conftest.i conftest.err conftest.$ac_ext
4189: if $ac_preproc_ok; then :
4190:
4191: else
4192: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.1.1.2 misho 4195: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 4196: fi
4197:
4198: ac_ext=c
4199: ac_cpp='$CPP $CPPFLAGS'
4200: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203:
4204:
4205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4206: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.1.1.2 misho 4207: if ${ac_cv_path_GREP+:} false; then :
1.1 misho 4208: $as_echo_n "(cached) " >&6
4209: else
4210: if test -z "$GREP"; then
4211: ac_path_GREP_found=false
4212: # Loop through the user's path and test for each of PROGNAME-LIST
4213: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215: do
4216: IFS=$as_save_IFS
4217: test -z "$as_dir" && as_dir=.
4218: for ac_prog in grep ggrep; do
4219: for ac_exec_ext in '' $ac_executable_extensions; do
4220: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.2 misho 4221: as_fn_executable_p "$ac_path_GREP" || continue
1.1 misho 4222: # Check for GNU ac_path_GREP and select it if it is found.
4223: # Check for GNU $ac_path_GREP
4224: case `"$ac_path_GREP" --version 2>&1` in
4225: *GNU*)
4226: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4227: *)
4228: ac_count=0
4229: $as_echo_n 0123456789 >"conftest.in"
4230: while :
4231: do
4232: cat "conftest.in" "conftest.in" >"conftest.tmp"
4233: mv "conftest.tmp" "conftest.in"
4234: cp "conftest.in" "conftest.nl"
4235: $as_echo 'GREP' >> "conftest.nl"
4236: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238: as_fn_arith $ac_count + 1 && ac_count=$as_val
4239: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240: # Best one so far, save it but keep looking for a better one
4241: ac_cv_path_GREP="$ac_path_GREP"
4242: ac_path_GREP_max=$ac_count
4243: fi
4244: # 10*(2^10) chars as input seems more than enough
4245: test $ac_count -gt 10 && break
4246: done
4247: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248: esac
4249:
4250: $ac_path_GREP_found && break 3
4251: done
4252: done
4253: done
4254: IFS=$as_save_IFS
4255: if test -z "$ac_cv_path_GREP"; then
4256: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257: fi
4258: else
4259: ac_cv_path_GREP=$GREP
4260: fi
4261:
4262: fi
4263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4264: $as_echo "$ac_cv_path_GREP" >&6; }
4265: GREP="$ac_cv_path_GREP"
4266:
4267:
4268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4269: $as_echo_n "checking for egrep... " >&6; }
1.1.1.2 misho 4270: if ${ac_cv_path_EGREP+:} false; then :
1.1 misho 4271: $as_echo_n "(cached) " >&6
4272: else
4273: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4274: then ac_cv_path_EGREP="$GREP -E"
4275: else
4276: if test -z "$EGREP"; then
4277: ac_path_EGREP_found=false
4278: # Loop through the user's path and test for each of PROGNAME-LIST
4279: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281: do
4282: IFS=$as_save_IFS
4283: test -z "$as_dir" && as_dir=.
4284: for ac_prog in egrep; do
4285: for ac_exec_ext in '' $ac_executable_extensions; do
4286: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.2 misho 4287: as_fn_executable_p "$ac_path_EGREP" || continue
1.1 misho 4288: # Check for GNU ac_path_EGREP and select it if it is found.
4289: # Check for GNU $ac_path_EGREP
4290: case `"$ac_path_EGREP" --version 2>&1` in
4291: *GNU*)
4292: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4293: *)
4294: ac_count=0
4295: $as_echo_n 0123456789 >"conftest.in"
4296: while :
4297: do
4298: cat "conftest.in" "conftest.in" >"conftest.tmp"
4299: mv "conftest.tmp" "conftest.in"
4300: cp "conftest.in" "conftest.nl"
4301: $as_echo 'EGREP' >> "conftest.nl"
4302: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304: as_fn_arith $ac_count + 1 && ac_count=$as_val
4305: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4306: # Best one so far, save it but keep looking for a better one
4307: ac_cv_path_EGREP="$ac_path_EGREP"
4308: ac_path_EGREP_max=$ac_count
4309: fi
4310: # 10*(2^10) chars as input seems more than enough
4311: test $ac_count -gt 10 && break
4312: done
4313: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314: esac
4315:
4316: $ac_path_EGREP_found && break 3
4317: done
4318: done
4319: done
4320: IFS=$as_save_IFS
4321: if test -z "$ac_cv_path_EGREP"; then
4322: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4323: fi
4324: else
4325: ac_cv_path_EGREP=$EGREP
4326: fi
4327:
4328: fi
4329: fi
4330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4331: $as_echo "$ac_cv_path_EGREP" >&6; }
4332: EGREP="$ac_cv_path_EGREP"
4333:
4334:
4335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4336: $as_echo_n "checking for ANSI C header files... " >&6; }
1.1.1.2 misho 4337: if ${ac_cv_header_stdc+:} false; then :
1.1 misho 4338: $as_echo_n "(cached) " >&6
4339: else
4340: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341: /* end confdefs.h. */
4342: #include <stdlib.h>
4343: #include <stdarg.h>
4344: #include <string.h>
4345: #include <float.h>
4346:
4347: int
4348: main ()
4349: {
4350:
4351: ;
4352: return 0;
4353: }
4354: _ACEOF
4355: if ac_fn_c_try_compile "$LINENO"; then :
4356: ac_cv_header_stdc=yes
4357: else
4358: ac_cv_header_stdc=no
4359: fi
4360: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361:
4362: if test $ac_cv_header_stdc = yes; then
4363: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4364: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365: /* end confdefs.h. */
4366: #include <string.h>
4367:
4368: _ACEOF
4369: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370: $EGREP "memchr" >/dev/null 2>&1; then :
4371:
4372: else
4373: ac_cv_header_stdc=no
4374: fi
4375: rm -f conftest*
4376:
4377: fi
4378:
4379: if test $ac_cv_header_stdc = yes; then
4380: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382: /* end confdefs.h. */
4383: #include <stdlib.h>
4384:
4385: _ACEOF
4386: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387: $EGREP "free" >/dev/null 2>&1; then :
4388:
4389: else
4390: ac_cv_header_stdc=no
4391: fi
4392: rm -f conftest*
4393:
4394: fi
4395:
4396: if test $ac_cv_header_stdc = yes; then
4397: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4398: if test "$cross_compiling" = yes; then :
4399: :
4400: else
4401: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402: /* end confdefs.h. */
4403: #include <ctype.h>
4404: #include <stdlib.h>
4405: #if ((' ' & 0x0FF) == 0x020)
4406: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4407: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4408: #else
4409: # define ISLOWER(c) \
4410: (('a' <= (c) && (c) <= 'i') \
4411: || ('j' <= (c) && (c) <= 'r') \
4412: || ('s' <= (c) && (c) <= 'z'))
4413: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4414: #endif
4415:
4416: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4417: int
4418: main ()
4419: {
4420: int i;
4421: for (i = 0; i < 256; i++)
4422: if (XOR (islower (i), ISLOWER (i))
4423: || toupper (i) != TOUPPER (i))
4424: return 2;
4425: return 0;
4426: }
4427: _ACEOF
4428: if ac_fn_c_try_run "$LINENO"; then :
4429:
4430: else
4431: ac_cv_header_stdc=no
4432: fi
4433: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4434: conftest.$ac_objext conftest.beam conftest.$ac_ext
4435: fi
4436:
4437: fi
4438: fi
4439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4440: $as_echo "$ac_cv_header_stdc" >&6; }
4441: if test $ac_cv_header_stdc = yes; then
4442:
4443: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4444:
4445: fi
4446:
4447: case `pwd` in
4448: *\ * | *\ *)
4449: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4450: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4451: esac
4452:
4453:
4454:
1.1.1.2 misho 4455: macro_version='2.4.2'
4456: macro_revision='1.3337'
1.1 misho 4457:
4458:
4459:
4460:
4461:
4462:
4463:
4464:
4465:
4466:
4467:
4468:
4469:
4470: ltmain="$ac_aux_dir/ltmain.sh"
4471:
4472: # Make sure we can run config.sub.
4473: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4474: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4475:
4476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4477: $as_echo_n "checking build system type... " >&6; }
1.1.1.2 misho 4478: if ${ac_cv_build+:} false; then :
1.1 misho 4479: $as_echo_n "(cached) " >&6
4480: else
4481: ac_build_alias=$build_alias
4482: test "x$ac_build_alias" = x &&
4483: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4484: test "x$ac_build_alias" = x &&
4485: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4486: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4487: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4488:
4489: fi
4490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4491: $as_echo "$ac_cv_build" >&6; }
4492: case $ac_cv_build in
4493: *-*-*) ;;
1.1.1.2 misho 4494: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.1 misho 4495: esac
4496: build=$ac_cv_build
4497: ac_save_IFS=$IFS; IFS='-'
4498: set x $ac_cv_build
4499: shift
4500: build_cpu=$1
4501: build_vendor=$2
4502: shift; shift
4503: # Remember, the first character of IFS is used to create $*,
4504: # except with old shells:
4505: build_os=$*
4506: IFS=$ac_save_IFS
4507: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4508:
4509:
4510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4511: $as_echo_n "checking host system type... " >&6; }
1.1.1.2 misho 4512: if ${ac_cv_host+:} false; then :
1.1 misho 4513: $as_echo_n "(cached) " >&6
4514: else
4515: if test "x$host_alias" = x; then
4516: ac_cv_host=$ac_cv_build
4517: else
4518: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4519: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4520: fi
4521:
4522: fi
4523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4524: $as_echo "$ac_cv_host" >&6; }
4525: case $ac_cv_host in
4526: *-*-*) ;;
1.1.1.2 misho 4527: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.1 misho 4528: esac
4529: host=$ac_cv_host
4530: ac_save_IFS=$IFS; IFS='-'
4531: set x $ac_cv_host
4532: shift
4533: host_cpu=$1
4534: host_vendor=$2
4535: shift; shift
4536: # Remember, the first character of IFS is used to create $*,
4537: # except with old shells:
4538: host_os=$*
4539: IFS=$ac_save_IFS
4540: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4541:
4542:
1.1.1.2 misho 4543: # Backslashify metacharacters that are still active within
4544: # double-quoted strings.
4545: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4546:
4547: # Same as above, but do not quote variable references.
4548: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4549:
4550: # Sed substitution to delay expansion of an escaped shell variable in a
4551: # double_quote_subst'ed string.
4552: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4553:
4554: # Sed substitution to delay expansion of an escaped single quote.
4555: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4556:
4557: # Sed substitution to avoid accidental globbing in evaled expressions
4558: no_glob_subst='s/\*/\\\*/g'
4559:
4560: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4561: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4562: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4563:
4564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4565: $as_echo_n "checking how to print strings... " >&6; }
4566: # Test print first, because it will be a builtin if present.
4567: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4568: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4569: ECHO='print -r --'
4570: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4571: ECHO='printf %s\n'
4572: else
4573: # Use this function as a fallback that always works.
4574: func_fallback_echo ()
4575: {
4576: eval 'cat <<_LTECHO_EOF
4577: $1
4578: _LTECHO_EOF'
4579: }
4580: ECHO='func_fallback_echo'
4581: fi
4582:
4583: # func_echo_all arg...
4584: # Invoke $ECHO with all args, space-separated.
4585: func_echo_all ()
4586: {
4587: $ECHO ""
4588: }
4589:
4590: case "$ECHO" in
4591: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4592: $as_echo "printf" >&6; } ;;
4593: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4594: $as_echo "print -r" >&6; } ;;
4595: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4596: $as_echo "cat" >&6; } ;;
4597: esac
4598:
4599:
4600:
4601:
4602:
4603:
4604:
4605:
4606:
4607:
4608:
4609:
4610:
4611:
1.1 misho 4612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4613: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
1.1.1.2 misho 4614: if ${ac_cv_path_SED+:} false; then :
1.1 misho 4615: $as_echo_n "(cached) " >&6
4616: else
4617: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4618: for ac_i in 1 2 3 4 5 6 7; do
4619: ac_script="$ac_script$as_nl$ac_script"
4620: done
4621: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4622: { ac_script=; unset ac_script;}
4623: if test -z "$SED"; then
4624: ac_path_SED_found=false
4625: # Loop through the user's path and test for each of PROGNAME-LIST
4626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627: for as_dir in $PATH
4628: do
4629: IFS=$as_save_IFS
4630: test -z "$as_dir" && as_dir=.
4631: for ac_prog in sed gsed; do
4632: for ac_exec_ext in '' $ac_executable_extensions; do
4633: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.2 misho 4634: as_fn_executable_p "$ac_path_SED" || continue
1.1 misho 4635: # Check for GNU ac_path_SED and select it if it is found.
4636: # Check for GNU $ac_path_SED
4637: case `"$ac_path_SED" --version 2>&1` in
4638: *GNU*)
4639: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4640: *)
4641: ac_count=0
4642: $as_echo_n 0123456789 >"conftest.in"
4643: while :
4644: do
4645: cat "conftest.in" "conftest.in" >"conftest.tmp"
4646: mv "conftest.tmp" "conftest.in"
4647: cp "conftest.in" "conftest.nl"
4648: $as_echo '' >> "conftest.nl"
4649: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651: as_fn_arith $ac_count + 1 && ac_count=$as_val
4652: if test $ac_count -gt ${ac_path_SED_max-0}; then
4653: # Best one so far, save it but keep looking for a better one
4654: ac_cv_path_SED="$ac_path_SED"
4655: ac_path_SED_max=$ac_count
4656: fi
4657: # 10*(2^10) chars as input seems more than enough
4658: test $ac_count -gt 10 && break
4659: done
4660: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661: esac
4662:
4663: $ac_path_SED_found && break 3
4664: done
4665: done
4666: done
4667: IFS=$as_save_IFS
4668: if test -z "$ac_cv_path_SED"; then
4669: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4670: fi
4671: else
4672: ac_cv_path_SED=$SED
4673: fi
4674:
4675: fi
4676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4677: $as_echo "$ac_cv_path_SED" >&6; }
4678: SED="$ac_cv_path_SED"
4679: rm -f conftest.sed
4680:
4681: test -z "$SED" && SED=sed
4682: Xsed="$SED -e 1s/^X//"
4683:
4684:
4685:
4686:
4687:
4688:
4689:
4690:
4691:
4692:
4693:
4694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4695: $as_echo_n "checking for fgrep... " >&6; }
1.1.1.2 misho 4696: if ${ac_cv_path_FGREP+:} false; then :
1.1 misho 4697: $as_echo_n "(cached) " >&6
4698: else
4699: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4700: then ac_cv_path_FGREP="$GREP -F"
4701: else
4702: if test -z "$FGREP"; then
4703: ac_path_FGREP_found=false
4704: # Loop through the user's path and test for each of PROGNAME-LIST
4705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707: do
4708: IFS=$as_save_IFS
4709: test -z "$as_dir" && as_dir=.
4710: for ac_prog in fgrep; do
4711: for ac_exec_ext in '' $ac_executable_extensions; do
4712: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.2 misho 4713: as_fn_executable_p "$ac_path_FGREP" || continue
1.1 misho 4714: # Check for GNU ac_path_FGREP and select it if it is found.
4715: # Check for GNU $ac_path_FGREP
4716: case `"$ac_path_FGREP" --version 2>&1` in
4717: *GNU*)
4718: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4719: *)
4720: ac_count=0
4721: $as_echo_n 0123456789 >"conftest.in"
4722: while :
4723: do
4724: cat "conftest.in" "conftest.in" >"conftest.tmp"
4725: mv "conftest.tmp" "conftest.in"
4726: cp "conftest.in" "conftest.nl"
4727: $as_echo 'FGREP' >> "conftest.nl"
4728: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730: as_fn_arith $ac_count + 1 && ac_count=$as_val
4731: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4732: # Best one so far, save it but keep looking for a better one
4733: ac_cv_path_FGREP="$ac_path_FGREP"
4734: ac_path_FGREP_max=$ac_count
4735: fi
4736: # 10*(2^10) chars as input seems more than enough
4737: test $ac_count -gt 10 && break
4738: done
4739: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740: esac
4741:
4742: $ac_path_FGREP_found && break 3
4743: done
4744: done
4745: done
4746: IFS=$as_save_IFS
4747: if test -z "$ac_cv_path_FGREP"; then
4748: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749: fi
4750: else
4751: ac_cv_path_FGREP=$FGREP
4752: fi
4753:
4754: fi
4755: fi
4756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4757: $as_echo "$ac_cv_path_FGREP" >&6; }
4758: FGREP="$ac_cv_path_FGREP"
4759:
4760:
4761: test -z "$GREP" && GREP=grep
4762:
4763:
4764:
4765:
4766:
4767:
4768:
4769:
4770:
4771:
4772:
4773:
4774:
4775:
4776:
4777:
4778:
4779:
4780:
4781: # Check whether --with-gnu-ld was given.
4782: if test "${with_gnu_ld+set}" = set; then :
4783: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4784: else
4785: with_gnu_ld=no
4786: fi
4787:
4788: ac_prog=ld
4789: if test "$GCC" = yes; then
4790: # Check if gcc -print-prog-name=ld gives a path.
4791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4792: $as_echo_n "checking for ld used by $CC... " >&6; }
4793: case $host in
4794: *-*-mingw*)
4795: # gcc leaves a trailing carriage return which upsets mingw
4796: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4797: *)
4798: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4799: esac
4800: case $ac_prog in
4801: # Accept absolute paths.
4802: [\\/]* | ?:[\\/]*)
4803: re_direlt='/[^/][^/]*/\.\./'
4804: # Canonicalize the pathname of ld
4805: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4806: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4807: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4808: done
4809: test -z "$LD" && LD="$ac_prog"
4810: ;;
4811: "")
4812: # If it fails, then pretend we aren't using GCC.
4813: ac_prog=ld
4814: ;;
4815: *)
4816: # If it is relative, then search for the first ld in PATH.
4817: with_gnu_ld=unknown
4818: ;;
4819: esac
4820: elif test "$with_gnu_ld" = yes; then
4821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4822: $as_echo_n "checking for GNU ld... " >&6; }
4823: else
4824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4825: $as_echo_n "checking for non-GNU ld... " >&6; }
4826: fi
1.1.1.2 misho 4827: if ${lt_cv_path_LD+:} false; then :
1.1 misho 4828: $as_echo_n "(cached) " >&6
4829: else
4830: if test -z "$LD"; then
4831: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4832: for ac_dir in $PATH; do
4833: IFS="$lt_save_ifs"
4834: test -z "$ac_dir" && ac_dir=.
4835: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4836: lt_cv_path_LD="$ac_dir/$ac_prog"
4837: # Check to see if the program is GNU ld. I'd rather use --version,
4838: # but apparently some variants of GNU ld only accept -v.
4839: # Break only if it was the GNU/non-GNU ld that we prefer.
4840: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4841: *GNU* | *'with BFD'*)
4842: test "$with_gnu_ld" != no && break
4843: ;;
4844: *)
4845: test "$with_gnu_ld" != yes && break
4846: ;;
4847: esac
4848: fi
4849: done
4850: IFS="$lt_save_ifs"
4851: else
4852: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4853: fi
4854: fi
4855:
4856: LD="$lt_cv_path_LD"
4857: if test -n "$LD"; then
4858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4859: $as_echo "$LD" >&6; }
4860: else
4861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862: $as_echo "no" >&6; }
4863: fi
4864: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4866: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.1.1.2 misho 4867: if ${lt_cv_prog_gnu_ld+:} false; then :
1.1 misho 4868: $as_echo_n "(cached) " >&6
4869: else
4870: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4871: case `$LD -v 2>&1 </dev/null` in
4872: *GNU* | *'with BFD'*)
4873: lt_cv_prog_gnu_ld=yes
4874: ;;
4875: *)
4876: lt_cv_prog_gnu_ld=no
4877: ;;
4878: esac
4879: fi
4880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4881: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4882: with_gnu_ld=$lt_cv_prog_gnu_ld
4883:
4884:
4885:
4886:
4887:
4888:
4889:
4890:
4891:
4892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4893: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
1.1.1.2 misho 4894: if ${lt_cv_path_NM+:} false; then :
1.1 misho 4895: $as_echo_n "(cached) " >&6
4896: else
4897: if test -n "$NM"; then
4898: # Let the user override the test.
4899: lt_cv_path_NM="$NM"
4900: else
4901: lt_nm_to_check="${ac_tool_prefix}nm"
4902: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4903: lt_nm_to_check="$lt_nm_to_check nm"
4904: fi
4905: for lt_tmp_nm in $lt_nm_to_check; do
4906: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4907: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4908: IFS="$lt_save_ifs"
4909: test -z "$ac_dir" && ac_dir=.
4910: tmp_nm="$ac_dir/$lt_tmp_nm"
4911: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4912: # Check to see if the nm accepts a BSD-compat flag.
4913: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4914: # nm: unknown option "B" ignored
4915: # Tru64's nm complains that /dev/null is an invalid object file
4916: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4917: */dev/null* | *'Invalid file or object type'*)
4918: lt_cv_path_NM="$tmp_nm -B"
4919: break
4920: ;;
4921: *)
4922: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4923: */dev/null*)
4924: lt_cv_path_NM="$tmp_nm -p"
4925: break
4926: ;;
4927: *)
4928: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4929: continue # so that we can try to find one that supports BSD flags
4930: ;;
4931: esac
4932: ;;
4933: esac
4934: fi
4935: done
4936: IFS="$lt_save_ifs"
4937: done
4938: : ${lt_cv_path_NM=no}
4939: fi
4940: fi
4941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4942: $as_echo "$lt_cv_path_NM" >&6; }
4943: if test "$lt_cv_path_NM" != "no"; then
4944: NM="$lt_cv_path_NM"
4945: else
4946: # Didn't find any BSD compatible name lister, look for dumpbin.
1.1.1.2 misho 4947: if test -n "$DUMPBIN"; then :
4948: # Let the user override the test.
4949: else
4950: if test -n "$ac_tool_prefix"; then
4951: for ac_prog in dumpbin "link -dump"
1.1 misho 4952: do
4953: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4954: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4957: if ${ac_cv_prog_DUMPBIN+:} false; then :
1.1 misho 4958: $as_echo_n "(cached) " >&6
4959: else
4960: if test -n "$DUMPBIN"; then
4961: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4962: else
4963: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964: for as_dir in $PATH
4965: do
4966: IFS=$as_save_IFS
4967: test -z "$as_dir" && as_dir=.
4968: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 4969: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4970: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4971: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972: break 2
4973: fi
4974: done
4975: done
4976: IFS=$as_save_IFS
4977:
4978: fi
4979: fi
4980: DUMPBIN=$ac_cv_prog_DUMPBIN
4981: if test -n "$DUMPBIN"; then
4982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4983: $as_echo "$DUMPBIN" >&6; }
4984: else
4985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986: $as_echo "no" >&6; }
4987: fi
4988:
4989:
4990: test -n "$DUMPBIN" && break
4991: done
4992: fi
4993: if test -z "$DUMPBIN"; then
4994: ac_ct_DUMPBIN=$DUMPBIN
1.1.1.2 misho 4995: for ac_prog in dumpbin "link -dump"
1.1 misho 4996: do
4997: # Extract the first word of "$ac_prog", so it can be a program name with args.
4998: set dummy $ac_prog; ac_word=$2
4999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5001: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
1.1 misho 5002: $as_echo_n "(cached) " >&6
5003: else
5004: if test -n "$ac_ct_DUMPBIN"; then
5005: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5006: else
5007: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008: for as_dir in $PATH
5009: do
5010: IFS=$as_save_IFS
5011: test -z "$as_dir" && as_dir=.
5012: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 5013: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5014: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5015: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016: break 2
5017: fi
5018: done
5019: done
5020: IFS=$as_save_IFS
5021:
5022: fi
5023: fi
5024: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5025: if test -n "$ac_ct_DUMPBIN"; then
5026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5027: $as_echo "$ac_ct_DUMPBIN" >&6; }
5028: else
5029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030: $as_echo "no" >&6; }
5031: fi
5032:
5033:
5034: test -n "$ac_ct_DUMPBIN" && break
5035: done
5036:
5037: if test "x$ac_ct_DUMPBIN" = x; then
5038: DUMPBIN=":"
5039: else
5040: case $cross_compiling:$ac_tool_warned in
5041: yes:)
5042: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044: ac_tool_warned=yes ;;
5045: esac
5046: DUMPBIN=$ac_ct_DUMPBIN
5047: fi
5048: fi
5049:
1.1.1.2 misho 5050: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5051: *COFF*)
5052: DUMPBIN="$DUMPBIN -symbols"
5053: ;;
5054: *)
5055: DUMPBIN=:
5056: ;;
5057: esac
5058: fi
1.1 misho 5059:
5060: if test "$DUMPBIN" != ":"; then
5061: NM="$DUMPBIN"
5062: fi
5063: fi
5064: test -z "$NM" && NM=nm
5065:
5066:
5067:
5068:
5069:
5070:
5071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5072: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
1.1.1.2 misho 5073: if ${lt_cv_nm_interface+:} false; then :
1.1 misho 5074: $as_echo_n "(cached) " >&6
5075: else
5076: lt_cv_nm_interface="BSD nm"
5077: echo "int some_variable = 0;" > conftest.$ac_ext
1.1.1.2 misho 5078: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1.1 misho 5079: (eval "$ac_compile" 2>conftest.err)
5080: cat conftest.err >&5
1.1.1.2 misho 5081: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1.1 misho 5082: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5083: cat conftest.err >&5
1.1.1.2 misho 5084: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1.1 misho 5085: cat conftest.out >&5
5086: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5087: lt_cv_nm_interface="MS dumpbin"
5088: fi
5089: rm -f conftest*
5090: fi
5091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5092: $as_echo "$lt_cv_nm_interface" >&6; }
5093:
5094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5095: $as_echo_n "checking whether ln -s works... " >&6; }
5096: LN_S=$as_ln_s
5097: if test "$LN_S" = "ln -s"; then
5098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5099: $as_echo "yes" >&6; }
5100: else
5101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5102: $as_echo "no, using $LN_S" >&6; }
5103: fi
5104:
5105: # find the maximum length of command line arguments
5106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5107: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
1.1.1.2 misho 5108: if ${lt_cv_sys_max_cmd_len+:} false; then :
1.1 misho 5109: $as_echo_n "(cached) " >&6
5110: else
5111: i=0
5112: teststring="ABCD"
5113:
5114: case $build_os in
5115: msdosdjgpp*)
5116: # On DJGPP, this test can blow up pretty badly due to problems in libc
5117: # (any single argument exceeding 2000 bytes causes a buffer overrun
5118: # during glob expansion). Even if it were fixed, the result of this
5119: # check would be larger than it should be.
5120: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5121: ;;
5122:
5123: gnu*)
5124: # Under GNU Hurd, this test is not required because there is
5125: # no limit to the length of command line arguments.
5126: # Libtool will interpret -1 as no limit whatsoever
5127: lt_cv_sys_max_cmd_len=-1;
5128: ;;
5129:
5130: cygwin* | mingw* | cegcc*)
5131: # On Win9x/ME, this test blows up -- it succeeds, but takes
5132: # about 5 minutes as the teststring grows exponentially.
5133: # Worse, since 9x/ME are not pre-emptively multitasking,
5134: # you end up with a "frozen" computer, even though with patience
5135: # the test eventually succeeds (with a max line length of 256k).
5136: # Instead, let's just punt: use the minimum linelength reported by
5137: # all of the supported platforms: 8192 (on NT/2K/XP).
5138: lt_cv_sys_max_cmd_len=8192;
5139: ;;
5140:
1.1.1.2 misho 5141: mint*)
5142: # On MiNT this can take a long time and run out of memory.
5143: lt_cv_sys_max_cmd_len=8192;
5144: ;;
5145:
1.1 misho 5146: amigaos*)
5147: # On AmigaOS with pdksh, this test takes hours, literally.
5148: # So we just punt and use a minimum line length of 8192.
5149: lt_cv_sys_max_cmd_len=8192;
5150: ;;
5151:
5152: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5153: # This has been around since 386BSD, at least. Likely further.
5154: if test -x /sbin/sysctl; then
5155: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5156: elif test -x /usr/sbin/sysctl; then
5157: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5158: else
5159: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5160: fi
5161: # And add a safety zone
5162: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5163: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5164: ;;
5165:
5166: interix*)
5167: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5168: lt_cv_sys_max_cmd_len=196608
5169: ;;
5170:
1.1.1.2 misho 5171: os2*)
5172: # The test takes a long time on OS/2.
5173: lt_cv_sys_max_cmd_len=8192
5174: ;;
5175:
1.1 misho 5176: osf*)
5177: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5178: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5179: # nice to cause kernel panics so lets avoid the loop below.
5180: # First set a reasonable default.
5181: lt_cv_sys_max_cmd_len=16384
5182: #
5183: if test -x /sbin/sysconfig; then
5184: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5185: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5186: esac
5187: fi
5188: ;;
5189: sco3.2v5*)
5190: lt_cv_sys_max_cmd_len=102400
5191: ;;
5192: sysv5* | sco5v6* | sysv4.2uw2*)
5193: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5194: if test -n "$kargmax"; then
5195: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5196: else
5197: lt_cv_sys_max_cmd_len=32768
5198: fi
5199: ;;
5200: *)
5201: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5202: if test -n "$lt_cv_sys_max_cmd_len"; then
5203: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5204: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5205: else
5206: # Make teststring a little bigger before we do anything with it.
5207: # a 1K string should be a reasonable start.
5208: for i in 1 2 3 4 5 6 7 8 ; do
5209: teststring=$teststring$teststring
5210: done
5211: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5212: # If test is not a shell built-in, we'll probably end up computing a
5213: # maximum length that is only half of the actual maximum length, but
5214: # we can't tell.
1.1.1.2 misho 5215: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5216: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.1 misho 5217: test $i != 17 # 1/2 MB should be enough
5218: do
5219: i=`expr $i + 1`
5220: teststring=$teststring$teststring
5221: done
5222: # Only check the string length outside the loop.
5223: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5224: teststring=
5225: # Add a significant safety factor because C++ compilers can tack on
5226: # massive amounts of additional arguments before passing them to the
5227: # linker. It appears as though 1/2 is a usable value.
5228: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5229: fi
5230: ;;
5231: esac
5232:
5233: fi
5234:
5235: if test -n $lt_cv_sys_max_cmd_len ; then
5236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5237: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5238: else
5239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5240: $as_echo "none" >&6; }
5241: fi
5242: max_cmd_len=$lt_cv_sys_max_cmd_len
5243:
5244:
5245:
5246:
5247:
5248:
5249: : ${CP="cp -f"}
5250: : ${MV="mv -f"}
5251: : ${RM="rm -f"}
5252:
5253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5254: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5255: # Try some XSI features
5256: xsi_shell=no
5257: ( _lt_dummy="a/b/c"
1.1.1.2 misho 5258: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5259: = c,a/b,b/c, \
1.1 misho 5260: && eval 'test $(( 1 + 1 )) -eq 2 \
5261: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5262: && xsi_shell=yes
5263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5264: $as_echo "$xsi_shell" >&6; }
5265:
5266:
5267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5268: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5269: lt_shell_append=no
5270: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5271: >/dev/null 2>&1 \
5272: && lt_shell_append=yes
5273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5274: $as_echo "$lt_shell_append" >&6; }
5275:
5276:
5277: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5278: lt_unset=unset
5279: else
5280: lt_unset=false
5281: fi
5282:
5283:
5284:
5285:
5286:
5287: # test EBCDIC or ASCII
5288: case `echo X|tr X '\101'` in
5289: A) # ASCII based system
5290: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5291: lt_SP2NL='tr \040 \012'
5292: lt_NL2SP='tr \015\012 \040\040'
5293: ;;
5294: *) # EBCDIC based system
5295: lt_SP2NL='tr \100 \n'
5296: lt_NL2SP='tr \r\n \100\100'
5297: ;;
5298: esac
5299:
5300:
5301:
5302:
5303:
5304:
5305:
5306:
5307:
1.1.1.2 misho 5308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5309: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5310: if ${lt_cv_to_host_file_cmd+:} false; then :
5311: $as_echo_n "(cached) " >&6
5312: else
5313: case $host in
5314: *-*-mingw* )
5315: case $build in
5316: *-*-mingw* ) # actually msys
5317: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5318: ;;
5319: *-*-cygwin* )
5320: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5321: ;;
5322: * ) # otherwise, assume *nix
5323: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5324: ;;
5325: esac
5326: ;;
5327: *-*-cygwin* )
5328: case $build in
5329: *-*-mingw* ) # actually msys
5330: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5331: ;;
5332: *-*-cygwin* )
5333: lt_cv_to_host_file_cmd=func_convert_file_noop
5334: ;;
5335: * ) # otherwise, assume *nix
5336: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5337: ;;
5338: esac
5339: ;;
5340: * ) # unhandled hosts (and "normal" native builds)
5341: lt_cv_to_host_file_cmd=func_convert_file_noop
5342: ;;
5343: esac
5344:
5345: fi
5346:
5347: to_host_file_cmd=$lt_cv_to_host_file_cmd
5348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5349: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5350:
5351:
5352:
5353:
5354:
5355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5356: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5357: if ${lt_cv_to_tool_file_cmd+:} false; then :
5358: $as_echo_n "(cached) " >&6
5359: else
5360: #assume ordinary cross tools, or native build.
5361: lt_cv_to_tool_file_cmd=func_convert_file_noop
5362: case $host in
5363: *-*-mingw* )
5364: case $build in
5365: *-*-mingw* ) # actually msys
5366: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5367: ;;
5368: esac
5369: ;;
5370: esac
5371:
5372: fi
5373:
5374: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5376: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5377:
5378:
5379:
5380:
5381:
1.1 misho 5382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5383: $as_echo_n "checking for $LD option to reload object files... " >&6; }
1.1.1.2 misho 5384: if ${lt_cv_ld_reload_flag+:} false; then :
1.1 misho 5385: $as_echo_n "(cached) " >&6
5386: else
5387: lt_cv_ld_reload_flag='-r'
5388: fi
5389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5390: $as_echo "$lt_cv_ld_reload_flag" >&6; }
5391: reload_flag=$lt_cv_ld_reload_flag
5392: case $reload_flag in
5393: "" | " "*) ;;
5394: *) reload_flag=" $reload_flag" ;;
5395: esac
5396: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5397: case $host_os in
1.1.1.2 misho 5398: cygwin* | mingw* | pw32* | cegcc*)
5399: if test "$GCC" != yes; then
5400: reload_cmds=false
5401: fi
5402: ;;
1.1 misho 5403: darwin*)
5404: if test "$GCC" = yes; then
5405: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5406: else
5407: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5408: fi
5409: ;;
5410: esac
5411:
5412:
5413:
5414:
5415:
5416:
5417:
5418:
5419:
5420: if test -n "$ac_tool_prefix"; then
5421: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5422: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5425: if ${ac_cv_prog_OBJDUMP+:} false; then :
1.1 misho 5426: $as_echo_n "(cached) " >&6
5427: else
5428: if test -n "$OBJDUMP"; then
5429: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5430: else
5431: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432: for as_dir in $PATH
5433: do
5434: IFS=$as_save_IFS
5435: test -z "$as_dir" && as_dir=.
5436: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 5437: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5438: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5439: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440: break 2
5441: fi
5442: done
5443: done
5444: IFS=$as_save_IFS
5445:
5446: fi
5447: fi
5448: OBJDUMP=$ac_cv_prog_OBJDUMP
5449: if test -n "$OBJDUMP"; then
5450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5451: $as_echo "$OBJDUMP" >&6; }
5452: else
5453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454: $as_echo "no" >&6; }
5455: fi
5456:
5457:
5458: fi
5459: if test -z "$ac_cv_prog_OBJDUMP"; then
5460: ac_ct_OBJDUMP=$OBJDUMP
5461: # Extract the first word of "objdump", so it can be a program name with args.
5462: set dummy objdump; ac_word=$2
5463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5465: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1.1 misho 5466: $as_echo_n "(cached) " >&6
5467: else
5468: if test -n "$ac_ct_OBJDUMP"; then
5469: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5470: else
5471: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472: for as_dir in $PATH
5473: do
5474: IFS=$as_save_IFS
5475: test -z "$as_dir" && as_dir=.
5476: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 5477: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5478: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5479: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480: break 2
5481: fi
5482: done
5483: done
5484: IFS=$as_save_IFS
5485:
5486: fi
5487: fi
5488: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5489: if test -n "$ac_ct_OBJDUMP"; then
5490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5491: $as_echo "$ac_ct_OBJDUMP" >&6; }
5492: else
5493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494: $as_echo "no" >&6; }
5495: fi
5496:
5497: if test "x$ac_ct_OBJDUMP" = x; then
5498: OBJDUMP="false"
5499: else
5500: case $cross_compiling:$ac_tool_warned in
5501: yes:)
5502: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504: ac_tool_warned=yes ;;
5505: esac
5506: OBJDUMP=$ac_ct_OBJDUMP
5507: fi
5508: else
5509: OBJDUMP="$ac_cv_prog_OBJDUMP"
5510: fi
5511:
5512: test -z "$OBJDUMP" && OBJDUMP=objdump
5513:
5514:
5515:
5516:
5517:
5518:
5519:
5520:
5521:
5522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5523: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
1.1.1.2 misho 5524: if ${lt_cv_deplibs_check_method+:} false; then :
1.1 misho 5525: $as_echo_n "(cached) " >&6
5526: else
5527: lt_cv_file_magic_cmd='$MAGIC_CMD'
5528: lt_cv_file_magic_test_file=
5529: lt_cv_deplibs_check_method='unknown'
5530: # Need to set the preceding variable on all platforms that support
5531: # interlibrary dependencies.
5532: # 'none' -- dependencies not supported.
5533: # `unknown' -- same as none, but documents that we really don't know.
5534: # 'pass_all' -- all dependencies passed with no checks.
5535: # 'test_compile' -- check by making test program.
5536: # 'file_magic [[regex]]' -- check by looking for files in library path
5537: # which responds to the $file_magic_cmd with a given extended regex.
5538: # If you have `file' or equivalent on your system and you're not sure
5539: # whether `pass_all' will *always* work, you probably want this one.
5540:
5541: case $host_os in
5542: aix[4-9]*)
5543: lt_cv_deplibs_check_method=pass_all
5544: ;;
5545:
5546: beos*)
5547: lt_cv_deplibs_check_method=pass_all
5548: ;;
5549:
5550: bsdi[45]*)
5551: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5552: lt_cv_file_magic_cmd='/usr/bin/file -L'
5553: lt_cv_file_magic_test_file=/shlib/libc.so
5554: ;;
5555:
5556: cygwin*)
5557: # func_win32_libid is a shell function defined in ltmain.sh
5558: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5559: lt_cv_file_magic_cmd='func_win32_libid'
5560: ;;
5561:
5562: mingw* | pw32*)
5563: # Base MSYS/MinGW do not provide the 'file' command needed by
5564: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5565: # unless we find 'file', for example because we are cross-compiling.
1.1.1.2 misho 5566: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5567: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1.1 misho 5568: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5569: lt_cv_file_magic_cmd='func_win32_libid'
5570: else
1.1.1.2 misho 5571: # Keep this pattern in sync with the one in func_win32_libid.
5572: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
1.1 misho 5573: lt_cv_file_magic_cmd='$OBJDUMP -f'
5574: fi
5575: ;;
5576:
1.1.1.2 misho 5577: cegcc*)
1.1 misho 5578: # use the weaker test based on 'objdump'. See mingw*.
5579: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5580: lt_cv_file_magic_cmd='$OBJDUMP -f'
5581: ;;
5582:
5583: darwin* | rhapsody*)
5584: lt_cv_deplibs_check_method=pass_all
5585: ;;
5586:
5587: freebsd* | dragonfly*)
5588: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5589: case $host_cpu in
5590: i*86 )
5591: # Not sure whether the presence of OpenBSD here was a mistake.
5592: # Let's accept both of them until this is cleared up.
5593: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5594: lt_cv_file_magic_cmd=/usr/bin/file
5595: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5596: ;;
5597: esac
5598: else
5599: lt_cv_deplibs_check_method=pass_all
5600: fi
5601: ;;
5602:
5603: gnu*)
5604: lt_cv_deplibs_check_method=pass_all
5605: ;;
5606:
1.1.1.2 misho 5607: haiku*)
5608: lt_cv_deplibs_check_method=pass_all
5609: ;;
5610:
1.1 misho 5611: hpux10.20* | hpux11*)
5612: lt_cv_file_magic_cmd=/usr/bin/file
5613: case $host_cpu in
5614: ia64*)
5615: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5616: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5617: ;;
5618: hppa*64*)
1.1.1.2 misho 5619: 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]'
1.1 misho 5620: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5621: ;;
5622: *)
1.1.1.2 misho 5623: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1.1 misho 5624: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5625: ;;
5626: esac
5627: ;;
5628:
5629: interix[3-9]*)
5630: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5631: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5632: ;;
5633:
5634: irix5* | irix6* | nonstopux*)
5635: case $LD in
5636: *-32|*"-32 ") libmagic=32-bit;;
5637: *-n32|*"-n32 ") libmagic=N32;;
5638: *-64|*"-64 ") libmagic=64-bit;;
5639: *) libmagic=never-match;;
5640: esac
5641: lt_cv_deplibs_check_method=pass_all
5642: ;;
5643:
1.1.1.2 misho 5644: # This must be glibc/ELF.
1.1 misho 5645: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5646: lt_cv_deplibs_check_method=pass_all
5647: ;;
5648:
1.1.1.2 misho 5649: netbsd*)
1.1 misho 5650: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5651: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5652: else
5653: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5654: fi
5655: ;;
5656:
5657: newos6*)
5658: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5659: lt_cv_file_magic_cmd=/usr/bin/file
5660: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5661: ;;
5662:
5663: *nto* | *qnx*)
5664: lt_cv_deplibs_check_method=pass_all
5665: ;;
5666:
5667: openbsd*)
5668: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5669: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5670: else
5671: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5672: fi
5673: ;;
5674:
5675: osf3* | osf4* | osf5*)
5676: lt_cv_deplibs_check_method=pass_all
5677: ;;
5678:
5679: rdos*)
5680: lt_cv_deplibs_check_method=pass_all
5681: ;;
5682:
5683: solaris*)
5684: lt_cv_deplibs_check_method=pass_all
5685: ;;
5686:
5687: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5688: lt_cv_deplibs_check_method=pass_all
5689: ;;
5690:
5691: sysv4 | sysv4.3*)
5692: case $host_vendor in
5693: motorola)
5694: 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]'
5695: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5696: ;;
5697: ncr)
5698: lt_cv_deplibs_check_method=pass_all
5699: ;;
5700: sequent)
5701: lt_cv_file_magic_cmd='/bin/file'
5702: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5703: ;;
5704: sni)
5705: lt_cv_file_magic_cmd='/bin/file'
5706: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5707: lt_cv_file_magic_test_file=/lib/libc.so
5708: ;;
5709: siemens)
5710: lt_cv_deplibs_check_method=pass_all
5711: ;;
1.1.1.2 misho 5712: pc)
5713: lt_cv_deplibs_check_method=pass_all
5714: ;;
5715: esac
5716: ;;
5717:
5718: tpf*)
5719: lt_cv_deplibs_check_method=pass_all
5720: ;;
5721: esac
5722:
5723: fi
5724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5725: $as_echo "$lt_cv_deplibs_check_method" >&6; }
5726:
5727: file_magic_glob=
5728: want_nocaseglob=no
5729: if test "$build" = "$host"; then
5730: case $host_os in
5731: mingw* | pw32*)
5732: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5733: want_nocaseglob=yes
5734: else
5735: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5736: fi
5737: ;;
5738: esac
5739: fi
5740:
5741: file_magic_cmd=$lt_cv_file_magic_cmd
5742: deplibs_check_method=$lt_cv_deplibs_check_method
5743: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5744:
5745:
5746:
5747:
5748:
5749:
5750:
5751:
5752:
5753:
5754:
5755:
5756:
5757:
5758:
5759:
5760:
5761:
5762:
5763:
5764:
5765:
5766: if test -n "$ac_tool_prefix"; then
5767: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5768: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770: $as_echo_n "checking for $ac_word... " >&6; }
5771: if ${ac_cv_prog_DLLTOOL+:} false; then :
5772: $as_echo_n "(cached) " >&6
5773: else
5774: if test -n "$DLLTOOL"; then
5775: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5776: else
5777: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778: for as_dir in $PATH
5779: do
5780: IFS=$as_save_IFS
5781: test -z "$as_dir" && as_dir=.
5782: for ac_exec_ext in '' $ac_executable_extensions; do
5783: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5785: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786: break 2
5787: fi
5788: done
5789: done
5790: IFS=$as_save_IFS
5791:
5792: fi
5793: fi
5794: DLLTOOL=$ac_cv_prog_DLLTOOL
5795: if test -n "$DLLTOOL"; then
5796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5797: $as_echo "$DLLTOOL" >&6; }
5798: else
5799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800: $as_echo "no" >&6; }
5801: fi
5802:
5803:
5804: fi
5805: if test -z "$ac_cv_prog_DLLTOOL"; then
5806: ac_ct_DLLTOOL=$DLLTOOL
5807: # Extract the first word of "dlltool", so it can be a program name with args.
5808: set dummy dlltool; ac_word=$2
5809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810: $as_echo_n "checking for $ac_word... " >&6; }
5811: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5812: $as_echo_n "(cached) " >&6
5813: else
5814: if test -n "$ac_ct_DLLTOOL"; then
5815: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5816: else
5817: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818: for as_dir in $PATH
5819: do
5820: IFS=$as_save_IFS
5821: test -z "$as_dir" && as_dir=.
5822: for ac_exec_ext in '' $ac_executable_extensions; do
5823: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5825: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826: break 2
5827: fi
5828: done
5829: done
5830: IFS=$as_save_IFS
5831:
5832: fi
5833: fi
5834: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5835: if test -n "$ac_ct_DLLTOOL"; then
5836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5837: $as_echo "$ac_ct_DLLTOOL" >&6; }
5838: else
5839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840: $as_echo "no" >&6; }
5841: fi
5842:
5843: if test "x$ac_ct_DLLTOOL" = x; then
5844: DLLTOOL="false"
5845: else
5846: case $cross_compiling:$ac_tool_warned in
5847: yes:)
5848: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850: ac_tool_warned=yes ;;
5851: esac
5852: DLLTOOL=$ac_ct_DLLTOOL
5853: fi
5854: else
5855: DLLTOOL="$ac_cv_prog_DLLTOOL"
5856: fi
5857:
5858: test -z "$DLLTOOL" && DLLTOOL=dlltool
5859:
5860:
5861:
5862:
5863:
5864:
5865:
5866:
5867:
5868:
5869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5870: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5871: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5872: $as_echo_n "(cached) " >&6
5873: else
5874: lt_cv_sharedlib_from_linklib_cmd='unknown'
5875:
5876: case $host_os in
5877: cygwin* | mingw* | pw32* | cegcc*)
5878: # two different shell functions defined in ltmain.sh
5879: # decide which to use based on capabilities of $DLLTOOL
5880: case `$DLLTOOL --help 2>&1` in
5881: *--identify-strict*)
5882: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5883: ;;
5884: *)
5885: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
1.1 misho 5886: ;;
5887: esac
5888: ;;
1.1.1.2 misho 5889: *)
5890: # fallback: assume linklib IS sharedlib
5891: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misho 5892: ;;
5893: esac
5894:
5895: fi
1.1.1.2 misho 5896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5897: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5898: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5899: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misho 5900:
5901:
5902:
5903:
5904:
5905:
5906:
5907: if test -n "$ac_tool_prefix"; then
1.1.1.2 misho 5908: for ac_prog in ar
5909: do
5910: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1 misho 5912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5914: if ${ac_cv_prog_AR+:} false; then :
1.1 misho 5915: $as_echo_n "(cached) " >&6
5916: else
5917: if test -n "$AR"; then
5918: ac_cv_prog_AR="$AR" # Let the user override the test.
5919: else
5920: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921: for as_dir in $PATH
5922: do
5923: IFS=$as_save_IFS
5924: test -z "$as_dir" && as_dir=.
5925: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 5926: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.1 misho 5928: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929: break 2
5930: fi
5931: done
5932: done
5933: IFS=$as_save_IFS
5934:
5935: fi
5936: fi
5937: AR=$ac_cv_prog_AR
5938: if test -n "$AR"; then
5939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5940: $as_echo "$AR" >&6; }
5941: else
5942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943: $as_echo "no" >&6; }
5944: fi
5945:
5946:
1.1.1.2 misho 5947: test -n "$AR" && break
5948: done
1.1 misho 5949: fi
1.1.1.2 misho 5950: if test -z "$AR"; then
1.1 misho 5951: ac_ct_AR=$AR
1.1.1.2 misho 5952: for ac_prog in ar
5953: do
5954: # Extract the first word of "$ac_prog", so it can be a program name with args.
5955: set dummy $ac_prog; ac_word=$2
1.1 misho 5956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5958: if ${ac_cv_prog_ac_ct_AR+:} false; then :
1.1 misho 5959: $as_echo_n "(cached) " >&6
5960: else
5961: if test -n "$ac_ct_AR"; then
5962: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5963: else
5964: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965: for as_dir in $PATH
5966: do
5967: IFS=$as_save_IFS
5968: test -z "$as_dir" && as_dir=.
5969: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 5970: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971: ac_cv_prog_ac_ct_AR="$ac_prog"
1.1 misho 5972: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973: break 2
5974: fi
5975: done
5976: done
5977: IFS=$as_save_IFS
5978:
5979: fi
5980: fi
5981: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5982: if test -n "$ac_ct_AR"; then
5983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5984: $as_echo "$ac_ct_AR" >&6; }
5985: else
5986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987: $as_echo "no" >&6; }
5988: fi
5989:
1.1.1.2 misho 5990:
5991: test -n "$ac_ct_AR" && break
5992: done
5993:
1.1 misho 5994: if test "x$ac_ct_AR" = x; then
5995: AR="false"
5996: else
5997: case $cross_compiling:$ac_tool_warned in
5998: yes:)
5999: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001: ac_tool_warned=yes ;;
6002: esac
6003: AR=$ac_ct_AR
6004: fi
6005: fi
6006:
1.1.1.2 misho 6007: : ${AR=ar}
6008: : ${AR_FLAGS=cru}
6009:
6010:
6011:
6012:
6013:
6014:
6015:
6016:
6017:
6018:
6019:
6020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6021: $as_echo_n "checking for archiver @FILE support... " >&6; }
6022: if ${lt_cv_ar_at_file+:} false; then :
6023: $as_echo_n "(cached) " >&6
6024: else
6025: lt_cv_ar_at_file=no
6026: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027: /* end confdefs.h. */
6028:
6029: int
6030: main ()
6031: {
1.1 misho 6032:
1.1.1.2 misho 6033: ;
6034: return 0;
6035: }
6036: _ACEOF
6037: if ac_fn_c_try_compile "$LINENO"; then :
6038: echo conftest.$ac_objext > conftest.lst
6039: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6040: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6041: (eval $lt_ar_try) 2>&5
6042: ac_status=$?
6043: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6044: test $ac_status = 0; }
6045: if test "$ac_status" -eq 0; then
6046: # Ensure the archiver fails upon bogus file names.
6047: rm -f conftest.$ac_objext libconftest.a
6048: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6049: (eval $lt_ar_try) 2>&5
6050: ac_status=$?
6051: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052: test $ac_status = 0; }
6053: if test "$ac_status" -ne 0; then
6054: lt_cv_ar_at_file=@
6055: fi
6056: fi
6057: rm -f conftest.* libconftest.a
1.1 misho 6058:
1.1.1.2 misho 6059: fi
6060: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 6061:
1.1.1.2 misho 6062: fi
6063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6064: $as_echo "$lt_cv_ar_at_file" >&6; }
1.1 misho 6065:
1.1.1.2 misho 6066: if test "x$lt_cv_ar_at_file" = xno; then
6067: archiver_list_spec=
6068: else
6069: archiver_list_spec=$lt_cv_ar_at_file
6070: fi
1.1 misho 6071:
6072:
6073:
6074:
6075:
6076:
6077:
6078: if test -n "$ac_tool_prefix"; then
6079: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6080: set dummy ${ac_tool_prefix}strip; ac_word=$2
6081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6083: if ${ac_cv_prog_STRIP+:} false; then :
1.1 misho 6084: $as_echo_n "(cached) " >&6
6085: else
6086: if test -n "$STRIP"; then
6087: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6088: else
6089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090: for as_dir in $PATH
6091: do
6092: IFS=$as_save_IFS
6093: test -z "$as_dir" && as_dir=.
6094: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 6095: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6096: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6097: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098: break 2
6099: fi
6100: done
6101: done
6102: IFS=$as_save_IFS
6103:
6104: fi
6105: fi
6106: STRIP=$ac_cv_prog_STRIP
6107: if test -n "$STRIP"; then
6108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6109: $as_echo "$STRIP" >&6; }
6110: else
6111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112: $as_echo "no" >&6; }
6113: fi
6114:
6115:
6116: fi
6117: if test -z "$ac_cv_prog_STRIP"; then
6118: ac_ct_STRIP=$STRIP
6119: # Extract the first word of "strip", so it can be a program name with args.
6120: set dummy strip; ac_word=$2
6121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6123: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.1 misho 6124: $as_echo_n "(cached) " >&6
6125: else
6126: if test -n "$ac_ct_STRIP"; then
6127: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6128: else
6129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130: for as_dir in $PATH
6131: do
6132: IFS=$as_save_IFS
6133: test -z "$as_dir" && as_dir=.
6134: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 6135: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6136: ac_cv_prog_ac_ct_STRIP="strip"
6137: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138: break 2
6139: fi
6140: done
6141: done
6142: IFS=$as_save_IFS
6143:
6144: fi
6145: fi
6146: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6147: if test -n "$ac_ct_STRIP"; then
6148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6149: $as_echo "$ac_ct_STRIP" >&6; }
6150: else
6151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152: $as_echo "no" >&6; }
6153: fi
6154:
6155: if test "x$ac_ct_STRIP" = x; then
6156: STRIP=":"
6157: else
6158: case $cross_compiling:$ac_tool_warned in
6159: yes:)
6160: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162: ac_tool_warned=yes ;;
6163: esac
6164: STRIP=$ac_ct_STRIP
6165: fi
6166: else
6167: STRIP="$ac_cv_prog_STRIP"
6168: fi
6169:
6170: test -z "$STRIP" && STRIP=:
6171:
6172:
6173:
6174:
6175:
6176:
6177: if test -n "$ac_tool_prefix"; then
6178: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6179: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6182: if ${ac_cv_prog_RANLIB+:} false; then :
1.1 misho 6183: $as_echo_n "(cached) " >&6
6184: else
6185: if test -n "$RANLIB"; then
6186: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6187: else
6188: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189: for as_dir in $PATH
6190: do
6191: IFS=$as_save_IFS
6192: test -z "$as_dir" && as_dir=.
6193: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 6194: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6195: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6196: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197: break 2
6198: fi
6199: done
6200: done
6201: IFS=$as_save_IFS
6202:
6203: fi
6204: fi
6205: RANLIB=$ac_cv_prog_RANLIB
6206: if test -n "$RANLIB"; then
6207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6208: $as_echo "$RANLIB" >&6; }
6209: else
6210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211: $as_echo "no" >&6; }
6212: fi
6213:
6214:
6215: fi
6216: if test -z "$ac_cv_prog_RANLIB"; then
6217: ac_ct_RANLIB=$RANLIB
6218: # Extract the first word of "ranlib", so it can be a program name with args.
6219: set dummy ranlib; ac_word=$2
6220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6222: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.1 misho 6223: $as_echo_n "(cached) " >&6
6224: else
6225: if test -n "$ac_ct_RANLIB"; then
6226: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6227: else
6228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229: for as_dir in $PATH
6230: do
6231: IFS=$as_save_IFS
6232: test -z "$as_dir" && as_dir=.
6233: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 6234: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6235: ac_cv_prog_ac_ct_RANLIB="ranlib"
6236: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237: break 2
6238: fi
6239: done
6240: done
6241: IFS=$as_save_IFS
6242:
6243: fi
6244: fi
6245: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6246: if test -n "$ac_ct_RANLIB"; then
6247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6248: $as_echo "$ac_ct_RANLIB" >&6; }
6249: else
6250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251: $as_echo "no" >&6; }
6252: fi
6253:
6254: if test "x$ac_ct_RANLIB" = x; then
6255: RANLIB=":"
6256: else
6257: case $cross_compiling:$ac_tool_warned in
6258: yes:)
6259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6260: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6261: ac_tool_warned=yes ;;
6262: esac
6263: RANLIB=$ac_ct_RANLIB
6264: fi
6265: else
6266: RANLIB="$ac_cv_prog_RANLIB"
6267: fi
6268:
6269: test -z "$RANLIB" && RANLIB=:
6270:
6271:
6272:
6273:
6274:
6275:
6276: # Determine commands to create old-style static archives.
6277: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6278: old_postinstall_cmds='chmod 644 $oldlib'
6279: old_postuninstall_cmds=
6280:
6281: if test -n "$RANLIB"; then
6282: case $host_os in
6283: openbsd*)
1.1.1.2 misho 6284: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misho 6285: ;;
6286: *)
1.1.1.2 misho 6287: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 6288: ;;
6289: esac
1.1.1.2 misho 6290: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 6291: fi
6292:
1.1.1.2 misho 6293: case $host_os in
6294: darwin*)
6295: lock_old_archive_extraction=yes ;;
6296: *)
6297: lock_old_archive_extraction=no ;;
6298: esac
6299:
6300:
6301:
6302:
6303:
6304:
1.1 misho 6305:
6306:
6307:
6308:
6309:
6310:
6311:
6312:
6313:
6314:
6315:
6316:
6317:
6318:
6319:
6320:
6321:
6322:
6323:
6324:
6325:
6326:
6327:
6328:
6329:
6330:
6331:
6332:
6333:
6334:
6335:
6336:
6337:
6338: # If no C compiler was specified, use CC.
6339: LTCC=${LTCC-"$CC"}
6340:
6341: # If no C compiler flags were specified, use CFLAGS.
6342: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6343:
6344: # Allow CC to be a program name with arguments.
6345: compiler=$CC
6346:
6347:
6348: # Check for command to grab the raw symbol name followed by C symbol from nm.
6349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6350: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
1.1.1.2 misho 6351: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
1.1 misho 6352: $as_echo_n "(cached) " >&6
6353: else
6354:
6355: # These are sane defaults that work on at least a few old systems.
6356: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6357:
6358: # Character class describing NM global symbol codes.
6359: symcode='[BCDEGRST]'
6360:
6361: # Regexp to match symbols that can be accessed directly from C.
6362: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6363:
6364: # Define system-specific variables.
6365: case $host_os in
6366: aix*)
6367: symcode='[BCDT]'
6368: ;;
6369: cygwin* | mingw* | pw32* | cegcc*)
6370: symcode='[ABCDGISTW]'
6371: ;;
6372: hpux*)
6373: if test "$host_cpu" = ia64; then
6374: symcode='[ABCDEGRST]'
6375: fi
6376: ;;
6377: irix* | nonstopux*)
6378: symcode='[BCDEGRST]'
6379: ;;
6380: osf*)
6381: symcode='[BCDEGQRST]'
6382: ;;
6383: solaris*)
6384: symcode='[BDRT]'
6385: ;;
6386: sco3.2v5*)
6387: symcode='[DT]'
6388: ;;
6389: sysv4.2uw2*)
6390: symcode='[DT]'
6391: ;;
6392: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6393: symcode='[ABDT]'
6394: ;;
6395: sysv4)
6396: symcode='[DFNSTU]'
6397: ;;
6398: esac
6399:
6400: # If we're using GNU nm, then use its standard symbol codes.
6401: case `$NM -V 2>&1` in
6402: *GNU* | *'with BFD'*)
6403: symcode='[ABCDGIRSTW]' ;;
6404: esac
6405:
6406: # Transform an extracted symbol line into a proper C declaration.
6407: # Some systems (esp. on ia64) link data and code symbols differently,
6408: # so use this general approach.
6409: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6410:
6411: # Transform an extracted symbol line into symbol name and symbol address
1.1.1.2 misho 6412: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6413: 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'"
1.1 misho 6414:
6415: # Handle CRLF in mingw tool chain
6416: opt_cr=
6417: case $build_os in
6418: mingw*)
6419: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6420: ;;
6421: esac
6422:
6423: # Try without a prefix underscore, then with it.
6424: for ac_symprfx in "" "_"; do
6425:
6426: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6427: symxfrm="\\1 $ac_symprfx\\2 \\2"
6428:
6429: # Write the raw and C identifiers.
6430: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6431: # Fake it for dumpbin and say T for any non-static function
6432: # and D for any global variable.
6433: # Also find C++ and __fastcall symbols from MSVC++,
6434: # which start with @ or ?.
6435: lt_cv_sys_global_symbol_pipe="$AWK '"\
6436: " {last_section=section; section=\$ 3};"\
1.1.1.2 misho 6437: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
1.1 misho 6438: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6439: " \$ 0!~/External *\|/{next};"\
6440: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6441: " {if(hide[section]) next};"\
6442: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6443: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6444: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6445: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6446: " ' prfx=^$ac_symprfx"
6447: else
6448: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6449: fi
1.1.1.2 misho 6450: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.1 misho 6451:
6452: # Check to see that the pipe works correctly.
6453: pipe_works=no
6454:
6455: rm -f conftest*
6456: cat > conftest.$ac_ext <<_LT_EOF
6457: #ifdef __cplusplus
6458: extern "C" {
6459: #endif
6460: char nm_test_var;
6461: void nm_test_func(void);
6462: void nm_test_func(void){}
6463: #ifdef __cplusplus
6464: }
6465: #endif
6466: int main(){nm_test_var='a';nm_test_func();return(0);}
6467: _LT_EOF
6468:
6469: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470: (eval $ac_compile) 2>&5
6471: ac_status=$?
6472: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473: test $ac_status = 0; }; then
6474: # Now try to grab the symbols.
6475: nlist=conftest.nm
1.1.1.2 misho 6476: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6477: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misho 6478: ac_status=$?
6479: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480: test $ac_status = 0; } && test -s "$nlist"; then
6481: # Try sorting and uniquifying the output.
6482: if sort "$nlist" | uniq > "$nlist"T; then
6483: mv -f "$nlist"T "$nlist"
6484: else
6485: rm -f "$nlist"T
6486: fi
6487:
6488: # Make sure that we snagged all the symbols we need.
6489: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6490: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6491: cat <<_LT_EOF > conftest.$ac_ext
1.1.1.2 misho 6492: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6493: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6494: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6495: relocations are performed -- see ld's documentation on pseudo-relocs. */
6496: # define LT_DLSYM_CONST
6497: #elif defined(__osf__)
6498: /* This system does not cope well with relocations in const data. */
6499: # define LT_DLSYM_CONST
6500: #else
6501: # define LT_DLSYM_CONST const
6502: #endif
6503:
1.1 misho 6504: #ifdef __cplusplus
6505: extern "C" {
6506: #endif
6507:
6508: _LT_EOF
6509: # Now generate the symbol file.
6510: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6511:
6512: cat <<_LT_EOF >> conftest.$ac_ext
6513:
6514: /* The mapping between symbol names and symbols. */
1.1.1.2 misho 6515: LT_DLSYM_CONST struct {
1.1 misho 6516: const char *name;
6517: void *address;
6518: }
6519: lt__PROGRAM__LTX_preloaded_symbols[] =
6520: {
6521: { "@PROGRAM@", (void *) 0 },
6522: _LT_EOF
6523: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6524: cat <<\_LT_EOF >> conftest.$ac_ext
6525: {0, (void *) 0}
6526: };
6527:
6528: /* This works around a problem in FreeBSD linker */
6529: #ifdef FREEBSD_WORKAROUND
6530: static const void *lt_preloaded_setup() {
6531: return lt__PROGRAM__LTX_preloaded_symbols;
6532: }
6533: #endif
6534:
6535: #ifdef __cplusplus
6536: }
6537: #endif
6538: _LT_EOF
6539: # Now try linking the two files.
6540: mv conftest.$ac_objext conftstm.$ac_objext
1.1.1.2 misho 6541: lt_globsym_save_LIBS=$LIBS
6542: lt_globsym_save_CFLAGS=$CFLAGS
1.1 misho 6543: LIBS="conftstm.$ac_objext"
6544: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6545: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6546: (eval $ac_link) 2>&5
6547: ac_status=$?
6548: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6549: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6550: pipe_works=yes
6551: fi
1.1.1.2 misho 6552: LIBS=$lt_globsym_save_LIBS
6553: CFLAGS=$lt_globsym_save_CFLAGS
1.1 misho 6554: else
6555: echo "cannot find nm_test_func in $nlist" >&5
6556: fi
6557: else
6558: echo "cannot find nm_test_var in $nlist" >&5
6559: fi
6560: else
6561: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6562: fi
6563: else
6564: echo "$progname: failed program was:" >&5
6565: cat conftest.$ac_ext >&5
6566: fi
6567: rm -rf conftest* conftst*
6568:
6569: # Do not use the global_symbol_pipe unless it works.
6570: if test "$pipe_works" = yes; then
6571: break
6572: else
6573: lt_cv_sys_global_symbol_pipe=
6574: fi
6575: done
6576:
6577: fi
6578:
6579: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6580: lt_cv_sys_global_symbol_to_cdecl=
6581: fi
6582: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6584: $as_echo "failed" >&6; }
6585: else
6586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6587: $as_echo "ok" >&6; }
6588: fi
6589:
1.1.1.2 misho 6590: # Response file support.
6591: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6592: nm_file_list_spec='@'
6593: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6594: nm_file_list_spec='@'
6595: fi
6596:
6597:
6598:
6599:
6600:
6601:
6602:
6603:
6604:
6605:
6606:
6607:
6608:
1.1 misho 6609:
6610:
6611:
6612:
6613:
6614:
6615:
6616:
6617:
6618:
6619:
6620:
6621:
6622:
1.1.1.2 misho 6623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6624: $as_echo_n "checking for sysroot... " >&6; }
1.1 misho 6625:
1.1.1.2 misho 6626: # Check whether --with-sysroot was given.
6627: if test "${with_sysroot+set}" = set; then :
6628: withval=$with_sysroot;
6629: else
6630: with_sysroot=no
6631: fi
6632:
6633:
6634: lt_sysroot=
6635: case ${with_sysroot} in #(
6636: yes)
6637: if test "$GCC" = yes; then
6638: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6639: fi
6640: ;; #(
6641: /*)
6642: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6643: ;; #(
6644: no|'')
6645: ;; #(
6646: *)
6647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6648: $as_echo "${with_sysroot}" >&6; }
6649: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6650: ;;
6651: esac
1.1 misho 6652:
1.1.1.2 misho 6653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6654: $as_echo "${lt_sysroot:-no}" >&6; }
1.1 misho 6655:
6656:
6657:
6658:
6659:
6660: # Check whether --enable-libtool-lock was given.
6661: if test "${enable_libtool_lock+set}" = set; then :
6662: enableval=$enable_libtool_lock;
6663: fi
6664:
6665: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6666:
6667: # Some flags need to be propagated to the compiler or linker for good
6668: # libtool support.
6669: case $host in
6670: ia64-*-hpux*)
6671: # Find out which ABI we are using.
6672: echo 'int i;' > conftest.$ac_ext
6673: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674: (eval $ac_compile) 2>&5
6675: ac_status=$?
6676: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677: test $ac_status = 0; }; then
6678: case `/usr/bin/file conftest.$ac_objext` in
6679: *ELF-32*)
6680: HPUX_IA64_MODE="32"
6681: ;;
6682: *ELF-64*)
6683: HPUX_IA64_MODE="64"
6684: ;;
6685: esac
6686: fi
6687: rm -rf conftest*
6688: ;;
6689: *-*-irix6*)
6690: # Find out which ABI we are using.
1.1.1.2 misho 6691: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.1 misho 6692: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693: (eval $ac_compile) 2>&5
6694: ac_status=$?
6695: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696: test $ac_status = 0; }; then
6697: if test "$lt_cv_prog_gnu_ld" = yes; then
6698: case `/usr/bin/file conftest.$ac_objext` in
6699: *32-bit*)
6700: LD="${LD-ld} -melf32bsmip"
6701: ;;
6702: *N32*)
6703: LD="${LD-ld} -melf32bmipn32"
6704: ;;
6705: *64-bit*)
6706: LD="${LD-ld} -melf64bmip"
6707: ;;
6708: esac
6709: else
6710: case `/usr/bin/file conftest.$ac_objext` in
6711: *32-bit*)
6712: LD="${LD-ld} -32"
6713: ;;
6714: *N32*)
6715: LD="${LD-ld} -n32"
6716: ;;
6717: *64-bit*)
6718: LD="${LD-ld} -64"
6719: ;;
6720: esac
6721: fi
6722: fi
6723: rm -rf conftest*
6724: ;;
6725:
6726: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6727: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6728: # Find out which ABI we are using.
6729: echo 'int i;' > conftest.$ac_ext
6730: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731: (eval $ac_compile) 2>&5
6732: ac_status=$?
6733: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734: test $ac_status = 0; }; then
6735: case `/usr/bin/file conftest.o` in
6736: *32-bit*)
6737: case $host in
6738: x86_64-*kfreebsd*-gnu)
6739: LD="${LD-ld} -m elf_i386_fbsd"
6740: ;;
6741: x86_64-*linux*)
6742: LD="${LD-ld} -m elf_i386"
6743: ;;
6744: ppc64-*linux*|powerpc64-*linux*)
6745: LD="${LD-ld} -m elf32ppclinux"
6746: ;;
6747: s390x-*linux*)
6748: LD="${LD-ld} -m elf_s390"
6749: ;;
6750: sparc64-*linux*)
6751: LD="${LD-ld} -m elf32_sparc"
6752: ;;
6753: esac
6754: ;;
6755: *64-bit*)
6756: case $host in
6757: x86_64-*kfreebsd*-gnu)
6758: LD="${LD-ld} -m elf_x86_64_fbsd"
6759: ;;
6760: x86_64-*linux*)
6761: LD="${LD-ld} -m elf_x86_64"
6762: ;;
6763: ppc*-*linux*|powerpc*-*linux*)
6764: LD="${LD-ld} -m elf64ppc"
6765: ;;
6766: s390*-*linux*|s390*-*tpf*)
6767: LD="${LD-ld} -m elf64_s390"
6768: ;;
6769: sparc*-*linux*)
6770: LD="${LD-ld} -m elf64_sparc"
6771: ;;
6772: esac
6773: ;;
6774: esac
6775: fi
1.1.1.2 misho 6776: rm -rf conftest*
6777: ;;
6778:
6779: *-*-sco3.2v5*)
6780: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6781: SAVE_CFLAGS="$CFLAGS"
6782: CFLAGS="$CFLAGS -belf"
6783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6784: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6785: if ${lt_cv_cc_needs_belf+:} false; then :
6786: $as_echo_n "(cached) " >&6
6787: else
6788: ac_ext=c
6789: ac_cpp='$CPP $CPPFLAGS'
6790: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6793:
6794: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795: /* end confdefs.h. */
6796:
6797: int
6798: main ()
6799: {
6800:
6801: ;
6802: return 0;
6803: }
6804: _ACEOF
6805: if ac_fn_c_try_link "$LINENO"; then :
6806: lt_cv_cc_needs_belf=yes
6807: else
6808: lt_cv_cc_needs_belf=no
6809: fi
6810: rm -f core conftest.err conftest.$ac_objext \
6811: conftest$ac_exeext conftest.$ac_ext
6812: ac_ext=c
6813: ac_cpp='$CPP $CPPFLAGS'
6814: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6815: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6816: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6817:
6818: fi
6819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6820: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6821: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6822: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6823: CFLAGS="$SAVE_CFLAGS"
6824: fi
6825: ;;
6826: *-*solaris*)
6827: # Find out which ABI we are using.
6828: echo 'int i;' > conftest.$ac_ext
6829: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830: (eval $ac_compile) 2>&5
6831: ac_status=$?
6832: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833: test $ac_status = 0; }; then
6834: case `/usr/bin/file conftest.o` in
6835: *64-bit*)
6836: case $lt_cv_prog_gnu_ld in
6837: yes*)
6838: case $host in
6839: i?86-*-solaris*)
6840: LD="${LD-ld} -m elf_x86_64"
6841: ;;
6842: sparc*-*-solaris*)
6843: LD="${LD-ld} -m elf64_sparc"
6844: ;;
6845: esac
6846: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6847: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6848: LD="${LD-ld}_sol2"
6849: fi
6850: ;;
6851: *)
6852: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6853: LD="${LD-ld} -64"
6854: fi
6855: ;;
6856: esac
6857: ;;
6858: esac
6859: fi
6860: rm -rf conftest*
6861: ;;
6862: esac
6863:
6864: need_locks="$enable_libtool_lock"
6865:
6866: if test -n "$ac_tool_prefix"; then
6867: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6868: set dummy ${ac_tool_prefix}mt; ac_word=$2
6869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870: $as_echo_n "checking for $ac_word... " >&6; }
6871: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6872: $as_echo_n "(cached) " >&6
6873: else
6874: if test -n "$MANIFEST_TOOL"; then
6875: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6876: else
6877: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878: for as_dir in $PATH
6879: do
6880: IFS=$as_save_IFS
6881: test -z "$as_dir" && as_dir=.
6882: for ac_exec_ext in '' $ac_executable_extensions; do
6883: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6885: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886: break 2
6887: fi
6888: done
6889: done
6890: IFS=$as_save_IFS
6891:
6892: fi
6893: fi
6894: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6895: if test -n "$MANIFEST_TOOL"; then
6896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6897: $as_echo "$MANIFEST_TOOL" >&6; }
6898: else
6899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900: $as_echo "no" >&6; }
6901: fi
6902:
6903:
6904: fi
6905: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6906: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6907: # Extract the first word of "mt", so it can be a program name with args.
6908: set dummy mt; ac_word=$2
6909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910: $as_echo_n "checking for $ac_word... " >&6; }
6911: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6912: $as_echo_n "(cached) " >&6
6913: else
6914: if test -n "$ac_ct_MANIFEST_TOOL"; then
6915: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6916: else
6917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918: for as_dir in $PATH
6919: do
6920: IFS=$as_save_IFS
6921: test -z "$as_dir" && as_dir=.
6922: for ac_exec_ext in '' $ac_executable_extensions; do
6923: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6925: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926: break 2
6927: fi
6928: done
6929: done
6930: IFS=$as_save_IFS
6931:
6932: fi
6933: fi
6934: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6935: if test -n "$ac_ct_MANIFEST_TOOL"; then
6936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6937: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6938: else
6939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940: $as_echo "no" >&6; }
6941: fi
6942:
6943: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6944: MANIFEST_TOOL=":"
6945: else
6946: case $cross_compiling:$ac_tool_warned in
6947: yes:)
6948: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950: ac_tool_warned=yes ;;
6951: esac
6952: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6953: fi
6954: else
6955: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6956: fi
1.1 misho 6957:
1.1.1.2 misho 6958: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6960: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6961: if ${lt_cv_path_mainfest_tool+:} false; then :
1.1 misho 6962: $as_echo_n "(cached) " >&6
6963: else
1.1.1.2 misho 6964: lt_cv_path_mainfest_tool=no
6965: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6966: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6967: cat conftest.err >&5
6968: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6969: lt_cv_path_mainfest_tool=yes
6970: fi
6971: rm -f conftest*
6972: fi
6973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6974: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6975: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6976: MANIFEST_TOOL=:
6977: fi
1.1 misho 6978:
6979:
6980:
6981:
6982:
6983:
6984: case $host_os in
6985: rhapsody* | darwin*)
6986: if test -n "$ac_tool_prefix"; then
6987: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6988: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6991: if ${ac_cv_prog_DSYMUTIL+:} false; then :
1.1 misho 6992: $as_echo_n "(cached) " >&6
6993: else
6994: if test -n "$DSYMUTIL"; then
6995: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6996: else
6997: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998: for as_dir in $PATH
6999: do
7000: IFS=$as_save_IFS
7001: test -z "$as_dir" && as_dir=.
7002: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7003: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7004: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7005: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006: break 2
7007: fi
7008: done
7009: done
7010: IFS=$as_save_IFS
7011:
7012: fi
7013: fi
7014: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7015: if test -n "$DSYMUTIL"; then
7016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7017: $as_echo "$DSYMUTIL" >&6; }
7018: else
7019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020: $as_echo "no" >&6; }
7021: fi
7022:
7023:
7024: fi
7025: if test -z "$ac_cv_prog_DSYMUTIL"; then
7026: ac_ct_DSYMUTIL=$DSYMUTIL
7027: # Extract the first word of "dsymutil", so it can be a program name with args.
7028: set dummy dsymutil; ac_word=$2
7029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7031: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
1.1 misho 7032: $as_echo_n "(cached) " >&6
7033: else
7034: if test -n "$ac_ct_DSYMUTIL"; then
7035: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7036: else
7037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038: for as_dir in $PATH
7039: do
7040: IFS=$as_save_IFS
7041: test -z "$as_dir" && as_dir=.
7042: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7043: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7044: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7045: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046: break 2
7047: fi
7048: done
7049: done
7050: IFS=$as_save_IFS
7051:
7052: fi
7053: fi
7054: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7055: if test -n "$ac_ct_DSYMUTIL"; then
7056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7057: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7058: else
7059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060: $as_echo "no" >&6; }
7061: fi
7062:
7063: if test "x$ac_ct_DSYMUTIL" = x; then
7064: DSYMUTIL=":"
7065: else
7066: case $cross_compiling:$ac_tool_warned in
7067: yes:)
7068: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070: ac_tool_warned=yes ;;
7071: esac
7072: DSYMUTIL=$ac_ct_DSYMUTIL
7073: fi
7074: else
7075: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7076: fi
7077:
7078: if test -n "$ac_tool_prefix"; then
7079: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7080: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7083: if ${ac_cv_prog_NMEDIT+:} false; then :
1.1 misho 7084: $as_echo_n "(cached) " >&6
7085: else
7086: if test -n "$NMEDIT"; then
7087: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7088: else
7089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090: for as_dir in $PATH
7091: do
7092: IFS=$as_save_IFS
7093: test -z "$as_dir" && as_dir=.
7094: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7095: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7096: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7097: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098: break 2
7099: fi
7100: done
7101: done
7102: IFS=$as_save_IFS
7103:
7104: fi
7105: fi
7106: NMEDIT=$ac_cv_prog_NMEDIT
7107: if test -n "$NMEDIT"; then
7108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7109: $as_echo "$NMEDIT" >&6; }
7110: else
7111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112: $as_echo "no" >&6; }
7113: fi
7114:
7115:
7116: fi
7117: if test -z "$ac_cv_prog_NMEDIT"; then
7118: ac_ct_NMEDIT=$NMEDIT
7119: # Extract the first word of "nmedit", so it can be a program name with args.
7120: set dummy nmedit; ac_word=$2
7121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7123: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
1.1 misho 7124: $as_echo_n "(cached) " >&6
7125: else
7126: if test -n "$ac_ct_NMEDIT"; then
7127: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7128: else
7129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130: for as_dir in $PATH
7131: do
7132: IFS=$as_save_IFS
7133: test -z "$as_dir" && as_dir=.
7134: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7135: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7136: ac_cv_prog_ac_ct_NMEDIT="nmedit"
7137: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138: break 2
7139: fi
7140: done
7141: done
7142: IFS=$as_save_IFS
7143:
7144: fi
7145: fi
7146: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7147: if test -n "$ac_ct_NMEDIT"; then
7148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7149: $as_echo "$ac_ct_NMEDIT" >&6; }
7150: else
7151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152: $as_echo "no" >&6; }
7153: fi
7154:
7155: if test "x$ac_ct_NMEDIT" = x; then
7156: NMEDIT=":"
7157: else
7158: case $cross_compiling:$ac_tool_warned in
7159: yes:)
7160: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162: ac_tool_warned=yes ;;
7163: esac
7164: NMEDIT=$ac_ct_NMEDIT
7165: fi
7166: else
7167: NMEDIT="$ac_cv_prog_NMEDIT"
7168: fi
7169:
7170: if test -n "$ac_tool_prefix"; then
7171: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7172: set dummy ${ac_tool_prefix}lipo; ac_word=$2
7173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7175: if ${ac_cv_prog_LIPO+:} false; then :
1.1 misho 7176: $as_echo_n "(cached) " >&6
7177: else
7178: if test -n "$LIPO"; then
7179: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7180: else
7181: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182: for as_dir in $PATH
7183: do
7184: IFS=$as_save_IFS
7185: test -z "$as_dir" && as_dir=.
7186: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7187: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7188: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7189: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190: break 2
7191: fi
7192: done
7193: done
7194: IFS=$as_save_IFS
7195:
7196: fi
7197: fi
7198: LIPO=$ac_cv_prog_LIPO
7199: if test -n "$LIPO"; then
7200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7201: $as_echo "$LIPO" >&6; }
7202: else
7203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204: $as_echo "no" >&6; }
7205: fi
7206:
7207:
7208: fi
7209: if test -z "$ac_cv_prog_LIPO"; then
7210: ac_ct_LIPO=$LIPO
7211: # Extract the first word of "lipo", so it can be a program name with args.
7212: set dummy lipo; ac_word=$2
7213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7215: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
1.1 misho 7216: $as_echo_n "(cached) " >&6
7217: else
7218: if test -n "$ac_ct_LIPO"; then
7219: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7220: else
7221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222: for as_dir in $PATH
7223: do
7224: IFS=$as_save_IFS
7225: test -z "$as_dir" && as_dir=.
7226: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7227: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7228: ac_cv_prog_ac_ct_LIPO="lipo"
7229: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230: break 2
7231: fi
7232: done
7233: done
7234: IFS=$as_save_IFS
7235:
7236: fi
7237: fi
7238: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7239: if test -n "$ac_ct_LIPO"; then
7240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7241: $as_echo "$ac_ct_LIPO" >&6; }
7242: else
7243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244: $as_echo "no" >&6; }
7245: fi
7246:
7247: if test "x$ac_ct_LIPO" = x; then
7248: LIPO=":"
7249: else
7250: case $cross_compiling:$ac_tool_warned in
7251: yes:)
7252: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254: ac_tool_warned=yes ;;
7255: esac
7256: LIPO=$ac_ct_LIPO
7257: fi
7258: else
7259: LIPO="$ac_cv_prog_LIPO"
7260: fi
7261:
7262: if test -n "$ac_tool_prefix"; then
7263: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7264: set dummy ${ac_tool_prefix}otool; ac_word=$2
7265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7267: if ${ac_cv_prog_OTOOL+:} false; then :
1.1 misho 7268: $as_echo_n "(cached) " >&6
7269: else
7270: if test -n "$OTOOL"; then
7271: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7272: else
7273: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274: for as_dir in $PATH
7275: do
7276: IFS=$as_save_IFS
7277: test -z "$as_dir" && as_dir=.
7278: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7279: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7280: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7281: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282: break 2
7283: fi
7284: done
7285: done
7286: IFS=$as_save_IFS
7287:
7288: fi
7289: fi
7290: OTOOL=$ac_cv_prog_OTOOL
7291: if test -n "$OTOOL"; then
7292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7293: $as_echo "$OTOOL" >&6; }
7294: else
7295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296: $as_echo "no" >&6; }
7297: fi
7298:
7299:
7300: fi
7301: if test -z "$ac_cv_prog_OTOOL"; then
7302: ac_ct_OTOOL=$OTOOL
7303: # Extract the first word of "otool", so it can be a program name with args.
7304: set dummy otool; ac_word=$2
7305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7307: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
1.1 misho 7308: $as_echo_n "(cached) " >&6
7309: else
7310: if test -n "$ac_ct_OTOOL"; then
7311: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7312: else
7313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314: for as_dir in $PATH
7315: do
7316: IFS=$as_save_IFS
7317: test -z "$as_dir" && as_dir=.
7318: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7319: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7320: ac_cv_prog_ac_ct_OTOOL="otool"
7321: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322: break 2
7323: fi
7324: done
7325: done
7326: IFS=$as_save_IFS
7327:
7328: fi
7329: fi
7330: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7331: if test -n "$ac_ct_OTOOL"; then
7332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7333: $as_echo "$ac_ct_OTOOL" >&6; }
7334: else
7335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336: $as_echo "no" >&6; }
7337: fi
7338:
7339: if test "x$ac_ct_OTOOL" = x; then
7340: OTOOL=":"
7341: else
7342: case $cross_compiling:$ac_tool_warned in
7343: yes:)
7344: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346: ac_tool_warned=yes ;;
7347: esac
7348: OTOOL=$ac_ct_OTOOL
7349: fi
7350: else
7351: OTOOL="$ac_cv_prog_OTOOL"
7352: fi
7353:
7354: if test -n "$ac_tool_prefix"; then
7355: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7356: set dummy ${ac_tool_prefix}otool64; ac_word=$2
7357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7359: if ${ac_cv_prog_OTOOL64+:} false; then :
1.1 misho 7360: $as_echo_n "(cached) " >&6
7361: else
7362: if test -n "$OTOOL64"; then
7363: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7364: else
7365: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366: for as_dir in $PATH
7367: do
7368: IFS=$as_save_IFS
7369: test -z "$as_dir" && as_dir=.
7370: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7371: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7372: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7373: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374: break 2
7375: fi
7376: done
7377: done
7378: IFS=$as_save_IFS
7379:
7380: fi
7381: fi
7382: OTOOL64=$ac_cv_prog_OTOOL64
7383: if test -n "$OTOOL64"; then
7384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7385: $as_echo "$OTOOL64" >&6; }
7386: else
7387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388: $as_echo "no" >&6; }
7389: fi
7390:
7391:
7392: fi
7393: if test -z "$ac_cv_prog_OTOOL64"; then
7394: ac_ct_OTOOL64=$OTOOL64
7395: # Extract the first word of "otool64", so it can be a program name with args.
7396: set dummy otool64; ac_word=$2
7397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7399: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
1.1 misho 7400: $as_echo_n "(cached) " >&6
7401: else
7402: if test -n "$ac_ct_OTOOL64"; then
7403: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7404: else
7405: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406: for as_dir in $PATH
7407: do
7408: IFS=$as_save_IFS
7409: test -z "$as_dir" && as_dir=.
7410: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 7411: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7412: ac_cv_prog_ac_ct_OTOOL64="otool64"
7413: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414: break 2
7415: fi
7416: done
7417: done
7418: IFS=$as_save_IFS
7419:
7420: fi
7421: fi
7422: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7423: if test -n "$ac_ct_OTOOL64"; then
7424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7425: $as_echo "$ac_ct_OTOOL64" >&6; }
7426: else
7427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428: $as_echo "no" >&6; }
7429: fi
7430:
7431: if test "x$ac_ct_OTOOL64" = x; then
7432: OTOOL64=":"
7433: else
7434: case $cross_compiling:$ac_tool_warned in
7435: yes:)
7436: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438: ac_tool_warned=yes ;;
7439: esac
7440: OTOOL64=$ac_ct_OTOOL64
7441: fi
7442: else
7443: OTOOL64="$ac_cv_prog_OTOOL64"
7444: fi
7445:
7446:
7447:
7448:
7449:
7450:
7451:
7452:
7453:
7454:
7455:
7456:
7457:
7458:
7459:
7460:
7461:
7462:
7463:
7464:
7465:
7466:
7467:
7468:
7469:
7470:
7471:
7472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7473: $as_echo_n "checking for -single_module linker flag... " >&6; }
1.1.1.2 misho 7474: if ${lt_cv_apple_cc_single_mod+:} false; then :
1.1 misho 7475: $as_echo_n "(cached) " >&6
7476: else
7477: lt_cv_apple_cc_single_mod=no
7478: if test -z "${LT_MULTI_MODULE}"; then
7479: # By default we will add the -single_module flag. You can override
7480: # by either setting the environment variable LT_MULTI_MODULE
7481: # non-empty at configure time, or by adding -multi_module to the
7482: # link flags.
7483: rm -rf libconftest.dylib*
7484: echo "int foo(void){return 1;}" > conftest.c
7485: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7486: -dynamiclib -Wl,-single_module conftest.c" >&5
7487: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7488: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7489: _lt_result=$?
1.1.1.2 misho 7490: # If there is a non-empty error log, and "single_module"
7491: # appears in it, assume the flag caused a linker warning
7492: if test -s conftest.err && $GREP single_module conftest.err; then
7493: cat conftest.err >&5
7494: # Otherwise, if the output was created with a 0 exit code from
7495: # the compiler, it worked.
7496: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1.1 misho 7497: lt_cv_apple_cc_single_mod=yes
7498: else
7499: cat conftest.err >&5
7500: fi
7501: rm -rf libconftest.dylib*
7502: rm -f conftest.*
7503: fi
7504: fi
7505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7506: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.2 misho 7507:
1.1 misho 7508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7509: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
1.1.1.2 misho 7510: if ${lt_cv_ld_exported_symbols_list+:} false; then :
1.1 misho 7511: $as_echo_n "(cached) " >&6
7512: else
7513: lt_cv_ld_exported_symbols_list=no
7514: save_LDFLAGS=$LDFLAGS
7515: echo "_main" > conftest.sym
7516: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518: /* end confdefs.h. */
7519:
7520: int
7521: main ()
7522: {
7523:
7524: ;
7525: return 0;
7526: }
7527: _ACEOF
7528: if ac_fn_c_try_link "$LINENO"; then :
7529: lt_cv_ld_exported_symbols_list=yes
7530: else
7531: lt_cv_ld_exported_symbols_list=no
7532: fi
7533: rm -f core conftest.err conftest.$ac_objext \
7534: conftest$ac_exeext conftest.$ac_ext
7535: LDFLAGS="$save_LDFLAGS"
7536:
7537: fi
7538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7539: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.2 misho 7540:
7541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7542: $as_echo_n "checking for -force_load linker flag... " >&6; }
7543: if ${lt_cv_ld_force_load+:} false; then :
7544: $as_echo_n "(cached) " >&6
7545: else
7546: lt_cv_ld_force_load=no
7547: cat > conftest.c << _LT_EOF
7548: int forced_loaded() { return 2;}
7549: _LT_EOF
7550: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7551: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7552: echo "$AR cru libconftest.a conftest.o" >&5
7553: $AR cru libconftest.a conftest.o 2>&5
7554: echo "$RANLIB libconftest.a" >&5
7555: $RANLIB libconftest.a 2>&5
7556: cat > conftest.c << _LT_EOF
7557: int main() { return 0;}
7558: _LT_EOF
7559: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7560: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7561: _lt_result=$?
7562: if test -s conftest.err && $GREP force_load conftest.err; then
7563: cat conftest.err >&5
7564: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7565: lt_cv_ld_force_load=yes
7566: else
7567: cat conftest.err >&5
7568: fi
7569: rm -f conftest.err libconftest.a conftest conftest.c
7570: rm -rf conftest.dSYM
7571:
7572: fi
7573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7574: $as_echo "$lt_cv_ld_force_load" >&6; }
1.1 misho 7575: case $host_os in
7576: rhapsody* | darwin1.[012])
7577: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7578: darwin1.*)
7579: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7580: darwin*) # darwin 5.x on
7581: # if running on 10.5 or later, the deployment target defaults
7582: # to the OS version, if on x86, and 10.4, the deployment
7583: # target defaults to 10.4. Don't you love it?
7584: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7585: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7586: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7587: 10.[012]*)
7588: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7589: 10.*)
7590: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591: esac
7592: ;;
7593: esac
7594: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7595: _lt_dar_single_mod='$single_module'
7596: fi
7597: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7598: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7599: else
7600: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7601: fi
1.1.1.2 misho 7602: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1.1 misho 7603: _lt_dsymutil='~$DSYMUTIL $lib || :'
7604: else
7605: _lt_dsymutil=
7606: fi
7607: ;;
7608: esac
7609:
7610: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7611: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7612: inttypes.h stdint.h unistd.h
7613: do :
7614: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7615: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7616: "
7617: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7618: cat >>confdefs.h <<_ACEOF
7619: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620: _ACEOF
7621:
7622: fi
7623:
7624: done
7625:
7626:
7627: for ac_header in dlfcn.h
7628: do :
7629: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7630: "
1.1.1.2 misho 7631: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.1 misho 7632: cat >>confdefs.h <<_ACEOF
7633: #define HAVE_DLFCN_H 1
7634: _ACEOF
7635:
7636: fi
7637:
7638: done
7639:
7640:
7641:
1.1.1.2 misho 7642:
7643:
1.1 misho 7644: # Set options
7645:
7646:
7647:
7648: enable_dlopen=no
7649:
7650:
7651: enable_win32_dll=no
7652:
7653:
7654:
7655: # Check whether --enable-static was given.
7656: if test "${enable_static+set}" = set; then :
7657: enableval=$enable_static; p=${PACKAGE-default}
7658: case $enableval in
7659: yes) enable_static=yes ;;
7660: no) enable_static=no ;;
7661: *)
7662: enable_static=no
7663: # Look at the argument we got. We use all the common list separators.
7664: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7665: for pkg in $enableval; do
7666: IFS="$lt_save_ifs"
7667: if test "X$pkg" = "X$p"; then
7668: enable_static=yes
7669: fi
7670: done
7671: IFS="$lt_save_ifs"
7672: ;;
7673: esac
7674: else
7675: enable_static=yes
7676: fi
7677:
7678:
7679:
7680:
7681:
7682:
7683:
7684:
7685:
7686:
7687: # Check whether --with-pic was given.
7688: if test "${with_pic+set}" = set; then :
1.1.1.2 misho 7689: withval=$with_pic; lt_p=${PACKAGE-default}
7690: case $withval in
7691: yes|no) pic_mode=$withval ;;
7692: *)
7693: pic_mode=default
7694: # Look at the argument we got. We use all the common list separators.
7695: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7696: for lt_pkg in $withval; do
7697: IFS="$lt_save_ifs"
7698: if test "X$lt_pkg" = "X$lt_p"; then
7699: pic_mode=yes
7700: fi
7701: done
7702: IFS="$lt_save_ifs"
7703: ;;
7704: esac
1.1 misho 7705: else
7706: pic_mode=default
7707: fi
7708:
7709:
7710: test -z "$pic_mode" && pic_mode=default
7711:
7712:
7713:
7714:
7715:
7716:
7717:
7718: # Check whether --enable-fast-install was given.
7719: if test "${enable_fast_install+set}" = set; then :
7720: enableval=$enable_fast_install; p=${PACKAGE-default}
7721: case $enableval in
7722: yes) enable_fast_install=yes ;;
7723: no) enable_fast_install=no ;;
7724: *)
7725: enable_fast_install=no
7726: # Look at the argument we got. We use all the common list separators.
7727: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7728: for pkg in $enableval; do
7729: IFS="$lt_save_ifs"
7730: if test "X$pkg" = "X$p"; then
7731: enable_fast_install=yes
7732: fi
7733: done
7734: IFS="$lt_save_ifs"
7735: ;;
7736: esac
7737: else
7738: enable_fast_install=yes
7739: fi
7740:
7741:
7742:
7743:
7744:
7745:
7746:
7747:
7748:
7749:
7750:
7751: # This can be used to rebuild libtool when needed
7752: LIBTOOL_DEPS="$ltmain"
7753:
7754: # Always use our own libtool.
1.1.1.2 misho 7755: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7756:
7757:
7758:
7759:
7760:
1.1 misho 7761:
7762:
7763:
7764:
7765:
7766:
7767:
7768:
7769:
7770:
7771:
7772:
7773:
7774:
7775:
7776:
7777:
7778:
7779:
7780:
7781:
7782:
7783:
7784:
7785:
7786: test -z "$LN_S" && LN_S="ln -s"
7787:
7788:
7789:
7790:
7791:
7792:
7793:
7794:
7795:
7796:
7797:
7798:
7799:
7800:
7801: if test -n "${ZSH_VERSION+set}" ; then
7802: setopt NO_GLOB_SUBST
7803: fi
7804:
7805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7806: $as_echo_n "checking for objdir... " >&6; }
1.1.1.2 misho 7807: if ${lt_cv_objdir+:} false; then :
1.1 misho 7808: $as_echo_n "(cached) " >&6
7809: else
7810: rm -f .libs 2>/dev/null
7811: mkdir .libs 2>/dev/null
7812: if test -d .libs; then
7813: lt_cv_objdir=.libs
7814: else
7815: # MS-DOS does not allow filenames that begin with a dot.
7816: lt_cv_objdir=_libs
7817: fi
7818: rmdir .libs 2>/dev/null
7819: fi
7820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7821: $as_echo "$lt_cv_objdir" >&6; }
7822: objdir=$lt_cv_objdir
7823:
7824:
7825:
7826:
7827:
7828: cat >>confdefs.h <<_ACEOF
7829: #define LT_OBJDIR "$lt_cv_objdir/"
7830: _ACEOF
7831:
7832:
7833:
7834:
7835: case $host_os in
7836: aix3*)
7837: # AIX sometimes has problems with the GCC collect2 program. For some
7838: # reason, if we set the COLLECT_NAMES environment variable, the problems
7839: # vanish in a puff of smoke.
7840: if test "X${COLLECT_NAMES+set}" != Xset; then
7841: COLLECT_NAMES=
7842: export COLLECT_NAMES
7843: fi
7844: ;;
7845: esac
7846:
7847: # Global variables:
7848: ofile=libtool
7849: can_build_shared=yes
7850:
7851: # All known linkers require a `.a' archive for static linking (except MSVC,
7852: # which needs '.lib').
7853: libext=a
7854:
7855: with_gnu_ld="$lt_cv_prog_gnu_ld"
7856:
7857: old_CC="$CC"
7858: old_CFLAGS="$CFLAGS"
7859:
7860: # Set sane defaults for various variables
7861: test -z "$CC" && CC=cc
7862: test -z "$LTCC" && LTCC=$CC
7863: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7864: test -z "$LD" && LD=ld
7865: test -z "$ac_objext" && ac_objext=o
7866:
7867: for cc_temp in $compiler""; do
7868: case $cc_temp in
7869: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7870: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7871: \-*) ;;
7872: *) break;;
7873: esac
7874: done
1.1.1.2 misho 7875: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misho 7876:
7877:
7878: # Only perform the check for file, if the check method requires it
7879: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7880: case $deplibs_check_method in
7881: file_magic*)
7882: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7884: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
1.1.1.2 misho 7885: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 7886: $as_echo_n "(cached) " >&6
7887: else
7888: case $MAGIC_CMD in
7889: [\\/*] | ?:[\\/]*)
7890: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7891: ;;
7892: *)
7893: lt_save_MAGIC_CMD="$MAGIC_CMD"
7894: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7895: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7896: for ac_dir in $ac_dummy; do
7897: IFS="$lt_save_ifs"
7898: test -z "$ac_dir" && ac_dir=.
7899: if test -f $ac_dir/${ac_tool_prefix}file; then
7900: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7901: if test -n "$file_magic_test_file"; then
7902: case $deplibs_check_method in
7903: "file_magic "*)
7904: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7905: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7907: $EGREP "$file_magic_regex" > /dev/null; then
7908: :
7909: else
7910: cat <<_LT_EOF 1>&2
7911:
7912: *** Warning: the command libtool uses to detect shared libraries,
7913: *** $file_magic_cmd, produces output that libtool cannot recognize.
7914: *** The result is that libtool may fail to recognize shared libraries
7915: *** as such. This will affect the creation of libtool libraries that
7916: *** depend on shared libraries, but programs linked with such libtool
7917: *** libraries will work regardless of this problem. Nevertheless, you
7918: *** may want to report the problem to your system manager and/or to
7919: *** bug-libtool@gnu.org
7920:
7921: _LT_EOF
7922: fi ;;
7923: esac
7924: fi
7925: break
7926: fi
7927: done
7928: IFS="$lt_save_ifs"
7929: MAGIC_CMD="$lt_save_MAGIC_CMD"
7930: ;;
7931: esac
7932: fi
7933:
7934: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935: if test -n "$MAGIC_CMD"; then
7936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7937: $as_echo "$MAGIC_CMD" >&6; }
7938: else
7939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940: $as_echo "no" >&6; }
7941: fi
7942:
7943:
7944:
7945:
7946:
7947: if test -z "$lt_cv_path_MAGIC_CMD"; then
7948: if test -n "$ac_tool_prefix"; then
7949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7950: $as_echo_n "checking for file... " >&6; }
1.1.1.2 misho 7951: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 7952: $as_echo_n "(cached) " >&6
7953: else
7954: case $MAGIC_CMD in
7955: [\\/*] | ?:[\\/]*)
7956: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7957: ;;
7958: *)
7959: lt_save_MAGIC_CMD="$MAGIC_CMD"
7960: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7961: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7962: for ac_dir in $ac_dummy; do
7963: IFS="$lt_save_ifs"
7964: test -z "$ac_dir" && ac_dir=.
7965: if test -f $ac_dir/file; then
7966: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7967: if test -n "$file_magic_test_file"; then
7968: case $deplibs_check_method in
7969: "file_magic "*)
7970: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7971: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7973: $EGREP "$file_magic_regex" > /dev/null; then
7974: :
7975: else
7976: cat <<_LT_EOF 1>&2
7977:
7978: *** Warning: the command libtool uses to detect shared libraries,
7979: *** $file_magic_cmd, produces output that libtool cannot recognize.
7980: *** The result is that libtool may fail to recognize shared libraries
7981: *** as such. This will affect the creation of libtool libraries that
7982: *** depend on shared libraries, but programs linked with such libtool
7983: *** libraries will work regardless of this problem. Nevertheless, you
7984: *** may want to report the problem to your system manager and/or to
7985: *** bug-libtool@gnu.org
7986:
7987: _LT_EOF
7988: fi ;;
7989: esac
7990: fi
7991: break
7992: fi
7993: done
7994: IFS="$lt_save_ifs"
7995: MAGIC_CMD="$lt_save_MAGIC_CMD"
7996: ;;
7997: esac
7998: fi
7999:
8000: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001: if test -n "$MAGIC_CMD"; then
8002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8003: $as_echo "$MAGIC_CMD" >&6; }
8004: else
8005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006: $as_echo "no" >&6; }
8007: fi
8008:
8009:
8010: else
8011: MAGIC_CMD=:
8012: fi
8013: fi
8014:
8015: fi
8016: ;;
8017: esac
8018:
8019: # Use C for the default configuration in the libtool script
8020:
8021: lt_save_CC="$CC"
8022: ac_ext=c
8023: ac_cpp='$CPP $CPPFLAGS'
8024: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027:
8028:
8029: # Source file extension for C test sources.
8030: ac_ext=c
8031:
8032: # Object file extension for compiled C test sources.
8033: objext=o
8034: objext=$objext
8035:
8036: # Code to be used in simple compile tests
8037: lt_simple_compile_test_code="int some_variable = 0;"
8038:
8039: # Code to be used in simple link tests
8040: lt_simple_link_test_code='int main(){return(0);}'
8041:
8042:
8043:
8044:
8045:
8046:
8047:
8048: # If no C compiler was specified, use CC.
8049: LTCC=${LTCC-"$CC"}
8050:
8051: # If no C compiler flags were specified, use CFLAGS.
8052: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8053:
8054: # Allow CC to be a program name with arguments.
8055: compiler=$CC
8056:
8057: # Save the default compiler, since it gets overwritten when the other
8058: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8059: compiler_DEFAULT=$CC
8060:
8061: # save warnings/boilerplate of simple test code
8062: ac_outfile=conftest.$ac_objext
8063: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8064: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065: _lt_compiler_boilerplate=`cat conftest.err`
8066: $RM conftest*
8067:
8068: ac_outfile=conftest.$ac_objext
8069: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8070: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8071: _lt_linker_boilerplate=`cat conftest.err`
8072: $RM -r conftest*
8073:
8074:
8075: if test -n "$compiler"; then
8076:
8077: lt_prog_compiler_no_builtin_flag=
8078:
8079: if test "$GCC" = yes; then
1.1.1.2 misho 8080: case $cc_basename in
8081: nvcc*)
8082: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8083: *)
8084: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8085: esac
1.1 misho 8086:
8087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8088: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1.1.1.2 misho 8089: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
1.1 misho 8090: $as_echo_n "(cached) " >&6
8091: else
8092: lt_cv_prog_compiler_rtti_exceptions=no
8093: ac_outfile=conftest.$ac_objext
8094: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8095: lt_compiler_flag="-fno-rtti -fno-exceptions"
8096: # Insert the option either (1) after the last *FLAGS variable, or
8097: # (2) before a word containing "conftest.", or (3) at the end.
8098: # Note that $ac_compile itself does not contain backslashes and begins
8099: # with a dollar sign (not a hyphen), so the echo should work correctly.
8100: # The option is referenced via a variable to avoid confusing sed.
8101: lt_compile=`echo "$ac_compile" | $SED \
8102: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8103: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8104: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 8105: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8106: (eval "$lt_compile" 2>conftest.err)
8107: ac_status=$?
8108: cat conftest.err >&5
1.1.1.2 misho 8109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8110: if (exit $ac_status) && test -s "$ac_outfile"; then
8111: # The compiler can only warn and ignore the option if not recognized
8112: # So say no if there are warnings other than the usual output.
1.1.1.2 misho 8113: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1.1 misho 8114: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8116: lt_cv_prog_compiler_rtti_exceptions=yes
8117: fi
8118: fi
8119: $RM conftest*
8120:
8121: fi
8122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8123: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8124:
8125: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8126: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8127: else
8128: :
8129: fi
8130:
8131: fi
8132:
8133:
8134:
8135:
8136:
8137:
8138: lt_prog_compiler_wl=
8139: lt_prog_compiler_pic=
8140: lt_prog_compiler_static=
8141:
8142:
8143: if test "$GCC" = yes; then
8144: lt_prog_compiler_wl='-Wl,'
8145: lt_prog_compiler_static='-static'
8146:
8147: case $host_os in
8148: aix*)
8149: # All AIX code is PIC.
8150: if test "$host_cpu" = ia64; then
8151: # AIX 5 now supports IA64 processor
8152: lt_prog_compiler_static='-Bstatic'
8153: fi
8154: ;;
8155:
8156: amigaos*)
8157: case $host_cpu in
8158: powerpc)
8159: # see comment about AmigaOS4 .so support
8160: lt_prog_compiler_pic='-fPIC'
8161: ;;
8162: m68k)
8163: # FIXME: we need at least 68020 code to build shared libraries, but
8164: # adding the `-m68020' flag to GCC prevents building anything better,
8165: # like `-m68040'.
8166: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8167: ;;
8168: esac
8169: ;;
8170:
8171: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8172: # PIC is the default for these OSes.
8173: ;;
8174:
8175: mingw* | cygwin* | pw32* | os2* | cegcc*)
8176: # This hack is so that the source file can tell whether it is being
8177: # built for inclusion in a dll (and should export symbols for example).
8178: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8179: # (--disable-auto-import) libraries
8180: lt_prog_compiler_pic='-DDLL_EXPORT'
8181: ;;
8182:
8183: darwin* | rhapsody*)
8184: # PIC is the default on this platform
8185: # Common symbols not allowed in MH_DYLIB files
8186: lt_prog_compiler_pic='-fno-common'
8187: ;;
8188:
1.1.1.2 misho 8189: haiku*)
8190: # PIC is the default for Haiku.
8191: # The "-static" flag exists, but is broken.
8192: lt_prog_compiler_static=
8193: ;;
8194:
1.1 misho 8195: hpux*)
8196: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8197: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8198: # sets the default TLS model and affects inlining.
8199: case $host_cpu in
8200: hppa*64*)
8201: # +Z the default
8202: ;;
8203: *)
8204: lt_prog_compiler_pic='-fPIC'
8205: ;;
8206: esac
8207: ;;
8208:
8209: interix[3-9]*)
8210: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8211: # Instead, we relocate shared libraries at runtime.
8212: ;;
8213:
8214: msdosdjgpp*)
8215: # Just because we use GCC doesn't mean we suddenly get shared libraries
8216: # on systems that don't support them.
8217: lt_prog_compiler_can_build_shared=no
8218: enable_shared=no
8219: ;;
8220:
8221: *nto* | *qnx*)
8222: # QNX uses GNU C++, but need to define -shared option too, otherwise
8223: # it will coredump.
8224: lt_prog_compiler_pic='-fPIC -shared'
8225: ;;
8226:
8227: sysv4*MP*)
8228: if test -d /usr/nec; then
8229: lt_prog_compiler_pic=-Kconform_pic
8230: fi
8231: ;;
8232:
8233: *)
8234: lt_prog_compiler_pic='-fPIC'
8235: ;;
8236: esac
1.1.1.2 misho 8237:
8238: case $cc_basename in
8239: nvcc*) # Cuda Compiler Driver 2.2
8240: lt_prog_compiler_wl='-Xlinker '
8241: if test -n "$lt_prog_compiler_pic"; then
8242: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8243: fi
8244: ;;
8245: esac
1.1 misho 8246: else
8247: # PORTME Check for flag to pass linker flags through the system compiler.
8248: case $host_os in
8249: aix*)
8250: lt_prog_compiler_wl='-Wl,'
8251: if test "$host_cpu" = ia64; then
8252: # AIX 5 now supports IA64 processor
8253: lt_prog_compiler_static='-Bstatic'
8254: else
8255: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8256: fi
8257: ;;
8258:
8259: mingw* | cygwin* | pw32* | os2* | cegcc*)
8260: # This hack is so that the source file can tell whether it is being
8261: # built for inclusion in a dll (and should export symbols for example).
8262: lt_prog_compiler_pic='-DDLL_EXPORT'
8263: ;;
8264:
8265: hpux9* | hpux10* | hpux11*)
8266: lt_prog_compiler_wl='-Wl,'
8267: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8268: # not for PA HP-UX.
8269: case $host_cpu in
8270: hppa*64*|ia64*)
8271: # +Z the default
8272: ;;
8273: *)
8274: lt_prog_compiler_pic='+Z'
8275: ;;
8276: esac
8277: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8278: lt_prog_compiler_static='${wl}-a ${wl}archive'
8279: ;;
8280:
8281: irix5* | irix6* | nonstopux*)
8282: lt_prog_compiler_wl='-Wl,'
8283: # PIC (with -KPIC) is the default.
8284: lt_prog_compiler_static='-non_shared'
8285: ;;
8286:
8287: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8288: case $cc_basename in
8289: # old Intel for x86_64 which still supported -KPIC.
8290: ecc*)
8291: lt_prog_compiler_wl='-Wl,'
8292: lt_prog_compiler_pic='-KPIC'
8293: lt_prog_compiler_static='-static'
8294: ;;
8295: # icc used to be incompatible with GCC.
8296: # ICC 10 doesn't accept -KPIC any more.
8297: icc* | ifort*)
8298: lt_prog_compiler_wl='-Wl,'
8299: lt_prog_compiler_pic='-fPIC'
8300: lt_prog_compiler_static='-static'
8301: ;;
8302: # Lahey Fortran 8.1.
8303: lf95*)
8304: lt_prog_compiler_wl='-Wl,'
8305: lt_prog_compiler_pic='--shared'
8306: lt_prog_compiler_static='--static'
8307: ;;
1.1.1.2 misho 8308: nagfor*)
8309: # NAG Fortran compiler
8310: lt_prog_compiler_wl='-Wl,-Wl,,'
8311: lt_prog_compiler_pic='-PIC'
8312: lt_prog_compiler_static='-Bstatic'
8313: ;;
8314: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1.1 misho 8315: # Portland Group compilers (*not* the Pentium gcc compiler,
8316: # which looks to be a dead project)
8317: lt_prog_compiler_wl='-Wl,'
8318: lt_prog_compiler_pic='-fpic'
8319: lt_prog_compiler_static='-Bstatic'
8320: ;;
8321: ccc*)
8322: lt_prog_compiler_wl='-Wl,'
8323: # All Alpha code is PIC.
8324: lt_prog_compiler_static='-non_shared'
8325: ;;
1.1.1.2 misho 8326: xl* | bgxl* | bgf* | mpixl*)
8327: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
1.1 misho 8328: lt_prog_compiler_wl='-Wl,'
8329: lt_prog_compiler_pic='-qpic'
8330: lt_prog_compiler_static='-qstaticlink'
8331: ;;
8332: *)
8333: case `$CC -V 2>&1 | sed 5q` in
1.1.1.2 misho 8334: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8335: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8336: lt_prog_compiler_pic='-KPIC'
8337: lt_prog_compiler_static='-Bstatic'
8338: lt_prog_compiler_wl=''
8339: ;;
8340: *Sun\ F* | *Sun*Fortran*)
8341: lt_prog_compiler_pic='-KPIC'
8342: lt_prog_compiler_static='-Bstatic'
8343: lt_prog_compiler_wl='-Qoption ld '
8344: ;;
1.1 misho 8345: *Sun\ C*)
8346: # Sun C 5.9
8347: lt_prog_compiler_pic='-KPIC'
8348: lt_prog_compiler_static='-Bstatic'
8349: lt_prog_compiler_wl='-Wl,'
8350: ;;
1.1.1.2 misho 8351: *Intel*\ [CF]*Compiler*)
8352: lt_prog_compiler_wl='-Wl,'
8353: lt_prog_compiler_pic='-fPIC'
8354: lt_prog_compiler_static='-static'
8355: ;;
8356: *Portland\ Group*)
8357: lt_prog_compiler_wl='-Wl,'
8358: lt_prog_compiler_pic='-fpic'
1.1 misho 8359: lt_prog_compiler_static='-Bstatic'
8360: ;;
8361: esac
8362: ;;
8363: esac
8364: ;;
8365:
8366: newsos6)
8367: lt_prog_compiler_pic='-KPIC'
8368: lt_prog_compiler_static='-Bstatic'
8369: ;;
8370:
8371: *nto* | *qnx*)
8372: # QNX uses GNU C++, but need to define -shared option too, otherwise
8373: # it will coredump.
8374: lt_prog_compiler_pic='-fPIC -shared'
8375: ;;
8376:
8377: osf3* | osf4* | osf5*)
8378: lt_prog_compiler_wl='-Wl,'
8379: # All OSF/1 code is PIC.
8380: lt_prog_compiler_static='-non_shared'
8381: ;;
8382:
8383: rdos*)
8384: lt_prog_compiler_static='-non_shared'
8385: ;;
8386:
8387: solaris*)
8388: lt_prog_compiler_pic='-KPIC'
8389: lt_prog_compiler_static='-Bstatic'
8390: case $cc_basename in
1.1.1.2 misho 8391: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
1.1 misho 8392: lt_prog_compiler_wl='-Qoption ld ';;
8393: *)
8394: lt_prog_compiler_wl='-Wl,';;
8395: esac
8396: ;;
8397:
8398: sunos4*)
8399: lt_prog_compiler_wl='-Qoption ld '
8400: lt_prog_compiler_pic='-PIC'
8401: lt_prog_compiler_static='-Bstatic'
8402: ;;
8403:
8404: sysv4 | sysv4.2uw2* | sysv4.3*)
8405: lt_prog_compiler_wl='-Wl,'
8406: lt_prog_compiler_pic='-KPIC'
8407: lt_prog_compiler_static='-Bstatic'
8408: ;;
8409:
8410: sysv4*MP*)
8411: if test -d /usr/nec ;then
8412: lt_prog_compiler_pic='-Kconform_pic'
8413: lt_prog_compiler_static='-Bstatic'
8414: fi
8415: ;;
8416:
8417: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8418: lt_prog_compiler_wl='-Wl,'
8419: lt_prog_compiler_pic='-KPIC'
8420: lt_prog_compiler_static='-Bstatic'
8421: ;;
8422:
8423: unicos*)
8424: lt_prog_compiler_wl='-Wl,'
8425: lt_prog_compiler_can_build_shared=no
8426: ;;
8427:
8428: uts4*)
8429: lt_prog_compiler_pic='-pic'
8430: lt_prog_compiler_static='-Bstatic'
8431: ;;
8432:
8433: *)
8434: lt_prog_compiler_can_build_shared=no
8435: ;;
8436: esac
8437: fi
8438:
8439: case $host_os in
8440: # For platforms which do not support PIC, -DPIC is meaningless:
8441: *djgpp*)
8442: lt_prog_compiler_pic=
8443: ;;
8444: *)
8445: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8446: ;;
8447: esac
8448:
1.1.1.2 misho 8449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8450: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8451: if ${lt_cv_prog_compiler_pic+:} false; then :
8452: $as_echo_n "(cached) " >&6
8453: else
8454: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8455: fi
8456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8457: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8458: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misho 8459:
8460: #
8461: # Check to make sure the PIC flag actually works.
8462: #
8463: if test -n "$lt_prog_compiler_pic"; then
8464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8465: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
1.1.1.2 misho 8466: if ${lt_cv_prog_compiler_pic_works+:} false; then :
1.1 misho 8467: $as_echo_n "(cached) " >&6
8468: else
8469: lt_cv_prog_compiler_pic_works=no
8470: ac_outfile=conftest.$ac_objext
8471: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8472: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8473: # Insert the option either (1) after the last *FLAGS variable, or
8474: # (2) before a word containing "conftest.", or (3) at the end.
8475: # Note that $ac_compile itself does not contain backslashes and begins
8476: # with a dollar sign (not a hyphen), so the echo should work correctly.
8477: # The option is referenced via a variable to avoid confusing sed.
8478: lt_compile=`echo "$ac_compile" | $SED \
8479: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8480: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 8482: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8483: (eval "$lt_compile" 2>conftest.err)
8484: ac_status=$?
8485: cat conftest.err >&5
1.1.1.2 misho 8486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8487: if (exit $ac_status) && test -s "$ac_outfile"; then
8488: # The compiler can only warn and ignore the option if not recognized
8489: # So say no if there are warnings other than the usual output.
1.1.1.2 misho 8490: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1.1 misho 8491: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8492: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8493: lt_cv_prog_compiler_pic_works=yes
8494: fi
8495: fi
8496: $RM conftest*
8497:
8498: fi
8499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8500: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8501:
8502: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8503: case $lt_prog_compiler_pic in
8504: "" | " "*) ;;
8505: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8506: esac
8507: else
8508: lt_prog_compiler_pic=
8509: lt_prog_compiler_can_build_shared=no
8510: fi
8511:
8512: fi
8513:
8514:
8515:
8516:
8517:
8518:
1.1.1.2 misho 8519:
8520:
8521:
8522:
8523:
1.1 misho 8524: #
8525: # Check to make sure the static flag actually works.
8526: #
8527: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8529: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
1.1.1.2 misho 8530: if ${lt_cv_prog_compiler_static_works+:} false; then :
1.1 misho 8531: $as_echo_n "(cached) " >&6
8532: else
8533: lt_cv_prog_compiler_static_works=no
8534: save_LDFLAGS="$LDFLAGS"
8535: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8536: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8537: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8538: # The linker can only warn and ignore the option if not recognized
8539: # So say no if there are warnings
8540: if test -s conftest.err; then
8541: # Append any errors to the config.log.
8542: cat conftest.err 1>&5
1.1.1.2 misho 8543: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1.1 misho 8544: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8545: if diff conftest.exp conftest.er2 >/dev/null; then
8546: lt_cv_prog_compiler_static_works=yes
8547: fi
8548: else
8549: lt_cv_prog_compiler_static_works=yes
8550: fi
8551: fi
8552: $RM -r conftest*
8553: LDFLAGS="$save_LDFLAGS"
8554:
8555: fi
8556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8557: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8558:
8559: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8560: :
8561: else
8562: lt_prog_compiler_static=
8563: fi
8564:
8565:
8566:
8567:
8568:
8569:
8570:
8571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8572: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 misho 8573: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 8574: $as_echo_n "(cached) " >&6
8575: else
8576: lt_cv_prog_compiler_c_o=no
8577: $RM -r conftest 2>/dev/null
8578: mkdir conftest
8579: cd conftest
8580: mkdir out
8581: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8582:
8583: lt_compiler_flag="-o out/conftest2.$ac_objext"
8584: # Insert the option either (1) after the last *FLAGS variable, or
8585: # (2) before a word containing "conftest.", or (3) at the end.
8586: # Note that $ac_compile itself does not contain backslashes and begins
8587: # with a dollar sign (not a hyphen), so the echo should work correctly.
8588: lt_compile=`echo "$ac_compile" | $SED \
8589: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8590: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8591: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 8592: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8593: (eval "$lt_compile" 2>out/conftest.err)
8594: ac_status=$?
8595: cat out/conftest.err >&5
1.1.1.2 misho 8596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8597: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8598: then
8599: # The compiler can only warn and ignore the option if not recognized
8600: # So say no if there are warnings
1.1.1.2 misho 8601: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1.1 misho 8602: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8603: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8604: lt_cv_prog_compiler_c_o=yes
8605: fi
8606: fi
8607: chmod u+w . 2>&5
8608: $RM conftest*
8609: # SGI C++ compiler will create directory out/ii_files/ for
8610: # template instantiation
8611: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8612: $RM out/* && rmdir out
8613: cd ..
8614: $RM -r conftest
8615: $RM conftest*
8616:
8617: fi
8618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8619: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8620:
8621:
8622:
8623:
8624:
8625:
8626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8627: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 misho 8628: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 8629: $as_echo_n "(cached) " >&6
8630: else
8631: lt_cv_prog_compiler_c_o=no
8632: $RM -r conftest 2>/dev/null
8633: mkdir conftest
8634: cd conftest
8635: mkdir out
8636: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637:
8638: lt_compiler_flag="-o out/conftest2.$ac_objext"
8639: # Insert the option either (1) after the last *FLAGS variable, or
8640: # (2) before a word containing "conftest.", or (3) at the end.
8641: # Note that $ac_compile itself does not contain backslashes and begins
8642: # with a dollar sign (not a hyphen), so the echo should work correctly.
8643: lt_compile=`echo "$ac_compile" | $SED \
8644: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8645: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8646: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 8647: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8648: (eval "$lt_compile" 2>out/conftest.err)
8649: ac_status=$?
8650: cat out/conftest.err >&5
1.1.1.2 misho 8651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8652: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8653: then
8654: # The compiler can only warn and ignore the option if not recognized
8655: # So say no if there are warnings
1.1.1.2 misho 8656: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1.1 misho 8657: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8658: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8659: lt_cv_prog_compiler_c_o=yes
8660: fi
8661: fi
8662: chmod u+w . 2>&5
8663: $RM conftest*
8664: # SGI C++ compiler will create directory out/ii_files/ for
8665: # template instantiation
8666: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8667: $RM out/* && rmdir out
8668: cd ..
8669: $RM -r conftest
8670: $RM conftest*
8671:
8672: fi
8673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8674: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8675:
8676:
8677:
8678:
8679: hard_links="nottested"
8680: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8681: # do not overwrite the value of need_locks provided by the user
8682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8683: $as_echo_n "checking if we can lock with hard links... " >&6; }
8684: hard_links=yes
8685: $RM conftest*
8686: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8687: touch conftest.a
8688: ln conftest.a conftest.b 2>&5 || hard_links=no
8689: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8691: $as_echo "$hard_links" >&6; }
8692: if test "$hard_links" = no; then
8693: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8694: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8695: need_locks=warn
8696: fi
8697: else
8698: need_locks=no
8699: fi
8700:
8701:
8702:
8703:
8704:
8705:
8706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8707: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8708:
8709: runpath_var=
8710: allow_undefined_flag=
8711: always_export_symbols=no
8712: archive_cmds=
8713: archive_expsym_cmds=
8714: compiler_needs_object=no
8715: enable_shared_with_static_runtimes=no
8716: export_dynamic_flag_spec=
8717: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8718: hardcode_automatic=no
8719: hardcode_direct=no
8720: hardcode_direct_absolute=no
8721: hardcode_libdir_flag_spec=
8722: hardcode_libdir_separator=
8723: hardcode_minus_L=no
8724: hardcode_shlibpath_var=unsupported
8725: inherit_rpath=no
8726: link_all_deplibs=unknown
8727: module_cmds=
8728: module_expsym_cmds=
8729: old_archive_from_new_cmds=
8730: old_archive_from_expsyms_cmds=
8731: thread_safe_flag_spec=
8732: whole_archive_flag_spec=
8733: # include_expsyms should be a list of space-separated symbols to be *always*
8734: # included in the symbol list
8735: include_expsyms=
8736: # exclude_expsyms can be an extended regexp of symbols to exclude
8737: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739: # as well as any symbol that contains `d'.
8740: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8741: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742: # platforms (ab)use it in PIC code, but their linkers get confused if
8743: # the symbol is explicitly referenced. Since portable code cannot
8744: # rely on this symbol name, it's probably fine to never include it in
8745: # preloaded symbol tables.
8746: # Exclude shared library initialization/finalization symbols.
8747: extract_expsyms_cmds=
8748:
8749: case $host_os in
8750: cygwin* | mingw* | pw32* | cegcc*)
8751: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752: # When not using gcc, we currently assume that we are using
8753: # Microsoft Visual C++.
8754: if test "$GCC" != yes; then
8755: with_gnu_ld=no
8756: fi
8757: ;;
8758: interix*)
8759: # we just hope/assume this is gcc and not c89 (= MSVC++)
8760: with_gnu_ld=yes
8761: ;;
8762: openbsd*)
8763: with_gnu_ld=no
8764: ;;
8765: esac
8766:
8767: ld_shlibs=yes
1.1.1.2 misho 8768:
8769: # On some targets, GNU ld is compatible enough with the native linker
8770: # that we're better off using the native interface for both.
8771: lt_use_gnu_ld_interface=no
1.1 misho 8772: if test "$with_gnu_ld" = yes; then
1.1.1.2 misho 8773: case $host_os in
8774: aix*)
8775: # The AIX port of GNU ld has always aspired to compatibility
8776: # with the native linker. However, as the warning in the GNU ld
8777: # block says, versions before 2.19.5* couldn't really create working
8778: # shared libraries, regardless of the interface used.
8779: case `$LD -v 2>&1` in
8780: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8781: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8782: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8783: *)
8784: lt_use_gnu_ld_interface=yes
8785: ;;
8786: esac
8787: ;;
8788: *)
8789: lt_use_gnu_ld_interface=yes
8790: ;;
8791: esac
8792: fi
8793:
8794: if test "$lt_use_gnu_ld_interface" = yes; then
1.1 misho 8795: # If archive_cmds runs LD, not CC, wlarc should be empty
8796: wlarc='${wl}'
8797:
8798: # Set some defaults for GNU ld with shared library support. These
8799: # are reset later if shared libraries are not supported. Putting them
8800: # here allows them to be overridden if necessary.
8801: runpath_var=LD_RUN_PATH
8802: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8803: export_dynamic_flag_spec='${wl}--export-dynamic'
8804: # ancient GNU ld didn't support --whole-archive et. al.
8805: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8806: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8807: else
8808: whole_archive_flag_spec=
8809: fi
8810: supports_anon_versioning=no
8811: case `$LD -v 2>&1` in
8812: *GNU\ gold*) supports_anon_versioning=yes ;;
8813: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8814: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8815: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8816: *\ 2.11.*) ;; # other 2.11 versions
8817: *) supports_anon_versioning=yes ;;
8818: esac
8819:
8820: # See if GNU ld supports shared libraries.
8821: case $host_os in
8822: aix[3-9]*)
8823: # On AIX/PPC, the GNU linker is very broken
8824: if test "$host_cpu" != ia64; then
8825: ld_shlibs=no
8826: cat <<_LT_EOF 1>&2
8827:
1.1.1.2 misho 8828: *** Warning: the GNU linker, at least up to release 2.19, is reported
1.1 misho 8829: *** to be unable to reliably create shared libraries on AIX.
8830: *** Therefore, libtool is disabling shared libraries support. If you
1.1.1.2 misho 8831: *** really care for shared libraries, you may want to install binutils
8832: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8833: *** You will then need to restart the configuration process.
1.1 misho 8834:
8835: _LT_EOF
8836: fi
8837: ;;
8838:
8839: amigaos*)
8840: case $host_cpu in
8841: powerpc)
8842: # see comment about AmigaOS4 .so support
8843: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844: archive_expsym_cmds=''
8845: ;;
8846: m68k)
8847: 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)'
8848: hardcode_libdir_flag_spec='-L$libdir'
8849: hardcode_minus_L=yes
8850: ;;
8851: esac
8852: ;;
8853:
8854: beos*)
8855: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8856: allow_undefined_flag=unsupported
8857: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8858: # support --undefined. This deserves some investigation. FIXME
8859: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860: else
8861: ld_shlibs=no
8862: fi
8863: ;;
8864:
8865: cygwin* | mingw* | pw32* | cegcc*)
8866: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8867: # as there is no search path for DLLs.
8868: hardcode_libdir_flag_spec='-L$libdir'
1.1.1.2 misho 8869: export_dynamic_flag_spec='${wl}--export-all-symbols'
1.1 misho 8870: allow_undefined_flag=unsupported
8871: always_export_symbols=no
8872: enable_shared_with_static_runtimes=yes
1.1.1.2 misho 8873: 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'
8874: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.1 misho 8875:
8876: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8877: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8878: # If the export-symbols file already is a .def file (1st line
8879: # is EXPORTS), use it as is; otherwise, prepend...
8880: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8881: cp $export_symbols $output_objdir/$soname.def;
8882: else
8883: echo EXPORTS > $output_objdir/$soname.def;
8884: cat $export_symbols >> $output_objdir/$soname.def;
8885: fi~
8886: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8887: else
8888: ld_shlibs=no
8889: fi
8890: ;;
8891:
1.1.1.2 misho 8892: haiku*)
8893: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894: link_all_deplibs=yes
8895: ;;
8896:
1.1 misho 8897: interix[3-9]*)
8898: hardcode_direct=no
8899: hardcode_shlibpath_var=no
8900: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8901: export_dynamic_flag_spec='${wl}-E'
8902: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8903: # Instead, shared libraries are loaded at an image base (0x10000000 by
8904: # default) and relocated if they conflict, which is a slow very memory
8905: # consuming and fragmenting process. To avoid this, we pick a random,
8906: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8907: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8908: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8909: 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'
8910: ;;
8911:
8912: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8913: tmp_diet=no
8914: if test "$host_os" = linux-dietlibc; then
8915: case $cc_basename in
8916: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8917: esac
8918: fi
8919: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8920: && test "$tmp_diet" = no
8921: then
1.1.1.2 misho 8922: tmp_addflag=' $pic_flag'
1.1 misho 8923: tmp_sharedflag='-shared'
8924: case $cc_basename,$host_cpu in
8925: pgcc*) # Portland Group C compiler
1.1.1.2 misho 8926: 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'
1.1 misho 8927: tmp_addflag=' $pic_flag'
8928: ;;
1.1.1.2 misho 8929: pgf77* | pgf90* | pgf95* | pgfortran*)
8930: # Portland Group f77 and f90 compilers
8931: 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'
1.1 misho 8932: tmp_addflag=' $pic_flag -Mnomain' ;;
8933: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8934: tmp_addflag=' -i_dynamic' ;;
8935: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8936: tmp_addflag=' -i_dynamic -nofor_main' ;;
8937: ifc* | ifort*) # Intel Fortran compiler
8938: tmp_addflag=' -nofor_main' ;;
8939: lf95*) # Lahey Fortran 8.1
8940: whole_archive_flag_spec=
8941: tmp_sharedflag='--shared' ;;
1.1.1.2 misho 8942: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1.1 misho 8943: tmp_sharedflag='-qmkshrobj'
8944: tmp_addflag= ;;
1.1.1.2 misho 8945: nvcc*) # Cuda Compiler Driver 2.2
8946: 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'
8947: compiler_needs_object=yes
8948: ;;
1.1 misho 8949: esac
8950: case `$CC -V 2>&1 | sed 5q` in
8951: *Sun\ C*) # Sun C 5.9
1.1.1.2 misho 8952: 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'
1.1 misho 8953: compiler_needs_object=yes
8954: tmp_sharedflag='-G' ;;
8955: *Sun\ F*) # Sun Fortran 8.3
8956: tmp_sharedflag='-G' ;;
8957: esac
8958: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959:
8960: if test "x$supports_anon_versioning" = xyes; then
8961: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8962: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8963: echo "local: *; };" >> $output_objdir/$libname.ver~
8964: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8965: fi
8966:
8967: case $cc_basename in
1.1.1.2 misho 8968: xlf* | bgf* | bgxlf* | mpixlf*)
1.1 misho 8969: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8970: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.1.2 misho 8971: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8972: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.1 misho 8973: if test "x$supports_anon_versioning" = xyes; then
8974: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8975: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8976: echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.1.2 misho 8977: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.1 misho 8978: fi
8979: ;;
8980: esac
8981: else
8982: ld_shlibs=no
8983: fi
8984: ;;
8985:
1.1.1.2 misho 8986: netbsd*)
1.1 misho 8987: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8988: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8989: wlarc=
8990: else
1.1.1.2 misho 8991: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.1 misho 8993: fi
8994: ;;
8995:
8996: solaris*)
8997: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8998: ld_shlibs=no
8999: cat <<_LT_EOF 1>&2
9000:
9001: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9002: *** create shared libraries on Solaris systems. Therefore, libtool
9003: *** is disabling shared libraries support. We urge you to upgrade GNU
9004: *** binutils to release 2.9.1 or newer. Another option is to modify
9005: *** your PATH or compiler configuration so that the native linker is
9006: *** used, and then restart.
9007:
9008: _LT_EOF
9009: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.2 misho 9010: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.1 misho 9012: else
9013: ld_shlibs=no
9014: fi
9015: ;;
9016:
9017: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9018: case `$LD -v 2>&1` in
9019: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9020: ld_shlibs=no
9021: cat <<_LT_EOF 1>&2
9022:
9023: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9024: *** reliably create shared libraries on SCO systems. Therefore, libtool
9025: *** is disabling shared libraries support. We urge you to upgrade GNU
9026: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9027: *** your PATH or compiler configuration so that the native linker is
9028: *** used, and then restart.
9029:
9030: _LT_EOF
9031: ;;
9032: *)
9033: # For security reasons, it is highly recommended that you always
9034: # use absolute paths for naming shared libraries, and exclude the
9035: # DT_RUNPATH tag from executables and libraries. But doing so
9036: # requires that you compile everything twice, which is a pain.
9037: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9038: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9041: else
9042: ld_shlibs=no
9043: fi
9044: ;;
9045: esac
9046: ;;
9047:
9048: sunos4*)
9049: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9050: wlarc=
9051: hardcode_direct=yes
9052: hardcode_shlibpath_var=no
9053: ;;
9054:
9055: *)
9056: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.2 misho 9057: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.1 misho 9059: else
9060: ld_shlibs=no
9061: fi
9062: ;;
9063: esac
9064:
9065: if test "$ld_shlibs" = no; then
9066: runpath_var=
9067: hardcode_libdir_flag_spec=
9068: export_dynamic_flag_spec=
9069: whole_archive_flag_spec=
9070: fi
9071: else
9072: # PORTME fill in a description of your system's linker (not GNU ld)
9073: case $host_os in
9074: aix3*)
9075: allow_undefined_flag=unsupported
9076: always_export_symbols=yes
9077: 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'
9078: # Note: this linker hardcodes the directories in LIBPATH if there
9079: # are no directories specified by -L.
9080: hardcode_minus_L=yes
9081: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9082: # Neither direct hardcoding nor static linking is supported with a
9083: # broken collect2.
9084: hardcode_direct=unsupported
9085: fi
9086: ;;
9087:
9088: aix[4-9]*)
9089: if test "$host_cpu" = ia64; then
9090: # On IA64, the linker does run time linking by default, so we don't
9091: # have to do anything special.
9092: aix_use_runtimelinking=no
9093: exp_sym_flag='-Bexport'
9094: no_entry_flag=""
9095: else
9096: # If we're using GNU nm, then we don't want the "-C" option.
9097: # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.1.1.2 misho 9098: # Also, AIX nm treats weak defined symbols like other global
9099: # defined symbols, whereas GNU nm marks them as "W".
1.1 misho 9100: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.1.1.2 misho 9101: 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'
1.1 misho 9102: else
9103: 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'
9104: fi
9105: aix_use_runtimelinking=no
9106:
9107: # Test if we are trying to use run time linking or normal
9108: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9109: # need to do runtime linking.
9110: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9111: for ld_flag in $LDFLAGS; do
9112: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9113: aix_use_runtimelinking=yes
9114: break
9115: fi
9116: done
9117: ;;
9118: esac
9119:
9120: exp_sym_flag='-bexport'
9121: no_entry_flag='-bnoentry'
9122: fi
9123:
9124: # When large executables or shared objects are built, AIX ld can
9125: # have problems creating the table of contents. If linking a library
9126: # or program results in "error TOC overflow" add -mminimal-toc to
9127: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9128: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9129:
9130: archive_cmds=''
9131: hardcode_direct=yes
9132: hardcode_direct_absolute=yes
9133: hardcode_libdir_separator=':'
9134: link_all_deplibs=yes
9135: file_list_spec='${wl}-f,'
9136:
9137: if test "$GCC" = yes; then
9138: case $host_os in aix4.[012]|aix4.[012].*)
9139: # We only want to do this on AIX 4.2 and lower, the check
9140: # below for broken collect2 doesn't work under 4.3+
9141: collect2name=`${CC} -print-prog-name=collect2`
9142: if test -f "$collect2name" &&
9143: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9144: then
9145: # We have reworked collect2
9146: :
9147: else
9148: # We have old collect2
9149: hardcode_direct=unsupported
9150: # It fails to find uninstalled libraries when the uninstalled
9151: # path is not listed in the libpath. Setting hardcode_minus_L
9152: # to unsupported forces relinking
9153: hardcode_minus_L=yes
9154: hardcode_libdir_flag_spec='-L$libdir'
9155: hardcode_libdir_separator=
9156: fi
9157: ;;
9158: esac
9159: shared_flag='-shared'
9160: if test "$aix_use_runtimelinking" = yes; then
9161: shared_flag="$shared_flag "'${wl}-G'
9162: fi
9163: else
9164: # not using gcc
9165: if test "$host_cpu" = ia64; then
9166: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9167: # chokes on -Wl,-G. The following line is correct:
9168: shared_flag='-G'
9169: else
9170: if test "$aix_use_runtimelinking" = yes; then
9171: shared_flag='${wl}-G'
9172: else
9173: shared_flag='${wl}-bM:SRE'
9174: fi
9175: fi
9176: fi
9177:
9178: export_dynamic_flag_spec='${wl}-bexpall'
9179: # It seems that -bexpall does not export symbols beginning with
9180: # underscore (_), so it is better to generate a list of symbols to export.
9181: always_export_symbols=yes
9182: if test "$aix_use_runtimelinking" = yes; then
9183: # Warning - without using the other runtime loading flags (-brtl),
9184: # -berok will link without error, but may produce a broken library.
9185: allow_undefined_flag='-berok'
9186: # Determine the default libpath from the value encoded in an
9187: # empty executable.
1.1.1.2 misho 9188: if test "${lt_cv_aix_libpath+set}" = set; then
9189: aix_libpath=$lt_cv_aix_libpath
9190: else
9191: if ${lt_cv_aix_libpath_+:} false; then :
9192: $as_echo_n "(cached) " >&6
9193: else
9194: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 9195: /* end confdefs.h. */
9196:
9197: int
9198: main ()
9199: {
9200:
9201: ;
9202: return 0;
9203: }
9204: _ACEOF
9205: if ac_fn_c_try_link "$LINENO"; then :
9206:
1.1.1.2 misho 9207: lt_aix_libpath_sed='
9208: /Import File Strings/,/^$/ {
9209: /^0/ {
9210: s/^0 *\([^ ]*\) *$/\1/
9211: p
9212: }
9213: }'
9214: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9215: # Check for a 64-bit object if we didn't find anything.
9216: if test -z "$lt_cv_aix_libpath_"; then
9217: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218: fi
1.1 misho 9219: fi
9220: rm -f core conftest.err conftest.$ac_objext \
9221: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 9222: if test -z "$lt_cv_aix_libpath_"; then
9223: lt_cv_aix_libpath_="/usr/lib:/lib"
9224: fi
9225:
9226: fi
9227:
9228: aix_libpath=$lt_cv_aix_libpath_
9229: fi
1.1 misho 9230:
9231: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.2 misho 9232: 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"
1.1 misho 9233: else
9234: if test "$host_cpu" = ia64; then
9235: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9236: allow_undefined_flag="-z nodefs"
9237: 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"
9238: else
9239: # Determine the default libpath from the value encoded in an
9240: # empty executable.
1.1.1.2 misho 9241: if test "${lt_cv_aix_libpath+set}" = set; then
9242: aix_libpath=$lt_cv_aix_libpath
9243: else
9244: if ${lt_cv_aix_libpath_+:} false; then :
9245: $as_echo_n "(cached) " >&6
9246: else
9247: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 9248: /* end confdefs.h. */
9249:
9250: int
9251: main ()
9252: {
9253:
9254: ;
9255: return 0;
9256: }
9257: _ACEOF
9258: if ac_fn_c_try_link "$LINENO"; then :
9259:
1.1.1.2 misho 9260: lt_aix_libpath_sed='
9261: /Import File Strings/,/^$/ {
9262: /^0/ {
9263: s/^0 *\([^ ]*\) *$/\1/
9264: p
9265: }
9266: }'
9267: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9268: # Check for a 64-bit object if we didn't find anything.
9269: if test -z "$lt_cv_aix_libpath_"; then
9270: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9271: fi
1.1 misho 9272: fi
9273: rm -f core conftest.err conftest.$ac_objext \
9274: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 9275: if test -z "$lt_cv_aix_libpath_"; then
9276: lt_cv_aix_libpath_="/usr/lib:/lib"
9277: fi
9278:
9279: fi
9280:
9281: aix_libpath=$lt_cv_aix_libpath_
9282: fi
1.1 misho 9283:
9284: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9285: # Warning - without using the other run time loading flags,
9286: # -berok will link without error, but may produce a broken library.
9287: no_undefined_flag=' ${wl}-bernotok'
9288: allow_undefined_flag=' ${wl}-berok'
1.1.1.2 misho 9289: if test "$with_gnu_ld" = yes; then
9290: # We only use this code for GNU lds that support --whole-archive.
9291: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9292: else
9293: # Exported symbols can be pulled into shared objects from archives
9294: whole_archive_flag_spec='$convenience'
9295: fi
1.1 misho 9296: archive_cmds_need_lc=yes
9297: # This is similar to how AIX traditionally builds its shared libraries.
9298: 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'
9299: fi
9300: fi
9301: ;;
9302:
9303: amigaos*)
9304: case $host_cpu in
9305: powerpc)
9306: # see comment about AmigaOS4 .so support
9307: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308: archive_expsym_cmds=''
9309: ;;
9310: m68k)
9311: 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)'
9312: hardcode_libdir_flag_spec='-L$libdir'
9313: hardcode_minus_L=yes
9314: ;;
9315: esac
9316: ;;
9317:
9318: bsdi[45]*)
9319: export_dynamic_flag_spec=-rdynamic
9320: ;;
9321:
9322: cygwin* | mingw* | pw32* | cegcc*)
9323: # When not using gcc, we currently assume that we are using
9324: # Microsoft Visual C++.
9325: # hardcode_libdir_flag_spec is actually meaningless, as there is
9326: # no search path for DLLs.
1.1.1.2 misho 9327: case $cc_basename in
9328: cl*)
9329: # Native MSVC
9330: hardcode_libdir_flag_spec=' '
9331: allow_undefined_flag=unsupported
9332: always_export_symbols=yes
9333: file_list_spec='@'
9334: # Tell ltmain to make .lib files, not .a files.
9335: libext=lib
9336: # Tell ltmain to make .dll files, not .so files.
9337: shrext_cmds=".dll"
9338: # FIXME: Setting linknames here is a bad hack.
9339: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9340: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9341: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9342: else
9343: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9344: fi~
9345: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9346: linknames='
9347: # The linker will not automatically build a static lib if we build a DLL.
9348: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9349: enable_shared_with_static_runtimes=yes
9350: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9351: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9352: # Don't use ranlib
9353: old_postinstall_cmds='chmod 644 $oldlib'
9354: postlink_cmds='lt_outputfile="@OUTPUT@"~
9355: lt_tool_outputfile="@TOOL_OUTPUT@"~
9356: case $lt_outputfile in
9357: *.exe|*.EXE) ;;
9358: *)
9359: lt_outputfile="$lt_outputfile.exe"
9360: lt_tool_outputfile="$lt_tool_outputfile.exe"
9361: ;;
9362: esac~
9363: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9364: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9365: $RM "$lt_outputfile.manifest";
9366: fi'
9367: ;;
9368: *)
9369: # Assume MSVC wrapper
9370: hardcode_libdir_flag_spec=' '
9371: allow_undefined_flag=unsupported
9372: # Tell ltmain to make .lib files, not .a files.
9373: libext=lib
9374: # Tell ltmain to make .dll files, not .so files.
9375: shrext_cmds=".dll"
9376: # FIXME: Setting linknames here is a bad hack.
9377: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9378: # The linker will automatically build a .lib file if we build a DLL.
9379: old_archive_from_new_cmds='true'
9380: # FIXME: Should let the user specify the lib program.
9381: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9382: enable_shared_with_static_runtimes=yes
9383: ;;
9384: esac
1.1 misho 9385: ;;
9386:
9387: darwin* | rhapsody*)
9388:
9389:
9390: archive_cmds_need_lc=no
9391: hardcode_direct=no
9392: hardcode_automatic=yes
9393: hardcode_shlibpath_var=unsupported
1.1.1.2 misho 9394: if test "$lt_cv_ld_force_load" = "yes"; then
9395: 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\"`'
9396:
9397: else
9398: whole_archive_flag_spec=''
9399: fi
1.1 misho 9400: link_all_deplibs=yes
9401: allow_undefined_flag="$_lt_dar_allow_undefined"
9402: case $cc_basename in
9403: ifort*) _lt_dar_can_shared=yes ;;
9404: *) _lt_dar_can_shared=$GCC ;;
9405: esac
9406: if test "$_lt_dar_can_shared" = "yes"; then
1.1.1.2 misho 9407: output_verbose_link_cmd=func_echo_all
1.1 misho 9408: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9409: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9410: 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}"
9411: 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}"
9412:
9413: else
9414: ld_shlibs=no
9415: fi
9416:
9417: ;;
9418:
9419: dgux*)
9420: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421: hardcode_libdir_flag_spec='-L$libdir'
9422: hardcode_shlibpath_var=no
9423: ;;
9424:
9425: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9426: # support. Future versions do this automatically, but an explicit c++rt0.o
9427: # does not break anything, and helps significantly (at the cost of a little
9428: # extra space).
9429: freebsd2.2*)
9430: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9431: hardcode_libdir_flag_spec='-R$libdir'
9432: hardcode_direct=yes
9433: hardcode_shlibpath_var=no
9434: ;;
9435:
9436: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.1.2 misho 9437: freebsd2.*)
1.1 misho 9438: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9439: hardcode_direct=yes
9440: hardcode_minus_L=yes
9441: hardcode_shlibpath_var=no
9442: ;;
9443:
9444: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9445: freebsd* | dragonfly*)
1.1.1.2 misho 9446: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9447: hardcode_libdir_flag_spec='-R$libdir'
9448: hardcode_direct=yes
9449: hardcode_shlibpath_var=no
9450: ;;
9451:
9452: hpux9*)
9453: if test "$GCC" = yes; then
1.1.1.2 misho 9454: 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'
1.1 misho 9455: else
9456: 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'
9457: fi
9458: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459: hardcode_libdir_separator=:
9460: hardcode_direct=yes
9461:
9462: # hardcode_minus_L: Not really in the search PATH,
9463: # but as the default location of the library.
9464: hardcode_minus_L=yes
9465: export_dynamic_flag_spec='${wl}-E'
9466: ;;
9467:
9468: hpux10*)
1.1.1.2 misho 9469: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9470: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9471: else
9472: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9473: fi
9474: if test "$with_gnu_ld" = no; then
9475: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9476: hardcode_libdir_separator=:
9477: hardcode_direct=yes
9478: hardcode_direct_absolute=yes
9479: export_dynamic_flag_spec='${wl}-E'
9480: # hardcode_minus_L: Not really in the search PATH,
9481: # but as the default location of the library.
9482: hardcode_minus_L=yes
9483: fi
9484: ;;
9485:
9486: hpux11*)
1.1.1.2 misho 9487: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1.1 misho 9488: case $host_cpu in
9489: hppa*64*)
9490: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9491: ;;
9492: ia64*)
1.1.1.2 misho 9493: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9494: ;;
9495: *)
1.1.1.2 misho 9496: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9497: ;;
9498: esac
9499: else
9500: case $host_cpu in
9501: hppa*64*)
9502: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503: ;;
9504: ia64*)
9505: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9506: ;;
9507: *)
1.1.1.2 misho 9508:
9509: # Older versions of the 11.00 compiler do not understand -b yet
9510: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9512: $as_echo_n "checking if $CC understands -b... " >&6; }
9513: if ${lt_cv_prog_compiler__b+:} false; then :
9514: $as_echo_n "(cached) " >&6
9515: else
9516: lt_cv_prog_compiler__b=no
9517: save_LDFLAGS="$LDFLAGS"
9518: LDFLAGS="$LDFLAGS -b"
9519: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9520: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9521: # The linker can only warn and ignore the option if not recognized
9522: # So say no if there are warnings
9523: if test -s conftest.err; then
9524: # Append any errors to the config.log.
9525: cat conftest.err 1>&5
9526: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9527: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9528: if diff conftest.exp conftest.er2 >/dev/null; then
9529: lt_cv_prog_compiler__b=yes
9530: fi
9531: else
9532: lt_cv_prog_compiler__b=yes
9533: fi
9534: fi
9535: $RM -r conftest*
9536: LDFLAGS="$save_LDFLAGS"
9537:
9538: fi
9539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9540: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9541:
9542: if test x"$lt_cv_prog_compiler__b" = xyes; then
9543: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9544: else
9545: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9546: fi
9547:
1.1 misho 9548: ;;
9549: esac
9550: fi
9551: if test "$with_gnu_ld" = no; then
9552: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9553: hardcode_libdir_separator=:
9554:
9555: case $host_cpu in
9556: hppa*64*|ia64*)
9557: hardcode_direct=no
9558: hardcode_shlibpath_var=no
9559: ;;
9560: *)
9561: hardcode_direct=yes
9562: hardcode_direct_absolute=yes
9563: export_dynamic_flag_spec='${wl}-E'
9564:
9565: # hardcode_minus_L: Not really in the search PATH,
9566: # but as the default location of the library.
9567: hardcode_minus_L=yes
9568: ;;
9569: esac
9570: fi
9571: ;;
9572:
9573: irix5* | irix6* | nonstopux*)
9574: if test "$GCC" = yes; then
1.1.1.2 misho 9575: 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'
1.1 misho 9576: # Try to use the -exported_symbol ld option, if it does not
9577: # work, assume that -exports_file does not work either and
9578: # implicitly export all symbols.
1.1.1.2 misho 9579: # This should be the same for all languages, so no per-tag cache variable.
9580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9581: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9582: if ${lt_cv_irix_exported_symbol+:} false; then :
9583: $as_echo_n "(cached) " >&6
9584: else
9585: save_LDFLAGS="$LDFLAGS"
9586: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 9588: /* end confdefs.h. */
1.1.1.2 misho 9589: int foo (void) { return 0; }
1.1 misho 9590: _ACEOF
9591: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 9592: lt_cv_irix_exported_symbol=yes
9593: else
9594: lt_cv_irix_exported_symbol=no
1.1 misho 9595: fi
9596: rm -f core conftest.err conftest.$ac_objext \
9597: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 9598: LDFLAGS="$save_LDFLAGS"
9599: fi
9600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9601: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9602: if test "$lt_cv_irix_exported_symbol" = yes; then
9603: 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'
9604: fi
1.1 misho 9605: else
1.1.1.2 misho 9606: 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'
9607: 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'
1.1 misho 9608: fi
9609: archive_cmds_need_lc='no'
9610: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9611: hardcode_libdir_separator=:
9612: inherit_rpath=yes
9613: link_all_deplibs=yes
9614: ;;
9615:
1.1.1.2 misho 9616: netbsd*)
1.1 misho 9617: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9618: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9619: else
9620: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9621: fi
9622: hardcode_libdir_flag_spec='-R$libdir'
9623: hardcode_direct=yes
9624: hardcode_shlibpath_var=no
9625: ;;
9626:
9627: newsos6)
9628: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629: hardcode_direct=yes
9630: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631: hardcode_libdir_separator=:
9632: hardcode_shlibpath_var=no
9633: ;;
9634:
9635: *nto* | *qnx*)
9636: ;;
9637:
9638: openbsd*)
9639: if test -f /usr/libexec/ld.so; then
9640: hardcode_direct=yes
9641: hardcode_shlibpath_var=no
9642: hardcode_direct_absolute=yes
9643: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9644: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9645: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9646: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647: export_dynamic_flag_spec='${wl}-E'
9648: else
9649: case $host_os in
9650: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9651: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9652: hardcode_libdir_flag_spec='-R$libdir'
9653: ;;
9654: *)
9655: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9656: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9657: ;;
9658: esac
9659: fi
9660: else
9661: ld_shlibs=no
9662: fi
9663: ;;
9664:
9665: os2*)
9666: hardcode_libdir_flag_spec='-L$libdir'
9667: hardcode_minus_L=yes
9668: allow_undefined_flag=unsupported
1.1.1.2 misho 9669: 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'
1.1 misho 9670: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9671: ;;
9672:
9673: osf3*)
9674: if test "$GCC" = yes; then
9675: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 misho 9676: 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'
1.1 misho 9677: else
9678: allow_undefined_flag=' -expect_unresolved \*'
1.1.1.2 misho 9679: 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'
1.1 misho 9680: fi
9681: archive_cmds_need_lc='no'
9682: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9683: hardcode_libdir_separator=:
9684: ;;
9685:
9686: osf4* | osf5*) # as osf3* with the addition of -msym flag
9687: if test "$GCC" = yes; then
9688: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 misho 9689: 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'
1.1 misho 9690: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9691: else
9692: allow_undefined_flag=' -expect_unresolved \*'
1.1.1.2 misho 9693: 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'
1.1 misho 9694: 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~
1.1.1.2 misho 9695: $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'
1.1 misho 9696:
9697: # Both c and cxx compiler support -rpath directly
9698: hardcode_libdir_flag_spec='-rpath $libdir'
9699: fi
9700: archive_cmds_need_lc='no'
9701: hardcode_libdir_separator=:
9702: ;;
9703:
9704: solaris*)
9705: no_undefined_flag=' -z defs'
9706: if test "$GCC" = yes; then
9707: wlarc='${wl}'
1.1.1.2 misho 9708: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9709: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.2 misho 9710: $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'
1.1 misho 9711: else
9712: case `$CC -V 2>&1` in
9713: *"Compilers 5.0"*)
9714: wlarc=''
9715: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9717: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9718: ;;
9719: *)
9720: wlarc='${wl}'
9721: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9722: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9723: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9724: ;;
9725: esac
9726: fi
9727: hardcode_libdir_flag_spec='-R$libdir'
9728: hardcode_shlibpath_var=no
9729: case $host_os in
9730: solaris2.[0-5] | solaris2.[0-5].*) ;;
9731: *)
9732: # The compiler driver will combine and reorder linker options,
9733: # but understands `-z linker_flag'. GCC discards it without `$wl',
9734: # but is careful enough not to reorder.
9735: # Supported since Solaris 2.6 (maybe 2.5.1?)
9736: if test "$GCC" = yes; then
9737: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9738: else
9739: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9740: fi
9741: ;;
9742: esac
9743: link_all_deplibs=yes
9744: ;;
9745:
9746: sunos4*)
9747: if test "x$host_vendor" = xsequent; then
9748: # Use $CC to link under sequent, because it throws in some extra .o
9749: # files that make .init and .fini sections work.
9750: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9751: else
9752: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9753: fi
9754: hardcode_libdir_flag_spec='-L$libdir'
9755: hardcode_direct=yes
9756: hardcode_minus_L=yes
9757: hardcode_shlibpath_var=no
9758: ;;
9759:
9760: sysv4)
9761: case $host_vendor in
9762: sni)
9763: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764: hardcode_direct=yes # is this really true???
9765: ;;
9766: siemens)
9767: ## LD is ld it makes a PLAMLIB
9768: ## CC just makes a GrossModule.
9769: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9770: reload_cmds='$CC -r -o $output$reload_objs'
9771: hardcode_direct=no
9772: ;;
9773: motorola)
9774: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9776: ;;
9777: esac
9778: runpath_var='LD_RUN_PATH'
9779: hardcode_shlibpath_var=no
9780: ;;
9781:
9782: sysv4.3*)
9783: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784: hardcode_shlibpath_var=no
9785: export_dynamic_flag_spec='-Bexport'
9786: ;;
9787:
9788: sysv4*MP*)
9789: if test -d /usr/nec; then
9790: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791: hardcode_shlibpath_var=no
9792: runpath_var=LD_RUN_PATH
9793: hardcode_runpath_var=yes
9794: ld_shlibs=yes
9795: fi
9796: ;;
9797:
9798: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9799: no_undefined_flag='${wl}-z,text'
9800: archive_cmds_need_lc=no
9801: hardcode_shlibpath_var=no
9802: runpath_var='LD_RUN_PATH'
9803:
9804: if test "$GCC" = yes; then
9805: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9806: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807: else
9808: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810: fi
9811: ;;
9812:
9813: sysv5* | sco3.2v5* | sco5v6*)
9814: # Note: We can NOT use -z defs as we might desire, because we do not
9815: # link with -lc, and that would cause any symbols used from libc to
9816: # always be unresolved, which means just about no library would
9817: # ever link correctly. If we're not using GNU ld we use -z text
9818: # though, which does catch some bad symbols but isn't as heavy-handed
9819: # as -z defs.
9820: no_undefined_flag='${wl}-z,text'
9821: allow_undefined_flag='${wl}-z,nodefs'
9822: archive_cmds_need_lc=no
9823: hardcode_shlibpath_var=no
9824: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9825: hardcode_libdir_separator=':'
9826: link_all_deplibs=yes
9827: export_dynamic_flag_spec='${wl}-Bexport'
9828: runpath_var='LD_RUN_PATH'
9829:
9830: if test "$GCC" = yes; then
9831: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9832: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833: else
9834: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836: fi
9837: ;;
9838:
9839: uts4*)
9840: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841: hardcode_libdir_flag_spec='-L$libdir'
9842: hardcode_shlibpath_var=no
9843: ;;
9844:
9845: *)
9846: ld_shlibs=no
9847: ;;
9848: esac
9849:
9850: if test x$host_vendor = xsni; then
9851: case $host in
9852: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9853: export_dynamic_flag_spec='${wl}-Blargedynsym'
9854: ;;
9855: esac
9856: fi
9857: fi
9858:
9859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9860: $as_echo "$ld_shlibs" >&6; }
9861: test "$ld_shlibs" = no && can_build_shared=no
9862:
9863: with_gnu_ld=$with_gnu_ld
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879: #
9880: # Do we need to explicitly link libc?
9881: #
9882: case "x$archive_cmds_need_lc" in
9883: x|xyes)
9884: # Assume -lc should be added
9885: archive_cmds_need_lc=yes
9886:
9887: if test "$enable_shared" = yes && test "$GCC" = yes; then
9888: case $archive_cmds in
9889: *'~'*)
9890: # FIXME: we may have to deal with multi-command sequences.
9891: ;;
9892: '$CC '*)
9893: # Test whether the compiler implicitly links with -lc since on some
9894: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9895: # to ld, don't add -lc before -lgcc.
9896: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9897: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.1.2 misho 9898: if ${lt_cv_archive_cmds_need_lc+:} false; then :
9899: $as_echo_n "(cached) " >&6
9900: else
9901: $RM conftest*
9902: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 misho 9903:
1.1.1.2 misho 9904: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 9905: (eval $ac_compile) 2>&5
9906: ac_status=$?
9907: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9908: test $ac_status = 0; } 2>conftest.err; then
1.1.1.2 misho 9909: soname=conftest
9910: lib=conftest
9911: libobjs=conftest.$ac_objext
9912: deplibs=
9913: wl=$lt_prog_compiler_wl
9914: pic_flag=$lt_prog_compiler_pic
9915: compiler_flags=-v
9916: linker_flags=-v
9917: verstring=
9918: output_objdir=.
9919: libname=conftest
9920: lt_save_allow_undefined_flag=$allow_undefined_flag
9921: allow_undefined_flag=
9922: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.1 misho 9923: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9924: ac_status=$?
9925: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9926: test $ac_status = 0; }
1.1.1.2 misho 9927: then
9928: lt_cv_archive_cmds_need_lc=no
9929: else
9930: lt_cv_archive_cmds_need_lc=yes
9931: fi
9932: allow_undefined_flag=$lt_save_allow_undefined_flag
9933: else
9934: cat conftest.err 1>&5
9935: fi
9936: $RM conftest*
9937:
9938: fi
9939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9940: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9941: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1.1 misho 9942: ;;
9943: esac
9944: fi
9945: ;;
9946: esac
9947:
9948:
9949:
9950:
9951:
9952:
9953:
9954:
9955:
9956:
9957:
9958:
9959:
9960:
9961:
9962:
9963:
9964:
9965:
9966:
9967:
9968:
9969:
9970:
9971:
9972:
9973:
9974:
9975:
9976:
9977:
9978:
9979:
9980:
9981:
9982:
9983:
9984:
9985:
9986:
9987:
9988:
9989:
9990:
9991:
9992:
9993:
9994:
9995:
9996:
9997:
9998:
9999:
10000:
10001:
10002:
10003:
10004:
10005:
10006:
10007:
10008:
10009:
10010:
10011:
10012:
10013:
10014:
10015:
10016:
10017:
10018:
10019:
10020:
10021:
10022:
10023:
10024:
10025:
10026:
10027:
10028:
10029:
10030:
10031:
10032:
10033:
10034:
10035:
10036:
10037:
10038:
10039:
10040:
10041:
10042:
10043:
10044:
10045:
10046:
10047:
10048:
10049:
10050:
10051:
10052:
10053:
10054:
10055:
10056:
10057:
10058:
10059:
10060:
10061:
10062:
10063:
10064:
10065:
10066:
10067:
10068:
10069:
10070:
10071:
10072:
10073:
10074:
10075:
10076:
10077:
10078:
10079:
10080:
10081:
10082:
10083:
10084:
10085:
10086:
10087:
10088:
10089:
10090:
10091:
10092:
10093:
10094:
10095:
10096:
10097:
10098:
10099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10100: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10101:
10102: if test "$GCC" = yes; then
10103: case $host_os in
10104: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10105: *) lt_awk_arg="/^libraries:/" ;;
10106: esac
1.1.1.2 misho 10107: case $host_os in
10108: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10109: *) lt_sed_strip_eq="s,=/,/,g" ;;
10110: esac
10111: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10112: case $lt_search_path_spec in
10113: *\;*)
1.1 misho 10114: # if the path contains ";" then we assume it to be the separator
10115: # otherwise default to the standard path separator (i.e. ":") - it is
10116: # assumed that no part of a normal pathname contains ";" but that should
10117: # okay in the real world where ";" in dirpaths is itself problematic.
1.1.1.2 misho 10118: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10119: ;;
10120: *)
10121: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10122: ;;
10123: esac
1.1 misho 10124: # Ok, now we have the path, separated by spaces, we can step through it
10125: # and add multilib dir if necessary.
10126: lt_tmp_lt_search_path_spec=
10127: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10128: for lt_sys_path in $lt_search_path_spec; do
10129: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10130: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10131: else
10132: test -d "$lt_sys_path" && \
10133: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10134: fi
10135: done
1.1.1.2 misho 10136: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.1 misho 10137: BEGIN {RS=" "; FS="/|\n";} {
10138: lt_foo="";
10139: lt_count=0;
10140: for (lt_i = NF; lt_i > 0; lt_i--) {
10141: if ($lt_i != "" && $lt_i != ".") {
10142: if ($lt_i == "..") {
10143: lt_count++;
10144: } else {
10145: if (lt_count == 0) {
10146: lt_foo="/" $lt_i lt_foo;
10147: } else {
10148: lt_count--;
10149: }
10150: }
10151: }
10152: }
10153: if (lt_foo != "") { lt_freq[lt_foo]++; }
10154: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10155: }'`
1.1.1.2 misho 10156: # AWK program above erroneously prepends '/' to C:/dos/paths
10157: # for these hosts.
10158: case $host_os in
10159: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10160: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10161: esac
10162: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misho 10163: else
10164: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10165: fi
10166: library_names_spec=
10167: libname_spec='lib$name'
10168: soname_spec=
10169: shrext_cmds=".so"
10170: postinstall_cmds=
10171: postuninstall_cmds=
10172: finish_cmds=
10173: finish_eval=
10174: shlibpath_var=
10175: shlibpath_overrides_runpath=unknown
10176: version_type=none
10177: dynamic_linker="$host_os ld.so"
10178: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10179: need_lib_prefix=unknown
10180: hardcode_into_libs=no
10181:
10182: # when you set need_version to no, make sure it does not cause -set_version
10183: # flags to be left without arguments
10184: need_version=unknown
10185:
10186: case $host_os in
10187: aix3*)
1.1.1.2 misho 10188: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10189: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10190: shlibpath_var=LIBPATH
10191:
10192: # AIX 3 has no versioning support, so we append a major version to the name.
10193: soname_spec='${libname}${release}${shared_ext}$major'
10194: ;;
10195:
10196: aix[4-9]*)
1.1.1.2 misho 10197: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10198: need_lib_prefix=no
10199: need_version=no
10200: hardcode_into_libs=yes
10201: if test "$host_cpu" = ia64; then
10202: # AIX 5 supports IA64
10203: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10204: shlibpath_var=LD_LIBRARY_PATH
10205: else
10206: # With GCC up to 2.95.x, collect2 would create an import file
10207: # for dependence libraries. The import file would start with
10208: # the line `#! .'. This would cause the generated library to
10209: # depend on `.', always an invalid library. This was fixed in
10210: # development snapshots of GCC prior to 3.0.
10211: case $host_os in
10212: aix4 | aix4.[01] | aix4.[01].*)
10213: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10214: echo ' yes '
10215: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10216: :
10217: else
10218: can_build_shared=no
10219: fi
10220: ;;
10221: esac
10222: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10223: # soname into executable. Probably we can add versioning support to
10224: # collect2, so additional links can be useful in future.
10225: if test "$aix_use_runtimelinking" = yes; then
10226: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10227: # instead of lib<name>.a to let people know that these are not
10228: # typical AIX shared libraries.
10229: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230: else
10231: # We preserve .a as extension for shared libraries through AIX4.2
10232: # and later when we are not doing run time linking.
10233: library_names_spec='${libname}${release}.a $libname.a'
10234: soname_spec='${libname}${release}${shared_ext}$major'
10235: fi
10236: shlibpath_var=LIBPATH
10237: fi
10238: ;;
10239:
10240: amigaos*)
10241: case $host_cpu in
10242: powerpc)
10243: # Since July 2007 AmigaOS4 officially supports .so libraries.
10244: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246: ;;
10247: m68k)
10248: library_names_spec='$libname.ixlibrary $libname.a'
10249: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.2 misho 10250: 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'
1.1 misho 10251: ;;
10252: esac
10253: ;;
10254:
10255: beos*)
10256: library_names_spec='${libname}${shared_ext}'
10257: dynamic_linker="$host_os ld.so"
10258: shlibpath_var=LIBRARY_PATH
10259: ;;
10260:
10261: bsdi[45]*)
1.1.1.2 misho 10262: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10263: need_version=no
10264: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265: soname_spec='${libname}${release}${shared_ext}$major'
10266: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10267: shlibpath_var=LD_LIBRARY_PATH
10268: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10269: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10270: # the default ld.so.conf also contains /usr/contrib/lib and
10271: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10272: # libtool to hard-code these into programs
10273: ;;
10274:
10275: cygwin* | mingw* | pw32* | cegcc*)
10276: version_type=windows
10277: shrext_cmds=".dll"
10278: need_version=no
10279: need_lib_prefix=no
10280:
1.1.1.2 misho 10281: case $GCC,$cc_basename in
10282: yes,*)
10283: # gcc
1.1 misho 10284: library_names_spec='$libname.dll.a'
10285: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10286: postinstall_cmds='base_file=`basename \${file}`~
10287: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10288: dldir=$destdir/`dirname \$dlpath`~
10289: test -d \$dldir || mkdir -p \$dldir~
10290: $install_prog $dir/$dlname \$dldir/$dlname~
10291: chmod a+x \$dldir/$dlname~
10292: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10293: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10294: fi'
10295: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10296: dlpath=$dir/\$dldll~
10297: $RM \$dlpath'
10298: shlibpath_overrides_runpath=yes
10299:
10300: case $host_os in
10301: cygwin*)
10302: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10303: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.2 misho 10304:
10305: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1.1 misho 10306: ;;
10307: mingw* | cegcc*)
10308: # MinGW DLLs use traditional 'lib' prefix
10309: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310: ;;
10311: pw32*)
10312: # pw32 DLLs use 'pw' prefix rather than 'lib'
10313: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314: ;;
10315: esac
1.1.1.2 misho 10316: dynamic_linker='Win32 ld.exe'
10317: ;;
10318:
10319: *,cl*)
10320: # Native MSVC
10321: libname_spec='$name'
10322: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10323: library_names_spec='${libname}.dll.lib'
10324:
10325: case $build_os in
10326: mingw*)
10327: sys_lib_search_path_spec=
10328: lt_save_ifs=$IFS
10329: IFS=';'
10330: for lt_path in $LIB
10331: do
10332: IFS=$lt_save_ifs
10333: # Let DOS variable expansion print the short 8.3 style file name.
10334: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10335: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10336: done
10337: IFS=$lt_save_ifs
10338: # Convert to MSYS style.
10339: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10340: ;;
10341: cygwin*)
10342: # Convert to unix form, then to dos form, then back to unix form
10343: # but this time dos style (no spaces!) so that the unix form looks
10344: # like /cygdrive/c/PROGRA~1:/cygdr...
10345: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10346: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10347: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10348: ;;
10349: *)
10350: sys_lib_search_path_spec="$LIB"
10351: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10352: # It is most probably a Windows format PATH.
10353: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10354: else
10355: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10356: fi
10357: # FIXME: find the short name or the path components, as spaces are
10358: # common. (e.g. "Program Files" -> "PROGRA~1")
10359: ;;
10360: esac
10361:
10362: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10363: postinstall_cmds='base_file=`basename \${file}`~
10364: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10365: dldir=$destdir/`dirname \$dlpath`~
10366: test -d \$dldir || mkdir -p \$dldir~
10367: $install_prog $dir/$dlname \$dldir/$dlname'
10368: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10369: dlpath=$dir/\$dldll~
10370: $RM \$dlpath'
10371: shlibpath_overrides_runpath=yes
10372: dynamic_linker='Win32 link.exe'
1.1 misho 10373: ;;
10374:
10375: *)
1.1.1.2 misho 10376: # Assume MSVC wrapper
1.1 misho 10377: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.1.1.2 misho 10378: dynamic_linker='Win32 ld.exe'
1.1 misho 10379: ;;
10380: esac
10381: # FIXME: first we should search . and the directory the executable is in
10382: shlibpath_var=PATH
10383: ;;
10384:
10385: darwin* | rhapsody*)
10386: dynamic_linker="$host_os dyld"
10387: version_type=darwin
10388: need_lib_prefix=no
10389: need_version=no
10390: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10391: soname_spec='${libname}${release}${major}$shared_ext'
10392: shlibpath_overrides_runpath=yes
10393: shlibpath_var=DYLD_LIBRARY_PATH
10394: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10395:
10396: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10397: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10398: ;;
10399:
10400: dgux*)
1.1.1.2 misho 10401: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10402: need_lib_prefix=no
10403: need_version=no
10404: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10405: soname_spec='${libname}${release}${shared_ext}$major'
10406: shlibpath_var=LD_LIBRARY_PATH
10407: ;;
10408:
10409: freebsd* | dragonfly*)
10410: # DragonFly does not have aout. When/if they implement a new
10411: # versioning mechanism, adjust this.
10412: if test -x /usr/bin/objformat; then
10413: objformat=`/usr/bin/objformat`
10414: else
10415: case $host_os in
1.1.1.2 misho 10416: freebsd[23].*) objformat=aout ;;
1.1 misho 10417: *) objformat=elf ;;
10418: esac
10419: fi
10420: version_type=freebsd-$objformat
10421: case $version_type in
10422: freebsd-elf*)
10423: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10424: need_version=no
10425: need_lib_prefix=no
10426: ;;
10427: freebsd-*)
10428: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10429: need_version=yes
10430: ;;
10431: esac
10432: shlibpath_var=LD_LIBRARY_PATH
10433: case $host_os in
1.1.1.2 misho 10434: freebsd2.*)
1.1 misho 10435: shlibpath_overrides_runpath=yes
10436: ;;
10437: freebsd3.[01]* | freebsdelf3.[01]*)
10438: shlibpath_overrides_runpath=yes
10439: hardcode_into_libs=yes
10440: ;;
10441: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10442: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10443: shlibpath_overrides_runpath=no
10444: hardcode_into_libs=yes
10445: ;;
10446: *) # from 4.6 on, and DragonFly
10447: shlibpath_overrides_runpath=yes
10448: hardcode_into_libs=yes
10449: ;;
10450: esac
10451: ;;
10452:
10453: gnu*)
1.1.1.2 misho 10454: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10455: need_lib_prefix=no
10456: need_version=no
10457: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10458: soname_spec='${libname}${release}${shared_ext}$major'
10459: shlibpath_var=LD_LIBRARY_PATH
1.1.1.2 misho 10460: shlibpath_overrides_runpath=no
10461: hardcode_into_libs=yes
10462: ;;
10463:
10464: haiku*)
10465: version_type=linux # correct to gnu/linux during the next big refactor
10466: need_lib_prefix=no
10467: need_version=no
10468: dynamic_linker="$host_os runtime_loader"
10469: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10470: soname_spec='${libname}${release}${shared_ext}$major'
10471: shlibpath_var=LIBRARY_PATH
10472: shlibpath_overrides_runpath=yes
10473: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1.1 misho 10474: hardcode_into_libs=yes
10475: ;;
10476:
10477: hpux9* | hpux10* | hpux11*)
10478: # Give a soname corresponding to the major version so that dld.sl refuses to
10479: # link against other versions.
10480: version_type=sunos
10481: need_lib_prefix=no
10482: need_version=no
10483: case $host_cpu in
10484: ia64*)
10485: shrext_cmds='.so'
10486: hardcode_into_libs=yes
10487: dynamic_linker="$host_os dld.so"
10488: shlibpath_var=LD_LIBRARY_PATH
10489: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10490: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491: soname_spec='${libname}${release}${shared_ext}$major'
10492: if test "X$HPUX_IA64_MODE" = X32; then
10493: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10494: else
10495: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10496: fi
10497: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10498: ;;
10499: hppa*64*)
10500: shrext_cmds='.sl'
10501: hardcode_into_libs=yes
10502: dynamic_linker="$host_os dld.sl"
10503: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10504: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10505: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506: soname_spec='${libname}${release}${shared_ext}$major'
10507: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10508: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10509: ;;
10510: *)
10511: shrext_cmds='.sl'
10512: dynamic_linker="$host_os dld.sl"
10513: shlibpath_var=SHLIB_PATH
10514: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10515: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516: soname_spec='${libname}${release}${shared_ext}$major'
10517: ;;
10518: esac
1.1.1.2 misho 10519: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1.1 misho 10520: postinstall_cmds='chmod 555 $lib'
1.1.1.2 misho 10521: # or fails outright, so override atomically:
10522: install_override_mode=555
1.1 misho 10523: ;;
10524:
10525: interix[3-9]*)
1.1.1.2 misho 10526: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10527: need_lib_prefix=no
10528: need_version=no
10529: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10530: soname_spec='${libname}${release}${shared_ext}$major'
10531: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10532: shlibpath_var=LD_LIBRARY_PATH
10533: shlibpath_overrides_runpath=no
10534: hardcode_into_libs=yes
10535: ;;
10536:
10537: irix5* | irix6* | nonstopux*)
10538: case $host_os in
10539: nonstopux*) version_type=nonstopux ;;
10540: *)
10541: if test "$lt_cv_prog_gnu_ld" = yes; then
1.1.1.2 misho 10542: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10543: else
10544: version_type=irix
10545: fi ;;
10546: esac
10547: need_lib_prefix=no
10548: need_version=no
10549: soname_spec='${libname}${release}${shared_ext}$major'
10550: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10551: case $host_os in
10552: irix5* | nonstopux*)
10553: libsuff= shlibsuff=
10554: ;;
10555: *)
10556: case $LD in # libtool.m4 will add one of these switches to LD
10557: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10558: libsuff= shlibsuff= libmagic=32-bit;;
10559: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10560: libsuff=32 shlibsuff=N32 libmagic=N32;;
10561: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10562: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10563: *) libsuff= shlibsuff= libmagic=never-match;;
10564: esac
10565: ;;
10566: esac
10567: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10568: shlibpath_overrides_runpath=no
10569: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10570: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10571: hardcode_into_libs=yes
10572: ;;
10573:
10574: # No shared lib support for Linux oldld, aout, or coff.
10575: linux*oldld* | linux*aout* | linux*coff*)
10576: dynamic_linker=no
10577: ;;
10578:
1.1.1.2 misho 10579: # This must be glibc/ELF.
1.1 misho 10580: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1.1.2 misho 10581: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10582: need_lib_prefix=no
10583: need_version=no
10584: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585: soname_spec='${libname}${release}${shared_ext}$major'
10586: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10587: shlibpath_var=LD_LIBRARY_PATH
10588: shlibpath_overrides_runpath=no
1.1.1.2 misho 10589:
1.1 misho 10590: # Some binutils ld are patched to set DT_RUNPATH
1.1.1.2 misho 10591: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10592: $as_echo_n "(cached) " >&6
10593: else
10594: lt_cv_shlibpath_overrides_runpath=no
10595: save_LDFLAGS=$LDFLAGS
10596: save_libdir=$libdir
10597: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10598: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10599: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10600: /* end confdefs.h. */
10601:
10602: int
10603: main ()
10604: {
10605:
10606: ;
10607: return 0;
10608: }
10609: _ACEOF
10610: if ac_fn_c_try_link "$LINENO"; then :
10611: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.1.1.2 misho 10612: lt_cv_shlibpath_overrides_runpath=yes
1.1 misho 10613: fi
10614: fi
10615: rm -f core conftest.err conftest.$ac_objext \
10616: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 10617: LDFLAGS=$save_LDFLAGS
10618: libdir=$save_libdir
10619:
10620: fi
10621:
10622: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1.1 misho 10623:
10624: # This implies no fast_install, which is unacceptable.
10625: # Some rework will be needed to allow for fast_install
10626: # before this can be enabled.
10627: hardcode_into_libs=yes
10628:
10629: # Append ld.so.conf contents to the search path
10630: if test -f /etc/ld.so.conf; then
1.1.1.2 misho 10631: 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 misho 10632: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10633: fi
10634:
10635: # We used to test for /lib/ld.so.1 and disable shared libraries on
10636: # powerpc, because MkLinux only supported shared libraries with the
10637: # GNU dynamic linker. Since this was broken with cross compilers,
10638: # most powerpc-linux boxes support dynamic linking these days and
10639: # people can always --disable-shared, the test was removed, and we
10640: # assume the GNU/Linux dynamic linker is in use.
10641: dynamic_linker='GNU/Linux ld.so'
10642: ;;
10643:
10644: netbsd*)
10645: version_type=sunos
10646: need_lib_prefix=no
10647: need_version=no
10648: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10649: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10650: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10651: dynamic_linker='NetBSD (a.out) ld.so'
10652: else
10653: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10654: soname_spec='${libname}${release}${shared_ext}$major'
10655: dynamic_linker='NetBSD ld.elf_so'
10656: fi
10657: shlibpath_var=LD_LIBRARY_PATH
10658: shlibpath_overrides_runpath=yes
10659: hardcode_into_libs=yes
10660: ;;
10661:
10662: newsos6)
1.1.1.2 misho 10663: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10664: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665: shlibpath_var=LD_LIBRARY_PATH
10666: shlibpath_overrides_runpath=yes
10667: ;;
10668:
10669: *nto* | *qnx*)
10670: version_type=qnx
10671: need_lib_prefix=no
10672: need_version=no
10673: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674: soname_spec='${libname}${release}${shared_ext}$major'
10675: shlibpath_var=LD_LIBRARY_PATH
10676: shlibpath_overrides_runpath=no
10677: hardcode_into_libs=yes
10678: dynamic_linker='ldqnx.so'
10679: ;;
10680:
10681: openbsd*)
10682: version_type=sunos
10683: sys_lib_dlsearch_path_spec="/usr/lib"
10684: need_lib_prefix=no
10685: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10686: case $host_os in
10687: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10688: *) need_version=no ;;
10689: esac
10690: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10691: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10692: shlibpath_var=LD_LIBRARY_PATH
10693: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10694: case $host_os in
10695: openbsd2.[89] | openbsd2.[89].*)
10696: shlibpath_overrides_runpath=no
10697: ;;
10698: *)
10699: shlibpath_overrides_runpath=yes
10700: ;;
10701: esac
10702: else
10703: shlibpath_overrides_runpath=yes
10704: fi
10705: ;;
10706:
10707: os2*)
10708: libname_spec='$name'
10709: shrext_cmds=".dll"
10710: need_lib_prefix=no
10711: library_names_spec='$libname${shared_ext} $libname.a'
10712: dynamic_linker='OS/2 ld.exe'
10713: shlibpath_var=LIBPATH
10714: ;;
10715:
10716: osf3* | osf4* | osf5*)
10717: version_type=osf
10718: need_lib_prefix=no
10719: need_version=no
10720: soname_spec='${libname}${release}${shared_ext}$major'
10721: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722: shlibpath_var=LD_LIBRARY_PATH
10723: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10724: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10725: ;;
10726:
10727: rdos*)
10728: dynamic_linker=no
10729: ;;
10730:
10731: solaris*)
1.1.1.2 misho 10732: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10733: need_lib_prefix=no
10734: need_version=no
10735: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736: soname_spec='${libname}${release}${shared_ext}$major'
10737: shlibpath_var=LD_LIBRARY_PATH
10738: shlibpath_overrides_runpath=yes
10739: hardcode_into_libs=yes
10740: # ldd complains unless libraries are executable
10741: postinstall_cmds='chmod +x $lib'
10742: ;;
10743:
10744: sunos4*)
10745: version_type=sunos
10746: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10747: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10748: shlibpath_var=LD_LIBRARY_PATH
10749: shlibpath_overrides_runpath=yes
10750: if test "$with_gnu_ld" = yes; then
10751: need_lib_prefix=no
10752: fi
10753: need_version=yes
10754: ;;
10755:
10756: sysv4 | sysv4.3*)
1.1.1.2 misho 10757: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10758: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759: soname_spec='${libname}${release}${shared_ext}$major'
10760: shlibpath_var=LD_LIBRARY_PATH
10761: case $host_vendor in
10762: sni)
10763: shlibpath_overrides_runpath=no
10764: need_lib_prefix=no
10765: runpath_var=LD_RUN_PATH
10766: ;;
10767: siemens)
10768: need_lib_prefix=no
10769: ;;
10770: motorola)
10771: need_lib_prefix=no
10772: need_version=no
10773: shlibpath_overrides_runpath=no
10774: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10775: ;;
10776: esac
10777: ;;
10778:
10779: sysv4*MP*)
10780: if test -d /usr/nec ;then
1.1.1.2 misho 10781: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10782: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10783: soname_spec='$libname${shared_ext}.$major'
10784: shlibpath_var=LD_LIBRARY_PATH
10785: fi
10786: ;;
10787:
10788: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10789: version_type=freebsd-elf
10790: need_lib_prefix=no
10791: need_version=no
10792: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10793: soname_spec='${libname}${release}${shared_ext}$major'
10794: shlibpath_var=LD_LIBRARY_PATH
10795: shlibpath_overrides_runpath=yes
10796: hardcode_into_libs=yes
10797: if test "$with_gnu_ld" = yes; then
10798: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10799: else
10800: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10801: case $host_os in
10802: sco3.2v5*)
10803: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10804: ;;
10805: esac
10806: fi
10807: sys_lib_dlsearch_path_spec='/usr/lib'
10808: ;;
10809:
10810: tpf*)
10811: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
1.1.1.2 misho 10812: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10813: need_lib_prefix=no
10814: need_version=no
10815: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816: shlibpath_var=LD_LIBRARY_PATH
10817: shlibpath_overrides_runpath=no
10818: hardcode_into_libs=yes
10819: ;;
10820:
10821: uts4*)
1.1.1.2 misho 10822: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10823: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824: soname_spec='${libname}${release}${shared_ext}$major'
10825: shlibpath_var=LD_LIBRARY_PATH
10826: ;;
10827:
10828: *)
10829: dynamic_linker=no
10830: ;;
10831: esac
10832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10833: $as_echo "$dynamic_linker" >&6; }
10834: test "$dynamic_linker" = no && can_build_shared=no
10835:
10836: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10837: if test "$GCC" = yes; then
10838: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10839: fi
10840:
10841: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10842: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10843: fi
10844: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10845: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10846: fi
10847:
10848:
10849:
10850:
10851:
10852:
10853:
10854:
10855:
10856:
10857:
10858:
10859:
10860:
10861:
10862:
10863:
10864:
10865:
10866:
10867:
10868:
10869:
10870:
10871:
10872:
10873:
10874:
10875:
10876:
10877:
10878:
10879:
10880:
10881:
10882:
10883:
10884:
10885:
10886:
10887:
10888:
10889:
10890:
10891:
10892:
10893:
10894:
10895:
10896:
10897:
10898:
10899:
10900:
10901:
10902:
10903:
10904:
10905:
10906:
10907:
10908:
10909:
10910:
10911:
10912:
10913:
10914:
10915:
10916:
10917:
10918:
10919:
10920:
10921:
10922:
10923:
10924:
10925:
10926:
10927:
10928:
10929:
10930:
10931:
10932:
10933:
1.1.1.2 misho 10934:
10935:
10936:
10937:
10938:
1.1 misho 10939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10940: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10941: hardcode_action=
10942: if test -n "$hardcode_libdir_flag_spec" ||
10943: test -n "$runpath_var" ||
10944: test "X$hardcode_automatic" = "Xyes" ; then
10945:
10946: # We can hardcode non-existent directories.
10947: if test "$hardcode_direct" != no &&
10948: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10949: # have to relink, otherwise we might link with an installed library
10950: # when we should be linking with a yet-to-be-installed one
10951: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10952: test "$hardcode_minus_L" != no; then
10953: # Linking always hardcodes the temporary library directory.
10954: hardcode_action=relink
10955: else
10956: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10957: hardcode_action=immediate
10958: fi
10959: else
10960: # We cannot hardcode anything, or else we can only hardcode existing
10961: # directories.
10962: hardcode_action=unsupported
10963: fi
10964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10965: $as_echo "$hardcode_action" >&6; }
10966:
10967: if test "$hardcode_action" = relink ||
10968: test "$inherit_rpath" = yes; then
10969: # Fast installation is not supported
10970: enable_fast_install=no
10971: elif test "$shlibpath_overrides_runpath" = yes ||
10972: test "$enable_shared" = no; then
10973: # Fast installation is not necessary
10974: enable_fast_install=needless
10975: fi
10976:
10977:
10978:
10979:
10980:
10981:
10982: if test "x$enable_dlopen" != xyes; then
10983: enable_dlopen=unknown
10984: enable_dlopen_self=unknown
10985: enable_dlopen_self_static=unknown
10986: else
10987: lt_cv_dlopen=no
10988: lt_cv_dlopen_libs=
10989:
10990: case $host_os in
10991: beos*)
10992: lt_cv_dlopen="load_add_on"
10993: lt_cv_dlopen_libs=
10994: lt_cv_dlopen_self=yes
10995: ;;
10996:
10997: mingw* | pw32* | cegcc*)
10998: lt_cv_dlopen="LoadLibrary"
10999: lt_cv_dlopen_libs=
11000: ;;
11001:
11002: cygwin*)
11003: lt_cv_dlopen="dlopen"
11004: lt_cv_dlopen_libs=
11005: ;;
11006:
11007: darwin*)
11008: # if libdl is installed we need to link against it
11009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11010: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 misho 11011: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 11012: $as_echo_n "(cached) " >&6
11013: else
11014: ac_check_lib_save_LIBS=$LIBS
11015: LIBS="-ldl $LIBS"
11016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017: /* end confdefs.h. */
11018:
11019: /* Override any GCC internal prototype to avoid an error.
11020: Use char because int might match the return type of a GCC
11021: builtin and then its argument prototype would still apply. */
11022: #ifdef __cplusplus
11023: extern "C"
11024: #endif
11025: char dlopen ();
11026: int
11027: main ()
11028: {
11029: return dlopen ();
11030: ;
11031: return 0;
11032: }
11033: _ACEOF
11034: if ac_fn_c_try_link "$LINENO"; then :
11035: ac_cv_lib_dl_dlopen=yes
11036: else
11037: ac_cv_lib_dl_dlopen=no
11038: fi
11039: rm -f core conftest.err conftest.$ac_objext \
11040: conftest$ac_exeext conftest.$ac_ext
11041: LIBS=$ac_check_lib_save_LIBS
11042: fi
11043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11044: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 misho 11045: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1 misho 11046: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11047: else
11048:
11049: lt_cv_dlopen="dyld"
11050: lt_cv_dlopen_libs=
11051: lt_cv_dlopen_self=yes
11052:
11053: fi
11054:
11055: ;;
11056:
11057: *)
11058: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.1.1.2 misho 11059: if test "x$ac_cv_func_shl_load" = xyes; then :
1.1 misho 11060: lt_cv_dlopen="shl_load"
11061: else
11062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11063: $as_echo_n "checking for shl_load in -ldld... " >&6; }
1.1.1.2 misho 11064: if ${ac_cv_lib_dld_shl_load+:} false; then :
1.1 misho 11065: $as_echo_n "(cached) " >&6
11066: else
11067: ac_check_lib_save_LIBS=$LIBS
11068: LIBS="-ldld $LIBS"
11069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070: /* end confdefs.h. */
11071:
11072: /* Override any GCC internal prototype to avoid an error.
11073: Use char because int might match the return type of a GCC
11074: builtin and then its argument prototype would still apply. */
11075: #ifdef __cplusplus
11076: extern "C"
11077: #endif
11078: char shl_load ();
11079: int
11080: main ()
11081: {
11082: return shl_load ();
11083: ;
11084: return 0;
11085: }
11086: _ACEOF
11087: if ac_fn_c_try_link "$LINENO"; then :
11088: ac_cv_lib_dld_shl_load=yes
11089: else
11090: ac_cv_lib_dld_shl_load=no
11091: fi
11092: rm -f core conftest.err conftest.$ac_objext \
11093: conftest$ac_exeext conftest.$ac_ext
11094: LIBS=$ac_check_lib_save_LIBS
11095: fi
11096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11097: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1.1.1.2 misho 11098: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 misho 11099: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11100: else
11101: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1.1.1.2 misho 11102: if test "x$ac_cv_func_dlopen" = xyes; then :
1.1 misho 11103: lt_cv_dlopen="dlopen"
11104: else
11105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11106: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 misho 11107: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 11108: $as_echo_n "(cached) " >&6
11109: else
11110: ac_check_lib_save_LIBS=$LIBS
11111: LIBS="-ldl $LIBS"
11112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113: /* end confdefs.h. */
11114:
11115: /* Override any GCC internal prototype to avoid an error.
11116: Use char because int might match the return type of a GCC
11117: builtin and then its argument prototype would still apply. */
11118: #ifdef __cplusplus
11119: extern "C"
11120: #endif
11121: char dlopen ();
11122: int
11123: main ()
11124: {
11125: return dlopen ();
11126: ;
11127: return 0;
11128: }
11129: _ACEOF
11130: if ac_fn_c_try_link "$LINENO"; then :
11131: ac_cv_lib_dl_dlopen=yes
11132: else
11133: ac_cv_lib_dl_dlopen=no
11134: fi
11135: rm -f core conftest.err conftest.$ac_objext \
11136: conftest$ac_exeext conftest.$ac_ext
11137: LIBS=$ac_check_lib_save_LIBS
11138: fi
11139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11140: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 misho 11141: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1 misho 11142: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11143: else
11144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11145: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1.1.1.2 misho 11146: if ${ac_cv_lib_svld_dlopen+:} false; then :
1.1 misho 11147: $as_echo_n "(cached) " >&6
11148: else
11149: ac_check_lib_save_LIBS=$LIBS
11150: LIBS="-lsvld $LIBS"
11151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152: /* end confdefs.h. */
11153:
11154: /* Override any GCC internal prototype to avoid an error.
11155: Use char because int might match the return type of a GCC
11156: builtin and then its argument prototype would still apply. */
11157: #ifdef __cplusplus
11158: extern "C"
11159: #endif
11160: char dlopen ();
11161: int
11162: main ()
11163: {
11164: return dlopen ();
11165: ;
11166: return 0;
11167: }
11168: _ACEOF
11169: if ac_fn_c_try_link "$LINENO"; then :
11170: ac_cv_lib_svld_dlopen=yes
11171: else
11172: ac_cv_lib_svld_dlopen=no
11173: fi
11174: rm -f core conftest.err conftest.$ac_objext \
11175: conftest$ac_exeext conftest.$ac_ext
11176: LIBS=$ac_check_lib_save_LIBS
11177: fi
11178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11179: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1.1.1.2 misho 11180: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.1 misho 11181: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11182: else
11183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11184: $as_echo_n "checking for dld_link in -ldld... " >&6; }
1.1.1.2 misho 11185: if ${ac_cv_lib_dld_dld_link+:} false; then :
1.1 misho 11186: $as_echo_n "(cached) " >&6
11187: else
11188: ac_check_lib_save_LIBS=$LIBS
11189: LIBS="-ldld $LIBS"
11190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191: /* end confdefs.h. */
11192:
11193: /* Override any GCC internal prototype to avoid an error.
11194: Use char because int might match the return type of a GCC
11195: builtin and then its argument prototype would still apply. */
11196: #ifdef __cplusplus
11197: extern "C"
11198: #endif
11199: char dld_link ();
11200: int
11201: main ()
11202: {
11203: return dld_link ();
11204: ;
11205: return 0;
11206: }
11207: _ACEOF
11208: if ac_fn_c_try_link "$LINENO"; then :
11209: ac_cv_lib_dld_dld_link=yes
11210: else
11211: ac_cv_lib_dld_dld_link=no
11212: fi
11213: rm -f core conftest.err conftest.$ac_objext \
11214: conftest$ac_exeext conftest.$ac_ext
11215: LIBS=$ac_check_lib_save_LIBS
11216: fi
11217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11218: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1.1.1.2 misho 11219: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.1 misho 11220: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11221: fi
11222:
11223:
11224: fi
11225:
11226:
11227: fi
11228:
11229:
11230: fi
11231:
11232:
11233: fi
11234:
11235:
11236: fi
11237:
11238: ;;
11239: esac
11240:
11241: if test "x$lt_cv_dlopen" != xno; then
11242: enable_dlopen=yes
11243: else
11244: enable_dlopen=no
11245: fi
11246:
11247: case $lt_cv_dlopen in
11248: dlopen)
11249: save_CPPFLAGS="$CPPFLAGS"
11250: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11251:
11252: save_LDFLAGS="$LDFLAGS"
11253: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11254:
11255: save_LIBS="$LIBS"
11256: LIBS="$lt_cv_dlopen_libs $LIBS"
11257:
11258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11259: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
1.1.1.2 misho 11260: if ${lt_cv_dlopen_self+:} false; then :
1.1 misho 11261: $as_echo_n "(cached) " >&6
11262: else
11263: if test "$cross_compiling" = yes; then :
11264: lt_cv_dlopen_self=cross
11265: else
11266: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11267: lt_status=$lt_dlunknown
11268: cat > conftest.$ac_ext <<_LT_EOF
1.1.1.2 misho 11269: #line $LINENO "configure"
1.1 misho 11270: #include "confdefs.h"
11271:
11272: #if HAVE_DLFCN_H
11273: #include <dlfcn.h>
11274: #endif
11275:
11276: #include <stdio.h>
11277:
11278: #ifdef RTLD_GLOBAL
11279: # define LT_DLGLOBAL RTLD_GLOBAL
11280: #else
11281: # ifdef DL_GLOBAL
11282: # define LT_DLGLOBAL DL_GLOBAL
11283: # else
11284: # define LT_DLGLOBAL 0
11285: # endif
11286: #endif
11287:
11288: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11289: find out it does not work in some platform. */
11290: #ifndef LT_DLLAZY_OR_NOW
11291: # ifdef RTLD_LAZY
11292: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11293: # else
11294: # ifdef DL_LAZY
11295: # define LT_DLLAZY_OR_NOW DL_LAZY
11296: # else
11297: # ifdef RTLD_NOW
11298: # define LT_DLLAZY_OR_NOW RTLD_NOW
11299: # else
11300: # ifdef DL_NOW
11301: # define LT_DLLAZY_OR_NOW DL_NOW
11302: # else
11303: # define LT_DLLAZY_OR_NOW 0
11304: # endif
11305: # endif
11306: # endif
11307: # endif
11308: #endif
11309:
1.1.1.2 misho 11310: /* When -fvisbility=hidden is used, assume the code has been annotated
11311: correspondingly for the symbols needed. */
11312: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11313: int fnord () __attribute__((visibility("default")));
11314: #endif
11315:
11316: int fnord () { return 42; }
1.1 misho 11317: int main ()
11318: {
11319: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11320: int status = $lt_dlunknown;
11321:
11322: if (self)
11323: {
11324: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.1.1.2 misho 11325: else
11326: {
11327: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11328: else puts (dlerror ());
11329: }
1.1 misho 11330: /* dlclose (self); */
11331: }
11332: else
11333: puts (dlerror ());
11334:
11335: return status;
11336: }
11337: _LT_EOF
11338: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11339: (eval $ac_link) 2>&5
11340: ac_status=$?
11341: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11343: (./conftest; exit; ) >&5 2>/dev/null
11344: lt_status=$?
11345: case x$lt_status in
11346: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11347: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11348: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11349: esac
11350: else :
11351: # compilation failed
11352: lt_cv_dlopen_self=no
11353: fi
11354: fi
11355: rm -fr conftest*
11356:
11357:
11358: fi
11359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11360: $as_echo "$lt_cv_dlopen_self" >&6; }
11361:
11362: if test "x$lt_cv_dlopen_self" = xyes; then
11363: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11365: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1.1.1.2 misho 11366: if ${lt_cv_dlopen_self_static+:} false; then :
1.1 misho 11367: $as_echo_n "(cached) " >&6
11368: else
11369: if test "$cross_compiling" = yes; then :
11370: lt_cv_dlopen_self_static=cross
11371: else
11372: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11373: lt_status=$lt_dlunknown
11374: cat > conftest.$ac_ext <<_LT_EOF
1.1.1.2 misho 11375: #line $LINENO "configure"
1.1 misho 11376: #include "confdefs.h"
11377:
11378: #if HAVE_DLFCN_H
11379: #include <dlfcn.h>
11380: #endif
11381:
11382: #include <stdio.h>
11383:
11384: #ifdef RTLD_GLOBAL
11385: # define LT_DLGLOBAL RTLD_GLOBAL
11386: #else
11387: # ifdef DL_GLOBAL
11388: # define LT_DLGLOBAL DL_GLOBAL
11389: # else
11390: # define LT_DLGLOBAL 0
11391: # endif
11392: #endif
11393:
11394: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11395: find out it does not work in some platform. */
11396: #ifndef LT_DLLAZY_OR_NOW
11397: # ifdef RTLD_LAZY
11398: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11399: # else
11400: # ifdef DL_LAZY
11401: # define LT_DLLAZY_OR_NOW DL_LAZY
11402: # else
11403: # ifdef RTLD_NOW
11404: # define LT_DLLAZY_OR_NOW RTLD_NOW
11405: # else
11406: # ifdef DL_NOW
11407: # define LT_DLLAZY_OR_NOW DL_NOW
11408: # else
11409: # define LT_DLLAZY_OR_NOW 0
11410: # endif
11411: # endif
11412: # endif
11413: # endif
11414: #endif
11415:
1.1.1.2 misho 11416: /* When -fvisbility=hidden is used, assume the code has been annotated
11417: correspondingly for the symbols needed. */
11418: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11419: int fnord () __attribute__((visibility("default")));
11420: #endif
11421:
11422: int fnord () { return 42; }
1.1 misho 11423: int main ()
11424: {
11425: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11426: int status = $lt_dlunknown;
11427:
11428: if (self)
11429: {
11430: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.1.1.2 misho 11431: else
11432: {
11433: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11434: else puts (dlerror ());
11435: }
1.1 misho 11436: /* dlclose (self); */
11437: }
11438: else
11439: puts (dlerror ());
11440:
11441: return status;
11442: }
11443: _LT_EOF
11444: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11445: (eval $ac_link) 2>&5
11446: ac_status=$?
11447: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11449: (./conftest; exit; ) >&5 2>/dev/null
11450: lt_status=$?
11451: case x$lt_status in
11452: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11453: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11454: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11455: esac
11456: else :
11457: # compilation failed
11458: lt_cv_dlopen_self_static=no
11459: fi
11460: fi
11461: rm -fr conftest*
11462:
11463:
11464: fi
11465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11466: $as_echo "$lt_cv_dlopen_self_static" >&6; }
11467: fi
11468:
11469: CPPFLAGS="$save_CPPFLAGS"
11470: LDFLAGS="$save_LDFLAGS"
11471: LIBS="$save_LIBS"
11472: ;;
11473: esac
11474:
11475: case $lt_cv_dlopen_self in
11476: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11477: *) enable_dlopen_self=unknown ;;
11478: esac
11479:
11480: case $lt_cv_dlopen_self_static in
11481: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11482: *) enable_dlopen_self_static=unknown ;;
11483: esac
11484: fi
11485:
11486:
11487:
11488:
11489:
11490:
11491:
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502: striplib=
11503: old_striplib=
11504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11505: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11506: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11507: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11508: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11510: $as_echo "yes" >&6; }
11511: else
11512: # FIXME - insert some real tests, host_os isn't really good enough
11513: case $host_os in
11514: darwin*)
11515: if test -n "$STRIP" ; then
11516: striplib="$STRIP -x"
11517: old_striplib="$STRIP -S"
11518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519: $as_echo "yes" >&6; }
11520: else
11521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522: $as_echo "no" >&6; }
11523: fi
11524: ;;
11525: *)
11526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527: $as_echo "no" >&6; }
11528: ;;
11529: esac
11530: fi
11531:
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543: # Report which library types will actually be built
11544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11545: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11547: $as_echo "$can_build_shared" >&6; }
11548:
11549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11550: $as_echo_n "checking whether to build shared libraries... " >&6; }
11551: test "$can_build_shared" = "no" && enable_shared=no
11552:
11553: # On AIX, shared libraries and static libraries use the same namespace, and
11554: # are all built from PIC.
11555: case $host_os in
11556: aix3*)
11557: test "$enable_shared" = yes && enable_static=no
11558: if test -n "$RANLIB"; then
11559: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11560: postinstall_cmds='$RANLIB $lib'
11561: fi
11562: ;;
11563:
11564: aix[4-9]*)
11565: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11566: test "$enable_shared" = yes && enable_static=no
11567: fi
11568: ;;
11569: esac
11570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11571: $as_echo "$enable_shared" >&6; }
11572:
11573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11574: $as_echo_n "checking whether to build static libraries... " >&6; }
11575: # Make sure either enable_shared or enable_static is yes.
11576: test "$enable_shared" = yes || enable_static=yes
11577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11578: $as_echo "$enable_static" >&6; }
11579:
11580:
11581:
11582:
11583: fi
11584: ac_ext=c
11585: ac_cpp='$CPP $CPPFLAGS'
11586: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11589:
11590: CC="$lt_save_CC"
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
1.1.1.2 misho 11604:
11605:
1.1 misho 11606: ac_config_commands="$ac_config_commands libtool"
11607:
11608:
11609:
11610:
11611: # Only expand once:
11612:
11613:
11614: for ac_prog in 'bison -y' byacc
11615: do
11616: # Extract the first word of "$ac_prog", so it can be a program name with args.
11617: set dummy $ac_prog; ac_word=$2
11618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 11620: if ${ac_cv_prog_YACC+:} false; then :
1.1 misho 11621: $as_echo_n "(cached) " >&6
11622: else
11623: if test -n "$YACC"; then
11624: ac_cv_prog_YACC="$YACC" # Let the user override the test.
11625: else
11626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627: for as_dir in $PATH
11628: do
11629: IFS=$as_save_IFS
11630: test -z "$as_dir" && as_dir=.
11631: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 11632: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 11633: ac_cv_prog_YACC="$ac_prog"
11634: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11635: break 2
11636: fi
11637: done
11638: done
11639: IFS=$as_save_IFS
11640:
11641: fi
11642: fi
11643: YACC=$ac_cv_prog_YACC
11644: if test -n "$YACC"; then
11645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11646: $as_echo "$YACC" >&6; }
11647: else
11648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649: $as_echo "no" >&6; }
11650: fi
11651:
11652:
11653: test -n "$YACC" && break
11654: done
11655: test -n "$YACC" || YACC="yacc"
11656:
11657: for ac_prog in flex lex
11658: do
11659: # Extract the first word of "$ac_prog", so it can be a program name with args.
11660: set dummy $ac_prog; ac_word=$2
11661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 11663: if ${ac_cv_prog_LEX+:} false; then :
1.1 misho 11664: $as_echo_n "(cached) " >&6
11665: else
11666: if test -n "$LEX"; then
11667: ac_cv_prog_LEX="$LEX" # Let the user override the test.
11668: else
11669: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670: for as_dir in $PATH
11671: do
11672: IFS=$as_save_IFS
11673: test -z "$as_dir" && as_dir=.
11674: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 11675: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 11676: ac_cv_prog_LEX="$ac_prog"
11677: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11678: break 2
11679: fi
11680: done
11681: done
11682: IFS=$as_save_IFS
11683:
11684: fi
11685: fi
11686: LEX=$ac_cv_prog_LEX
11687: if test -n "$LEX"; then
11688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11689: $as_echo "$LEX" >&6; }
11690: else
11691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692: $as_echo "no" >&6; }
11693: fi
11694:
11695:
11696: test -n "$LEX" && break
11697: done
11698: test -n "$LEX" || LEX=":"
11699:
11700: if test "x$LEX" != "x:"; then
11701: cat >conftest.l <<_ACEOF
11702: %%
11703: a { ECHO; }
11704: b { REJECT; }
11705: c { yymore (); }
11706: d { yyless (1); }
1.1.1.2 misho 11707: e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
11708: yyless ((input () != 0)); }
1.1 misho 11709: f { unput (yytext[0]); }
11710: . { BEGIN INITIAL; }
11711: %%
11712: #ifdef YYTEXT_POINTER
11713: extern char *yytext;
11714: #endif
11715: int
11716: main (void)
11717: {
11718: return ! yylex () + ! yywrap ();
11719: }
11720: _ACEOF
11721: { { ac_try="$LEX conftest.l"
11722: case "(($ac_try" in
11723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724: *) ac_try_echo=$ac_try;;
11725: esac
11726: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11727: $as_echo "$ac_try_echo"; } >&5
11728: (eval "$LEX conftest.l") 2>&5
11729: ac_status=$?
11730: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731: test $ac_status = 0; }
11732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11733: $as_echo_n "checking lex output file root... " >&6; }
1.1.1.2 misho 11734: if ${ac_cv_prog_lex_root+:} false; then :
1.1 misho 11735: $as_echo_n "(cached) " >&6
11736: else
11737:
11738: if test -f lex.yy.c; then
11739: ac_cv_prog_lex_root=lex.yy
11740: elif test -f lexyy.c; then
11741: ac_cv_prog_lex_root=lexyy
11742: else
11743: as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
11744: fi
11745: fi
11746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11747: $as_echo "$ac_cv_prog_lex_root" >&6; }
11748: LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11749:
11750: if test -z "${LEXLIB+set}"; then
11751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11752: $as_echo_n "checking lex library... " >&6; }
1.1.1.2 misho 11753: if ${ac_cv_lib_lex+:} false; then :
1.1 misho 11754: $as_echo_n "(cached) " >&6
11755: else
11756:
11757: ac_save_LIBS=$LIBS
11758: ac_cv_lib_lex='none needed'
11759: for ac_lib in '' -lfl -ll; do
11760: LIBS="$ac_lib $ac_save_LIBS"
11761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762: /* end confdefs.h. */
11763: `cat $LEX_OUTPUT_ROOT.c`
11764: _ACEOF
11765: if ac_fn_c_try_link "$LINENO"; then :
11766: ac_cv_lib_lex=$ac_lib
11767: fi
11768: rm -f core conftest.err conftest.$ac_objext \
11769: conftest$ac_exeext conftest.$ac_ext
11770: test "$ac_cv_lib_lex" != 'none needed' && break
11771: done
11772: LIBS=$ac_save_LIBS
11773:
11774: fi
11775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11776: $as_echo "$ac_cv_lib_lex" >&6; }
11777: test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11778: fi
11779:
11780:
11781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11782: $as_echo_n "checking whether yytext is a pointer... " >&6; }
1.1.1.2 misho 11783: if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
1.1 misho 11784: $as_echo_n "(cached) " >&6
11785: else
11786: # POSIX says lex can declare yytext either as a pointer or an array; the
11787: # default is implementation-dependent. Figure out which it is, since
11788: # not all implementations provide the %pointer and %array declarations.
11789: ac_cv_prog_lex_yytext_pointer=no
11790: ac_save_LIBS=$LIBS
11791: LIBS="$LEXLIB $ac_save_LIBS"
11792: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793: /* end confdefs.h. */
1.1.1.2 misho 11794:
11795: #define YYTEXT_POINTER 1
1.1 misho 11796: `cat $LEX_OUTPUT_ROOT.c`
11797: _ACEOF
11798: if ac_fn_c_try_link "$LINENO"; then :
11799: ac_cv_prog_lex_yytext_pointer=yes
11800: fi
11801: rm -f core conftest.err conftest.$ac_objext \
11802: conftest$ac_exeext conftest.$ac_ext
11803: LIBS=$ac_save_LIBS
11804:
11805: fi
11806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11807: $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11808: if test $ac_cv_prog_lex_yytext_pointer = yes; then
11809:
11810: $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11811:
11812: fi
11813: rm -f conftest.l $LEX_OUTPUT_ROOT.c
11814:
11815: fi
11816: if test "$LEX" = :; then
11817: LEX=${am_missing_run}flex
11818: fi
11819:
11820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11821: $as_echo_n "checking for egrep... " >&6; }
1.1.1.2 misho 11822: if ${ac_cv_path_EGREP+:} false; then :
1.1 misho 11823: $as_echo_n "(cached) " >&6
11824: else
11825: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11826: then ac_cv_path_EGREP="$GREP -E"
11827: else
11828: if test -z "$EGREP"; then
11829: ac_path_EGREP_found=false
11830: # Loop through the user's path and test for each of PROGNAME-LIST
11831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11833: do
11834: IFS=$as_save_IFS
11835: test -z "$as_dir" && as_dir=.
11836: for ac_prog in egrep; do
11837: for ac_exec_ext in '' $ac_executable_extensions; do
11838: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.2 misho 11839: as_fn_executable_p "$ac_path_EGREP" || continue
1.1 misho 11840: # Check for GNU ac_path_EGREP and select it if it is found.
11841: # Check for GNU $ac_path_EGREP
11842: case `"$ac_path_EGREP" --version 2>&1` in
11843: *GNU*)
11844: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11845: *)
11846: ac_count=0
11847: $as_echo_n 0123456789 >"conftest.in"
11848: while :
11849: do
11850: cat "conftest.in" "conftest.in" >"conftest.tmp"
11851: mv "conftest.tmp" "conftest.in"
11852: cp "conftest.in" "conftest.nl"
11853: $as_echo 'EGREP' >> "conftest.nl"
11854: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11855: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11856: as_fn_arith $ac_count + 1 && ac_count=$as_val
11857: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11858: # Best one so far, save it but keep looking for a better one
11859: ac_cv_path_EGREP="$ac_path_EGREP"
11860: ac_path_EGREP_max=$ac_count
11861: fi
11862: # 10*(2^10) chars as input seems more than enough
11863: test $ac_count -gt 10 && break
11864: done
11865: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11866: esac
11867:
11868: $ac_path_EGREP_found && break 3
11869: done
11870: done
11871: done
11872: IFS=$as_save_IFS
11873: if test -z "$ac_cv_path_EGREP"; then
11874: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11875: fi
11876: else
11877: ac_cv_path_EGREP=$EGREP
11878: fi
11879:
11880: fi
11881: fi
11882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11883: $as_echo "$ac_cv_path_EGREP" >&6; }
11884: EGREP="$ac_cv_path_EGREP"
11885:
11886:
11887:
11888: CFLAGS_ADD="$CFLAGS_ADD -Wall -Werror -Wno-unused"
11889:
11890: case $host in
11891: *netbsd*)
11892: LDFLAGS="-Wl,-R/usr/pkg/lib $LDFLAGS"
11893: ;;
11894: *linux*)
11895: LIBS="$LIBS -lresolv"
11896: INSTALL_OPTS="-o bin -g bin"
11897: INCLUDE_GLIBC="include-glibc"
11898: RPM="rpm"
11899:
11900:
11901:
11902: ;;
11903: *darwin*)
11904: LIBS="$LIBS -lresolv"
11905: ;;
11906: esac
11907:
11908: # Look up some IPsec-related headers
11909: ac_fn_c_check_header_mongrel "$LINENO" "net/pfkeyv2.h" "ac_cv_header_net_pfkeyv2_h" "$ac_includes_default"
1.1.1.2 misho 11910: if test "x$ac_cv_header_net_pfkeyv2_h" = xyes; then :
1.1 misho 11911: have_net_pfkey=yes
11912: else
11913: have_net_pfkey=no
11914: fi
11915:
11916:
11917: ac_fn_c_check_header_mongrel "$LINENO" "netinet/ipsec.h" "ac_cv_header_netinet_ipsec_h" "$ac_includes_default"
1.1.1.2 misho 11918: if test "x$ac_cv_header_netinet_ipsec_h" = xyes; then :
1.1 misho 11919: have_netinet_ipsec=yes
11920: else
11921: have_netinet_ipsec=no
11922: fi
11923:
11924:
11925: ac_fn_c_check_header_mongrel "$LINENO" "netinet6/ipsec.h" "ac_cv_header_netinet6_ipsec_h" "$ac_includes_default"
1.1.1.2 misho 11926: if test "x$ac_cv_header_netinet6_ipsec_h" = xyes; then :
1.1 misho 11927: have_netinet6_ipsec=yes
11928: else
11929: have_netinet6_ipsec=no
11930: fi
11931:
11932:
11933: ac_fn_c_check_header_mongrel "$LINENO" "netipsec/ipsec.h" "ac_cv_header_netipsec_ipsec_h" "$ac_includes_default"
1.1.1.2 misho 11934: if test "x$ac_cv_header_netipsec_ipsec_h" = xyes; then :
1.1 misho 11935: have_netipsec_ipsec=yes
11936: else
11937: have_netipsec_ipsec=no
11938: fi
11939:
11940:
11941:
11942: # FreeBSD >=7 has only <netipsec/ipsec.h>
11943: # NetBSD has <netinet6/ipsec.h> but not <netinet/ipsec.h>
11944: # XXX some *BSD still have both <netinet6/ipsec.h> and <netipsec/ipsec.h>,
11945: # we can't decide which one to use (actually <netinet6/ipsec.h>)
11946:
11947:
11948: if test "$have_netinet_ipsec$have_netinet6_ipsec$have_netipsec_ipsec" = nonoyes; then
11949: have_netinet_ipsec=yes
11950:
11951: $as_echo "#define PATH_IPSEC_H <netipsec/ipsec.h>" >>confdefs.h
11952:
11953: else
11954: if test "$have_netinet_ipsec$have_netinet6_ipsec" = noyes; then
11955: have_netinet_ipsec=yes
11956:
11957: $as_echo "#define PATH_IPSEC_H <netinet6/ipsec.h>" >>confdefs.h
11958:
11959: else
11960: # have_netinet_ipsec will be checked a few lines below
11961:
11962: $as_echo "#define PATH_IPSEC_H <netinet/ipsec.h>" >>confdefs.h
11963:
11964: fi
11965: fi
11966:
11967: case "$host_os" in
11968: *linux*)
11969:
11970: # Check whether --with-kernel-headers was given.
11971: if test "${with_kernel_headers+set}" = set; then :
11972: withval=$with_kernel_headers; KERNEL_INCLUDE="$with_kernel_headers"
11973: CONFIGURE_AMFLAGS="--with-kernel-headers=$with_kernel_headers"
11974:
11975: else
11976: KERNEL_INCLUDE="/lib/modules/`uname -r`/build/include"
11977: fi
11978:
11979:
11980: as_ac_Header=`$as_echo "ac_cv_header_$KERNEL_INCLUDE/linux/pfkeyv2.h" | $as_tr_sh`
11981: ac_fn_c_check_header_mongrel "$LINENO" "$KERNEL_INCLUDE/linux/pfkeyv2.h" "$as_ac_Header" "$ac_includes_default"
11982: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11983:
11984: else
11985: ac_fn_c_check_header_mongrel "$LINENO" "/usr/src/linux/include/linux/pfkeyv2.h" "ac_cv_header__usr_src_linux_include_linux_pfkeyv2_h" "$ac_includes_default"
1.1.1.2 misho 11986: if test "x$ac_cv_header__usr_src_linux_include_linux_pfkeyv2_h" = xyes; then :
1.1 misho 11987: KERNEL_INCLUDE=/usr/src/linux/include
11988: else
11989: as_fn_error $? "Unable to find linux-2.6 kernel headers. Aborting." "$LINENO" 5
11990: fi
11991:
11992:
11993: fi
11994:
11995:
11996:
11997: # We need the configure script to run with correct kernel headers.
11998: # However we don't want to point to kernel source tree in compile time,
11999: # i.e. this will be removed from CPPFLAGS at the end of configure.
12000: CPPFLAGS="-I$KERNEL_INCLUDE $CPPFLAGS"
12001:
12002: ac_fn_c_check_member "$LINENO" "struct sadb_x_policy" "sadb_x_policy_priority" "ac_cv_member_struct_sadb_x_policy_sadb_x_policy_priority" "#include \"$KERNEL_INCLUDE/linux/pfkeyv2.h\"
12003: "
1.1.1.2 misho 12004: if test "x$ac_cv_member_struct_sadb_x_policy_sadb_x_policy_priority" = xyes; then :
1.1 misho 12005:
12006: $as_echo "#define HAVE_PFKEY_POLICY_PRIORITY /**/" >>confdefs.h
12007:
12008: fi
12009:
12010:
12011: GLIBC_BUGS='-include ${top_srcdir}/src/include-glibc/glibc-bugs.h -I${top_srcdir}/src/include-glibc -I${top_builddir}/src/include-glibc'
12012: GLIBC_BUGS_LOCAL="-include ${srcdir-.}/src/include-glibc/glibc-bugs.h -I${srcdir-.}/src/include-glibc -I./src/include-glibc"
12013: CPPFLAGS="$GLIBC_BUGS_LOCAL $CPPFLAGS"
12014: CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
12015:
12016: ;;
12017: *)
12018: if test "$have_net_pfkey$have_netinet_ipsec" != yesyes; then
12019: if test "$have_net_pfkey" = yes; then
12020: as_fn_error $? "Found net/pfkeyv2.h but not netinet/ipsec.h. Aborting." "$LINENO" 5
12021: else
12022: as_fn_error $? "Found netinet/ipsec.h but not net/pfkeyv2.h. Aborting." "$LINENO" 5
12023: fi
12024: fi
12025: ;;
12026: esac
12027:
12028: ### Some basic toolchain checks
12029:
12030: # Checks for header files.
12031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12032: $as_echo_n "checking for ANSI C header files... " >&6; }
1.1.1.2 misho 12033: if ${ac_cv_header_stdc+:} false; then :
1.1 misho 12034: $as_echo_n "(cached) " >&6
12035: else
12036: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037: /* end confdefs.h. */
12038: #include <stdlib.h>
12039: #include <stdarg.h>
12040: #include <string.h>
12041: #include <float.h>
12042:
12043: int
12044: main ()
12045: {
12046:
12047: ;
12048: return 0;
12049: }
12050: _ACEOF
12051: if ac_fn_c_try_compile "$LINENO"; then :
12052: ac_cv_header_stdc=yes
12053: else
12054: ac_cv_header_stdc=no
12055: fi
12056: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057:
12058: if test $ac_cv_header_stdc = yes; then
12059: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061: /* end confdefs.h. */
12062: #include <string.h>
12063:
12064: _ACEOF
12065: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12066: $EGREP "memchr" >/dev/null 2>&1; then :
12067:
12068: else
12069: ac_cv_header_stdc=no
12070: fi
12071: rm -f conftest*
12072:
12073: fi
12074:
12075: if test $ac_cv_header_stdc = yes; then
12076: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12077: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078: /* end confdefs.h. */
12079: #include <stdlib.h>
12080:
12081: _ACEOF
12082: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12083: $EGREP "free" >/dev/null 2>&1; then :
12084:
12085: else
12086: ac_cv_header_stdc=no
12087: fi
12088: rm -f conftest*
12089:
12090: fi
12091:
12092: if test $ac_cv_header_stdc = yes; then
12093: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12094: if test "$cross_compiling" = yes; then :
12095: :
12096: else
12097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098: /* end confdefs.h. */
12099: #include <ctype.h>
12100: #include <stdlib.h>
12101: #if ((' ' & 0x0FF) == 0x020)
12102: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12103: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12104: #else
12105: # define ISLOWER(c) \
12106: (('a' <= (c) && (c) <= 'i') \
12107: || ('j' <= (c) && (c) <= 'r') \
12108: || ('s' <= (c) && (c) <= 'z'))
12109: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12110: #endif
12111:
12112: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12113: int
12114: main ()
12115: {
12116: int i;
12117: for (i = 0; i < 256; i++)
12118: if (XOR (islower (i), ISLOWER (i))
12119: || toupper (i) != TOUPPER (i))
12120: return 2;
12121: return 0;
12122: }
12123: _ACEOF
12124: if ac_fn_c_try_run "$LINENO"; then :
12125:
12126: else
12127: ac_cv_header_stdc=no
12128: fi
12129: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12130: conftest.$ac_objext conftest.beam conftest.$ac_ext
12131: fi
12132:
12133: fi
12134: fi
12135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12136: $as_echo "$ac_cv_header_stdc" >&6; }
12137: if test $ac_cv_header_stdc = yes; then
12138:
12139: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12140:
12141: fi
12142:
12143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12144: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.1.1.2 misho 12145: if ${ac_cv_header_sys_wait_h+:} false; then :
1.1 misho 12146: $as_echo_n "(cached) " >&6
12147: else
12148: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149: /* end confdefs.h. */
12150: #include <sys/types.h>
12151: #include <sys/wait.h>
12152: #ifndef WEXITSTATUS
12153: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12154: #endif
12155: #ifndef WIFEXITED
12156: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12157: #endif
12158:
12159: int
12160: main ()
12161: {
12162: int s;
12163: wait (&s);
12164: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12165: ;
12166: return 0;
12167: }
12168: _ACEOF
12169: if ac_fn_c_try_compile "$LINENO"; then :
12170: ac_cv_header_sys_wait_h=yes
12171: else
12172: ac_cv_header_sys_wait_h=no
12173: fi
12174: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175: fi
12176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12177: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12178: if test $ac_cv_header_sys_wait_h = yes; then
12179:
12180: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12181:
12182: fi
12183:
12184: for ac_header in limits.h sys/time.h unistd.h stdarg.h varargs.h
12185: do :
12186: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12187: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12188: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12189: cat >>confdefs.h <<_ACEOF
12190: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12191: _ACEOF
12192:
12193: fi
12194:
12195: done
12196:
12197: for ac_header in shadow.h
12198: do :
12199: ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
1.1.1.2 misho 12200: if test "x$ac_cv_header_shadow_h" = xyes; then :
1.1 misho 12201: cat >>confdefs.h <<_ACEOF
12202: #define HAVE_SHADOW_H 1
12203: _ACEOF
12204:
12205: fi
12206:
12207: done
12208:
12209:
12210: # Checks for typedefs, structures, and compiler characteristics.
12211: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12212: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.1.1.2 misho 12213: if ${ac_cv_c_const+:} false; then :
1.1 misho 12214: $as_echo_n "(cached) " >&6
12215: else
12216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217: /* end confdefs.h. */
12218:
12219: int
12220: main ()
12221: {
1.1.1.2 misho 12222:
1.1 misho 12223: #ifndef __cplusplus
1.1.1.2 misho 12224: /* Ultrix mips cc rejects this sort of thing. */
1.1 misho 12225: typedef int charset[2];
1.1.1.2 misho 12226: const charset cs = { 0, 0 };
1.1 misho 12227: /* SunOS 4.1.1 cc rejects this. */
12228: char const *const *pcpcc;
12229: char **ppc;
12230: /* NEC SVR4.0.2 mips cc rejects this. */
12231: struct point {int x, y;};
12232: static struct point const zero = {0,0};
12233: /* AIX XL C 1.02.0.0 rejects this.
12234: It does not let you subtract one const X* pointer from another in
12235: an arm of an if-expression whose if-part is not a constant
12236: expression */
12237: const char *g = "string";
12238: pcpcc = &g + (g ? g-g : 0);
12239: /* HPUX 7.0 cc rejects these. */
12240: ++pcpcc;
12241: ppc = (char**) pcpcc;
12242: pcpcc = (char const *const *) ppc;
1.1.1.2 misho 12243: { /* SCO 3.2v4 cc rejects this sort of thing. */
12244: char tx;
12245: char *t = &tx;
1.1 misho 12246: char const *s = 0 ? (char *) 0 : (char const *) 0;
12247:
12248: *t++ = 0;
12249: if (s) return 0;
12250: }
12251: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12252: int x[] = {25, 17};
12253: const int *foo = &x[0];
12254: ++foo;
12255: }
12256: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12257: typedef const int *iptr;
12258: iptr p = 0;
12259: ++p;
12260: }
1.1.1.2 misho 12261: { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
1.1 misho 12262: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1.1.1.2 misho 12263: struct s { int j; const int *ap[3]; } bx;
12264: struct s *b = &bx; b->j = 5;
1.1 misho 12265: }
12266: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12267: const int foo = 10;
12268: if (!foo) return 0;
12269: }
12270: return !cs[0] && !zero.x;
12271: #endif
12272:
12273: ;
12274: return 0;
12275: }
12276: _ACEOF
12277: if ac_fn_c_try_compile "$LINENO"; then :
12278: ac_cv_c_const=yes
12279: else
12280: ac_cv_c_const=no
12281: fi
12282: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283: fi
12284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12285: $as_echo "$ac_cv_c_const" >&6; }
12286: if test $ac_cv_c_const = no; then
12287:
12288: $as_echo "#define const /**/" >>confdefs.h
12289:
12290: fi
12291:
12292: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.1.1.2 misho 12293: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1 misho 12294:
12295: else
12296:
12297: cat >>confdefs.h <<_ACEOF
12298: #define pid_t int
12299: _ACEOF
12300:
12301: fi
12302:
12303: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.1.1.2 misho 12304: if test "x$ac_cv_type_size_t" = xyes; then :
1.1 misho 12305:
12306: else
12307:
12308: cat >>confdefs.h <<_ACEOF
12309: #define size_t unsigned int
12310: _ACEOF
12311:
12312: fi
12313:
12314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12315: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.1.1.2 misho 12316: if ${ac_cv_header_time+:} false; then :
1.1 misho 12317: $as_echo_n "(cached) " >&6
12318: else
12319: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320: /* end confdefs.h. */
12321: #include <sys/types.h>
12322: #include <sys/time.h>
12323: #include <time.h>
12324:
12325: int
12326: main ()
12327: {
12328: if ((struct tm *) 0)
12329: return 0;
12330: ;
12331: return 0;
12332: }
12333: _ACEOF
12334: if ac_fn_c_try_compile "$LINENO"; then :
12335: ac_cv_header_time=yes
12336: else
12337: ac_cv_header_time=no
12338: fi
12339: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340: fi
12341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12342: $as_echo "$ac_cv_header_time" >&6; }
12343: if test $ac_cv_header_time = yes; then
12344:
12345: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12346:
12347: fi
12348:
12349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12350: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.1.1.2 misho 12351: if ${ac_cv_struct_tm+:} false; then :
1.1 misho 12352: $as_echo_n "(cached) " >&6
12353: else
12354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355: /* end confdefs.h. */
12356: #include <sys/types.h>
12357: #include <time.h>
12358:
12359: int
12360: main ()
12361: {
12362: struct tm tm;
12363: int *p = &tm.tm_sec;
12364: return !p;
12365: ;
12366: return 0;
12367: }
12368: _ACEOF
12369: if ac_fn_c_try_compile "$LINENO"; then :
12370: ac_cv_struct_tm=time.h
12371: else
12372: ac_cv_struct_tm=sys/time.h
12373: fi
12374: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375: fi
12376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12377: $as_echo "$ac_cv_struct_tm" >&6; }
12378: if test $ac_cv_struct_tm = sys/time.h; then
12379:
12380: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12381:
12382: fi
12383:
12384:
12385: # Checks for library functions.
12386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12387: $as_echo_n "checking for working memcmp... " >&6; }
1.1.1.2 misho 12388: if ${ac_cv_func_memcmp_working+:} false; then :
1.1 misho 12389: $as_echo_n "(cached) " >&6
12390: else
12391: if test "$cross_compiling" = yes; then :
12392: ac_cv_func_memcmp_working=no
12393: else
12394: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395: /* end confdefs.h. */
12396: $ac_includes_default
12397: int
12398: main ()
12399: {
12400:
12401: /* Some versions of memcmp are not 8-bit clean. */
12402: char c0 = '\100', c1 = '\200', c2 = '\201';
12403: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12404: return 1;
12405:
12406: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12407: or more and with at least one buffer not starting on a 4-byte boundary.
12408: William Lewis provided this test program. */
12409: {
12410: char foo[21];
12411: char bar[21];
12412: int i;
12413: for (i = 0; i < 4; i++)
12414: {
12415: char *a = foo + i;
12416: char *b = bar + i;
12417: strcpy (a, "--------01111111");
12418: strcpy (b, "--------10000000");
12419: if (memcmp (a, b, 16) >= 0)
12420: return 1;
12421: }
12422: return 0;
12423: }
12424:
12425: ;
12426: return 0;
12427: }
12428: _ACEOF
12429: if ac_fn_c_try_run "$LINENO"; then :
12430: ac_cv_func_memcmp_working=yes
12431: else
12432: ac_cv_func_memcmp_working=no
12433: fi
12434: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12435: conftest.$ac_objext conftest.beam conftest.$ac_ext
12436: fi
12437:
12438: fi
12439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12440: $as_echo "$ac_cv_func_memcmp_working" >&6; }
12441: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12442: *" memcmp.$ac_objext "* ) ;;
12443: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12444: ;;
12445: esac
12446:
12447:
12448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12449: $as_echo_n "checking return type of signal handlers... " >&6; }
1.1.1.2 misho 12450: if ${ac_cv_type_signal+:} false; then :
1.1 misho 12451: $as_echo_n "(cached) " >&6
12452: else
12453: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454: /* end confdefs.h. */
12455: #include <sys/types.h>
12456: #include <signal.h>
12457:
12458: int
12459: main ()
12460: {
12461: return *(signal (0, 0)) (0) == 1;
12462: ;
12463: return 0;
12464: }
12465: _ACEOF
12466: if ac_fn_c_try_compile "$LINENO"; then :
12467: ac_cv_type_signal=int
12468: else
12469: ac_cv_type_signal=void
12470: fi
12471: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472: fi
12473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12474: $as_echo "$ac_cv_type_signal" >&6; }
12475:
12476: cat >>confdefs.h <<_ACEOF
12477: #define RETSIGTYPE $ac_cv_type_signal
12478: _ACEOF
12479:
12480:
12481: for ac_func in vprintf
12482: do :
12483: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.1.1.2 misho 12484: if test "x$ac_cv_func_vprintf" = xyes; then :
1.1 misho 12485: cat >>confdefs.h <<_ACEOF
12486: #define HAVE_VPRINTF 1
12487: _ACEOF
12488:
12489: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.1.1.2 misho 12490: if test "x$ac_cv_func__doprnt" = xyes; then :
1.1 misho 12491:
12492: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12493:
12494: fi
12495:
12496: fi
12497: done
12498:
12499:
12500: for ac_func in gettimeofday select socket strerror strtol strtoul strlcpy strlcat
12501: do :
12502: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12503: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12504: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12505: cat >>confdefs.h <<_ACEOF
12506: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12507: _ACEOF
12508:
12509: fi
12510: done
12511:
12512: ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
1.1.1.2 misho 12513: if test "x$ac_cv_func_strdup" = xyes; then :
1.1 misho 12514: $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12515:
12516: else
12517: case " $LIBOBJS " in
12518: *" strdup.$ac_objext "* ) ;;
12519: *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12520: ;;
12521: esac
12522:
12523: fi
12524:
12525:
12526:
12527: saved_CFLAGS=$CFLAGS
12528: CFLAGS="-Wall -O2"
12529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
12530: $as_echo_n "checking for an implementation of va_copy()... " >&6; }
1.1.1.2 misho 12531: if ${ac_cv_va_copy+:} false; then :
1.1 misho 12532: $as_echo_n "(cached) " >&6
12533: else
12534:
12535: if test "$cross_compiling" = yes; then :
12536: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling... Unable to test va_copy" >&5
12537: $as_echo "$as_me: WARNING: Cross compiling... Unable to test va_copy" >&2;}
12538: ac_cv_va_copy=no
12539: else
12540: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541: /* end confdefs.h. */
12542: #include <stdarg.h>
12543: void func (int i, ...) {
12544: va_list args1, args2;
12545: va_start (args1, i);
12546: va_copy (args2, args1);
12547: if (va_arg (args1, int) != 1 || va_arg (args2, int) != 1)
12548: exit (1);
12549: va_end (args1);
12550: va_end (args2);
12551: }
12552: int main() {
12553: func (0, 1);
12554: return 0;
12555: }
12556: _ACEOF
12557: if ac_fn_c_try_run "$LINENO"; then :
12558: ac_cv_va_copy=yes
12559: else
12560: ac_cv_va_copy=no
12561: fi
12562: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12563: conftest.$ac_objext conftest.beam conftest.$ac_ext
12564: fi
12565:
12566:
12567: fi
12568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_va_copy" >&5
12569: $as_echo "$ac_cv_va_copy" >&6; }
12570: if test x$ac_cv_va_copy != xyes; then
12571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
12572: $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
1.1.1.2 misho 12573: if ${ac_cv___va_copy+:} false; then :
1.1 misho 12574: $as_echo_n "(cached) " >&6
12575: else
12576:
12577: if test "$cross_compiling" = yes; then :
12578: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling... Unable to test __va_copy" >&5
12579: $as_echo "$as_me: WARNING: Cross compiling... Unable to test __va_copy" >&2;}
12580: ac_cv___va_copy=no
12581: else
12582: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583: /* end confdefs.h. */
12584: #include <stdarg.h>
12585: void func (int i, ...) {
12586: va_list args1, args2;
12587: va_start (args1, i);
12588: __va_copy (args2, args1);
12589: if (va_arg (args1, int) != 1 || va_arg (args2, int) != 1)
12590: exit (1);
12591: va_end (args1);
12592: va_end (args2);
12593: }
12594: int main() {
12595: func (0, 1);
12596: return 0;
12597: }
12598: _ACEOF
12599: if ac_fn_c_try_run "$LINENO"; then :
12600: ac_cv___va_copy=yes
12601: else
12602: ac_cv___va_copy=no
12603: fi
12604: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12605: conftest.$ac_objext conftest.beam conftest.$ac_ext
12606: fi
12607:
12608:
12609: fi
12610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___va_copy" >&5
12611: $as_echo "$ac_cv___va_copy" >&6; }
12612: fi
12613:
12614: if test "x$ac_cv_va_copy" = "xyes"; then
12615: va_copy_func=va_copy
12616: elif test "x$ac_cv___va_copy" = "xyes"; then
12617: va_copy_func=__va_copy
12618: fi
12619:
12620: if test -n "$va_copy_func"; then
12621:
12622: cat >>confdefs.h <<_ACEOF
12623: #define VA_COPY $va_copy_func
12624: _ACEOF
12625:
12626: else
12627: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmm, neither va_copy() nor __va_copy() found." >&5
12628: $as_echo "$as_me: WARNING: Hmm, neither va_copy() nor __va_copy() found." >&2;}
12629: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using a generic fallback." >&5
12630: $as_echo "$as_me: WARNING: Using a generic fallback." >&2;}
12631: fi
12632: CFLAGS=$saved_CFLAGS
12633: unset saved_CFLAGS
12634:
12635:
12636: # Check if printf accepts "%z" type modifier for size_t argument
12637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf accepts %z" >&5
12638: $as_echo_n "checking if printf accepts %z... " >&6; }
12639: saved_CFLAGS=$CFLAGS
12640: CFLAGS="$CFLAGS -Wall -Werror"
12641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642: /* end confdefs.h. */
12643:
12644: #include <stdio.h>
12645:
12646: int
12647: main ()
12648: {
12649:
12650: printf("%zu\n", (size_t)-1);
12651:
12652: ;
12653: return 0;
12654: }
12655: _ACEOF
12656: if ac_fn_c_try_compile "$LINENO"; then :
12657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658: $as_echo "yes" >&6; }
12659: else
12660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661: $as_echo "no" >&6; };
12662: CFLAGS_ADD="$CFLAGS_ADD -Wno-format";
12663:
12664: $as_echo "#define BROKEN_PRINTF /**/" >>confdefs.h
12665:
12666:
12667: fi
12668: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669: CFLAGS=$saved_CFLAGS
12670:
12671: # Can we use __func__ macro?
12672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __func__ is available" >&5
12673: $as_echo_n "checking if __func__ is available... " >&6; }
12674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675: /* end confdefs.h. */
12676: #include <stdio.h>
12677:
12678: int
12679: main ()
12680: {
12681: char *x = __func__;
12682: ;
12683: return 0;
12684: }
12685: _ACEOF
12686: if ac_fn_c_try_compile "$LINENO"; then :
12687:
12688: $as_echo "#define HAVE_FUNC_MACRO /**/" >>confdefs.h
12689:
12690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12691: $as_echo "yes" >&6; }
12692: else
12693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694: $as_echo "no" >&6; }
12695: fi
12696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697:
12698: # Check if readline support is requested
12699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if readline support is requested" >&5
12700: $as_echo_n "checking if readline support is requested... " >&6; }
12701:
12702: # Check whether --with-readline was given.
12703: if test "${with_readline+set}" = set; then :
12704: withval=$with_readline; with_readline="$withval"
12705: else
12706: with_readline="yes"
12707: fi
12708:
12709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_readline" >&5
12710: $as_echo "$with_readline" >&6; }
12711:
12712: # Is readline available?
12713: if test $with_readline != "no"; then
12714: ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
1.1.1.2 misho 12715: if test "x$ac_cv_header_readline_readline_h" = xyes; then :
1.1 misho 12716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12717: $as_echo_n "checking for readline in -lreadline... " >&6; }
1.1.1.2 misho 12718: if ${ac_cv_lib_readline_readline+:} false; then :
1.1 misho 12719: $as_echo_n "(cached) " >&6
12720: else
12721: ac_check_lib_save_LIBS=$LIBS
12722: LIBS="-lreadline $LIBS"
12723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724: /* end confdefs.h. */
12725:
12726: /* Override any GCC internal prototype to avoid an error.
12727: Use char because int might match the return type of a GCC
12728: builtin and then its argument prototype would still apply. */
12729: #ifdef __cplusplus
12730: extern "C"
12731: #endif
12732: char readline ();
12733: int
12734: main ()
12735: {
12736: return readline ();
12737: ;
12738: return 0;
12739: }
12740: _ACEOF
12741: if ac_fn_c_try_link "$LINENO"; then :
12742: ac_cv_lib_readline_readline=yes
12743: else
12744: ac_cv_lib_readline_readline=no
12745: fi
12746: rm -f core conftest.err conftest.$ac_objext \
12747: conftest$ac_exeext conftest.$ac_ext
12748: LIBS=$ac_check_lib_save_LIBS
12749: fi
12750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12751: $as_echo "$ac_cv_lib_readline_readline" >&6; }
1.1.1.2 misho 12752: if test "x$ac_cv_lib_readline_readline" = xyes; then :
1.1 misho 12753:
12754:
12755: $as_echo "#define HAVE_READLINE /**/" >>confdefs.h
12756:
12757: LIBS="$LIBS -lreadline"
12758:
12759: fi
12760:
12761: fi
12762:
12763:
12764: fi
12765:
12766:
12767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-flex option is specified" >&5
12768: $as_echo_n "checking if --with-flex option is specified... " >&6; }
12769:
12770: # Check whether --with-flexdir was given.
12771: if test "${with_flexdir+set}" = set; then :
12772: withval=$with_flexdir; flexdir="$withval"
12773: fi
12774:
12775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flexdir-dirdefault}" >&5
12776: $as_echo "${flexdir-dirdefault}" >&6; }
12777:
12778: if test "x$flexdir" != "x"; then
12779: LIBS="$LIBS $flexdir/libfl.a"
12780: fi
12781:
12782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-flexlib option is specified" >&5
12783: $as_echo_n "checking if --with-flexlib option is specified... " >&6; }
12784:
12785: # Check whether --with-flexlib was given.
12786: if test "${with_flexlib+set}" = set; then :
12787: withval=$with_flexlib; flexlib="$withval"
12788: fi
12789:
12790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flexlib-default}" >&5
12791: $as_echo "${flexlib-default}" >&6; }
12792:
12793: if test "x$flexlib" != "x"; then
12794: LIBS="$LIBS $flexlib"
12795: fi
12796:
12797: # Check if a different OpenSSL directory was specified
12798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-openssl option is specified" >&5
12799: $as_echo_n "checking if --with-openssl option is specified... " >&6; }
12800:
12801: # Check whether --with-openssl was given.
12802: if test "${with_openssl+set}" = set; then :
12803: withval=$with_openssl; crypto_dir=$withval
12804: fi
12805:
12806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crypto_dir-default}" >&5
12807: $as_echo "${crypto_dir-default}" >&6; }
12808:
12809: if test "x$crypto_dir" != "x"; then
12810: LIBS="$LIBS -L${crypto_dir}/lib"
12811: CPPFLAGS="-I${crypto_dir}/include $CPPFLAGS"
12812: fi
12813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking openssl version" >&5
12814: $as_echo_n "checking openssl version... " >&6; }
12815:
12816: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817: /* end confdefs.h. */
12818: #include <openssl/opensslv.h>
12819:
12820: int
12821: main ()
12822: {
1.1.1.2 misho 12823: #if OPENSSL_VERSION_NUMBER < 0x0090813fL
1.1 misho 12824: #error OpenSSL version is too old ...
12825: #endif
12826: ;
12827: return 0;
12828: }
12829: _ACEOF
12830: if ac_fn_c_try_compile "$LINENO"; then :
12831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12832: $as_echo "ok" >&6; }
12833: else
12834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
12835: $as_echo "too old" >&6; }
1.1.1.2 misho 12836: as_fn_error $? "OpenSSL version must be 0.9.8s or higher. Aborting." "$LINENO" 5
1.1 misho 12837:
12838: fi
12839: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840:
12841: for ac_header in openssl/engine.h
12842: do :
12843: ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
1.1.1.2 misho 12844: if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
1.1 misho 12845: cat >>confdefs.h <<_ACEOF
12846: #define HAVE_OPENSSL_ENGINE_H 1
12847: _ACEOF
12848:
12849: fi
12850:
12851: done
12852:
12853:
12854: # checking rijndael
12855: for ac_header in openssl/aes.h
12856: do :
12857: ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
1.1.1.2 misho 12858: if test "x$ac_cv_header_openssl_aes_h" = xyes; then :
1.1 misho 12859: cat >>confdefs.h <<_ACEOF
12860: #define HAVE_OPENSSL_AES_H 1
12861: _ACEOF
12862:
12863: else
12864: CRYPTOBJS="$CRYPTOBJS rijndael-api-fst.o rijndael-alg-fst.o"
12865: fi
12866:
12867: done
12868:
12869:
12870: # checking sha2
12871: { $as_echo "$as_me:${as_lineno-$LINENO}: checking sha2 support" >&5
12872: $as_echo_n "checking sha2 support... " >&6; }
12873:
12874: $as_echo "#define WITH_SHA2 /**/" >>confdefs.h
12875:
12876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877: $as_echo "yes" >&6; }
12878: ac_fn_c_check_header_mongrel "$LINENO" "openssl/sha2.h" "ac_cv_header_openssl_sha2_h" "$ac_includes_default"
1.1.1.2 misho 12879: if test "x$ac_cv_header_openssl_sha2_h" = xyes; then :
1.1 misho 12880:
12881: else
12882:
12883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sha2 is defined in openssl/sha.h" >&5
12884: $as_echo_n "checking if sha2 is defined in openssl/sha.h... " >&6; }
12885: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886: /* end confdefs.h. */
12887:
12888: #ifdef HAVE_SYS_TYPES_H
12889: #include <sys/types.h>
12890: #endif
12891: #include <openssl/sha.h>
12892:
12893: int
12894: main ()
12895: {
12896:
12897: SHA256_CTX ctx;
12898:
12899: ;
12900: return 0;
12901: }
12902: _ACEOF
12903: if ac_fn_c_try_compile "$LINENO"; then :
12904:
12905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12906: $as_echo "yes" >&6; }
12907:
12908: $as_echo "#define HAVE_SHA2_IN_SHA_H /**/" >>confdefs.h
12909:
12910:
12911: else
12912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913: $as_echo "no" >&6; }
12914: case " $LIBOBJS " in
12915: *" sha2.$ac_objext "* ) ;;
12916: *) LIBOBJS="$LIBOBJS sha2.$ac_objext"
12917: ;;
12918: esac
12919:
12920: CRYPTOBJS="$CRYPTOBJS sha2.o"
12921:
12922: fi
12923: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924:
12925: CPPFLAGS_ADD="$CPPFLAGS_ADD -I\${top_srcdir}/src/racoon/missing"
12926:
12927: fi
12928:
12929:
12930:
12931:
12932: # checking camellia
12933: for ac_header in openssl/camellia.h
12934: do :
12935: ac_fn_c_check_header_mongrel "$LINENO" "openssl/camellia.h" "ac_cv_header_openssl_camellia_h" "$ac_includes_default"
1.1.1.2 misho 12936: if test "x$ac_cv_header_openssl_camellia_h" = xyes; then :
1.1 misho 12937: cat >>confdefs.h <<_ACEOF
12938: #define HAVE_OPENSSL_CAMELLIA_H 1
12939: _ACEOF
12940:
12941: fi
12942:
12943: done
12944:
12945:
12946:
12947: # Option --enable-adminport
12948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-adminport option is specified" >&5
12949: $as_echo_n "checking if --enable-adminport option is specified... " >&6; }
12950: # Check whether --enable-adminport was given.
12951: if test "${enable_adminport+set}" = set; then :
12952: enableval=$enable_adminport;
12953: else
12954: enable_adminport=no
12955: fi
12956:
12957: if test $enable_adminport = "yes"; then
12958:
12959: $as_echo "#define ENABLE_ADMINPORT /**/" >>confdefs.h
12960:
12961: fi
12962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_adminport" >&5
12963: $as_echo "$enable_adminport" >&6; }
12964:
12965: # Option RC5
12966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-rc5 option is specified" >&5
12967: $as_echo_n "checking if --enable-rc5 option is specified... " >&6; }
12968: # Check whether --enable-rc5 was given.
12969: if test "${enable_rc5+set}" = set; then :
12970: enableval=$enable_rc5;
12971: else
12972: enable_rc5=no
12973: fi
12974:
12975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rc5" >&5
12976: $as_echo "$enable_rc5" >&6; }
12977:
12978: if test $enable_rc5 = "yes"; then
12979: for ac_header in openssl/rc5.h
12980: do :
12981: ac_fn_c_check_header_mongrel "$LINENO" "openssl/rc5.h" "ac_cv_header_openssl_rc5_h" "$ac_includes_default"
1.1.1.2 misho 12982: if test "x$ac_cv_header_openssl_rc5_h" = xyes; then :
1.1 misho 12983: cat >>confdefs.h <<_ACEOF
12984: #define HAVE_OPENSSL_RC5_H 1
12985: _ACEOF
12986:
12987: fi
12988:
12989: done
12990:
12991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RC5_32_encrypt in -lcrypto_rc5" >&5
12992: $as_echo_n "checking for RC5_32_encrypt in -lcrypto_rc5... " >&6; }
1.1.1.2 misho 12993: if ${ac_cv_lib_crypto_rc5_RC5_32_encrypt+:} false; then :
1.1 misho 12994: $as_echo_n "(cached) " >&6
12995: else
12996: ac_check_lib_save_LIBS=$LIBS
12997: LIBS="-lcrypto_rc5 $LIBS"
12998: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999: /* end confdefs.h. */
13000:
13001: /* Override any GCC internal prototype to avoid an error.
13002: Use char because int might match the return type of a GCC
13003: builtin and then its argument prototype would still apply. */
13004: #ifdef __cplusplus
13005: extern "C"
13006: #endif
13007: char RC5_32_encrypt ();
13008: int
13009: main ()
13010: {
13011: return RC5_32_encrypt ();
13012: ;
13013: return 0;
13014: }
13015: _ACEOF
13016: if ac_fn_c_try_link "$LINENO"; then :
13017: ac_cv_lib_crypto_rc5_RC5_32_encrypt=yes
13018: else
13019: ac_cv_lib_crypto_rc5_RC5_32_encrypt=no
13020: fi
13021: rm -f core conftest.err conftest.$ac_objext \
13022: conftest$ac_exeext conftest.$ac_ext
13023: LIBS=$ac_check_lib_save_LIBS
13024: fi
13025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_rc5_RC5_32_encrypt" >&5
13026: $as_echo "$ac_cv_lib_crypto_rc5_RC5_32_encrypt" >&6; }
1.1.1.2 misho 13027: if test "x$ac_cv_lib_crypto_rc5_RC5_32_encrypt" = xyes; then :
1.1 misho 13028: EXTRA_CRYPTO="$EXTRA_CRYPTO -lcrypto_rc5"
13029: fi
13030:
13031: fi
13032:
13033: # Option IDEA
13034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-idea option is specified" >&5
13035: $as_echo_n "checking if --enable-idea option is specified... " >&6; }
13036: # Check whether --enable-idea was given.
13037: if test "${enable_idea+set}" = set; then :
13038: enableval=$enable_idea;
13039: else
13040: enable_idea=no
13041: fi
13042:
13043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_idea" >&5
13044: $as_echo "$enable_idea" >&6; }
13045:
13046: if test $enable_idea = "yes"; then
13047: for ac_header in openssl/idea.h
13048: do :
13049: ac_fn_c_check_header_mongrel "$LINENO" "openssl/idea.h" "ac_cv_header_openssl_idea_h" "$ac_includes_default"
1.1.1.2 misho 13050: if test "x$ac_cv_header_openssl_idea_h" = xyes; then :
1.1 misho 13051: cat >>confdefs.h <<_ACEOF
13052: #define HAVE_OPENSSL_IDEA_H 1
13053: _ACEOF
13054:
13055: fi
13056:
13057: done
13058:
13059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idea_encrypt in -lcrypto_idea" >&5
13060: $as_echo_n "checking for idea_encrypt in -lcrypto_idea... " >&6; }
1.1.1.2 misho 13061: if ${ac_cv_lib_crypto_idea_idea_encrypt+:} false; then :
1.1 misho 13062: $as_echo_n "(cached) " >&6
13063: else
13064: ac_check_lib_save_LIBS=$LIBS
13065: LIBS="-lcrypto_idea $LIBS"
13066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067: /* end confdefs.h. */
13068:
13069: /* Override any GCC internal prototype to avoid an error.
13070: Use char because int might match the return type of a GCC
13071: builtin and then its argument prototype would still apply. */
13072: #ifdef __cplusplus
13073: extern "C"
13074: #endif
13075: char idea_encrypt ();
13076: int
13077: main ()
13078: {
13079: return idea_encrypt ();
13080: ;
13081: return 0;
13082: }
13083: _ACEOF
13084: if ac_fn_c_try_link "$LINENO"; then :
13085: ac_cv_lib_crypto_idea_idea_encrypt=yes
13086: else
13087: ac_cv_lib_crypto_idea_idea_encrypt=no
13088: fi
13089: rm -f core conftest.err conftest.$ac_objext \
13090: conftest$ac_exeext conftest.$ac_ext
13091: LIBS=$ac_check_lib_save_LIBS
13092: fi
13093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_idea_idea_encrypt" >&5
13094: $as_echo "$ac_cv_lib_crypto_idea_idea_encrypt" >&6; }
1.1.1.2 misho 13095: if test "x$ac_cv_lib_crypto_idea_idea_encrypt" = xyes; then :
1.1 misho 13096: EXTRA_CRYPTO="$EXTRA_CRYPTO -lcrypto_idea"
13097: fi
13098:
13099: fi
13100:
13101:
13102: # For dynamic libradius
13103:
13104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto containing MD5_Init" >&5
13105: $as_echo_n "checking for crypto containing MD5_Init... " >&6; }
1.1.1.2 misho 13106: if ${ac_cv_search_MD5_Init+:} false; then :
1.1 misho 13107: $as_echo_n "(cached) " >&6
13108: else
13109: ac_func_search_save_LIBS="$LIBS"
13110: ac_cv_search_MD5_Init="no"
13111: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112: /* end confdefs.h. */
13113:
13114: /* Override any GCC internal prototype to avoid an error.
13115: Use char because int might match the return type of a GCC
13116: builtin and then its argument prototype would still apply. */
13117: #ifdef __cplusplus
13118: extern "C"
13119: #endif
13120: char MD5_Init ();
13121: int
13122: main ()
13123: {
13124: return MD5_Init ();
13125: ;
13126: return 0;
13127: }
13128: _ACEOF
13129: if ac_fn_c_try_link "$LINENO"; then :
13130: ac_cv_search_MD5_Init="none required"
13131: else
13132: LIBS="-lcrypto $LIBS"
13133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134: /* end confdefs.h. */
13135:
13136: /* Override any GCC internal prototype to avoid an error.
13137: Use char because int might match the return type of a GCC
13138: builtin and then its argument prototype would still apply. */
13139: #ifdef __cplusplus
13140: extern "C"
13141: #endif
13142: char MD5_Init ();
13143: int
13144: main ()
13145: {
13146: return MD5_Init ();
13147: ;
13148: return 0;
13149: }
13150: _ACEOF
13151: if ac_fn_c_try_link "$LINENO"; then :
13152: ac_cv_search_MD5_Init="-lcrypto"
13153: fi
13154: rm -f core conftest.err conftest.$ac_objext \
13155: conftest$ac_exeext conftest.$ac_ext
13156: fi
13157: rm -f core conftest.err conftest.$ac_objext \
13158: conftest$ac_exeext conftest.$ac_ext
13159: LIBS="$ac_func_search_save_LIBS"
13160:
13161: fi
13162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5_Init" >&5
13163: $as_echo "$ac_cv_search_MD5_Init" >&6; }
13164: if test "$ac_cv_search_MD5_Init" != "no"; then
13165: test "$ac_cv_search_MD5_Init" = "none required" || LIBS="$ac_cv_search_MD5_Init $LIBS"
13166:
13167: else :
13168:
13169: fi
13170:
13171: # Check if we need -lutil for login(3)
13172:
13173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for util containing login" >&5
13174: $as_echo_n "checking for util containing login... " >&6; }
1.1.1.2 misho 13175: if ${ac_cv_search_login+:} false; then :
1.1 misho 13176: $as_echo_n "(cached) " >&6
13177: else
13178: ac_func_search_save_LIBS="$LIBS"
13179: ac_cv_search_login="no"
13180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181: /* end confdefs.h. */
13182:
13183: /* Override any GCC internal prototype to avoid an error.
13184: Use char because int might match the return type of a GCC
13185: builtin and then its argument prototype would still apply. */
13186: #ifdef __cplusplus
13187: extern "C"
13188: #endif
13189: char login ();
13190: int
13191: main ()
13192: {
13193: return login ();
13194: ;
13195: return 0;
13196: }
13197: _ACEOF
13198: if ac_fn_c_try_link "$LINENO"; then :
13199: ac_cv_search_login="none required"
13200: else
13201: LIBS="-lutil $LIBS"
13202: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203: /* end confdefs.h. */
13204:
13205: /* Override any GCC internal prototype to avoid an error.
13206: Use char because int might match the return type of a GCC
13207: builtin and then its argument prototype would still apply. */
13208: #ifdef __cplusplus
13209: extern "C"
13210: #endif
13211: char login ();
13212: int
13213: main ()
13214: {
13215: return login ();
13216: ;
13217: return 0;
13218: }
13219: _ACEOF
13220: if ac_fn_c_try_link "$LINENO"; then :
13221: ac_cv_search_login="-lutil"
13222: fi
13223: rm -f core conftest.err conftest.$ac_objext \
13224: conftest$ac_exeext conftest.$ac_ext
13225: fi
13226: rm -f core conftest.err conftest.$ac_objext \
13227: conftest$ac_exeext conftest.$ac_ext
13228: LIBS="$ac_func_search_save_LIBS"
13229:
13230: fi
13231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
13232: $as_echo "$ac_cv_search_login" >&6; }
13233: if test "$ac_cv_search_login" != "no"; then
13234: test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
13235:
13236: else :
13237:
13238: fi
13239:
13240: # Specify libiconv prefix
13241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-libiconv option is specified" >&5
13242: $as_echo_n "checking if --with-libiconv option is specified... " >&6; }
13243:
13244: # Check whether --with-libiconv was given.
13245: if test "${with_libiconv+set}" = set; then :
13246: withval=$with_libiconv; libiconv_dir=$withval
13247: else
13248: libiconv_dir=no
13249: fi
13250:
13251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiconv_dir" >&5
13252: $as_echo "$libiconv_dir" >&6; }
13253: if test "$libiconv_dir" != "no"; then
13254: if test "$libiconv_dir" = "yes" ; then
13255: libiconv_dir="";
13256: fi;
13257: if test "x$libiconv_dir" = "x"; then
13258:
13259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv containing iconv_open" >&5
13260: $as_echo_n "checking for iconv containing iconv_open... " >&6; }
1.1.1.2 misho 13261: if ${ac_cv_search_iconv_open+:} false; then :
1.1 misho 13262: $as_echo_n "(cached) " >&6
13263: else
13264: ac_func_search_save_LIBS="$LIBS"
13265: ac_cv_search_iconv_open="no"
13266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267: /* end confdefs.h. */
13268:
13269: /* Override any GCC internal prototype to avoid an error.
13270: Use char because int might match the return type of a GCC
13271: builtin and then its argument prototype would still apply. */
13272: #ifdef __cplusplus
13273: extern "C"
13274: #endif
13275: char iconv_open ();
13276: int
13277: main ()
13278: {
13279: return iconv_open ();
13280: ;
13281: return 0;
13282: }
13283: _ACEOF
13284: if ac_fn_c_try_link "$LINENO"; then :
13285: ac_cv_search_iconv_open="none required"
13286: else
13287: LIBS="-liconv $LIBS"
13288: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289: /* end confdefs.h. */
13290:
13291: /* Override any GCC internal prototype to avoid an error.
13292: Use char because int might match the return type of a GCC
13293: builtin and then its argument prototype would still apply. */
13294: #ifdef __cplusplus
13295: extern "C"
13296: #endif
13297: char iconv_open ();
13298: int
13299: main ()
13300: {
13301: return iconv_open ();
13302: ;
13303: return 0;
13304: }
13305: _ACEOF
13306: if ac_fn_c_try_link "$LINENO"; then :
13307: ac_cv_search_iconv_open="-liconv"
13308: fi
13309: rm -f core conftest.err conftest.$ac_objext \
13310: conftest$ac_exeext conftest.$ac_ext
13311: fi
13312: rm -f core conftest.err conftest.$ac_objext \
13313: conftest$ac_exeext conftest.$ac_ext
13314: LIBS="$ac_func_search_save_LIBS"
13315:
13316: fi
13317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
13318: $as_echo "$ac_cv_search_iconv_open" >&6; }
13319: if test "$ac_cv_search_iconv_open" != "no"; then
13320: test "$ac_cv_search_iconv_open" = "none required" || LIBS="$ac_cv_search_iconv_open $LIBS"
13321:
13322: else :
13323:
13324: fi
13325: else
13326: if test -d "$libiconv_dir/lib" -a \
13327: -d "$libiconv_dir/include" ; then
13328:
13329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv containing iconv_open" >&5
13330: $as_echo_n "checking for iconv containing iconv_open... " >&6; }
1.1.1.2 misho 13331: if ${ac_cv_search_iconv_open+:} false; then :
1.1 misho 13332: $as_echo_n "(cached) " >&6
13333: else
13334: ac_func_search_save_LIBS="$LIBS"
13335: ac_cv_search_iconv_open="no"
13336: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337: /* end confdefs.h. */
13338:
13339: /* Override any GCC internal prototype to avoid an error.
13340: Use char because int might match the return type of a GCC
13341: builtin and then its argument prototype would still apply. */
13342: #ifdef __cplusplus
13343: extern "C"
13344: #endif
13345: char iconv_open ();
13346: int
13347: main ()
13348: {
13349: return iconv_open ();
13350: ;
13351: return 0;
13352: }
13353: _ACEOF
13354: if ac_fn_c_try_link "$LINENO"; then :
13355: ac_cv_search_iconv_open="none required"
13356: else
13357: LIBS="-liconv $LIBS"
13358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359: /* end confdefs.h. */
13360:
13361: /* Override any GCC internal prototype to avoid an error.
13362: Use char because int might match the return type of a GCC
13363: builtin and then its argument prototype would still apply. */
13364: #ifdef __cplusplus
13365: extern "C"
13366: #endif
13367: char iconv_open ();
13368: int
13369: main ()
13370: {
13371: return iconv_open ();
13372: ;
13373: return 0;
13374: }
13375: _ACEOF
13376: if ac_fn_c_try_link "$LINENO"; then :
13377: ac_cv_search_iconv_open="-liconv"
13378: fi
13379: rm -f core conftest.err conftest.$ac_objext \
13380: conftest$ac_exeext conftest.$ac_ext
13381: fi
13382: rm -f core conftest.err conftest.$ac_objext \
13383: conftest$ac_exeext conftest.$ac_ext
13384: LIBS="$ac_func_search_save_LIBS"
13385: test "$ac_cv_search_iconv_open" = "no" && for i in "$libiconv_dir/lib"; do
13386: LIBS="-L$i -liconv $ac_func_search_save_LIBS"
13387: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388: /* end confdefs.h. */
13389:
13390: /* Override any GCC internal prototype to avoid an error.
13391: Use char because int might match the return type of a GCC
13392: builtin and then its argument prototype would still apply. */
13393: #ifdef __cplusplus
13394: extern "C"
13395: #endif
13396: char iconv_open ();
13397: int
13398: main ()
13399: {
13400: return iconv_open ();
13401: ;
13402: return 0;
13403: }
13404: _ACEOF
13405: if ac_fn_c_try_link "$LINENO"; then :
13406: ac_cv_search_iconv_open="-L$i -liconv"
13407: break
13408: fi
13409: rm -f core conftest.err conftest.$ac_objext \
13410: conftest$ac_exeext conftest.$ac_ext
13411: done
13412: LIBS="$ac_func_search_save_LIBS"
13413: fi
13414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
13415: $as_echo "$ac_cv_search_iconv_open" >&6; }
13416: if test "$ac_cv_search_iconv_open" != "no"; then
13417: test "$ac_cv_search_iconv_open" = "none required" || LIBS="$ac_cv_search_iconv_open $LIBS"
13418:
13419: else :
13420:
13421: fi
13422: CPPFLAGS_ADD="$CPPFLAGS_ADD -I$libiconv_dir/include"
13423: else
13424: as_fn_error $? "ICONV libs or includes not found. Aborting." "$LINENO" 5
13425: fi
13426: fi
13427: LIBS="$LIBS -L$libiconv_dir/lib -R$libiconv_dir/lib -liconv"
13428: for ac_func in iconv_open
13429: do :
13430: ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
1.1.1.2 misho 13431: if test "x$ac_cv_func_iconv_open" = xyes; then :
1.1 misho 13432: cat >>confdefs.h <<_ACEOF
13433: #define HAVE_ICONV_OPEN 1
13434: _ACEOF
13435:
13436: fi
13437: done
13438:
13439: fi
13440:
13441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-hybrid option is specified" >&5
13442: $as_echo_n "checking if --enable-hybrid option is specified... " >&6; }
13443: # Check whether --enable-hybrid was given.
13444: if test "${enable_hybrid+set}" = set; then :
13445: enableval=$enable_hybrid;
13446: else
13447: enable_hybrid=no
13448: fi
13449:
13450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hybrid" >&5
13451: $as_echo "$enable_hybrid" >&6; }
13452:
13453: if test "x$enable_hybrid" = "xyes"; then
13454: case $host in
13455: *darwin*)
13456: ;;
13457: *)
13458: LIBS="$LIBS -lcrypt";
13459: ;;
13460: esac
13461: HYBRID_OBJS="isakmp_xauth.o isakmp_cfg.o isakmp_unity.o throttle.o"
13462:
13463:
13464: $as_echo "#define ENABLE_HYBRID /**/" >>confdefs.h
13465:
13466: fi
13467:
13468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-frag option is specified" >&5
13469: $as_echo_n "checking if --enable-frag option is specified... " >&6; }
13470: # Check whether --enable-frag was given.
13471: if test "${enable_frag+set}" = set; then :
13472: enableval=$enable_frag;
13473: else
13474: enable_frag=no
13475: fi
13476:
13477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frag" >&5
13478: $as_echo "$enable_frag" >&6; }
13479:
13480: if test "x$enable_frag" = "xyes"; then
13481: case $host in
13482: *darwin*)
13483: ;;
13484: *)
13485: LIBS="$LIBS -lcrypt";
13486: ;;
13487: esac
13488: FRAG_OBJS="isakmp_frag.o"
13489:
13490:
13491: $as_echo "#define ENABLE_FRAG /**/" >>confdefs.h
13492:
13493: fi
13494:
13495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-libradius option is specified" >&5
13496: $as_echo_n "checking if --with-libradius option is specified... " >&6; }
13497:
13498: # Check whether --with-libradius was given.
13499: if test "${with_libradius+set}" = set; then :
13500: withval=$with_libradius; libradius_dir=$withval
13501: else
13502: libradius_dir=no
13503: fi
13504:
13505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libradius_dir" >&5
13506: $as_echo "$libradius_dir" >&6; }
13507: if test "$libradius_dir" != "no"; then
13508: if test "$libradius_dir" = "yes" ; then
13509: libradius_dir="";
13510: fi;
13511: if test "x$libradius_dir" = "x"; then
13512:
13513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radius containing rad_create_request" >&5
13514: $as_echo_n "checking for radius containing rad_create_request... " >&6; }
1.1.1.2 misho 13515: if ${ac_cv_search_rad_create_request+:} false; then :
1.1 misho 13516: $as_echo_n "(cached) " >&6
13517: else
13518: ac_func_search_save_LIBS="$LIBS"
13519: ac_cv_search_rad_create_request="no"
13520: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521: /* end confdefs.h. */
13522:
13523: /* Override any GCC internal prototype to avoid an error.
13524: Use char because int might match the return type of a GCC
13525: builtin and then its argument prototype would still apply. */
13526: #ifdef __cplusplus
13527: extern "C"
13528: #endif
13529: char rad_create_request ();
13530: int
13531: main ()
13532: {
13533: return rad_create_request ();
13534: ;
13535: return 0;
13536: }
13537: _ACEOF
13538: if ac_fn_c_try_link "$LINENO"; then :
13539: ac_cv_search_rad_create_request="none required"
13540: else
13541: LIBS="-lradius $LIBS"
13542: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543: /* end confdefs.h. */
13544:
13545: /* Override any GCC internal prototype to avoid an error.
13546: Use char because int might match the return type of a GCC
13547: builtin and then its argument prototype would still apply. */
13548: #ifdef __cplusplus
13549: extern "C"
13550: #endif
13551: char rad_create_request ();
13552: int
13553: main ()
13554: {
13555: return rad_create_request ();
13556: ;
13557: return 0;
13558: }
13559: _ACEOF
13560: if ac_fn_c_try_link "$LINENO"; then :
13561: ac_cv_search_rad_create_request="-lradius"
13562: fi
13563: rm -f core conftest.err conftest.$ac_objext \
13564: conftest$ac_exeext conftest.$ac_ext
13565: fi
13566: rm -f core conftest.err conftest.$ac_objext \
13567: conftest$ac_exeext conftest.$ac_ext
13568: LIBS="$ac_func_search_save_LIBS"
13569:
13570: fi
13571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rad_create_request" >&5
13572: $as_echo "$ac_cv_search_rad_create_request" >&6; }
13573: if test "$ac_cv_search_rad_create_request" != "no"; then
13574: test "$ac_cv_search_rad_create_request" = "none required" || LIBS="$ac_cv_search_rad_create_request $LIBS"
13575:
13576: else :
13577:
13578: fi
13579: else
13580: if test -d "$libradius_dir/lib" -a \
13581: -d "$libradius_dir/include" ; then
13582:
13583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radius containing rad_create_request" >&5
13584: $as_echo_n "checking for radius containing rad_create_request... " >&6; }
1.1.1.2 misho 13585: if ${ac_cv_search_rad_create_request+:} false; then :
1.1 misho 13586: $as_echo_n "(cached) " >&6
13587: else
13588: ac_func_search_save_LIBS="$LIBS"
13589: ac_cv_search_rad_create_request="no"
13590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591: /* end confdefs.h. */
13592:
13593: /* Override any GCC internal prototype to avoid an error.
13594: Use char because int might match the return type of a GCC
13595: builtin and then its argument prototype would still apply. */
13596: #ifdef __cplusplus
13597: extern "C"
13598: #endif
13599: char rad_create_request ();
13600: int
13601: main ()
13602: {
13603: return rad_create_request ();
13604: ;
13605: return 0;
13606: }
13607: _ACEOF
13608: if ac_fn_c_try_link "$LINENO"; then :
13609: ac_cv_search_rad_create_request="none required"
13610: else
13611: LIBS="-lradius $LIBS"
13612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613: /* end confdefs.h. */
13614:
13615: /* Override any GCC internal prototype to avoid an error.
13616: Use char because int might match the return type of a GCC
13617: builtin and then its argument prototype would still apply. */
13618: #ifdef __cplusplus
13619: extern "C"
13620: #endif
13621: char rad_create_request ();
13622: int
13623: main ()
13624: {
13625: return rad_create_request ();
13626: ;
13627: return 0;
13628: }
13629: _ACEOF
13630: if ac_fn_c_try_link "$LINENO"; then :
13631: ac_cv_search_rad_create_request="-lradius"
13632: fi
13633: rm -f core conftest.err conftest.$ac_objext \
13634: conftest$ac_exeext conftest.$ac_ext
13635: fi
13636: rm -f core conftest.err conftest.$ac_objext \
13637: conftest$ac_exeext conftest.$ac_ext
13638: LIBS="$ac_func_search_save_LIBS"
13639: test "$ac_cv_search_rad_create_request" = "no" && for i in "$libradius_dir/lib"; do
13640: LIBS="-L$i -lradius $ac_func_search_save_LIBS"
13641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642: /* end confdefs.h. */
13643:
13644: /* Override any GCC internal prototype to avoid an error.
13645: Use char because int might match the return type of a GCC
13646: builtin and then its argument prototype would still apply. */
13647: #ifdef __cplusplus
13648: extern "C"
13649: #endif
13650: char rad_create_request ();
13651: int
13652: main ()
13653: {
13654: return rad_create_request ();
13655: ;
13656: return 0;
13657: }
13658: _ACEOF
13659: if ac_fn_c_try_link "$LINENO"; then :
13660: ac_cv_search_rad_create_request="-L$i -lradius"
13661: break
13662: fi
13663: rm -f core conftest.err conftest.$ac_objext \
13664: conftest$ac_exeext conftest.$ac_ext
13665: done
13666: LIBS="$ac_func_search_save_LIBS"
13667: fi
13668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rad_create_request" >&5
13669: $as_echo "$ac_cv_search_rad_create_request" >&6; }
13670: if test "$ac_cv_search_rad_create_request" != "no"; then
13671: test "$ac_cv_search_rad_create_request" = "none required" || LIBS="$ac_cv_search_rad_create_request $LIBS"
13672:
13673: else :
13674:
13675: fi
13676: CPPFLAGS_ADD="$CPPFLAGS_ADD -I$libradius_dir/include"
13677: else
13678: as_fn_error $? "RADIUS libs or includes not found. Aborting." "$LINENO" 5
13679: fi
13680: fi
13681:
13682: $as_echo "#define HAVE_LIBRADIUS /**/" >>confdefs.h
13683:
13684: LIBS="$LIBS -L$libradius_dir/lib -R$libradius_dir/lib -lradius"
13685: for ac_func in rad_create_request
13686: do :
13687: ac_fn_c_check_func "$LINENO" "rad_create_request" "ac_cv_func_rad_create_request"
1.1.1.2 misho 13688: if test "x$ac_cv_func_rad_create_request" = xyes; then :
1.1 misho 13689: cat >>confdefs.h <<_ACEOF
13690: #define HAVE_RAD_CREATE_REQUEST 1
13691: _ACEOF
13692:
13693: fi
13694: done
13695:
13696: fi
13697:
13698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-libpam option is specified" >&5
13699: $as_echo_n "checking if --with-libpam option is specified... " >&6; }
13700:
13701: # Check whether --with-libpam was given.
13702: if test "${with_libpam+set}" = set; then :
13703: withval=$with_libpam; libpam_dir=$withval
13704: else
13705: libpam_dir=no
13706: fi
13707:
13708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpam_dir" >&5
13709: $as_echo "$libpam_dir" >&6; }
13710: if test "$libpam_dir" != "no"; then
13711: if test "$libpam_dir" = "yes" ; then
13712: libpam_dir="";
13713: fi;
13714: if test "x$libpam_dir" = "x"; then
13715:
13716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam containing pam_start" >&5
13717: $as_echo_n "checking for pam containing pam_start... " >&6; }
1.1.1.2 misho 13718: if ${ac_cv_search_pam_start+:} false; then :
1.1 misho 13719: $as_echo_n "(cached) " >&6
13720: else
13721: ac_func_search_save_LIBS="$LIBS"
13722: ac_cv_search_pam_start="no"
13723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724: /* end confdefs.h. */
13725:
13726: /* Override any GCC internal prototype to avoid an error.
13727: Use char because int might match the return type of a GCC
13728: builtin and then its argument prototype would still apply. */
13729: #ifdef __cplusplus
13730: extern "C"
13731: #endif
13732: char pam_start ();
13733: int
13734: main ()
13735: {
13736: return pam_start ();
13737: ;
13738: return 0;
13739: }
13740: _ACEOF
13741: if ac_fn_c_try_link "$LINENO"; then :
13742: ac_cv_search_pam_start="none required"
13743: else
13744: LIBS="-lpam $LIBS"
13745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746: /* end confdefs.h. */
13747:
13748: /* Override any GCC internal prototype to avoid an error.
13749: Use char because int might match the return type of a GCC
13750: builtin and then its argument prototype would still apply. */
13751: #ifdef __cplusplus
13752: extern "C"
13753: #endif
13754: char pam_start ();
13755: int
13756: main ()
13757: {
13758: return pam_start ();
13759: ;
13760: return 0;
13761: }
13762: _ACEOF
13763: if ac_fn_c_try_link "$LINENO"; then :
13764: ac_cv_search_pam_start="-lpam"
13765: fi
13766: rm -f core conftest.err conftest.$ac_objext \
13767: conftest$ac_exeext conftest.$ac_ext
13768: fi
13769: rm -f core conftest.err conftest.$ac_objext \
13770: conftest$ac_exeext conftest.$ac_ext
13771: LIBS="$ac_func_search_save_LIBS"
13772:
13773: fi
13774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
13775: $as_echo "$ac_cv_search_pam_start" >&6; }
13776: if test "$ac_cv_search_pam_start" != "no"; then
13777: test "$ac_cv_search_pam_start" = "none required" || LIBS="$ac_cv_search_pam_start $LIBS"
13778:
13779: else :
13780:
13781: fi
13782: else
13783: if test -d "$libpam_dir/lib" -a \
13784: -d "$libpam_dir/include" ; then
13785:
13786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam containing pam_start" >&5
13787: $as_echo_n "checking for pam containing pam_start... " >&6; }
1.1.1.2 misho 13788: if ${ac_cv_search_pam_start+:} false; then :
1.1 misho 13789: $as_echo_n "(cached) " >&6
13790: else
13791: ac_func_search_save_LIBS="$LIBS"
13792: ac_cv_search_pam_start="no"
13793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794: /* end confdefs.h. */
13795:
13796: /* Override any GCC internal prototype to avoid an error.
13797: Use char because int might match the return type of a GCC
13798: builtin and then its argument prototype would still apply. */
13799: #ifdef __cplusplus
13800: extern "C"
13801: #endif
13802: char pam_start ();
13803: int
13804: main ()
13805: {
13806: return pam_start ();
13807: ;
13808: return 0;
13809: }
13810: _ACEOF
13811: if ac_fn_c_try_link "$LINENO"; then :
13812: ac_cv_search_pam_start="none required"
13813: else
13814: LIBS="-lpam $LIBS"
13815: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816: /* end confdefs.h. */
13817:
13818: /* Override any GCC internal prototype to avoid an error.
13819: Use char because int might match the return type of a GCC
13820: builtin and then its argument prototype would still apply. */
13821: #ifdef __cplusplus
13822: extern "C"
13823: #endif
13824: char pam_start ();
13825: int
13826: main ()
13827: {
13828: return pam_start ();
13829: ;
13830: return 0;
13831: }
13832: _ACEOF
13833: if ac_fn_c_try_link "$LINENO"; then :
13834: ac_cv_search_pam_start="-lpam"
13835: fi
13836: rm -f core conftest.err conftest.$ac_objext \
13837: conftest$ac_exeext conftest.$ac_ext
13838: fi
13839: rm -f core conftest.err conftest.$ac_objext \
13840: conftest$ac_exeext conftest.$ac_ext
13841: LIBS="$ac_func_search_save_LIBS"
13842: test "$ac_cv_search_pam_start" = "no" && for i in "$libpam_dir/lib"; do
13843: LIBS="-L$i -lpam $ac_func_search_save_LIBS"
13844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845: /* end confdefs.h. */
13846:
13847: /* Override any GCC internal prototype to avoid an error.
13848: Use char because int might match the return type of a GCC
13849: builtin and then its argument prototype would still apply. */
13850: #ifdef __cplusplus
13851: extern "C"
13852: #endif
13853: char pam_start ();
13854: int
13855: main ()
13856: {
13857: return pam_start ();
13858: ;
13859: return 0;
13860: }
13861: _ACEOF
13862: if ac_fn_c_try_link "$LINENO"; then :
13863: ac_cv_search_pam_start="-L$i -lpam"
13864: break
13865: fi
13866: rm -f core conftest.err conftest.$ac_objext \
13867: conftest$ac_exeext conftest.$ac_ext
13868: done
13869: LIBS="$ac_func_search_save_LIBS"
13870: fi
13871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
13872: $as_echo "$ac_cv_search_pam_start" >&6; }
13873: if test "$ac_cv_search_pam_start" != "no"; then
13874: test "$ac_cv_search_pam_start" = "none required" || LIBS="$ac_cv_search_pam_start $LIBS"
13875:
13876: else :
13877:
13878: fi
13879: CPPFLAGS_ADD="$CPPFLAGS_ADD -I$libpam_dir/include"
13880: else
13881: as_fn_error $? "PAM libs or includes not found. Aborting." "$LINENO" 5
13882: fi
13883: fi
13884:
13885: $as_echo "#define HAVE_LIBPAM /**/" >>confdefs.h
13886:
13887: LIBS="$LIBS -L$libpam_dir/lib -R$libpam_dir/lib -lpam"
13888: for ac_func in pam_start
13889: do :
13890: ac_fn_c_check_func "$LINENO" "pam_start" "ac_cv_func_pam_start"
1.1.1.2 misho 13891: if test "x$ac_cv_func_pam_start" = xyes; then :
1.1 misho 13892: cat >>confdefs.h <<_ACEOF
13893: #define HAVE_PAM_START 1
13894: _ACEOF
13895:
13896: fi
13897: done
13898:
13899: fi
13900:
13901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --with-libldap option is specified" >&5
13902: $as_echo_n "checking if --with-libldap option is specified... " >&6; }
13903:
13904: # Check whether --with-libldap was given.
13905: if test "${with_libldap+set}" = set; then :
13906: withval=$with_libldap; libldap_dir=$withval
13907: else
13908: libldap_dir=no
13909: fi
13910:
13911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libldap_dir" >&5
13912: $as_echo "$libldap_dir" >&6; }
13913: if test "$libldap_dir" != "no"; then
13914: if test "$libldap_dir" = "yes" ; then
13915: libldap_dir="";
13916: fi;
13917: if test "x$libldap_dir" = "x"; then
13918:
13919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap containing ldap_init" >&5
13920: $as_echo_n "checking for ldap containing ldap_init... " >&6; }
1.1.1.2 misho 13921: if ${ac_cv_search_ldap_init+:} false; then :
1.1 misho 13922: $as_echo_n "(cached) " >&6
13923: else
13924: ac_func_search_save_LIBS="$LIBS"
13925: ac_cv_search_ldap_init="no"
13926: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927: /* end confdefs.h. */
13928:
13929: /* Override any GCC internal prototype to avoid an error.
13930: Use char because int might match the return type of a GCC
13931: builtin and then its argument prototype would still apply. */
13932: #ifdef __cplusplus
13933: extern "C"
13934: #endif
13935: char ldap_init ();
13936: int
13937: main ()
13938: {
13939: return ldap_init ();
13940: ;
13941: return 0;
13942: }
13943: _ACEOF
13944: if ac_fn_c_try_link "$LINENO"; then :
13945: ac_cv_search_ldap_init="none required"
13946: else
13947: LIBS="-lldap $LIBS"
13948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949: /* end confdefs.h. */
13950:
13951: /* Override any GCC internal prototype to avoid an error.
13952: Use char because int might match the return type of a GCC
13953: builtin and then its argument prototype would still apply. */
13954: #ifdef __cplusplus
13955: extern "C"
13956: #endif
13957: char ldap_init ();
13958: int
13959: main ()
13960: {
13961: return ldap_init ();
13962: ;
13963: return 0;
13964: }
13965: _ACEOF
13966: if ac_fn_c_try_link "$LINENO"; then :
13967: ac_cv_search_ldap_init="-lldap"
13968: fi
13969: rm -f core conftest.err conftest.$ac_objext \
13970: conftest$ac_exeext conftest.$ac_ext
13971: fi
13972: rm -f core conftest.err conftest.$ac_objext \
13973: conftest$ac_exeext conftest.$ac_ext
13974: LIBS="$ac_func_search_save_LIBS"
13975:
13976: fi
13977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
13978: $as_echo "$ac_cv_search_ldap_init" >&6; }
13979: if test "$ac_cv_search_ldap_init" != "no"; then
13980: test "$ac_cv_search_ldap_init" = "none required" || LIBS="$ac_cv_search_ldap_init $LIBS"
13981:
13982: else :
13983:
13984: fi
13985: else
13986: if test -d "$libldap_dir/lib" -a \
13987: -d "$libldap_dir/include" ; then
13988:
13989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap containing ldap_init" >&5
13990: $as_echo_n "checking for ldap containing ldap_init... " >&6; }
1.1.1.2 misho 13991: if ${ac_cv_search_ldap_init+:} false; then :
1.1 misho 13992: $as_echo_n "(cached) " >&6
13993: else
13994: ac_func_search_save_LIBS="$LIBS"
13995: ac_cv_search_ldap_init="no"
13996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997: /* end confdefs.h. */
13998:
13999: /* Override any GCC internal prototype to avoid an error.
14000: Use char because int might match the return type of a GCC
14001: builtin and then its argument prototype would still apply. */
14002: #ifdef __cplusplus
14003: extern "C"
14004: #endif
14005: char ldap_init ();
14006: int
14007: main ()
14008: {
14009: return ldap_init ();
14010: ;
14011: return 0;
14012: }
14013: _ACEOF
14014: if ac_fn_c_try_link "$LINENO"; then :
14015: ac_cv_search_ldap_init="none required"
14016: else
14017: LIBS="-lldap $LIBS"
14018: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019: /* end confdefs.h. */
14020:
14021: /* Override any GCC internal prototype to avoid an error.
14022: Use char because int might match the return type of a GCC
14023: builtin and then its argument prototype would still apply. */
14024: #ifdef __cplusplus
14025: extern "C"
14026: #endif
14027: char ldap_init ();
14028: int
14029: main ()
14030: {
14031: return ldap_init ();
14032: ;
14033: return 0;
14034: }
14035: _ACEOF
14036: if ac_fn_c_try_link "$LINENO"; then :
14037: ac_cv_search_ldap_init="-lldap"
14038: fi
14039: rm -f core conftest.err conftest.$ac_objext \
14040: conftest$ac_exeext conftest.$ac_ext
14041: fi
14042: rm -f core conftest.err conftest.$ac_objext \
14043: conftest$ac_exeext conftest.$ac_ext
14044: LIBS="$ac_func_search_save_LIBS"
14045: test "$ac_cv_search_ldap_init" = "no" && for i in "$libldap_dir/lib"; do
14046: LIBS="-L$i -lldap $ac_func_search_save_LIBS"
14047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048: /* end confdefs.h. */
14049:
14050: /* Override any GCC internal prototype to avoid an error.
14051: Use char because int might match the return type of a GCC
14052: builtin and then its argument prototype would still apply. */
14053: #ifdef __cplusplus
14054: extern "C"
14055: #endif
14056: char ldap_init ();
14057: int
14058: main ()
14059: {
14060: return ldap_init ();
14061: ;
14062: return 0;
14063: }
14064: _ACEOF
14065: if ac_fn_c_try_link "$LINENO"; then :
14066: ac_cv_search_ldap_init="-L$i -lldap"
14067: break
14068: fi
14069: rm -f core conftest.err conftest.$ac_objext \
14070: conftest$ac_exeext conftest.$ac_ext
14071: done
14072: LIBS="$ac_func_search_save_LIBS"
14073: fi
14074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
14075: $as_echo "$ac_cv_search_ldap_init" >&6; }
14076: if test "$ac_cv_search_ldap_init" != "no"; then
14077: test "$ac_cv_search_ldap_init" = "none required" || LIBS="$ac_cv_search_ldap_init $LIBS"
14078:
14079: else :
14080:
14081: fi
14082: CPPFLAGS_ADD="$CPPFLAGS_ADD -I$libldap_dir/include"
14083: else
14084: as_fn_error $? "LDAP libs or includes not found. Aborting." "$LINENO" 5
14085: fi
14086: fi
14087:
14088: $as_echo "#define HAVE_LIBLDAP /**/" >>confdefs.h
14089:
14090: LIBS="$LIBS -L$libldap_dir/lib -R$libldap_dir/lib -lldap"
14091:
14092: saved_CFLAGS=$CFLAGS
14093: CFLAGS="$CFLAGS -Wall -Werror"
14094: saved_CPPFLAGS=$CPPFLAGS
14095: CPPFLAGS="$CPPFLAGS $CPPFLAGS_ADD"
14096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097: /* end confdefs.h. */
14098: #include <ldap.h>
14099: int
14100: main ()
14101: {
14102:
14103: #if LDAP_API_VERSION < 2004
14104: #error OpenLDAP version is too old ...
14105: #endif
14106:
14107: ;
14108: return 0;
14109: }
14110: _ACEOF
14111: if ac_fn_c_try_compile "$LINENO"; then :
14112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14113: $as_echo "ok" >&6; }
14114: else
14115:
14116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
14117: $as_echo "too old" >&6; }
14118: as_fn_error $? "OpenLDAP version must be 2.0 or higher. Aborting." "$LINENO" 5
14119:
14120: fi
14121: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122: CFLAGS=$saved_CFLAGS
14123: CPPFLAGS=$saved_CPPFLAGS
14124: fi
14125:
14126: # Check for Kerberos5 support
14127: # XXX This must come after all --with-* tests, else the
14128: # -liconv checks will not work
14129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-gssapi option is specified" >&5
14130: $as_echo_n "checking if --enable-gssapi option is specified... " >&6; }
14131: # Check whether --enable-gssapi was given.
14132: if test "${enable_gssapi+set}" = set; then :
14133: enableval=$enable_gssapi;
14134: else
14135: enable_gssapi=no
14136: fi
14137:
14138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gssapi" >&5
14139: $as_echo "$enable_gssapi" >&6; }
14140: # Extract the first word of "krb5-config", so it can be a program name with args.
14141: set dummy krb5-config; ac_word=$2
14142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 14144: if ${ac_cv_path_KRB5_CONFIG+:} false; then :
1.1 misho 14145: $as_echo_n "(cached) " >&6
14146: else
14147: case $KRB5_CONFIG in
14148: [\\/]* | ?:[\\/]*)
14149: ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
14150: ;;
14151: *)
14152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153: for as_dir in $PATH
14154: do
14155: IFS=$as_save_IFS
14156: test -z "$as_dir" && as_dir=.
14157: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 14158: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 14159: ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14160: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161: break 2
14162: fi
14163: done
14164: done
14165: IFS=$as_save_IFS
14166:
14167: test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
14168: ;;
14169: esac
14170: fi
14171: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
14172: if test -n "$KRB5_CONFIG"; then
14173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
14174: $as_echo "$KRB5_CONFIG" >&6; }
14175: else
14176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177: $as_echo "no" >&6; }
14178: fi
14179:
14180:
14181: if test "x$enable_gssapi" = "xyes"; then
14182: if test "$KRB5_CONFIG" != "no"; then
14183: krb5_incdir="`$KRB5_CONFIG --cflags gssapi`"
14184: krb5_libs="`$KRB5_CONFIG --libs gssapi`"
14185: else
14186: # No krb5-config; let's make some assumptions based on
14187: # the OS.
14188: case $host_os in
14189: netbsd*)
14190: krb5_incdir="-I/usr/include/krb5"
14191: krb5_libs="-lgssapi -lkrb5 -lcom_err -lroken -lasn1"
14192: ;;
14193: *)
14194: as_fn_error $? "krb5-config not found, but needed for GSSAPI support. Aborting." "$LINENO" 5
14195: ;;
14196: esac
14197: fi
14198: LIBS="$LIBS $krb5_libs"
14199: CPPFLAGS_ADD="$krb5_incdir $CPPFLAGS_ADD"
14200:
14201: $as_echo "#define HAVE_GSSAPI /**/" >>confdefs.h
14202:
14203:
14204: # Check if iconv 2nd argument needs const
14205: saved_CFLAGS=$CFLAGS
14206: CFLAGS="$CFLAGS -Wall -Werror"
14207: saved_CPPFLAGS=$CPPFLAGS
14208: CPPFLAGS="$CPPFLAGS $CPPFLAGS_ADD"
14209: ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
1.1.1.2 misho 14210: if test "x$ac_cv_header_iconv_h" = xyes; then :
1.1 misho 14211:
14212: else
14213: as_fn_error $? "iconv.h not found, but needed for GSSAPI support. Aborting." "$LINENO" 5
14214: fi
14215:
14216:
14217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv second argument needs const" >&5
14218: $as_echo_n "checking if iconv second argument needs const... " >&6; }
14219: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220: /* end confdefs.h. */
14221:
14222: #include <iconv.h>
14223: #include <stdio.h>
14224:
14225: int
14226: main ()
14227: {
14228:
14229: iconv_t cd = NULL;
14230: const char **src = NULL;
14231: size_t *srcleft = NULL;
14232: char **dst = NULL;
14233: size_t *dstleft = NULL;
14234:
14235: (void)iconv(cd, src, srcleft, dst, dstleft);
14236:
14237: ;
14238: return 0;
14239: }
14240: _ACEOF
14241: if ac_fn_c_try_compile "$LINENO"; then :
14242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14243: $as_echo "yes" >&6; }
14244:
14245: $as_echo "#define HAVE_ICONV_2ND_CONST /**/" >>confdefs.h
14246:
14247:
14248: else
14249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250: $as_echo "no" >&6; }
14251: fi
14252: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253: CFLAGS=$saved_CFLAGS
14254: CPPFLAGS=$saved_CPPFLAGS
14255:
14256: # libiconv is often integrated into libc. If a with-* option
14257: # caused a non libc-based iconv.h to be catched instead of
14258: # the libc-based iconv.h, then we need to link with -liconv
14259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is required" >&5
14260: $as_echo_n "checking if -liconv is required... " >&6; }
14261: saved_CPPFLAGS=$CPPFLAGS
14262: saved_LIBS=$LIBS
14263: CPPFLAGS="$CPPFLAGS $CPPFLAGS_ADD"
14264: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265: /* end confdefs.h. */
14266:
14267: #include <iconv.h>
14268:
14269: int
14270: main ()
14271: {
14272:
14273: (void)iconv_open("ascii", "ascii");
14274:
14275: ;
14276: return 0;
14277: }
14278: _ACEOF
14279: if ac_fn_c_try_link "$LINENO"; then :
14280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281: $as_echo "no" >&6; }
14282: else
14283:
14284: LIBS="$LIBS -liconv"
14285: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286: /* end confdefs.h. */
14287:
14288: #include <iconv.h>
14289:
14290: int
14291: main ()
14292: {
14293:
14294: (void)iconv_open("ascii", "ascii");
14295:
14296: ;
14297: return 0;
14298: }
14299: _ACEOF
14300: if ac_fn_c_try_link "$LINENO"; then :
14301:
14302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303: $as_echo "yes" >&6; }
14304: saved_LIBS=$LIBS
14305:
14306: else
14307:
14308: as_fn_error $? "cannot use iconv" "$LINENO" 5
14309:
14310: fi
14311: rm -f core conftest.err conftest.$ac_objext \
14312: conftest$ac_exeext conftest.$ac_ext
14313:
14314: fi
14315: rm -f core conftest.err conftest.$ac_objext \
14316: conftest$ac_exeext conftest.$ac_ext
14317: CPPFLAGS=$saved_CPPFLAGS
14318: LIBS=$saved_LIBS
14319: fi
14320:
14321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-stats option is specified" >&5
14322: $as_echo_n "checking if --enable-stats option is specified... " >&6; }
14323: # Check whether --enable-stats was given.
14324: if test "${enable_stats+set}" = set; then :
14325: enableval=$enable_stats;
14326: else
14327: enable_stats=no
14328: fi
14329:
14330: if test "x$enable_stats" = "xyes"; then
14331:
14332: $as_echo "#define ENABLE_STATS /**/" >>confdefs.h
14333:
14334: fi
14335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stats" >&5
14336: $as_echo "$enable_stats" >&6; }
14337:
14338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-dpd option is specified" >&5
14339: $as_echo_n "checking if --enable-dpd option is specified... " >&6; }
14340: # Check whether --enable-dpd was given.
14341: if test "${enable_dpd+set}" = set; then :
14342: enableval=$enable_dpd;
14343: else
14344: enable_dpd=no
14345: fi
14346:
14347: if test "x$enable_dpd" = "xyes"; then
14348:
14349: $as_echo "#define ENABLE_DPD /**/" >>confdefs.h
14350:
14351: fi
14352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dpd" >&5
14353: $as_echo "$enable_dpd" >&6; }
14354:
14355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-samode-unspec option is specified" >&5
14356: $as_echo_n "checking if --enable-samode-unspec option is specified... " >&6; }
14357: # Check whether --enable-samode-unspec was given.
14358: if test "${enable_samode_unspec+set}" = set; then :
14359: enableval=$enable_samode_unspec;
14360: else
14361: enable_samode_unspec=no
14362: fi
14363:
14364: if test "x$enable_samode_unspec" = "xyes"; then
14365: case $host_os in
14366: *linux*)
14367: cat << EOC
14368:
14369: ERROR: --enable-samode-unspec is not supported under linux
14370: because linux kernel do not support it. This option is disabled
14371: to prevent mysterious problems.
14372:
14373: If you REALLY know what your are doing, remove this check.
14374: EOC
14375: exit 1;
14376: ;;
14377: esac
14378:
14379: $as_echo "#define ENABLE_SAMODE_UNSPECIFIED /**/" >>confdefs.h
14380:
14381: fi
14382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_samode_unspec" >&5
14383: $as_echo "$enable_samode_unspec" >&6; }
14384:
14385: # Checks if IPv6 is requested
14386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
14387: $as_echo_n "checking whether to enable ipv6... " >&6; }
14388: # Check whether --enable-ipv6 was given.
14389: if test "${enable_ipv6+set}" = set; then :
14390: enableval=$enable_ipv6; case "$enableval" in
14391: no)
14392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393: $as_echo "no" >&6; }
14394: ipv6=no
14395: ;;
14396: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14397: $as_echo "yes" >&6; }
14398: ipv6=yes
14399: ;;
14400: esac
14401: else
14402: if test "$cross_compiling" = yes; then :
14403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404: $as_echo "no" >&6; }
14405: ipv6=no
14406:
14407: else
14408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409: /* end confdefs.h. */
14410: /* AF_INET6 avalable check */
14411: #include <sys/types.h>
14412: #include <sys/socket.h>
14413: main()
14414: {
14415: exit(0);
14416: if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14417: exit(1);
14418: else
14419: exit(0);
14420: }
14421:
14422: _ACEOF
14423: if ac_fn_c_try_run "$LINENO"; then :
14424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14425: $as_echo "yes" >&6; }
14426:
14427: $as_echo "#define INET6 /**/" >>confdefs.h
14428:
14429: ipv6=yes
14430: else
14431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432: $as_echo "no" >&6; }
14433: ipv6=no
14434: fi
14435: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14436: conftest.$ac_objext conftest.beam conftest.$ac_ext
14437: fi
14438:
14439: fi
14440:
14441:
14442: if test "$ipv6" = "yes"; then
14443:
14444: $as_echo "#define INET6 /**/" >>confdefs.h
14445:
14446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for advanced API support" >&5
14447: $as_echo_n "checking for advanced API support... " >&6; }
14448: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449: /* end confdefs.h. */
14450: #ifndef INET6
14451: #define INET6
14452: #endif
14453: #include <sys/types.h>
14454: #include <netinet/in.h>
14455: int
14456: main ()
14457: {
14458: struct in6_pktinfo a;
14459: ;
14460: return 0;
14461: }
14462: _ACEOF
14463: if ac_fn_c_try_compile "$LINENO"; then :
14464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14465: $as_echo "yes" >&6; }
14466:
14467: $as_echo "#define INET6_ADVAPI /**/" >>confdefs.h
14468:
14469: else
14470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471: $as_echo "no" >&6; }
14472: fi
14473: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474: fi
14475:
14476:
14477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
14478: $as_echo_n "checking getaddrinfo bug... " >&6; }
14479: saved_CFLAGS=$CFLAGS
14480: CFLAGS="-Wall -O2"
14481: if test "$cross_compiling" = yes; then :
14482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cross compiling ... Assuming getaddrinfo is not buggy." >&5
14483: $as_echo "Cross compiling ... Assuming getaddrinfo is not buggy." >&6; }
14484: buggygetaddrinfo=no
14485: else
14486: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487: /* end confdefs.h. */
14488:
14489: #include <sys/types.h>
14490: #include <sys/socket.h>
14491: #include <netdb.h>
14492: #include <stdlib.h>
14493: #include <string.h>
14494: #include <netinet/in.h>
14495:
14496: int main()
14497: {
14498: int passive, gaierr, inet4 = 0, inet6 = 0;
14499: struct addrinfo hints, *ai, *aitop;
14500: char straddr[INET6_ADDRSTRLEN], strport[16];
14501:
14502: for (passive = 0; passive <= 1; passive++) {
14503: memset(&hints, 0, sizeof(hints));
14504: hints.ai_family = AF_UNSPEC;
14505: hints.ai_flags = passive ? AI_PASSIVE : 0;
14506: hints.ai_protocol = IPPROTO_TCP;
14507: hints.ai_socktype = SOCK_STREAM;
14508: if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
14509: (void)gai_strerror(gaierr);
14510: goto bad;
14511: }
14512: for (ai = aitop; ai; ai = ai->ai_next) {
14513: if (ai->ai_addr == NULL ||
14514: ai->ai_addrlen == 0 ||
14515: getnameinfo(ai->ai_addr, ai->ai_addrlen,
14516: straddr, sizeof(straddr), strport, sizeof(strport),
14517: NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
14518: goto bad;
14519: }
14520: switch (ai->ai_family) {
14521: case AF_INET:
14522: if (strcmp(strport, "54321") != 0) {
14523: goto bad;
14524: }
14525: if (passive) {
14526: if (strcmp(straddr, "0.0.0.0") != 0) {
14527: goto bad;
14528: }
14529: } else {
14530: if (strcmp(straddr, "127.0.0.1") != 0) {
14531: goto bad;
14532: }
14533: }
14534: inet4++;
14535: break;
14536: case AF_INET6:
14537: if (strcmp(strport, "54321") != 0) {
14538: goto bad;
14539: }
14540: if (passive) {
14541: if (strcmp(straddr, "::") != 0) {
14542: goto bad;
14543: }
14544: } else {
14545: if (strcmp(straddr, "::1") != 0) {
14546: goto bad;
14547: }
14548: }
14549: inet6++;
14550: break;
14551: case AF_UNSPEC:
14552: goto bad;
14553: break;
14554: default:
14555: /* another family support? */
14556: break;
14557: }
14558: }
14559: }
14560:
14561: if (!(inet4 == 0 || inet4 == 2))
14562: goto bad;
14563: if (!(inet6 == 0 || inet6 == 2))
14564: goto bad;
14565:
14566: if (aitop)
14567: freeaddrinfo(aitop);
14568: exit(0);
14569:
14570: bad:
14571: if (aitop)
14572: freeaddrinfo(aitop);
14573: exit(1);
14574: }
14575:
14576: _ACEOF
14577: if ac_fn_c_try_run "$LINENO"; then :
14578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
14579: $as_echo "good" >&6; }
14580: buggygetaddrinfo=no
14581: else
14582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
14583: $as_echo "buggy" >&6; }
14584: buggygetaddrinfo=yes
14585: fi
14586: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14587: conftest.$ac_objext conftest.beam conftest.$ac_ext
14588: fi
14589:
14590: CFLAGS=$saved_CFLAGS
14591: unset saved_CFLAGS
14592:
14593: if test "$buggygetaddrinfo" = "yes"; then
14594: as_fn_error $? "Broken getaddrinfo() is no longer supported. Aborting." "$LINENO" 5
14595: fi
14596:
14597: # Check if kernel support is available for NAT-T, defaults to no.
14598: kernel_natt="no"
14599:
14600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel NAT-Traversal support" >&5
14601: $as_echo_n "checking kernel NAT-Traversal support... " >&6; }
14602: case $host_os in
14603: linux*)
14604: # Linux kernel NAT-T check
14605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606: /* end confdefs.h. */
14607: #include <linux/pfkeyv2.h>
14608: #ifdef SADB_X_EXT_NAT_T_TYPE
14609: yes
14610: #endif
14611:
14612: _ACEOF
14613: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14614: $EGREP "yes" >/dev/null 2>&1; then :
14615: kernel_natt="yes"
14616: fi
14617: rm -f conftest*
14618:
14619: ;;
14620: freebsd*|netbsd*)
14621: # NetBSD case
14622: # Same check for FreeBSD
14623: ac_fn_c_check_member "$LINENO" "struct sadb_x_nat_t_type" "sadb_x_nat_t_type_len" "ac_cv_member_struct_sadb_x_nat_t_type_sadb_x_nat_t_type_len" "
14624: #define _KERNEL
14625: #include <sys/types.h>
14626: #include <net/pfkeyv2.h>
14627:
14628: "
1.1.1.2 misho 14629: if test "x$ac_cv_member_struct_sadb_x_nat_t_type_sadb_x_nat_t_type_len" = xyes; then :
1.1 misho 14630: kernel_natt="yes"
14631: fi
14632:
14633: ;;
14634: esac
14635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_natt" >&5
14636: $as_echo "$kernel_natt" >&6; }
14637:
14638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support NAT-T" >&5
14639: $as_echo_n "checking whether to support NAT-T... " >&6; }
14640: # Check whether --enable-natt was given.
14641: if test "${enable_natt+set}" = set; then :
14642: enableval=$enable_natt; if test "$enable_natt" = "kernel"; then enable_natt=$kernel_natt; fi
14643: else
14644: enable_natt=no
14645: fi
14646:
14647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_natt" >&5
14648: $as_echo "$enable_natt" >&6; }
14649:
14650: if test "$enable_natt" = "yes"; then
14651: if test "$kernel_natt" = "no" ; then
14652: as_fn_error $? "NAT-T requested, but no kernel support! Aborting." "$LINENO" 5
14653: else
14654:
14655: $as_echo "#define ENABLE_NATT /**/" >>confdefs.h
14656:
14657: NATT_OBJS="nattraversal.o"
14658:
14659: fi
14660: fi
14661:
14662: # Set up defines for supported NAT-T versions.
14663: natt_versions_default="00,02,rfc"
14664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which NAT-T versions to support" >&5
14665: $as_echo_n "checking which NAT-T versions to support... " >&6; }
14666: # Check whether --enable-natt_versions was given.
14667: if test "${enable_natt_versions+set}" = set; then :
14668: enableval=$enable_natt_versions; test "$enable_natt_versions" = "yes" && enable_natt_versions=$natt_versions_default
14669: else
14670: enable_natt_versions=$natt_versions_default
14671: fi
14672:
14673: if test "$enable_natt" = "yes"; then
14674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_natt_versions" >&5
14675: $as_echo "$enable_natt_versions" >&6; }
14676: for i in `echo $enable_natt_versions | tr ',cfr' ' CFR'`; do
14677: case $i in
14678: 0|00)
14679: $as_echo "#define ENABLE_NATT_00 /**/" >>confdefs.h
14680: ;;
14681: 1|01)
14682: $as_echo "#define ENABLE_NATT_01 /**/" >>confdefs.h
14683: ;;
14684: 2|02)
14685: $as_echo "#define ENABLE_NATT_02 /**/" >>confdefs.h
14686: ;;
14687: 3|03)
14688: $as_echo "#define ENABLE_NATT_03 /**/" >>confdefs.h
14689: ;;
14690: 4|04)
14691: $as_echo "#define ENABLE_NATT_04 /**/" >>confdefs.h
14692: ;;
14693: 5|05)
14694: $as_echo "#define ENABLE_NATT_05 /**/" >>confdefs.h
14695: ;;
14696: 6|06)
14697: $as_echo "#define ENABLE_NATT_06 /**/" >>confdefs.h
14698: ;;
14699: 7|07)
14700: $as_echo "#define ENABLE_NATT_07 /**/" >>confdefs.h
14701: ;;
14702: 8|08)
14703: $as_echo "#define ENABLE_NATT_08 /**/" >>confdefs.h
14704: ;;
14705: RFC)
14706: $as_echo "#define ENABLE_NATT_RFC /**/" >>confdefs.h
14707: ;;
1.1.1.2 misho 14708: *) as_fn_error $? "Unknown NAT-T version. Aborting." "$LINENO" 5 ;;
1.1 misho 14709: esac
14710: done
14711: unset i
14712: else
14713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14714: $as_echo "none" >&6; }
14715: fi
14716:
14717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-broken-natt option is specified" >&5
14718: $as_echo_n "checking if --enable-broken-natt option is specified... " >&6; }
14719: # Check whether --enable-broken-natt was given.
14720: if test "${enable_broken_natt+set}" = set; then :
14721: enableval=$enable_broken_natt;
14722: else
14723: enable_broken_natt=no
14724: fi
14725:
14726: if test "x$enable_broken_natt" = "xyes"; then
14727:
14728: $as_echo "#define BROKEN_NATT /**/" >>confdefs.h
14729:
14730: fi
14731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_broken_natt" >&5
14732: $as_echo "$enable_broken_natt" >&6; }
14733:
14734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we support FWD policy" >&5
14735: $as_echo_n "checking whether we support FWD policy... " >&6; }
14736: case $host in
14737: *linux*)
14738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739: /* end confdefs.h. */
14740:
14741: #include <inttypes.h>
14742: #include <linux/ipsec.h>
14743:
14744: int
14745: main ()
14746: {
14747:
14748: int fwd = IPSEC_DIR_FWD;
14749:
14750: ;
14751: return 0;
14752: }
14753: _ACEOF
14754: if ac_fn_c_try_compile "$LINENO"; then :
14755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14756: $as_echo "yes" >&6; }
14757:
14758: $as_echo "#define HAVE_POLICY_FWD /**/" >>confdefs.h
14759:
14760: else
14761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762: $as_echo "no" >&6; }
14763: fi
14764: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765: ;;
14766: *)
14767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768: $as_echo "no" >&6; }
14769: ;;
14770: esac
14771:
14772: ac_fn_c_check_type "$LINENO" "ipsec_policy_t" "ac_cv_type_ipsec_policy_t" "
14773: #include <sys/types.h>
14774: #include <netinet6/ipsec.h>
14775:
14776: "
1.1.1.2 misho 14777: if test "x$ac_cv_type_ipsec_policy_t" = xyes; then :
1.1 misho 14778:
14779: $as_echo "#define HAVE_IPSEC_POLICY_T /**/" >>confdefs.h
14780:
14781: fi
14782:
14783:
14784: # Check if kernel support is available for Security Context, defaults to no.
14785: kernel_secctx="no"
14786:
14787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel Security Context support" >&5
14788: $as_echo_n "checking kernel Security Context support... " >&6; }
14789: case $host_os in
14790: linux*)
14791: # Linux kernel Security Context check
14792: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793: /* end confdefs.h. */
14794: #include <linux/pfkeyv2.h>
14795: #ifdef SADB_X_EXT_SEC_CTX
14796: yes
14797: #endif
14798:
14799: _ACEOF
14800: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14801: $EGREP "yes" >/dev/null 2>&1; then :
14802: kernel_secctx="yes"
14803: fi
14804: rm -f conftest*
14805:
14806: ;;
14807: esac
14808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_secctx" >&5
14809: $as_echo "$kernel_secctx" >&6; }
14810:
14811: ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
1.1.1.2 misho 14812: if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
1.1 misho 14813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avc_init in -lselinux" >&5
14814: $as_echo_n "checking for avc_init in -lselinux... " >&6; }
1.1.1.2 misho 14815: if ${ac_cv_lib_selinux_avc_init+:} false; then :
1.1 misho 14816: $as_echo_n "(cached) " >&6
14817: else
14818: ac_check_lib_save_LIBS=$LIBS
14819: LIBS="-lselinux $LIBS"
14820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821: /* end confdefs.h. */
14822:
14823: /* Override any GCC internal prototype to avoid an error.
14824: Use char because int might match the return type of a GCC
14825: builtin and then its argument prototype would still apply. */
14826: #ifdef __cplusplus
14827: extern "C"
14828: #endif
14829: char avc_init ();
14830: int
14831: main ()
14832: {
14833: return avc_init ();
14834: ;
14835: return 0;
14836: }
14837: _ACEOF
14838: if ac_fn_c_try_link "$LINENO"; then :
14839: ac_cv_lib_selinux_avc_init=yes
14840: else
14841: ac_cv_lib_selinux_avc_init=no
14842: fi
14843: rm -f core conftest.err conftest.$ac_objext \
14844: conftest$ac_exeext conftest.$ac_ext
14845: LIBS=$ac_check_lib_save_LIBS
14846: fi
14847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_avc_init" >&5
14848: $as_echo "$ac_cv_lib_selinux_avc_init" >&6; }
1.1.1.2 misho 14849: if test "x$ac_cv_lib_selinux_avc_init" = xyes; then :
1.1 misho 14850: selinux_support=yes
14851: else
14852: selinux_support=no
14853: fi
14854:
14855: else
14856: selinux_support=no
14857: fi
14858:
14859:
14860:
14861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support Security Context" >&5
14862: $as_echo_n "checking whether to support Security Context... " >&6; }
14863: # Check whether --enable-security-context was given.
14864: if test "${enable_security_context+set}" = set; then :
14865: enableval=$enable_security_context; if test "$enable_security_context" = "kernel"; then
14866: enable_security_context=$kernel_secctx; fi
14867: else
14868: enable_security_context=$kernel_secctx
14869: fi
14870:
14871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_security_context" >&5
14872: $as_echo "$enable_security_context" >&6; }
14873:
14874: if test "$enable_security_context" = "yes"; then
14875: if test "$kernel_secctx" = "no" ; then
14876: as_fn_error $? "Security Context requested, but no kernel support! Aborting." "$LINENO" 5
14877: else
14878: if test "$selinux_support" = "no"; then
14879: as_fn_error $? "Security Context requested, but no selinux support! Aborting." "$LINENO" 5
14880: else
14881:
14882: $as_echo "#define HAVE_SECCTX /**/" >>confdefs.h
14883:
14884: SECCTX_OBJS="security.o"
14885:
14886: LIBS="$LIBS -lselinux"
14887: fi
14888: fi
14889: fi
14890:
14891:
14892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rt containing clock_gettime" >&5
14893: $as_echo_n "checking for rt containing clock_gettime... " >&6; }
1.1.1.2 misho 14894: if ${ac_cv_search_clock_gettime+:} false; then :
1.1 misho 14895: $as_echo_n "(cached) " >&6
14896: else
14897: ac_func_search_save_LIBS="$LIBS"
14898: ac_cv_search_clock_gettime="no"
14899: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900: /* end confdefs.h. */
14901:
14902: /* Override any GCC internal prototype to avoid an error.
14903: Use char because int might match the return type of a GCC
14904: builtin and then its argument prototype would still apply. */
14905: #ifdef __cplusplus
14906: extern "C"
14907: #endif
14908: char clock_gettime ();
14909: int
14910: main ()
14911: {
14912: return clock_gettime ();
14913: ;
14914: return 0;
14915: }
14916: _ACEOF
14917: if ac_fn_c_try_link "$LINENO"; then :
14918: ac_cv_search_clock_gettime="none required"
14919: else
14920: LIBS="-lrt $LIBS"
14921: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922: /* end confdefs.h. */
14923:
14924: /* Override any GCC internal prototype to avoid an error.
14925: Use char because int might match the return type of a GCC
14926: builtin and then its argument prototype would still apply. */
14927: #ifdef __cplusplus
14928: extern "C"
14929: #endif
14930: char clock_gettime ();
14931: int
14932: main ()
14933: {
14934: return clock_gettime ();
14935: ;
14936: return 0;
14937: }
14938: _ACEOF
14939: if ac_fn_c_try_link "$LINENO"; then :
14940: ac_cv_search_clock_gettime="-lrt"
14941: fi
14942: rm -f core conftest.err conftest.$ac_objext \
14943: conftest$ac_exeext conftest.$ac_ext
14944: fi
14945: rm -f core conftest.err conftest.$ac_objext \
14946: conftest$ac_exeext conftest.$ac_ext
14947: LIBS="$ac_func_search_save_LIBS"
14948:
14949: fi
14950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14951: $as_echo "$ac_cv_search_clock_gettime" >&6; }
14952: if test "$ac_cv_search_clock_gettime" != "no"; then
14953: test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
14954:
14955: else :
14956:
14957: fi
14958:
14959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic system clock" >&5
14960: $as_echo_n "checking for monotonic system clock... " >&6; }
14961: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962: /* end confdefs.h. */
14963: #include <time.h>
14964: int
14965: main ()
14966: {
14967: clock_gettime(CLOCK_MONOTONIC, NULL);
14968: ;
14969: return 0;
14970: }
14971: _ACEOF
14972: if ac_fn_c_try_compile "$LINENO"; then :
14973:
14974: $as_echo "#define HAVE_CLOCK_MONOTONIC /**/" >>confdefs.h
14975:
14976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14977: $as_echo "yes" >&6; }
14978: else
14979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980: $as_echo "no" >&6; }
14981: fi
14982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983:
14984: CFLAGS="$CFLAGS $CFLAGS_ADD"
14985: CPPFLAGS="$CPPFLAGS $CPPFLAGS_ADD"
14986:
14987: case $host in
14988: *linux*)
14989: # Remove KERNEL_INCLUDE from CPPFLAGS. It will
14990: # be symlinked to src/include-glibc/linux in
14991: # compile time.
14992: CPPFLAGS=`echo $CPPFLAGS | sed "s,-I$KERNEL_INCLUDE,,"`
14993: ;;
14994: esac
14995:
14996: include_racoondir=${includedir}/racoon
14997:
14998:
14999: ac_config_files="$ac_config_files Makefile package_version.h src/Makefile src/include-glibc/Makefile src/libipsec/Makefile src/setkey/Makefile src/racoon/Makefile src/racoon/samples/psk.txt src/racoon/samples/racoon.conf rpm/Makefile rpm/suse/Makefile rpm/suse/ipsec-tools.spec"
15000:
15001: cat >confcache <<\_ACEOF
15002: # This file is a shell script that caches the results of configure
15003: # tests run on this system so they can be shared between configure
15004: # scripts and configure runs, see configure's option --config-cache.
15005: # It is not useful on other systems. If it contains results you don't
15006: # want to keep, you may remove or edit it.
15007: #
15008: # config.status only pays attention to the cache file if you give it
15009: # the --recheck option to rerun configure.
15010: #
15011: # `ac_cv_env_foo' variables (set or unset) will be overridden when
15012: # loading this file, other *unset* `ac_cv_foo' will be assigned the
15013: # following values.
15014:
15015: _ACEOF
15016:
15017: # The following way of writing the cache mishandles newlines in values,
15018: # but we know of no workaround that is simple, portable, and efficient.
15019: # So, we kill variables containing newlines.
15020: # Ultrix sh set writes to stderr and can't be redirected directly,
15021: # and sets the high bit in the cache file unless we assign to the vars.
15022: (
15023: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15024: eval ac_val=\$$ac_var
15025: case $ac_val in #(
15026: *${as_nl}*)
15027: case $ac_var in #(
15028: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15029: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15030: esac
15031: case $ac_var in #(
15032: _ | IFS | as_nl) ;; #(
15033: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15034: *) { eval $ac_var=; unset $ac_var;} ;;
15035: esac ;;
15036: esac
15037: done
15038:
15039: (set) 2>&1 |
15040: case $as_nl`(ac_space=' '; set) 2>&1` in #(
15041: *${as_nl}ac_space=\ *)
15042: # `set' does not quote correctly, so add quotes: double-quote
15043: # substitution turns \\\\ into \\, and sed turns \\ into \.
15044: sed -n \
15045: "s/'/'\\\\''/g;
15046: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15047: ;; #(
15048: *)
15049: # `set' quotes correctly as required by POSIX, so do not add quotes.
15050: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15051: ;;
15052: esac |
15053: sort
15054: ) |
15055: sed '
15056: /^ac_cv_env_/b end
15057: t clear
15058: :clear
15059: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15060: t end
15061: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15062: :end' >>confcache
15063: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15064: if test -w "$cache_file"; then
1.1.1.2 misho 15065: if test "x$cache_file" != "x/dev/null"; then
1.1 misho 15066: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15067: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1.1.2 misho 15068: if test ! -f "$cache_file" || test -h "$cache_file"; then
15069: cat confcache >"$cache_file"
15070: else
15071: case $cache_file in #(
15072: */* | ?:*)
15073: mv -f confcache "$cache_file"$$ &&
15074: mv -f "$cache_file"$$ "$cache_file" ;; #(
15075: *)
15076: mv -f confcache "$cache_file" ;;
15077: esac
15078: fi
15079: fi
1.1 misho 15080: else
15081: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15082: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15083: fi
15084: fi
15085: rm -f confcache
15086:
15087: test "x$prefix" = xNONE && prefix=$ac_default_prefix
15088: # Let make expand exec_prefix.
15089: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15090:
15091: DEFS=-DHAVE_CONFIG_H
15092:
15093: ac_libobjs=
15094: ac_ltlibobjs=
15095: U=
15096: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15097: # 1. Remove the extension, and $U if already installed.
15098: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15099: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15100: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15101: # will be set to the directory where LIBOBJS objects are built.
15102: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15103: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15104: done
15105: LIBOBJS=$ac_libobjs
15106:
15107: LTLIBOBJS=$ac_ltlibobjs
15108:
15109:
1.1.1.2 misho 15110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15111: $as_echo_n "checking that generated files are newer than configure... " >&6; }
15112: if test -n "$am_sleep_pid"; then
15113: # Hide warnings about reused PIDs.
15114: wait $am_sleep_pid 2>/dev/null
15115: fi
15116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15117: $as_echo "done" >&6; }
1.1 misho 15118: if test -n "$EXEEXT"; then
15119: am__EXEEXT_TRUE=
15120: am__EXEEXT_FALSE='#'
15121: else
15122: am__EXEEXT_TRUE='#'
15123: am__EXEEXT_FALSE=
15124: fi
15125:
15126: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15127: as_fn_error $? "conditional \"AMDEP\" was never defined.
15128: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15129: fi
15130: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15131: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15132: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15133: fi
15134:
1.1.1.2 misho 15135: : "${CONFIG_STATUS=./config.status}"
1.1 misho 15136: ac_write_fail=0
15137: ac_clean_files_save=$ac_clean_files
15138: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15139: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15140: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15141: as_write_fail=0
15142: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15143: #! $SHELL
15144: # Generated by $as_me.
15145: # Run this file to recreate the current configuration.
15146: # Compiler output produced by configure, useful for debugging
15147: # configure, is in config.log if it exists.
15148:
15149: debug=false
15150: ac_cs_recheck=false
15151: ac_cs_silent=false
15152:
15153: SHELL=\${CONFIG_SHELL-$SHELL}
15154: export SHELL
15155: _ASEOF
15156: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15157: ## -------------------- ##
15158: ## M4sh Initialization. ##
15159: ## -------------------- ##
15160:
15161: # Be more Bourne compatible
15162: DUALCASE=1; export DUALCASE # for MKS sh
15163: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15164: emulate sh
15165: NULLCMD=:
15166: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15167: # is contrary to our usage. Disable this feature.
15168: alias -g '${1+"$@"}'='"$@"'
15169: setopt NO_GLOB_SUBST
15170: else
15171: case `(set -o) 2>/dev/null` in #(
15172: *posix*) :
15173: set -o posix ;; #(
15174: *) :
15175: ;;
15176: esac
15177: fi
15178:
15179:
15180: as_nl='
15181: '
15182: export as_nl
15183: # Printing a long string crashes Solaris 7 /usr/bin/printf.
15184: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15185: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15186: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15187: # Prefer a ksh shell builtin over an external printf program on Solaris,
15188: # but without wasting forks for bash or zsh.
15189: if test -z "$BASH_VERSION$ZSH_VERSION" \
15190: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15191: as_echo='print -r --'
15192: as_echo_n='print -rn --'
15193: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15194: as_echo='printf %s\n'
15195: as_echo_n='printf %s'
15196: else
15197: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15198: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15199: as_echo_n='/usr/ucb/echo -n'
15200: else
15201: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15202: as_echo_n_body='eval
15203: arg=$1;
15204: case $arg in #(
15205: *"$as_nl"*)
15206: expr "X$arg" : "X\\(.*\\)$as_nl";
15207: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15208: esac;
15209: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15210: '
15211: export as_echo_n_body
15212: as_echo_n='sh -c $as_echo_n_body as_echo'
15213: fi
15214: export as_echo_body
15215: as_echo='sh -c $as_echo_body as_echo'
15216: fi
15217:
15218: # The user is always right.
15219: if test "${PATH_SEPARATOR+set}" != set; then
15220: PATH_SEPARATOR=:
15221: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15222: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15223: PATH_SEPARATOR=';'
15224: }
15225: fi
15226:
15227:
15228: # IFS
15229: # We need space, tab and new line, in precisely that order. Quoting is
15230: # there to prevent editors from complaining about space-tab.
15231: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15232: # splitting by setting IFS to empty value.)
15233: IFS=" "" $as_nl"
15234:
15235: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 misho 15236: as_myself=
1.1 misho 15237: case $0 in #((
15238: *[\\/]* ) as_myself=$0 ;;
15239: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15240: for as_dir in $PATH
15241: do
15242: IFS=$as_save_IFS
15243: test -z "$as_dir" && as_dir=.
15244: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15245: done
15246: IFS=$as_save_IFS
15247:
15248: ;;
15249: esac
15250: # We did not find ourselves, most probably we were run as `sh COMMAND'
15251: # in which case we are not to be found in the path.
15252: if test "x$as_myself" = x; then
15253: as_myself=$0
15254: fi
15255: if test ! -f "$as_myself"; then
15256: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15257: exit 1
15258: fi
15259:
15260: # Unset variables that we do not need and which cause bugs (e.g. in
15261: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15262: # suppresses any "Segmentation fault" message there. '((' could
15263: # trigger a bug in pdksh 5.2.14.
15264: for as_var in BASH_ENV ENV MAIL MAILPATH
15265: do eval test x\${$as_var+set} = xset \
15266: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15267: done
15268: PS1='$ '
15269: PS2='> '
15270: PS4='+ '
15271:
15272: # NLS nuisances.
15273: LC_ALL=C
15274: export LC_ALL
15275: LANGUAGE=C
15276: export LANGUAGE
15277:
15278: # CDPATH.
15279: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15280:
15281:
15282: # as_fn_error STATUS ERROR [LINENO LOG_FD]
15283: # ----------------------------------------
15284: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15285: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15286: # script with STATUS, using 1 if that was 0.
15287: as_fn_error ()
15288: {
15289: as_status=$1; test $as_status -eq 0 && as_status=1
15290: if test "$4"; then
15291: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15292: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15293: fi
15294: $as_echo "$as_me: error: $2" >&2
15295: as_fn_exit $as_status
15296: } # as_fn_error
15297:
15298:
15299: # as_fn_set_status STATUS
15300: # -----------------------
15301: # Set $? to STATUS, without forking.
15302: as_fn_set_status ()
15303: {
15304: return $1
15305: } # as_fn_set_status
15306:
15307: # as_fn_exit STATUS
15308: # -----------------
15309: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15310: as_fn_exit ()
15311: {
15312: set +e
15313: as_fn_set_status $1
15314: exit $1
15315: } # as_fn_exit
15316:
15317: # as_fn_unset VAR
15318: # ---------------
15319: # Portably unset VAR.
15320: as_fn_unset ()
15321: {
15322: { eval $1=; unset $1;}
15323: }
15324: as_unset=as_fn_unset
15325: # as_fn_append VAR VALUE
15326: # ----------------------
15327: # Append the text in VALUE to the end of the definition contained in VAR. Take
15328: # advantage of any shell optimizations that allow amortized linear growth over
15329: # repeated appends, instead of the typical quadratic growth present in naive
15330: # implementations.
15331: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15332: eval 'as_fn_append ()
15333: {
15334: eval $1+=\$2
15335: }'
15336: else
15337: as_fn_append ()
15338: {
15339: eval $1=\$$1\$2
15340: }
15341: fi # as_fn_append
15342:
15343: # as_fn_arith ARG...
15344: # ------------------
15345: # Perform arithmetic evaluation on the ARGs, and store the result in the
15346: # global $as_val. Take advantage of shells that can avoid forks. The arguments
15347: # must be portable across $(()) and expr.
15348: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15349: eval 'as_fn_arith ()
15350: {
15351: as_val=$(( $* ))
15352: }'
15353: else
15354: as_fn_arith ()
15355: {
15356: as_val=`expr "$@" || test $? -eq 1`
15357: }
15358: fi # as_fn_arith
15359:
15360:
15361: if expr a : '\(a\)' >/dev/null 2>&1 &&
15362: test "X`expr 00001 : '.*\(...\)'`" = X001; then
15363: as_expr=expr
15364: else
15365: as_expr=false
15366: fi
15367:
15368: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15369: as_basename=basename
15370: else
15371: as_basename=false
15372: fi
15373:
15374: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15375: as_dirname=dirname
15376: else
15377: as_dirname=false
15378: fi
15379:
15380: as_me=`$as_basename -- "$0" ||
15381: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15382: X"$0" : 'X\(//\)$' \| \
15383: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15384: $as_echo X/"$0" |
15385: sed '/^.*\/\([^/][^/]*\)\/*$/{
15386: s//\1/
15387: q
15388: }
15389: /^X\/\(\/\/\)$/{
15390: s//\1/
15391: q
15392: }
15393: /^X\/\(\/\).*/{
15394: s//\1/
15395: q
15396: }
15397: s/.*/./; q'`
15398:
15399: # Avoid depending upon Character Ranges.
15400: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15401: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15402: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15403: as_cr_digits='0123456789'
15404: as_cr_alnum=$as_cr_Letters$as_cr_digits
15405:
15406: ECHO_C= ECHO_N= ECHO_T=
15407: case `echo -n x` in #(((((
15408: -n*)
15409: case `echo 'xy\c'` in
15410: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15411: xy) ECHO_C='\c';;
15412: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15413: ECHO_T=' ';;
15414: esac;;
15415: *)
15416: ECHO_N='-n';;
15417: esac
15418:
15419: rm -f conf$$ conf$$.exe conf$$.file
15420: if test -d conf$$.dir; then
15421: rm -f conf$$.dir/conf$$.file
15422: else
15423: rm -f conf$$.dir
15424: mkdir conf$$.dir 2>/dev/null
15425: fi
15426: if (echo >conf$$.file) 2>/dev/null; then
15427: if ln -s conf$$.file conf$$ 2>/dev/null; then
15428: as_ln_s='ln -s'
15429: # ... but there are two gotchas:
15430: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15431: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.2 misho 15432: # In both cases, we have to default to `cp -pR'.
1.1 misho 15433: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.2 misho 15434: as_ln_s='cp -pR'
1.1 misho 15435: elif ln conf$$.file conf$$ 2>/dev/null; then
15436: as_ln_s=ln
15437: else
1.1.1.2 misho 15438: as_ln_s='cp -pR'
1.1 misho 15439: fi
15440: else
1.1.1.2 misho 15441: as_ln_s='cp -pR'
1.1 misho 15442: fi
15443: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15444: rmdir conf$$.dir 2>/dev/null
15445:
15446:
15447: # as_fn_mkdir_p
15448: # -------------
15449: # Create "$as_dir" as a directory, including parents if necessary.
15450: as_fn_mkdir_p ()
15451: {
15452:
15453: case $as_dir in #(
15454: -*) as_dir=./$as_dir;;
15455: esac
15456: test -d "$as_dir" || eval $as_mkdir_p || {
15457: as_dirs=
15458: while :; do
15459: case $as_dir in #(
15460: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15461: *) as_qdir=$as_dir;;
15462: esac
15463: as_dirs="'$as_qdir' $as_dirs"
15464: as_dir=`$as_dirname -- "$as_dir" ||
15465: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15466: X"$as_dir" : 'X\(//\)[^/]' \| \
15467: X"$as_dir" : 'X\(//\)$' \| \
15468: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15469: $as_echo X"$as_dir" |
15470: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15471: s//\1/
15472: q
15473: }
15474: /^X\(\/\/\)[^/].*/{
15475: s//\1/
15476: q
15477: }
15478: /^X\(\/\/\)$/{
15479: s//\1/
15480: q
15481: }
15482: /^X\(\/\).*/{
15483: s//\1/
15484: q
15485: }
15486: s/.*/./; q'`
15487: test -d "$as_dir" && break
15488: done
15489: test -z "$as_dirs" || eval "mkdir $as_dirs"
15490: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15491:
15492:
15493: } # as_fn_mkdir_p
15494: if mkdir -p . 2>/dev/null; then
15495: as_mkdir_p='mkdir -p "$as_dir"'
15496: else
15497: test -d ./-p && rmdir ./-p
15498: as_mkdir_p=false
15499: fi
15500:
1.1.1.2 misho 15501:
15502: # as_fn_executable_p FILE
15503: # -----------------------
15504: # Test if FILE is an executable regular file.
15505: as_fn_executable_p ()
15506: {
15507: test -f "$1" && test -x "$1"
15508: } # as_fn_executable_p
15509: as_test_x='test -x'
15510: as_executable_p=as_fn_executable_p
1.1 misho 15511:
15512: # Sed expression to map a string onto a valid CPP name.
15513: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15514:
15515: # Sed expression to map a string onto a valid variable name.
15516: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15517:
15518:
15519: exec 6>&1
15520: ## ----------------------------------- ##
15521: ## Main body of $CONFIG_STATUS script. ##
15522: ## ----------------------------------- ##
15523: _ASEOF
15524: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15525:
15526: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15527: # Save the log message, to keep $0 and so on meaningful, and to
15528: # report actual input values of CONFIG_FILES etc. instead of their
15529: # values after options handling.
15530: ac_log="
1.1.1.2 misho 15531: This file was extended by ipsec-tools $as_me 0.8.1, which was
15532: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 15533:
15534: CONFIG_FILES = $CONFIG_FILES
15535: CONFIG_HEADERS = $CONFIG_HEADERS
15536: CONFIG_LINKS = $CONFIG_LINKS
15537: CONFIG_COMMANDS = $CONFIG_COMMANDS
15538: $ $0 $@
15539:
15540: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15541: "
15542:
15543: _ACEOF
15544:
15545: case $ac_config_files in *"
15546: "*) set x $ac_config_files; shift; ac_config_files=$*;;
15547: esac
15548:
15549: case $ac_config_headers in *"
15550: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15551: esac
15552:
15553:
15554: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555: # Files that config.status was made for.
15556: config_files="$ac_config_files"
15557: config_headers="$ac_config_headers"
15558: config_commands="$ac_config_commands"
15559:
15560: _ACEOF
15561:
15562: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15563: ac_cs_usage="\
15564: \`$as_me' instantiates files and other configuration actions
15565: from templates according to the current configuration. Unless the files
15566: and actions are specified as TAGs, all are instantiated by default.
15567:
15568: Usage: $0 [OPTION]... [TAG]...
15569:
15570: -h, --help print this help, then exit
15571: -V, --version print version number and configuration settings, then exit
15572: --config print configuration, then exit
15573: -q, --quiet, --silent
15574: do not print progress messages
15575: -d, --debug don't remove temporary files
15576: --recheck update $as_me by reconfiguring in the same conditions
15577: --file=FILE[:TEMPLATE]
15578: instantiate the configuration file FILE
15579: --header=FILE[:TEMPLATE]
15580: instantiate the configuration header FILE
15581:
15582: Configuration files:
15583: $config_files
15584:
15585: Configuration headers:
15586: $config_headers
15587:
15588: Configuration commands:
15589: $config_commands
15590:
15591: Report bugs to the package provider."
15592:
15593: _ACEOF
15594: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15596: ac_cs_version="\\
1.1.1.2 misho 15597: ipsec-tools config.status 0.8.1
15598: configured by $0, generated by GNU Autoconf 2.69,
1.1 misho 15599: with options \\"\$ac_cs_config\\"
15600:
1.1.1.2 misho 15601: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 15602: This config.status script is free software; the Free Software Foundation
15603: gives unlimited permission to copy, distribute and modify it."
15604:
15605: ac_pwd='$ac_pwd'
15606: srcdir='$srcdir'
15607: INSTALL='$INSTALL'
15608: MKDIR_P='$MKDIR_P'
15609: AWK='$AWK'
15610: test -n "\$AWK" || AWK=awk
15611: _ACEOF
15612:
15613: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614: # The default lists apply if the user does not specify any file.
15615: ac_need_defaults=:
15616: while test $# != 0
15617: do
15618: case $1 in
15619: --*=?*)
15620: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15621: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15622: ac_shift=:
15623: ;;
15624: --*=)
15625: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15626: ac_optarg=
15627: ac_shift=:
15628: ;;
15629: *)
15630: ac_option=$1
15631: ac_optarg=$2
15632: ac_shift=shift
15633: ;;
15634: esac
15635:
15636: case $ac_option in
15637: # Handling of the options.
15638: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15639: ac_cs_recheck=: ;;
15640: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15641: $as_echo "$ac_cs_version"; exit ;;
15642: --config | --confi | --conf | --con | --co | --c )
15643: $as_echo "$ac_cs_config"; exit ;;
15644: --debug | --debu | --deb | --de | --d | -d )
15645: debug=: ;;
15646: --file | --fil | --fi | --f )
15647: $ac_shift
15648: case $ac_optarg in
15649: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15650: '') as_fn_error $? "missing file argument" ;;
15651: esac
15652: as_fn_append CONFIG_FILES " '$ac_optarg'"
15653: ac_need_defaults=false;;
15654: --header | --heade | --head | --hea )
15655: $ac_shift
15656: case $ac_optarg in
15657: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15658: esac
15659: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15660: ac_need_defaults=false;;
15661: --he | --h)
15662: # Conflict between --help and --header
15663: as_fn_error $? "ambiguous option: \`$1'
15664: Try \`$0 --help' for more information.";;
15665: --help | --hel | -h )
15666: $as_echo "$ac_cs_usage"; exit ;;
15667: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15668: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15669: ac_cs_silent=: ;;
15670:
15671: # This is an error.
15672: -*) as_fn_error $? "unrecognized option: \`$1'
15673: Try \`$0 --help' for more information." ;;
15674:
15675: *) as_fn_append ac_config_targets " $1"
15676: ac_need_defaults=false ;;
15677:
15678: esac
15679: shift
15680: done
15681:
15682: ac_configure_extra_args=
15683:
15684: if $ac_cs_silent; then
15685: exec 6>/dev/null
15686: ac_configure_extra_args="$ac_configure_extra_args --silent"
15687: fi
15688:
15689: _ACEOF
15690: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15691: if \$ac_cs_recheck; then
1.1.1.2 misho 15692: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 misho 15693: shift
15694: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15695: CONFIG_SHELL='$SHELL'
15696: export CONFIG_SHELL
15697: exec "\$@"
15698: fi
15699:
15700: _ACEOF
15701: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15702: exec 5>>config.log
15703: {
15704: echo
15705: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15706: ## Running $as_me. ##
15707: _ASBOX
15708: $as_echo "$ac_log"
15709: } >&5
15710:
15711: _ACEOF
15712: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15713: #
15714: # INIT-COMMANDS
15715: #
15716: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15717:
15718:
15719: # The HP-UX ksh and POSIX shell print the target directory to stdout
15720: # if CDPATH is set.
15721: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15722:
15723: sed_quote_subst='$sed_quote_subst'
15724: double_quote_subst='$double_quote_subst'
15725: delay_variable_subst='$delay_variable_subst'
1.1.1.2 misho 15726: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15727: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15728: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15729: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15730: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15731: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15732: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15733: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15734: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15735: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15736: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15737: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15738: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15739: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15740: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15741: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15742: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15743: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15744: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15745: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15746: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15747: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15748: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15749: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15750: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15751: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15752: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15753: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15754: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15755: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15756: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15757: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15758: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15759: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15760: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15761: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15762: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15763: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15764: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15765: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15766: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15767: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15768: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15769: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15770: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15771: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15772: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15773: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15774: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15775: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15776: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15777: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15778: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15779: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15780: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15781: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15782: 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"`'
15783: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15784: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15785: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15786: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15787: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15788: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15789: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15790: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15791: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15792: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15793: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15794: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15795: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15796: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15797: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15798: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15799: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15800: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15801: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15802: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15803: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15804: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15805: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15806: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15807: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15808: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15809: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15810: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15811: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15812: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15813: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15814: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15815: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15816: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15817: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15818: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15819: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15820: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15821: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15822: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15823: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15824: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15825: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15826: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15827: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15828: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15829: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15830: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15831: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15832: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15833: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15834: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15835: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15836: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15837: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15838: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15839: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15840: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15841: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15842: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15843: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15844: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15845: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15846: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15847: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15848: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15849: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15850: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15851: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15852: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15853: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15854: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15855: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1.1 misho 15856:
15857: LTCC='$LTCC'
15858: LTCFLAGS='$LTCFLAGS'
15859: compiler='$compiler_DEFAULT'
15860:
1.1.1.2 misho 15861: # A function that is used when there is no print builtin or printf.
15862: func_fallback_echo ()
15863: {
15864: eval 'cat <<_LTECHO_EOF
15865: \$1
15866: _LTECHO_EOF'
15867: }
15868:
1.1 misho 15869: # Quote evaled strings.
1.1.1.2 misho 15870: for var in SHELL \
15871: ECHO \
15872: PATH_SEPARATOR \
15873: SED \
1.1 misho 15874: GREP \
15875: EGREP \
15876: FGREP \
15877: LD \
15878: NM \
15879: LN_S \
15880: lt_SP2NL \
15881: lt_NL2SP \
15882: reload_flag \
15883: OBJDUMP \
15884: deplibs_check_method \
15885: file_magic_cmd \
1.1.1.2 misho 15886: file_magic_glob \
15887: want_nocaseglob \
15888: DLLTOOL \
15889: sharedlib_from_linklib_cmd \
1.1 misho 15890: AR \
15891: AR_FLAGS \
1.1.1.2 misho 15892: archiver_list_spec \
1.1 misho 15893: STRIP \
15894: RANLIB \
15895: CC \
15896: CFLAGS \
15897: compiler \
15898: lt_cv_sys_global_symbol_pipe \
15899: lt_cv_sys_global_symbol_to_cdecl \
15900: lt_cv_sys_global_symbol_to_c_name_address \
15901: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.1.1.2 misho 15902: nm_file_list_spec \
1.1 misho 15903: lt_prog_compiler_no_builtin_flag \
15904: lt_prog_compiler_pic \
1.1.1.2 misho 15905: lt_prog_compiler_wl \
1.1 misho 15906: lt_prog_compiler_static \
15907: lt_cv_prog_compiler_c_o \
15908: need_locks \
1.1.1.2 misho 15909: MANIFEST_TOOL \
1.1 misho 15910: DSYMUTIL \
15911: NMEDIT \
15912: LIPO \
15913: OTOOL \
15914: OTOOL64 \
15915: shrext_cmds \
15916: export_dynamic_flag_spec \
15917: whole_archive_flag_spec \
15918: compiler_needs_object \
15919: with_gnu_ld \
15920: allow_undefined_flag \
15921: no_undefined_flag \
15922: hardcode_libdir_flag_spec \
15923: hardcode_libdir_separator \
15924: exclude_expsyms \
15925: include_expsyms \
15926: file_list_spec \
15927: variables_saved_for_relink \
15928: libname_spec \
15929: library_names_spec \
15930: soname_spec \
1.1.1.2 misho 15931: install_override_mode \
1.1 misho 15932: finish_eval \
15933: old_striplib \
15934: striplib; do
1.1.1.2 misho 15935: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1.1 misho 15936: *[\\\\\\\`\\"\\\$]*)
1.1.1.2 misho 15937: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1.1 misho 15938: ;;
15939: *)
15940: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15941: ;;
15942: esac
15943: done
15944:
15945: # Double-quote double-evaled strings.
15946: for var in reload_cmds \
15947: old_postinstall_cmds \
15948: old_postuninstall_cmds \
15949: old_archive_cmds \
15950: extract_expsyms_cmds \
15951: old_archive_from_new_cmds \
15952: old_archive_from_expsyms_cmds \
15953: archive_cmds \
15954: archive_expsym_cmds \
15955: module_cmds \
15956: module_expsym_cmds \
15957: export_symbols_cmds \
15958: prelink_cmds \
1.1.1.2 misho 15959: postlink_cmds \
1.1 misho 15960: postinstall_cmds \
15961: postuninstall_cmds \
15962: finish_cmds \
15963: sys_lib_search_path_spec \
15964: sys_lib_dlsearch_path_spec; do
1.1.1.2 misho 15965: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1.1 misho 15966: *[\\\\\\\`\\"\\\$]*)
1.1.1.2 misho 15967: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1.1 misho 15968: ;;
15969: *)
15970: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15971: ;;
15972: esac
15973: done
15974:
15975: ac_aux_dir='$ac_aux_dir'
15976: xsi_shell='$xsi_shell'
15977: lt_shell_append='$lt_shell_append'
15978:
15979: # See if we are running on zsh, and set the options which allow our
15980: # commands through without removal of \ escapes INIT.
15981: if test -n "\${ZSH_VERSION+set}" ; then
15982: setopt NO_GLOB_SUBST
15983: fi
15984:
15985:
15986: PACKAGE='$PACKAGE'
15987: VERSION='$VERSION'
15988: TIMESTAMP='$TIMESTAMP'
15989: RM='$RM'
15990: ofile='$ofile'
15991:
15992:
15993:
15994:
15995: _ACEOF
15996:
15997: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15998:
15999: # Handling of arguments.
16000: for ac_config_target in $ac_config_targets
16001: do
16002: case $ac_config_target in
16003: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16004: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16005: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16006: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16007: "package_version.h") CONFIG_FILES="$CONFIG_FILES package_version.h" ;;
16008: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16009: "src/include-glibc/Makefile") CONFIG_FILES="$CONFIG_FILES src/include-glibc/Makefile" ;;
16010: "src/libipsec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libipsec/Makefile" ;;
16011: "src/setkey/Makefile") CONFIG_FILES="$CONFIG_FILES src/setkey/Makefile" ;;
16012: "src/racoon/Makefile") CONFIG_FILES="$CONFIG_FILES src/racoon/Makefile" ;;
16013: "src/racoon/samples/psk.txt") CONFIG_FILES="$CONFIG_FILES src/racoon/samples/psk.txt" ;;
16014: "src/racoon/samples/racoon.conf") CONFIG_FILES="$CONFIG_FILES src/racoon/samples/racoon.conf" ;;
16015: "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
16016: "rpm/suse/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/suse/Makefile" ;;
16017: "rpm/suse/ipsec-tools.spec") CONFIG_FILES="$CONFIG_FILES rpm/suse/ipsec-tools.spec" ;;
16018:
1.1.1.2 misho 16019: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 misho 16020: esac
16021: done
16022:
16023:
16024: # If the user did not use the arguments to specify the items to instantiate,
16025: # then the envvar interface is used. Set only those that are not.
16026: # We use the long form for the default assignment because of an extremely
16027: # bizarre bug on SunOS 4.1.3.
16028: if $ac_need_defaults; then
16029: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16030: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16031: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16032: fi
16033:
16034: # Have a temporary directory for convenience. Make it in the build tree
16035: # simply because there is no reason against having it here, and in addition,
16036: # creating and moving files from /tmp can sometimes cause problems.
16037: # Hook for its removal unless debugging.
16038: # Note that there is a small window in which the directory will not be cleaned:
16039: # after its creation but before its name has been assigned to `$tmp'.
16040: $debug ||
16041: {
1.1.1.2 misho 16042: tmp= ac_tmp=
1.1 misho 16043: trap 'exit_status=$?
1.1.1.2 misho 16044: : "${ac_tmp:=$tmp}"
16045: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 misho 16046: ' 0
16047: trap 'as_fn_exit 1' 1 2 13 15
16048: }
16049: # Create a (secure) tmp directory for tmp files.
16050:
16051: {
16052: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.1.2 misho 16053: test -d "$tmp"
1.1 misho 16054: } ||
16055: {
16056: tmp=./conf$$-$RANDOM
16057: (umask 077 && mkdir "$tmp")
16058: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.1.1.2 misho 16059: ac_tmp=$tmp
1.1 misho 16060:
16061: # Set up the scripts for CONFIG_FILES section.
16062: # No need to generate them if there are no CONFIG_FILES.
16063: # This happens for instance with `./config.status config.h'.
16064: if test -n "$CONFIG_FILES"; then
16065:
16066:
16067: ac_cr=`echo X | tr X '\015'`
16068: # On cygwin, bash can eat \r inside `` if the user requested igncr.
16069: # But we know of no other shell where ac_cr would be empty at this
16070: # point, so we can use a bashism as a fallback.
16071: if test "x$ac_cr" = x; then
16072: eval ac_cr=\$\'\\r\'
16073: fi
16074: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16075: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16076: ac_cs_awk_cr='\\r'
16077: else
16078: ac_cs_awk_cr=$ac_cr
16079: fi
16080:
1.1.1.2 misho 16081: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.1 misho 16082: _ACEOF
16083:
16084:
16085: {
16086: echo "cat >conf$$subs.awk <<_ACEOF" &&
16087: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16088: echo "_ACEOF"
16089: } >conf$$subs.sh ||
16090: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16091: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16092: ac_delim='%!_!# '
16093: for ac_last_try in false false false false false :; do
16094: . ./conf$$subs.sh ||
16095: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16096:
16097: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16098: if test $ac_delim_n = $ac_delim_num; then
16099: break
16100: elif $ac_last_try; then
16101: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16102: else
16103: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16104: fi
16105: done
16106: rm -f conf$$subs.sh
16107:
16108: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.2 misho 16109: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.1 misho 16110: _ACEOF
16111: sed -n '
16112: h
16113: s/^/S["/; s/!.*/"]=/
16114: p
16115: g
16116: s/^[^!]*!//
16117: :repl
16118: t repl
16119: s/'"$ac_delim"'$//
16120: t delim
16121: :nl
16122: h
16123: s/\(.\{148\}\)..*/\1/
16124: t more1
16125: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16126: p
16127: n
16128: b repl
16129: :more1
16130: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16131: p
16132: g
16133: s/.\{148\}//
16134: t nl
16135: :delim
16136: h
16137: s/\(.\{148\}\)..*/\1/
16138: t more2
16139: s/["\\]/\\&/g; s/^/"/; s/$/"/
16140: p
16141: b
16142: :more2
16143: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16144: p
16145: g
16146: s/.\{148\}//
16147: t delim
16148: ' <conf$$subs.awk | sed '
16149: /^[^""]/{
16150: N
16151: s/\n//
16152: }
16153: ' >>$CONFIG_STATUS || ac_write_fail=1
16154: rm -f conf$$subs.awk
16155: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16156: _ACAWK
1.1.1.2 misho 16157: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.1 misho 16158: for (key in S) S_is_set[key] = 1
16159: FS = ""
16160:
16161: }
16162: {
16163: line = $ 0
16164: nfields = split(line, field, "@")
16165: substed = 0
16166: len = length(field[1])
16167: for (i = 2; i < nfields; i++) {
16168: key = field[i]
16169: keylen = length(key)
16170: if (S_is_set[key]) {
16171: value = S[key]
16172: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16173: len += length(value) + length(field[++i])
16174: substed = 1
16175: } else
16176: len += 1 + keylen
16177: }
16178:
16179: print line
16180: }
16181:
16182: _ACAWK
16183: _ACEOF
16184: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16186: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16187: else
16188: cat
1.1.1.2 misho 16189: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.1 misho 16190: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16191: _ACEOF
16192:
16193: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16194: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16195: # trailing colons and then remove the whole line if VPATH becomes empty
16196: # (actually we leave an empty line to preserve line numbers).
16197: if test "x$srcdir" = x.; then
16198: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16199: h
16200: s///
16201: s/^/:/
16202: s/[ ]*$/:/
16203: s/:\$(srcdir):/:/g
16204: s/:\${srcdir}:/:/g
16205: s/:@srcdir@:/:/g
16206: s/^:*//
16207: s/:*$//
16208: x
16209: s/\(=[ ]*\).*/\1/
16210: G
16211: s/\n//
16212: s/^[^=]*=[ ]*$//
16213: }'
16214: fi
16215:
16216: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16217: fi # test -n "$CONFIG_FILES"
16218:
16219: # Set up the scripts for CONFIG_HEADERS section.
16220: # No need to generate them if there are no CONFIG_HEADERS.
16221: # This happens for instance with `./config.status Makefile'.
16222: if test -n "$CONFIG_HEADERS"; then
1.1.1.2 misho 16223: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.1 misho 16224: BEGIN {
16225: _ACEOF
16226:
16227: # Transform confdefs.h into an awk script `defines.awk', embedded as
16228: # here-document in config.status, that substitutes the proper values into
16229: # config.h.in to produce config.h.
16230:
16231: # Create a delimiter string that does not exist in confdefs.h, to ease
16232: # handling of long lines.
16233: ac_delim='%!_!# '
16234: for ac_last_try in false false :; do
1.1.1.2 misho 16235: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16236: if test -z "$ac_tt"; then
1.1 misho 16237: break
16238: elif $ac_last_try; then
16239: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16240: else
16241: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16242: fi
16243: done
16244:
16245: # For the awk script, D is an array of macro values keyed by name,
16246: # likewise P contains macro parameters if any. Preserve backslash
16247: # newline sequences.
16248:
16249: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16250: sed -n '
16251: s/.\{148\}/&'"$ac_delim"'/g
16252: t rset
16253: :rset
16254: s/^[ ]*#[ ]*define[ ][ ]*/ /
16255: t def
16256: d
16257: :def
16258: s/\\$//
16259: t bsnl
16260: s/["\\]/\\&/g
16261: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16262: D["\1"]=" \3"/p
16263: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16264: d
16265: :bsnl
16266: s/["\\]/\\&/g
16267: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16268: D["\1"]=" \3\\\\\\n"\\/p
16269: t cont
16270: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16271: t cont
16272: d
16273: :cont
16274: n
16275: s/.\{148\}/&'"$ac_delim"'/g
16276: t clear
16277: :clear
16278: s/\\$//
16279: t bsnlc
16280: s/["\\]/\\&/g; s/^/"/; s/$/"/p
16281: d
16282: :bsnlc
16283: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16284: b cont
16285: ' <confdefs.h | sed '
16286: s/'"$ac_delim"'/"\\\
16287: "/g' >>$CONFIG_STATUS || ac_write_fail=1
16288:
16289: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290: for (key in D) D_is_set[key] = 1
16291: FS = ""
16292: }
16293: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16294: line = \$ 0
16295: split(line, arg, " ")
16296: if (arg[1] == "#") {
16297: defundef = arg[2]
16298: mac1 = arg[3]
16299: } else {
16300: defundef = substr(arg[1], 2)
16301: mac1 = arg[2]
16302: }
16303: split(mac1, mac2, "(") #)
16304: macro = mac2[1]
16305: prefix = substr(line, 1, index(line, defundef) - 1)
16306: if (D_is_set[macro]) {
16307: # Preserve the white space surrounding the "#".
16308: print prefix "define", macro P[macro] D[macro]
16309: next
16310: } else {
16311: # Replace #undef with comments. This is necessary, for example,
16312: # in the case of _POSIX_SOURCE, which is predefined and required
16313: # on some systems where configure will not decide to define it.
16314: if (defundef == "undef") {
16315: print "/*", prefix defundef, macro, "*/"
16316: next
16317: }
16318: }
16319: }
16320: { print }
16321: _ACAWK
16322: _ACEOF
16323: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16324: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16325: fi # test -n "$CONFIG_HEADERS"
16326:
16327:
16328: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16329: shift
16330: for ac_tag
16331: do
16332: case $ac_tag in
16333: :[FHLC]) ac_mode=$ac_tag; continue;;
16334: esac
16335: case $ac_mode$ac_tag in
16336: :[FHL]*:*);;
1.1.1.2 misho 16337: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 misho 16338: :[FH]-) ac_tag=-:-;;
16339: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16340: esac
16341: ac_save_IFS=$IFS
16342: IFS=:
16343: set x $ac_tag
16344: IFS=$ac_save_IFS
16345: shift
16346: ac_file=$1
16347: shift
16348:
16349: case $ac_mode in
16350: :L) ac_source=$1;;
16351: :[FH])
16352: ac_file_inputs=
16353: for ac_f
16354: do
16355: case $ac_f in
1.1.1.2 misho 16356: -) ac_f="$ac_tmp/stdin";;
1.1 misho 16357: *) # Look for the file first in the build tree, then in the source tree
16358: # (if the path is not absolute). The absolute path cannot be DOS-style,
16359: # because $ac_f cannot contain `:'.
16360: test -f "$ac_f" ||
16361: case $ac_f in
16362: [\\/$]*) false;;
16363: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16364: esac ||
1.1.1.2 misho 16365: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 misho 16366: esac
16367: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16368: as_fn_append ac_file_inputs " '$ac_f'"
16369: done
16370:
16371: # Let's still pretend it is `configure' which instantiates (i.e., don't
16372: # use $as_me), people would be surprised to read:
16373: # /* config.h. Generated by config.status. */
16374: configure_input='Generated from '`
16375: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16376: `' by configure.'
16377: if test x"$ac_file" != x-; then
16378: configure_input="$ac_file. $configure_input"
16379: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16380: $as_echo "$as_me: creating $ac_file" >&6;}
16381: fi
16382: # Neutralize special characters interpreted by sed in replacement strings.
16383: case $configure_input in #(
16384: *\&* | *\|* | *\\* )
16385: ac_sed_conf_input=`$as_echo "$configure_input" |
16386: sed 's/[\\\\&|]/\\\\&/g'`;; #(
16387: *) ac_sed_conf_input=$configure_input;;
16388: esac
16389:
16390: case $ac_tag in
1.1.1.2 misho 16391: *:-:* | *:-) cat >"$ac_tmp/stdin" \
16392: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 misho 16393: esac
16394: ;;
16395: esac
16396:
16397: ac_dir=`$as_dirname -- "$ac_file" ||
16398: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16399: X"$ac_file" : 'X\(//\)[^/]' \| \
16400: X"$ac_file" : 'X\(//\)$' \| \
16401: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16402: $as_echo X"$ac_file" |
16403: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16404: s//\1/
16405: q
16406: }
16407: /^X\(\/\/\)[^/].*/{
16408: s//\1/
16409: q
16410: }
16411: /^X\(\/\/\)$/{
16412: s//\1/
16413: q
16414: }
16415: /^X\(\/\).*/{
16416: s//\1/
16417: q
16418: }
16419: s/.*/./; q'`
16420: as_dir="$ac_dir"; as_fn_mkdir_p
16421: ac_builddir=.
16422:
16423: case "$ac_dir" in
16424: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16425: *)
16426: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16427: # A ".." for each directory in $ac_dir_suffix.
16428: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16429: case $ac_top_builddir_sub in
16430: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16431: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16432: esac ;;
16433: esac
16434: ac_abs_top_builddir=$ac_pwd
16435: ac_abs_builddir=$ac_pwd$ac_dir_suffix
16436: # for backward compatibility:
16437: ac_top_builddir=$ac_top_build_prefix
16438:
16439: case $srcdir in
16440: .) # We are building in place.
16441: ac_srcdir=.
16442: ac_top_srcdir=$ac_top_builddir_sub
16443: ac_abs_top_srcdir=$ac_pwd ;;
16444: [\\/]* | ?:[\\/]* ) # Absolute name.
16445: ac_srcdir=$srcdir$ac_dir_suffix;
16446: ac_top_srcdir=$srcdir
16447: ac_abs_top_srcdir=$srcdir ;;
16448: *) # Relative name.
16449: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16450: ac_top_srcdir=$ac_top_build_prefix$srcdir
16451: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16452: esac
16453: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16454:
16455:
16456: case $ac_mode in
16457: :F)
16458: #
16459: # CONFIG_FILE
16460: #
16461:
16462: case $INSTALL in
16463: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16464: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16465: esac
16466: ac_MKDIR_P=$MKDIR_P
16467: case $MKDIR_P in
16468: [\\/$]* | ?:[\\/]* ) ;;
16469: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16470: esac
16471: _ACEOF
16472:
16473: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16474: # If the template does not know about datarootdir, expand it.
16475: # FIXME: This hack should be removed a few years after 2.60.
16476: ac_datarootdir_hack=; ac_datarootdir_seen=
16477: ac_sed_dataroot='
16478: /datarootdir/ {
16479: p
16480: q
16481: }
16482: /@datadir@/p
16483: /@docdir@/p
16484: /@infodir@/p
16485: /@localedir@/p
16486: /@mandir@/p'
16487: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16488: *datarootdir*) ac_datarootdir_seen=yes;;
16489: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16490: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16491: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16492: _ACEOF
16493: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16494: ac_datarootdir_hack='
16495: s&@datadir@&$datadir&g
16496: s&@docdir@&$docdir&g
16497: s&@infodir@&$infodir&g
16498: s&@localedir@&$localedir&g
16499: s&@mandir@&$mandir&g
16500: s&\\\${datarootdir}&$datarootdir&g' ;;
16501: esac
16502: _ACEOF
16503:
16504: # Neutralize VPATH when `$srcdir' = `.'.
16505: # Shell code in configure.ac might set extrasub.
16506: # FIXME: do we really want to maintain this feature?
16507: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16508: ac_sed_extra="$ac_vpsub
16509: $extrasub
16510: _ACEOF
16511: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512: :t
16513: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16514: s|@configure_input@|$ac_sed_conf_input|;t t
16515: s&@top_builddir@&$ac_top_builddir_sub&;t t
16516: s&@top_build_prefix@&$ac_top_build_prefix&;t t
16517: s&@srcdir@&$ac_srcdir&;t t
16518: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16519: s&@top_srcdir@&$ac_top_srcdir&;t t
16520: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16521: s&@builddir@&$ac_builddir&;t t
16522: s&@abs_builddir@&$ac_abs_builddir&;t t
16523: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16524: s&@INSTALL@&$ac_INSTALL&;t t
16525: s&@MKDIR_P@&$ac_MKDIR_P&;t t
16526: $ac_datarootdir_hack
16527: "
1.1.1.2 misho 16528: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16529: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 16530:
16531: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.1.1.2 misho 16532: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16533: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16534: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.1 misho 16535: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16536: which seems to be undefined. Please make sure it is defined" >&5
16537: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16538: which seems to be undefined. Please make sure it is defined" >&2;}
16539:
1.1.1.2 misho 16540: rm -f "$ac_tmp/stdin"
1.1 misho 16541: case $ac_file in
1.1.1.2 misho 16542: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16543: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.1 misho 16544: esac \
16545: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16546: ;;
16547: :H)
16548: #
16549: # CONFIG_HEADER
16550: #
16551: if test x"$ac_file" != x-; then
16552: {
16553: $as_echo "/* $configure_input */" \
1.1.1.2 misho 16554: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16555: } >"$ac_tmp/config.h" \
1.1 misho 16556: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1.1.2 misho 16557: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.1 misho 16558: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16559: $as_echo "$as_me: $ac_file is unchanged" >&6;}
16560: else
16561: rm -f "$ac_file"
1.1.1.2 misho 16562: mv "$ac_tmp/config.h" "$ac_file" \
1.1 misho 16563: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16564: fi
16565: else
16566: $as_echo "/* $configure_input */" \
1.1.1.2 misho 16567: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.1 misho 16568: || as_fn_error $? "could not create -" "$LINENO" 5
16569: fi
16570: # Compute "$ac_file"'s index in $config_headers.
16571: _am_arg="$ac_file"
16572: _am_stamp_count=1
16573: for _am_header in $config_headers :; do
16574: case $_am_header in
16575: $_am_arg | $_am_arg:* )
16576: break ;;
16577: * )
16578: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16579: esac
16580: done
16581: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16582: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16583: X"$_am_arg" : 'X\(//\)[^/]' \| \
16584: X"$_am_arg" : 'X\(//\)$' \| \
16585: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16586: $as_echo X"$_am_arg" |
16587: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16588: s//\1/
16589: q
16590: }
16591: /^X\(\/\/\)[^/].*/{
16592: s//\1/
16593: q
16594: }
16595: /^X\(\/\/\)$/{
16596: s//\1/
16597: q
16598: }
16599: /^X\(\/\).*/{
16600: s//\1/
16601: q
16602: }
16603: s/.*/./; q'`/stamp-h$_am_stamp_count
16604: ;;
16605:
16606: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16607: $as_echo "$as_me: executing $ac_file commands" >&6;}
16608: ;;
16609: esac
16610:
16611:
16612: case $ac_file$ac_mode in
16613: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.1.1.2 misho 16614: # Older Autoconf quotes --file arguments for eval, but not when files
1.1 misho 16615: # are listed without --file. Let's play safe and only enable the eval
16616: # if we detect the quoting.
16617: case $CONFIG_FILES in
16618: *\'*) eval set x "$CONFIG_FILES" ;;
16619: *) set x $CONFIG_FILES ;;
16620: esac
16621: shift
16622: for mf
16623: do
16624: # Strip MF so we end up with the name of the file.
16625: mf=`echo "$mf" | sed -e 's/:.*$//'`
16626: # Check whether this is an Automake generated Makefile or not.
1.1.1.2 misho 16627: # We used to match only the files named 'Makefile.in', but
1.1 misho 16628: # some people rename them; so instead we look at the file content.
16629: # Grep'ing the first line is not enough: some people post-process
16630: # each Makefile.in and add a new line on top of each file to say so.
16631: # Grep'ing the whole file is not good either: AIX grep has a line
16632: # limit of 2048, but all sed's we know have understand at least 4000.
16633: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16634: dirpart=`$as_dirname -- "$mf" ||
16635: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16636: X"$mf" : 'X\(//\)[^/]' \| \
16637: X"$mf" : 'X\(//\)$' \| \
16638: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16639: $as_echo X"$mf" |
16640: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16641: s//\1/
16642: q
16643: }
16644: /^X\(\/\/\)[^/].*/{
16645: s//\1/
16646: q
16647: }
16648: /^X\(\/\/\)$/{
16649: s//\1/
16650: q
16651: }
16652: /^X\(\/\).*/{
16653: s//\1/
16654: q
16655: }
16656: s/.*/./; q'`
16657: else
16658: continue
16659: fi
16660: # Extract the definition of DEPDIR, am__include, and am__quote
1.1.1.2 misho 16661: # from the Makefile without running 'make'.
1.1 misho 16662: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16663: test -z "$DEPDIR" && continue
16664: am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.1.1.2.2.1! misho 16665: test -z "$am__include" && continue
1.1 misho 16666: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16667: # Find all dependency output files, they are included files with
16668: # $(DEPDIR) in their names. We invoke sed twice because it is the
16669: # simplest approach to changing $(DEPDIR) to its actual value in the
16670: # expansion.
16671: for file in `sed -n "
16672: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.1.1.2 misho 16673: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.1 misho 16674: # Make sure the directory exists.
16675: test -f "$dirpart/$file" && continue
16676: fdir=`$as_dirname -- "$file" ||
16677: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16678: X"$file" : 'X\(//\)[^/]' \| \
16679: X"$file" : 'X\(//\)$' \| \
16680: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16681: $as_echo X"$file" |
16682: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16683: s//\1/
16684: q
16685: }
16686: /^X\(\/\/\)[^/].*/{
16687: s//\1/
16688: q
16689: }
16690: /^X\(\/\/\)$/{
16691: s//\1/
16692: q
16693: }
16694: /^X\(\/\).*/{
16695: s//\1/
16696: q
16697: }
16698: s/.*/./; q'`
16699: as_dir=$dirpart/$fdir; as_fn_mkdir_p
16700: # echo "creating $dirpart/$file"
16701: echo '# dummy' > "$dirpart/$file"
16702: done
16703: done
16704: }
16705: ;;
16706: "libtool":C)
16707:
16708: # See if we are running on zsh, and set the options which allow our
16709: # commands through without removal of \ escapes.
16710: if test -n "${ZSH_VERSION+set}" ; then
16711: setopt NO_GLOB_SUBST
16712: fi
16713:
16714: cfgfile="${ofile}T"
16715: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16716: $RM "$cfgfile"
16717:
16718: cat <<_LT_EOF >> "$cfgfile"
16719: #! $SHELL
16720:
16721: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16722: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16723: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16724: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16725: #
16726: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.1.2 misho 16727: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16728: # Foundation, Inc.
1.1 misho 16729: # Written by Gordon Matzigkeit, 1996
16730: #
16731: # This file is part of GNU Libtool.
16732: #
16733: # GNU Libtool is free software; you can redistribute it and/or
16734: # modify it under the terms of the GNU General Public License as
16735: # published by the Free Software Foundation; either version 2 of
16736: # the License, or (at your option) any later version.
16737: #
16738: # As a special exception to the GNU General Public License,
16739: # if you distribute this file as part of a program or library that
16740: # is built using GNU Libtool, you may include this file under the
16741: # same distribution terms that you use for the rest of that program.
16742: #
16743: # GNU Libtool is distributed in the hope that it will be useful,
16744: # but WITHOUT ANY WARRANTY; without even the implied warranty of
16745: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16746: # GNU General Public License for more details.
16747: #
16748: # You should have received a copy of the GNU General Public License
16749: # along with GNU Libtool; see the file COPYING. If not, a copy
16750: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16751: # obtained by writing to the Free Software Foundation, Inc.,
16752: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16753:
16754:
16755: # The names of the tagged configurations supported by this script.
16756: available_tags=""
16757:
16758: # ### BEGIN LIBTOOL CONFIG
16759:
16760: # Whether or not to build shared libraries.
16761: build_libtool_libs=$enable_shared
16762:
16763: # Which release of libtool.m4 was used?
16764: macro_version=$macro_version
16765: macro_revision=$macro_revision
16766:
16767: # Whether or not to build static libraries.
16768: build_old_libs=$enable_static
16769:
16770: # What type of objects to build.
16771: pic_mode=$pic_mode
16772:
16773: # Whether or not to optimize for fast installation.
16774: fast_install=$enable_fast_install
16775:
1.1.1.2 misho 16776: # Shell to use when invoking shell scripts.
16777: SHELL=$lt_SHELL
16778:
16779: # An echo program that protects backslashes.
16780: ECHO=$lt_ECHO
16781:
16782: # The PATH separator for the build system.
16783: PATH_SEPARATOR=$lt_PATH_SEPARATOR
16784:
1.1 misho 16785: # The host system.
16786: host_alias=$host_alias
16787: host=$host
16788: host_os=$host_os
16789:
16790: # The build system.
16791: build_alias=$build_alias
16792: build=$build
16793: build_os=$build_os
16794:
16795: # A sed program that does not truncate output.
16796: SED=$lt_SED
16797:
16798: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16799: Xsed="\$SED -e 1s/^X//"
16800:
16801: # A grep program that handles long lines.
16802: GREP=$lt_GREP
16803:
16804: # An ERE matcher.
16805: EGREP=$lt_EGREP
16806:
16807: # A literal string matcher.
16808: FGREP=$lt_FGREP
16809:
16810: # A BSD- or MS-compatible name lister.
16811: NM=$lt_NM
16812:
16813: # Whether we need soft or hard links.
16814: LN_S=$lt_LN_S
16815:
16816: # What is the maximum length of a command?
16817: max_cmd_len=$max_cmd_len
16818:
16819: # Object file suffix (normally "o").
16820: objext=$ac_objext
16821:
16822: # Executable file suffix (normally "").
16823: exeext=$exeext
16824:
16825: # whether the shell understands "unset".
16826: lt_unset=$lt_unset
16827:
16828: # turn spaces into newlines.
16829: SP2NL=$lt_lt_SP2NL
16830:
16831: # turn newlines into spaces.
16832: NL2SP=$lt_lt_NL2SP
16833:
1.1.1.2 misho 16834: # convert \$build file names to \$host format.
16835: to_host_file_cmd=$lt_cv_to_host_file_cmd
16836:
16837: # convert \$build files to toolchain format.
16838: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1 misho 16839:
16840: # An object symbol dumper.
16841: OBJDUMP=$lt_OBJDUMP
16842:
16843: # Method to check whether dependent libraries are shared objects.
16844: deplibs_check_method=$lt_deplibs_check_method
16845:
1.1.1.2 misho 16846: # Command to use when deplibs_check_method = "file_magic".
1.1 misho 16847: file_magic_cmd=$lt_file_magic_cmd
16848:
1.1.1.2 misho 16849: # How to find potential files when deplibs_check_method = "file_magic".
16850: file_magic_glob=$lt_file_magic_glob
16851:
16852: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16853: want_nocaseglob=$lt_want_nocaseglob
16854:
16855: # DLL creation program.
16856: DLLTOOL=$lt_DLLTOOL
16857:
16858: # Command to associate shared and link libraries.
16859: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16860:
1.1 misho 16861: # The archiver.
16862: AR=$lt_AR
1.1.1.2 misho 16863:
16864: # Flags to create an archive.
1.1 misho 16865: AR_FLAGS=$lt_AR_FLAGS
16866:
1.1.1.2 misho 16867: # How to feed a file listing to the archiver.
16868: archiver_list_spec=$lt_archiver_list_spec
16869:
1.1 misho 16870: # A symbol stripping program.
16871: STRIP=$lt_STRIP
16872:
16873: # Commands used to install an old-style archive.
16874: RANLIB=$lt_RANLIB
16875: old_postinstall_cmds=$lt_old_postinstall_cmds
16876: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16877:
1.1.1.2 misho 16878: # Whether to use a lock for old archive extraction.
16879: lock_old_archive_extraction=$lock_old_archive_extraction
16880:
1.1 misho 16881: # A C compiler.
16882: LTCC=$lt_CC
16883:
16884: # LTCC compiler flags.
16885: LTCFLAGS=$lt_CFLAGS
16886:
16887: # Take the output of nm and produce a listing of raw symbols and C names.
16888: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16889:
16890: # Transform the output of nm in a proper C declaration.
16891: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16892:
16893: # Transform the output of nm in a C name address pair.
16894: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16895:
16896: # Transform the output of nm in a C name address pair when lib prefix is needed.
16897: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16898:
1.1.1.2 misho 16899: # Specify filename containing input files for \$NM.
16900: nm_file_list_spec=$lt_nm_file_list_spec
1.1 misho 16901:
1.1.1.2 misho 16902: # The root where to search for dependent libraries,and in which our libraries should be installed.
16903: lt_sysroot=$lt_sysroot
1.1 misho 16904:
1.1.1.2 misho 16905: # The name of the directory that contains temporary libtool files.
16906: objdir=$objdir
1.1 misho 16907:
16908: # Used to examine libraries when file_magic_cmd begins with "file".
16909: MAGIC_CMD=$MAGIC_CMD
16910:
16911: # Must we lock files when doing compilation?
16912: need_locks=$lt_need_locks
16913:
1.1.1.2 misho 16914: # Manifest tool.
16915: MANIFEST_TOOL=$lt_MANIFEST_TOOL
16916:
1.1 misho 16917: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16918: DSYMUTIL=$lt_DSYMUTIL
16919:
16920: # Tool to change global to local symbols on Mac OS X.
16921: NMEDIT=$lt_NMEDIT
16922:
16923: # Tool to manipulate fat objects and archives on Mac OS X.
16924: LIPO=$lt_LIPO
16925:
16926: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16927: OTOOL=$lt_OTOOL
16928:
16929: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16930: OTOOL64=$lt_OTOOL64
16931:
16932: # Old archive suffix (normally "a").
16933: libext=$libext
16934:
16935: # Shared library suffix (normally ".so").
16936: shrext_cmds=$lt_shrext_cmds
16937:
16938: # The commands to extract the exported symbol list from a shared archive.
16939: extract_expsyms_cmds=$lt_extract_expsyms_cmds
16940:
16941: # Variables whose values should be saved in libtool wrapper scripts and
16942: # restored at link time.
16943: variables_saved_for_relink=$lt_variables_saved_for_relink
16944:
16945: # Do we need the "lib" prefix for modules?
16946: need_lib_prefix=$need_lib_prefix
16947:
16948: # Do we need a version for libraries?
16949: need_version=$need_version
16950:
16951: # Library versioning type.
16952: version_type=$version_type
16953:
16954: # Shared library runtime path variable.
16955: runpath_var=$runpath_var
16956:
16957: # Shared library path variable.
16958: shlibpath_var=$shlibpath_var
16959:
16960: # Is shlibpath searched before the hard-coded library search path?
16961: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16962:
16963: # Format of library name prefix.
16964: libname_spec=$lt_libname_spec
16965:
16966: # List of archive names. First name is the real one, the rest are links.
16967: # The last name is the one that the linker finds with -lNAME
16968: library_names_spec=$lt_library_names_spec
16969:
16970: # The coded name of the library, if different from the real name.
16971: soname_spec=$lt_soname_spec
16972:
1.1.1.2 misho 16973: # Permission mode override for installation of shared libraries.
16974: install_override_mode=$lt_install_override_mode
16975:
1.1 misho 16976: # Command to use after installation of a shared archive.
16977: postinstall_cmds=$lt_postinstall_cmds
16978:
16979: # Command to use after uninstallation of a shared archive.
16980: postuninstall_cmds=$lt_postuninstall_cmds
16981:
16982: # Commands used to finish a libtool library installation in a directory.
16983: finish_cmds=$lt_finish_cmds
16984:
16985: # As "finish_cmds", except a single script fragment to be evaled but
16986: # not shown.
16987: finish_eval=$lt_finish_eval
16988:
16989: # Whether we should hardcode library paths into libraries.
16990: hardcode_into_libs=$hardcode_into_libs
16991:
16992: # Compile-time system search path for libraries.
16993: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16994:
16995: # Run-time system search path for libraries.
16996: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16997:
16998: # Whether dlopen is supported.
16999: dlopen_support=$enable_dlopen
17000:
17001: # Whether dlopen of programs is supported.
17002: dlopen_self=$enable_dlopen_self
17003:
17004: # Whether dlopen of statically linked programs is supported.
17005: dlopen_self_static=$enable_dlopen_self_static
17006:
17007: # Commands to strip libraries.
17008: old_striplib=$lt_old_striplib
17009: striplib=$lt_striplib
17010:
17011:
17012: # The linker used to build libraries.
17013: LD=$lt_LD
17014:
1.1.1.2 misho 17015: # How to create reloadable object files.
17016: reload_flag=$lt_reload_flag
17017: reload_cmds=$lt_reload_cmds
17018:
1.1 misho 17019: # Commands used to build an old-style archive.
17020: old_archive_cmds=$lt_old_archive_cmds
17021:
17022: # A language specific compiler.
17023: CC=$lt_compiler
17024:
17025: # Is the compiler the GNU compiler?
17026: with_gcc=$GCC
17027:
17028: # Compiler flag to turn off builtin functions.
17029: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17030:
17031: # Additional compiler flags for building library objects.
17032: pic_flag=$lt_lt_prog_compiler_pic
17033:
1.1.1.2 misho 17034: # How to pass a linker flag through the compiler.
17035: wl=$lt_lt_prog_compiler_wl
17036:
1.1 misho 17037: # Compiler flag to prevent dynamic linking.
17038: link_static_flag=$lt_lt_prog_compiler_static
17039:
17040: # Does compiler simultaneously support -c and -o options?
17041: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17042:
17043: # Whether or not to add -lc for building shared libraries.
17044: build_libtool_need_lc=$archive_cmds_need_lc
17045:
17046: # Whether or not to disallow shared libs when runtime libs are static.
17047: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17048:
17049: # Compiler flag to allow reflexive dlopens.
17050: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17051:
17052: # Compiler flag to generate shared objects directly from archives.
17053: whole_archive_flag_spec=$lt_whole_archive_flag_spec
17054:
17055: # Whether the compiler copes with passing no objects directly.
17056: compiler_needs_object=$lt_compiler_needs_object
17057:
17058: # Create an old-style archive from a shared archive.
17059: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17060:
17061: # Create a temporary old-style archive to link instead of a shared archive.
17062: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17063:
17064: # Commands used to build a shared archive.
17065: archive_cmds=$lt_archive_cmds
17066: archive_expsym_cmds=$lt_archive_expsym_cmds
17067:
17068: # Commands used to build a loadable module if different from building
17069: # a shared archive.
17070: module_cmds=$lt_module_cmds
17071: module_expsym_cmds=$lt_module_expsym_cmds
17072:
17073: # Whether we are building with GNU ld or not.
17074: with_gnu_ld=$lt_with_gnu_ld
17075:
17076: # Flag that allows shared libraries with undefined symbols to be built.
17077: allow_undefined_flag=$lt_allow_undefined_flag
17078:
17079: # Flag that enforces no undefined symbols.
17080: no_undefined_flag=$lt_no_undefined_flag
17081:
17082: # Flag to hardcode \$libdir into a binary during linking.
17083: # This must work even if \$libdir does not exist
17084: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17085:
17086: # Whether we need a single "-rpath" flag with a separated argument.
17087: hardcode_libdir_separator=$lt_hardcode_libdir_separator
17088:
17089: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17090: # DIR into the resulting binary.
17091: hardcode_direct=$hardcode_direct
17092:
17093: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17094: # DIR into the resulting binary and the resulting library dependency is
17095: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17096: # library is relocated.
17097: hardcode_direct_absolute=$hardcode_direct_absolute
17098:
17099: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17100: # into the resulting binary.
17101: hardcode_minus_L=$hardcode_minus_L
17102:
17103: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17104: # into the resulting binary.
17105: hardcode_shlibpath_var=$hardcode_shlibpath_var
17106:
17107: # Set to "yes" if building a shared library automatically hardcodes DIR
17108: # into the library and all subsequent libraries and executables linked
17109: # against it.
17110: hardcode_automatic=$hardcode_automatic
17111:
17112: # Set to yes if linker adds runtime paths of dependent libraries
17113: # to runtime path list.
17114: inherit_rpath=$inherit_rpath
17115:
17116: # Whether libtool must link a program against all its dependency libraries.
17117: link_all_deplibs=$link_all_deplibs
17118:
17119: # Set to "yes" if exported symbols are required.
17120: always_export_symbols=$always_export_symbols
17121:
17122: # The commands to list exported symbols.
17123: export_symbols_cmds=$lt_export_symbols_cmds
17124:
17125: # Symbols that should not be listed in the preloaded symbols.
17126: exclude_expsyms=$lt_exclude_expsyms
17127:
17128: # Symbols that must always be exported.
17129: include_expsyms=$lt_include_expsyms
17130:
17131: # Commands necessary for linking programs (against libraries) with templates.
17132: prelink_cmds=$lt_prelink_cmds
17133:
1.1.1.2 misho 17134: # Commands necessary for finishing linking programs.
17135: postlink_cmds=$lt_postlink_cmds
17136:
1.1 misho 17137: # Specify filename containing input files.
17138: file_list_spec=$lt_file_list_spec
17139:
17140: # How to hardcode a shared library path into an executable.
17141: hardcode_action=$hardcode_action
17142:
17143: # ### END LIBTOOL CONFIG
17144:
17145: _LT_EOF
17146:
17147: case $host_os in
17148: aix3*)
17149: cat <<\_LT_EOF >> "$cfgfile"
17150: # AIX sometimes has problems with the GCC collect2 program. For some
17151: # reason, if we set the COLLECT_NAMES environment variable, the problems
17152: # vanish in a puff of smoke.
17153: if test "X${COLLECT_NAMES+set}" != Xset; then
17154: COLLECT_NAMES=
17155: export COLLECT_NAMES
17156: fi
17157: _LT_EOF
17158: ;;
17159: esac
17160:
17161:
17162: ltmain="$ac_aux_dir/ltmain.sh"
17163:
17164:
17165: # We use sed instead of cat because bash on DJGPP gets confused if
17166: # if finds mixed CR/LF and LF-only lines. Since sed operates in
17167: # text mode, it properly converts lines to CR/LF. This bash problem
17168: # is reportedly fixed, but why not run on old versions too?
1.1.1.2 misho 17169: sed '$q' "$ltmain" >> "$cfgfile" \
17170: || (rm -f "$cfgfile"; exit 1)
1.1 misho 17171:
1.1.1.2 misho 17172: if test x"$xsi_shell" = xyes; then
17173: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17174: func_dirname ()\
17175: {\
17176: \ case ${1} in\
17177: \ */*) func_dirname_result="${1%/*}${2}" ;;\
17178: \ * ) func_dirname_result="${3}" ;;\
17179: \ esac\
17180: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17181: && mv -f "$cfgfile.tmp" "$cfgfile" \
17182: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17183: test 0 -eq $? || _lt_function_replace_fail=:
17184:
17185:
17186: sed -e '/^func_basename ()$/,/^} # func_basename /c\
17187: func_basename ()\
17188: {\
17189: \ func_basename_result="${1##*/}"\
17190: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17191: && mv -f "$cfgfile.tmp" "$cfgfile" \
17192: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17193: test 0 -eq $? || _lt_function_replace_fail=:
17194:
17195:
17196: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17197: func_dirname_and_basename ()\
17198: {\
17199: \ case ${1} in\
17200: \ */*) func_dirname_result="${1%/*}${2}" ;;\
17201: \ * ) func_dirname_result="${3}" ;;\
17202: \ esac\
17203: \ func_basename_result="${1##*/}"\
17204: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17205: && mv -f "$cfgfile.tmp" "$cfgfile" \
17206: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17207: test 0 -eq $? || _lt_function_replace_fail=:
17208:
17209:
17210: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17211: func_stripname ()\
17212: {\
17213: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17214: \ # positional parameters, so assign one to ordinary parameter first.\
17215: \ func_stripname_result=${3}\
17216: \ func_stripname_result=${func_stripname_result#"${1}"}\
17217: \ func_stripname_result=${func_stripname_result%"${2}"}\
17218: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17219: && mv -f "$cfgfile.tmp" "$cfgfile" \
17220: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17221: test 0 -eq $? || _lt_function_replace_fail=:
17222:
17223:
17224: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17225: func_split_long_opt ()\
17226: {\
17227: \ func_split_long_opt_name=${1%%=*}\
17228: \ func_split_long_opt_arg=${1#*=}\
17229: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17230: && mv -f "$cfgfile.tmp" "$cfgfile" \
17231: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17232: test 0 -eq $? || _lt_function_replace_fail=:
17233:
17234:
17235: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17236: func_split_short_opt ()\
17237: {\
17238: \ func_split_short_opt_arg=${1#??}\
17239: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17240: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17241: && mv -f "$cfgfile.tmp" "$cfgfile" \
17242: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17243: test 0 -eq $? || _lt_function_replace_fail=:
17244:
17245:
17246: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17247: func_lo2o ()\
17248: {\
17249: \ case ${1} in\
17250: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17251: \ *) func_lo2o_result=${1} ;;\
17252: \ esac\
17253: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17254: && mv -f "$cfgfile.tmp" "$cfgfile" \
17255: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17256: test 0 -eq $? || _lt_function_replace_fail=:
17257:
17258:
17259: sed -e '/^func_xform ()$/,/^} # func_xform /c\
17260: func_xform ()\
17261: {\
17262: func_xform_result=${1%.*}.lo\
17263: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17264: && mv -f "$cfgfile.tmp" "$cfgfile" \
17265: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17266: test 0 -eq $? || _lt_function_replace_fail=:
17267:
17268:
17269: sed -e '/^func_arith ()$/,/^} # func_arith /c\
17270: func_arith ()\
17271: {\
17272: func_arith_result=$(( $* ))\
17273: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17274: && mv -f "$cfgfile.tmp" "$cfgfile" \
17275: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17276: test 0 -eq $? || _lt_function_replace_fail=:
17277:
17278:
17279: sed -e '/^func_len ()$/,/^} # func_len /c\
17280: func_len ()\
17281: {\
17282: func_len_result=${#1}\
17283: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17284: && mv -f "$cfgfile.tmp" "$cfgfile" \
17285: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17286: test 0 -eq $? || _lt_function_replace_fail=:
17287:
17288: fi
17289:
17290: if test x"$lt_shell_append" = xyes; then
17291: sed -e '/^func_append ()$/,/^} # func_append /c\
17292: func_append ()\
17293: {\
17294: eval "${1}+=\\${2}"\
17295: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17296: && mv -f "$cfgfile.tmp" "$cfgfile" \
17297: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17298: test 0 -eq $? || _lt_function_replace_fail=:
17299:
17300:
17301: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17302: func_append_quoted ()\
17303: {\
17304: \ func_quote_for_eval "${2}"\
17305: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17306: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17307: && mv -f "$cfgfile.tmp" "$cfgfile" \
17308: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17309: test 0 -eq $? || _lt_function_replace_fail=:
17310:
17311:
17312: # Save a `func_append' function call where possible by direct use of '+='
17313: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17314: && mv -f "$cfgfile.tmp" "$cfgfile" \
17315: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17316: test 0 -eq $? || _lt_function_replace_fail=:
17317: else
17318: # Save a `func_append' function call even when '+=' is not available
17319: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17320: && mv -f "$cfgfile.tmp" "$cfgfile" \
17321: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17322: test 0 -eq $? || _lt_function_replace_fail=:
17323: fi
17324:
17325: if test x"$_lt_function_replace_fail" = x":"; then
17326: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17327: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17328: fi
1.1 misho 17329:
17330:
1.1.1.2 misho 17331: mv -f "$cfgfile" "$ofile" ||
1.1 misho 17332: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17333: chmod +x "$ofile"
17334:
17335: ;;
17336:
17337: esac
17338: done # for ac_tag
17339:
17340:
17341: as_fn_exit 0
17342: _ACEOF
17343: ac_clean_files=$ac_clean_files_save
17344:
17345: test $ac_write_fail = 0 ||
17346: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17347:
17348:
17349: # configure is writing to config.log, and then calls config.status.
17350: # config.status does its own redirection, appending to config.log.
17351: # Unfortunately, on DOS this fails, as config.log is still kept open
17352: # by configure, so config.status won't be able to write to it; its
17353: # output is simply discarded. So we exec the FD to /dev/null,
17354: # effectively closing config.log, so it can be properly (re)opened and
17355: # appended to by config.status. When coming back to configure, we
17356: # need to make the FD available again.
17357: if test "$no_create" != yes; then
17358: ac_cs_success=:
17359: ac_config_status_args=
17360: test "$silent" = yes &&
17361: ac_config_status_args="$ac_config_status_args --quiet"
17362: exec 5>/dev/null
17363: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17364: exec 5>>config.log
17365: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17366: # would make configure fail if this is the last instruction.
17367: $ac_cs_success || as_fn_exit 1
17368: fi
17369: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17370: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17371: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17372: fi
17373:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>