Annotation of embedaddon/libxml2/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.68.
1.1 misho 4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 misho 92: as_myself=
1.1 misho 93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175:
176: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: PATH=/empty FPATH=/empty; export PATH FPATH
181: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
1.1.1.2 misho 182: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183: test \$(( 1 + 1 )) = 2 || exit 1"
1.1 misho 184: if (eval "$as_required") 2>/dev/null; then :
185: as_have_required=yes
186: else
187: as_have_required=no
188: fi
189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190:
191: else
192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193: as_found=false
194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195: do
196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
198: as_found=:
199: case $as_dir in #(
200: /*)
201: for as_base in sh bash ksh sh5; do
202: # Try only shells that exist, to save several forks.
203: as_shell=$as_dir/$as_base
204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206: CONFIG_SHELL=$as_shell as_have_required=yes
207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: break 2
209: fi
210: fi
211: done;;
212: esac
213: as_found=false
214: done
215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217: CONFIG_SHELL=$SHELL as_have_required=yes
218: fi; }
219: IFS=$as_save_IFS
220:
221:
222: if test "x$CONFIG_SHELL" != x; then :
223: # We cannot yet assume a decent shell, so we have to provide a
224: # neutralization value for shells without unset; and this also
225: # works around shells that cannot unset nonexistent variables.
1.1.1.2 misho 226: # Preserve -v and -x to the replacement shell.
1.1 misho 227: BASH_ENV=/dev/null
228: ENV=/dev/null
229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230: export CONFIG_SHELL
1.1.1.2 misho 231: case $- in # ((((
232: *v*x* | *x*v* ) as_opts=-vx ;;
233: *v* ) as_opts=-v ;;
234: *x* ) as_opts=-x ;;
235: * ) as_opts= ;;
236: esac
237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.1 misho 238: fi
239:
240: if test x$as_have_required = xno; then :
241: $as_echo "$0: This script requires a shell more modern than all"
242: $as_echo "$0: the shells that I found on your system."
243: if test x${ZSH_VERSION+set} = xset ; then
244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246: else
247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248: $0: including any error possibly output before this
249: $0: message. Then install a modern shell, or manually run
250: $0: the script under such a shell if you do have one."
251: fi
252: exit 1
253: fi
254: fi
255: fi
256: SHELL=${CONFIG_SHELL-/bin/sh}
257: export SHELL
258: # Unset more variables known to interfere with behavior of common tools.
259: CLICOLOR_FORCE= GREP_OPTIONS=
260: unset CLICOLOR_FORCE GREP_OPTIONS
261:
262: ## --------------------- ##
263: ## M4sh Shell Functions. ##
264: ## --------------------- ##
265: # as_fn_unset VAR
266: # ---------------
267: # Portably unset VAR.
268: as_fn_unset ()
269: {
270: { eval $1=; unset $1;}
271: }
272: as_unset=as_fn_unset
273:
274: # as_fn_set_status STATUS
275: # -----------------------
276: # Set $? to STATUS, without forking.
277: as_fn_set_status ()
278: {
279: return $1
280: } # as_fn_set_status
281:
282: # as_fn_exit STATUS
283: # -----------------
284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285: as_fn_exit ()
286: {
287: set +e
288: as_fn_set_status $1
289: exit $1
290: } # as_fn_exit
291:
292: # as_fn_mkdir_p
293: # -------------
294: # Create "$as_dir" as a directory, including parents if necessary.
295: as_fn_mkdir_p ()
296: {
297:
298: case $as_dir in #(
299: -*) as_dir=./$as_dir;;
300: esac
301: test -d "$as_dir" || eval $as_mkdir_p || {
302: as_dirs=
303: while :; do
304: case $as_dir in #(
305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306: *) as_qdir=$as_dir;;
307: esac
308: as_dirs="'$as_qdir' $as_dirs"
309: as_dir=`$as_dirname -- "$as_dir" ||
310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311: X"$as_dir" : 'X\(//\)[^/]' \| \
312: X"$as_dir" : 'X\(//\)$' \| \
313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314: $as_echo X"$as_dir" |
315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\/\)[^/].*/{
320: s//\1/
321: q
322: }
323: /^X\(\/\/\)$/{
324: s//\1/
325: q
326: }
327: /^X\(\/\).*/{
328: s//\1/
329: q
330: }
331: s/.*/./; q'`
332: test -d "$as_dir" && break
333: done
334: test -z "$as_dirs" || eval "mkdir $as_dirs"
335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336:
337:
338: } # as_fn_mkdir_p
339: # as_fn_append VAR VALUE
340: # ----------------------
341: # Append the text in VALUE to the end of the definition contained in VAR. Take
342: # advantage of any shell optimizations that allow amortized linear growth over
343: # repeated appends, instead of the typical quadratic growth present in naive
344: # implementations.
345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346: eval 'as_fn_append ()
347: {
348: eval $1+=\$2
349: }'
350: else
351: as_fn_append ()
352: {
353: eval $1=\$$1\$2
354: }
355: fi # as_fn_append
356:
357: # as_fn_arith ARG...
358: # ------------------
359: # Perform arithmetic evaluation on the ARGs, and store the result in the
360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
361: # must be portable across $(()) and expr.
362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363: eval 'as_fn_arith ()
364: {
365: as_val=$(( $* ))
366: }'
367: else
368: as_fn_arith ()
369: {
370: as_val=`expr "$@" || test $? -eq 1`
371: }
372: fi # as_fn_arith
373:
374:
375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
376: # ----------------------------------------
377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379: # script with STATUS, using 1 if that was 0.
380: as_fn_error ()
381: {
382: as_status=$1; test $as_status -eq 0 && as_status=1
383: if test "$4"; then
384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386: fi
387: $as_echo "$as_me: error: $2" >&2
388: as_fn_exit $as_status
389: } # as_fn_error
390:
391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405: as_dirname=dirname
406: else
407: as_dirname=false
408: fi
409:
410: as_me=`$as_basename -- "$0" ||
411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414: $as_echo X/"$0" |
415: sed '/^.*\/\([^/][^/]*\)\/*$/{
416: s//\1/
417: q
418: }
419: /^X\/\(\/\/\)$/{
420: s//\1/
421: q
422: }
423: /^X\/\(\/\).*/{
424: s//\1/
425: q
426: }
427: s/.*/./; q'`
428:
429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
435:
436:
437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
446: sed '
447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
451: N
452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454: t loop
455: s/-\n.*//
456: ' >$as_me.lineno &&
457: chmod +x "$as_me.lineno" ||
458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
464: # Exit status is that of the last command.
465: exit
466: }
467:
468: ECHO_C= ECHO_N= ECHO_T=
469: case `echo -n x` in #(((((
470: -n*)
471: case `echo 'xy\c'` in
472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473: xy) ECHO_C='\c';;
474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475: ECHO_T=' ';;
476: esac;;
477: *)
478: ECHO_N='-n';;
479: esac
480:
481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
484: else
485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
487: fi
488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
507:
508: if mkdir -p . 2>/dev/null; then
509: as_mkdir_p='mkdir -p "$as_dir"'
510: else
511: test -d ./-p && rmdir ./-p
512: as_mkdir_p=false
513: fi
514:
515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
528: case $1 in #(
529: -*)set "./$1";;
530: esac;
531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
535: fi
536: as_executable_p=$as_test_x
537:
538: # Sed expression to map a string onto a valid CPP name.
539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540:
541: # Sed expression to map a string onto a valid variable name.
542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543:
544: SHELL=${CONFIG_SHELL-/bin/sh}
545:
546:
547: test -n "$DJDIR" || exec 7<&0 </dev/null
548: exec 6>&1
549:
550: # Name of the host.
551: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552: # so uname gets run too.
553: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554:
555: #
556: # Initializations.
557: #
558: ac_default_prefix=/usr/local
559: ac_clean_files=
560: ac_config_libobj_dir=.
561: LIBOBJS=
562: cross_compiling=no
563: subdirs=
564: MFLAGS=
565: MAKEFLAGS=
566:
567: # Identity of this package.
568: PACKAGE_NAME=
569: PACKAGE_TARNAME=
570: PACKAGE_VERSION=
571: PACKAGE_STRING=
572: PACKAGE_BUGREPORT=
573: PACKAGE_URL=
574:
575: ac_unique_file="entities.c"
576: # Factoring default headers for most tests.
577: ac_includes_default="\
578: #include <stdio.h>
579: #ifdef HAVE_SYS_TYPES_H
580: # include <sys/types.h>
581: #endif
582: #ifdef HAVE_SYS_STAT_H
583: # include <sys/stat.h>
584: #endif
585: #ifdef STDC_HEADERS
586: # include <stdlib.h>
587: # include <stddef.h>
588: #else
589: # ifdef HAVE_STDLIB_H
590: # include <stdlib.h>
591: # endif
592: #endif
593: #ifdef HAVE_STRING_H
594: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595: # include <memory.h>
596: # endif
597: # include <string.h>
598: #endif
599: #ifdef HAVE_STRINGS_H
600: # include <strings.h>
601: #endif
602: #ifdef HAVE_INTTYPES_H
603: # include <inttypes.h>
604: #endif
605: #ifdef HAVE_STDINT_H
606: # include <stdint.h>
607: #endif
608: #ifdef HAVE_UNISTD_H
609: # include <unistd.h>
610: #endif"
611:
612: ac_subst_vars='am__EXEEXT_FALSE
613: am__EXEEXT_TRUE
614: LTLIBOBJS
615: LIBOBJS
616: PYTHON_TESTS
617: RELDATE
618: RDL_LIBS
619: M_LIBS
620: PYTHON_SITE_PACKAGES
621: PYTHON_INCLUDES
622: PYTHON_VERSION
623: HAVE_ISINF
624: HAVE_ISNAN
625: XML_INCLUDEDIR
626: ICONV_LIBS
627: XML_LIBTOOLLIBS
628: XML_LIBS
629: XML_LIBDIR
630: XML_CFLAGS
631: CYGWIN_EXTRA_PYTHON_LIBADD
632: CYGWIN_EXTRA_LDFLAGS
633: WIN32_EXTRA_PYTHON_LIBADD
634: WIN32_EXTRA_LDFLAGS
635: WIN32_EXTRA_LIBADD
636: WITH_RUN_DEBUG
637: WITH_MEM_DEBUG
638: TEST_DEBUG
639: DEBUG_OBJ
640: WITH_DEBUG
641: TEST_REGEXPS
642: WITH_REGEXPS
643: TEST_SCHEMAS
644: WITH_SCHEMAS
645: TEST_SCHEMATRON
646: WITH_SCHEMATRON
647: WITH_ISO8859X
648: WITH_ICU
649: WITH_ICONV
650: WITH_OUTPUT
651: TEST_XPATH
652: XPATH_OBJ
653: WITH_XPATH
654: TEST_XINCLUDE
655: XINCLUDE_OBJ
656: WITH_XINCLUDE
657: TEST_C14N
658: C14N_OBJ
659: WITH_C14N
660: TEST_XPTR
661: XPTR_OBJ
662: WITH_XPTR
663: DOCB_OBJ
664: WITH_DOCB
665: TEST_CATALOG
666: CATALOG_OBJ
667: WITH_CATALOG
668: TEST_VTIME
669: TEST_VALID
670: WITH_VALID
671: TEST_PHTML
672: TEST_HTML
673: HTML_OBJ
674: WITH_HTML
675: TEST_PUSH
676: WITH_PUSH
677: TEST_SAX
678: WITH_SAX1
679: TEST_PATTERN
680: WITH_PATTERN
681: WITH_WRITER
682: READER_TEST
683: WITH_READER
684: WITH_LEGACY
685: HTTP_OBJ
686: WITH_HTTP
687: FTP_OBJ
688: WITH_FTP
689: WITH_TREE
690: THREADS_W32
691: TEST_THREADS
692: THREAD_CFLAGS
693: WITH_THREADS
694: BASE_THREAD_LIBS
695: THREAD_LIBS
696: WITH_TRIO
697: WITH_TRIO_SOURCES_FALSE
698: WITH_TRIO_SOURCES_TRUE
699: STATIC_BINARIES
700: TEST_MODULES
701: MODULE_EXTENSION
702: MODULE_PLATFORM_LIBS
703: WITH_MODULES
704: PYTHON_LIBS
705: PYTHON_SUBDIR
706: pythondir
707: WITH_PYTHON_FALSE
708: WITH_PYTHON_TRUE
709: PYTHON
1.1.1.2 misho 710: WITH_LZMA
711: LZMA_LIBS
712: LZMA_CFLAGS
1.1 misho 713: WITH_ZLIB
714: Z_LIBS
715: Z_CFLAGS
716: REBUILD_DOCS_FALSE
717: REBUILD_DOCS_TRUE
718: HTML_DIR
719: USE_VERSION_SCRIPT_FALSE
720: USE_VERSION_SCRIPT_TRUE
721: VERSION_SCRIPT_FLAGS
722: OTOOL64
723: OTOOL
724: LIPO
725: NMEDIT
726: DSYMUTIL
1.1.1.2 misho 727: MANIFEST_TOOL
1.1 misho 728: RANLIB
1.1.1.2 misho 729: ac_ct_AR
1.1 misho 730: AR
731: LN_S
732: NM
733: ac_ct_DUMPBIN
734: DUMPBIN
735: LD
736: FGREP
1.1.1.2 misho 737: EGREP
738: GREP
1.1 misho 739: SED
740: LIBTOOL
741: OBJDUMP
742: DLLTOOL
743: AS
744: XSLTPROC
745: XMLLINT
746: WGET
747: PERL
748: TAR
749: MV
750: RM
751: CPP
752: am__fastdepCC_FALSE
753: am__fastdepCC_TRUE
754: CCDEPMODE
755: AMDEPBACKSLASH
756: AMDEP_FALSE
757: AMDEP_TRUE
758: am__quote
759: am__include
760: DEPDIR
761: OBJEXT
762: EXEEXT
763: ac_ct_CC
764: CPPFLAGS
765: LDFLAGS
766: CFLAGS
767: CC
1.1.1.2 misho 768: AM_BACKSLASH
769: AM_DEFAULT_VERBOSITY
1.1 misho 770: am__untar
771: am__tar
772: AMTAR
773: am__leading_dot
774: SET_MAKE
775: AWK
776: mkdir_p
777: MKDIR_P
778: INSTALL_STRIP_PROGRAM
779: STRIP
780: install_sh
781: MAKEINFO
782: AUTOHEADER
783: AUTOMAKE
784: AUTOCONF
785: ACLOCAL
786: VERSION
787: PACKAGE
788: CYGPATH_W
789: am__isrc
790: INSTALL_DATA
791: INSTALL_SCRIPT
792: INSTALL_PROGRAM
793: LIBXML_VERSION_EXTRA
794: LIBXML_VERSION_NUMBER
795: LIBXML_VERSION_INFO
796: LIBXML_VERSION
797: LIBXML_MICRO_VERSION
798: LIBXML_MINOR_VERSION
799: LIBXML_MAJOR_VERSION
800: host_os
801: host_vendor
802: host_cpu
803: host
804: build_os
805: build_vendor
806: build_cpu
807: build
808: target_alias
809: host_alias
810: build_alias
811: LIBS
812: ECHO_T
813: ECHO_N
814: ECHO_C
815: DEFS
816: mandir
817: localedir
818: libdir
819: psdir
820: pdfdir
821: dvidir
822: htmldir
823: infodir
824: docdir
825: oldincludedir
826: includedir
827: localstatedir
828: sharedstatedir
829: sysconfdir
830: datadir
831: datarootdir
832: libexecdir
833: sbindir
834: bindir
835: program_transform_name
836: prefix
837: exec_prefix
838: PACKAGE_URL
839: PACKAGE_BUGREPORT
840: PACKAGE_STRING
841: PACKAGE_VERSION
842: PACKAGE_TARNAME
843: PACKAGE_NAME
844: PATH_SEPARATOR
845: SHELL'
846: ac_subst_files=''
847: ac_user_opts='
848: enable_option_checking
1.1.1.2 misho 849: enable_silent_rules
1.1 misho 850: enable_dependency_tracking
851: enable_shared
852: enable_static
853: with_pic
854: enable_fast_install
855: with_gnu_ld
1.1.1.2 misho 856: with_sysroot
1.1 misho 857: enable_libtool_lock
858: with_c14n
859: with_catalog
860: with_debug
861: with_docbook
862: with_fexceptions
863: with_ftp
864: with_history
865: with_html
866: with_html_dir
867: with_html_subdir
868: with_http
869: with_iconv
870: with_icu
871: with_iso8859x
872: with_legacy
873: with_mem_debug
874: with_minimum
875: with_output
876: with_pattern
877: with_push
878: with_python
879: with_reader
880: with_readline
881: with_regexps
882: with_run_debug
883: with_sax1
884: with_schemas
885: with_schematron
886: with_threads
887: with_thread_alloc
888: with_tree
889: with_valid
890: with_writer
891: with_xinclude
892: with_xpath
893: with_xptr
894: with_modules
895: with_zlib
1.1.1.2 misho 896: with_lzma
1.1 misho 897: with_coverage
898: enable_rebuild_docs
899: enable_ipv6
900: '
901: ac_precious_vars='build_alias
902: host_alias
903: target_alias
904: CC
905: CFLAGS
906: LDFLAGS
907: LIBS
908: CPPFLAGS
909: CPP'
910:
911:
912: # Initialize some variables set by options.
913: ac_init_help=
914: ac_init_version=false
915: ac_unrecognized_opts=
916: ac_unrecognized_sep=
917: # The variables have the same names as the options, with
918: # dashes changed to underlines.
919: cache_file=/dev/null
920: exec_prefix=NONE
921: no_create=
922: no_recursion=
923: prefix=NONE
924: program_prefix=NONE
925: program_suffix=NONE
926: program_transform_name=s,x,x,
927: silent=
928: site=
929: srcdir=
930: verbose=
931: x_includes=NONE
932: x_libraries=NONE
933:
934: # Installation directory options.
935: # These are left unexpanded so users can "make install exec_prefix=/foo"
936: # and all the variables that are supposed to be based on exec_prefix
937: # by default will actually change.
938: # Use braces instead of parens because sh, perl, etc. also accept them.
939: # (The list follows the same order as the GNU Coding Standards.)
940: bindir='${exec_prefix}/bin'
941: sbindir='${exec_prefix}/sbin'
942: libexecdir='${exec_prefix}/libexec'
943: datarootdir='${prefix}/share'
944: datadir='${datarootdir}'
945: sysconfdir='${prefix}/etc'
946: sharedstatedir='${prefix}/com'
947: localstatedir='${prefix}/var'
948: includedir='${prefix}/include'
949: oldincludedir='/usr/include'
950: docdir='${datarootdir}/doc/${PACKAGE}'
951: infodir='${datarootdir}/info'
952: htmldir='${docdir}'
953: dvidir='${docdir}'
954: pdfdir='${docdir}'
955: psdir='${docdir}'
956: libdir='${exec_prefix}/lib'
957: localedir='${datarootdir}/locale'
958: mandir='${datarootdir}/man'
959:
960: ac_prev=
961: ac_dashdash=
962: for ac_option
963: do
964: # If the previous option needs an argument, assign it.
965: if test -n "$ac_prev"; then
966: eval $ac_prev=\$ac_option
967: ac_prev=
968: continue
969: fi
970:
971: case $ac_option in
1.1.1.2 misho 972: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973: *=) ac_optarg= ;;
974: *) ac_optarg=yes ;;
1.1 misho 975: esac
976:
977: # Accept the important Cygnus configure options, so we can diagnose typos.
978:
979: case $ac_dashdash$ac_option in
980: --)
981: ac_dashdash=yes ;;
982:
983: -bindir | --bindir | --bindi | --bind | --bin | --bi)
984: ac_prev=bindir ;;
985: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986: bindir=$ac_optarg ;;
987:
988: -build | --build | --buil | --bui | --bu)
989: ac_prev=build_alias ;;
990: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991: build_alias=$ac_optarg ;;
992:
993: -cache-file | --cache-file | --cache-fil | --cache-fi \
994: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995: ac_prev=cache_file ;;
996: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998: cache_file=$ac_optarg ;;
999:
1000: --config-cache | -C)
1001: cache_file=config.cache ;;
1002:
1003: -datadir | --datadir | --datadi | --datad)
1004: ac_prev=datadir ;;
1005: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006: datadir=$ac_optarg ;;
1007:
1008: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009: | --dataroo | --dataro | --datar)
1010: ac_prev=datarootdir ;;
1011: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013: datarootdir=$ac_optarg ;;
1014:
1015: -disable-* | --disable-*)
1016: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017: # Reject names that are not valid shell variable names.
1018: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019: as_fn_error $? "invalid feature name: $ac_useropt"
1020: ac_useropt_orig=$ac_useropt
1021: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022: case $ac_user_opts in
1023: *"
1024: "enable_$ac_useropt"
1025: "*) ;;
1026: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027: ac_unrecognized_sep=', ';;
1028: esac
1029: eval enable_$ac_useropt=no ;;
1030:
1031: -docdir | --docdir | --docdi | --doc | --do)
1032: ac_prev=docdir ;;
1033: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034: docdir=$ac_optarg ;;
1035:
1036: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037: ac_prev=dvidir ;;
1038: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039: dvidir=$ac_optarg ;;
1040:
1041: -enable-* | --enable-*)
1042: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043: # Reject names that are not valid shell variable names.
1044: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045: as_fn_error $? "invalid feature name: $ac_useropt"
1046: ac_useropt_orig=$ac_useropt
1047: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048: case $ac_user_opts in
1049: *"
1050: "enable_$ac_useropt"
1051: "*) ;;
1052: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053: ac_unrecognized_sep=', ';;
1054: esac
1055: eval enable_$ac_useropt=\$ac_optarg ;;
1056:
1057: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059: | --exec | --exe | --ex)
1060: ac_prev=exec_prefix ;;
1061: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063: | --exec=* | --exe=* | --ex=*)
1064: exec_prefix=$ac_optarg ;;
1065:
1066: -gas | --gas | --ga | --g)
1067: # Obsolete; use --with-gas.
1068: with_gas=yes ;;
1069:
1070: -help | --help | --hel | --he | -h)
1071: ac_init_help=long ;;
1072: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073: ac_init_help=recursive ;;
1074: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075: ac_init_help=short ;;
1076:
1077: -host | --host | --hos | --ho)
1078: ac_prev=host_alias ;;
1079: -host=* | --host=* | --hos=* | --ho=*)
1080: host_alias=$ac_optarg ;;
1081:
1082: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083: ac_prev=htmldir ;;
1084: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085: | --ht=*)
1086: htmldir=$ac_optarg ;;
1087:
1088: -includedir | --includedir | --includedi | --included | --include \
1089: | --includ | --inclu | --incl | --inc)
1090: ac_prev=includedir ;;
1091: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092: | --includ=* | --inclu=* | --incl=* | --inc=*)
1093: includedir=$ac_optarg ;;
1094:
1095: -infodir | --infodir | --infodi | --infod | --info | --inf)
1096: ac_prev=infodir ;;
1097: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098: infodir=$ac_optarg ;;
1099:
1100: -libdir | --libdir | --libdi | --libd)
1101: ac_prev=libdir ;;
1102: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103: libdir=$ac_optarg ;;
1104:
1105: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106: | --libexe | --libex | --libe)
1107: ac_prev=libexecdir ;;
1108: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109: | --libexe=* | --libex=* | --libe=*)
1110: libexecdir=$ac_optarg ;;
1111:
1112: -localedir | --localedir | --localedi | --localed | --locale)
1113: ac_prev=localedir ;;
1114: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115: localedir=$ac_optarg ;;
1116:
1117: -localstatedir | --localstatedir | --localstatedi | --localstated \
1118: | --localstate | --localstat | --localsta | --localst | --locals)
1119: ac_prev=localstatedir ;;
1120: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122: localstatedir=$ac_optarg ;;
1123:
1124: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125: ac_prev=mandir ;;
1126: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127: mandir=$ac_optarg ;;
1128:
1129: -nfp | --nfp | --nf)
1130: # Obsolete; use --without-fp.
1131: with_fp=no ;;
1132:
1133: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134: | --no-cr | --no-c | -n)
1135: no_create=yes ;;
1136:
1137: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139: no_recursion=yes ;;
1140:
1141: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143: | --oldin | --oldi | --old | --ol | --o)
1144: ac_prev=oldincludedir ;;
1145: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148: oldincludedir=$ac_optarg ;;
1149:
1150: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151: ac_prev=prefix ;;
1152: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153: prefix=$ac_optarg ;;
1154:
1155: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156: | --program-pre | --program-pr | --program-p)
1157: ac_prev=program_prefix ;;
1158: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160: program_prefix=$ac_optarg ;;
1161:
1162: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163: | --program-suf | --program-su | --program-s)
1164: ac_prev=program_suffix ;;
1165: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167: program_suffix=$ac_optarg ;;
1168:
1169: -program-transform-name | --program-transform-name \
1170: | --program-transform-nam | --program-transform-na \
1171: | --program-transform-n | --program-transform- \
1172: | --program-transform | --program-transfor \
1173: | --program-transfo | --program-transf \
1174: | --program-trans | --program-tran \
1175: | --progr-tra | --program-tr | --program-t)
1176: ac_prev=program_transform_name ;;
1177: -program-transform-name=* | --program-transform-name=* \
1178: | --program-transform-nam=* | --program-transform-na=* \
1179: | --program-transform-n=* | --program-transform-=* \
1180: | --program-transform=* | --program-transfor=* \
1181: | --program-transfo=* | --program-transf=* \
1182: | --program-trans=* | --program-tran=* \
1183: | --progr-tra=* | --program-tr=* | --program-t=*)
1184: program_transform_name=$ac_optarg ;;
1185:
1186: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187: ac_prev=pdfdir ;;
1188: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189: pdfdir=$ac_optarg ;;
1190:
1191: -psdir | --psdir | --psdi | --psd | --ps)
1192: ac_prev=psdir ;;
1193: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194: psdir=$ac_optarg ;;
1195:
1196: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197: | -silent | --silent | --silen | --sile | --sil)
1198: silent=yes ;;
1199:
1200: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201: ac_prev=sbindir ;;
1202: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203: | --sbi=* | --sb=*)
1204: sbindir=$ac_optarg ;;
1205:
1206: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208: | --sharedst | --shareds | --shared | --share | --shar \
1209: | --sha | --sh)
1210: ac_prev=sharedstatedir ;;
1211: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214: | --sha=* | --sh=*)
1215: sharedstatedir=$ac_optarg ;;
1216:
1217: -site | --site | --sit)
1218: ac_prev=site ;;
1219: -site=* | --site=* | --sit=*)
1220: site=$ac_optarg ;;
1221:
1222: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223: ac_prev=srcdir ;;
1224: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225: srcdir=$ac_optarg ;;
1226:
1227: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228: | --syscon | --sysco | --sysc | --sys | --sy)
1229: ac_prev=sysconfdir ;;
1230: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232: sysconfdir=$ac_optarg ;;
1233:
1234: -target | --target | --targe | --targ | --tar | --ta | --t)
1235: ac_prev=target_alias ;;
1236: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237: target_alias=$ac_optarg ;;
1238:
1239: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240: verbose=yes ;;
1241:
1242: -version | --version | --versio | --versi | --vers | -V)
1243: ac_init_version=: ;;
1244:
1245: -with-* | --with-*)
1246: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247: # Reject names that are not valid shell variable names.
1248: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249: as_fn_error $? "invalid package name: $ac_useropt"
1250: ac_useropt_orig=$ac_useropt
1251: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252: case $ac_user_opts in
1253: *"
1254: "with_$ac_useropt"
1255: "*) ;;
1256: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257: ac_unrecognized_sep=', ';;
1258: esac
1259: eval with_$ac_useropt=\$ac_optarg ;;
1260:
1261: -without-* | --without-*)
1262: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263: # Reject names that are not valid shell variable names.
1264: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265: as_fn_error $? "invalid package name: $ac_useropt"
1266: ac_useropt_orig=$ac_useropt
1267: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268: case $ac_user_opts in
1269: *"
1270: "with_$ac_useropt"
1271: "*) ;;
1272: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273: ac_unrecognized_sep=', ';;
1274: esac
1275: eval with_$ac_useropt=no ;;
1276:
1277: --x)
1278: # Obsolete; use --with-x.
1279: with_x=yes ;;
1280:
1281: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282: | --x-incl | --x-inc | --x-in | --x-i)
1283: ac_prev=x_includes ;;
1284: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286: x_includes=$ac_optarg ;;
1287:
1288: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290: ac_prev=x_libraries ;;
1291: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293: x_libraries=$ac_optarg ;;
1294:
1295: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296: Try \`$0 --help' for more information"
1297: ;;
1298:
1299: *=*)
1300: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301: # Reject names that are not valid shell variable names.
1302: case $ac_envvar in #(
1303: '' | [0-9]* | *[!_$as_cr_alnum]* )
1304: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305: esac
1306: eval $ac_envvar=\$ac_optarg
1307: export $ac_envvar ;;
1308:
1309: *)
1310: # FIXME: should be removed in autoconf 3.0.
1311: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1.1.2 misho 1314: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misho 1315: ;;
1316:
1317: esac
1318: done
1319:
1320: if test -n "$ac_prev"; then
1321: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322: as_fn_error $? "missing argument to $ac_option"
1323: fi
1324:
1325: if test -n "$ac_unrecognized_opts"; then
1326: case $enable_option_checking in
1327: no) ;;
1328: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330: esac
1331: fi
1332:
1333: # Check all directory arguments for consistency.
1334: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335: datadir sysconfdir sharedstatedir localstatedir includedir \
1336: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337: libdir localedir mandir
1338: do
1339: eval ac_val=\$$ac_var
1340: # Remove trailing slashes.
1341: case $ac_val in
1342: */ )
1343: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344: eval $ac_var=\$ac_val;;
1345: esac
1346: # Be sure to have absolute directory names.
1347: case $ac_val in
1348: [\\/$]* | ?:[\\/]* ) continue;;
1349: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350: esac
1351: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352: done
1353:
1354: # There might be people who depend on the old broken behavior: `$host'
1355: # used to hold the argument of --host etc.
1356: # FIXME: To remove some day.
1357: build=$build_alias
1358: host=$host_alias
1359: target=$target_alias
1360:
1361: # FIXME: To remove some day.
1362: if test "x$host_alias" != x; then
1363: if test "x$build_alias" = x; then
1364: cross_compiling=maybe
1365: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1366: If a cross compiler is detected then cross compile mode will be used" >&2
1367: elif test "x$build_alias" != "x$host_alias"; then
1368: cross_compiling=yes
1369: fi
1370: fi
1371:
1372: ac_tool_prefix=
1373: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374:
1375: test "$silent" = yes && exec 6>/dev/null
1376:
1377:
1378: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379: ac_ls_di=`ls -di .` &&
1380: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381: as_fn_error $? "working directory cannot be determined"
1382: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383: as_fn_error $? "pwd does not report name of working directory"
1384:
1385:
1386: # Find the source files, if location was not specified.
1387: if test -z "$srcdir"; then
1388: ac_srcdir_defaulted=yes
1389: # Try the directory containing this script, then the parent directory.
1390: ac_confdir=`$as_dirname -- "$as_myself" ||
1391: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392: X"$as_myself" : 'X\(//\)[^/]' \| \
1393: X"$as_myself" : 'X\(//\)$' \| \
1394: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395: $as_echo X"$as_myself" |
1396: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397: s//\1/
1398: q
1399: }
1400: /^X\(\/\/\)[^/].*/{
1401: s//\1/
1402: q
1403: }
1404: /^X\(\/\/\)$/{
1405: s//\1/
1406: q
1407: }
1408: /^X\(\/\).*/{
1409: s//\1/
1410: q
1411: }
1412: s/.*/./; q'`
1413: srcdir=$ac_confdir
1414: if test ! -r "$srcdir/$ac_unique_file"; then
1415: srcdir=..
1416: fi
1417: else
1418: ac_srcdir_defaulted=no
1419: fi
1420: if test ! -r "$srcdir/$ac_unique_file"; then
1421: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423: fi
1424: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425: ac_abs_confdir=`(
1426: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427: pwd)`
1428: # When building in place, set srcdir=.
1429: if test "$ac_abs_confdir" = "$ac_pwd"; then
1430: srcdir=.
1431: fi
1432: # Remove unnecessary trailing slashes from srcdir.
1433: # Double slashes in file names in object file debugging info
1434: # mess up M-x gdb in Emacs.
1435: case $srcdir in
1436: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437: esac
1438: for ac_var in $ac_precious_vars; do
1439: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440: eval ac_env_${ac_var}_value=\$${ac_var}
1441: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443: done
1444:
1445: #
1446: # Report the --help message.
1447: #
1448: if test "$ac_init_help" = "long"; then
1449: # Omit some internal or obsolete options to make the list less imposing.
1450: # This message is too long to be a string in the A/UX 3.1 sh.
1451: cat <<_ACEOF
1452: \`configure' configures this package to adapt to many kinds of systems.
1453:
1454: Usage: $0 [OPTION]... [VAR=VALUE]...
1455:
1456: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457: VAR=VALUE. See below for descriptions of some of the useful variables.
1458:
1459: Defaults for the options are specified in brackets.
1460:
1461: Configuration:
1462: -h, --help display this help and exit
1463: --help=short display options specific to this package
1464: --help=recursive display the short help of all the included packages
1465: -V, --version display version information and exit
1466: -q, --quiet, --silent do not print \`checking ...' messages
1467: --cache-file=FILE cache test results in FILE [disabled]
1468: -C, --config-cache alias for \`--cache-file=config.cache'
1469: -n, --no-create do not create output files
1470: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471:
1472: Installation directories:
1473: --prefix=PREFIX install architecture-independent files in PREFIX
1474: [$ac_default_prefix]
1475: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476: [PREFIX]
1477:
1478: By default, \`make install' will install all the files in
1479: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481: for instance \`--prefix=\$HOME'.
1482:
1483: For better control, use the options below.
1484:
1485: Fine tuning of the installation directories:
1486: --bindir=DIR user executables [EPREFIX/bin]
1487: --sbindir=DIR system admin executables [EPREFIX/sbin]
1488: --libexecdir=DIR program executables [EPREFIX/libexec]
1489: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492: --libdir=DIR object code libraries [EPREFIX/lib]
1493: --includedir=DIR C header files [PREFIX/include]
1494: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497: --infodir=DIR info documentation [DATAROOTDIR/info]
1498: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499: --mandir=DIR man documentation [DATAROOTDIR/man]
1500: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501: --htmldir=DIR html documentation [DOCDIR]
1502: --dvidir=DIR dvi documentation [DOCDIR]
1503: --pdfdir=DIR pdf documentation [DOCDIR]
1504: --psdir=DIR ps documentation [DOCDIR]
1505: _ACEOF
1506:
1507: cat <<\_ACEOF
1508:
1509: Program names:
1510: --program-prefix=PREFIX prepend PREFIX to installed program names
1511: --program-suffix=SUFFIX append SUFFIX to installed program names
1512: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513:
1514: System types:
1515: --build=BUILD configure for building on BUILD [guessed]
1516: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517: _ACEOF
1518: fi
1519:
1520: if test -n "$ac_init_help"; then
1521:
1522: cat <<\_ACEOF
1523:
1524: Optional Features:
1525: --disable-option-checking ignore unrecognized --enable/--with options
1526: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 misho 1528: --enable-silent-rules less verbose build output (undo: `make V=1')
1529: --disable-silent-rules verbose build output (undo: `make V=0')
1.1 misho 1530: --disable-dependency-tracking speeds up one-time build
1531: --enable-dependency-tracking do not reject slow dependency extractors
1532: --enable-shared[=PKGS] build shared libraries [default=yes]
1533: --enable-static[=PKGS] build static libraries [default=yes]
1534: --enable-fast-install[=PKGS]
1535: optimize for fast installation [default=yes]
1536: --disable-libtool-lock avoid locking (might break parallel builds)
1537: --enable-rebuild-docs[=yes/no] rebuild some generated docs [default=yes]
1538: --enable-ipv6[=yes/no] enables compilation of IPv6 code [default=yes]
1539:
1540: Optional Packages:
1541: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1542: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1543: --with-pic try to use only PIC/non-PIC objects [default=use
1544: both]
1545: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.1.1.2 misho 1546: --with-sysroot=DIR Search for dependent libraries within DIR
1547: (or the compiler's sysroot if not specified).
1.1 misho 1548: --with-c14n add the Canonicalization support (on)
1549: --with-catalog add the Catalog support (on)
1550: --with-debug add the debugging module (on)
1551: --with-docbook add Docbook SGML support (on)
1552: --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)
1553: --with-ftp add the FTP support (on)
1554: --with-history add history support to xmllint shell(off)
1555: --with-html add the HTML support (on)
1556: --with-html-dir=path path to base html directory, default
1557: $datadir/doc/html
1558: --with-html-subdir=path directory used under html-dir, default
1559: $PACKAGE-$VERSION/html
1560: --with-http add the HTTP support (on)
1561: --with-iconv[=DIR] add ICONV support (on)
1562: --with-icu add ICU support (off)
1563: --with-iso8859x add ISO8859X support if no iconv (on)
1564: --with-legacy add deprecated APIs for compatibility (on)
1565: --with-mem-debug add the memory debugging module (off)
1566: --with-minimum build a minimally sized library (off)
1567: --with-output add the serialization support (on)
1568: --with-pattern add the xmlPattern selection interface (on)
1569: --with-push add the PUSH parser interfaces (on)
1570: --with-python[=DIR] build Python bindings if found
1571: --with-reader add the xmlReader parsing interface (on)
1572: --with-readline=DIR use readline in DIR
1573: --with-regexps add Regular Expressions support (on)
1574: --with-run-debug add the runtime debugging module (off)
1575: --with-sax1 add the older SAX1 interface (on)
1576: --with-schemas add Relax-NG and Schemas support (on)
1577: --with-schematron add Schematron support (on)
1578: --with-threads add multithread support(on)
1579: --with-thread-alloc add per-thread memory(off)
1580: --with-tree add the DOM like tree manipulation APIs (on)
1581: --with-valid add the DTD validation support (on)
1582: --with-writer add the xmlWriter saving interface (on)
1583: --with-xinclude add the XInclude support (on)
1584: --with-xpath add the XPATH support (on)
1585: --with-xptr add the XPointer support (on)
1586: --with-modules add the dynamic modules support (on)
1587: --with-zlib[=DIR] use libz in DIR
1.1.1.2 misho 1588: --with-lzma[=DIR] use liblzma in DIR
1.1 misho 1589: --with-coverage build for code coverage with GCC (off)
1590:
1591: Some influential environment variables:
1592: CC C compiler command
1593: CFLAGS C compiler flags
1594: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595: nonstandard directory <lib dir>
1596: LIBS libraries to pass to the linker, e.g. -l<library>
1597: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598: you have headers in a nonstandard directory <include dir>
1599: CPP C preprocessor
1600:
1601: Use these variables to override the choices made by `configure' or to help
1602: it to find libraries and programs with nonstandard names/locations.
1603:
1604: Report bugs to the package provider.
1605: _ACEOF
1606: ac_status=$?
1607: fi
1608:
1609: if test "$ac_init_help" = "recursive"; then
1610: # If there are subdirs, report their specific --help.
1611: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612: test -d "$ac_dir" ||
1613: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614: continue
1615: ac_builddir=.
1616:
1617: case "$ac_dir" in
1618: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619: *)
1620: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621: # A ".." for each directory in $ac_dir_suffix.
1622: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623: case $ac_top_builddir_sub in
1624: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626: esac ;;
1627: esac
1628: ac_abs_top_builddir=$ac_pwd
1629: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630: # for backward compatibility:
1631: ac_top_builddir=$ac_top_build_prefix
1632:
1633: case $srcdir in
1634: .) # We are building in place.
1635: ac_srcdir=.
1636: ac_top_srcdir=$ac_top_builddir_sub
1637: ac_abs_top_srcdir=$ac_pwd ;;
1638: [\\/]* | ?:[\\/]* ) # Absolute name.
1639: ac_srcdir=$srcdir$ac_dir_suffix;
1640: ac_top_srcdir=$srcdir
1641: ac_abs_top_srcdir=$srcdir ;;
1642: *) # Relative name.
1643: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644: ac_top_srcdir=$ac_top_build_prefix$srcdir
1645: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646: esac
1647: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648:
1649: cd "$ac_dir" || { ac_status=$?; continue; }
1650: # Check for guested configure.
1651: if test -f "$ac_srcdir/configure.gnu"; then
1652: echo &&
1653: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654: elif test -f "$ac_srcdir/configure"; then
1655: echo &&
1656: $SHELL "$ac_srcdir/configure" --help=recursive
1657: else
1658: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659: fi || ac_status=$?
1660: cd "$ac_pwd" || { ac_status=$?; break; }
1661: done
1662: fi
1663:
1664: test -n "$ac_init_help" && exit $ac_status
1665: if $ac_init_version; then
1666: cat <<\_ACEOF
1667: configure
1.1.1.2 misho 1668: generated by GNU Autoconf 2.68
1.1 misho 1669:
1670: Copyright (C) 2010 Free Software Foundation, Inc.
1671: This configure script is free software; the Free Software Foundation
1672: gives unlimited permission to copy, distribute and modify it.
1673: _ACEOF
1674: exit
1675: fi
1676:
1677: ## ------------------------ ##
1678: ## Autoconf initialization. ##
1679: ## ------------------------ ##
1680:
1681: # ac_fn_c_try_compile LINENO
1682: # --------------------------
1683: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1684: ac_fn_c_try_compile ()
1685: {
1686: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687: rm -f conftest.$ac_objext
1688: if { { ac_try="$ac_compile"
1689: case "(($ac_try" in
1690: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691: *) ac_try_echo=$ac_try;;
1692: esac
1693: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694: $as_echo "$ac_try_echo"; } >&5
1695: (eval "$ac_compile") 2>conftest.err
1696: ac_status=$?
1697: if test -s conftest.err; then
1698: grep -v '^ *+' conftest.err >conftest.er1
1699: cat conftest.er1 >&5
1700: mv -f conftest.er1 conftest.err
1701: fi
1702: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703: test $ac_status = 0; } && {
1704: test -z "$ac_c_werror_flag" ||
1705: test ! -s conftest.err
1706: } && test -s conftest.$ac_objext; then :
1707: ac_retval=0
1708: else
1709: $as_echo "$as_me: failed program was:" >&5
1710: sed 's/^/| /' conftest.$ac_ext >&5
1711:
1712: ac_retval=1
1713: fi
1.1.1.2 misho 1714: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1715: as_fn_set_status $ac_retval
1716:
1717: } # ac_fn_c_try_compile
1718:
1719: # ac_fn_c_try_cpp LINENO
1720: # ----------------------
1721: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722: ac_fn_c_try_cpp ()
1723: {
1724: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725: if { { ac_try="$ac_cpp conftest.$ac_ext"
1726: case "(($ac_try" in
1727: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728: *) ac_try_echo=$ac_try;;
1729: esac
1730: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731: $as_echo "$ac_try_echo"; } >&5
1732: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733: ac_status=$?
1734: if test -s conftest.err; then
1735: grep -v '^ *+' conftest.err >conftest.er1
1736: cat conftest.er1 >&5
1737: mv -f conftest.er1 conftest.err
1738: fi
1739: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.2 misho 1740: test $ac_status = 0; } > conftest.i && {
1.1 misho 1741: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742: test ! -s conftest.err
1743: }; then :
1744: ac_retval=0
1745: else
1746: $as_echo "$as_me: failed program was:" >&5
1747: sed 's/^/| /' conftest.$ac_ext >&5
1748:
1749: ac_retval=1
1750: fi
1.1.1.2 misho 1751: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1752: as_fn_set_status $ac_retval
1753:
1754: } # ac_fn_c_try_cpp
1755:
1.1.1.2 misho 1756: # ac_fn_c_try_link LINENO
1757: # -----------------------
1758: # Try to link conftest.$ac_ext, and return whether this succeeded.
1759: ac_fn_c_try_link ()
1.1 misho 1760: {
1761: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.2 misho 1762: rm -f conftest.$ac_objext conftest$ac_exeext
1.1 misho 1763: if { { ac_try="$ac_link"
1764: case "(($ac_try" in
1765: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766: *) ac_try_echo=$ac_try;;
1767: esac
1768: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769: $as_echo "$ac_try_echo"; } >&5
1.1.1.2 misho 1770: (eval "$ac_link") 2>conftest.err
1.1 misho 1771: ac_status=$?
1.1.1.2 misho 1772: if test -s conftest.err; then
1773: grep -v '^ *+' conftest.err >conftest.er1
1774: cat conftest.er1 >&5
1775: mv -f conftest.er1 conftest.err
1776: fi
1.1 misho 1777: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.2 misho 1778: test $ac_status = 0; } && {
1779: test -z "$ac_c_werror_flag" ||
1780: test ! -s conftest.err
1781: } && test -s conftest$ac_exeext && {
1782: test "$cross_compiling" = yes ||
1783: $as_test_x conftest$ac_exeext
1784: }; then :
1.1 misho 1785: ac_retval=0
1786: else
1.1.1.2 misho 1787: $as_echo "$as_me: failed program was:" >&5
1.1 misho 1788: sed 's/^/| /' conftest.$ac_ext >&5
1789:
1.1.1.2 misho 1790: ac_retval=1
1.1 misho 1791: fi
1.1.1.2 misho 1792: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794: # interfere with the next link command; also delete a directory that is
1795: # left behind by Apple's compiler. We do this before executing the actions.
1.1 misho 1796: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.1.1.2 misho 1797: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1798: as_fn_set_status $ac_retval
1799:
1.1.1.2 misho 1800: } # ac_fn_c_try_link
1.1 misho 1801:
1802: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1803: # -------------------------------------------------------
1804: # Tests whether HEADER exists and can be compiled using the include files in
1805: # INCLUDES, setting the cache variable VAR accordingly.
1806: ac_fn_c_check_header_compile ()
1807: {
1808: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810: $as_echo_n "checking for $2... " >&6; }
1.1.1.2 misho 1811: if eval \${$3+:} false; then :
1.1 misho 1812: $as_echo_n "(cached) " >&6
1813: else
1814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815: /* end confdefs.h. */
1816: $4
1817: #include <$2>
1818: _ACEOF
1819: if ac_fn_c_try_compile "$LINENO"; then :
1820: eval "$3=yes"
1821: else
1822: eval "$3=no"
1823: fi
1824: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825: fi
1826: eval ac_res=\$$3
1827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828: $as_echo "$ac_res" >&6; }
1.1.1.2 misho 1829: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1830:
1831: } # ac_fn_c_check_header_compile
1832:
1.1.1.2 misho 1833: # ac_fn_c_try_run LINENO
1834: # ----------------------
1835: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836: # that executables *can* be run.
1837: ac_fn_c_try_run ()
1.1 misho 1838: {
1839: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840: if { { ac_try="$ac_link"
1841: case "(($ac_try" in
1842: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843: *) ac_try_echo=$ac_try;;
1844: esac
1845: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846: $as_echo "$ac_try_echo"; } >&5
1.1.1.2 misho 1847: (eval "$ac_link") 2>&5
1.1 misho 1848: ac_status=$?
1849: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.2 misho 1850: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851: { { case "(($ac_try" in
1852: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853: *) ac_try_echo=$ac_try;;
1854: esac
1855: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856: $as_echo "$ac_try_echo"; } >&5
1857: (eval "$ac_try") 2>&5
1858: ac_status=$?
1859: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860: test $ac_status = 0; }; }; then :
1.1 misho 1861: ac_retval=0
1862: else
1.1.1.2 misho 1863: $as_echo "$as_me: program exited with status $ac_status" >&5
1864: $as_echo "$as_me: failed program was:" >&5
1.1 misho 1865: sed 's/^/| /' conftest.$ac_ext >&5
1866:
1.1.1.2 misho 1867: ac_retval=$ac_status
1.1 misho 1868: fi
1869: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.1.1.2 misho 1870: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1871: as_fn_set_status $ac_retval
1872:
1.1.1.2 misho 1873: } # ac_fn_c_try_run
1.1 misho 1874:
1875: # ac_fn_c_check_func LINENO FUNC VAR
1876: # ----------------------------------
1877: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878: ac_fn_c_check_func ()
1879: {
1880: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882: $as_echo_n "checking for $2... " >&6; }
1.1.1.2 misho 1883: if eval \${$3+:} false; then :
1.1 misho 1884: $as_echo_n "(cached) " >&6
1885: else
1886: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887: /* end confdefs.h. */
1888: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890: #define $2 innocuous_$2
1891:
1892: /* System header to define __stub macros and hopefully few prototypes,
1893: which can conflict with char $2 (); below.
1894: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895: <limits.h> exists even on freestanding compilers. */
1896:
1897: #ifdef __STDC__
1898: # include <limits.h>
1899: #else
1900: # include <assert.h>
1901: #endif
1902:
1903: #undef $2
1904:
1905: /* Override any GCC internal prototype to avoid an error.
1906: Use char because int might match the return type of a GCC
1907: builtin and then its argument prototype would still apply. */
1908: #ifdef __cplusplus
1909: extern "C"
1910: #endif
1911: char $2 ();
1912: /* The GNU C library defines this for functions which it implements
1913: to always fail with ENOSYS. Some functions are actually named
1914: something starting with __ and the normal name is an alias. */
1915: #if defined __stub_$2 || defined __stub___$2
1916: choke me
1917: #endif
1918:
1919: int
1920: main ()
1921: {
1922: return $2 ();
1923: ;
1924: return 0;
1925: }
1926: _ACEOF
1927: if ac_fn_c_try_link "$LINENO"; then :
1928: eval "$3=yes"
1929: else
1930: eval "$3=no"
1931: fi
1932: rm -f core conftest.err conftest.$ac_objext \
1933: conftest$ac_exeext conftest.$ac_ext
1934: fi
1935: eval ac_res=\$$3
1936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937: $as_echo "$ac_res" >&6; }
1.1.1.2 misho 1938: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1939:
1940: } # ac_fn_c_check_func
1941:
1.1.1.2 misho 1942: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943: # -------------------------------------------------------
1944: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945: # the include files in INCLUDES and setting the cache variable VAR
1946: # accordingly.
1947: ac_fn_c_check_header_mongrel ()
1.1 misho 1948: {
1.1.1.2 misho 1949: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950: if eval \${$3+:} false; then :
1951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952: $as_echo_n "checking for $2... " >&6; }
1953: if eval \${$3+:} false; then :
1954: $as_echo_n "(cached) " >&6
1955: fi
1956: eval ac_res=\$$3
1957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958: $as_echo "$ac_res" >&6; }
1959: else
1960: # Is the header compilable?
1961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962: $as_echo_n "checking $2 usability... " >&6; }
1963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964: /* end confdefs.h. */
1965: $4
1966: #include <$2>
1967: _ACEOF
1968: if ac_fn_c_try_compile "$LINENO"; then :
1969: ac_header_compiler=yes
1970: else
1971: ac_header_compiler=no
1972: fi
1973: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975: $as_echo "$ac_header_compiler" >&6; }
1.1 misho 1976:
1.1.1.2 misho 1977: # Is the header present?
1978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979: $as_echo_n "checking $2 presence... " >&6; }
1980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981: /* end confdefs.h. */
1982: #include <$2>
1983: _ACEOF
1984: if ac_fn_c_try_cpp "$LINENO"; then :
1985: ac_header_preproc=yes
1986: else
1987: ac_header_preproc=no
1988: fi
1989: rm -f conftest.err conftest.i conftest.$ac_ext
1990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991: $as_echo "$ac_header_preproc" >&6; }
1.1 misho 1992:
1.1.1.2 misho 1993: # So? What about this header?
1994: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995: yes:no: )
1996: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000: ;;
2001: no:yes:* )
2002: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012: ;;
2013: esac
2014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015: $as_echo_n "checking for $2... " >&6; }
2016: if eval \${$3+:} false; then :
2017: $as_echo_n "(cached) " >&6
2018: else
2019: eval "$3=\$ac_header_compiler"
2020: fi
2021: eval ac_res=\$$3
2022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023: $as_echo "$ac_res" >&6; }
2024: fi
2025: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026:
2027: } # ac_fn_c_check_header_mongrel
2028: cat >config.log <<_ACEOF
2029: This file contains any messages produced by compilers while
2030: running configure, to aid debugging if configure makes a mistake.
2031:
2032: It was created by $as_me, which was
2033: generated by GNU Autoconf 2.68. Invocation command line was
2034:
2035: $ $0 $@
2036:
2037: _ACEOF
2038: exec 5>>config.log
2039: {
2040: cat <<_ASUNAME
2041: ## --------- ##
2042: ## Platform. ##
2043: ## --------- ##
2044:
2045: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050:
2051: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2053:
2054: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2055: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2056: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2058: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2059: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2060: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2061:
2062: _ASUNAME
2063:
2064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 2065: for as_dir in $PATH
2066: do
2067: IFS=$as_save_IFS
2068: test -z "$as_dir" && as_dir=.
2069: $as_echo "PATH: $as_dir"
2070: done
2071: IFS=$as_save_IFS
2072:
2073: } >&5
2074:
2075: cat >&5 <<_ACEOF
2076:
2077:
2078: ## ----------- ##
2079: ## Core tests. ##
2080: ## ----------- ##
2081:
2082: _ACEOF
2083:
2084:
2085: # Keep a trace of the command line.
2086: # Strip out --no-create and --no-recursion so they do not pile up.
2087: # Strip out --silent because we don't want to record it for future runs.
2088: # Also quote any args containing shell meta-characters.
2089: # Make two passes to allow for proper duplicate-argument suppression.
2090: ac_configure_args=
2091: ac_configure_args0=
2092: ac_configure_args1=
2093: ac_must_keep_next=false
2094: for ac_pass in 1 2
2095: do
2096: for ac_arg
2097: do
2098: case $ac_arg in
2099: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101: | -silent | --silent | --silen | --sile | --sil)
2102: continue ;;
2103: *\'*)
2104: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105: esac
2106: case $ac_pass in
2107: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108: 2)
2109: as_fn_append ac_configure_args1 " '$ac_arg'"
2110: if test $ac_must_keep_next = true; then
2111: ac_must_keep_next=false # Got value, back to normal.
2112: else
2113: case $ac_arg in
2114: *=* | --config-cache | -C | -disable-* | --disable-* \
2115: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117: | -with-* | --with-* | -without-* | --without-* | --x)
2118: case "$ac_configure_args0 " in
2119: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120: esac
2121: ;;
2122: -* ) ac_must_keep_next=true ;;
2123: esac
2124: fi
2125: as_fn_append ac_configure_args " '$ac_arg'"
2126: ;;
2127: esac
2128: done
2129: done
2130: { ac_configure_args0=; unset ac_configure_args0;}
2131: { ac_configure_args1=; unset ac_configure_args1;}
2132:
2133: # When interrupted or exit'd, cleanup temporary files, and complete
2134: # config.log. We remove comments because anyway the quotes in there
2135: # would cause problems or look ugly.
2136: # WARNING: Use '\'' to represent an apostrophe within the trap.
2137: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138: trap 'exit_status=$?
2139: # Save into config.log some information that might help in debugging.
2140: {
2141: echo
2142:
2143: $as_echo "## ---------------- ##
2144: ## Cache variables. ##
2145: ## ---------------- ##"
2146: echo
2147: # The following way of writing the cache mishandles newlines in values,
2148: (
2149: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150: eval ac_val=\$$ac_var
2151: case $ac_val in #(
2152: *${as_nl}*)
2153: case $ac_var in #(
2154: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156: esac
2157: case $ac_var in #(
2158: _ | IFS | as_nl) ;; #(
2159: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160: *) { eval $ac_var=; unset $ac_var;} ;;
2161: esac ;;
2162: esac
2163: done
2164: (set) 2>&1 |
2165: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166: *${as_nl}ac_space=\ *)
2167: sed -n \
2168: "s/'\''/'\''\\\\'\'''\''/g;
2169: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170: ;; #(
2171: *)
2172: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173: ;;
2174: esac |
2175: sort
2176: )
2177: echo
2178:
2179: $as_echo "## ----------------- ##
2180: ## Output variables. ##
2181: ## ----------------- ##"
2182: echo
2183: for ac_var in $ac_subst_vars
2184: do
2185: eval ac_val=\$$ac_var
2186: case $ac_val in
2187: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188: esac
2189: $as_echo "$ac_var='\''$ac_val'\''"
2190: done | sort
2191: echo
2192:
2193: if test -n "$ac_subst_files"; then
2194: $as_echo "## ------------------- ##
2195: ## File substitutions. ##
2196: ## ------------------- ##"
2197: echo
2198: for ac_var in $ac_subst_files
2199: do
2200: eval ac_val=\$$ac_var
2201: case $ac_val in
2202: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203: esac
2204: $as_echo "$ac_var='\''$ac_val'\''"
2205: done | sort
2206: echo
2207: fi
2208:
2209: if test -s confdefs.h; then
2210: $as_echo "## ----------- ##
2211: ## confdefs.h. ##
2212: ## ----------- ##"
2213: echo
2214: cat confdefs.h
2215: echo
2216: fi
2217: test "$ac_signal" != 0 &&
2218: $as_echo "$as_me: caught signal $ac_signal"
2219: $as_echo "$as_me: exit $exit_status"
2220: } >&5
2221: rm -f core *.core core.conftest.* &&
2222: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223: exit $exit_status
2224: ' 0
2225: for ac_signal in 1 2 13 15; do
2226: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227: done
2228: ac_signal=0
2229:
2230: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2231: rm -f -r conftest* confdefs.h
2232:
2233: $as_echo "/* confdefs.h */" > confdefs.h
2234:
2235: # Predefined preprocessor variables.
2236:
2237: cat >>confdefs.h <<_ACEOF
2238: #define PACKAGE_NAME "$PACKAGE_NAME"
2239: _ACEOF
2240:
2241: cat >>confdefs.h <<_ACEOF
2242: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243: _ACEOF
2244:
2245: cat >>confdefs.h <<_ACEOF
2246: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2247: _ACEOF
2248:
2249: cat >>confdefs.h <<_ACEOF
2250: #define PACKAGE_STRING "$PACKAGE_STRING"
2251: _ACEOF
2252:
2253: cat >>confdefs.h <<_ACEOF
2254: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255: _ACEOF
2256:
2257: cat >>confdefs.h <<_ACEOF
2258: #define PACKAGE_URL "$PACKAGE_URL"
2259: _ACEOF
2260:
2261:
2262: # Let the site file select an alternate cache file if it wants to.
2263: # Prefer an explicitly selected file to automatically selected ones.
2264: ac_site_file1=NONE
2265: ac_site_file2=NONE
2266: if test -n "$CONFIG_SITE"; then
2267: # We do not want a PATH search for config.site.
2268: case $CONFIG_SITE in #((
2269: -*) ac_site_file1=./$CONFIG_SITE;;
2270: */*) ac_site_file1=$CONFIG_SITE;;
2271: *) ac_site_file1=./$CONFIG_SITE;;
2272: esac
2273: elif test "x$prefix" != xNONE; then
2274: ac_site_file1=$prefix/share/config.site
2275: ac_site_file2=$prefix/etc/config.site
2276: else
2277: ac_site_file1=$ac_default_prefix/share/config.site
2278: ac_site_file2=$ac_default_prefix/etc/config.site
2279: fi
2280: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281: do
2282: test "x$ac_site_file" = xNONE && continue
2283: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2284: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286: sed 's/^/| /' "$ac_site_file" >&5
2287: . "$ac_site_file" \
2288: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290: as_fn_error $? "failed to load site script $ac_site_file
2291: See \`config.log' for more details" "$LINENO" 5; }
2292: fi
2293: done
2294:
2295: if test -r "$cache_file"; then
2296: # Some versions of bash will fail to source /dev/null (special files
2297: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2298: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2299: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300: $as_echo "$as_me: loading cache $cache_file" >&6;}
2301: case $cache_file in
2302: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303: *) . "./$cache_file";;
2304: esac
2305: fi
2306: else
2307: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308: $as_echo "$as_me: creating cache $cache_file" >&6;}
2309: >$cache_file
2310: fi
2311:
2312: # Check that the precious variables saved in the cache have kept the same
2313: # value.
2314: ac_cache_corrupted=false
2315: for ac_var in $ac_precious_vars; do
2316: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317: eval ac_new_set=\$ac_env_${ac_var}_set
2318: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319: eval ac_new_val=\$ac_env_${ac_var}_value
2320: case $ac_old_set,$ac_new_set in
2321: set,)
2322: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324: ac_cache_corrupted=: ;;
2325: ,set)
2326: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328: ac_cache_corrupted=: ;;
2329: ,);;
2330: *)
2331: if test "x$ac_old_val" != "x$ac_new_val"; then
2332: # differences in whitespace do not lead to failure.
2333: ac_old_val_w=`echo x $ac_old_val`
2334: ac_new_val_w=`echo x $ac_new_val`
2335: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338: ac_cache_corrupted=:
2339: else
2340: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342: eval $ac_var=\$ac_old_val
2343: fi
2344: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2345: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2346: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2347: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2348: fi;;
2349: esac
2350: # Pass precious variables to config.status.
2351: if test "$ac_new_set" = set; then
2352: case $ac_new_val in
2353: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354: *) ac_arg=$ac_var=$ac_new_val ;;
2355: esac
2356: case " $ac_configure_args " in
2357: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2358: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2359: esac
2360: fi
2361: done
2362: if $ac_cache_corrupted; then
2363: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368: fi
2369: ## -------------------- ##
2370: ## Main body of script. ##
2371: ## -------------------- ##
2372:
2373: ac_ext=c
2374: ac_cpp='$CPP $CPPFLAGS'
2375: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378:
2379:
2380: ac_config_headers="$ac_config_headers config.h"
2381:
2382:
2383: ac_aux_dir=
2384: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385: if test -f "$ac_dir/install-sh"; then
2386: ac_aux_dir=$ac_dir
2387: ac_install_sh="$ac_aux_dir/install-sh -c"
2388: break
2389: elif test -f "$ac_dir/install.sh"; then
2390: ac_aux_dir=$ac_dir
2391: ac_install_sh="$ac_aux_dir/install.sh -c"
2392: break
2393: elif test -f "$ac_dir/shtool"; then
2394: ac_aux_dir=$ac_dir
2395: ac_install_sh="$ac_aux_dir/shtool install -c"
2396: break
2397: fi
2398: done
2399: if test -z "$ac_aux_dir"; then
2400: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401: fi
2402:
2403: # These three variables are undocumented and unsupported,
2404: # and are intended to be withdrawn in a future Autoconf release.
2405: # They can cause serious problems if a builder's source tree is in a directory
2406: # whose full name contains unusual characters.
2407: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2410:
2411:
2412: # Make sure we can run config.sub.
2413: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2414: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2415:
2416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2417: $as_echo_n "checking build system type... " >&6; }
1.1.1.2 misho 2418: if ${ac_cv_build+:} false; then :
1.1 misho 2419: $as_echo_n "(cached) " >&6
2420: else
2421: ac_build_alias=$build_alias
2422: test "x$ac_build_alias" = x &&
2423: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2424: test "x$ac_build_alias" = x &&
2425: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2426: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2427: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2428:
2429: fi
2430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2431: $as_echo "$ac_cv_build" >&6; }
2432: case $ac_cv_build in
2433: *-*-*) ;;
2434: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2435: esac
2436: build=$ac_cv_build
2437: ac_save_IFS=$IFS; IFS='-'
2438: set x $ac_cv_build
2439: shift
2440: build_cpu=$1
2441: build_vendor=$2
2442: shift; shift
2443: # Remember, the first character of IFS is used to create $*,
2444: # except with old shells:
2445: build_os=$*
2446: IFS=$ac_save_IFS
2447: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2448:
2449:
2450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2451: $as_echo_n "checking host system type... " >&6; }
1.1.1.2 misho 2452: if ${ac_cv_host+:} false; then :
1.1 misho 2453: $as_echo_n "(cached) " >&6
2454: else
2455: if test "x$host_alias" = x; then
2456: ac_cv_host=$ac_cv_build
2457: else
2458: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2459: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2460: fi
2461:
2462: fi
2463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2464: $as_echo "$ac_cv_host" >&6; }
2465: case $ac_cv_host in
2466: *-*-*) ;;
2467: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2468: esac
2469: host=$ac_cv_host
2470: ac_save_IFS=$IFS; IFS='-'
2471: set x $ac_cv_host
2472: shift
2473: host_cpu=$1
2474: host_vendor=$2
2475: shift; shift
2476: # Remember, the first character of IFS is used to create $*,
2477: # except with old shells:
2478: host_os=$*
2479: IFS=$ac_save_IFS
2480: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2481:
2482:
2483:
2484: LIBXML_MAJOR_VERSION=2
1.1.1.2 misho 2485: LIBXML_MINOR_VERSION=8
2486: LIBXML_MICRO_VERSION=0
1.1 misho 2487: LIBXML_MICRO_VERSION_SUFFIX=
2488: LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2489: LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2490:
2491: LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2492:
2493: if test -f CVS/Entries ; then
2494: extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2495: echo extra=$extra
2496: if test "$extra" != ""
2497: then
2498: LIBXML_VERSION_EXTRA="-CVS$extra"
2499: fi
2500: else if test -d .svn ; then
2501: extra=`svn info | grep Revision | sed 's+Revision: ++'`
2502: echo extra=$extra
2503: if test "$extra" != ""
2504: then
2505: LIBXML_VERSION_EXTRA="-SVN$extra"
2506: fi
2507: else if test -d .git ; then
1.1.1.2 misho 2508: extra=`git describe 2>/dev/null | sed 's+LIBXML[0-9.]*-++'`
1.1 misho 2509: echo extra=$extra
2510: if test "$extra" != ""
2511: then
2512: LIBXML_VERSION_EXTRA="-GIT$extra"
2513: fi
2514: fi
2515: fi
2516: fi
2517:
2518:
2519:
2520:
2521:
2522:
2523:
2524:
2525: VERSION=${LIBXML_VERSION}
2526:
2527: am__api_version='1.11'
2528:
2529: # Find a good install program. We prefer a C program (faster),
2530: # so one script is as good as another. But avoid the broken or
2531: # incompatible versions:
2532: # SysV /etc/install, /usr/sbin/install
2533: # SunOS /usr/etc/install
2534: # IRIX /sbin/install
2535: # AIX /bin/install
2536: # AmigaOS /C/install, which installs bootblocks on floppy discs
2537: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540: # OS/2's system install, which has a completely different semantic
2541: # ./install, which can be erroneously created by make from ./install.sh.
2542: # Reject install programs that cannot install multiple files.
2543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2545: if test -z "$INSTALL"; then
1.1.1.2 misho 2546: if ${ac_cv_path_install+:} false; then :
1.1 misho 2547: $as_echo_n "(cached) " >&6
2548: else
2549: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550: for as_dir in $PATH
2551: do
2552: IFS=$as_save_IFS
2553: test -z "$as_dir" && as_dir=.
2554: # Account for people who put trailing slashes in PATH elements.
2555: case $as_dir/ in #((
2556: ./ | .// | /[cC]/* | \
2557: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2559: /usr/ucb/* ) ;;
2560: *)
2561: # OSF1 and SCO ODT 3.0 have their own names for install.
2562: # Don't use installbsd from OSF since it installs stuff as root
2563: # by default.
2564: for ac_prog in ginstall scoinst install; do
2565: for ac_exec_ext in '' $ac_executable_extensions; do
2566: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2567: if test $ac_prog = install &&
2568: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569: # AIX install. It has an incompatible calling convention.
2570: :
2571: elif test $ac_prog = install &&
2572: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573: # program-specific install script used by HP pwplus--don't use.
2574: :
2575: else
2576: rm -rf conftest.one conftest.two conftest.dir
2577: echo one > conftest.one
2578: echo two > conftest.two
2579: mkdir conftest.dir
2580: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581: test -s conftest.one && test -s conftest.two &&
2582: test -s conftest.dir/conftest.one &&
2583: test -s conftest.dir/conftest.two
2584: then
2585: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586: break 3
2587: fi
2588: fi
2589: fi
2590: done
2591: done
2592: ;;
2593: esac
2594:
2595: done
2596: IFS=$as_save_IFS
2597:
2598: rm -rf conftest.one conftest.two conftest.dir
2599:
2600: fi
2601: if test "${ac_cv_path_install+set}" = set; then
2602: INSTALL=$ac_cv_path_install
2603: else
2604: # As a last resort, use the slow shell script. Don't cache a
2605: # value for INSTALL within a source directory, because that will
2606: # break other packages using the cache if that directory is
2607: # removed, or if the value is a relative name.
2608: INSTALL=$ac_install_sh
2609: fi
2610: fi
2611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612: $as_echo "$INSTALL" >&6; }
2613:
2614: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615: # It thinks the first close brace ends the variable substitution.
2616: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617:
2618: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2619:
2620: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621:
2622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2623: $as_echo_n "checking whether build environment is sane... " >&6; }
2624: # Just in case
2625: sleep 1
2626: echo timestamp > conftest.file
2627: # Reject unsafe characters in $srcdir or the absolute working directory
2628: # name. Accept space and tab only in the latter.
2629: am_lf='
2630: '
2631: case `pwd` in
2632: *[\\\"\#\$\&\'\`$am_lf]*)
2633: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2634: esac
2635: case $srcdir in
2636: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2637: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2638: esac
2639:
2640: # Do `set' in a subshell so we don't clobber the current shell's
2641: # arguments. Must try -L first in case configure is actually a
2642: # symlink; some systems play weird games with the mod time of symlinks
2643: # (eg FreeBSD returns the mod time of the symlink's containing
2644: # directory).
2645: if (
2646: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2647: if test "$*" = "X"; then
2648: # -L didn't work.
2649: set X `ls -t "$srcdir/configure" conftest.file`
2650: fi
2651: rm -f conftest.file
2652: if test "$*" != "X $srcdir/configure conftest.file" \
2653: && test "$*" != "X conftest.file $srcdir/configure"; then
2654:
2655: # If neither matched, then we have a broken ls. This can happen
2656: # if, for instance, CONFIG_SHELL is bash and it inherits a
2657: # broken ls alias from the environment. This has actually
2658: # happened. Such a system could not be considered "sane".
2659: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2660: alias in your environment" "$LINENO" 5
2661: fi
2662:
2663: test "$2" = conftest.file
2664: )
2665: then
2666: # Ok.
2667: :
2668: else
2669: as_fn_error $? "newly created file is older than distributed files!
2670: Check your system clock" "$LINENO" 5
2671: fi
2672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673: $as_echo "yes" >&6; }
2674: test "$program_prefix" != NONE &&
2675: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2676: # Use a double $ so make ignores it.
2677: test "$program_suffix" != NONE &&
2678: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2679: # Double any \ or $.
2680: # By default was `s,x,x', remove it if useless.
2681: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2682: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2683:
2684: # expand $ac_aux_dir to an absolute path
2685: am_aux_dir=`cd $ac_aux_dir && pwd`
2686:
2687: if test x"${MISSING+set}" != xset; then
2688: case $am_aux_dir in
2689: *\ * | *\ *)
2690: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2691: *)
2692: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2693: esac
2694: fi
2695: # Use eval to expand $SHELL
2696: if eval "$MISSING --run true"; then
2697: am_missing_run="$MISSING --run "
2698: else
2699: am_missing_run=
2700: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2701: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2702: fi
2703:
2704: if test x"${install_sh}" != xset; then
2705: case $am_aux_dir in
2706: *\ * | *\ *)
2707: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2708: *)
2709: install_sh="\${SHELL} $am_aux_dir/install-sh"
2710: esac
2711: fi
2712:
2713: # Installed binaries are usually stripped using `strip' when the user
2714: # run `make install-strip'. However `strip' might not be the right
2715: # tool to use in cross-compilation environments, therefore Automake
2716: # will honor the `STRIP' environment variable to overrule this program.
2717: if test "$cross_compiling" != no; then
2718: if test -n "$ac_tool_prefix"; then
2719: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2720: set dummy ${ac_tool_prefix}strip; ac_word=$2
2721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2723: if ${ac_cv_prog_STRIP+:} false; then :
1.1 misho 2724: $as_echo_n "(cached) " >&6
2725: else
2726: if test -n "$STRIP"; then
2727: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2728: else
2729: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730: for as_dir in $PATH
2731: do
2732: IFS=$as_save_IFS
2733: test -z "$as_dir" && as_dir=.
2734: for ac_exec_ext in '' $ac_executable_extensions; do
2735: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2737: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738: break 2
2739: fi
2740: done
2741: done
2742: IFS=$as_save_IFS
2743:
2744: fi
2745: fi
2746: STRIP=$ac_cv_prog_STRIP
2747: if test -n "$STRIP"; then
2748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2749: $as_echo "$STRIP" >&6; }
2750: else
2751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752: $as_echo "no" >&6; }
2753: fi
2754:
2755:
2756: fi
2757: if test -z "$ac_cv_prog_STRIP"; then
2758: ac_ct_STRIP=$STRIP
2759: # Extract the first word of "strip", so it can be a program name with args.
2760: set dummy strip; ac_word=$2
2761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2763: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.1 misho 2764: $as_echo_n "(cached) " >&6
2765: else
2766: if test -n "$ac_ct_STRIP"; then
2767: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2768: else
2769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770: for as_dir in $PATH
2771: do
2772: IFS=$as_save_IFS
2773: test -z "$as_dir" && as_dir=.
2774: for ac_exec_ext in '' $ac_executable_extensions; do
2775: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776: ac_cv_prog_ac_ct_STRIP="strip"
2777: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778: break 2
2779: fi
2780: done
2781: done
2782: IFS=$as_save_IFS
2783:
2784: fi
2785: fi
2786: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2787: if test -n "$ac_ct_STRIP"; then
2788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2789: $as_echo "$ac_ct_STRIP" >&6; }
2790: else
2791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792: $as_echo "no" >&6; }
2793: fi
2794:
2795: if test "x$ac_ct_STRIP" = x; then
2796: STRIP=":"
2797: else
2798: case $cross_compiling:$ac_tool_warned in
2799: yes:)
2800: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802: ac_tool_warned=yes ;;
2803: esac
2804: STRIP=$ac_ct_STRIP
2805: fi
2806: else
2807: STRIP="$ac_cv_prog_STRIP"
2808: fi
2809:
2810: fi
2811: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2812:
2813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2814: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2815: if test -z "$MKDIR_P"; then
1.1.1.2 misho 2816: if ${ac_cv_path_mkdir+:} false; then :
1.1 misho 2817: $as_echo_n "(cached) " >&6
2818: else
2819: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2821: do
2822: IFS=$as_save_IFS
2823: test -z "$as_dir" && as_dir=.
2824: for ac_prog in mkdir gmkdir; do
2825: for ac_exec_ext in '' $ac_executable_extensions; do
2826: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2827: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2828: 'mkdir (GNU coreutils) '* | \
2829: 'mkdir (coreutils) '* | \
2830: 'mkdir (fileutils) '4.1*)
2831: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2832: break 3;;
2833: esac
2834: done
2835: done
2836: done
2837: IFS=$as_save_IFS
2838:
2839: fi
2840:
2841: test -d ./--version && rmdir ./--version
2842: if test "${ac_cv_path_mkdir+set}" = set; then
2843: MKDIR_P="$ac_cv_path_mkdir -p"
2844: else
2845: # As a last resort, use the slow shell script. Don't cache a
2846: # value for MKDIR_P within a source directory, because that will
2847: # break other packages using the cache if that directory is
2848: # removed, or if the value is a relative name.
2849: MKDIR_P="$ac_install_sh -d"
2850: fi
2851: fi
2852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2853: $as_echo "$MKDIR_P" >&6; }
2854:
2855: mkdir_p="$MKDIR_P"
2856: case $mkdir_p in
2857: [\\/$]* | ?:[\\/]*) ;;
2858: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2859: esac
2860:
2861: for ac_prog in gawk mawk nawk awk
2862: do
2863: # Extract the first word of "$ac_prog", so it can be a program name with args.
2864: set dummy $ac_prog; ac_word=$2
2865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2867: if ${ac_cv_prog_AWK+:} false; then :
1.1 misho 2868: $as_echo_n "(cached) " >&6
2869: else
2870: if test -n "$AWK"; then
2871: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2872: else
2873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874: for as_dir in $PATH
2875: do
2876: IFS=$as_save_IFS
2877: test -z "$as_dir" && as_dir=.
2878: for ac_exec_ext in '' $ac_executable_extensions; do
2879: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880: ac_cv_prog_AWK="$ac_prog"
2881: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882: break 2
2883: fi
2884: done
2885: done
2886: IFS=$as_save_IFS
2887:
2888: fi
2889: fi
2890: AWK=$ac_cv_prog_AWK
2891: if test -n "$AWK"; then
2892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2893: $as_echo "$AWK" >&6; }
2894: else
2895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896: $as_echo "no" >&6; }
2897: fi
2898:
2899:
2900: test -n "$AWK" && break
2901: done
2902:
2903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2905: set x ${MAKE-make}
2906: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.1.1.2 misho 2907: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.1 misho 2908: $as_echo_n "(cached) " >&6
2909: else
2910: cat >conftest.make <<\_ACEOF
2911: SHELL = /bin/sh
2912: all:
2913: @echo '@@@%%%=$(MAKE)=@@@%%%'
2914: _ACEOF
2915: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2916: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2917: *@@@%%%=?*=@@@%%%*)
2918: eval ac_cv_prog_make_${ac_make}_set=yes;;
2919: *)
2920: eval ac_cv_prog_make_${ac_make}_set=no;;
2921: esac
2922: rm -f conftest.make
2923: fi
2924: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926: $as_echo "yes" >&6; }
2927: SET_MAKE=
2928: else
2929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930: $as_echo "no" >&6; }
2931: SET_MAKE="MAKE=${MAKE-make}"
2932: fi
2933:
2934: rm -rf .tst 2>/dev/null
2935: mkdir .tst 2>/dev/null
2936: if test -d .tst; then
2937: am__leading_dot=.
2938: else
2939: am__leading_dot=_
2940: fi
2941: rmdir .tst 2>/dev/null
2942:
2943: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2944: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2945: # is not polluted with repeated "-I."
2946: am__isrc=' -I$(srcdir)'
2947: # test to see if srcdir already configured
2948: if test -f $srcdir/config.status; then
2949: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2950: fi
2951: fi
2952:
2953: # test whether we have cygpath
2954: if test -z "$CYGPATH_W"; then
2955: if (cygpath --version) >/dev/null 2>/dev/null; then
2956: CYGPATH_W='cygpath -w'
2957: else
2958: CYGPATH_W=echo
2959: fi
2960: fi
2961:
2962:
2963: # Define the identity of the package.
2964: PACKAGE=libxml2
2965: VERSION=$VERSION
2966:
2967:
2968: cat >>confdefs.h <<_ACEOF
2969: #define PACKAGE "$PACKAGE"
2970: _ACEOF
2971:
2972:
2973: cat >>confdefs.h <<_ACEOF
2974: #define VERSION "$VERSION"
2975: _ACEOF
2976:
2977: # Some tools Automake needs.
2978:
2979: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2980:
2981:
2982: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2983:
2984:
2985: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2986:
2987:
2988: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2989:
2990:
2991: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2992:
2993: # We need awk for the "check" target. The system "awk" is bad on
2994: # some platforms.
2995: # Always define AMTAR for backward compatibility.
2996:
2997: AMTAR=${AMTAR-"${am_missing_run}tar"}
2998:
2999: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3000:
3001:
3002:
3003:
3004:
3005:
1.1.1.2 misho 3006: # Support silent build rules, requires at least automake-1.11. Disable
3007: # by either passing --disable-silent-rules to configure or passing V=1
3008: # to make
3009: # Check whether --enable-silent-rules was given.
3010: if test "${enable_silent_rules+set}" = set; then :
3011: enableval=$enable_silent_rules;
3012: fi
3013:
3014: case $enable_silent_rules in
3015: yes) AM_DEFAULT_VERBOSITY=0;;
3016: no) AM_DEFAULT_VERBOSITY=1;;
3017: *) AM_DEFAULT_VERBOSITY=0;;
3018: esac
3019: AM_BACKSLASH='\'
3020:
3021:
1.1 misho 3022: ac_ext=c
3023: ac_cpp='$CPP $CPPFLAGS'
3024: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027: if test -n "$ac_tool_prefix"; then
3028: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3032: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3033: $as_echo_n "(cached) " >&6
3034: else
3035: if test -n "$CC"; then
3036: ac_cv_prog_CC="$CC" # Let the user override the test.
3037: else
3038: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039: for as_dir in $PATH
3040: do
3041: IFS=$as_save_IFS
3042: test -z "$as_dir" && as_dir=.
3043: for ac_exec_ext in '' $ac_executable_extensions; do
3044: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3046: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047: break 2
3048: fi
3049: done
3050: done
3051: IFS=$as_save_IFS
3052:
3053: fi
3054: fi
3055: CC=$ac_cv_prog_CC
3056: if test -n "$CC"; then
3057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058: $as_echo "$CC" >&6; }
3059: else
3060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061: $as_echo "no" >&6; }
3062: fi
3063:
3064:
3065: fi
3066: if test -z "$ac_cv_prog_CC"; then
3067: ac_ct_CC=$CC
3068: # Extract the first word of "gcc", so it can be a program name with args.
3069: set dummy gcc; ac_word=$2
3070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3072: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 3073: $as_echo_n "(cached) " >&6
3074: else
3075: if test -n "$ac_ct_CC"; then
3076: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077: else
3078: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079: for as_dir in $PATH
3080: do
3081: IFS=$as_save_IFS
3082: test -z "$as_dir" && as_dir=.
3083: for ac_exec_ext in '' $ac_executable_extensions; do
3084: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085: ac_cv_prog_ac_ct_CC="gcc"
3086: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087: break 2
3088: fi
3089: done
3090: done
3091: IFS=$as_save_IFS
3092:
3093: fi
3094: fi
3095: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096: if test -n "$ac_ct_CC"; then
3097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3098: $as_echo "$ac_ct_CC" >&6; }
3099: else
3100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101: $as_echo "no" >&6; }
3102: fi
3103:
3104: if test "x$ac_ct_CC" = x; then
3105: CC=""
3106: else
3107: case $cross_compiling:$ac_tool_warned in
3108: yes:)
3109: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111: ac_tool_warned=yes ;;
3112: esac
3113: CC=$ac_ct_CC
3114: fi
3115: else
3116: CC="$ac_cv_prog_CC"
3117: fi
3118:
3119: if test -z "$CC"; then
3120: if test -n "$ac_tool_prefix"; then
3121: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122: set dummy ${ac_tool_prefix}cc; ac_word=$2
3123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3125: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3126: $as_echo_n "(cached) " >&6
3127: else
3128: if test -n "$CC"; then
3129: ac_cv_prog_CC="$CC" # Let the user override the test.
3130: else
3131: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132: for as_dir in $PATH
3133: do
3134: IFS=$as_save_IFS
3135: test -z "$as_dir" && as_dir=.
3136: for ac_exec_ext in '' $ac_executable_extensions; do
3137: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138: ac_cv_prog_CC="${ac_tool_prefix}cc"
3139: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140: break 2
3141: fi
3142: done
3143: done
3144: IFS=$as_save_IFS
3145:
3146: fi
3147: fi
3148: CC=$ac_cv_prog_CC
3149: if test -n "$CC"; then
3150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151: $as_echo "$CC" >&6; }
3152: else
3153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154: $as_echo "no" >&6; }
3155: fi
3156:
3157:
3158: fi
3159: fi
3160: if test -z "$CC"; then
3161: # Extract the first word of "cc", so it can be a program name with args.
3162: set dummy cc; ac_word=$2
3163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3165: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3166: $as_echo_n "(cached) " >&6
3167: else
3168: if test -n "$CC"; then
3169: ac_cv_prog_CC="$CC" # Let the user override the test.
3170: else
3171: ac_prog_rejected=no
3172: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173: for as_dir in $PATH
3174: do
3175: IFS=$as_save_IFS
3176: test -z "$as_dir" && as_dir=.
3177: for ac_exec_ext in '' $ac_executable_extensions; do
3178: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180: ac_prog_rejected=yes
3181: continue
3182: fi
3183: ac_cv_prog_CC="cc"
3184: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185: break 2
3186: fi
3187: done
3188: done
3189: IFS=$as_save_IFS
3190:
3191: if test $ac_prog_rejected = yes; then
3192: # We found a bogon in the path, so make sure we never use it.
3193: set dummy $ac_cv_prog_CC
3194: shift
3195: if test $# != 0; then
3196: # We chose a different compiler from the bogus one.
3197: # However, it has the same basename, so the bogon will be chosen
3198: # first if we set CC to just the basename; use the full file name.
3199: shift
3200: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201: fi
3202: fi
3203: fi
3204: fi
3205: CC=$ac_cv_prog_CC
3206: if test -n "$CC"; then
3207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208: $as_echo "$CC" >&6; }
3209: else
3210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211: $as_echo "no" >&6; }
3212: fi
3213:
3214:
3215: fi
3216: if test -z "$CC"; then
3217: if test -n "$ac_tool_prefix"; then
3218: for ac_prog in cl.exe
3219: do
3220: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3224: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 3225: $as_echo_n "(cached) " >&6
3226: else
3227: if test -n "$CC"; then
3228: ac_cv_prog_CC="$CC" # Let the user override the test.
3229: else
3230: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231: for as_dir in $PATH
3232: do
3233: IFS=$as_save_IFS
3234: test -z "$as_dir" && as_dir=.
3235: for ac_exec_ext in '' $ac_executable_extensions; do
3236: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239: break 2
3240: fi
3241: done
3242: done
3243: IFS=$as_save_IFS
3244:
3245: fi
3246: fi
3247: CC=$ac_cv_prog_CC
3248: if test -n "$CC"; then
3249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250: $as_echo "$CC" >&6; }
3251: else
3252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253: $as_echo "no" >&6; }
3254: fi
3255:
3256:
3257: test -n "$CC" && break
3258: done
3259: fi
3260: if test -z "$CC"; then
3261: ac_ct_CC=$CC
3262: for ac_prog in cl.exe
3263: do
3264: # Extract the first word of "$ac_prog", so it can be a program name with args.
3265: set dummy $ac_prog; ac_word=$2
3266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 3268: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 3269: $as_echo_n "(cached) " >&6
3270: else
3271: if test -n "$ac_ct_CC"; then
3272: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273: else
3274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275: for as_dir in $PATH
3276: do
3277: IFS=$as_save_IFS
3278: test -z "$as_dir" && as_dir=.
3279: for ac_exec_ext in '' $ac_executable_extensions; do
3280: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281: ac_cv_prog_ac_ct_CC="$ac_prog"
3282: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283: break 2
3284: fi
3285: done
3286: done
3287: IFS=$as_save_IFS
3288:
3289: fi
3290: fi
3291: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292: if test -n "$ac_ct_CC"; then
3293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294: $as_echo "$ac_ct_CC" >&6; }
3295: else
3296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297: $as_echo "no" >&6; }
3298: fi
3299:
3300:
3301: test -n "$ac_ct_CC" && break
3302: done
3303:
3304: if test "x$ac_ct_CC" = x; then
3305: CC=""
3306: else
3307: case $cross_compiling:$ac_tool_warned in
3308: yes:)
3309: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311: ac_tool_warned=yes ;;
3312: esac
3313: CC=$ac_ct_CC
3314: fi
3315: fi
3316:
3317: fi
3318:
3319:
3320: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322: as_fn_error $? "no acceptable C compiler found in \$PATH
3323: See \`config.log' for more details" "$LINENO" 5; }
3324:
3325: # Provide some information about the compiler.
3326: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327: set X $ac_compile
3328: ac_compiler=$2
3329: for ac_option in --version -v -V -qversion; do
3330: { { ac_try="$ac_compiler $ac_option >&5"
3331: case "(($ac_try" in
3332: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333: *) ac_try_echo=$ac_try;;
3334: esac
3335: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336: $as_echo "$ac_try_echo"; } >&5
3337: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3338: ac_status=$?
3339: if test -s conftest.err; then
3340: sed '10a\
3341: ... rest of stderr output deleted ...
3342: 10q' conftest.err >conftest.er1
3343: cat conftest.er1 >&5
3344: fi
3345: rm -f conftest.er1 conftest.err
3346: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347: test $ac_status = 0; }
3348: done
3349:
3350: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351: /* end confdefs.h. */
3352:
3353: int
3354: main ()
3355: {
3356:
3357: ;
3358: return 0;
3359: }
3360: _ACEOF
3361: ac_clean_files_save=$ac_clean_files
3362: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3363: # Try to create an executable without -o first, disregard a.out.
3364: # It will help us diagnose broken compilers, and finding out an intuition
3365: # of exeext.
3366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367: $as_echo_n "checking whether the C compiler works... " >&6; }
3368: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3369:
3370: # The possible output files:
3371: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372:
3373: ac_rmfiles=
3374: for ac_file in $ac_files
3375: do
3376: case $ac_file in
3377: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3379: esac
3380: done
3381: rm -f $ac_rmfiles
3382:
3383: if { { ac_try="$ac_link_default"
3384: case "(($ac_try" in
3385: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386: *) ac_try_echo=$ac_try;;
3387: esac
3388: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389: $as_echo "$ac_try_echo"; } >&5
3390: (eval "$ac_link_default") 2>&5
3391: ac_status=$?
3392: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393: test $ac_status = 0; }; then :
3394: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3397: # so that the user can short-circuit this test for compilers unknown to
3398: # Autoconf.
3399: for ac_file in $ac_files ''
3400: do
3401: test -f "$ac_file" || continue
3402: case $ac_file in
3403: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404: ;;
3405: [ab].out )
3406: # We found the default executable, but exeext='' is most
3407: # certainly right.
3408: break;;
3409: *.* )
3410: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3411: then :; else
3412: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413: fi
3414: # We set ac_cv_exeext here because the later test for it is not
3415: # safe: cross compilers may not add the suffix if given an `-o'
3416: # argument, so we may need to know it at that point already.
3417: # Even if this section looks crufty: it has the advantage of
3418: # actually working.
3419: break;;
3420: * )
3421: break;;
3422: esac
3423: done
3424: test "$ac_cv_exeext" = no && ac_cv_exeext=
3425:
3426: else
3427: ac_file=''
3428: fi
3429: if test -z "$ac_file"; then :
3430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431: $as_echo "no" >&6; }
3432: $as_echo "$as_me: failed program was:" >&5
3433: sed 's/^/| /' conftest.$ac_ext >&5
3434:
3435: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437: as_fn_error 77 "C compiler cannot create executables
3438: See \`config.log' for more details" "$LINENO" 5; }
3439: else
3440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441: $as_echo "yes" >&6; }
3442: fi
3443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3444: $as_echo_n "checking for C compiler default output file name... " >&6; }
3445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3446: $as_echo "$ac_file" >&6; }
3447: ac_exeext=$ac_cv_exeext
3448:
3449: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3450: ac_clean_files=$ac_clean_files_save
3451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3452: $as_echo_n "checking for suffix of executables... " >&6; }
3453: if { { ac_try="$ac_link"
3454: case "(($ac_try" in
3455: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456: *) ac_try_echo=$ac_try;;
3457: esac
3458: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459: $as_echo "$ac_try_echo"; } >&5
3460: (eval "$ac_link") 2>&5
3461: ac_status=$?
3462: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463: test $ac_status = 0; }; then :
3464: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3465: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3466: # work properly (i.e., refer to `conftest.exe'), while it won't with
3467: # `rm'.
3468: for ac_file in conftest.exe conftest conftest.*; do
3469: test -f "$ac_file" || continue
3470: case $ac_file in
3471: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3472: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473: break;;
3474: * ) break;;
3475: esac
3476: done
3477: else
3478: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3481: See \`config.log' for more details" "$LINENO" 5; }
3482: fi
3483: rm -f conftest conftest$ac_cv_exeext
3484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3485: $as_echo "$ac_cv_exeext" >&6; }
3486:
3487: rm -f conftest.$ac_ext
3488: EXEEXT=$ac_cv_exeext
3489: ac_exeext=$EXEEXT
3490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491: /* end confdefs.h. */
3492: #include <stdio.h>
3493: int
3494: main ()
3495: {
3496: FILE *f = fopen ("conftest.out", "w");
3497: return ferror (f) || fclose (f) != 0;
3498:
3499: ;
3500: return 0;
3501: }
3502: _ACEOF
3503: ac_clean_files="$ac_clean_files conftest.out"
3504: # Check that the compiler produces executables we can run. If not, either
3505: # the compiler is broken, or we cross compile.
3506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3507: $as_echo_n "checking whether we are cross compiling... " >&6; }
3508: if test "$cross_compiling" != yes; then
3509: { { ac_try="$ac_link"
3510: case "(($ac_try" in
3511: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512: *) ac_try_echo=$ac_try;;
3513: esac
3514: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515: $as_echo "$ac_try_echo"; } >&5
3516: (eval "$ac_link") 2>&5
3517: ac_status=$?
3518: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519: test $ac_status = 0; }
3520: if { ac_try='./conftest$ac_cv_exeext'
3521: { { case "(($ac_try" in
3522: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523: *) ac_try_echo=$ac_try;;
3524: esac
3525: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526: $as_echo "$ac_try_echo"; } >&5
3527: (eval "$ac_try") 2>&5
3528: ac_status=$?
3529: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530: test $ac_status = 0; }; }; then
3531: cross_compiling=no
3532: else
3533: if test "$cross_compiling" = maybe; then
3534: cross_compiling=yes
3535: else
3536: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538: as_fn_error $? "cannot run C compiled programs.
3539: If you meant to cross compile, use \`--host'.
3540: See \`config.log' for more details" "$LINENO" 5; }
3541: fi
3542: fi
3543: fi
3544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3545: $as_echo "$cross_compiling" >&6; }
3546:
3547: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3548: ac_clean_files=$ac_clean_files_save
3549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3550: $as_echo_n "checking for suffix of object files... " >&6; }
1.1.1.2 misho 3551: if ${ac_cv_objext+:} false; then :
1.1 misho 3552: $as_echo_n "(cached) " >&6
3553: else
3554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555: /* end confdefs.h. */
3556:
3557: int
3558: main ()
3559: {
3560:
3561: ;
3562: return 0;
3563: }
3564: _ACEOF
3565: rm -f conftest.o conftest.obj
3566: if { { ac_try="$ac_compile"
3567: case "(($ac_try" in
3568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569: *) ac_try_echo=$ac_try;;
3570: esac
3571: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572: $as_echo "$ac_try_echo"; } >&5
3573: (eval "$ac_compile") 2>&5
3574: ac_status=$?
3575: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576: test $ac_status = 0; }; then :
3577: for ac_file in conftest.o conftest.obj conftest.*; do
3578: test -f "$ac_file" || continue;
3579: case $ac_file in
3580: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3581: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3582: break;;
3583: esac
3584: done
3585: else
3586: $as_echo "$as_me: failed program was:" >&5
3587: sed 's/^/| /' conftest.$ac_ext >&5
3588:
3589: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591: as_fn_error $? "cannot compute suffix of object files: cannot compile
3592: See \`config.log' for more details" "$LINENO" 5; }
3593: fi
3594: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3595: fi
3596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3597: $as_echo "$ac_cv_objext" >&6; }
3598: OBJEXT=$ac_cv_objext
3599: ac_objext=$OBJEXT
3600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3601: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1.1.2 misho 3602: if ${ac_cv_c_compiler_gnu+:} false; then :
1.1 misho 3603: $as_echo_n "(cached) " >&6
3604: else
3605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606: /* end confdefs.h. */
3607:
3608: int
3609: main ()
3610: {
3611: #ifndef __GNUC__
3612: choke me
3613: #endif
3614:
3615: ;
3616: return 0;
3617: }
3618: _ACEOF
3619: if ac_fn_c_try_compile "$LINENO"; then :
3620: ac_compiler_gnu=yes
3621: else
3622: ac_compiler_gnu=no
3623: fi
3624: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3626:
3627: fi
3628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3629: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3630: if test $ac_compiler_gnu = yes; then
3631: GCC=yes
3632: else
3633: GCC=
3634: fi
3635: ac_test_CFLAGS=${CFLAGS+set}
3636: ac_save_CFLAGS=$CFLAGS
3637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3638: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1.1.2 misho 3639: if ${ac_cv_prog_cc_g+:} false; then :
1.1 misho 3640: $as_echo_n "(cached) " >&6
3641: else
3642: ac_save_c_werror_flag=$ac_c_werror_flag
3643: ac_c_werror_flag=yes
3644: ac_cv_prog_cc_g=no
3645: CFLAGS="-g"
3646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647: /* end confdefs.h. */
3648:
3649: int
3650: main ()
3651: {
3652:
3653: ;
3654: return 0;
3655: }
3656: _ACEOF
3657: if ac_fn_c_try_compile "$LINENO"; then :
3658: ac_cv_prog_cc_g=yes
3659: else
3660: CFLAGS=""
3661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662: /* end confdefs.h. */
3663:
3664: int
3665: main ()
3666: {
3667:
3668: ;
3669: return 0;
3670: }
3671: _ACEOF
3672: if ac_fn_c_try_compile "$LINENO"; then :
3673:
3674: else
3675: ac_c_werror_flag=$ac_save_c_werror_flag
3676: CFLAGS="-g"
3677: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678: /* end confdefs.h. */
3679:
3680: int
3681: main ()
3682: {
3683:
3684: ;
3685: return 0;
3686: }
3687: _ACEOF
3688: if ac_fn_c_try_compile "$LINENO"; then :
3689: ac_cv_prog_cc_g=yes
3690: fi
3691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692: fi
3693: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694: fi
3695: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696: ac_c_werror_flag=$ac_save_c_werror_flag
3697: fi
3698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3699: $as_echo "$ac_cv_prog_cc_g" >&6; }
3700: if test "$ac_test_CFLAGS" = set; then
3701: CFLAGS=$ac_save_CFLAGS
3702: elif test $ac_cv_prog_cc_g = yes; then
3703: if test "$GCC" = yes; then
3704: CFLAGS="-g -O2"
3705: else
3706: CFLAGS="-g"
3707: fi
3708: else
3709: if test "$GCC" = yes; then
3710: CFLAGS="-O2"
3711: else
3712: CFLAGS=
3713: fi
3714: fi
3715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3716: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.1.2 misho 3717: if ${ac_cv_prog_cc_c89+:} false; then :
1.1 misho 3718: $as_echo_n "(cached) " >&6
3719: else
3720: ac_cv_prog_cc_c89=no
3721: ac_save_CC=$CC
3722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723: /* end confdefs.h. */
3724: #include <stdarg.h>
3725: #include <stdio.h>
3726: #include <sys/types.h>
3727: #include <sys/stat.h>
3728: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3729: struct buf { int x; };
3730: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3731: static char *e (p, i)
3732: char **p;
3733: int i;
3734: {
3735: return p[i];
3736: }
3737: static char *f (char * (*g) (char **, int), char **p, ...)
3738: {
3739: char *s;
3740: va_list v;
3741: va_start (v,p);
3742: s = g (p, va_arg (v,int));
3743: va_end (v);
3744: return s;
3745: }
3746:
3747: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3748: function prototypes and stuff, but not '\xHH' hex character constants.
3749: These don't provoke an error unfortunately, instead are silently treated
3750: as 'x'. The following induces an error, until -std is added to get
3751: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3752: array size at least. It's necessary to write '\x00'==0 to get something
3753: that's true only with -std. */
3754: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3755:
3756: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3757: inside strings and character constants. */
3758: #define FOO(x) 'x'
3759: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3760:
3761: int test (int i, double x);
3762: struct s1 {int (*f) (int a);};
3763: struct s2 {int (*f) (double a);};
3764: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3765: int argc;
3766: char **argv;
3767: int
3768: main ()
3769: {
3770: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3771: ;
3772: return 0;
3773: }
3774: _ACEOF
3775: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3776: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3777: do
3778: CC="$ac_save_CC $ac_arg"
3779: if ac_fn_c_try_compile "$LINENO"; then :
3780: ac_cv_prog_cc_c89=$ac_arg
3781: fi
3782: rm -f core conftest.err conftest.$ac_objext
3783: test "x$ac_cv_prog_cc_c89" != "xno" && break
3784: done
3785: rm -f conftest.$ac_ext
3786: CC=$ac_save_CC
3787:
3788: fi
3789: # AC_CACHE_VAL
3790: case "x$ac_cv_prog_cc_c89" in
3791: x)
3792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3793: $as_echo "none needed" >&6; } ;;
3794: xno)
3795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3796: $as_echo "unsupported" >&6; } ;;
3797: *)
3798: CC="$CC $ac_cv_prog_cc_c89"
3799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3800: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3801: esac
3802: if test "x$ac_cv_prog_cc_c89" != xno; then :
3803:
3804: fi
3805:
3806: ac_ext=c
3807: ac_cpp='$CPP $CPPFLAGS'
3808: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811: DEPDIR="${am__leading_dot}deps"
3812:
3813: ac_config_commands="$ac_config_commands depfiles"
3814:
3815:
3816: am_make=${MAKE-make}
3817: cat > confinc << 'END'
3818: am__doit:
3819: @echo this is the am__doit target
3820: .PHONY: am__doit
3821: END
3822: # If we don't find an include directive, just comment out the code.
3823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3824: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3825: am__include="#"
3826: am__quote=
3827: _am_result=none
3828: # First try GNU make style include.
3829: echo "include confinc" > confmf
3830: # Ignore all kinds of additional output from `make'.
3831: case `$am_make -s -f confmf 2> /dev/null` in #(
3832: *the\ am__doit\ target*)
3833: am__include=include
3834: am__quote=
3835: _am_result=GNU
3836: ;;
3837: esac
3838: # Now try BSD make style include.
3839: if test "$am__include" = "#"; then
3840: echo '.include "confinc"' > confmf
3841: case `$am_make -s -f confmf 2> /dev/null` in #(
3842: *the\ am__doit\ target*)
3843: am__include=.include
3844: am__quote="\""
3845: _am_result=BSD
3846: ;;
3847: esac
3848: fi
3849:
3850:
3851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3852: $as_echo "$_am_result" >&6; }
3853: rm -f confinc confmf
3854:
3855: # Check whether --enable-dependency-tracking was given.
3856: if test "${enable_dependency_tracking+set}" = set; then :
3857: enableval=$enable_dependency_tracking;
3858: fi
3859:
3860: if test "x$enable_dependency_tracking" != xno; then
3861: am_depcomp="$ac_aux_dir/depcomp"
3862: AMDEPBACKSLASH='\'
3863: fi
3864: if test "x$enable_dependency_tracking" != xno; then
3865: AMDEP_TRUE=
3866: AMDEP_FALSE='#'
3867: else
3868: AMDEP_TRUE='#'
3869: AMDEP_FALSE=
3870: fi
3871:
3872:
3873:
3874: depcc="$CC" am_compiler_list=
3875:
3876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3877: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.1.1.2 misho 3878: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.1 misho 3879: $as_echo_n "(cached) " >&6
3880: else
3881: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3882: # We make a subdir and do the tests there. Otherwise we can end up
3883: # making bogus files that we don't know about and never remove. For
3884: # instance it was reported that on HP-UX the gcc test will end up
3885: # making a dummy file named `D' -- because `-MD' means `put the output
3886: # in D'.
3887: mkdir conftest.dir
3888: # Copy depcomp to subdir because otherwise we won't find it if we're
3889: # using a relative directory.
3890: cp "$am_depcomp" conftest.dir
3891: cd conftest.dir
3892: # We will build objects and dependencies in a subdirectory because
3893: # it helps to detect inapplicable dependency modes. For instance
3894: # both Tru64's cc and ICC support -MD to output dependencies as a
3895: # side effect of compilation, but ICC will put the dependencies in
3896: # the current directory while Tru64 will put them in the object
3897: # directory.
3898: mkdir sub
3899:
3900: am_cv_CC_dependencies_compiler_type=none
3901: if test "$am_compiler_list" = ""; then
3902: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3903: fi
3904: am__universal=false
3905: case " $depcc " in #(
3906: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3907: esac
3908:
3909: for depmode in $am_compiler_list; do
3910: # Setup a source with many dependencies, because some compilers
3911: # like to wrap large dependency lists on column 80 (with \), and
3912: # we should not choose a depcomp mode which is confused by this.
3913: #
3914: # We need to recreate these files for each test, as the compiler may
3915: # overwrite some of them when testing with obscure command lines.
3916: # This happens at least with the AIX C compiler.
3917: : > sub/conftest.c
3918: for i in 1 2 3 4 5 6; do
3919: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3920: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3921: # Solaris 8's {/usr,}/bin/sh.
3922: touch sub/conftst$i.h
3923: done
3924: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3925:
3926: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3927: # mode. It turns out that the SunPro C++ compiler does not properly
3928: # handle `-M -o', and we need to detect this. Also, some Intel
3929: # versions had trouble with output in subdirs
3930: am__obj=sub/conftest.${OBJEXT-o}
3931: am__minus_obj="-o $am__obj"
3932: case $depmode in
3933: gcc)
3934: # This depmode causes a compiler race in universal mode.
3935: test "$am__universal" = false || continue
3936: ;;
3937: nosideeffect)
3938: # after this tag, mechanisms are not by side-effect, so they'll
3939: # only be used when explicitly requested
3940: if test "x$enable_dependency_tracking" = xyes; then
3941: continue
3942: else
3943: break
3944: fi
3945: ;;
3946: msvisualcpp | msvcmsys)
3947: # This compiler won't grok `-c -o', but also, the minuso test has
3948: # not run yet. These depmodes are late enough in the game, and
3949: # so weak that their functioning should not be impacted.
3950: am__obj=conftest.${OBJEXT-o}
3951: am__minus_obj=
3952: ;;
3953: none) break ;;
3954: esac
3955: if depmode=$depmode \
3956: source=sub/conftest.c object=$am__obj \
3957: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3958: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3959: >/dev/null 2>conftest.err &&
3960: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3961: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3962: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3963: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3964: # icc doesn't choke on unknown options, it will just issue warnings
3965: # or remarks (even with -Werror). So we grep stderr for any message
3966: # that says an option was ignored or not supported.
3967: # When given -MP, icc 7.0 and 7.1 complain thusly:
3968: # icc: Command line warning: ignoring option '-M'; no argument required
3969: # The diagnosis changed in icc 8.0:
3970: # icc: Command line remark: option '-MP' not supported
3971: if (grep 'ignoring option' conftest.err ||
3972: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3973: am_cv_CC_dependencies_compiler_type=$depmode
3974: break
3975: fi
3976: fi
3977: done
3978:
3979: cd ..
3980: rm -rf conftest.dir
3981: else
3982: am_cv_CC_dependencies_compiler_type=none
3983: fi
3984:
3985: fi
3986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3987: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3988: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3989:
3990: if
3991: test "x$enable_dependency_tracking" != xno \
3992: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3993: am__fastdepCC_TRUE=
3994: am__fastdepCC_FALSE='#'
3995: else
3996: am__fastdepCC_TRUE='#'
3997: am__fastdepCC_FALSE=
3998: fi
3999:
4000:
4001:
4002:
4003: ac_ext=c
4004: ac_cpp='$CPP $CPPFLAGS'
4005: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4010: # On Suns, sometimes $CPP names a directory.
4011: if test -n "$CPP" && test -d "$CPP"; then
4012: CPP=
4013: fi
4014: if test -z "$CPP"; then
1.1.1.2 misho 4015: if ${ac_cv_prog_CPP+:} false; then :
1.1 misho 4016: $as_echo_n "(cached) " >&6
4017: else
4018: # Double quotes because CPP needs to be expanded
4019: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020: do
4021: ac_preproc_ok=false
4022: for ac_c_preproc_warn_flag in '' yes
4023: do
4024: # Use a header file that comes with gcc, so configuring glibc
4025: # with a fresh cross-compiler works.
4026: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027: # <limits.h> exists even on freestanding compilers.
4028: # On the NeXT, cc -E runs the code through the compiler's parser,
4029: # not just through cpp. "Syntax error" is here to catch this case.
4030: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031: /* end confdefs.h. */
4032: #ifdef __STDC__
4033: # include <limits.h>
4034: #else
4035: # include <assert.h>
4036: #endif
4037: Syntax error
4038: _ACEOF
4039: if ac_fn_c_try_cpp "$LINENO"; then :
4040:
4041: else
4042: # Broken: fails on valid input.
4043: continue
4044: fi
1.1.1.2 misho 4045: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 4046:
4047: # OK, works on sane cases. Now check whether nonexistent headers
4048: # can be detected and how.
4049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050: /* end confdefs.h. */
4051: #include <ac_nonexistent.h>
4052: _ACEOF
4053: if ac_fn_c_try_cpp "$LINENO"; then :
4054: # Broken: success on invalid input.
4055: continue
4056: else
4057: # Passes both tests.
4058: ac_preproc_ok=:
4059: break
4060: fi
1.1.1.2 misho 4061: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 4062:
4063: done
4064: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.2 misho 4065: rm -f conftest.i conftest.err conftest.$ac_ext
1.1 misho 4066: if $ac_preproc_ok; then :
4067: break
4068: fi
4069:
4070: done
4071: ac_cv_prog_CPP=$CPP
4072:
4073: fi
4074: CPP=$ac_cv_prog_CPP
4075: else
4076: ac_cv_prog_CPP=$CPP
4077: fi
4078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079: $as_echo "$CPP" >&6; }
4080: ac_preproc_ok=false
4081: for ac_c_preproc_warn_flag in '' yes
4082: do
4083: # Use a header file that comes with gcc, so configuring glibc
4084: # with a fresh cross-compiler works.
4085: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086: # <limits.h> exists even on freestanding compilers.
4087: # On the NeXT, cc -E runs the code through the compiler's parser,
4088: # not just through cpp. "Syntax error" is here to catch this case.
4089: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090: /* end confdefs.h. */
4091: #ifdef __STDC__
4092: # include <limits.h>
4093: #else
4094: # include <assert.h>
4095: #endif
4096: Syntax error
4097: _ACEOF
4098: if ac_fn_c_try_cpp "$LINENO"; then :
4099:
4100: else
4101: # Broken: fails on valid input.
4102: continue
4103: fi
1.1.1.2 misho 4104: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 4105:
4106: # OK, works on sane cases. Now check whether nonexistent headers
4107: # can be detected and how.
4108: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109: /* end confdefs.h. */
4110: #include <ac_nonexistent.h>
4111: _ACEOF
4112: if ac_fn_c_try_cpp "$LINENO"; then :
4113: # Broken: success on invalid input.
4114: continue
4115: else
4116: # Passes both tests.
4117: ac_preproc_ok=:
4118: break
4119: fi
1.1.1.2 misho 4120: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 4121:
4122: done
4123: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.2 misho 4124: rm -f conftest.i conftest.err conftest.$ac_ext
1.1 misho 4125: if $ac_preproc_ok; then :
4126:
4127: else
4128: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4131: See \`config.log' for more details" "$LINENO" 5; }
4132: fi
4133:
4134: ac_ext=c
4135: ac_cpp='$CPP $CPPFLAGS'
4136: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139:
4140: # Extract the first word of "rm", so it can be a program name with args.
4141: set dummy rm; ac_word=$2
4142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4144: if ${ac_cv_path_RM+:} false; then :
1.1 misho 4145: $as_echo_n "(cached) " >&6
4146: else
4147: case $RM in
4148: [\\/]* | ?:[\\/]*)
4149: ac_cv_path_RM="$RM" # Let the user override the test with a path.
4150: ;;
4151: *)
4152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153: for as_dir in $PATH
4154: do
4155: IFS=$as_save_IFS
4156: test -z "$as_dir" && as_dir=.
4157: for ac_exec_ext in '' $ac_executable_extensions; do
4158: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159: ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4160: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161: break 2
4162: fi
4163: done
4164: done
4165: IFS=$as_save_IFS
4166:
4167: test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4168: ;;
4169: esac
4170: fi
4171: RM=$ac_cv_path_RM
4172: if test -n "$RM"; then
4173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4174: $as_echo "$RM" >&6; }
4175: else
4176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177: $as_echo "no" >&6; }
4178: fi
4179:
4180:
4181: # Extract the first word of "mv", so it can be a program name with args.
4182: set dummy mv; ac_word=$2
4183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4185: if ${ac_cv_path_MV+:} false; then :
1.1 misho 4186: $as_echo_n "(cached) " >&6
4187: else
4188: case $MV in
4189: [\\/]* | ?:[\\/]*)
4190: ac_cv_path_MV="$MV" # Let the user override the test with a path.
4191: ;;
4192: *)
4193: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194: for as_dir in $PATH
4195: do
4196: IFS=$as_save_IFS
4197: test -z "$as_dir" && as_dir=.
4198: for ac_exec_ext in '' $ac_executable_extensions; do
4199: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200: ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4201: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202: break 2
4203: fi
4204: done
4205: done
4206: IFS=$as_save_IFS
4207:
4208: test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4209: ;;
4210: esac
4211: fi
4212: MV=$ac_cv_path_MV
4213: if test -n "$MV"; then
4214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4215: $as_echo "$MV" >&6; }
4216: else
4217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218: $as_echo "no" >&6; }
4219: fi
4220:
4221:
4222: # Extract the first word of "tar", so it can be a program name with args.
4223: set dummy tar; ac_word=$2
4224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4226: if ${ac_cv_path_TAR+:} false; then :
1.1 misho 4227: $as_echo_n "(cached) " >&6
4228: else
4229: case $TAR in
4230: [\\/]* | ?:[\\/]*)
4231: ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4232: ;;
4233: *)
4234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235: for as_dir in $PATH
4236: do
4237: IFS=$as_save_IFS
4238: test -z "$as_dir" && as_dir=.
4239: for ac_exec_ext in '' $ac_executable_extensions; do
4240: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241: ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4242: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243: break 2
4244: fi
4245: done
4246: done
4247: IFS=$as_save_IFS
4248:
4249: test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4250: ;;
4251: esac
4252: fi
4253: TAR=$ac_cv_path_TAR
4254: if test -n "$TAR"; then
4255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4256: $as_echo "$TAR" >&6; }
4257: else
4258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259: $as_echo "no" >&6; }
4260: fi
4261:
4262:
4263: # Extract the first word of "perl", so it can be a program name with args.
4264: set dummy perl; ac_word=$2
4265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4267: if ${ac_cv_path_PERL+:} false; then :
1.1 misho 4268: $as_echo_n "(cached) " >&6
4269: else
4270: case $PERL in
4271: [\\/]* | ?:[\\/]*)
4272: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4273: ;;
4274: *)
4275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276: for as_dir in $PATH
4277: do
4278: IFS=$as_save_IFS
4279: test -z "$as_dir" && as_dir=.
4280: for ac_exec_ext in '' $ac_executable_extensions; do
4281: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4283: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284: break 2
4285: fi
4286: done
4287: done
4288: IFS=$as_save_IFS
4289:
4290: test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4291: ;;
4292: esac
4293: fi
4294: PERL=$ac_cv_path_PERL
4295: if test -n "$PERL"; then
4296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4297: $as_echo "$PERL" >&6; }
4298: else
4299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300: $as_echo "no" >&6; }
4301: fi
4302:
4303:
4304: # Extract the first word of "wget", so it can be a program name with args.
4305: set dummy wget; ac_word=$2
4306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4308: if ${ac_cv_path_WGET+:} false; then :
1.1 misho 4309: $as_echo_n "(cached) " >&6
4310: else
4311: case $WGET in
4312: [\\/]* | ?:[\\/]*)
4313: ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4314: ;;
4315: *)
4316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317: for as_dir in $PATH
4318: do
4319: IFS=$as_save_IFS
4320: test -z "$as_dir" && as_dir=.
4321: for ac_exec_ext in '' $ac_executable_extensions; do
4322: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323: ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4324: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325: break 2
4326: fi
4327: done
4328: done
4329: IFS=$as_save_IFS
4330:
4331: test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4332: ;;
4333: esac
4334: fi
4335: WGET=$ac_cv_path_WGET
4336: if test -n "$WGET"; then
4337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4338: $as_echo "$WGET" >&6; }
4339: else
4340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341: $as_echo "no" >&6; }
4342: fi
4343:
4344:
4345: # Extract the first word of "xmllint", so it can be a program name with args.
4346: set dummy xmllint; ac_word=$2
4347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4349: if ${ac_cv_path_XMLLINT+:} false; then :
1.1 misho 4350: $as_echo_n "(cached) " >&6
4351: else
4352: case $XMLLINT in
4353: [\\/]* | ?:[\\/]*)
4354: ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4355: ;;
4356: *)
4357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358: for as_dir in $PATH
4359: do
4360: IFS=$as_save_IFS
4361: test -z "$as_dir" && as_dir=.
4362: for ac_exec_ext in '' $ac_executable_extensions; do
4363: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364: ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4365: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366: break 2
4367: fi
4368: done
4369: done
4370: IFS=$as_save_IFS
4371:
4372: test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4373: ;;
4374: esac
4375: fi
4376: XMLLINT=$ac_cv_path_XMLLINT
4377: if test -n "$XMLLINT"; then
4378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4379: $as_echo "$XMLLINT" >&6; }
4380: else
4381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382: $as_echo "no" >&6; }
4383: fi
4384:
4385:
4386: # Extract the first word of "xsltproc", so it can be a program name with args.
4387: set dummy xsltproc; ac_word=$2
4388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4390: if ${ac_cv_path_XSLTPROC+:} false; then :
1.1 misho 4391: $as_echo_n "(cached) " >&6
4392: else
4393: case $XSLTPROC in
4394: [\\/]* | ?:[\\/]*)
4395: ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4396: ;;
4397: *)
4398: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399: for as_dir in $PATH
4400: do
4401: IFS=$as_save_IFS
4402: test -z "$as_dir" && as_dir=.
4403: for ac_exec_ext in '' $ac_executable_extensions; do
4404: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405: ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4406: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407: break 2
4408: fi
4409: done
4410: done
4411: IFS=$as_save_IFS
4412:
4413: test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4414: ;;
4415: esac
4416: fi
4417: XSLTPROC=$ac_cv_path_XSLTPROC
4418: if test -n "$XSLTPROC"; then
4419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4420: $as_echo "$XSLTPROC" >&6; }
4421: else
4422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423: $as_echo "no" >&6; }
4424: fi
4425:
4426:
4427:
1.1.1.2 misho 4428: enable_win32_dll=yes
1.1 misho 4429:
1.1.1.2 misho 4430: case $host in
4431: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4432: if test -n "$ac_tool_prefix"; then
4433: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4434: set dummy ${ac_tool_prefix}as; ac_word=$2
4435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436: $as_echo_n "checking for $ac_word... " >&6; }
4437: if ${ac_cv_prog_AS+:} false; then :
4438: $as_echo_n "(cached) " >&6
4439: else
4440: if test -n "$AS"; then
4441: ac_cv_prog_AS="$AS" # Let the user override the test.
4442: else
4443: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444: for as_dir in $PATH
4445: do
4446: IFS=$as_save_IFS
4447: test -z "$as_dir" && as_dir=.
4448: for ac_exec_ext in '' $ac_executable_extensions; do
4449: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450: ac_cv_prog_AS="${ac_tool_prefix}as"
4451: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452: break 2
4453: fi
4454: done
4455: done
4456: IFS=$as_save_IFS
1.1 misho 4457:
1.1.1.2 misho 4458: fi
4459: fi
4460: AS=$ac_cv_prog_AS
4461: if test -n "$AS"; then
4462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4463: $as_echo "$AS" >&6; }
1.1 misho 4464: else
4465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466: $as_echo "no" >&6; }
4467: fi
4468:
4469:
1.1.1.2 misho 4470: fi
4471: if test -z "$ac_cv_prog_AS"; then
4472: ac_ct_AS=$AS
4473: # Extract the first word of "as", so it can be a program name with args.
4474: set dummy as; ac_word=$2
4475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476: $as_echo_n "checking for $ac_word... " >&6; }
4477: if ${ac_cv_prog_ac_ct_AS+:} false; then :
1.1 misho 4478: $as_echo_n "(cached) " >&6
4479: else
1.1.1.2 misho 4480: if test -n "$ac_ct_AS"; then
4481: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4482: else
4483: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484: for as_dir in $PATH
1.1 misho 4485: do
4486: IFS=$as_save_IFS
4487: test -z "$as_dir" && as_dir=.
4488: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 4489: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490: ac_cv_prog_ac_ct_AS="as"
4491: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492: break 2
4493: fi
4494: done
1.1 misho 4495: done
4496: IFS=$as_save_IFS
1.1.1.2 misho 4497:
4498: fi
4499: fi
4500: ac_ct_AS=$ac_cv_prog_ac_ct_AS
4501: if test -n "$ac_ct_AS"; then
4502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4503: $as_echo "$ac_ct_AS" >&6; }
1.1 misho 4504: else
1.1.1.2 misho 4505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506: $as_echo "no" >&6; }
1.1 misho 4507: fi
4508:
1.1.1.2 misho 4509: if test "x$ac_ct_AS" = x; then
4510: AS="false"
4511: else
4512: case $cross_compiling:$ac_tool_warned in
4513: yes:)
4514: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516: ac_tool_warned=yes ;;
4517: esac
4518: AS=$ac_ct_AS
4519: fi
4520: else
4521: AS="$ac_cv_prog_AS"
1.1 misho 4522: fi
4523:
1.1.1.2 misho 4524: if test -n "$ac_tool_prefix"; then
4525: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4526: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528: $as_echo_n "checking for $ac_word... " >&6; }
4529: if ${ac_cv_prog_DLLTOOL+:} false; then :
1.1 misho 4530: $as_echo_n "(cached) " >&6
4531: else
1.1.1.2 misho 4532: if test -n "$DLLTOOL"; then
4533: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4534: else
4535: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536: for as_dir in $PATH
1.1 misho 4537: do
4538: IFS=$as_save_IFS
4539: test -z "$as_dir" && as_dir=.
4540: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 misho 4541: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4543: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544: break 2
4545: fi
4546: done
1.1 misho 4547: done
4548: IFS=$as_save_IFS
4549:
4550: fi
4551: fi
4552: DLLTOOL=$ac_cv_prog_DLLTOOL
4553: if test -n "$DLLTOOL"; then
4554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4555: $as_echo "$DLLTOOL" >&6; }
4556: else
4557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558: $as_echo "no" >&6; }
4559: fi
4560:
4561:
4562: fi
4563: if test -z "$ac_cv_prog_DLLTOOL"; then
4564: ac_ct_DLLTOOL=$DLLTOOL
4565: # Extract the first word of "dlltool", so it can be a program name with args.
4566: set dummy dlltool; ac_word=$2
4567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4569: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
1.1 misho 4570: $as_echo_n "(cached) " >&6
4571: else
4572: if test -n "$ac_ct_DLLTOOL"; then
4573: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4574: else
4575: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576: for as_dir in $PATH
4577: do
4578: IFS=$as_save_IFS
4579: test -z "$as_dir" && as_dir=.
4580: for ac_exec_ext in '' $ac_executable_extensions; do
4581: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4583: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584: break 2
4585: fi
4586: done
4587: done
4588: IFS=$as_save_IFS
4589:
4590: fi
4591: fi
4592: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4593: if test -n "$ac_ct_DLLTOOL"; then
4594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4595: $as_echo "$ac_ct_DLLTOOL" >&6; }
4596: else
4597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598: $as_echo "no" >&6; }
4599: fi
4600:
4601: if test "x$ac_ct_DLLTOOL" = x; then
4602: DLLTOOL="false"
4603: else
4604: case $cross_compiling:$ac_tool_warned in
4605: yes:)
4606: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608: ac_tool_warned=yes ;;
4609: esac
4610: DLLTOOL=$ac_ct_DLLTOOL
4611: fi
4612: else
4613: DLLTOOL="$ac_cv_prog_DLLTOOL"
4614: fi
4615:
4616: if test -n "$ac_tool_prefix"; then
4617: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4618: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4621: if ${ac_cv_prog_OBJDUMP+:} false; then :
1.1 misho 4622: $as_echo_n "(cached) " >&6
4623: else
4624: if test -n "$OBJDUMP"; then
4625: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4626: else
4627: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628: for as_dir in $PATH
4629: do
4630: IFS=$as_save_IFS
4631: test -z "$as_dir" && as_dir=.
4632: for ac_exec_ext in '' $ac_executable_extensions; do
4633: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4635: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636: break 2
4637: fi
4638: done
4639: done
4640: IFS=$as_save_IFS
4641:
4642: fi
4643: fi
4644: OBJDUMP=$ac_cv_prog_OBJDUMP
4645: if test -n "$OBJDUMP"; then
4646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4647: $as_echo "$OBJDUMP" >&6; }
4648: else
4649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650: $as_echo "no" >&6; }
4651: fi
4652:
4653:
4654: fi
4655: if test -z "$ac_cv_prog_OBJDUMP"; then
4656: ac_ct_OBJDUMP=$OBJDUMP
4657: # Extract the first word of "objdump", so it can be a program name with args.
4658: set dummy objdump; ac_word=$2
4659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4661: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1.1 misho 4662: $as_echo_n "(cached) " >&6
4663: else
4664: if test -n "$ac_ct_OBJDUMP"; then
4665: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4666: else
4667: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668: for as_dir in $PATH
4669: do
4670: IFS=$as_save_IFS
4671: test -z "$as_dir" && as_dir=.
4672: for ac_exec_ext in '' $ac_executable_extensions; do
4673: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4675: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676: break 2
4677: fi
4678: done
4679: done
4680: IFS=$as_save_IFS
4681:
4682: fi
4683: fi
4684: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4685: if test -n "$ac_ct_OBJDUMP"; then
4686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4687: $as_echo "$ac_ct_OBJDUMP" >&6; }
4688: else
4689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690: $as_echo "no" >&6; }
4691: fi
4692:
4693: if test "x$ac_ct_OBJDUMP" = x; then
4694: OBJDUMP="false"
4695: else
4696: case $cross_compiling:$ac_tool_warned in
4697: yes:)
4698: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700: ac_tool_warned=yes ;;
4701: esac
4702: OBJDUMP=$ac_ct_OBJDUMP
4703: fi
4704: else
4705: OBJDUMP="$ac_cv_prog_OBJDUMP"
4706: fi
4707:
4708: ;;
4709: esac
4710:
4711: test -z "$AS" && AS=as
4712:
4713:
4714:
4715:
4716:
4717: test -z "$DLLTOOL" && DLLTOOL=dlltool
4718:
4719:
4720:
4721:
4722:
4723: test -z "$OBJDUMP" && OBJDUMP=objdump
4724:
4725:
4726:
4727:
4728:
4729:
4730:
4731: case `pwd` in
4732: *\ * | *\ *)
4733: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4734: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4735: esac
4736:
4737:
4738:
1.1.1.2 misho 4739: macro_version='2.4'
4740: macro_revision='1.3293'
1.1 misho 4741:
4742:
4743:
4744:
4745:
4746:
4747:
4748:
4749:
4750:
4751:
4752:
4753:
4754: ltmain="$ac_aux_dir/ltmain.sh"
4755:
4756: # Backslashify metacharacters that are still active within
4757: # double-quoted strings.
4758: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4759:
4760: # Same as above, but do not quote variable references.
4761: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4762:
4763: # Sed substitution to delay expansion of an escaped shell variable in a
4764: # double_quote_subst'ed string.
4765: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4766:
4767: # Sed substitution to delay expansion of an escaped single quote.
4768: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4769:
4770: # Sed substitution to avoid accidental globbing in evaled expressions
4771: no_glob_subst='s/\*/\\\*/g'
4772:
4773: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4774: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4775: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4776:
4777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4778: $as_echo_n "checking how to print strings... " >&6; }
4779: # Test print first, because it will be a builtin if present.
1.1.1.2 misho 4780: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1.1 misho 4781: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4782: ECHO='print -r --'
4783: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4784: ECHO='printf %s\n'
4785: else
4786: # Use this function as a fallback that always works.
4787: func_fallback_echo ()
4788: {
4789: eval 'cat <<_LTECHO_EOF
4790: $1
4791: _LTECHO_EOF'
4792: }
4793: ECHO='func_fallback_echo'
4794: fi
4795:
4796: # func_echo_all arg...
4797: # Invoke $ECHO with all args, space-separated.
4798: func_echo_all ()
4799: {
4800: $ECHO ""
4801: }
4802:
4803: case "$ECHO" in
4804: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4805: $as_echo "printf" >&6; } ;;
4806: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4807: $as_echo "print -r" >&6; } ;;
4808: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4809: $as_echo "cat" >&6; } ;;
4810: esac
4811:
4812:
4813:
4814:
4815:
4816:
4817:
4818:
4819:
4820:
4821:
4822:
4823:
4824:
4825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4826: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
1.1.1.2 misho 4827: if ${ac_cv_path_SED+:} false; then :
1.1 misho 4828: $as_echo_n "(cached) " >&6
4829: else
4830: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4831: for ac_i in 1 2 3 4 5 6 7; do
4832: ac_script="$ac_script$as_nl$ac_script"
4833: done
4834: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4835: { ac_script=; unset ac_script;}
4836: if test -z "$SED"; then
4837: ac_path_SED_found=false
4838: # Loop through the user's path and test for each of PROGNAME-LIST
4839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840: for as_dir in $PATH
4841: do
4842: IFS=$as_save_IFS
4843: test -z "$as_dir" && as_dir=.
4844: for ac_prog in sed gsed; do
4845: for ac_exec_ext in '' $ac_executable_extensions; do
4846: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4847: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4848: # Check for GNU ac_path_SED and select it if it is found.
4849: # Check for GNU $ac_path_SED
4850: case `"$ac_path_SED" --version 2>&1` in
4851: *GNU*)
4852: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4853: *)
4854: ac_count=0
4855: $as_echo_n 0123456789 >"conftest.in"
4856: while :
4857: do
4858: cat "conftest.in" "conftest.in" >"conftest.tmp"
4859: mv "conftest.tmp" "conftest.in"
4860: cp "conftest.in" "conftest.nl"
4861: $as_echo '' >> "conftest.nl"
4862: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4863: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4864: as_fn_arith $ac_count + 1 && ac_count=$as_val
4865: if test $ac_count -gt ${ac_path_SED_max-0}; then
4866: # Best one so far, save it but keep looking for a better one
4867: ac_cv_path_SED="$ac_path_SED"
4868: ac_path_SED_max=$ac_count
4869: fi
4870: # 10*(2^10) chars as input seems more than enough
4871: test $ac_count -gt 10 && break
4872: done
4873: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4874: esac
4875:
4876: $ac_path_SED_found && break 3
4877: done
4878: done
4879: done
4880: IFS=$as_save_IFS
1.1.1.2 misho 4881: if test -z "$ac_cv_path_SED"; then
4882: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4883: fi
4884: else
4885: ac_cv_path_SED=$SED
4886: fi
4887:
4888: fi
4889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4890: $as_echo "$ac_cv_path_SED" >&6; }
4891: SED="$ac_cv_path_SED"
4892: rm -f conftest.sed
4893:
4894: test -z "$SED" && SED=sed
4895: Xsed="$SED -e 1s/^X//"
4896:
4897:
4898:
4899:
4900:
4901:
4902:
4903:
4904:
4905:
4906:
4907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4908: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4909: if ${ac_cv_path_GREP+:} false; then :
4910: $as_echo_n "(cached) " >&6
4911: else
4912: if test -z "$GREP"; then
4913: ac_path_GREP_found=false
4914: # Loop through the user's path and test for each of PROGNAME-LIST
4915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917: do
4918: IFS=$as_save_IFS
4919: test -z "$as_dir" && as_dir=.
4920: for ac_prog in grep ggrep; do
4921: for ac_exec_ext in '' $ac_executable_extensions; do
4922: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4923: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4924: # Check for GNU ac_path_GREP and select it if it is found.
4925: # Check for GNU $ac_path_GREP
4926: case `"$ac_path_GREP" --version 2>&1` in
4927: *GNU*)
4928: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4929: *)
4930: ac_count=0
4931: $as_echo_n 0123456789 >"conftest.in"
4932: while :
4933: do
4934: cat "conftest.in" "conftest.in" >"conftest.tmp"
4935: mv "conftest.tmp" "conftest.in"
4936: cp "conftest.in" "conftest.nl"
4937: $as_echo 'GREP' >> "conftest.nl"
4938: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940: as_fn_arith $ac_count + 1 && ac_count=$as_val
4941: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4942: # Best one so far, save it but keep looking for a better one
4943: ac_cv_path_GREP="$ac_path_GREP"
4944: ac_path_GREP_max=$ac_count
4945: fi
4946: # 10*(2^10) chars as input seems more than enough
4947: test $ac_count -gt 10 && break
4948: done
4949: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950: esac
4951:
4952: $ac_path_GREP_found && break 3
4953: done
4954: done
4955: done
4956: IFS=$as_save_IFS
4957: if test -z "$ac_cv_path_GREP"; then
4958: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4959: fi
4960: else
4961: ac_cv_path_GREP=$GREP
4962: fi
4963:
4964: fi
4965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4966: $as_echo "$ac_cv_path_GREP" >&6; }
4967: GREP="$ac_cv_path_GREP"
4968:
4969:
4970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4971: $as_echo_n "checking for egrep... " >&6; }
4972: if ${ac_cv_path_EGREP+:} false; then :
4973: $as_echo_n "(cached) " >&6
4974: else
4975: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4976: then ac_cv_path_EGREP="$GREP -E"
4977: else
4978: if test -z "$EGREP"; then
4979: ac_path_EGREP_found=false
4980: # Loop through the user's path and test for each of PROGNAME-LIST
4981: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4983: do
4984: IFS=$as_save_IFS
4985: test -z "$as_dir" && as_dir=.
4986: for ac_prog in egrep; do
4987: for ac_exec_ext in '' $ac_executable_extensions; do
4988: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4989: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4990: # Check for GNU ac_path_EGREP and select it if it is found.
4991: # Check for GNU $ac_path_EGREP
4992: case `"$ac_path_EGREP" --version 2>&1` in
4993: *GNU*)
4994: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4995: *)
4996: ac_count=0
4997: $as_echo_n 0123456789 >"conftest.in"
4998: while :
4999: do
5000: cat "conftest.in" "conftest.in" >"conftest.tmp"
5001: mv "conftest.tmp" "conftest.in"
5002: cp "conftest.in" "conftest.nl"
5003: $as_echo 'EGREP' >> "conftest.nl"
5004: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5005: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5006: as_fn_arith $ac_count + 1 && ac_count=$as_val
5007: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5008: # Best one so far, save it but keep looking for a better one
5009: ac_cv_path_EGREP="$ac_path_EGREP"
5010: ac_path_EGREP_max=$ac_count
5011: fi
5012: # 10*(2^10) chars as input seems more than enough
5013: test $ac_count -gt 10 && break
5014: done
5015: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5016: esac
5017:
5018: $ac_path_EGREP_found && break 3
5019: done
5020: done
5021: done
5022: IFS=$as_save_IFS
5023: if test -z "$ac_cv_path_EGREP"; then
5024: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 5025: fi
5026: else
1.1.1.2 misho 5027: ac_cv_path_EGREP=$EGREP
1.1 misho 5028: fi
5029:
1.1.1.2 misho 5030: fi
1.1 misho 5031: fi
1.1.1.2 misho 5032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5033: $as_echo "$ac_cv_path_EGREP" >&6; }
5034: EGREP="$ac_cv_path_EGREP"
1.1 misho 5035:
5036:
5037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5038: $as_echo_n "checking for fgrep... " >&6; }
1.1.1.2 misho 5039: if ${ac_cv_path_FGREP+:} false; then :
1.1 misho 5040: $as_echo_n "(cached) " >&6
5041: else
5042: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5043: then ac_cv_path_FGREP="$GREP -F"
5044: else
5045: if test -z "$FGREP"; then
5046: ac_path_FGREP_found=false
5047: # Loop through the user's path and test for each of PROGNAME-LIST
5048: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5050: do
5051: IFS=$as_save_IFS
5052: test -z "$as_dir" && as_dir=.
5053: for ac_prog in fgrep; do
5054: for ac_exec_ext in '' $ac_executable_extensions; do
5055: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5056: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5057: # Check for GNU ac_path_FGREP and select it if it is found.
5058: # Check for GNU $ac_path_FGREP
5059: case `"$ac_path_FGREP" --version 2>&1` in
5060: *GNU*)
5061: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5062: *)
5063: ac_count=0
5064: $as_echo_n 0123456789 >"conftest.in"
5065: while :
5066: do
5067: cat "conftest.in" "conftest.in" >"conftest.tmp"
5068: mv "conftest.tmp" "conftest.in"
5069: cp "conftest.in" "conftest.nl"
5070: $as_echo 'FGREP' >> "conftest.nl"
5071: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5072: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5073: as_fn_arith $ac_count + 1 && ac_count=$as_val
5074: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5075: # Best one so far, save it but keep looking for a better one
5076: ac_cv_path_FGREP="$ac_path_FGREP"
5077: ac_path_FGREP_max=$ac_count
5078: fi
5079: # 10*(2^10) chars as input seems more than enough
5080: test $ac_count -gt 10 && break
5081: done
5082: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5083: esac
5084:
5085: $ac_path_FGREP_found && break 3
5086: done
5087: done
5088: done
5089: IFS=$as_save_IFS
5090: if test -z "$ac_cv_path_FGREP"; then
5091: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5092: fi
5093: else
5094: ac_cv_path_FGREP=$FGREP
5095: fi
5096:
5097: fi
5098: fi
5099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5100: $as_echo "$ac_cv_path_FGREP" >&6; }
5101: FGREP="$ac_cv_path_FGREP"
5102:
5103:
5104: test -z "$GREP" && GREP=grep
5105:
5106:
5107:
5108:
5109:
5110:
5111:
5112:
5113:
5114:
5115:
5116:
5117:
5118:
5119:
5120:
5121:
5122:
5123:
5124: # Check whether --with-gnu-ld was given.
5125: if test "${with_gnu_ld+set}" = set; then :
5126: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5127: else
5128: with_gnu_ld=no
5129: fi
5130:
5131: ac_prog=ld
5132: if test "$GCC" = yes; then
5133: # Check if gcc -print-prog-name=ld gives a path.
5134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5135: $as_echo_n "checking for ld used by $CC... " >&6; }
5136: case $host in
5137: *-*-mingw*)
5138: # gcc leaves a trailing carriage return which upsets mingw
5139: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140: *)
5141: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5142: esac
5143: case $ac_prog in
5144: # Accept absolute paths.
5145: [\\/]* | ?:[\\/]*)
5146: re_direlt='/[^/][^/]*/\.\./'
5147: # Canonicalize the pathname of ld
5148: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5149: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5150: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5151: done
5152: test -z "$LD" && LD="$ac_prog"
5153: ;;
5154: "")
5155: # If it fails, then pretend we aren't using GCC.
5156: ac_prog=ld
5157: ;;
5158: *)
5159: # If it is relative, then search for the first ld in PATH.
5160: with_gnu_ld=unknown
5161: ;;
5162: esac
5163: elif test "$with_gnu_ld" = yes; then
5164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5165: $as_echo_n "checking for GNU ld... " >&6; }
5166: else
5167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5168: $as_echo_n "checking for non-GNU ld... " >&6; }
5169: fi
1.1.1.2 misho 5170: if ${lt_cv_path_LD+:} false; then :
1.1 misho 5171: $as_echo_n "(cached) " >&6
5172: else
5173: if test -z "$LD"; then
5174: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5175: for ac_dir in $PATH; do
5176: IFS="$lt_save_ifs"
5177: test -z "$ac_dir" && ac_dir=.
5178: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5179: lt_cv_path_LD="$ac_dir/$ac_prog"
5180: # Check to see if the program is GNU ld. I'd rather use --version,
5181: # but apparently some variants of GNU ld only accept -v.
5182: # Break only if it was the GNU/non-GNU ld that we prefer.
5183: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5184: *GNU* | *'with BFD'*)
5185: test "$with_gnu_ld" != no && break
5186: ;;
5187: *)
5188: test "$with_gnu_ld" != yes && break
5189: ;;
5190: esac
5191: fi
5192: done
5193: IFS="$lt_save_ifs"
5194: else
5195: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5196: fi
5197: fi
5198:
5199: LD="$lt_cv_path_LD"
5200: if test -n "$LD"; then
5201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5202: $as_echo "$LD" >&6; }
5203: else
5204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205: $as_echo "no" >&6; }
5206: fi
5207: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5209: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.1.1.2 misho 5210: if ${lt_cv_prog_gnu_ld+:} false; then :
1.1 misho 5211: $as_echo_n "(cached) " >&6
5212: else
5213: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5214: case `$LD -v 2>&1 </dev/null` in
5215: *GNU* | *'with BFD'*)
5216: lt_cv_prog_gnu_ld=yes
5217: ;;
5218: *)
5219: lt_cv_prog_gnu_ld=no
5220: ;;
5221: esac
5222: fi
5223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5224: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5225: with_gnu_ld=$lt_cv_prog_gnu_ld
5226:
5227:
5228:
5229:
5230:
5231:
5232:
5233:
5234:
5235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5236: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
1.1.1.2 misho 5237: if ${lt_cv_path_NM+:} false; then :
1.1 misho 5238: $as_echo_n "(cached) " >&6
5239: else
5240: if test -n "$NM"; then
5241: # Let the user override the test.
5242: lt_cv_path_NM="$NM"
5243: else
5244: lt_nm_to_check="${ac_tool_prefix}nm"
5245: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5246: lt_nm_to_check="$lt_nm_to_check nm"
5247: fi
5248: for lt_tmp_nm in $lt_nm_to_check; do
5249: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5250: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5251: IFS="$lt_save_ifs"
5252: test -z "$ac_dir" && ac_dir=.
5253: tmp_nm="$ac_dir/$lt_tmp_nm"
5254: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5255: # Check to see if the nm accepts a BSD-compat flag.
5256: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5257: # nm: unknown option "B" ignored
5258: # Tru64's nm complains that /dev/null is an invalid object file
5259: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5260: */dev/null* | *'Invalid file or object type'*)
5261: lt_cv_path_NM="$tmp_nm -B"
5262: break
5263: ;;
5264: *)
5265: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5266: */dev/null*)
5267: lt_cv_path_NM="$tmp_nm -p"
5268: break
5269: ;;
5270: *)
5271: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5272: continue # so that we can try to find one that supports BSD flags
5273: ;;
5274: esac
5275: ;;
5276: esac
5277: fi
5278: done
5279: IFS="$lt_save_ifs"
5280: done
5281: : ${lt_cv_path_NM=no}
5282: fi
5283: fi
5284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5285: $as_echo "$lt_cv_path_NM" >&6; }
5286: if test "$lt_cv_path_NM" != "no"; then
5287: NM="$lt_cv_path_NM"
5288: else
5289: # Didn't find any BSD compatible name lister, look for dumpbin.
5290: if test -n "$DUMPBIN"; then :
5291: # Let the user override the test.
5292: else
5293: if test -n "$ac_tool_prefix"; then
5294: for ac_prog in dumpbin "link -dump"
5295: do
5296: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5297: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5300: if ${ac_cv_prog_DUMPBIN+:} false; then :
1.1 misho 5301: $as_echo_n "(cached) " >&6
5302: else
5303: if test -n "$DUMPBIN"; then
5304: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5305: else
5306: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307: for as_dir in $PATH
5308: do
5309: IFS=$as_save_IFS
5310: test -z "$as_dir" && as_dir=.
5311: for ac_exec_ext in '' $ac_executable_extensions; do
5312: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5314: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315: break 2
5316: fi
5317: done
5318: done
5319: IFS=$as_save_IFS
5320:
5321: fi
5322: fi
5323: DUMPBIN=$ac_cv_prog_DUMPBIN
5324: if test -n "$DUMPBIN"; then
5325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5326: $as_echo "$DUMPBIN" >&6; }
5327: else
5328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329: $as_echo "no" >&6; }
5330: fi
5331:
5332:
5333: test -n "$DUMPBIN" && break
5334: done
5335: fi
5336: if test -z "$DUMPBIN"; then
5337: ac_ct_DUMPBIN=$DUMPBIN
5338: for ac_prog in dumpbin "link -dump"
5339: do
5340: # Extract the first word of "$ac_prog", so it can be a program name with args.
5341: set dummy $ac_prog; ac_word=$2
5342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5344: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
1.1 misho 5345: $as_echo_n "(cached) " >&6
5346: else
5347: if test -n "$ac_ct_DUMPBIN"; then
5348: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5349: else
5350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351: for as_dir in $PATH
5352: do
5353: IFS=$as_save_IFS
5354: test -z "$as_dir" && as_dir=.
5355: for ac_exec_ext in '' $ac_executable_extensions; do
5356: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5358: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359: break 2
5360: fi
5361: done
5362: done
5363: IFS=$as_save_IFS
5364:
5365: fi
5366: fi
5367: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5368: if test -n "$ac_ct_DUMPBIN"; then
5369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5370: $as_echo "$ac_ct_DUMPBIN" >&6; }
5371: else
5372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373: $as_echo "no" >&6; }
5374: fi
5375:
5376:
5377: test -n "$ac_ct_DUMPBIN" && break
5378: done
5379:
5380: if test "x$ac_ct_DUMPBIN" = x; then
5381: DUMPBIN=":"
5382: else
5383: case $cross_compiling:$ac_tool_warned in
5384: yes:)
5385: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5387: ac_tool_warned=yes ;;
5388: esac
5389: DUMPBIN=$ac_ct_DUMPBIN
5390: fi
5391: fi
5392:
5393: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5394: *COFF*)
5395: DUMPBIN="$DUMPBIN -symbols"
5396: ;;
5397: *)
5398: DUMPBIN=:
5399: ;;
5400: esac
5401: fi
5402:
5403: if test "$DUMPBIN" != ":"; then
5404: NM="$DUMPBIN"
5405: fi
5406: fi
5407: test -z "$NM" && NM=nm
5408:
5409:
5410:
5411:
5412:
5413:
5414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5415: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
1.1.1.2 misho 5416: if ${lt_cv_nm_interface+:} false; then :
1.1 misho 5417: $as_echo_n "(cached) " >&6
5418: else
5419: lt_cv_nm_interface="BSD nm"
5420: echo "int some_variable = 0;" > conftest.$ac_ext
5421: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5422: (eval "$ac_compile" 2>conftest.err)
5423: cat conftest.err >&5
5424: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5425: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5426: cat conftest.err >&5
5427: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5428: cat conftest.out >&5
5429: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5430: lt_cv_nm_interface="MS dumpbin"
5431: fi
5432: rm -f conftest*
5433: fi
5434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5435: $as_echo "$lt_cv_nm_interface" >&6; }
5436:
5437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5438: $as_echo_n "checking whether ln -s works... " >&6; }
5439: LN_S=$as_ln_s
5440: if test "$LN_S" = "ln -s"; then
5441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5442: $as_echo "yes" >&6; }
5443: else
5444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5445: $as_echo "no, using $LN_S" >&6; }
5446: fi
5447:
5448: # find the maximum length of command line arguments
5449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5450: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
1.1.1.2 misho 5451: if ${lt_cv_sys_max_cmd_len+:} false; then :
1.1 misho 5452: $as_echo_n "(cached) " >&6
5453: else
5454: i=0
5455: teststring="ABCD"
5456:
5457: case $build_os in
5458: msdosdjgpp*)
5459: # On DJGPP, this test can blow up pretty badly due to problems in libc
5460: # (any single argument exceeding 2000 bytes causes a buffer overrun
5461: # during glob expansion). Even if it were fixed, the result of this
5462: # check would be larger than it should be.
5463: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5464: ;;
5465:
5466: gnu*)
5467: # Under GNU Hurd, this test is not required because there is
5468: # no limit to the length of command line arguments.
5469: # Libtool will interpret -1 as no limit whatsoever
5470: lt_cv_sys_max_cmd_len=-1;
5471: ;;
5472:
5473: cygwin* | mingw* | cegcc*)
5474: # On Win9x/ME, this test blows up -- it succeeds, but takes
5475: # about 5 minutes as the teststring grows exponentially.
5476: # Worse, since 9x/ME are not pre-emptively multitasking,
5477: # you end up with a "frozen" computer, even though with patience
5478: # the test eventually succeeds (with a max line length of 256k).
5479: # Instead, let's just punt: use the minimum linelength reported by
5480: # all of the supported platforms: 8192 (on NT/2K/XP).
5481: lt_cv_sys_max_cmd_len=8192;
5482: ;;
5483:
5484: mint*)
5485: # On MiNT this can take a long time and run out of memory.
5486: lt_cv_sys_max_cmd_len=8192;
5487: ;;
5488:
5489: amigaos*)
5490: # On AmigaOS with pdksh, this test takes hours, literally.
5491: # So we just punt and use a minimum line length of 8192.
5492: lt_cv_sys_max_cmd_len=8192;
5493: ;;
5494:
5495: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5496: # This has been around since 386BSD, at least. Likely further.
5497: if test -x /sbin/sysctl; then
5498: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5499: elif test -x /usr/sbin/sysctl; then
5500: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5501: else
5502: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5503: fi
5504: # And add a safety zone
5505: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5506: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5507: ;;
5508:
5509: interix*)
5510: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5511: lt_cv_sys_max_cmd_len=196608
5512: ;;
5513:
5514: osf*)
5515: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5516: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5517: # nice to cause kernel panics so lets avoid the loop below.
5518: # First set a reasonable default.
5519: lt_cv_sys_max_cmd_len=16384
5520: #
5521: if test -x /sbin/sysconfig; then
5522: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5523: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5524: esac
5525: fi
5526: ;;
5527: sco3.2v5*)
5528: lt_cv_sys_max_cmd_len=102400
5529: ;;
5530: sysv5* | sco5v6* | sysv4.2uw2*)
5531: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5532: if test -n "$kargmax"; then
5533: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5534: else
5535: lt_cv_sys_max_cmd_len=32768
5536: fi
5537: ;;
5538: *)
5539: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5540: if test -n "$lt_cv_sys_max_cmd_len"; then
5541: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5542: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5543: else
5544: # Make teststring a little bigger before we do anything with it.
5545: # a 1K string should be a reasonable start.
5546: for i in 1 2 3 4 5 6 7 8 ; do
5547: teststring=$teststring$teststring
5548: done
5549: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5550: # If test is not a shell built-in, we'll probably end up computing a
5551: # maximum length that is only half of the actual maximum length, but
5552: # we can't tell.
5553: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5554: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5555: test $i != 17 # 1/2 MB should be enough
5556: do
5557: i=`expr $i + 1`
5558: teststring=$teststring$teststring
5559: done
5560: # Only check the string length outside the loop.
5561: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5562: teststring=
5563: # Add a significant safety factor because C++ compilers can tack on
5564: # massive amounts of additional arguments before passing them to the
5565: # linker. It appears as though 1/2 is a usable value.
5566: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5567: fi
5568: ;;
5569: esac
5570:
5571: fi
5572:
5573: if test -n $lt_cv_sys_max_cmd_len ; then
5574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5575: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5576: else
5577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5578: $as_echo "none" >&6; }
5579: fi
5580: max_cmd_len=$lt_cv_sys_max_cmd_len
5581:
5582:
5583:
5584:
5585:
5586:
5587: : ${CP="cp -f"}
5588: : ${MV="mv -f"}
5589: : ${RM="rm -f"}
5590:
5591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5592: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5593: # Try some XSI features
5594: xsi_shell=no
5595: ( _lt_dummy="a/b/c"
1.1.1.2 misho 5596: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5597: = c,a/b,b/c, \
1.1 misho 5598: && eval 'test $(( 1 + 1 )) -eq 2 \
5599: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5600: && xsi_shell=yes
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5602: $as_echo "$xsi_shell" >&6; }
5603:
5604:
5605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5606: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5607: lt_shell_append=no
5608: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5609: >/dev/null 2>&1 \
5610: && lt_shell_append=yes
5611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5612: $as_echo "$lt_shell_append" >&6; }
5613:
5614:
5615: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5616: lt_unset=unset
5617: else
5618: lt_unset=false
5619: fi
5620:
5621:
5622:
5623:
5624:
5625: # test EBCDIC or ASCII
5626: case `echo X|tr X '\101'` in
5627: A) # ASCII based system
5628: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5629: lt_SP2NL='tr \040 \012'
5630: lt_NL2SP='tr \015\012 \040\040'
5631: ;;
5632: *) # EBCDIC based system
5633: lt_SP2NL='tr \100 \n'
5634: lt_NL2SP='tr \r\n \100\100'
5635: ;;
5636: esac
5637:
5638:
5639:
5640:
5641:
5642:
5643:
5644:
5645:
1.1.1.2 misho 5646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5647: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5648: if ${lt_cv_to_host_file_cmd+:} false; then :
5649: $as_echo_n "(cached) " >&6
5650: else
5651: case $host in
5652: *-*-mingw* )
5653: case $build in
5654: *-*-mingw* ) # actually msys
5655: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5656: ;;
5657: *-*-cygwin* )
5658: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5659: ;;
5660: * ) # otherwise, assume *nix
5661: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5662: ;;
5663: esac
5664: ;;
5665: *-*-cygwin* )
5666: case $build in
5667: *-*-mingw* ) # actually msys
5668: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5669: ;;
5670: *-*-cygwin* )
5671: lt_cv_to_host_file_cmd=func_convert_file_noop
5672: ;;
5673: * ) # otherwise, assume *nix
5674: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5675: ;;
5676: esac
5677: ;;
5678: * ) # unhandled hosts (and "normal" native builds)
5679: lt_cv_to_host_file_cmd=func_convert_file_noop
5680: ;;
5681: esac
5682:
5683: fi
5684:
5685: to_host_file_cmd=$lt_cv_to_host_file_cmd
5686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5687: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5688:
5689:
5690:
5691:
5692:
5693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5694: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5695: if ${lt_cv_to_tool_file_cmd+:} false; then :
5696: $as_echo_n "(cached) " >&6
5697: else
5698: #assume ordinary cross tools, or native build.
5699: lt_cv_to_tool_file_cmd=func_convert_file_noop
5700: case $host in
5701: *-*-mingw* )
5702: case $build in
5703: *-*-mingw* ) # actually msys
5704: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5705: ;;
5706: esac
5707: ;;
5708: esac
5709:
5710: fi
5711:
5712: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5714: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5715:
5716:
5717:
5718:
5719:
1.1 misho 5720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5721: $as_echo_n "checking for $LD option to reload object files... " >&6; }
1.1.1.2 misho 5722: if ${lt_cv_ld_reload_flag+:} false; then :
1.1 misho 5723: $as_echo_n "(cached) " >&6
5724: else
5725: lt_cv_ld_reload_flag='-r'
5726: fi
5727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5728: $as_echo "$lt_cv_ld_reload_flag" >&6; }
5729: reload_flag=$lt_cv_ld_reload_flag
5730: case $reload_flag in
5731: "" | " "*) ;;
5732: *) reload_flag=" $reload_flag" ;;
5733: esac
5734: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5735: case $host_os in
1.1.1.2 misho 5736: cygwin* | mingw* | pw32* | cegcc*)
5737: if test "$GCC" != yes; then
5738: reload_cmds=false
5739: fi
5740: ;;
1.1 misho 5741: darwin*)
5742: if test "$GCC" = yes; then
5743: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5744: else
5745: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5746: fi
5747: ;;
5748: esac
5749:
5750:
5751:
5752:
5753:
5754:
5755:
5756:
5757:
5758: if test -n "$ac_tool_prefix"; then
5759: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5760: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5763: if ${ac_cv_prog_OBJDUMP+:} false; then :
1.1 misho 5764: $as_echo_n "(cached) " >&6
5765: else
5766: if test -n "$OBJDUMP"; then
5767: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5768: else
5769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770: for as_dir in $PATH
5771: do
5772: IFS=$as_save_IFS
5773: test -z "$as_dir" && as_dir=.
5774: for ac_exec_ext in '' $ac_executable_extensions; do
5775: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5777: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778: break 2
5779: fi
5780: done
5781: done
5782: IFS=$as_save_IFS
5783:
5784: fi
5785: fi
5786: OBJDUMP=$ac_cv_prog_OBJDUMP
5787: if test -n "$OBJDUMP"; then
5788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5789: $as_echo "$OBJDUMP" >&6; }
5790: else
5791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792: $as_echo "no" >&6; }
5793: fi
5794:
5795:
5796: fi
5797: if test -z "$ac_cv_prog_OBJDUMP"; then
5798: ac_ct_OBJDUMP=$OBJDUMP
5799: # Extract the first word of "objdump", so it can be a program name with args.
5800: set dummy objdump; ac_word=$2
5801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5803: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1.1 misho 5804: $as_echo_n "(cached) " >&6
5805: else
5806: if test -n "$ac_ct_OBJDUMP"; then
5807: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5808: else
5809: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810: for as_dir in $PATH
5811: do
5812: IFS=$as_save_IFS
5813: test -z "$as_dir" && as_dir=.
5814: for ac_exec_ext in '' $ac_executable_extensions; do
5815: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5817: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818: break 2
5819: fi
5820: done
5821: done
5822: IFS=$as_save_IFS
5823:
5824: fi
5825: fi
5826: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5827: if test -n "$ac_ct_OBJDUMP"; then
5828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5829: $as_echo "$ac_ct_OBJDUMP" >&6; }
5830: else
5831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832: $as_echo "no" >&6; }
5833: fi
5834:
5835: if test "x$ac_ct_OBJDUMP" = x; then
5836: OBJDUMP="false"
5837: else
5838: case $cross_compiling:$ac_tool_warned in
5839: yes:)
5840: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842: ac_tool_warned=yes ;;
5843: esac
5844: OBJDUMP=$ac_ct_OBJDUMP
5845: fi
5846: else
5847: OBJDUMP="$ac_cv_prog_OBJDUMP"
5848: fi
5849:
5850: test -z "$OBJDUMP" && OBJDUMP=objdump
5851:
5852:
5853:
5854:
5855:
5856:
5857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5858: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
1.1.1.2 misho 5859: if ${lt_cv_deplibs_check_method+:} false; then :
1.1 misho 5860: $as_echo_n "(cached) " >&6
5861: else
5862: lt_cv_file_magic_cmd='$MAGIC_CMD'
5863: lt_cv_file_magic_test_file=
5864: lt_cv_deplibs_check_method='unknown'
5865: # Need to set the preceding variable on all platforms that support
5866: # interlibrary dependencies.
5867: # 'none' -- dependencies not supported.
5868: # `unknown' -- same as none, but documents that we really don't know.
5869: # 'pass_all' -- all dependencies passed with no checks.
5870: # 'test_compile' -- check by making test program.
5871: # 'file_magic [[regex]]' -- check by looking for files in library path
5872: # which responds to the $file_magic_cmd with a given extended regex.
5873: # If you have `file' or equivalent on your system and you're not sure
5874: # whether `pass_all' will *always* work, you probably want this one.
5875:
5876: case $host_os in
5877: aix[4-9]*)
5878: lt_cv_deplibs_check_method=pass_all
5879: ;;
5880:
5881: beos*)
5882: lt_cv_deplibs_check_method=pass_all
5883: ;;
5884:
5885: bsdi[45]*)
5886: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5887: lt_cv_file_magic_cmd='/usr/bin/file -L'
5888: lt_cv_file_magic_test_file=/shlib/libc.so
5889: ;;
5890:
5891: cygwin*)
5892: # func_win32_libid is a shell function defined in ltmain.sh
5893: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5894: lt_cv_file_magic_cmd='func_win32_libid'
5895: ;;
5896:
5897: mingw* | pw32*)
5898: # Base MSYS/MinGW do not provide the 'file' command needed by
5899: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5900: # unless we find 'file', for example because we are cross-compiling.
5901: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5902: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5903: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5904: lt_cv_file_magic_cmd='func_win32_libid'
5905: else
5906: # Keep this pattern in sync with the one in func_win32_libid.
5907: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5908: lt_cv_file_magic_cmd='$OBJDUMP -f'
5909: fi
5910: ;;
5911:
5912: cegcc*)
5913: # use the weaker test based on 'objdump'. See mingw*.
5914: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5915: lt_cv_file_magic_cmd='$OBJDUMP -f'
5916: ;;
5917:
5918: darwin* | rhapsody*)
5919: lt_cv_deplibs_check_method=pass_all
5920: ;;
5921:
5922: freebsd* | dragonfly*)
5923: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5924: case $host_cpu in
5925: i*86 )
5926: # Not sure whether the presence of OpenBSD here was a mistake.
5927: # Let's accept both of them until this is cleared up.
5928: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5929: lt_cv_file_magic_cmd=/usr/bin/file
5930: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5931: ;;
5932: esac
5933: else
5934: lt_cv_deplibs_check_method=pass_all
5935: fi
5936: ;;
5937:
5938: gnu*)
5939: lt_cv_deplibs_check_method=pass_all
5940: ;;
5941:
5942: haiku*)
5943: lt_cv_deplibs_check_method=pass_all
5944: ;;
5945:
5946: hpux10.20* | hpux11*)
5947: lt_cv_file_magic_cmd=/usr/bin/file
5948: case $host_cpu in
5949: ia64*)
5950: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5951: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5952: ;;
5953: hppa*64*)
5954: 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]'
5955: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5956: ;;
5957: *)
5958: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5959: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5960: ;;
5961: esac
5962: ;;
5963:
5964: interix[3-9]*)
5965: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5966: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5967: ;;
5968:
5969: irix5* | irix6* | nonstopux*)
5970: case $LD in
5971: *-32|*"-32 ") libmagic=32-bit;;
5972: *-n32|*"-n32 ") libmagic=N32;;
5973: *-64|*"-64 ") libmagic=64-bit;;
5974: *) libmagic=never-match;;
5975: esac
5976: lt_cv_deplibs_check_method=pass_all
5977: ;;
5978:
5979: # This must be Linux ELF.
5980: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5981: lt_cv_deplibs_check_method=pass_all
5982: ;;
5983:
5984: netbsd*)
5985: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5986: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5987: else
5988: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5989: fi
5990: ;;
5991:
5992: newos6*)
5993: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5994: lt_cv_file_magic_cmd=/usr/bin/file
5995: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5996: ;;
5997:
5998: *nto* | *qnx*)
5999: lt_cv_deplibs_check_method=pass_all
6000: ;;
6001:
6002: openbsd*)
6003: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6004: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6005: else
6006: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6007: fi
6008: ;;
6009:
6010: osf3* | osf4* | osf5*)
6011: lt_cv_deplibs_check_method=pass_all
6012: ;;
6013:
6014: rdos*)
6015: lt_cv_deplibs_check_method=pass_all
6016: ;;
6017:
6018: solaris*)
6019: lt_cv_deplibs_check_method=pass_all
6020: ;;
6021:
6022: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6023: lt_cv_deplibs_check_method=pass_all
6024: ;;
6025:
6026: sysv4 | sysv4.3*)
6027: case $host_vendor in
6028: motorola)
6029: 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]'
6030: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6031: ;;
6032: ncr)
6033: lt_cv_deplibs_check_method=pass_all
6034: ;;
6035: sequent)
6036: lt_cv_file_magic_cmd='/bin/file'
6037: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6038: ;;
6039: sni)
6040: lt_cv_file_magic_cmd='/bin/file'
6041: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6042: lt_cv_file_magic_test_file=/lib/libc.so
6043: ;;
6044: siemens)
6045: lt_cv_deplibs_check_method=pass_all
6046: ;;
6047: pc)
6048: lt_cv_deplibs_check_method=pass_all
6049: ;;
6050: esac
6051: ;;
6052:
6053: tpf*)
6054: lt_cv_deplibs_check_method=pass_all
6055: ;;
6056: esac
6057:
6058: fi
6059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6060: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.1.1.2 misho 6061:
6062: file_magic_glob=
6063: want_nocaseglob=no
6064: if test "$build" = "$host"; then
6065: case $host_os in
6066: mingw* | pw32*)
6067: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6068: want_nocaseglob=yes
6069: else
6070: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6071: fi
6072: ;;
6073: esac
6074: fi
6075:
1.1 misho 6076: file_magic_cmd=$lt_cv_file_magic_cmd
6077: deplibs_check_method=$lt_cv_deplibs_check_method
6078: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6079:
6080:
6081:
6082:
6083:
6084:
6085:
6086:
6087:
6088:
6089:
6090:
1.1.1.2 misho 6091:
6092:
6093:
6094:
6095:
6096:
6097:
6098:
6099:
6100:
6101: if test -n "$ac_tool_prefix"; then
6102: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6103: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105: $as_echo_n "checking for $ac_word... " >&6; }
6106: if ${ac_cv_prog_DLLTOOL+:} false; then :
6107: $as_echo_n "(cached) " >&6
6108: else
6109: if test -n "$DLLTOOL"; then
6110: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6111: else
6112: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113: for as_dir in $PATH
6114: do
6115: IFS=$as_save_IFS
6116: test -z "$as_dir" && as_dir=.
6117: for ac_exec_ext in '' $ac_executable_extensions; do
6118: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6120: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121: break 2
6122: fi
6123: done
6124: done
6125: IFS=$as_save_IFS
6126:
6127: fi
6128: fi
6129: DLLTOOL=$ac_cv_prog_DLLTOOL
6130: if test -n "$DLLTOOL"; then
6131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6132: $as_echo "$DLLTOOL" >&6; }
6133: else
6134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135: $as_echo "no" >&6; }
6136: fi
6137:
6138:
6139: fi
6140: if test -z "$ac_cv_prog_DLLTOOL"; then
6141: ac_ct_DLLTOOL=$DLLTOOL
6142: # Extract the first word of "dlltool", so it can be a program name with args.
6143: set dummy dlltool; ac_word=$2
6144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145: $as_echo_n "checking for $ac_word... " >&6; }
6146: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6147: $as_echo_n "(cached) " >&6
6148: else
6149: if test -n "$ac_ct_DLLTOOL"; then
6150: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6151: else
6152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153: for as_dir in $PATH
6154: do
6155: IFS=$as_save_IFS
6156: test -z "$as_dir" && as_dir=.
6157: for ac_exec_ext in '' $ac_executable_extensions; do
6158: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6160: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161: break 2
6162: fi
6163: done
6164: done
6165: IFS=$as_save_IFS
6166:
6167: fi
6168: fi
6169: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6170: if test -n "$ac_ct_DLLTOOL"; then
6171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6172: $as_echo "$ac_ct_DLLTOOL" >&6; }
6173: else
6174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175: $as_echo "no" >&6; }
6176: fi
6177:
6178: if test "x$ac_ct_DLLTOOL" = x; then
6179: DLLTOOL="false"
6180: else
6181: case $cross_compiling:$ac_tool_warned in
6182: yes:)
6183: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185: ac_tool_warned=yes ;;
6186: esac
6187: DLLTOOL=$ac_ct_DLLTOOL
6188: fi
6189: else
6190: DLLTOOL="$ac_cv_prog_DLLTOOL"
6191: fi
6192:
6193: test -z "$DLLTOOL" && DLLTOOL=dlltool
6194:
6195:
6196:
6197:
6198:
6199:
6200:
6201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6202: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6203: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6204: $as_echo_n "(cached) " >&6
6205: else
6206: lt_cv_sharedlib_from_linklib_cmd='unknown'
6207:
6208: case $host_os in
6209: cygwin* | mingw* | pw32* | cegcc*)
6210: # two different shell functions defined in ltmain.sh
6211: # decide which to use based on capabilities of $DLLTOOL
6212: case `$DLLTOOL --help 2>&1` in
6213: *--identify-strict*)
6214: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6215: ;;
6216: *)
6217: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6218: ;;
6219: esac
6220: ;;
6221: *)
6222: # fallback: assume linklib IS sharedlib
6223: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6224: ;;
6225: esac
6226:
6227: fi
6228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6229: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6230: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6231: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6232:
6233:
6234:
6235:
6236:
6237:
6238:
6239:
1.1 misho 6240: if test -n "$ac_tool_prefix"; then
1.1.1.2 misho 6241: for ac_prog in ar
6242: do
6243: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6244: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1 misho 6245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6247: if ${ac_cv_prog_AR+:} false; then :
1.1 misho 6248: $as_echo_n "(cached) " >&6
6249: else
6250: if test -n "$AR"; then
6251: ac_cv_prog_AR="$AR" # Let the user override the test.
6252: else
6253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254: for as_dir in $PATH
6255: do
6256: IFS=$as_save_IFS
6257: test -z "$as_dir" && as_dir=.
6258: for ac_exec_ext in '' $ac_executable_extensions; do
6259: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.2 misho 6260: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.1 misho 6261: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262: break 2
6263: fi
6264: done
6265: done
6266: IFS=$as_save_IFS
6267:
6268: fi
6269: fi
6270: AR=$ac_cv_prog_AR
6271: if test -n "$AR"; then
6272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6273: $as_echo "$AR" >&6; }
6274: else
6275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276: $as_echo "no" >&6; }
6277: fi
6278:
6279:
1.1.1.2 misho 6280: test -n "$AR" && break
6281: done
1.1 misho 6282: fi
1.1.1.2 misho 6283: if test -z "$AR"; then
1.1 misho 6284: ac_ct_AR=$AR
1.1.1.2 misho 6285: for ac_prog in ar
6286: do
6287: # Extract the first word of "$ac_prog", so it can be a program name with args.
6288: set dummy $ac_prog; ac_word=$2
1.1 misho 6289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6291: if ${ac_cv_prog_ac_ct_AR+:} false; then :
1.1 misho 6292: $as_echo_n "(cached) " >&6
6293: else
6294: if test -n "$ac_ct_AR"; then
6295: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6296: else
6297: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298: for as_dir in $PATH
6299: do
6300: IFS=$as_save_IFS
6301: test -z "$as_dir" && as_dir=.
6302: for ac_exec_ext in '' $ac_executable_extensions; do
6303: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.2 misho 6304: ac_cv_prog_ac_ct_AR="$ac_prog"
1.1 misho 6305: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306: break 2
6307: fi
6308: done
6309: done
6310: IFS=$as_save_IFS
6311:
6312: fi
6313: fi
6314: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6315: if test -n "$ac_ct_AR"; then
6316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6317: $as_echo "$ac_ct_AR" >&6; }
6318: else
6319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320: $as_echo "no" >&6; }
6321: fi
6322:
1.1.1.2 misho 6323:
6324: test -n "$ac_ct_AR" && break
6325: done
6326:
1.1 misho 6327: if test "x$ac_ct_AR" = x; then
6328: AR="false"
6329: else
6330: case $cross_compiling:$ac_tool_warned in
6331: yes:)
6332: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334: ac_tool_warned=yes ;;
6335: esac
6336: AR=$ac_ct_AR
6337: fi
6338: fi
6339:
1.1.1.2 misho 6340: : ${AR=ar}
6341: : ${AR_FLAGS=cru}
6342:
6343:
6344:
6345:
6346:
1.1 misho 6347:
6348:
6349:
6350:
6351:
6352:
1.1.1.2 misho 6353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6354: $as_echo_n "checking for archiver @FILE support... " >&6; }
6355: if ${lt_cv_ar_at_file+:} false; then :
6356: $as_echo_n "(cached) " >&6
6357: else
6358: lt_cv_ar_at_file=no
6359: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360: /* end confdefs.h. */
6361:
6362: int
6363: main ()
6364: {
6365:
6366: ;
6367: return 0;
6368: }
6369: _ACEOF
6370: if ac_fn_c_try_compile "$LINENO"; then :
6371: echo conftest.$ac_objext > conftest.lst
6372: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6373: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6374: (eval $lt_ar_try) 2>&5
6375: ac_status=$?
6376: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377: test $ac_status = 0; }
6378: if test "$ac_status" -eq 0; then
6379: # Ensure the archiver fails upon bogus file names.
6380: rm -f conftest.$ac_objext libconftest.a
6381: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6382: (eval $lt_ar_try) 2>&5
6383: ac_status=$?
6384: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385: test $ac_status = 0; }
6386: if test "$ac_status" -ne 0; then
6387: lt_cv_ar_at_file=@
6388: fi
6389: fi
6390: rm -f conftest.* libconftest.a
6391:
6392: fi
6393: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394:
6395: fi
6396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6397: $as_echo "$lt_cv_ar_at_file" >&6; }
6398:
6399: if test "x$lt_cv_ar_at_file" = xno; then
6400: archiver_list_spec=
6401: else
6402: archiver_list_spec=$lt_cv_ar_at_file
6403: fi
6404:
6405:
1.1 misho 6406:
6407:
6408:
6409:
6410:
6411: if test -n "$ac_tool_prefix"; then
6412: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6413: set dummy ${ac_tool_prefix}strip; ac_word=$2
6414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6416: if ${ac_cv_prog_STRIP+:} false; then :
1.1 misho 6417: $as_echo_n "(cached) " >&6
6418: else
6419: if test -n "$STRIP"; then
6420: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6421: else
6422: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423: for as_dir in $PATH
6424: do
6425: IFS=$as_save_IFS
6426: test -z "$as_dir" && as_dir=.
6427: for ac_exec_ext in '' $ac_executable_extensions; do
6428: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6430: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431: break 2
6432: fi
6433: done
6434: done
6435: IFS=$as_save_IFS
6436:
6437: fi
6438: fi
6439: STRIP=$ac_cv_prog_STRIP
6440: if test -n "$STRIP"; then
6441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6442: $as_echo "$STRIP" >&6; }
6443: else
6444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445: $as_echo "no" >&6; }
6446: fi
6447:
6448:
6449: fi
6450: if test -z "$ac_cv_prog_STRIP"; then
6451: ac_ct_STRIP=$STRIP
6452: # Extract the first word of "strip", so it can be a program name with args.
6453: set dummy strip; ac_word=$2
6454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6456: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.1 misho 6457: $as_echo_n "(cached) " >&6
6458: else
6459: if test -n "$ac_ct_STRIP"; then
6460: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6461: else
6462: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463: for as_dir in $PATH
6464: do
6465: IFS=$as_save_IFS
6466: test -z "$as_dir" && as_dir=.
6467: for ac_exec_ext in '' $ac_executable_extensions; do
6468: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469: ac_cv_prog_ac_ct_STRIP="strip"
6470: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471: break 2
6472: fi
6473: done
6474: done
6475: IFS=$as_save_IFS
6476:
6477: fi
6478: fi
6479: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6480: if test -n "$ac_ct_STRIP"; then
6481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6482: $as_echo "$ac_ct_STRIP" >&6; }
6483: else
6484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485: $as_echo "no" >&6; }
6486: fi
6487:
6488: if test "x$ac_ct_STRIP" = x; then
6489: STRIP=":"
6490: else
6491: case $cross_compiling:$ac_tool_warned in
6492: yes:)
6493: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495: ac_tool_warned=yes ;;
6496: esac
6497: STRIP=$ac_ct_STRIP
6498: fi
6499: else
6500: STRIP="$ac_cv_prog_STRIP"
6501: fi
6502:
6503: test -z "$STRIP" && STRIP=:
6504:
6505:
6506:
6507:
6508:
6509:
6510: if test -n "$ac_tool_prefix"; then
6511: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6512: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6515: if ${ac_cv_prog_RANLIB+:} false; then :
1.1 misho 6516: $as_echo_n "(cached) " >&6
6517: else
6518: if test -n "$RANLIB"; then
6519: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6520: else
6521: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522: for as_dir in $PATH
6523: do
6524: IFS=$as_save_IFS
6525: test -z "$as_dir" && as_dir=.
6526: for ac_exec_ext in '' $ac_executable_extensions; do
6527: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6529: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530: break 2
6531: fi
6532: done
6533: done
6534: IFS=$as_save_IFS
6535:
6536: fi
6537: fi
6538: RANLIB=$ac_cv_prog_RANLIB
6539: if test -n "$RANLIB"; then
6540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6541: $as_echo "$RANLIB" >&6; }
6542: else
6543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544: $as_echo "no" >&6; }
6545: fi
6546:
6547:
6548: fi
6549: if test -z "$ac_cv_prog_RANLIB"; then
6550: ac_ct_RANLIB=$RANLIB
6551: # Extract the first word of "ranlib", so it can be a program name with args.
6552: set dummy ranlib; ac_word=$2
6553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6555: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.1 misho 6556: $as_echo_n "(cached) " >&6
6557: else
6558: if test -n "$ac_ct_RANLIB"; then
6559: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6560: else
6561: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562: for as_dir in $PATH
6563: do
6564: IFS=$as_save_IFS
6565: test -z "$as_dir" && as_dir=.
6566: for ac_exec_ext in '' $ac_executable_extensions; do
6567: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568: ac_cv_prog_ac_ct_RANLIB="ranlib"
6569: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570: break 2
6571: fi
6572: done
6573: done
6574: IFS=$as_save_IFS
6575:
6576: fi
6577: fi
6578: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6579: if test -n "$ac_ct_RANLIB"; then
6580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6581: $as_echo "$ac_ct_RANLIB" >&6; }
6582: else
6583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584: $as_echo "no" >&6; }
6585: fi
6586:
6587: if test "x$ac_ct_RANLIB" = x; then
6588: RANLIB=":"
6589: else
6590: case $cross_compiling:$ac_tool_warned in
6591: yes:)
6592: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594: ac_tool_warned=yes ;;
6595: esac
6596: RANLIB=$ac_ct_RANLIB
6597: fi
6598: else
6599: RANLIB="$ac_cv_prog_RANLIB"
6600: fi
6601:
6602: test -z "$RANLIB" && RANLIB=:
6603:
6604:
6605:
6606:
6607:
6608:
6609: # Determine commands to create old-style static archives.
6610: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6611: old_postinstall_cmds='chmod 644 $oldlib'
6612: old_postuninstall_cmds=
6613:
6614: if test -n "$RANLIB"; then
6615: case $host_os in
6616: openbsd*)
6617: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6618: ;;
6619: *)
6620: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6621: ;;
6622: esac
6623: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6624: fi
6625:
6626: case $host_os in
6627: darwin*)
6628: lock_old_archive_extraction=yes ;;
6629: *)
6630: lock_old_archive_extraction=no ;;
6631: esac
6632:
6633:
6634:
6635:
6636:
6637:
6638:
6639:
6640:
6641:
6642:
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651:
6652:
6653:
6654:
6655:
6656:
6657:
6658:
6659:
6660:
6661:
6662:
6663:
6664:
6665:
6666:
6667:
6668:
6669:
6670:
6671: # If no C compiler was specified, use CC.
6672: LTCC=${LTCC-"$CC"}
6673:
6674: # If no C compiler flags were specified, use CFLAGS.
6675: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6676:
6677: # Allow CC to be a program name with arguments.
6678: compiler=$CC
6679:
6680:
6681: # Check for command to grab the raw symbol name followed by C symbol from nm.
6682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6683: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
1.1.1.2 misho 6684: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
1.1 misho 6685: $as_echo_n "(cached) " >&6
6686: else
6687:
6688: # These are sane defaults that work on at least a few old systems.
6689: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6690:
6691: # Character class describing NM global symbol codes.
6692: symcode='[BCDEGRST]'
6693:
6694: # Regexp to match symbols that can be accessed directly from C.
6695: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6696:
6697: # Define system-specific variables.
6698: case $host_os in
6699: aix*)
6700: symcode='[BCDT]'
6701: ;;
6702: cygwin* | mingw* | pw32* | cegcc*)
6703: symcode='[ABCDGISTW]'
6704: ;;
6705: hpux*)
6706: if test "$host_cpu" = ia64; then
6707: symcode='[ABCDEGRST]'
6708: fi
6709: ;;
6710: irix* | nonstopux*)
6711: symcode='[BCDEGRST]'
6712: ;;
6713: osf*)
6714: symcode='[BCDEGQRST]'
6715: ;;
6716: solaris*)
6717: symcode='[BDRT]'
6718: ;;
6719: sco3.2v5*)
6720: symcode='[DT]'
6721: ;;
6722: sysv4.2uw2*)
6723: symcode='[DT]'
6724: ;;
6725: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6726: symcode='[ABDT]'
6727: ;;
6728: sysv4)
6729: symcode='[DFNSTU]'
6730: ;;
6731: esac
6732:
6733: # If we're using GNU nm, then use its standard symbol codes.
6734: case `$NM -V 2>&1` in
6735: *GNU* | *'with BFD'*)
6736: symcode='[ABCDGIRSTW]' ;;
6737: esac
6738:
6739: # Transform an extracted symbol line into a proper C declaration.
6740: # Some systems (esp. on ia64) link data and code symbols differently,
6741: # so use this general approach.
6742: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6743:
6744: # Transform an extracted symbol line into symbol name and symbol address
1.1.1.2 misho 6745: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6746: 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 6747:
6748: # Handle CRLF in mingw tool chain
6749: opt_cr=
6750: case $build_os in
6751: mingw*)
6752: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6753: ;;
6754: esac
6755:
6756: # Try without a prefix underscore, then with it.
6757: for ac_symprfx in "" "_"; do
6758:
6759: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6760: symxfrm="\\1 $ac_symprfx\\2 \\2"
6761:
6762: # Write the raw and C identifiers.
6763: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6764: # Fake it for dumpbin and say T for any non-static function
6765: # and D for any global variable.
6766: # Also find C++ and __fastcall symbols from MSVC++,
6767: # which start with @ or ?.
6768: lt_cv_sys_global_symbol_pipe="$AWK '"\
6769: " {last_section=section; section=\$ 3};"\
6770: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6771: " \$ 0!~/External *\|/{next};"\
6772: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6773: " {if(hide[section]) next};"\
6774: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6775: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6776: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6777: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6778: " ' prfx=^$ac_symprfx"
6779: else
6780: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6781: fi
1.1.1.2 misho 6782: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.1 misho 6783:
6784: # Check to see that the pipe works correctly.
6785: pipe_works=no
6786:
6787: rm -f conftest*
6788: cat > conftest.$ac_ext <<_LT_EOF
6789: #ifdef __cplusplus
6790: extern "C" {
6791: #endif
6792: char nm_test_var;
6793: void nm_test_func(void);
6794: void nm_test_func(void){}
6795: #ifdef __cplusplus
6796: }
6797: #endif
6798: int main(){nm_test_var='a';nm_test_func();return(0);}
6799: _LT_EOF
6800:
6801: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6802: (eval $ac_compile) 2>&5
6803: ac_status=$?
6804: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805: test $ac_status = 0; }; then
6806: # Now try to grab the symbols.
6807: nlist=conftest.nm
6808: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6809: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6810: ac_status=$?
6811: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812: test $ac_status = 0; } && test -s "$nlist"; then
6813: # Try sorting and uniquifying the output.
6814: if sort "$nlist" | uniq > "$nlist"T; then
6815: mv -f "$nlist"T "$nlist"
6816: else
6817: rm -f "$nlist"T
6818: fi
6819:
6820: # Make sure that we snagged all the symbols we need.
6821: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6822: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6823: cat <<_LT_EOF > conftest.$ac_ext
1.1.1.2 misho 6824: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6825: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6826: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6827: relocations are performed -- see ld's documentation on pseudo-relocs. */
6828: # define LT_DLSYM_CONST
6829: #elif defined(__osf__)
6830: /* This system does not cope well with relocations in const data. */
6831: # define LT_DLSYM_CONST
6832: #else
6833: # define LT_DLSYM_CONST const
6834: #endif
6835:
1.1 misho 6836: #ifdef __cplusplus
6837: extern "C" {
6838: #endif
6839:
6840: _LT_EOF
6841: # Now generate the symbol file.
6842: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6843:
6844: cat <<_LT_EOF >> conftest.$ac_ext
6845:
6846: /* The mapping between symbol names and symbols. */
1.1.1.2 misho 6847: LT_DLSYM_CONST struct {
1.1 misho 6848: const char *name;
6849: void *address;
6850: }
6851: lt__PROGRAM__LTX_preloaded_symbols[] =
6852: {
6853: { "@PROGRAM@", (void *) 0 },
6854: _LT_EOF
6855: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6856: cat <<\_LT_EOF >> conftest.$ac_ext
6857: {0, (void *) 0}
6858: };
6859:
6860: /* This works around a problem in FreeBSD linker */
6861: #ifdef FREEBSD_WORKAROUND
6862: static const void *lt_preloaded_setup() {
6863: return lt__PROGRAM__LTX_preloaded_symbols;
6864: }
6865: #endif
6866:
6867: #ifdef __cplusplus
6868: }
6869: #endif
6870: _LT_EOF
6871: # Now try linking the two files.
6872: mv conftest.$ac_objext conftstm.$ac_objext
1.1.1.2 misho 6873: lt_globsym_save_LIBS=$LIBS
6874: lt_globsym_save_CFLAGS=$CFLAGS
1.1 misho 6875: LIBS="conftstm.$ac_objext"
6876: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6877: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6878: (eval $ac_link) 2>&5
6879: ac_status=$?
6880: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6881: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6882: pipe_works=yes
6883: fi
1.1.1.2 misho 6884: LIBS=$lt_globsym_save_LIBS
6885: CFLAGS=$lt_globsym_save_CFLAGS
1.1 misho 6886: else
6887: echo "cannot find nm_test_func in $nlist" >&5
6888: fi
6889: else
6890: echo "cannot find nm_test_var in $nlist" >&5
6891: fi
6892: else
6893: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6894: fi
6895: else
6896: echo "$progname: failed program was:" >&5
6897: cat conftest.$ac_ext >&5
6898: fi
6899: rm -rf conftest* conftst*
6900:
6901: # Do not use the global_symbol_pipe unless it works.
6902: if test "$pipe_works" = yes; then
6903: break
6904: else
6905: lt_cv_sys_global_symbol_pipe=
6906: fi
6907: done
6908:
6909: fi
6910:
6911: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6912: lt_cv_sys_global_symbol_to_cdecl=
6913: fi
6914: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6916: $as_echo "failed" >&6; }
6917: else
6918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6919: $as_echo "ok" >&6; }
6920: fi
6921:
1.1.1.2 misho 6922: # Response file support.
6923: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6924: nm_file_list_spec='@'
6925: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6926: nm_file_list_spec='@'
6927: fi
6928:
6929:
6930:
6931:
6932:
6933:
6934:
6935:
6936:
6937:
6938:
6939:
1.1 misho 6940:
6941:
6942:
6943:
6944:
6945:
6946:
6947:
6948:
6949:
6950:
6951:
6952:
6953:
6954:
1.1.1.2 misho 6955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6956: $as_echo_n "checking for sysroot... " >&6; }
1.1 misho 6957:
1.1.1.2 misho 6958: # Check whether --with-sysroot was given.
6959: if test "${with_sysroot+set}" = set; then :
6960: withval=$with_sysroot;
6961: else
6962: with_sysroot=no
6963: fi
6964:
6965:
6966: lt_sysroot=
6967: case ${with_sysroot} in #(
6968: yes)
6969: if test "$GCC" = yes; then
6970: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6971: fi
6972: ;; #(
6973: /*)
6974: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6975: ;; #(
6976: no|'')
6977: ;; #(
6978: *)
6979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6980: $as_echo "${with_sysroot}" >&6; }
6981: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6982: ;;
6983: esac
6984:
6985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6986: $as_echo "${lt_sysroot:-no}" >&6; }
1.1 misho 6987:
6988:
6989:
6990:
6991:
6992: # Check whether --enable-libtool-lock was given.
6993: if test "${enable_libtool_lock+set}" = set; then :
6994: enableval=$enable_libtool_lock;
6995: fi
6996:
6997: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6998:
6999: # Some flags need to be propagated to the compiler or linker for good
7000: # libtool support.
7001: case $host in
7002: ia64-*-hpux*)
7003: # Find out which ABI we are using.
7004: echo 'int i;' > conftest.$ac_ext
7005: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7006: (eval $ac_compile) 2>&5
7007: ac_status=$?
7008: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009: test $ac_status = 0; }; then
7010: case `/usr/bin/file conftest.$ac_objext` in
7011: *ELF-32*)
7012: HPUX_IA64_MODE="32"
7013: ;;
7014: *ELF-64*)
7015: HPUX_IA64_MODE="64"
7016: ;;
7017: esac
7018: fi
7019: rm -rf conftest*
7020: ;;
7021: *-*-irix6*)
7022: # Find out which ABI we are using.
7023: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7024: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025: (eval $ac_compile) 2>&5
7026: ac_status=$?
7027: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028: test $ac_status = 0; }; then
7029: if test "$lt_cv_prog_gnu_ld" = yes; then
7030: case `/usr/bin/file conftest.$ac_objext` in
7031: *32-bit*)
7032: LD="${LD-ld} -melf32bsmip"
7033: ;;
7034: *N32*)
7035: LD="${LD-ld} -melf32bmipn32"
7036: ;;
7037: *64-bit*)
7038: LD="${LD-ld} -melf64bmip"
7039: ;;
7040: esac
7041: else
7042: case `/usr/bin/file conftest.$ac_objext` in
7043: *32-bit*)
7044: LD="${LD-ld} -32"
7045: ;;
7046: *N32*)
7047: LD="${LD-ld} -n32"
7048: ;;
7049: *64-bit*)
7050: LD="${LD-ld} -64"
7051: ;;
7052: esac
7053: fi
7054: fi
7055: rm -rf conftest*
7056: ;;
7057:
7058: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7059: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7060: # Find out which ABI we are using.
7061: echo 'int i;' > conftest.$ac_ext
7062: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7063: (eval $ac_compile) 2>&5
7064: ac_status=$?
7065: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7066: test $ac_status = 0; }; then
7067: case `/usr/bin/file conftest.o` in
7068: *32-bit*)
7069: case $host in
7070: x86_64-*kfreebsd*-gnu)
7071: LD="${LD-ld} -m elf_i386_fbsd"
7072: ;;
7073: x86_64-*linux*)
7074: LD="${LD-ld} -m elf_i386"
7075: ;;
7076: ppc64-*linux*|powerpc64-*linux*)
7077: LD="${LD-ld} -m elf32ppclinux"
7078: ;;
7079: s390x-*linux*)
7080: LD="${LD-ld} -m elf_s390"
7081: ;;
7082: sparc64-*linux*)
7083: LD="${LD-ld} -m elf32_sparc"
7084: ;;
7085: esac
7086: ;;
7087: *64-bit*)
7088: case $host in
7089: x86_64-*kfreebsd*-gnu)
7090: LD="${LD-ld} -m elf_x86_64_fbsd"
7091: ;;
7092: x86_64-*linux*)
7093: LD="${LD-ld} -m elf_x86_64"
7094: ;;
7095: ppc*-*linux*|powerpc*-*linux*)
7096: LD="${LD-ld} -m elf64ppc"
7097: ;;
7098: s390*-*linux*|s390*-*tpf*)
7099: LD="${LD-ld} -m elf64_s390"
7100: ;;
7101: sparc*-*linux*)
7102: LD="${LD-ld} -m elf64_sparc"
7103: ;;
7104: esac
7105: ;;
7106: esac
7107: fi
7108: rm -rf conftest*
7109: ;;
7110:
7111: *-*-sco3.2v5*)
7112: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7113: SAVE_CFLAGS="$CFLAGS"
7114: CFLAGS="$CFLAGS -belf"
7115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7116: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
1.1.1.2 misho 7117: if ${lt_cv_cc_needs_belf+:} false; then :
1.1 misho 7118: $as_echo_n "(cached) " >&6
7119: else
7120: ac_ext=c
7121: ac_cpp='$CPP $CPPFLAGS'
7122: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125:
7126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127: /* end confdefs.h. */
7128:
7129: int
7130: main ()
7131: {
7132:
7133: ;
7134: return 0;
7135: }
7136: _ACEOF
7137: if ac_fn_c_try_link "$LINENO"; then :
7138: lt_cv_cc_needs_belf=yes
7139: else
7140: lt_cv_cc_needs_belf=no
7141: fi
7142: rm -f core conftest.err conftest.$ac_objext \
7143: conftest$ac_exeext conftest.$ac_ext
7144: ac_ext=c
7145: ac_cpp='$CPP $CPPFLAGS'
7146: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149:
7150: fi
7151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7152: $as_echo "$lt_cv_cc_needs_belf" >&6; }
7153: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7154: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7155: CFLAGS="$SAVE_CFLAGS"
7156: fi
7157: ;;
7158: sparc*-*solaris*)
7159: # Find out which ABI we are using.
7160: echo 'int i;' > conftest.$ac_ext
7161: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162: (eval $ac_compile) 2>&5
7163: ac_status=$?
7164: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165: test $ac_status = 0; }; then
7166: case `/usr/bin/file conftest.o` in
7167: *64-bit*)
7168: case $lt_cv_prog_gnu_ld in
7169: yes*) LD="${LD-ld} -m elf64_sparc" ;;
7170: *)
7171: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7172: LD="${LD-ld} -64"
7173: fi
7174: ;;
7175: esac
7176: ;;
7177: esac
7178: fi
7179: rm -rf conftest*
7180: ;;
7181: esac
7182:
7183: need_locks="$enable_libtool_lock"
7184:
1.1.1.2 misho 7185: if test -n "$ac_tool_prefix"; then
7186: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7187: set dummy ${ac_tool_prefix}mt; ac_word=$2
7188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189: $as_echo_n "checking for $ac_word... " >&6; }
7190: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7191: $as_echo_n "(cached) " >&6
7192: else
7193: if test -n "$MANIFEST_TOOL"; then
7194: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7195: else
7196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197: for as_dir in $PATH
7198: do
7199: IFS=$as_save_IFS
7200: test -z "$as_dir" && as_dir=.
7201: for ac_exec_ext in '' $ac_executable_extensions; do
7202: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7204: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205: break 2
7206: fi
7207: done
7208: done
7209: IFS=$as_save_IFS
7210:
7211: fi
7212: fi
7213: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7214: if test -n "$MANIFEST_TOOL"; then
7215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7216: $as_echo "$MANIFEST_TOOL" >&6; }
7217: else
7218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219: $as_echo "no" >&6; }
7220: fi
7221:
7222:
7223: fi
7224: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7225: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7226: # Extract the first word of "mt", so it can be a program name with args.
7227: set dummy mt; ac_word=$2
7228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229: $as_echo_n "checking for $ac_word... " >&6; }
7230: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7231: $as_echo_n "(cached) " >&6
7232: else
7233: if test -n "$ac_ct_MANIFEST_TOOL"; then
7234: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7235: else
7236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237: for as_dir in $PATH
7238: do
7239: IFS=$as_save_IFS
7240: test -z "$as_dir" && as_dir=.
7241: for ac_exec_ext in '' $ac_executable_extensions; do
7242: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7244: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245: break 2
7246: fi
7247: done
7248: done
7249: IFS=$as_save_IFS
7250:
7251: fi
7252: fi
7253: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7254: if test -n "$ac_ct_MANIFEST_TOOL"; then
7255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7256: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7257: else
7258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259: $as_echo "no" >&6; }
7260: fi
7261:
7262: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7263: MANIFEST_TOOL=":"
7264: else
7265: case $cross_compiling:$ac_tool_warned in
7266: yes:)
7267: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269: ac_tool_warned=yes ;;
7270: esac
7271: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7272: fi
7273: else
7274: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7275: fi
7276:
7277: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7279: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7280: if ${lt_cv_path_mainfest_tool+:} false; then :
7281: $as_echo_n "(cached) " >&6
7282: else
7283: lt_cv_path_mainfest_tool=no
7284: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7285: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7286: cat conftest.err >&5
7287: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7288: lt_cv_path_mainfest_tool=yes
7289: fi
7290: rm -f conftest*
7291: fi
7292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7293: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7294: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7295: MANIFEST_TOOL=:
7296: fi
7297:
7298:
7299:
7300:
7301:
1.1 misho 7302:
7303: case $host_os in
7304: rhapsody* | darwin*)
7305: if test -n "$ac_tool_prefix"; then
7306: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7307: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7310: if ${ac_cv_prog_DSYMUTIL+:} false; then :
1.1 misho 7311: $as_echo_n "(cached) " >&6
7312: else
7313: if test -n "$DSYMUTIL"; then
7314: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7315: else
7316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317: for as_dir in $PATH
7318: do
7319: IFS=$as_save_IFS
7320: test -z "$as_dir" && as_dir=.
7321: for ac_exec_ext in '' $ac_executable_extensions; do
7322: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7324: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325: break 2
7326: fi
7327: done
7328: done
7329: IFS=$as_save_IFS
7330:
7331: fi
7332: fi
7333: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7334: if test -n "$DSYMUTIL"; then
7335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7336: $as_echo "$DSYMUTIL" >&6; }
7337: else
7338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339: $as_echo "no" >&6; }
7340: fi
7341:
7342:
7343: fi
7344: if test -z "$ac_cv_prog_DSYMUTIL"; then
7345: ac_ct_DSYMUTIL=$DSYMUTIL
7346: # Extract the first word of "dsymutil", so it can be a program name with args.
7347: set dummy dsymutil; ac_word=$2
7348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7350: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
1.1 misho 7351: $as_echo_n "(cached) " >&6
7352: else
7353: if test -n "$ac_ct_DSYMUTIL"; then
7354: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7355: else
7356: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357: for as_dir in $PATH
7358: do
7359: IFS=$as_save_IFS
7360: test -z "$as_dir" && as_dir=.
7361: for ac_exec_ext in '' $ac_executable_extensions; do
7362: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7364: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365: break 2
7366: fi
7367: done
7368: done
7369: IFS=$as_save_IFS
7370:
7371: fi
7372: fi
7373: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7374: if test -n "$ac_ct_DSYMUTIL"; then
7375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7376: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7377: else
7378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379: $as_echo "no" >&6; }
7380: fi
7381:
7382: if test "x$ac_ct_DSYMUTIL" = x; then
7383: DSYMUTIL=":"
7384: else
7385: case $cross_compiling:$ac_tool_warned in
7386: yes:)
7387: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389: ac_tool_warned=yes ;;
7390: esac
7391: DSYMUTIL=$ac_ct_DSYMUTIL
7392: fi
7393: else
7394: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7395: fi
7396:
7397: if test -n "$ac_tool_prefix"; then
7398: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7399: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7402: if ${ac_cv_prog_NMEDIT+:} false; then :
1.1 misho 7403: $as_echo_n "(cached) " >&6
7404: else
7405: if test -n "$NMEDIT"; then
7406: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7407: else
7408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409: for as_dir in $PATH
7410: do
7411: IFS=$as_save_IFS
7412: test -z "$as_dir" && as_dir=.
7413: for ac_exec_ext in '' $ac_executable_extensions; do
7414: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7415: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7416: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417: break 2
7418: fi
7419: done
7420: done
7421: IFS=$as_save_IFS
7422:
7423: fi
7424: fi
7425: NMEDIT=$ac_cv_prog_NMEDIT
7426: if test -n "$NMEDIT"; then
7427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7428: $as_echo "$NMEDIT" >&6; }
7429: else
7430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431: $as_echo "no" >&6; }
7432: fi
7433:
7434:
7435: fi
7436: if test -z "$ac_cv_prog_NMEDIT"; then
7437: ac_ct_NMEDIT=$NMEDIT
7438: # Extract the first word of "nmedit", so it can be a program name with args.
7439: set dummy nmedit; ac_word=$2
7440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7442: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
1.1 misho 7443: $as_echo_n "(cached) " >&6
7444: else
7445: if test -n "$ac_ct_NMEDIT"; then
7446: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7447: else
7448: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449: for as_dir in $PATH
7450: do
7451: IFS=$as_save_IFS
7452: test -z "$as_dir" && as_dir=.
7453: for ac_exec_ext in '' $ac_executable_extensions; do
7454: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7455: ac_cv_prog_ac_ct_NMEDIT="nmedit"
7456: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457: break 2
7458: fi
7459: done
7460: done
7461: IFS=$as_save_IFS
7462:
7463: fi
7464: fi
7465: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7466: if test -n "$ac_ct_NMEDIT"; then
7467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7468: $as_echo "$ac_ct_NMEDIT" >&6; }
7469: else
7470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471: $as_echo "no" >&6; }
7472: fi
7473:
7474: if test "x$ac_ct_NMEDIT" = x; then
7475: NMEDIT=":"
7476: else
7477: case $cross_compiling:$ac_tool_warned in
7478: yes:)
7479: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481: ac_tool_warned=yes ;;
7482: esac
7483: NMEDIT=$ac_ct_NMEDIT
7484: fi
7485: else
7486: NMEDIT="$ac_cv_prog_NMEDIT"
7487: fi
7488:
7489: if test -n "$ac_tool_prefix"; then
7490: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7491: set dummy ${ac_tool_prefix}lipo; ac_word=$2
7492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7494: if ${ac_cv_prog_LIPO+:} false; then :
1.1 misho 7495: $as_echo_n "(cached) " >&6
7496: else
7497: if test -n "$LIPO"; then
7498: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7499: else
7500: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501: for as_dir in $PATH
7502: do
7503: IFS=$as_save_IFS
7504: test -z "$as_dir" && as_dir=.
7505: for ac_exec_ext in '' $ac_executable_extensions; do
7506: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7508: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509: break 2
7510: fi
7511: done
7512: done
7513: IFS=$as_save_IFS
7514:
7515: fi
7516: fi
7517: LIPO=$ac_cv_prog_LIPO
7518: if test -n "$LIPO"; then
7519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7520: $as_echo "$LIPO" >&6; }
7521: else
7522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523: $as_echo "no" >&6; }
7524: fi
7525:
7526:
7527: fi
7528: if test -z "$ac_cv_prog_LIPO"; then
7529: ac_ct_LIPO=$LIPO
7530: # Extract the first word of "lipo", so it can be a program name with args.
7531: set dummy lipo; ac_word=$2
7532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7534: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
1.1 misho 7535: $as_echo_n "(cached) " >&6
7536: else
7537: if test -n "$ac_ct_LIPO"; then
7538: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7539: else
7540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541: for as_dir in $PATH
7542: do
7543: IFS=$as_save_IFS
7544: test -z "$as_dir" && as_dir=.
7545: for ac_exec_ext in '' $ac_executable_extensions; do
7546: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547: ac_cv_prog_ac_ct_LIPO="lipo"
7548: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549: break 2
7550: fi
7551: done
7552: done
7553: IFS=$as_save_IFS
7554:
7555: fi
7556: fi
7557: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7558: if test -n "$ac_ct_LIPO"; then
7559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7560: $as_echo "$ac_ct_LIPO" >&6; }
7561: else
7562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563: $as_echo "no" >&6; }
7564: fi
7565:
7566: if test "x$ac_ct_LIPO" = x; then
7567: LIPO=":"
7568: else
7569: case $cross_compiling:$ac_tool_warned in
7570: yes:)
7571: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7572: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7573: ac_tool_warned=yes ;;
7574: esac
7575: LIPO=$ac_ct_LIPO
7576: fi
7577: else
7578: LIPO="$ac_cv_prog_LIPO"
7579: fi
7580:
7581: if test -n "$ac_tool_prefix"; then
7582: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7583: set dummy ${ac_tool_prefix}otool; ac_word=$2
7584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7586: if ${ac_cv_prog_OTOOL+:} false; then :
1.1 misho 7587: $as_echo_n "(cached) " >&6
7588: else
7589: if test -n "$OTOOL"; then
7590: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7591: else
7592: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593: for as_dir in $PATH
7594: do
7595: IFS=$as_save_IFS
7596: test -z "$as_dir" && as_dir=.
7597: for ac_exec_ext in '' $ac_executable_extensions; do
7598: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7600: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601: break 2
7602: fi
7603: done
7604: done
7605: IFS=$as_save_IFS
7606:
7607: fi
7608: fi
7609: OTOOL=$ac_cv_prog_OTOOL
7610: if test -n "$OTOOL"; then
7611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7612: $as_echo "$OTOOL" >&6; }
7613: else
7614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615: $as_echo "no" >&6; }
7616: fi
7617:
7618:
7619: fi
7620: if test -z "$ac_cv_prog_OTOOL"; then
7621: ac_ct_OTOOL=$OTOOL
7622: # Extract the first word of "otool", so it can be a program name with args.
7623: set dummy otool; ac_word=$2
7624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7626: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
1.1 misho 7627: $as_echo_n "(cached) " >&6
7628: else
7629: if test -n "$ac_ct_OTOOL"; then
7630: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7631: else
7632: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633: for as_dir in $PATH
7634: do
7635: IFS=$as_save_IFS
7636: test -z "$as_dir" && as_dir=.
7637: for ac_exec_ext in '' $ac_executable_extensions; do
7638: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639: ac_cv_prog_ac_ct_OTOOL="otool"
7640: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641: break 2
7642: fi
7643: done
7644: done
7645: IFS=$as_save_IFS
7646:
7647: fi
7648: fi
7649: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7650: if test -n "$ac_ct_OTOOL"; then
7651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7652: $as_echo "$ac_ct_OTOOL" >&6; }
7653: else
7654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655: $as_echo "no" >&6; }
7656: fi
7657:
7658: if test "x$ac_ct_OTOOL" = x; then
7659: OTOOL=":"
7660: else
7661: case $cross_compiling:$ac_tool_warned in
7662: yes:)
7663: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7664: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665: ac_tool_warned=yes ;;
7666: esac
7667: OTOOL=$ac_ct_OTOOL
7668: fi
7669: else
7670: OTOOL="$ac_cv_prog_OTOOL"
7671: fi
7672:
7673: if test -n "$ac_tool_prefix"; then
7674: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7675: set dummy ${ac_tool_prefix}otool64; ac_word=$2
7676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7678: if ${ac_cv_prog_OTOOL64+:} false; then :
1.1 misho 7679: $as_echo_n "(cached) " >&6
7680: else
7681: if test -n "$OTOOL64"; then
7682: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7683: else
7684: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685: for as_dir in $PATH
7686: do
7687: IFS=$as_save_IFS
7688: test -z "$as_dir" && as_dir=.
7689: for ac_exec_ext in '' $ac_executable_extensions; do
7690: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7692: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693: break 2
7694: fi
7695: done
7696: done
7697: IFS=$as_save_IFS
7698:
7699: fi
7700: fi
7701: OTOOL64=$ac_cv_prog_OTOOL64
7702: if test -n "$OTOOL64"; then
7703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7704: $as_echo "$OTOOL64" >&6; }
7705: else
7706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707: $as_echo "no" >&6; }
7708: fi
7709:
7710:
7711: fi
7712: if test -z "$ac_cv_prog_OTOOL64"; then
7713: ac_ct_OTOOL64=$OTOOL64
7714: # Extract the first word of "otool64", so it can be a program name with args.
7715: set dummy otool64; ac_word=$2
7716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7718: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
1.1 misho 7719: $as_echo_n "(cached) " >&6
7720: else
7721: if test -n "$ac_ct_OTOOL64"; then
7722: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7723: else
7724: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725: for as_dir in $PATH
7726: do
7727: IFS=$as_save_IFS
7728: test -z "$as_dir" && as_dir=.
7729: for ac_exec_ext in '' $ac_executable_extensions; do
7730: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731: ac_cv_prog_ac_ct_OTOOL64="otool64"
7732: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733: break 2
7734: fi
7735: done
7736: done
7737: IFS=$as_save_IFS
7738:
7739: fi
7740: fi
7741: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7742: if test -n "$ac_ct_OTOOL64"; then
7743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7744: $as_echo "$ac_ct_OTOOL64" >&6; }
7745: else
7746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747: $as_echo "no" >&6; }
7748: fi
7749:
7750: if test "x$ac_ct_OTOOL64" = x; then
7751: OTOOL64=":"
7752: else
7753: case $cross_compiling:$ac_tool_warned in
7754: yes:)
7755: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7756: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757: ac_tool_warned=yes ;;
7758: esac
7759: OTOOL64=$ac_ct_OTOOL64
7760: fi
7761: else
7762: OTOOL64="$ac_cv_prog_OTOOL64"
7763: fi
7764:
7765:
7766:
7767:
7768:
7769:
7770:
7771:
7772:
7773:
7774:
7775:
7776:
7777:
7778:
7779:
7780:
7781:
7782:
7783:
7784:
7785:
7786:
7787:
7788:
7789:
7790:
7791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7792: $as_echo_n "checking for -single_module linker flag... " >&6; }
1.1.1.2 misho 7793: if ${lt_cv_apple_cc_single_mod+:} false; then :
1.1 misho 7794: $as_echo_n "(cached) " >&6
7795: else
7796: lt_cv_apple_cc_single_mod=no
7797: if test -z "${LT_MULTI_MODULE}"; then
7798: # By default we will add the -single_module flag. You can override
7799: # by either setting the environment variable LT_MULTI_MODULE
7800: # non-empty at configure time, or by adding -multi_module to the
7801: # link flags.
7802: rm -rf libconftest.dylib*
7803: echo "int foo(void){return 1;}" > conftest.c
7804: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7805: -dynamiclib -Wl,-single_module conftest.c" >&5
7806: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7807: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7808: _lt_result=$?
7809: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7810: lt_cv_apple_cc_single_mod=yes
7811: else
7812: cat conftest.err >&5
7813: fi
7814: rm -rf libconftest.dylib*
7815: rm -f conftest.*
7816: fi
7817: fi
7818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7819: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7821: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
1.1.1.2 misho 7822: if ${lt_cv_ld_exported_symbols_list+:} false; then :
1.1 misho 7823: $as_echo_n "(cached) " >&6
7824: else
7825: lt_cv_ld_exported_symbols_list=no
7826: save_LDFLAGS=$LDFLAGS
7827: echo "_main" > conftest.sym
7828: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7829: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830: /* end confdefs.h. */
7831:
7832: int
7833: main ()
7834: {
7835:
7836: ;
7837: return 0;
7838: }
7839: _ACEOF
7840: if ac_fn_c_try_link "$LINENO"; then :
7841: lt_cv_ld_exported_symbols_list=yes
7842: else
7843: lt_cv_ld_exported_symbols_list=no
7844: fi
7845: rm -f core conftest.err conftest.$ac_objext \
7846: conftest$ac_exeext conftest.$ac_ext
7847: LDFLAGS="$save_LDFLAGS"
7848:
7849: fi
7850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7851: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7853: $as_echo_n "checking for -force_load linker flag... " >&6; }
1.1.1.2 misho 7854: if ${lt_cv_ld_force_load+:} false; then :
1.1 misho 7855: $as_echo_n "(cached) " >&6
7856: else
7857: lt_cv_ld_force_load=no
7858: cat > conftest.c << _LT_EOF
7859: int forced_loaded() { return 2;}
7860: _LT_EOF
7861: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7862: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7863: echo "$AR cru libconftest.a conftest.o" >&5
7864: $AR cru libconftest.a conftest.o 2>&5
7865: echo "$RANLIB libconftest.a" >&5
7866: $RANLIB libconftest.a 2>&5
7867: cat > conftest.c << _LT_EOF
7868: int main() { return 0;}
7869: _LT_EOF
7870: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7871: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7872: _lt_result=$?
7873: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7874: lt_cv_ld_force_load=yes
7875: else
7876: cat conftest.err >&5
7877: fi
7878: rm -f conftest.err libconftest.a conftest conftest.c
7879: rm -rf conftest.dSYM
7880:
7881: fi
7882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7883: $as_echo "$lt_cv_ld_force_load" >&6; }
7884: case $host_os in
7885: rhapsody* | darwin1.[012])
7886: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7887: darwin1.*)
7888: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7889: darwin*) # darwin 5.x on
7890: # if running on 10.5 or later, the deployment target defaults
7891: # to the OS version, if on x86, and 10.4, the deployment
7892: # target defaults to 10.4. Don't you love it?
7893: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7894: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7895: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7896: 10.[012]*)
7897: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7898: 10.*)
7899: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7900: esac
7901: ;;
7902: esac
7903: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7904: _lt_dar_single_mod='$single_module'
7905: fi
7906: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7907: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7908: else
7909: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7910: fi
7911: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7912: _lt_dsymutil='~$DSYMUTIL $lib || :'
7913: else
7914: _lt_dsymutil=
7915: fi
7916: ;;
7917: esac
7918:
1.1.1.2 misho 7919:
7920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7921: $as_echo_n "checking for ANSI C header files... " >&6; }
7922: if ${ac_cv_header_stdc+:} false; then :
7923: $as_echo_n "(cached) " >&6
7924: else
7925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926: /* end confdefs.h. */
7927: #include <stdlib.h>
7928: #include <stdarg.h>
7929: #include <string.h>
7930: #include <float.h>
7931:
7932: int
7933: main ()
7934: {
7935:
7936: ;
7937: return 0;
7938: }
7939: _ACEOF
7940: if ac_fn_c_try_compile "$LINENO"; then :
7941: ac_cv_header_stdc=yes
7942: else
7943: ac_cv_header_stdc=no
7944: fi
7945: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946:
7947: if test $ac_cv_header_stdc = yes; then
7948: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950: /* end confdefs.h. */
7951: #include <string.h>
7952:
7953: _ACEOF
7954: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7955: $EGREP "memchr" >/dev/null 2>&1; then :
7956:
7957: else
7958: ac_cv_header_stdc=no
7959: fi
7960: rm -f conftest*
7961:
7962: fi
7963:
7964: if test $ac_cv_header_stdc = yes; then
7965: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967: /* end confdefs.h. */
7968: #include <stdlib.h>
7969:
7970: _ACEOF
7971: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7972: $EGREP "free" >/dev/null 2>&1; then :
7973:
7974: else
7975: ac_cv_header_stdc=no
7976: fi
7977: rm -f conftest*
7978:
7979: fi
7980:
7981: if test $ac_cv_header_stdc = yes; then
7982: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7983: if test "$cross_compiling" = yes; then :
7984: :
7985: else
7986: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987: /* end confdefs.h. */
7988: #include <ctype.h>
7989: #include <stdlib.h>
7990: #if ((' ' & 0x0FF) == 0x020)
7991: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7992: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7993: #else
7994: # define ISLOWER(c) \
7995: (('a' <= (c) && (c) <= 'i') \
7996: || ('j' <= (c) && (c) <= 'r') \
7997: || ('s' <= (c) && (c) <= 'z'))
7998: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7999: #endif
8000:
8001: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8002: int
8003: main ()
8004: {
8005: int i;
8006: for (i = 0; i < 256; i++)
8007: if (XOR (islower (i), ISLOWER (i))
8008: || toupper (i) != TOUPPER (i))
8009: return 2;
8010: return 0;
8011: }
8012: _ACEOF
8013: if ac_fn_c_try_run "$LINENO"; then :
8014:
8015: else
8016: ac_cv_header_stdc=no
8017: fi
8018: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8019: conftest.$ac_objext conftest.beam conftest.$ac_ext
8020: fi
8021:
8022: fi
8023: fi
8024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8025: $as_echo "$ac_cv_header_stdc" >&6; }
8026: if test $ac_cv_header_stdc = yes; then
8027:
8028: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8029:
8030: fi
8031:
8032: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8033: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8034: inttypes.h stdint.h unistd.h
8035: do :
8036: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8037: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8038: "
8039: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8040: cat >>confdefs.h <<_ACEOF
8041: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8042: _ACEOF
8043:
8044: fi
8045:
8046: done
8047:
8048:
1.1 misho 8049: for ac_header in dlfcn.h
8050: do :
8051: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8052: "
1.1.1.2 misho 8053: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.1 misho 8054: cat >>confdefs.h <<_ACEOF
8055: #define HAVE_DLFCN_H 1
8056: _ACEOF
8057:
8058: fi
8059:
8060: done
8061:
8062:
8063:
8064:
8065:
8066: # Set options
8067:
8068:
8069:
8070: enable_dlopen=no
8071:
8072:
8073:
8074: # Check whether --enable-shared was given.
8075: if test "${enable_shared+set}" = set; then :
8076: enableval=$enable_shared; p=${PACKAGE-default}
8077: case $enableval in
8078: yes) enable_shared=yes ;;
8079: no) enable_shared=no ;;
8080: *)
8081: enable_shared=no
8082: # Look at the argument we got. We use all the common list separators.
8083: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084: for pkg in $enableval; do
8085: IFS="$lt_save_ifs"
8086: if test "X$pkg" = "X$p"; then
8087: enable_shared=yes
8088: fi
8089: done
8090: IFS="$lt_save_ifs"
8091: ;;
8092: esac
8093: else
8094: enable_shared=yes
8095: fi
8096:
8097:
8098:
8099:
8100:
8101:
8102:
8103:
8104:
8105: # Check whether --enable-static was given.
8106: if test "${enable_static+set}" = set; then :
8107: enableval=$enable_static; p=${PACKAGE-default}
8108: case $enableval in
8109: yes) enable_static=yes ;;
8110: no) enable_static=no ;;
8111: *)
8112: enable_static=no
8113: # Look at the argument we got. We use all the common list separators.
8114: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115: for pkg in $enableval; do
8116: IFS="$lt_save_ifs"
8117: if test "X$pkg" = "X$p"; then
8118: enable_static=yes
8119: fi
8120: done
8121: IFS="$lt_save_ifs"
8122: ;;
8123: esac
8124: else
8125: enable_static=yes
8126: fi
8127:
8128:
8129:
8130:
8131:
8132:
8133:
8134:
8135:
8136:
8137: # Check whether --with-pic was given.
8138: if test "${with_pic+set}" = set; then :
8139: withval=$with_pic; pic_mode="$withval"
8140: else
8141: pic_mode=default
8142: fi
8143:
8144:
8145: test -z "$pic_mode" && pic_mode=default
8146:
8147:
8148:
8149:
8150:
8151:
8152:
8153: # Check whether --enable-fast-install was given.
8154: if test "${enable_fast_install+set}" = set; then :
8155: enableval=$enable_fast_install; p=${PACKAGE-default}
8156: case $enableval in
8157: yes) enable_fast_install=yes ;;
8158: no) enable_fast_install=no ;;
8159: *)
8160: enable_fast_install=no
8161: # Look at the argument we got. We use all the common list separators.
8162: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8163: for pkg in $enableval; do
8164: IFS="$lt_save_ifs"
8165: if test "X$pkg" = "X$p"; then
8166: enable_fast_install=yes
8167: fi
8168: done
8169: IFS="$lt_save_ifs"
8170: ;;
8171: esac
8172: else
8173: enable_fast_install=yes
8174: fi
8175:
8176:
8177:
8178:
8179:
8180:
8181:
8182:
8183:
8184:
8185:
8186: # This can be used to rebuild libtool when needed
8187: LIBTOOL_DEPS="$ltmain"
8188:
8189: # Always use our own libtool.
8190: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8191:
8192:
8193:
8194:
8195:
8196:
8197:
8198:
8199:
8200:
8201:
8202:
8203:
8204:
8205:
8206:
8207:
8208:
8209:
8210:
8211:
8212:
8213:
8214:
8215:
8216:
8217: test -z "$LN_S" && LN_S="ln -s"
8218:
8219:
8220:
8221:
8222:
8223:
8224:
8225:
8226:
8227:
8228:
8229:
8230:
8231:
8232: if test -n "${ZSH_VERSION+set}" ; then
8233: setopt NO_GLOB_SUBST
8234: fi
8235:
8236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8237: $as_echo_n "checking for objdir... " >&6; }
1.1.1.2 misho 8238: if ${lt_cv_objdir+:} false; then :
1.1 misho 8239: $as_echo_n "(cached) " >&6
8240: else
8241: rm -f .libs 2>/dev/null
8242: mkdir .libs 2>/dev/null
8243: if test -d .libs; then
8244: lt_cv_objdir=.libs
8245: else
8246: # MS-DOS does not allow filenames that begin with a dot.
8247: lt_cv_objdir=_libs
8248: fi
8249: rmdir .libs 2>/dev/null
8250: fi
8251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8252: $as_echo "$lt_cv_objdir" >&6; }
8253: objdir=$lt_cv_objdir
8254:
8255:
8256:
8257:
8258:
8259: cat >>confdefs.h <<_ACEOF
8260: #define LT_OBJDIR "$lt_cv_objdir/"
8261: _ACEOF
8262:
8263:
8264:
8265:
8266: case $host_os in
8267: aix3*)
8268: # AIX sometimes has problems with the GCC collect2 program. For some
8269: # reason, if we set the COLLECT_NAMES environment variable, the problems
8270: # vanish in a puff of smoke.
8271: if test "X${COLLECT_NAMES+set}" != Xset; then
8272: COLLECT_NAMES=
8273: export COLLECT_NAMES
8274: fi
8275: ;;
8276: esac
8277:
8278: # Global variables:
8279: ofile=libtool
8280: can_build_shared=yes
8281:
8282: # All known linkers require a `.a' archive for static linking (except MSVC,
8283: # which needs '.lib').
8284: libext=a
8285:
8286: with_gnu_ld="$lt_cv_prog_gnu_ld"
8287:
8288: old_CC="$CC"
8289: old_CFLAGS="$CFLAGS"
8290:
8291: # Set sane defaults for various variables
8292: test -z "$CC" && CC=cc
8293: test -z "$LTCC" && LTCC=$CC
8294: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8295: test -z "$LD" && LD=ld
8296: test -z "$ac_objext" && ac_objext=o
8297:
8298: for cc_temp in $compiler""; do
8299: case $cc_temp in
8300: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8301: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8302: \-*) ;;
8303: *) break;;
8304: esac
8305: done
8306: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8307:
8308:
8309: # Only perform the check for file, if the check method requires it
8310: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8311: case $deplibs_check_method in
8312: file_magic*)
8313: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8315: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
1.1.1.2 misho 8316: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 8317: $as_echo_n "(cached) " >&6
8318: else
8319: case $MAGIC_CMD in
8320: [\\/*] | ?:[\\/]*)
8321: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322: ;;
8323: *)
8324: lt_save_MAGIC_CMD="$MAGIC_CMD"
8325: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327: for ac_dir in $ac_dummy; do
8328: IFS="$lt_save_ifs"
8329: test -z "$ac_dir" && ac_dir=.
8330: if test -f $ac_dir/${ac_tool_prefix}file; then
8331: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8332: if test -n "$file_magic_test_file"; then
8333: case $deplibs_check_method in
8334: "file_magic "*)
8335: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338: $EGREP "$file_magic_regex" > /dev/null; then
8339: :
8340: else
8341: cat <<_LT_EOF 1>&2
8342:
8343: *** Warning: the command libtool uses to detect shared libraries,
8344: *** $file_magic_cmd, produces output that libtool cannot recognize.
8345: *** The result is that libtool may fail to recognize shared libraries
8346: *** as such. This will affect the creation of libtool libraries that
8347: *** depend on shared libraries, but programs linked with such libtool
8348: *** libraries will work regardless of this problem. Nevertheless, you
8349: *** may want to report the problem to your system manager and/or to
8350: *** bug-libtool@gnu.org
8351:
8352: _LT_EOF
8353: fi ;;
8354: esac
8355: fi
8356: break
8357: fi
8358: done
8359: IFS="$lt_save_ifs"
8360: MAGIC_CMD="$lt_save_MAGIC_CMD"
8361: ;;
8362: esac
8363: fi
8364:
8365: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366: if test -n "$MAGIC_CMD"; then
8367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8368: $as_echo "$MAGIC_CMD" >&6; }
8369: else
8370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371: $as_echo "no" >&6; }
8372: fi
8373:
8374:
8375:
8376:
8377:
8378: if test -z "$lt_cv_path_MAGIC_CMD"; then
8379: if test -n "$ac_tool_prefix"; then
8380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8381: $as_echo_n "checking for file... " >&6; }
1.1.1.2 misho 8382: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 8383: $as_echo_n "(cached) " >&6
8384: else
8385: case $MAGIC_CMD in
8386: [\\/*] | ?:[\\/]*)
8387: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8388: ;;
8389: *)
8390: lt_save_MAGIC_CMD="$MAGIC_CMD"
8391: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8392: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8393: for ac_dir in $ac_dummy; do
8394: IFS="$lt_save_ifs"
8395: test -z "$ac_dir" && ac_dir=.
8396: if test -f $ac_dir/file; then
8397: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8398: if test -n "$file_magic_test_file"; then
8399: case $deplibs_check_method in
8400: "file_magic "*)
8401: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8402: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8404: $EGREP "$file_magic_regex" > /dev/null; then
8405: :
8406: else
8407: cat <<_LT_EOF 1>&2
8408:
8409: *** Warning: the command libtool uses to detect shared libraries,
8410: *** $file_magic_cmd, produces output that libtool cannot recognize.
8411: *** The result is that libtool may fail to recognize shared libraries
8412: *** as such. This will affect the creation of libtool libraries that
8413: *** depend on shared libraries, but programs linked with such libtool
8414: *** libraries will work regardless of this problem. Nevertheless, you
8415: *** may want to report the problem to your system manager and/or to
8416: *** bug-libtool@gnu.org
8417:
8418: _LT_EOF
8419: fi ;;
8420: esac
8421: fi
8422: break
8423: fi
8424: done
8425: IFS="$lt_save_ifs"
8426: MAGIC_CMD="$lt_save_MAGIC_CMD"
8427: ;;
8428: esac
8429: fi
8430:
8431: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432: if test -n "$MAGIC_CMD"; then
8433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8434: $as_echo "$MAGIC_CMD" >&6; }
8435: else
8436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437: $as_echo "no" >&6; }
8438: fi
8439:
8440:
8441: else
8442: MAGIC_CMD=:
8443: fi
8444: fi
8445:
8446: fi
8447: ;;
8448: esac
8449:
8450: # Use C for the default configuration in the libtool script
8451:
8452: lt_save_CC="$CC"
8453: ac_ext=c
8454: ac_cpp='$CPP $CPPFLAGS'
8455: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8458:
8459:
8460: # Source file extension for C test sources.
8461: ac_ext=c
8462:
8463: # Object file extension for compiled C test sources.
8464: objext=o
8465: objext=$objext
8466:
8467: # Code to be used in simple compile tests
8468: lt_simple_compile_test_code="int some_variable = 0;"
8469:
8470: # Code to be used in simple link tests
8471: lt_simple_link_test_code='int main(){return(0);}'
8472:
8473:
8474:
8475:
8476:
8477:
8478:
8479: # If no C compiler was specified, use CC.
8480: LTCC=${LTCC-"$CC"}
8481:
8482: # If no C compiler flags were specified, use CFLAGS.
8483: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8484:
8485: # Allow CC to be a program name with arguments.
8486: compiler=$CC
8487:
8488: # Save the default compiler, since it gets overwritten when the other
8489: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8490: compiler_DEFAULT=$CC
8491:
8492: # save warnings/boilerplate of simple test code
8493: ac_outfile=conftest.$ac_objext
8494: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8495: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8496: _lt_compiler_boilerplate=`cat conftest.err`
8497: $RM conftest*
8498:
8499: ac_outfile=conftest.$ac_objext
8500: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8501: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502: _lt_linker_boilerplate=`cat conftest.err`
8503: $RM -r conftest*
8504:
8505:
8506: ## CAVEAT EMPTOR:
8507: ## There is no encapsulation within the following macros, do not change
8508: ## the running order or otherwise move them around unless you know exactly
8509: ## what you are doing...
8510: if test -n "$compiler"; then
8511:
8512: lt_prog_compiler_no_builtin_flag=
8513:
8514: if test "$GCC" = yes; then
8515: case $cc_basename in
8516: nvcc*)
8517: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8518: *)
8519: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8520: esac
8521:
8522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8523: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1.1.1.2 misho 8524: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
1.1 misho 8525: $as_echo_n "(cached) " >&6
8526: else
8527: lt_cv_prog_compiler_rtti_exceptions=no
8528: ac_outfile=conftest.$ac_objext
8529: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8530: lt_compiler_flag="-fno-rtti -fno-exceptions"
8531: # Insert the option either (1) after the last *FLAGS variable, or
8532: # (2) before a word containing "conftest.", or (3) at the end.
8533: # Note that $ac_compile itself does not contain backslashes and begins
8534: # with a dollar sign (not a hyphen), so the echo should work correctly.
8535: # The option is referenced via a variable to avoid confusing sed.
8536: lt_compile=`echo "$ac_compile" | $SED \
8537: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8538: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8539: -e 's:$: $lt_compiler_flag:'`
8540: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8541: (eval "$lt_compile" 2>conftest.err)
8542: ac_status=$?
8543: cat conftest.err >&5
8544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545: if (exit $ac_status) && test -s "$ac_outfile"; then
8546: # The compiler can only warn and ignore the option if not recognized
8547: # So say no if there are warnings other than the usual output.
8548: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8549: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8550: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8551: lt_cv_prog_compiler_rtti_exceptions=yes
8552: fi
8553: fi
8554: $RM conftest*
8555:
8556: fi
8557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8558: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8559:
8560: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8561: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8562: else
8563: :
8564: fi
8565:
8566: fi
8567:
8568:
8569:
8570:
8571:
8572:
8573: lt_prog_compiler_wl=
8574: lt_prog_compiler_pic=
8575: lt_prog_compiler_static=
8576:
8577:
8578: if test "$GCC" = yes; then
8579: lt_prog_compiler_wl='-Wl,'
8580: lt_prog_compiler_static='-static'
8581:
8582: case $host_os in
8583: aix*)
8584: # All AIX code is PIC.
8585: if test "$host_cpu" = ia64; then
8586: # AIX 5 now supports IA64 processor
8587: lt_prog_compiler_static='-Bstatic'
8588: fi
8589: ;;
8590:
8591: amigaos*)
8592: case $host_cpu in
8593: powerpc)
8594: # see comment about AmigaOS4 .so support
8595: lt_prog_compiler_pic='-fPIC'
8596: ;;
8597: m68k)
8598: # FIXME: we need at least 68020 code to build shared libraries, but
8599: # adding the `-m68020' flag to GCC prevents building anything better,
8600: # like `-m68040'.
8601: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8602: ;;
8603: esac
8604: ;;
8605:
8606: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8607: # PIC is the default for these OSes.
8608: ;;
8609:
8610: mingw* | cygwin* | pw32* | os2* | cegcc*)
8611: # This hack is so that the source file can tell whether it is being
8612: # built for inclusion in a dll (and should export symbols for example).
8613: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8614: # (--disable-auto-import) libraries
8615: lt_prog_compiler_pic='-DDLL_EXPORT'
8616: ;;
8617:
8618: darwin* | rhapsody*)
8619: # PIC is the default on this platform
8620: # Common symbols not allowed in MH_DYLIB files
8621: lt_prog_compiler_pic='-fno-common'
8622: ;;
8623:
8624: haiku*)
8625: # PIC is the default for Haiku.
8626: # The "-static" flag exists, but is broken.
8627: lt_prog_compiler_static=
8628: ;;
8629:
8630: hpux*)
8631: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8632: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8633: # sets the default TLS model and affects inlining.
8634: case $host_cpu in
8635: hppa*64*)
8636: # +Z the default
8637: ;;
8638: *)
8639: lt_prog_compiler_pic='-fPIC'
8640: ;;
8641: esac
8642: ;;
8643:
8644: interix[3-9]*)
8645: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8646: # Instead, we relocate shared libraries at runtime.
8647: ;;
8648:
8649: msdosdjgpp*)
8650: # Just because we use GCC doesn't mean we suddenly get shared libraries
8651: # on systems that don't support them.
8652: lt_prog_compiler_can_build_shared=no
8653: enable_shared=no
8654: ;;
8655:
8656: *nto* | *qnx*)
8657: # QNX uses GNU C++, but need to define -shared option too, otherwise
8658: # it will coredump.
8659: lt_prog_compiler_pic='-fPIC -shared'
8660: ;;
8661:
8662: sysv4*MP*)
8663: if test -d /usr/nec; then
8664: lt_prog_compiler_pic=-Kconform_pic
8665: fi
8666: ;;
8667:
8668: *)
8669: lt_prog_compiler_pic='-fPIC'
8670: ;;
8671: esac
8672:
8673: case $cc_basename in
8674: nvcc*) # Cuda Compiler Driver 2.2
8675: lt_prog_compiler_wl='-Xlinker '
8676: lt_prog_compiler_pic='-Xcompiler -fPIC'
8677: ;;
8678: esac
8679: else
8680: # PORTME Check for flag to pass linker flags through the system compiler.
8681: case $host_os in
8682: aix*)
8683: lt_prog_compiler_wl='-Wl,'
8684: if test "$host_cpu" = ia64; then
8685: # AIX 5 now supports IA64 processor
8686: lt_prog_compiler_static='-Bstatic'
8687: else
8688: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8689: fi
8690: ;;
8691:
8692: mingw* | cygwin* | pw32* | os2* | cegcc*)
8693: # This hack is so that the source file can tell whether it is being
8694: # built for inclusion in a dll (and should export symbols for example).
8695: lt_prog_compiler_pic='-DDLL_EXPORT'
8696: ;;
8697:
8698: hpux9* | hpux10* | hpux11*)
8699: lt_prog_compiler_wl='-Wl,'
8700: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8701: # not for PA HP-UX.
8702: case $host_cpu in
8703: hppa*64*|ia64*)
8704: # +Z the default
8705: ;;
8706: *)
8707: lt_prog_compiler_pic='+Z'
8708: ;;
8709: esac
8710: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8711: lt_prog_compiler_static='${wl}-a ${wl}archive'
8712: ;;
8713:
8714: irix5* | irix6* | nonstopux*)
8715: lt_prog_compiler_wl='-Wl,'
8716: # PIC (with -KPIC) is the default.
8717: lt_prog_compiler_static='-non_shared'
8718: ;;
8719:
8720: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8721: case $cc_basename in
8722: # old Intel for x86_64 which still supported -KPIC.
8723: ecc*)
8724: lt_prog_compiler_wl='-Wl,'
8725: lt_prog_compiler_pic='-KPIC'
8726: lt_prog_compiler_static='-static'
8727: ;;
8728: # icc used to be incompatible with GCC.
8729: # ICC 10 doesn't accept -KPIC any more.
8730: icc* | ifort*)
8731: lt_prog_compiler_wl='-Wl,'
8732: lt_prog_compiler_pic='-fPIC'
8733: lt_prog_compiler_static='-static'
8734: ;;
8735: # Lahey Fortran 8.1.
8736: lf95*)
8737: lt_prog_compiler_wl='-Wl,'
8738: lt_prog_compiler_pic='--shared'
8739: lt_prog_compiler_static='--static'
8740: ;;
1.1.1.2 misho 8741: nagfor*)
8742: # NAG Fortran compiler
8743: lt_prog_compiler_wl='-Wl,-Wl,,'
8744: lt_prog_compiler_pic='-PIC'
8745: lt_prog_compiler_static='-Bstatic'
8746: ;;
1.1 misho 8747: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8748: # Portland Group compilers (*not* the Pentium gcc compiler,
8749: # which looks to be a dead project)
8750: lt_prog_compiler_wl='-Wl,'
8751: lt_prog_compiler_pic='-fpic'
8752: lt_prog_compiler_static='-Bstatic'
8753: ;;
8754: ccc*)
8755: lt_prog_compiler_wl='-Wl,'
8756: # All Alpha code is PIC.
8757: lt_prog_compiler_static='-non_shared'
8758: ;;
8759: xl* | bgxl* | bgf* | mpixl*)
8760: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8761: lt_prog_compiler_wl='-Wl,'
8762: lt_prog_compiler_pic='-qpic'
8763: lt_prog_compiler_static='-qstaticlink'
8764: ;;
8765: *)
8766: case `$CC -V 2>&1 | sed 5q` in
8767: *Sun\ F* | *Sun*Fortran*)
8768: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8769: lt_prog_compiler_pic='-KPIC'
8770: lt_prog_compiler_static='-Bstatic'
8771: lt_prog_compiler_wl=''
8772: ;;
8773: *Sun\ C*)
8774: # Sun C 5.9
8775: lt_prog_compiler_pic='-KPIC'
8776: lt_prog_compiler_static='-Bstatic'
8777: lt_prog_compiler_wl='-Wl,'
8778: ;;
8779: esac
8780: ;;
8781: esac
8782: ;;
8783:
8784: newsos6)
8785: lt_prog_compiler_pic='-KPIC'
8786: lt_prog_compiler_static='-Bstatic'
8787: ;;
8788:
8789: *nto* | *qnx*)
8790: # QNX uses GNU C++, but need to define -shared option too, otherwise
8791: # it will coredump.
8792: lt_prog_compiler_pic='-fPIC -shared'
8793: ;;
8794:
8795: osf3* | osf4* | osf5*)
8796: lt_prog_compiler_wl='-Wl,'
8797: # All OSF/1 code is PIC.
8798: lt_prog_compiler_static='-non_shared'
8799: ;;
8800:
8801: rdos*)
8802: lt_prog_compiler_static='-non_shared'
8803: ;;
8804:
8805: solaris*)
8806: lt_prog_compiler_pic='-KPIC'
8807: lt_prog_compiler_static='-Bstatic'
8808: case $cc_basename in
8809: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8810: lt_prog_compiler_wl='-Qoption ld ';;
8811: *)
8812: lt_prog_compiler_wl='-Wl,';;
8813: esac
8814: ;;
8815:
8816: sunos4*)
8817: lt_prog_compiler_wl='-Qoption ld '
8818: lt_prog_compiler_pic='-PIC'
8819: lt_prog_compiler_static='-Bstatic'
8820: ;;
8821:
8822: sysv4 | sysv4.2uw2* | sysv4.3*)
8823: lt_prog_compiler_wl='-Wl,'
8824: lt_prog_compiler_pic='-KPIC'
8825: lt_prog_compiler_static='-Bstatic'
8826: ;;
8827:
8828: sysv4*MP*)
8829: if test -d /usr/nec ;then
8830: lt_prog_compiler_pic='-Kconform_pic'
8831: lt_prog_compiler_static='-Bstatic'
8832: fi
8833: ;;
8834:
8835: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8836: lt_prog_compiler_wl='-Wl,'
8837: lt_prog_compiler_pic='-KPIC'
8838: lt_prog_compiler_static='-Bstatic'
8839: ;;
8840:
8841: unicos*)
8842: lt_prog_compiler_wl='-Wl,'
8843: lt_prog_compiler_can_build_shared=no
8844: ;;
8845:
8846: uts4*)
8847: lt_prog_compiler_pic='-pic'
8848: lt_prog_compiler_static='-Bstatic'
8849: ;;
8850:
8851: *)
8852: lt_prog_compiler_can_build_shared=no
8853: ;;
8854: esac
8855: fi
8856:
8857: case $host_os in
8858: # For platforms which do not support PIC, -DPIC is meaningless:
8859: *djgpp*)
8860: lt_prog_compiler_pic=
8861: ;;
8862: *)
8863: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8864: ;;
8865: esac
8866:
1.1.1.2 misho 8867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8868: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8869: if ${lt_cv_prog_compiler_pic+:} false; then :
8870: $as_echo_n "(cached) " >&6
8871: else
8872: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8873: fi
8874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8875: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8876: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misho 8877:
8878: #
8879: # Check to make sure the PIC flag actually works.
8880: #
8881: if test -n "$lt_prog_compiler_pic"; then
8882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8883: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
1.1.1.2 misho 8884: if ${lt_cv_prog_compiler_pic_works+:} false; then :
1.1 misho 8885: $as_echo_n "(cached) " >&6
8886: else
8887: lt_cv_prog_compiler_pic_works=no
8888: ac_outfile=conftest.$ac_objext
8889: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8891: # Insert the option either (1) after the last *FLAGS variable, or
8892: # (2) before a word containing "conftest.", or (3) at the end.
8893: # Note that $ac_compile itself does not contain backslashes and begins
8894: # with a dollar sign (not a hyphen), so the echo should work correctly.
8895: # The option is referenced via a variable to avoid confusing sed.
8896: lt_compile=`echo "$ac_compile" | $SED \
8897: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8898: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8899: -e 's:$: $lt_compiler_flag:'`
8900: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8901: (eval "$lt_compile" 2>conftest.err)
8902: ac_status=$?
8903: cat conftest.err >&5
8904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905: if (exit $ac_status) && test -s "$ac_outfile"; then
8906: # The compiler can only warn and ignore the option if not recognized
8907: # So say no if there are warnings other than the usual output.
8908: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8909: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8910: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8911: lt_cv_prog_compiler_pic_works=yes
8912: fi
8913: fi
8914: $RM conftest*
8915:
8916: fi
8917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8918: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8919:
8920: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8921: case $lt_prog_compiler_pic in
8922: "" | " "*) ;;
8923: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8924: esac
8925: else
8926: lt_prog_compiler_pic=
8927: lt_prog_compiler_can_build_shared=no
8928: fi
8929:
8930: fi
8931:
8932:
8933:
8934:
8935:
8936:
1.1.1.2 misho 8937:
8938:
8939:
8940:
8941:
1.1 misho 8942: #
8943: # Check to make sure the static flag actually works.
8944: #
8945: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8947: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
1.1.1.2 misho 8948: if ${lt_cv_prog_compiler_static_works+:} false; then :
1.1 misho 8949: $as_echo_n "(cached) " >&6
8950: else
8951: lt_cv_prog_compiler_static_works=no
8952: save_LDFLAGS="$LDFLAGS"
8953: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8954: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8955: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8956: # The linker can only warn and ignore the option if not recognized
8957: # So say no if there are warnings
8958: if test -s conftest.err; then
8959: # Append any errors to the config.log.
8960: cat conftest.err 1>&5
8961: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8962: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963: if diff conftest.exp conftest.er2 >/dev/null; then
8964: lt_cv_prog_compiler_static_works=yes
8965: fi
8966: else
8967: lt_cv_prog_compiler_static_works=yes
8968: fi
8969: fi
8970: $RM -r conftest*
8971: LDFLAGS="$save_LDFLAGS"
8972:
8973: fi
8974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8975: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8976:
8977: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8978: :
8979: else
8980: lt_prog_compiler_static=
8981: fi
8982:
8983:
8984:
8985:
8986:
8987:
8988:
8989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8990: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 misho 8991: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 8992: $as_echo_n "(cached) " >&6
8993: else
8994: lt_cv_prog_compiler_c_o=no
8995: $RM -r conftest 2>/dev/null
8996: mkdir conftest
8997: cd conftest
8998: mkdir out
8999: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000:
9001: lt_compiler_flag="-o out/conftest2.$ac_objext"
9002: # Insert the option either (1) after the last *FLAGS variable, or
9003: # (2) before a word containing "conftest.", or (3) at the end.
9004: # Note that $ac_compile itself does not contain backslashes and begins
9005: # with a dollar sign (not a hyphen), so the echo should work correctly.
9006: lt_compile=`echo "$ac_compile" | $SED \
9007: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9008: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9009: -e 's:$: $lt_compiler_flag:'`
9010: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9011: (eval "$lt_compile" 2>out/conftest.err)
9012: ac_status=$?
9013: cat out/conftest.err >&5
9014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9016: then
9017: # The compiler can only warn and ignore the option if not recognized
9018: # So say no if there are warnings
9019: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9020: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9021: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9022: lt_cv_prog_compiler_c_o=yes
9023: fi
9024: fi
9025: chmod u+w . 2>&5
9026: $RM conftest*
9027: # SGI C++ compiler will create directory out/ii_files/ for
9028: # template instantiation
9029: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9030: $RM out/* && rmdir out
9031: cd ..
9032: $RM -r conftest
9033: $RM conftest*
9034:
9035: fi
9036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9037: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9038:
9039:
9040:
9041:
9042:
9043:
9044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9045: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 misho 9046: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 9047: $as_echo_n "(cached) " >&6
9048: else
9049: lt_cv_prog_compiler_c_o=no
9050: $RM -r conftest 2>/dev/null
9051: mkdir conftest
9052: cd conftest
9053: mkdir out
9054: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055:
9056: lt_compiler_flag="-o out/conftest2.$ac_objext"
9057: # Insert the option either (1) after the last *FLAGS variable, or
9058: # (2) before a word containing "conftest.", or (3) at the end.
9059: # Note that $ac_compile itself does not contain backslashes and begins
9060: # with a dollar sign (not a hyphen), so the echo should work correctly.
9061: lt_compile=`echo "$ac_compile" | $SED \
9062: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064: -e 's:$: $lt_compiler_flag:'`
9065: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066: (eval "$lt_compile" 2>out/conftest.err)
9067: ac_status=$?
9068: cat out/conftest.err >&5
9069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9071: then
9072: # The compiler can only warn and ignore the option if not recognized
9073: # So say no if there are warnings
9074: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9075: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9076: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9077: lt_cv_prog_compiler_c_o=yes
9078: fi
9079: fi
9080: chmod u+w . 2>&5
9081: $RM conftest*
9082: # SGI C++ compiler will create directory out/ii_files/ for
9083: # template instantiation
9084: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9085: $RM out/* && rmdir out
9086: cd ..
9087: $RM -r conftest
9088: $RM conftest*
9089:
9090: fi
9091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9092: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9093:
9094:
9095:
9096:
9097: hard_links="nottested"
9098: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9099: # do not overwrite the value of need_locks provided by the user
9100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9101: $as_echo_n "checking if we can lock with hard links... " >&6; }
9102: hard_links=yes
9103: $RM conftest*
9104: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9105: touch conftest.a
9106: ln conftest.a conftest.b 2>&5 || hard_links=no
9107: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9109: $as_echo "$hard_links" >&6; }
9110: if test "$hard_links" = no; then
9111: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9112: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9113: need_locks=warn
9114: fi
9115: else
9116: need_locks=no
9117: fi
9118:
9119:
9120:
9121:
9122:
9123:
9124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9125: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9126:
9127: runpath_var=
9128: allow_undefined_flag=
9129: always_export_symbols=no
9130: archive_cmds=
9131: archive_expsym_cmds=
9132: compiler_needs_object=no
9133: enable_shared_with_static_runtimes=no
9134: export_dynamic_flag_spec=
9135: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9136: hardcode_automatic=no
9137: hardcode_direct=no
9138: hardcode_direct_absolute=no
9139: hardcode_libdir_flag_spec=
9140: hardcode_libdir_flag_spec_ld=
9141: hardcode_libdir_separator=
9142: hardcode_minus_L=no
9143: hardcode_shlibpath_var=unsupported
9144: inherit_rpath=no
9145: link_all_deplibs=unknown
9146: module_cmds=
9147: module_expsym_cmds=
9148: old_archive_from_new_cmds=
9149: old_archive_from_expsyms_cmds=
9150: thread_safe_flag_spec=
9151: whole_archive_flag_spec=
9152: # include_expsyms should be a list of space-separated symbols to be *always*
9153: # included in the symbol list
9154: include_expsyms=
9155: # exclude_expsyms can be an extended regexp of symbols to exclude
9156: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9157: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9158: # as well as any symbol that contains `d'.
9159: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9160: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9161: # platforms (ab)use it in PIC code, but their linkers get confused if
9162: # the symbol is explicitly referenced. Since portable code cannot
9163: # rely on this symbol name, it's probably fine to never include it in
9164: # preloaded symbol tables.
9165: # Exclude shared library initialization/finalization symbols.
9166: extract_expsyms_cmds=
9167:
9168: case $host_os in
9169: cygwin* | mingw* | pw32* | cegcc*)
9170: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9171: # When not using gcc, we currently assume that we are using
9172: # Microsoft Visual C++.
9173: if test "$GCC" != yes; then
9174: with_gnu_ld=no
9175: fi
9176: ;;
9177: interix*)
9178: # we just hope/assume this is gcc and not c89 (= MSVC++)
9179: with_gnu_ld=yes
9180: ;;
9181: openbsd*)
9182: with_gnu_ld=no
9183: ;;
9184: esac
9185:
9186: ld_shlibs=yes
9187:
9188: # On some targets, GNU ld is compatible enough with the native linker
9189: # that we're better off using the native interface for both.
9190: lt_use_gnu_ld_interface=no
9191: if test "$with_gnu_ld" = yes; then
9192: case $host_os in
9193: aix*)
9194: # The AIX port of GNU ld has always aspired to compatibility
9195: # with the native linker. However, as the warning in the GNU ld
9196: # block says, versions before 2.19.5* couldn't really create working
9197: # shared libraries, regardless of the interface used.
9198: case `$LD -v 2>&1` in
9199: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9200: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9201: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9202: *)
9203: lt_use_gnu_ld_interface=yes
9204: ;;
9205: esac
9206: ;;
9207: *)
9208: lt_use_gnu_ld_interface=yes
9209: ;;
9210: esac
9211: fi
9212:
9213: if test "$lt_use_gnu_ld_interface" = yes; then
9214: # If archive_cmds runs LD, not CC, wlarc should be empty
9215: wlarc='${wl}'
9216:
9217: # Set some defaults for GNU ld with shared library support. These
9218: # are reset later if shared libraries are not supported. Putting them
9219: # here allows them to be overridden if necessary.
9220: runpath_var=LD_RUN_PATH
9221: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9222: export_dynamic_flag_spec='${wl}--export-dynamic'
9223: # ancient GNU ld didn't support --whole-archive et. al.
9224: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9225: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9226: else
9227: whole_archive_flag_spec=
9228: fi
9229: supports_anon_versioning=no
9230: case `$LD -v 2>&1` in
9231: *GNU\ gold*) supports_anon_versioning=yes ;;
9232: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9233: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9234: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9235: *\ 2.11.*) ;; # other 2.11 versions
9236: *) supports_anon_versioning=yes ;;
9237: esac
9238:
9239: # See if GNU ld supports shared libraries.
9240: case $host_os in
9241: aix[3-9]*)
9242: # On AIX/PPC, the GNU linker is very broken
9243: if test "$host_cpu" != ia64; then
9244: ld_shlibs=no
9245: cat <<_LT_EOF 1>&2
9246:
9247: *** Warning: the GNU linker, at least up to release 2.19, is reported
9248: *** to be unable to reliably create shared libraries on AIX.
9249: *** Therefore, libtool is disabling shared libraries support. If you
9250: *** really care for shared libraries, you may want to install binutils
9251: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9252: *** You will then need to restart the configuration process.
9253:
9254: _LT_EOF
9255: fi
9256: ;;
9257:
9258: amigaos*)
9259: case $host_cpu in
9260: powerpc)
9261: # see comment about AmigaOS4 .so support
9262: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263: archive_expsym_cmds=''
9264: ;;
9265: m68k)
9266: 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)'
9267: hardcode_libdir_flag_spec='-L$libdir'
9268: hardcode_minus_L=yes
9269: ;;
9270: esac
9271: ;;
9272:
9273: beos*)
9274: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9275: allow_undefined_flag=unsupported
9276: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9277: # support --undefined. This deserves some investigation. FIXME
9278: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279: else
9280: ld_shlibs=no
9281: fi
9282: ;;
9283:
9284: cygwin* | mingw* | pw32* | cegcc*)
9285: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9286: # as there is no search path for DLLs.
9287: hardcode_libdir_flag_spec='-L$libdir'
9288: export_dynamic_flag_spec='${wl}--export-all-symbols'
9289: allow_undefined_flag=unsupported
9290: always_export_symbols=no
9291: enable_shared_with_static_runtimes=yes
1.1.1.2 misho 9292: 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'
9293: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.1 misho 9294:
9295: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9296: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9297: # If the export-symbols file already is a .def file (1st line
9298: # is EXPORTS), use it as is; otherwise, prepend...
9299: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9300: cp $export_symbols $output_objdir/$soname.def;
9301: else
9302: echo EXPORTS > $output_objdir/$soname.def;
9303: cat $export_symbols >> $output_objdir/$soname.def;
9304: fi~
9305: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9306: else
9307: ld_shlibs=no
9308: fi
9309: ;;
9310:
9311: haiku*)
9312: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313: link_all_deplibs=yes
9314: ;;
9315:
9316: interix[3-9]*)
9317: hardcode_direct=no
9318: hardcode_shlibpath_var=no
9319: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9320: export_dynamic_flag_spec='${wl}-E'
9321: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9322: # Instead, shared libraries are loaded at an image base (0x10000000 by
9323: # default) and relocated if they conflict, which is a slow very memory
9324: # consuming and fragmenting process. To avoid this, we pick a random,
9325: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9326: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9327: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9328: 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'
9329: ;;
9330:
9331: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9332: tmp_diet=no
9333: if test "$host_os" = linux-dietlibc; then
9334: case $cc_basename in
9335: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9336: esac
9337: fi
9338: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9339: && test "$tmp_diet" = no
9340: then
1.1.1.2 misho 9341: tmp_addflag=' $pic_flag'
1.1 misho 9342: tmp_sharedflag='-shared'
9343: case $cc_basename,$host_cpu in
9344: pgcc*) # Portland Group C compiler
9345: 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'
9346: tmp_addflag=' $pic_flag'
9347: ;;
9348: pgf77* | pgf90* | pgf95* | pgfortran*)
9349: # Portland Group f77 and f90 compilers
9350: 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'
9351: tmp_addflag=' $pic_flag -Mnomain' ;;
9352: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9353: tmp_addflag=' -i_dynamic' ;;
9354: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9355: tmp_addflag=' -i_dynamic -nofor_main' ;;
9356: ifc* | ifort*) # Intel Fortran compiler
9357: tmp_addflag=' -nofor_main' ;;
9358: lf95*) # Lahey Fortran 8.1
9359: whole_archive_flag_spec=
9360: tmp_sharedflag='--shared' ;;
9361: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9362: tmp_sharedflag='-qmkshrobj'
9363: tmp_addflag= ;;
9364: nvcc*) # Cuda Compiler Driver 2.2
9365: 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'
9366: compiler_needs_object=yes
9367: ;;
9368: esac
9369: case `$CC -V 2>&1 | sed 5q` in
9370: *Sun\ C*) # Sun C 5.9
9371: 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'
9372: compiler_needs_object=yes
9373: tmp_sharedflag='-G' ;;
9374: *Sun\ F*) # Sun Fortran 8.3
9375: tmp_sharedflag='-G' ;;
9376: esac
9377: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378:
9379: if test "x$supports_anon_versioning" = xyes; then
9380: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9381: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9382: echo "local: *; };" >> $output_objdir/$libname.ver~
9383: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9384: fi
9385:
9386: case $cc_basename in
9387: xlf* | bgf* | bgxlf* | mpixlf*)
9388: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9389: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9390: hardcode_libdir_flag_spec=
9391: hardcode_libdir_flag_spec_ld='-rpath $libdir'
9392: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9393: if test "x$supports_anon_versioning" = xyes; then
9394: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9395: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9396: echo "local: *; };" >> $output_objdir/$libname.ver~
9397: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9398: fi
9399: ;;
9400: esac
9401: else
9402: ld_shlibs=no
9403: fi
9404: ;;
9405:
9406: netbsd*)
9407: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9408: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9409: wlarc=
9410: else
1.1.1.2 misho 9411: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412: 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 9413: fi
9414: ;;
9415:
9416: solaris*)
9417: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9418: ld_shlibs=no
9419: cat <<_LT_EOF 1>&2
9420:
9421: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9422: *** create shared libraries on Solaris systems. Therefore, libtool
9423: *** is disabling shared libraries support. We urge you to upgrade GNU
9424: *** binutils to release 2.9.1 or newer. Another option is to modify
9425: *** your PATH or compiler configuration so that the native linker is
9426: *** used, and then restart.
9427:
9428: _LT_EOF
9429: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.2 misho 9430: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431: 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 9432: else
9433: ld_shlibs=no
9434: fi
9435: ;;
9436:
9437: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9438: case `$LD -v 2>&1` in
9439: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9440: ld_shlibs=no
9441: cat <<_LT_EOF 1>&2
9442:
9443: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9444: *** reliably create shared libraries on SCO systems. Therefore, libtool
9445: *** is disabling shared libraries support. We urge you to upgrade GNU
9446: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9447: *** your PATH or compiler configuration so that the native linker is
9448: *** used, and then restart.
9449:
9450: _LT_EOF
9451: ;;
9452: *)
9453: # For security reasons, it is highly recommended that you always
9454: # use absolute paths for naming shared libraries, and exclude the
9455: # DT_RUNPATH tag from executables and libraries. But doing so
9456: # requires that you compile everything twice, which is a pain.
9457: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9458: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9460: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9461: else
9462: ld_shlibs=no
9463: fi
9464: ;;
9465: esac
9466: ;;
9467:
9468: sunos4*)
9469: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9470: wlarc=
9471: hardcode_direct=yes
9472: hardcode_shlibpath_var=no
9473: ;;
9474:
9475: *)
9476: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.2 misho 9477: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478: 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 9479: else
9480: ld_shlibs=no
9481: fi
9482: ;;
9483: esac
9484:
9485: if test "$ld_shlibs" = no; then
9486: runpath_var=
9487: hardcode_libdir_flag_spec=
9488: export_dynamic_flag_spec=
9489: whole_archive_flag_spec=
9490: fi
9491: else
9492: # PORTME fill in a description of your system's linker (not GNU ld)
9493: case $host_os in
9494: aix3*)
9495: allow_undefined_flag=unsupported
9496: always_export_symbols=yes
9497: 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'
9498: # Note: this linker hardcodes the directories in LIBPATH if there
9499: # are no directories specified by -L.
9500: hardcode_minus_L=yes
9501: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9502: # Neither direct hardcoding nor static linking is supported with a
9503: # broken collect2.
9504: hardcode_direct=unsupported
9505: fi
9506: ;;
9507:
9508: aix[4-9]*)
9509: if test "$host_cpu" = ia64; then
9510: # On IA64, the linker does run time linking by default, so we don't
9511: # have to do anything special.
9512: aix_use_runtimelinking=no
9513: exp_sym_flag='-Bexport'
9514: no_entry_flag=""
9515: else
9516: # If we're using GNU nm, then we don't want the "-C" option.
9517: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9518: # Also, AIX nm treats weak defined symbols like other global
9519: # defined symbols, whereas GNU nm marks them as "W".
9520: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9521: 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'
9522: else
9523: 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'
9524: fi
9525: aix_use_runtimelinking=no
9526:
9527: # Test if we are trying to use run time linking or normal
9528: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9529: # need to do runtime linking.
9530: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9531: for ld_flag in $LDFLAGS; do
9532: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9533: aix_use_runtimelinking=yes
9534: break
9535: fi
9536: done
9537: ;;
9538: esac
9539:
9540: exp_sym_flag='-bexport'
9541: no_entry_flag='-bnoentry'
9542: fi
9543:
9544: # When large executables or shared objects are built, AIX ld can
9545: # have problems creating the table of contents. If linking a library
9546: # or program results in "error TOC overflow" add -mminimal-toc to
9547: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9548: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9549:
9550: archive_cmds=''
9551: hardcode_direct=yes
9552: hardcode_direct_absolute=yes
9553: hardcode_libdir_separator=':'
9554: link_all_deplibs=yes
9555: file_list_spec='${wl}-f,'
9556:
9557: if test "$GCC" = yes; then
9558: case $host_os in aix4.[012]|aix4.[012].*)
9559: # We only want to do this on AIX 4.2 and lower, the check
9560: # below for broken collect2 doesn't work under 4.3+
9561: collect2name=`${CC} -print-prog-name=collect2`
9562: if test -f "$collect2name" &&
9563: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9564: then
9565: # We have reworked collect2
9566: :
9567: else
9568: # We have old collect2
9569: hardcode_direct=unsupported
9570: # It fails to find uninstalled libraries when the uninstalled
9571: # path is not listed in the libpath. Setting hardcode_minus_L
9572: # to unsupported forces relinking
9573: hardcode_minus_L=yes
9574: hardcode_libdir_flag_spec='-L$libdir'
9575: hardcode_libdir_separator=
9576: fi
9577: ;;
9578: esac
9579: shared_flag='-shared'
9580: if test "$aix_use_runtimelinking" = yes; then
9581: shared_flag="$shared_flag "'${wl}-G'
9582: fi
9583: else
9584: # not using gcc
9585: if test "$host_cpu" = ia64; then
9586: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9587: # chokes on -Wl,-G. The following line is correct:
9588: shared_flag='-G'
9589: else
9590: if test "$aix_use_runtimelinking" = yes; then
9591: shared_flag='${wl}-G'
9592: else
9593: shared_flag='${wl}-bM:SRE'
9594: fi
9595: fi
9596: fi
9597:
9598: export_dynamic_flag_spec='${wl}-bexpall'
9599: # It seems that -bexpall does not export symbols beginning with
9600: # underscore (_), so it is better to generate a list of symbols to export.
9601: always_export_symbols=yes
9602: if test "$aix_use_runtimelinking" = yes; then
9603: # Warning - without using the other runtime loading flags (-brtl),
9604: # -berok will link without error, but may produce a broken library.
9605: allow_undefined_flag='-berok'
9606: # Determine the default libpath from the value encoded in an
9607: # empty executable.
1.1.1.2 misho 9608: if test "${lt_cv_aix_libpath+set}" = set; then
9609: aix_libpath=$lt_cv_aix_libpath
9610: else
9611: if ${lt_cv_aix_libpath_+:} false; then :
9612: $as_echo_n "(cached) " >&6
9613: else
9614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 9615: /* end confdefs.h. */
9616:
9617: int
9618: main ()
9619: {
9620:
9621: ;
9622: return 0;
9623: }
9624: _ACEOF
9625: if ac_fn_c_try_link "$LINENO"; then :
9626:
1.1.1.2 misho 9627: lt_aix_libpath_sed='
9628: /Import File Strings/,/^$/ {
9629: /^0/ {
9630: s/^0 *\([^ ]*\) *$/\1/
9631: p
9632: }
9633: }'
9634: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635: # Check for a 64-bit object if we didn't find anything.
9636: if test -z "$lt_cv_aix_libpath_"; then
9637: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638: fi
1.1 misho 9639: fi
9640: rm -f core conftest.err conftest.$ac_objext \
9641: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 9642: if test -z "$lt_cv_aix_libpath_"; then
9643: lt_cv_aix_libpath_="/usr/lib:/lib"
9644: fi
9645:
9646: fi
9647:
9648: aix_libpath=$lt_cv_aix_libpath_
9649: fi
1.1 misho 9650:
9651: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9652: 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"
9653: else
9654: if test "$host_cpu" = ia64; then
9655: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9656: allow_undefined_flag="-z nodefs"
9657: 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"
9658: else
9659: # Determine the default libpath from the value encoded in an
9660: # empty executable.
1.1.1.2 misho 9661: if test "${lt_cv_aix_libpath+set}" = set; then
9662: aix_libpath=$lt_cv_aix_libpath
9663: else
9664: if ${lt_cv_aix_libpath_+:} false; then :
9665: $as_echo_n "(cached) " >&6
9666: else
9667: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 9668: /* end confdefs.h. */
9669:
9670: int
9671: main ()
9672: {
9673:
9674: ;
9675: return 0;
9676: }
9677: _ACEOF
9678: if ac_fn_c_try_link "$LINENO"; then :
9679:
1.1.1.2 misho 9680: lt_aix_libpath_sed='
9681: /Import File Strings/,/^$/ {
9682: /^0/ {
9683: s/^0 *\([^ ]*\) *$/\1/
9684: p
9685: }
9686: }'
9687: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688: # Check for a 64-bit object if we didn't find anything.
9689: if test -z "$lt_cv_aix_libpath_"; then
9690: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9691: fi
1.1 misho 9692: fi
9693: rm -f core conftest.err conftest.$ac_objext \
9694: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 9695: if test -z "$lt_cv_aix_libpath_"; then
9696: lt_cv_aix_libpath_="/usr/lib:/lib"
9697: fi
9698:
9699: fi
9700:
9701: aix_libpath=$lt_cv_aix_libpath_
9702: fi
1.1 misho 9703:
9704: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9705: # Warning - without using the other run time loading flags,
9706: # -berok will link without error, but may produce a broken library.
9707: no_undefined_flag=' ${wl}-bernotok'
9708: allow_undefined_flag=' ${wl}-berok'
9709: if test "$with_gnu_ld" = yes; then
9710: # We only use this code for GNU lds that support --whole-archive.
9711: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9712: else
9713: # Exported symbols can be pulled into shared objects from archives
9714: whole_archive_flag_spec='$convenience'
9715: fi
9716: archive_cmds_need_lc=yes
9717: # This is similar to how AIX traditionally builds its shared libraries.
9718: 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'
9719: fi
9720: fi
9721: ;;
9722:
9723: amigaos*)
9724: case $host_cpu in
9725: powerpc)
9726: # see comment about AmigaOS4 .so support
9727: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728: archive_expsym_cmds=''
9729: ;;
9730: m68k)
9731: 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)'
9732: hardcode_libdir_flag_spec='-L$libdir'
9733: hardcode_minus_L=yes
9734: ;;
9735: esac
9736: ;;
9737:
9738: bsdi[45]*)
9739: export_dynamic_flag_spec=-rdynamic
9740: ;;
9741:
9742: cygwin* | mingw* | pw32* | cegcc*)
9743: # When not using gcc, we currently assume that we are using
9744: # Microsoft Visual C++.
9745: # hardcode_libdir_flag_spec is actually meaningless, as there is
9746: # no search path for DLLs.
1.1.1.2 misho 9747: case $cc_basename in
9748: cl*)
9749: # Native MSVC
9750: hardcode_libdir_flag_spec=' '
9751: allow_undefined_flag=unsupported
9752: always_export_symbols=yes
9753: file_list_spec='@'
9754: # Tell ltmain to make .lib files, not .a files.
9755: libext=lib
9756: # Tell ltmain to make .dll files, not .so files.
9757: shrext_cmds=".dll"
9758: # FIXME: Setting linknames here is a bad hack.
9759: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9760: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9761: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9762: else
9763: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9764: fi~
9765: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9766: linknames='
9767: # The linker will not automatically build a static lib if we build a DLL.
9768: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9769: enable_shared_with_static_runtimes=yes
9770: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9771: # Don't use ranlib
9772: old_postinstall_cmds='chmod 644 $oldlib'
9773: postlink_cmds='lt_outputfile="@OUTPUT@"~
9774: lt_tool_outputfile="@TOOL_OUTPUT@"~
9775: case $lt_outputfile in
9776: *.exe|*.EXE) ;;
9777: *)
9778: lt_outputfile="$lt_outputfile.exe"
9779: lt_tool_outputfile="$lt_tool_outputfile.exe"
9780: ;;
9781: esac~
9782: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9783: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9784: $RM "$lt_outputfile.manifest";
9785: fi'
9786: ;;
9787: *)
9788: # Assume MSVC wrapper
9789: hardcode_libdir_flag_spec=' '
9790: allow_undefined_flag=unsupported
9791: # Tell ltmain to make .lib files, not .a files.
9792: libext=lib
9793: # Tell ltmain to make .dll files, not .so files.
9794: shrext_cmds=".dll"
9795: # FIXME: Setting linknames here is a bad hack.
9796: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9797: # The linker will automatically build a .lib file if we build a DLL.
9798: old_archive_from_new_cmds='true'
9799: # FIXME: Should let the user specify the lib program.
9800: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9801: enable_shared_with_static_runtimes=yes
9802: ;;
9803: esac
1.1 misho 9804: ;;
9805:
9806: darwin* | rhapsody*)
9807:
9808:
9809: archive_cmds_need_lc=no
9810: hardcode_direct=no
9811: hardcode_automatic=yes
9812: hardcode_shlibpath_var=unsupported
9813: if test "$lt_cv_ld_force_load" = "yes"; then
9814: 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\"`'
9815: else
9816: whole_archive_flag_spec=''
9817: fi
9818: link_all_deplibs=yes
9819: allow_undefined_flag="$_lt_dar_allow_undefined"
9820: case $cc_basename in
9821: ifort*) _lt_dar_can_shared=yes ;;
9822: *) _lt_dar_can_shared=$GCC ;;
9823: esac
9824: if test "$_lt_dar_can_shared" = "yes"; then
9825: output_verbose_link_cmd=func_echo_all
9826: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9827: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9828: 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}"
9829: 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}"
9830:
9831: else
9832: ld_shlibs=no
9833: fi
9834:
9835: ;;
9836:
9837: dgux*)
9838: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839: hardcode_libdir_flag_spec='-L$libdir'
9840: hardcode_shlibpath_var=no
9841: ;;
9842:
9843: freebsd1*)
9844: ld_shlibs=no
9845: ;;
9846:
9847: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9848: # support. Future versions do this automatically, but an explicit c++rt0.o
9849: # does not break anything, and helps significantly (at the cost of a little
9850: # extra space).
9851: freebsd2.2*)
9852: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9853: hardcode_libdir_flag_spec='-R$libdir'
9854: hardcode_direct=yes
9855: hardcode_shlibpath_var=no
9856: ;;
9857:
9858: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9859: freebsd2*)
9860: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861: hardcode_direct=yes
9862: hardcode_minus_L=yes
9863: hardcode_shlibpath_var=no
9864: ;;
9865:
9866: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9867: freebsd* | dragonfly*)
1.1.1.2 misho 9868: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9869: hardcode_libdir_flag_spec='-R$libdir'
9870: hardcode_direct=yes
9871: hardcode_shlibpath_var=no
9872: ;;
9873:
9874: hpux9*)
9875: if test "$GCC" = yes; then
1.1.1.2 misho 9876: 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 9877: else
9878: 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'
9879: fi
9880: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9881: hardcode_libdir_separator=:
9882: hardcode_direct=yes
9883:
9884: # hardcode_minus_L: Not really in the search PATH,
9885: # but as the default location of the library.
9886: hardcode_minus_L=yes
9887: export_dynamic_flag_spec='${wl}-E'
9888: ;;
9889:
9890: hpux10*)
9891: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1.1.1.2 misho 9892: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9893: else
9894: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895: fi
9896: if test "$with_gnu_ld" = no; then
9897: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9898: hardcode_libdir_flag_spec_ld='+b $libdir'
9899: hardcode_libdir_separator=:
9900: hardcode_direct=yes
9901: hardcode_direct_absolute=yes
9902: export_dynamic_flag_spec='${wl}-E'
9903: # hardcode_minus_L: Not really in the search PATH,
9904: # but as the default location of the library.
9905: hardcode_minus_L=yes
9906: fi
9907: ;;
9908:
9909: hpux11*)
9910: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911: case $host_cpu in
9912: hppa*64*)
9913: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914: ;;
9915: ia64*)
1.1.1.2 misho 9916: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9917: ;;
9918: *)
1.1.1.2 misho 9919: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9920: ;;
9921: esac
9922: else
9923: case $host_cpu in
9924: hppa*64*)
9925: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9926: ;;
9927: ia64*)
9928: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9929: ;;
9930: *)
9931:
9932: # Older versions of the 11.00 compiler do not understand -b yet
9933: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9935: $as_echo_n "checking if $CC understands -b... " >&6; }
1.1.1.2 misho 9936: if ${lt_cv_prog_compiler__b+:} false; then :
1.1 misho 9937: $as_echo_n "(cached) " >&6
9938: else
9939: lt_cv_prog_compiler__b=no
9940: save_LDFLAGS="$LDFLAGS"
9941: LDFLAGS="$LDFLAGS -b"
9942: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9943: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9944: # The linker can only warn and ignore the option if not recognized
9945: # So say no if there are warnings
9946: if test -s conftest.err; then
9947: # Append any errors to the config.log.
9948: cat conftest.err 1>&5
9949: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9950: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9951: if diff conftest.exp conftest.er2 >/dev/null; then
9952: lt_cv_prog_compiler__b=yes
9953: fi
9954: else
9955: lt_cv_prog_compiler__b=yes
9956: fi
9957: fi
9958: $RM -r conftest*
9959: LDFLAGS="$save_LDFLAGS"
9960:
9961: fi
9962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9963: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9964:
9965: if test x"$lt_cv_prog_compiler__b" = xyes; then
9966: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9967: else
9968: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9969: fi
9970:
9971: ;;
9972: esac
9973: fi
9974: if test "$with_gnu_ld" = no; then
9975: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976: hardcode_libdir_separator=:
9977:
9978: case $host_cpu in
9979: hppa*64*|ia64*)
9980: hardcode_direct=no
9981: hardcode_shlibpath_var=no
9982: ;;
9983: *)
9984: hardcode_direct=yes
9985: hardcode_direct_absolute=yes
9986: export_dynamic_flag_spec='${wl}-E'
9987:
9988: # hardcode_minus_L: Not really in the search PATH,
9989: # but as the default location of the library.
9990: hardcode_minus_L=yes
9991: ;;
9992: esac
9993: fi
9994: ;;
9995:
9996: irix5* | irix6* | nonstopux*)
9997: if test "$GCC" = yes; then
1.1.1.2 misho 9998: 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 9999: # Try to use the -exported_symbol ld option, if it does not
10000: # work, assume that -exports_file does not work either and
10001: # implicitly export all symbols.
1.1.1.2 misho 10002: # This should be the same for all languages, so no per-tag cache variable.
10003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10004: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10005: if ${lt_cv_irix_exported_symbol+:} false; then :
10006: $as_echo_n "(cached) " >&6
10007: else
10008: save_LDFLAGS="$LDFLAGS"
10009: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10010: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10011: /* end confdefs.h. */
1.1.1.2 misho 10012: int foo (void) { return 0; }
1.1 misho 10013: _ACEOF
10014: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 10015: lt_cv_irix_exported_symbol=yes
10016: else
10017: lt_cv_irix_exported_symbol=no
1.1 misho 10018: fi
10019: rm -f core conftest.err conftest.$ac_objext \
10020: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 10021: LDFLAGS="$save_LDFLAGS"
10022: fi
10023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10024: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10025: if test "$lt_cv_irix_exported_symbol" = yes; then
10026: 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'
10027: fi
1.1 misho 10028: else
10029: 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'
10030: 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'
10031: fi
10032: archive_cmds_need_lc='no'
10033: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034: hardcode_libdir_separator=:
10035: inherit_rpath=yes
10036: link_all_deplibs=yes
10037: ;;
10038:
10039: netbsd*)
10040: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10041: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10042: else
10043: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10044: fi
10045: hardcode_libdir_flag_spec='-R$libdir'
10046: hardcode_direct=yes
10047: hardcode_shlibpath_var=no
10048: ;;
10049:
10050: newsos6)
10051: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10052: hardcode_direct=yes
10053: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10054: hardcode_libdir_separator=:
10055: hardcode_shlibpath_var=no
10056: ;;
10057:
10058: *nto* | *qnx*)
10059: ;;
10060:
10061: openbsd*)
10062: if test -f /usr/libexec/ld.so; then
10063: hardcode_direct=yes
10064: hardcode_shlibpath_var=no
10065: hardcode_direct_absolute=yes
10066: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10067: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10068: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10069: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10070: export_dynamic_flag_spec='${wl}-E'
10071: else
10072: case $host_os in
10073: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10074: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10075: hardcode_libdir_flag_spec='-R$libdir'
10076: ;;
10077: *)
10078: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10079: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080: ;;
10081: esac
10082: fi
10083: else
10084: ld_shlibs=no
10085: fi
10086: ;;
10087:
10088: os2*)
10089: hardcode_libdir_flag_spec='-L$libdir'
10090: hardcode_minus_L=yes
10091: allow_undefined_flag=unsupported
10092: 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'
10093: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10094: ;;
10095:
10096: osf3*)
10097: if test "$GCC" = yes; then
10098: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10099: 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'
10100: else
10101: allow_undefined_flag=' -expect_unresolved \*'
10102: 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'
10103: fi
10104: archive_cmds_need_lc='no'
10105: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10106: hardcode_libdir_separator=:
10107: ;;
10108:
10109: osf4* | osf5*) # as osf3* with the addition of -msym flag
10110: if test "$GCC" = yes; then
10111: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 misho 10112: 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 10113: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114: else
10115: allow_undefined_flag=' -expect_unresolved \*'
10116: 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'
10117: 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~
10118: $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'
10119:
10120: # Both c and cxx compiler support -rpath directly
10121: hardcode_libdir_flag_spec='-rpath $libdir'
10122: fi
10123: archive_cmds_need_lc='no'
10124: hardcode_libdir_separator=:
10125: ;;
10126:
10127: solaris*)
10128: no_undefined_flag=' -z defs'
10129: if test "$GCC" = yes; then
10130: wlarc='${wl}'
1.1.1.2 misho 10131: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 10132: 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 10133: $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 10134: else
10135: case `$CC -V 2>&1` in
10136: *"Compilers 5.0"*)
10137: wlarc=''
10138: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10140: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10141: ;;
10142: *)
10143: wlarc='${wl}'
10144: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10145: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10146: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10147: ;;
10148: esac
10149: fi
10150: hardcode_libdir_flag_spec='-R$libdir'
10151: hardcode_shlibpath_var=no
10152: case $host_os in
10153: solaris2.[0-5] | solaris2.[0-5].*) ;;
10154: *)
10155: # The compiler driver will combine and reorder linker options,
10156: # but understands `-z linker_flag'. GCC discards it without `$wl',
10157: # but is careful enough not to reorder.
10158: # Supported since Solaris 2.6 (maybe 2.5.1?)
10159: if test "$GCC" = yes; then
10160: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10161: else
10162: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10163: fi
10164: ;;
10165: esac
10166: link_all_deplibs=yes
10167: ;;
10168:
10169: sunos4*)
10170: if test "x$host_vendor" = xsequent; then
10171: # Use $CC to link under sequent, because it throws in some extra .o
10172: # files that make .init and .fini sections work.
10173: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10174: else
10175: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10176: fi
10177: hardcode_libdir_flag_spec='-L$libdir'
10178: hardcode_direct=yes
10179: hardcode_minus_L=yes
10180: hardcode_shlibpath_var=no
10181: ;;
10182:
10183: sysv4)
10184: case $host_vendor in
10185: sni)
10186: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187: hardcode_direct=yes # is this really true???
10188: ;;
10189: siemens)
10190: ## LD is ld it makes a PLAMLIB
10191: ## CC just makes a GrossModule.
10192: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10193: reload_cmds='$CC -r -o $output$reload_objs'
10194: hardcode_direct=no
10195: ;;
10196: motorola)
10197: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10199: ;;
10200: esac
10201: runpath_var='LD_RUN_PATH'
10202: hardcode_shlibpath_var=no
10203: ;;
10204:
10205: sysv4.3*)
10206: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207: hardcode_shlibpath_var=no
10208: export_dynamic_flag_spec='-Bexport'
10209: ;;
10210:
10211: sysv4*MP*)
10212: if test -d /usr/nec; then
10213: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214: hardcode_shlibpath_var=no
10215: runpath_var=LD_RUN_PATH
10216: hardcode_runpath_var=yes
10217: ld_shlibs=yes
10218: fi
10219: ;;
10220:
10221: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10222: no_undefined_flag='${wl}-z,text'
10223: archive_cmds_need_lc=no
10224: hardcode_shlibpath_var=no
10225: runpath_var='LD_RUN_PATH'
10226:
10227: if test "$GCC" = yes; then
10228: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10229: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230: else
10231: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233: fi
10234: ;;
10235:
10236: sysv5* | sco3.2v5* | sco5v6*)
10237: # Note: We can NOT use -z defs as we might desire, because we do not
10238: # link with -lc, and that would cause any symbols used from libc to
10239: # always be unresolved, which means just about no library would
10240: # ever link correctly. If we're not using GNU ld we use -z text
10241: # though, which does catch some bad symbols but isn't as heavy-handed
10242: # as -z defs.
10243: no_undefined_flag='${wl}-z,text'
10244: allow_undefined_flag='${wl}-z,nodefs'
10245: archive_cmds_need_lc=no
10246: hardcode_shlibpath_var=no
10247: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10248: hardcode_libdir_separator=':'
10249: link_all_deplibs=yes
10250: export_dynamic_flag_spec='${wl}-Bexport'
10251: runpath_var='LD_RUN_PATH'
10252:
10253: if test "$GCC" = yes; then
10254: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256: else
10257: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259: fi
10260: ;;
10261:
10262: uts4*)
10263: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264: hardcode_libdir_flag_spec='-L$libdir'
10265: hardcode_shlibpath_var=no
10266: ;;
10267:
10268: *)
10269: ld_shlibs=no
10270: ;;
10271: esac
10272:
10273: if test x$host_vendor = xsni; then
10274: case $host in
10275: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10276: export_dynamic_flag_spec='${wl}-Blargedynsym'
10277: ;;
10278: esac
10279: fi
10280: fi
10281:
10282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10283: $as_echo "$ld_shlibs" >&6; }
10284: test "$ld_shlibs" = no && can_build_shared=no
10285:
10286: with_gnu_ld=$with_gnu_ld
10287:
10288:
10289:
10290:
10291:
10292:
10293:
10294:
10295:
10296:
10297:
10298:
10299:
10300:
10301:
10302: #
10303: # Do we need to explicitly link libc?
10304: #
10305: case "x$archive_cmds_need_lc" in
10306: x|xyes)
10307: # Assume -lc should be added
10308: archive_cmds_need_lc=yes
10309:
10310: if test "$enable_shared" = yes && test "$GCC" = yes; then
10311: case $archive_cmds in
10312: *'~'*)
10313: # FIXME: we may have to deal with multi-command sequences.
10314: ;;
10315: '$CC '*)
10316: # Test whether the compiler implicitly links with -lc since on some
10317: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10318: # to ld, don't add -lc before -lgcc.
10319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10320: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.1.2 misho 10321: if ${lt_cv_archive_cmds_need_lc+:} false; then :
1.1 misho 10322: $as_echo_n "(cached) " >&6
10323: else
10324: $RM conftest*
10325: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10326:
10327: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10328: (eval $ac_compile) 2>&5
10329: ac_status=$?
10330: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10331: test $ac_status = 0; } 2>conftest.err; then
10332: soname=conftest
10333: lib=conftest
10334: libobjs=conftest.$ac_objext
10335: deplibs=
10336: wl=$lt_prog_compiler_wl
10337: pic_flag=$lt_prog_compiler_pic
10338: compiler_flags=-v
10339: linker_flags=-v
10340: verstring=
10341: output_objdir=.
10342: libname=conftest
10343: lt_save_allow_undefined_flag=$allow_undefined_flag
10344: allow_undefined_flag=
10345: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10346: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10347: ac_status=$?
10348: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10349: test $ac_status = 0; }
10350: then
10351: lt_cv_archive_cmds_need_lc=no
10352: else
10353: lt_cv_archive_cmds_need_lc=yes
10354: fi
10355: allow_undefined_flag=$lt_save_allow_undefined_flag
10356: else
10357: cat conftest.err 1>&5
10358: fi
10359: $RM conftest*
10360:
10361: fi
10362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10363: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10364: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10365: ;;
10366: esac
10367: fi
10368: ;;
10369: esac
10370:
10371:
10372:
10373:
10374:
10375:
10376:
10377:
10378:
10379:
10380:
10381:
10382:
10383:
10384:
10385:
10386:
10387:
10388:
10389:
10390:
10391:
10392:
10393:
10394:
10395:
10396:
10397:
10398:
10399:
10400:
10401:
10402:
10403:
10404:
10405:
10406:
10407:
10408:
10409:
10410:
10411:
10412:
10413:
10414:
10415:
10416:
10417:
10418:
10419:
10420:
10421:
10422:
10423:
10424:
10425:
10426:
10427:
10428:
10429:
10430:
10431:
10432:
10433:
10434:
10435:
10436:
10437:
10438:
10439:
10440:
10441:
10442:
10443:
10444:
10445:
10446:
10447:
10448:
10449:
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458:
10459:
10460:
10461:
10462:
10463:
10464:
10465:
10466:
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
10483:
10484:
10485:
10486:
10487:
10488:
10489:
10490:
10491:
10492:
10493:
10494:
10495:
10496:
10497:
10498:
10499:
10500:
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10528: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10529:
10530: if test "$GCC" = yes; then
10531: case $host_os in
10532: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10533: *) lt_awk_arg="/^libraries:/" ;;
10534: esac
10535: case $host_os in
10536: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10537: *) lt_sed_strip_eq="s,=/,/,g" ;;
10538: esac
10539: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10540: case $lt_search_path_spec in
10541: *\;*)
10542: # if the path contains ";" then we assume it to be the separator
10543: # otherwise default to the standard path separator (i.e. ":") - it is
10544: # assumed that no part of a normal pathname contains ";" but that should
10545: # okay in the real world where ";" in dirpaths is itself problematic.
10546: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10547: ;;
10548: *)
10549: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10550: ;;
10551: esac
10552: # Ok, now we have the path, separated by spaces, we can step through it
10553: # and add multilib dir if necessary.
10554: lt_tmp_lt_search_path_spec=
10555: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10556: for lt_sys_path in $lt_search_path_spec; do
10557: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10558: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10559: else
10560: test -d "$lt_sys_path" && \
10561: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10562: fi
10563: done
10564: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10565: BEGIN {RS=" "; FS="/|\n";} {
10566: lt_foo="";
10567: lt_count=0;
10568: for (lt_i = NF; lt_i > 0; lt_i--) {
10569: if ($lt_i != "" && $lt_i != ".") {
10570: if ($lt_i == "..") {
10571: lt_count++;
10572: } else {
10573: if (lt_count == 0) {
10574: lt_foo="/" $lt_i lt_foo;
10575: } else {
10576: lt_count--;
10577: }
10578: }
10579: }
10580: }
10581: if (lt_foo != "") { lt_freq[lt_foo]++; }
10582: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10583: }'`
10584: # AWK program above erroneously prepends '/' to C:/dos/paths
10585: # for these hosts.
10586: case $host_os in
10587: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10588: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10589: esac
10590: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10591: else
10592: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10593: fi
10594: library_names_spec=
10595: libname_spec='lib$name'
10596: soname_spec=
10597: shrext_cmds=".so"
10598: postinstall_cmds=
10599: postuninstall_cmds=
10600: finish_cmds=
10601: finish_eval=
10602: shlibpath_var=
10603: shlibpath_overrides_runpath=unknown
10604: version_type=none
10605: dynamic_linker="$host_os ld.so"
10606: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10607: need_lib_prefix=unknown
10608: hardcode_into_libs=no
10609:
10610: # when you set need_version to no, make sure it does not cause -set_version
10611: # flags to be left without arguments
10612: need_version=unknown
10613:
10614: case $host_os in
10615: aix3*)
10616: version_type=linux
10617: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10618: shlibpath_var=LIBPATH
10619:
10620: # AIX 3 has no versioning support, so we append a major version to the name.
10621: soname_spec='${libname}${release}${shared_ext}$major'
10622: ;;
10623:
10624: aix[4-9]*)
10625: version_type=linux
10626: need_lib_prefix=no
10627: need_version=no
10628: hardcode_into_libs=yes
10629: if test "$host_cpu" = ia64; then
10630: # AIX 5 supports IA64
10631: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10632: shlibpath_var=LD_LIBRARY_PATH
10633: else
10634: # With GCC up to 2.95.x, collect2 would create an import file
10635: # for dependence libraries. The import file would start with
10636: # the line `#! .'. This would cause the generated library to
10637: # depend on `.', always an invalid library. This was fixed in
10638: # development snapshots of GCC prior to 3.0.
10639: case $host_os in
10640: aix4 | aix4.[01] | aix4.[01].*)
10641: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10642: echo ' yes '
10643: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10644: :
10645: else
10646: can_build_shared=no
10647: fi
10648: ;;
10649: esac
10650: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10651: # soname into executable. Probably we can add versioning support to
10652: # collect2, so additional links can be useful in future.
10653: if test "$aix_use_runtimelinking" = yes; then
10654: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10655: # instead of lib<name>.a to let people know that these are not
10656: # typical AIX shared libraries.
10657: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658: else
10659: # We preserve .a as extension for shared libraries through AIX4.2
10660: # and later when we are not doing run time linking.
10661: library_names_spec='${libname}${release}.a $libname.a'
10662: soname_spec='${libname}${release}${shared_ext}$major'
10663: fi
10664: shlibpath_var=LIBPATH
10665: fi
10666: ;;
10667:
10668: amigaos*)
10669: case $host_cpu in
10670: powerpc)
10671: # Since July 2007 AmigaOS4 officially supports .so libraries.
10672: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10673: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674: ;;
10675: m68k)
10676: library_names_spec='$libname.ixlibrary $libname.a'
10677: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10678: 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'
10679: ;;
10680: esac
10681: ;;
10682:
10683: beos*)
10684: library_names_spec='${libname}${shared_ext}'
10685: dynamic_linker="$host_os ld.so"
10686: shlibpath_var=LIBRARY_PATH
10687: ;;
10688:
10689: bsdi[45]*)
10690: version_type=linux
10691: need_version=no
10692: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693: soname_spec='${libname}${release}${shared_ext}$major'
10694: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10695: shlibpath_var=LD_LIBRARY_PATH
10696: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10697: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10698: # the default ld.so.conf also contains /usr/contrib/lib and
10699: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10700: # libtool to hard-code these into programs
10701: ;;
10702:
10703: cygwin* | mingw* | pw32* | cegcc*)
10704: version_type=windows
10705: shrext_cmds=".dll"
10706: need_version=no
10707: need_lib_prefix=no
10708:
1.1.1.2 misho 10709: case $GCC,$cc_basename in
10710: yes,*)
10711: # gcc
1.1 misho 10712: library_names_spec='$libname.dll.a'
10713: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714: postinstall_cmds='base_file=`basename \${file}`~
10715: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716: dldir=$destdir/`dirname \$dlpath`~
10717: test -d \$dldir || mkdir -p \$dldir~
10718: $install_prog $dir/$dlname \$dldir/$dlname~
10719: chmod a+x \$dldir/$dlname~
10720: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10722: fi'
10723: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724: dlpath=$dir/\$dldll~
10725: $RM \$dlpath'
10726: shlibpath_overrides_runpath=yes
10727:
10728: case $host_os in
10729: cygwin*)
10730: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10732:
10733: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10734: ;;
10735: mingw* | cegcc*)
10736: # MinGW DLLs use traditional 'lib' prefix
10737: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738: ;;
10739: pw32*)
10740: # pw32 DLLs use 'pw' prefix rather than 'lib'
10741: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742: ;;
10743: esac
1.1.1.2 misho 10744: dynamic_linker='Win32 ld.exe'
10745: ;;
10746:
10747: *,cl*)
10748: # Native MSVC
10749: libname_spec='$name'
10750: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751: library_names_spec='${libname}.dll.lib'
10752:
10753: case $build_os in
10754: mingw*)
10755: sys_lib_search_path_spec=
10756: lt_save_ifs=$IFS
10757: IFS=';'
10758: for lt_path in $LIB
10759: do
10760: IFS=$lt_save_ifs
10761: # Let DOS variable expansion print the short 8.3 style file name.
10762: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10763: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10764: done
10765: IFS=$lt_save_ifs
10766: # Convert to MSYS style.
10767: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10768: ;;
10769: cygwin*)
10770: # Convert to unix form, then to dos form, then back to unix form
10771: # but this time dos style (no spaces!) so that the unix form looks
10772: # like /cygdrive/c/PROGRA~1:/cygdr...
10773: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10774: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10775: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10776: ;;
10777: *)
10778: sys_lib_search_path_spec="$LIB"
10779: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10780: # It is most probably a Windows format PATH.
10781: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10782: else
10783: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10784: fi
10785: # FIXME: find the short name or the path components, as spaces are
10786: # common. (e.g. "Program Files" -> "PROGRA~1")
10787: ;;
10788: esac
10789:
10790: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10791: postinstall_cmds='base_file=`basename \${file}`~
10792: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10793: dldir=$destdir/`dirname \$dlpath`~
10794: test -d \$dldir || mkdir -p \$dldir~
10795: $install_prog $dir/$dlname \$dldir/$dlname'
10796: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10797: dlpath=$dir/\$dldll~
10798: $RM \$dlpath'
10799: shlibpath_overrides_runpath=yes
10800: dynamic_linker='Win32 link.exe'
1.1 misho 10801: ;;
10802:
10803: *)
1.1.1.2 misho 10804: # Assume MSVC wrapper
1.1 misho 10805: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.1.1.2 misho 10806: dynamic_linker='Win32 ld.exe'
1.1 misho 10807: ;;
10808: esac
10809: # FIXME: first we should search . and the directory the executable is in
10810: shlibpath_var=PATH
10811: ;;
10812:
10813: darwin* | rhapsody*)
10814: dynamic_linker="$host_os dyld"
10815: version_type=darwin
10816: need_lib_prefix=no
10817: need_version=no
10818: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10819: soname_spec='${libname}${release}${major}$shared_ext'
10820: shlibpath_overrides_runpath=yes
10821: shlibpath_var=DYLD_LIBRARY_PATH
10822: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10823:
10824: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10825: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10826: ;;
10827:
10828: dgux*)
10829: version_type=linux
10830: need_lib_prefix=no
10831: need_version=no
10832: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10833: soname_spec='${libname}${release}${shared_ext}$major'
10834: shlibpath_var=LD_LIBRARY_PATH
10835: ;;
10836:
10837: freebsd1*)
10838: dynamic_linker=no
10839: ;;
10840:
10841: freebsd* | dragonfly*)
10842: # DragonFly does not have aout. When/if they implement a new
10843: # versioning mechanism, adjust this.
10844: if test -x /usr/bin/objformat; then
10845: objformat=`/usr/bin/objformat`
10846: else
10847: case $host_os in
10848: freebsd[123]*) objformat=aout ;;
10849: *) objformat=elf ;;
10850: esac
10851: fi
10852: version_type=freebsd-$objformat
10853: case $version_type in
10854: freebsd-elf*)
10855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10856: need_version=no
10857: need_lib_prefix=no
10858: ;;
10859: freebsd-*)
10860: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10861: need_version=yes
10862: ;;
10863: esac
10864: shlibpath_var=LD_LIBRARY_PATH
10865: case $host_os in
10866: freebsd2*)
10867: shlibpath_overrides_runpath=yes
10868: ;;
10869: freebsd3.[01]* | freebsdelf3.[01]*)
10870: shlibpath_overrides_runpath=yes
10871: hardcode_into_libs=yes
10872: ;;
10873: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10874: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10875: shlibpath_overrides_runpath=no
10876: hardcode_into_libs=yes
10877: ;;
10878: *) # from 4.6 on, and DragonFly
10879: shlibpath_overrides_runpath=yes
10880: hardcode_into_libs=yes
10881: ;;
10882: esac
10883: ;;
10884:
10885: gnu*)
10886: version_type=linux
10887: need_lib_prefix=no
10888: need_version=no
10889: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10890: soname_spec='${libname}${release}${shared_ext}$major'
10891: shlibpath_var=LD_LIBRARY_PATH
10892: hardcode_into_libs=yes
10893: ;;
10894:
10895: haiku*)
10896: version_type=linux
10897: need_lib_prefix=no
10898: need_version=no
10899: dynamic_linker="$host_os runtime_loader"
10900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10901: soname_spec='${libname}${release}${shared_ext}$major'
10902: shlibpath_var=LIBRARY_PATH
10903: shlibpath_overrides_runpath=yes
10904: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10905: hardcode_into_libs=yes
10906: ;;
10907:
10908: hpux9* | hpux10* | hpux11*)
10909: # Give a soname corresponding to the major version so that dld.sl refuses to
10910: # link against other versions.
10911: version_type=sunos
10912: need_lib_prefix=no
10913: need_version=no
10914: case $host_cpu in
10915: ia64*)
10916: shrext_cmds='.so'
10917: hardcode_into_libs=yes
10918: dynamic_linker="$host_os dld.so"
10919: shlibpath_var=LD_LIBRARY_PATH
10920: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922: soname_spec='${libname}${release}${shared_ext}$major'
10923: if test "X$HPUX_IA64_MODE" = X32; then
10924: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10925: else
10926: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10927: fi
10928: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10929: ;;
10930: hppa*64*)
10931: shrext_cmds='.sl'
10932: hardcode_into_libs=yes
10933: dynamic_linker="$host_os dld.sl"
10934: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10935: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937: soname_spec='${libname}${release}${shared_ext}$major'
10938: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10939: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10940: ;;
10941: *)
10942: shrext_cmds='.sl'
10943: dynamic_linker="$host_os dld.sl"
10944: shlibpath_var=SHLIB_PATH
10945: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10946: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947: soname_spec='${libname}${release}${shared_ext}$major'
10948: ;;
10949: esac
10950: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10951: postinstall_cmds='chmod 555 $lib'
10952: # or fails outright, so override atomically:
10953: install_override_mode=555
10954: ;;
10955:
10956: interix[3-9]*)
10957: version_type=linux
10958: need_lib_prefix=no
10959: need_version=no
10960: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10961: soname_spec='${libname}${release}${shared_ext}$major'
10962: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10963: shlibpath_var=LD_LIBRARY_PATH
10964: shlibpath_overrides_runpath=no
10965: hardcode_into_libs=yes
10966: ;;
10967:
10968: irix5* | irix6* | nonstopux*)
10969: case $host_os in
10970: nonstopux*) version_type=nonstopux ;;
10971: *)
10972: if test "$lt_cv_prog_gnu_ld" = yes; then
10973: version_type=linux
10974: else
10975: version_type=irix
10976: fi ;;
10977: esac
10978: need_lib_prefix=no
10979: need_version=no
10980: soname_spec='${libname}${release}${shared_ext}$major'
10981: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10982: case $host_os in
10983: irix5* | nonstopux*)
10984: libsuff= shlibsuff=
10985: ;;
10986: *)
10987: case $LD in # libtool.m4 will add one of these switches to LD
10988: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10989: libsuff= shlibsuff= libmagic=32-bit;;
10990: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10991: libsuff=32 shlibsuff=N32 libmagic=N32;;
10992: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10993: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10994: *) libsuff= shlibsuff= libmagic=never-match;;
10995: esac
10996: ;;
10997: esac
10998: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10999: shlibpath_overrides_runpath=no
11000: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11001: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11002: hardcode_into_libs=yes
11003: ;;
11004:
11005: # No shared lib support for Linux oldld, aout, or coff.
11006: linux*oldld* | linux*aout* | linux*coff*)
11007: dynamic_linker=no
11008: ;;
11009:
11010: # This must be Linux ELF.
11011: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11012: version_type=linux
11013: need_lib_prefix=no
11014: need_version=no
11015: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016: soname_spec='${libname}${release}${shared_ext}$major'
11017: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11018: shlibpath_var=LD_LIBRARY_PATH
11019: shlibpath_overrides_runpath=no
11020:
11021: # Some binutils ld are patched to set DT_RUNPATH
1.1.1.2 misho 11022: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
1.1 misho 11023: $as_echo_n "(cached) " >&6
11024: else
11025: lt_cv_shlibpath_overrides_runpath=no
11026: save_LDFLAGS=$LDFLAGS
11027: save_libdir=$libdir
11028: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11029: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11030: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031: /* end confdefs.h. */
11032:
11033: int
11034: main ()
11035: {
11036:
11037: ;
11038: return 0;
11039: }
11040: _ACEOF
11041: if ac_fn_c_try_link "$LINENO"; then :
11042: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11043: lt_cv_shlibpath_overrides_runpath=yes
11044: fi
11045: fi
11046: rm -f core conftest.err conftest.$ac_objext \
11047: conftest$ac_exeext conftest.$ac_ext
11048: LDFLAGS=$save_LDFLAGS
11049: libdir=$save_libdir
11050:
11051: fi
11052:
11053: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11054:
11055: # This implies no fast_install, which is unacceptable.
11056: # Some rework will be needed to allow for fast_install
11057: # before this can be enabled.
11058: hardcode_into_libs=yes
11059:
11060: # Add ABI-specific directories to the system library path.
11061: sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11062:
11063: # Append ld.so.conf contents to the search path
11064: if test -f /etc/ld.so.conf; then
11065: 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' ' '`
11066: sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11067:
11068: fi
11069:
11070: # We used to test for /lib/ld.so.1 and disable shared libraries on
11071: # powerpc, because MkLinux only supported shared libraries with the
11072: # GNU dynamic linker. Since this was broken with cross compilers,
11073: # most powerpc-linux boxes support dynamic linking these days and
11074: # people can always --disable-shared, the test was removed, and we
11075: # assume the GNU/Linux dynamic linker is in use.
11076: dynamic_linker='GNU/Linux ld.so'
11077: ;;
11078:
11079: netbsd*)
11080: version_type=sunos
11081: need_lib_prefix=no
11082: need_version=no
11083: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11085: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11086: dynamic_linker='NetBSD (a.out) ld.so'
11087: else
11088: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11089: soname_spec='${libname}${release}${shared_ext}$major'
11090: dynamic_linker='NetBSD ld.elf_so'
11091: fi
11092: shlibpath_var=LD_LIBRARY_PATH
11093: shlibpath_overrides_runpath=yes
11094: hardcode_into_libs=yes
11095: ;;
11096:
11097: newsos6)
11098: version_type=linux
11099: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100: shlibpath_var=LD_LIBRARY_PATH
11101: shlibpath_overrides_runpath=yes
11102: ;;
11103:
11104: *nto* | *qnx*)
11105: version_type=qnx
11106: need_lib_prefix=no
11107: need_version=no
11108: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109: soname_spec='${libname}${release}${shared_ext}$major'
11110: shlibpath_var=LD_LIBRARY_PATH
11111: shlibpath_overrides_runpath=no
11112: hardcode_into_libs=yes
11113: dynamic_linker='ldqnx.so'
11114: ;;
11115:
11116: openbsd*)
11117: version_type=sunos
11118: sys_lib_dlsearch_path_spec="/usr/lib"
11119: need_lib_prefix=no
11120: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11121: case $host_os in
11122: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11123: *) need_version=no ;;
11124: esac
11125: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11126: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11127: shlibpath_var=LD_LIBRARY_PATH
11128: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11129: case $host_os in
11130: openbsd2.[89] | openbsd2.[89].*)
11131: shlibpath_overrides_runpath=no
11132: ;;
11133: *)
11134: shlibpath_overrides_runpath=yes
11135: ;;
11136: esac
11137: else
11138: shlibpath_overrides_runpath=yes
11139: fi
11140: ;;
11141:
11142: os2*)
11143: libname_spec='$name'
11144: shrext_cmds=".dll"
11145: need_lib_prefix=no
11146: library_names_spec='$libname${shared_ext} $libname.a'
11147: dynamic_linker='OS/2 ld.exe'
11148: shlibpath_var=LIBPATH
11149: ;;
11150:
11151: osf3* | osf4* | osf5*)
11152: version_type=osf
11153: need_lib_prefix=no
11154: need_version=no
11155: soname_spec='${libname}${release}${shared_ext}$major'
11156: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157: shlibpath_var=LD_LIBRARY_PATH
11158: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11159: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11160: ;;
11161:
11162: rdos*)
11163: dynamic_linker=no
11164: ;;
11165:
11166: solaris*)
11167: version_type=linux
11168: need_lib_prefix=no
11169: need_version=no
11170: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171: soname_spec='${libname}${release}${shared_ext}$major'
11172: shlibpath_var=LD_LIBRARY_PATH
11173: shlibpath_overrides_runpath=yes
11174: hardcode_into_libs=yes
11175: # ldd complains unless libraries are executable
11176: postinstall_cmds='chmod +x $lib'
11177: ;;
11178:
11179: sunos4*)
11180: version_type=sunos
11181: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11182: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11183: shlibpath_var=LD_LIBRARY_PATH
11184: shlibpath_overrides_runpath=yes
11185: if test "$with_gnu_ld" = yes; then
11186: need_lib_prefix=no
11187: fi
11188: need_version=yes
11189: ;;
11190:
11191: sysv4 | sysv4.3*)
11192: version_type=linux
11193: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194: soname_spec='${libname}${release}${shared_ext}$major'
11195: shlibpath_var=LD_LIBRARY_PATH
11196: case $host_vendor in
11197: sni)
11198: shlibpath_overrides_runpath=no
11199: need_lib_prefix=no
11200: runpath_var=LD_RUN_PATH
11201: ;;
11202: siemens)
11203: need_lib_prefix=no
11204: ;;
11205: motorola)
11206: need_lib_prefix=no
11207: need_version=no
11208: shlibpath_overrides_runpath=no
11209: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11210: ;;
11211: esac
11212: ;;
11213:
11214: sysv4*MP*)
11215: if test -d /usr/nec ;then
11216: version_type=linux
11217: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11218: soname_spec='$libname${shared_ext}.$major'
11219: shlibpath_var=LD_LIBRARY_PATH
11220: fi
11221: ;;
11222:
11223: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11224: version_type=freebsd-elf
11225: need_lib_prefix=no
11226: need_version=no
11227: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11228: soname_spec='${libname}${release}${shared_ext}$major'
11229: shlibpath_var=LD_LIBRARY_PATH
11230: shlibpath_overrides_runpath=yes
11231: hardcode_into_libs=yes
11232: if test "$with_gnu_ld" = yes; then
11233: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11234: else
11235: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11236: case $host_os in
11237: sco3.2v5*)
11238: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11239: ;;
11240: esac
11241: fi
11242: sys_lib_dlsearch_path_spec='/usr/lib'
11243: ;;
11244:
11245: tpf*)
11246: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11247: version_type=linux
11248: need_lib_prefix=no
11249: need_version=no
11250: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251: shlibpath_var=LD_LIBRARY_PATH
11252: shlibpath_overrides_runpath=no
11253: hardcode_into_libs=yes
11254: ;;
11255:
11256: uts4*)
11257: version_type=linux
11258: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259: soname_spec='${libname}${release}${shared_ext}$major'
11260: shlibpath_var=LD_LIBRARY_PATH
11261: ;;
11262:
11263: *)
11264: dynamic_linker=no
11265: ;;
11266: esac
11267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11268: $as_echo "$dynamic_linker" >&6; }
11269: test "$dynamic_linker" = no && can_build_shared=no
11270:
11271: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11272: if test "$GCC" = yes; then
11273: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11274: fi
11275:
11276: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11277: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11278: fi
11279: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11280: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11281: fi
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296:
11297:
11298:
11299:
11300:
11301:
11302:
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
11347:
11348:
11349:
11350:
11351:
11352:
11353:
11354:
11355:
11356:
11357:
11358:
11359:
11360:
11361:
11362:
11363:
11364:
11365:
11366:
11367:
11368:
11369:
11370:
11371:
11372:
11373:
11374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11375: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11376: hardcode_action=
11377: if test -n "$hardcode_libdir_flag_spec" ||
11378: test -n "$runpath_var" ||
11379: test "X$hardcode_automatic" = "Xyes" ; then
11380:
11381: # We can hardcode non-existent directories.
11382: if test "$hardcode_direct" != no &&
11383: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11384: # have to relink, otherwise we might link with an installed library
11385: # when we should be linking with a yet-to-be-installed one
11386: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11387: test "$hardcode_minus_L" != no; then
11388: # Linking always hardcodes the temporary library directory.
11389: hardcode_action=relink
11390: else
11391: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11392: hardcode_action=immediate
11393: fi
11394: else
11395: # We cannot hardcode anything, or else we can only hardcode existing
11396: # directories.
11397: hardcode_action=unsupported
11398: fi
11399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11400: $as_echo "$hardcode_action" >&6; }
11401:
11402: if test "$hardcode_action" = relink ||
11403: test "$inherit_rpath" = yes; then
11404: # Fast installation is not supported
11405: enable_fast_install=no
11406: elif test "$shlibpath_overrides_runpath" = yes ||
11407: test "$enable_shared" = no; then
11408: # Fast installation is not necessary
11409: enable_fast_install=needless
11410: fi
11411:
11412:
11413:
11414:
11415:
11416:
11417: if test "x$enable_dlopen" != xyes; then
11418: enable_dlopen=unknown
11419: enable_dlopen_self=unknown
11420: enable_dlopen_self_static=unknown
11421: else
11422: lt_cv_dlopen=no
11423: lt_cv_dlopen_libs=
11424:
11425: case $host_os in
11426: beos*)
11427: lt_cv_dlopen="load_add_on"
11428: lt_cv_dlopen_libs=
11429: lt_cv_dlopen_self=yes
11430: ;;
11431:
11432: mingw* | pw32* | cegcc*)
11433: lt_cv_dlopen="LoadLibrary"
11434: lt_cv_dlopen_libs=
11435: ;;
11436:
11437: cygwin*)
11438: lt_cv_dlopen="dlopen"
11439: lt_cv_dlopen_libs=
11440: ;;
11441:
11442: darwin*)
11443: # if libdl is installed we need to link against it
11444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11445: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 misho 11446: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 11447: $as_echo_n "(cached) " >&6
11448: else
11449: ac_check_lib_save_LIBS=$LIBS
11450: LIBS="-ldl $LIBS"
11451: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452: /* end confdefs.h. */
11453:
11454: /* Override any GCC internal prototype to avoid an error.
11455: Use char because int might match the return type of a GCC
11456: builtin and then its argument prototype would still apply. */
11457: #ifdef __cplusplus
11458: extern "C"
11459: #endif
11460: char dlopen ();
11461: int
11462: main ()
11463: {
11464: return dlopen ();
11465: ;
11466: return 0;
11467: }
11468: _ACEOF
11469: if ac_fn_c_try_link "$LINENO"; then :
11470: ac_cv_lib_dl_dlopen=yes
11471: else
11472: ac_cv_lib_dl_dlopen=no
11473: fi
11474: rm -f core conftest.err conftest.$ac_objext \
11475: conftest$ac_exeext conftest.$ac_ext
11476: LIBS=$ac_check_lib_save_LIBS
11477: fi
11478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11479: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 misho 11480: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1 misho 11481: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11482: else
11483:
11484: lt_cv_dlopen="dyld"
11485: lt_cv_dlopen_libs=
11486: lt_cv_dlopen_self=yes
11487:
11488: fi
11489:
11490: ;;
11491:
11492: *)
11493: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.1.1.2 misho 11494: if test "x$ac_cv_func_shl_load" = xyes; then :
1.1 misho 11495: lt_cv_dlopen="shl_load"
11496: else
11497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11498: $as_echo_n "checking for shl_load in -ldld... " >&6; }
1.1.1.2 misho 11499: if ${ac_cv_lib_dld_shl_load+:} false; then :
1.1 misho 11500: $as_echo_n "(cached) " >&6
11501: else
11502: ac_check_lib_save_LIBS=$LIBS
11503: LIBS="-ldld $LIBS"
11504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505: /* end confdefs.h. */
11506:
11507: /* Override any GCC internal prototype to avoid an error.
11508: Use char because int might match the return type of a GCC
11509: builtin and then its argument prototype would still apply. */
11510: #ifdef __cplusplus
11511: extern "C"
11512: #endif
11513: char shl_load ();
11514: int
11515: main ()
11516: {
11517: return shl_load ();
11518: ;
11519: return 0;
11520: }
11521: _ACEOF
11522: if ac_fn_c_try_link "$LINENO"; then :
11523: ac_cv_lib_dld_shl_load=yes
11524: else
11525: ac_cv_lib_dld_shl_load=no
11526: fi
11527: rm -f core conftest.err conftest.$ac_objext \
11528: conftest$ac_exeext conftest.$ac_ext
11529: LIBS=$ac_check_lib_save_LIBS
11530: fi
11531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11532: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1.1.1.2 misho 11533: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 misho 11534: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11535: else
11536: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1.1.1.2 misho 11537: if test "x$ac_cv_func_dlopen" = xyes; then :
1.1 misho 11538: lt_cv_dlopen="dlopen"
11539: else
11540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11541: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 misho 11542: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 11543: $as_echo_n "(cached) " >&6
11544: else
11545: ac_check_lib_save_LIBS=$LIBS
11546: LIBS="-ldl $LIBS"
11547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548: /* end confdefs.h. */
11549:
11550: /* Override any GCC internal prototype to avoid an error.
11551: Use char because int might match the return type of a GCC
11552: builtin and then its argument prototype would still apply. */
11553: #ifdef __cplusplus
11554: extern "C"
11555: #endif
11556: char dlopen ();
11557: int
11558: main ()
11559: {
11560: return dlopen ();
11561: ;
11562: return 0;
11563: }
11564: _ACEOF
11565: if ac_fn_c_try_link "$LINENO"; then :
11566: ac_cv_lib_dl_dlopen=yes
11567: else
11568: ac_cv_lib_dl_dlopen=no
11569: fi
11570: rm -f core conftest.err conftest.$ac_objext \
11571: conftest$ac_exeext conftest.$ac_ext
11572: LIBS=$ac_check_lib_save_LIBS
11573: fi
11574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11575: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 misho 11576: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1 misho 11577: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11578: else
11579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11580: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1.1.1.2 misho 11581: if ${ac_cv_lib_svld_dlopen+:} false; then :
1.1 misho 11582: $as_echo_n "(cached) " >&6
11583: else
11584: ac_check_lib_save_LIBS=$LIBS
11585: LIBS="-lsvld $LIBS"
11586: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587: /* end confdefs.h. */
11588:
11589: /* Override any GCC internal prototype to avoid an error.
11590: Use char because int might match the return type of a GCC
11591: builtin and then its argument prototype would still apply. */
11592: #ifdef __cplusplus
11593: extern "C"
11594: #endif
11595: char dlopen ();
11596: int
11597: main ()
11598: {
11599: return dlopen ();
11600: ;
11601: return 0;
11602: }
11603: _ACEOF
11604: if ac_fn_c_try_link "$LINENO"; then :
11605: ac_cv_lib_svld_dlopen=yes
11606: else
11607: ac_cv_lib_svld_dlopen=no
11608: fi
11609: rm -f core conftest.err conftest.$ac_objext \
11610: conftest$ac_exeext conftest.$ac_ext
11611: LIBS=$ac_check_lib_save_LIBS
11612: fi
11613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11614: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1.1.1.2 misho 11615: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.1 misho 11616: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11617: else
11618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11619: $as_echo_n "checking for dld_link in -ldld... " >&6; }
1.1.1.2 misho 11620: if ${ac_cv_lib_dld_dld_link+:} false; then :
1.1 misho 11621: $as_echo_n "(cached) " >&6
11622: else
11623: ac_check_lib_save_LIBS=$LIBS
11624: LIBS="-ldld $LIBS"
11625: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626: /* end confdefs.h. */
11627:
11628: /* Override any GCC internal prototype to avoid an error.
11629: Use char because int might match the return type of a GCC
11630: builtin and then its argument prototype would still apply. */
11631: #ifdef __cplusplus
11632: extern "C"
11633: #endif
11634: char dld_link ();
11635: int
11636: main ()
11637: {
11638: return dld_link ();
11639: ;
11640: return 0;
11641: }
11642: _ACEOF
11643: if ac_fn_c_try_link "$LINENO"; then :
11644: ac_cv_lib_dld_dld_link=yes
11645: else
11646: ac_cv_lib_dld_dld_link=no
11647: fi
11648: rm -f core conftest.err conftest.$ac_objext \
11649: conftest$ac_exeext conftest.$ac_ext
11650: LIBS=$ac_check_lib_save_LIBS
11651: fi
11652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11653: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1.1.1.2 misho 11654: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.1 misho 11655: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11656: fi
11657:
11658:
11659: fi
11660:
11661:
11662: fi
11663:
11664:
11665: fi
11666:
11667:
11668: fi
11669:
11670:
11671: fi
11672:
11673: ;;
11674: esac
11675:
11676: if test "x$lt_cv_dlopen" != xno; then
11677: enable_dlopen=yes
11678: else
11679: enable_dlopen=no
11680: fi
11681:
11682: case $lt_cv_dlopen in
11683: dlopen)
11684: save_CPPFLAGS="$CPPFLAGS"
11685: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11686:
11687: save_LDFLAGS="$LDFLAGS"
11688: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11689:
11690: save_LIBS="$LIBS"
11691: LIBS="$lt_cv_dlopen_libs $LIBS"
11692:
11693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11694: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
1.1.1.2 misho 11695: if ${lt_cv_dlopen_self+:} false; then :
1.1 misho 11696: $as_echo_n "(cached) " >&6
11697: else
11698: if test "$cross_compiling" = yes; then :
11699: lt_cv_dlopen_self=cross
11700: else
11701: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11702: lt_status=$lt_dlunknown
11703: cat > conftest.$ac_ext <<_LT_EOF
11704: #line $LINENO "configure"
11705: #include "confdefs.h"
11706:
11707: #if HAVE_DLFCN_H
11708: #include <dlfcn.h>
11709: #endif
11710:
11711: #include <stdio.h>
11712:
11713: #ifdef RTLD_GLOBAL
11714: # define LT_DLGLOBAL RTLD_GLOBAL
11715: #else
11716: # ifdef DL_GLOBAL
11717: # define LT_DLGLOBAL DL_GLOBAL
11718: # else
11719: # define LT_DLGLOBAL 0
11720: # endif
11721: #endif
11722:
11723: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11724: find out it does not work in some platform. */
11725: #ifndef LT_DLLAZY_OR_NOW
11726: # ifdef RTLD_LAZY
11727: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11728: # else
11729: # ifdef DL_LAZY
11730: # define LT_DLLAZY_OR_NOW DL_LAZY
11731: # else
11732: # ifdef RTLD_NOW
11733: # define LT_DLLAZY_OR_NOW RTLD_NOW
11734: # else
11735: # ifdef DL_NOW
11736: # define LT_DLLAZY_OR_NOW DL_NOW
11737: # else
11738: # define LT_DLLAZY_OR_NOW 0
11739: # endif
11740: # endif
11741: # endif
11742: # endif
11743: #endif
11744:
11745: /* When -fvisbility=hidden is used, assume the code has been annotated
11746: correspondingly for the symbols needed. */
11747: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1.1.1.2 misho 11748: int fnord () __attribute__((visibility("default")));
1.1 misho 11749: #endif
11750:
1.1.1.2 misho 11751: int fnord () { return 42; }
1.1 misho 11752: int main ()
11753: {
11754: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11755: int status = $lt_dlunknown;
11756:
11757: if (self)
11758: {
11759: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11760: else
11761: {
11762: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11763: else puts (dlerror ());
11764: }
11765: /* dlclose (self); */
11766: }
11767: else
11768: puts (dlerror ());
11769:
11770: return status;
11771: }
11772: _LT_EOF
11773: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11774: (eval $ac_link) 2>&5
11775: ac_status=$?
11776: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11777: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11778: (./conftest; exit; ) >&5 2>/dev/null
11779: lt_status=$?
11780: case x$lt_status in
11781: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11782: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11783: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11784: esac
11785: else :
11786: # compilation failed
11787: lt_cv_dlopen_self=no
11788: fi
11789: fi
11790: rm -fr conftest*
11791:
11792:
11793: fi
11794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11795: $as_echo "$lt_cv_dlopen_self" >&6; }
11796:
11797: if test "x$lt_cv_dlopen_self" = xyes; then
11798: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11800: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1.1.1.2 misho 11801: if ${lt_cv_dlopen_self_static+:} false; then :
1.1 misho 11802: $as_echo_n "(cached) " >&6
11803: else
11804: if test "$cross_compiling" = yes; then :
11805: lt_cv_dlopen_self_static=cross
11806: else
11807: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11808: lt_status=$lt_dlunknown
11809: cat > conftest.$ac_ext <<_LT_EOF
11810: #line $LINENO "configure"
11811: #include "confdefs.h"
11812:
11813: #if HAVE_DLFCN_H
11814: #include <dlfcn.h>
11815: #endif
11816:
11817: #include <stdio.h>
11818:
11819: #ifdef RTLD_GLOBAL
11820: # define LT_DLGLOBAL RTLD_GLOBAL
11821: #else
11822: # ifdef DL_GLOBAL
11823: # define LT_DLGLOBAL DL_GLOBAL
11824: # else
11825: # define LT_DLGLOBAL 0
11826: # endif
11827: #endif
11828:
11829: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11830: find out it does not work in some platform. */
11831: #ifndef LT_DLLAZY_OR_NOW
11832: # ifdef RTLD_LAZY
11833: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11834: # else
11835: # ifdef DL_LAZY
11836: # define LT_DLLAZY_OR_NOW DL_LAZY
11837: # else
11838: # ifdef RTLD_NOW
11839: # define LT_DLLAZY_OR_NOW RTLD_NOW
11840: # else
11841: # ifdef DL_NOW
11842: # define LT_DLLAZY_OR_NOW DL_NOW
11843: # else
11844: # define LT_DLLAZY_OR_NOW 0
11845: # endif
11846: # endif
11847: # endif
11848: # endif
11849: #endif
11850:
11851: /* When -fvisbility=hidden is used, assume the code has been annotated
11852: correspondingly for the symbols needed. */
11853: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1.1.1.2 misho 11854: int fnord () __attribute__((visibility("default")));
1.1 misho 11855: #endif
11856:
1.1.1.2 misho 11857: int fnord () { return 42; }
1.1 misho 11858: int main ()
11859: {
11860: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11861: int status = $lt_dlunknown;
11862:
11863: if (self)
11864: {
11865: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11866: else
11867: {
11868: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11869: else puts (dlerror ());
11870: }
11871: /* dlclose (self); */
11872: }
11873: else
11874: puts (dlerror ());
11875:
11876: return status;
11877: }
11878: _LT_EOF
11879: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11880: (eval $ac_link) 2>&5
11881: ac_status=$?
11882: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11883: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11884: (./conftest; exit; ) >&5 2>/dev/null
11885: lt_status=$?
11886: case x$lt_status in
11887: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11888: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11889: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11890: esac
11891: else :
11892: # compilation failed
11893: lt_cv_dlopen_self_static=no
11894: fi
11895: fi
11896: rm -fr conftest*
11897:
11898:
11899: fi
11900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11901: $as_echo "$lt_cv_dlopen_self_static" >&6; }
11902: fi
11903:
11904: CPPFLAGS="$save_CPPFLAGS"
11905: LDFLAGS="$save_LDFLAGS"
11906: LIBS="$save_LIBS"
11907: ;;
11908: esac
11909:
11910: case $lt_cv_dlopen_self in
11911: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11912: *) enable_dlopen_self=unknown ;;
11913: esac
11914:
11915: case $lt_cv_dlopen_self_static in
11916: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11917: *) enable_dlopen_self_static=unknown ;;
11918: esac
11919: fi
11920:
11921:
11922:
11923:
11924:
11925:
11926:
11927:
11928:
11929:
11930:
11931:
11932:
11933:
11934:
11935:
11936:
11937: striplib=
11938: old_striplib=
11939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11940: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11941: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11942: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11943: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11945: $as_echo "yes" >&6; }
11946: else
11947: # FIXME - insert some real tests, host_os isn't really good enough
11948: case $host_os in
11949: darwin*)
11950: if test -n "$STRIP" ; then
11951: striplib="$STRIP -x"
11952: old_striplib="$STRIP -S"
11953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954: $as_echo "yes" >&6; }
11955: else
11956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957: $as_echo "no" >&6; }
11958: fi
11959: ;;
11960: *)
11961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962: $as_echo "no" >&6; }
11963: ;;
11964: esac
11965: fi
11966:
11967:
11968:
11969:
11970:
11971:
11972:
11973:
11974:
11975:
11976:
11977:
11978: # Report which library types will actually be built
11979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11980: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11982: $as_echo "$can_build_shared" >&6; }
11983:
11984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11985: $as_echo_n "checking whether to build shared libraries... " >&6; }
11986: test "$can_build_shared" = "no" && enable_shared=no
11987:
11988: # On AIX, shared libraries and static libraries use the same namespace, and
11989: # are all built from PIC.
11990: case $host_os in
11991: aix3*)
11992: test "$enable_shared" = yes && enable_static=no
11993: if test -n "$RANLIB"; then
11994: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11995: postinstall_cmds='$RANLIB $lib'
11996: fi
11997: ;;
11998:
11999: aix[4-9]*)
12000: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12001: test "$enable_shared" = yes && enable_static=no
12002: fi
12003: ;;
12004: esac
12005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12006: $as_echo "$enable_shared" >&6; }
12007:
12008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12009: $as_echo_n "checking whether to build static libraries... " >&6; }
12010: # Make sure either enable_shared or enable_static is yes.
12011: test "$enable_shared" = yes || enable_static=yes
12012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12013: $as_echo "$enable_static" >&6; }
12014:
12015:
12016:
12017:
12018: fi
12019: ac_ext=c
12020: ac_cpp='$CPP $CPPFLAGS'
12021: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12022: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12023: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12024:
12025: CC="$lt_save_CC"
12026:
12027:
12028:
12029:
12030:
12031:
12032:
12033:
12034:
12035:
12036:
12037:
12038:
12039: ac_config_commands="$ac_config_commands libtool"
12040:
12041:
12042:
12043:
12044: # Only expand once:
12045:
12046:
12047:
12048: VERSION_SCRIPT_FLAGS=
12049: # lt_cv_prog_gnu_ld is from libtool 2.+
12050: if test "$lt_cv_prog_gnu_ld" = yes; then
12051: VERSION_SCRIPT_FLAGS=-Wl,--version-script=
12052: else
12053: case $host in
12054: *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
12055: esac
12056: fi
12057:
1.1.1.2 misho 12058: if test -n "$VERSION_SCRIPT_FLAGS"; then
1.1 misho 12059: USE_VERSION_SCRIPT_TRUE=
12060: USE_VERSION_SCRIPT_FALSE='#'
12061: else
12062: USE_VERSION_SCRIPT_TRUE='#'
12063: USE_VERSION_SCRIPT_FALSE=
12064: fi
12065:
12066:
12067:
12068: _cppflags="${CPPFLAGS}"
12069: _ldflags="${LDFLAGS}"
12070:
12071:
12072: # Check whether --with-c14n was given.
12073: if test "${with_c14n+set}" = set; then :
12074: withval=$with_c14n;
12075: fi
12076:
12077:
12078: # Check whether --with-catalog was given.
12079: if test "${with_catalog+set}" = set; then :
12080: withval=$with_catalog;
12081: fi
12082:
12083:
12084: # Check whether --with-debug was given.
12085: if test "${with_debug+set}" = set; then :
12086: withval=$with_debug;
12087: fi
12088:
12089:
12090: # Check whether --with-docbook was given.
12091: if test "${with_docbook+set}" = set; then :
12092: withval=$with_docbook;
12093: fi
12094:
12095:
12096: # Check whether --with-fexceptions was given.
12097: if test "${with_fexceptions+set}" = set; then :
12098: withval=$with_fexceptions;
12099: fi
12100:
12101:
12102: # Check whether --with-ftp was given.
12103: if test "${with_ftp+set}" = set; then :
12104: withval=$with_ftp;
12105: fi
12106:
12107:
12108: # Check whether --with-history was given.
12109: if test "${with_history+set}" = set; then :
12110: withval=$with_history;
12111: fi
12112:
12113:
12114: # Check whether --with-html was given.
12115: if test "${with_html+set}" = set; then :
12116: withval=$with_html;
12117: fi
12118:
12119:
12120: # Check whether --with-html-dir was given.
12121: if test "${with_html_dir+set}" = set; then :
12122: withval=$with_html_dir; HTML_DIR=$withval
12123: else
12124: HTML_DIR='$(datadir)/doc'
12125: fi
12126:
12127:
12128:
12129: # Check whether --with-html-subdir was given.
12130: if test "${with_html_subdir+set}" = set; then :
12131: withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
12132: else
12133: HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
12134: fi
12135:
12136:
12137:
12138: # Check whether --with-http was given.
12139: if test "${with_http+set}" = set; then :
12140: withval=$with_http;
12141: fi
12142:
12143:
12144: # Check whether --with-iconv was given.
12145: if test "${with_iconv+set}" = set; then :
12146: withval=$with_iconv;
12147: fi
12148:
12149:
12150: # Check whether --with-icu was given.
12151: if test "${with_icu+set}" = set; then :
12152: withval=$with_icu;
12153: fi
12154:
12155:
12156: # Check whether --with-iso8859x was given.
12157: if test "${with_iso8859x+set}" = set; then :
12158: withval=$with_iso8859x;
12159: fi
12160:
12161:
12162: # Check whether --with-legacy was given.
12163: if test "${with_legacy+set}" = set; then :
12164: withval=$with_legacy;
12165: fi
12166:
12167:
12168: # Check whether --with-mem_debug was given.
12169: if test "${with_mem_debug+set}" = set; then :
12170: withval=$with_mem_debug;
12171: fi
12172:
12173:
12174: # Check whether --with-minimum was given.
12175: if test "${with_minimum+set}" = set; then :
12176: withval=$with_minimum;
12177: fi
12178:
12179:
12180: # Check whether --with-output was given.
12181: if test "${with_output+set}" = set; then :
12182: withval=$with_output;
12183: fi
12184:
12185:
12186: # Check whether --with-pattern was given.
12187: if test "${with_pattern+set}" = set; then :
12188: withval=$with_pattern;
12189: fi
12190:
12191:
12192: # Check whether --with-push was given.
12193: if test "${with_push+set}" = set; then :
12194: withval=$with_push;
12195: fi
12196:
12197:
12198: # Check whether --with-python was given.
12199: if test "${with_python+set}" = set; then :
12200: withval=$with_python;
12201: fi
12202:
12203:
12204: # Check whether --with-reader was given.
12205: if test "${with_reader+set}" = set; then :
12206: withval=$with_reader;
12207: fi
12208:
12209:
12210: # Check whether --with-readline was given.
12211: if test "${with_readline+set}" = set; then :
12212: withval=$with_readline;
12213: if test "$withval" != "no" -a "$withval" != "yes"; then
12214: RDL_DIR=$withval
12215: CPPFLAGS="${CPPFLAGS} -I$withval/include"
12216: LDFLAGS="${LDFLAGS} -L$withval/lib"
12217: fi
12218:
12219: fi
12220:
12221:
12222: # Check whether --with-regexps was given.
12223: if test "${with_regexps+set}" = set; then :
12224: withval=$with_regexps;
12225: fi
12226:
12227:
12228: # Check whether --with-run_debug was given.
12229: if test "${with_run_debug+set}" = set; then :
12230: withval=$with_run_debug;
12231: fi
12232:
12233:
12234: # Check whether --with-sax1 was given.
12235: if test "${with_sax1+set}" = set; then :
12236: withval=$with_sax1;
12237: fi
12238:
12239:
12240: # Check whether --with-schemas was given.
12241: if test "${with_schemas+set}" = set; then :
12242: withval=$with_schemas;
12243: fi
12244:
12245:
12246: # Check whether --with-schematron was given.
12247: if test "${with_schematron+set}" = set; then :
12248: withval=$with_schematron;
12249: fi
12250:
12251:
12252: # Check whether --with-threads was given.
12253: if test "${with_threads+set}" = set; then :
12254: withval=$with_threads;
12255: fi
12256:
12257:
12258: # Check whether --with-thread-alloc was given.
12259: if test "${with_thread_alloc+set}" = set; then :
12260: withval=$with_thread_alloc;
12261: fi
12262:
12263:
12264: # Check whether --with-tree was given.
12265: if test "${with_tree+set}" = set; then :
12266: withval=$with_tree;
12267: fi
12268:
12269:
12270: # Check whether --with-valid was given.
12271: if test "${with_valid+set}" = set; then :
12272: withval=$with_valid;
12273: fi
12274:
12275:
12276: # Check whether --with-writer was given.
12277: if test "${with_writer+set}" = set; then :
12278: withval=$with_writer;
12279: fi
12280:
12281:
12282: # Check whether --with-xinclude was given.
12283: if test "${with_xinclude+set}" = set; then :
12284: withval=$with_xinclude;
12285: fi
12286:
12287:
12288: # Check whether --with-xpath was given.
12289: if test "${with_xpath+set}" = set; then :
12290: withval=$with_xpath;
12291: fi
12292:
12293:
12294: # Check whether --with-xptr was given.
12295: if test "${with_xptr+set}" = set; then :
12296: withval=$with_xptr;
12297: fi
12298:
12299:
12300: # Check whether --with-modules was given.
12301: if test "${with_modules+set}" = set; then :
12302: withval=$with_modules;
12303: fi
12304:
12305:
12306: # Check whether --with-zlib was given.
12307: if test "${with_zlib+set}" = set; then :
12308: withval=$with_zlib;
12309: if test "$withval" != "no" -a "$withval" != "yes"; then
12310: Z_DIR=$withval
12311: CPPFLAGS="${CPPFLAGS} -I$withval/include"
12312: LDFLAGS="${LDFLAGS} -L$withval/lib"
12313: fi
12314:
12315: fi
12316:
12317:
1.1.1.2 misho 12318: # Check whether --with-lzma was given.
12319: if test "${with_lzma+set}" = set; then :
12320: withval=$with_lzma;
12321: if test "$withval" != "no" -a "$withval" != "yes"; then
12322: LZMA_DIR=$withval
12323: CPPFLAGS="${CPPFLAGS} -I$withval/include"
12324: LDFLAGS="${LDFLAGS} -L$withval/lib"
12325: fi
12326:
12327: fi
12328:
12329:
1.1 misho 12330: # Check whether --with-coverage was given.
12331: if test "${with_coverage+set}" = set; then :
12332: withval=$with_coverage;
12333: fi
12334:
12335:
12336: # Check whether --enable-rebuild-docs was given.
12337: if test "${enable_rebuild_docs+set}" = set; then :
12338: enableval=$enable_rebuild_docs;
12339: fi
12340:
12341: if test "$enable_rebuild_docs" = "no"; then
12342: REBUILD_DOCS_TRUE=
12343: REBUILD_DOCS_FALSE='#'
12344: else
12345: REBUILD_DOCS_TRUE='#'
12346: REBUILD_DOCS_FALSE=
12347: fi
12348:
12349:
12350: if test "$with_schemas" = "yes"
12351: then
12352: with_pattern=yes
12353: with_regexps=yes
12354: fi
12355: if test "$with_schematron" = "yes"
12356: then
12357: with_pattern=yes
12358: with_xpath=yes
12359: fi
12360: if test "$with_reader" = "yes"
12361: then
12362: with_push=yes
12363: fi
12364: if test "$with_xptr" = "yes"
12365: then
12366: with_xpath=yes
12367: fi
12368: if test "$with_minimum" = "yes"
12369: then
12370: echo "Configuring for a minimal library"
12371: if test "$with_c14n" = ""
12372: then
12373: with_c14n=no
12374: fi
12375: if test "$with_catalog" = ""
12376: then
12377: with_catalog=no
12378: fi
12379: echo So far so good!
12380: if test "$with_debug" = ""
12381: then
12382: with_debug=no
12383: fi
12384: if test "$with_docbook" = ""
12385: then
12386: with_docbook=no
12387: fi
12388: if test "$with_fexceptions" = ""
12389: then
12390: with_fexceptions=no
12391: fi
12392: if test "$with_ftp" = ""
12393: then
12394: with_ftp=no
12395: fi
12396: if test "$with_history" = ""
12397: then
12398: with_history=no
12399: fi
12400: if test "$with_html" = ""
12401: then
12402: with_html=no
12403: fi
12404: if test "$with_http" = ""
12405: then
12406: with_http=no
12407: fi
12408: if test "$with_iconv" = ""
12409: then
12410: with_iconv=no
12411: fi
12412: if test "$with_iso8859x" = ""
12413: then
12414: with_iso8859x=no
12415: fi
12416: if test "$with_legacy" = ""
12417: then
12418: with_legacy=no
12419: fi
12420: if test "$with_mem_debug" = ""
12421: then
12422: with_mem_debug=no
12423: fi
12424: if test "$with_output" = ""
12425: then
12426: with_output=no
12427: fi
12428: if test "$with_pattern" = ""
12429: then
12430: with_pattern=no
12431: fi
12432: if test "$with_push" = ""
12433: then
12434: with_push=no
12435: fi
12436: if test "$with_python" = ""
12437: then
12438: with_python=no
12439: fi
12440: if test "$with_reader" = ""
12441: then
12442: with_reader=no
12443: fi
12444: if test "$with_readline" = ""
12445: then
12446: with_readline=no
12447: fi
12448: if test "$with_regexps" = ""
12449: then
12450: with_regexps=no
12451: fi
12452: if test "$with_run_debug" = ""
12453: then
12454: with_run_debug=no
12455: fi
12456: if test "$with_sax1" = ""
12457: then
12458: with_sax1=no
12459: fi
12460: if test "$with_schemas" = ""
12461: then
12462: with_schemas=no
12463: fi
12464: if test "$with_schematron" = ""
12465: then
12466: with_schematron=no
12467: fi
12468: if test "$with_threads" = ""
12469: then
12470: with_threads=no
12471: fi
12472: if test "$with_thread_alloc" = ""
12473: then
12474: with_thread_alloc=no
12475: fi
12476: if test "$with_tree" = ""
12477: then
12478: with_tree=no
12479: fi
12480: if test "$with_valid" = ""
12481: then
12482: with_valid=no
12483: fi
12484: if test "$with_writer" = ""
12485: then
12486: with_writer=no
12487: fi
12488: if test "$with_xinclude" = ""
12489: then
12490: with_xinclude=no
12491: fi
12492: if test "$with_xpath" = ""
12493: then
12494: with_xpath=no
12495: fi
12496: if test "$with_xptr" = ""
12497: then
12498: with_xptr=no
12499: fi
12500: if test "$with_zlib" = ""
12501: then
12502: with_zlib=no
12503: fi
12504: if test "$with_modules" = ""
12505: then
12506: with_modules=no
12507: fi
12508: fi
12509:
12510: echo Checking zlib
12511:
12512:
12513: WITH_ZLIB=0
12514: if test "$with_zlib" = "no"; then
12515: echo "Disabling compression support"
12516: else
12517: for ac_header in zlib.h
12518: do :
12519: ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
1.1.1.2 misho 12520: if test "x$ac_cv_header_zlib_h" = xyes; then :
1.1 misho 12521: cat >>confdefs.h <<_ACEOF
12522: #define HAVE_ZLIB_H 1
12523: _ACEOF
12524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
12525: $as_echo_n "checking for gzread in -lz... " >&6; }
1.1.1.2 misho 12526: if ${ac_cv_lib_z_gzread+:} false; then :
1.1 misho 12527: $as_echo_n "(cached) " >&6
12528: else
12529: ac_check_lib_save_LIBS=$LIBS
12530: LIBS="-lz $LIBS"
12531: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532: /* end confdefs.h. */
12533:
12534: /* Override any GCC internal prototype to avoid an error.
12535: Use char because int might match the return type of a GCC
12536: builtin and then its argument prototype would still apply. */
12537: #ifdef __cplusplus
12538: extern "C"
12539: #endif
12540: char gzread ();
12541: int
12542: main ()
12543: {
12544: return gzread ();
12545: ;
12546: return 0;
12547: }
12548: _ACEOF
12549: if ac_fn_c_try_link "$LINENO"; then :
12550: ac_cv_lib_z_gzread=yes
12551: else
12552: ac_cv_lib_z_gzread=no
12553: fi
12554: rm -f core conftest.err conftest.$ac_objext \
12555: conftest$ac_exeext conftest.$ac_ext
12556: LIBS=$ac_check_lib_save_LIBS
12557: fi
12558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
12559: $as_echo "$ac_cv_lib_z_gzread" >&6; }
1.1.1.2 misho 12560: if test "x$ac_cv_lib_z_gzread" = xyes; then :
1.1 misho 12561:
12562:
12563: $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12564:
12565: WITH_ZLIB=1
12566: if test "x${Z_DIR}" != "x"; then
12567: Z_CFLAGS="-I${Z_DIR}/include"
12568: Z_LIBS="-L${Z_DIR}/lib -lz"
12569: case ${host} in
12570: *-*-solaris*)
12571: Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
12572: ;;
12573: esac
12574: else
12575: Z_LIBS="-lz"
12576: fi
12577: fi
12578:
12579: fi
12580:
12581: done
12582:
12583: fi
12584:
12585:
12586:
12587:
12588:
1.1.1.2 misho 12589: echo Checking lzma
12590:
12591:
12592: WITH_LZMA=0
12593: if test "$with_lzma" = "no"; then
12594: echo "Disabling compression support"
12595: else
12596: for ac_header in lzma.h
12597: do :
12598: ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
12599: if test "x$ac_cv_header_lzma_h" = xyes; then :
12600: cat >>confdefs.h <<_ACEOF
12601: #define HAVE_LZMA_H 1
12602: _ACEOF
12603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
12604: $as_echo_n "checking for lzma_code in -llzma... " >&6; }
12605: if ${ac_cv_lib_lzma_lzma_code+:} false; then :
12606: $as_echo_n "(cached) " >&6
12607: else
12608: ac_check_lib_save_LIBS=$LIBS
12609: LIBS="-llzma $LIBS"
12610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611: /* end confdefs.h. */
12612:
12613: /* Override any GCC internal prototype to avoid an error.
12614: Use char because int might match the return type of a GCC
12615: builtin and then its argument prototype would still apply. */
12616: #ifdef __cplusplus
12617: extern "C"
12618: #endif
12619: char lzma_code ();
12620: int
12621: main ()
12622: {
12623: return lzma_code ();
12624: ;
12625: return 0;
12626: }
12627: _ACEOF
12628: if ac_fn_c_try_link "$LINENO"; then :
12629: ac_cv_lib_lzma_lzma_code=yes
12630: else
12631: ac_cv_lib_lzma_lzma_code=no
12632: fi
12633: rm -f core conftest.err conftest.$ac_objext \
12634: conftest$ac_exeext conftest.$ac_ext
12635: LIBS=$ac_check_lib_save_LIBS
12636: fi
12637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
12638: $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
12639: if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
12640:
12641:
12642: $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
12643:
12644: WITH_LZMA=1
12645: if test "x${LZMA_DIR}" != "x"; then
12646: LZMA_CFLAGS="-I${LZMA_DIR}/include"
12647: LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
12648: else
12649: LZMA_LIBS="-llzma"
12650: fi
12651: fi
12652:
12653: fi
12654:
12655: done
12656:
12657: fi
12658:
12659:
12660:
12661:
12662:
1.1 misho 12663: CPPFLAGS=${_cppflags}
12664: LDFLAGS=${_ldflags}
12665:
12666: echo Checking headers
12667:
12668: ac_header_dirent=no
12669: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12670: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12672: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.1.1.2 misho 12673: if eval \${$as_ac_Header+:} false; then :
1.1 misho 12674: $as_echo_n "(cached) " >&6
12675: else
12676: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677: /* end confdefs.h. */
12678: #include <sys/types.h>
12679: #include <$ac_hdr>
12680:
12681: int
12682: main ()
12683: {
12684: if ((DIR *) 0)
12685: return 0;
12686: ;
12687: return 0;
12688: }
12689: _ACEOF
12690: if ac_fn_c_try_compile "$LINENO"; then :
12691: eval "$as_ac_Header=yes"
12692: else
12693: eval "$as_ac_Header=no"
12694: fi
12695: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696: fi
12697: eval ac_res=\$$as_ac_Header
12698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12699: $as_echo "$ac_res" >&6; }
12700: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12701: cat >>confdefs.h <<_ACEOF
12702: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12703: _ACEOF
12704:
12705: ac_header_dirent=$ac_hdr; break
12706: fi
12707:
12708: done
12709: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12710: if test $ac_header_dirent = dirent.h; then
12711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12712: $as_echo_n "checking for library containing opendir... " >&6; }
1.1.1.2 misho 12713: if ${ac_cv_search_opendir+:} false; then :
1.1 misho 12714: $as_echo_n "(cached) " >&6
12715: else
12716: ac_func_search_save_LIBS=$LIBS
12717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718: /* end confdefs.h. */
12719:
12720: /* Override any GCC internal prototype to avoid an error.
12721: Use char because int might match the return type of a GCC
12722: builtin and then its argument prototype would still apply. */
12723: #ifdef __cplusplus
12724: extern "C"
12725: #endif
12726: char opendir ();
12727: int
12728: main ()
12729: {
12730: return opendir ();
12731: ;
12732: return 0;
12733: }
12734: _ACEOF
12735: for ac_lib in '' dir; do
12736: if test -z "$ac_lib"; then
12737: ac_res="none required"
12738: else
12739: ac_res=-l$ac_lib
12740: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12741: fi
12742: if ac_fn_c_try_link "$LINENO"; then :
12743: ac_cv_search_opendir=$ac_res
12744: fi
12745: rm -f core conftest.err conftest.$ac_objext \
12746: conftest$ac_exeext
1.1.1.2 misho 12747: if ${ac_cv_search_opendir+:} false; then :
1.1 misho 12748: break
12749: fi
12750: done
1.1.1.2 misho 12751: if ${ac_cv_search_opendir+:} false; then :
1.1 misho 12752:
12753: else
12754: ac_cv_search_opendir=no
12755: fi
12756: rm conftest.$ac_ext
12757: LIBS=$ac_func_search_save_LIBS
12758: fi
12759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12760: $as_echo "$ac_cv_search_opendir" >&6; }
12761: ac_res=$ac_cv_search_opendir
12762: if test "$ac_res" != no; then :
12763: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12764:
12765: fi
12766:
12767: else
12768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12769: $as_echo_n "checking for library containing opendir... " >&6; }
1.1.1.2 misho 12770: if ${ac_cv_search_opendir+:} false; then :
1.1 misho 12771: $as_echo_n "(cached) " >&6
12772: else
12773: ac_func_search_save_LIBS=$LIBS
12774: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775: /* end confdefs.h. */
12776:
12777: /* Override any GCC internal prototype to avoid an error.
12778: Use char because int might match the return type of a GCC
12779: builtin and then its argument prototype would still apply. */
12780: #ifdef __cplusplus
12781: extern "C"
12782: #endif
12783: char opendir ();
12784: int
12785: main ()
12786: {
12787: return opendir ();
12788: ;
12789: return 0;
12790: }
12791: _ACEOF
12792: for ac_lib in '' x; do
12793: if test -z "$ac_lib"; then
12794: ac_res="none required"
12795: else
12796: ac_res=-l$ac_lib
12797: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12798: fi
12799: if ac_fn_c_try_link "$LINENO"; then :
12800: ac_cv_search_opendir=$ac_res
12801: fi
12802: rm -f core conftest.err conftest.$ac_objext \
12803: conftest$ac_exeext
1.1.1.2 misho 12804: if ${ac_cv_search_opendir+:} false; then :
1.1 misho 12805: break
12806: fi
12807: done
1.1.1.2 misho 12808: if ${ac_cv_search_opendir+:} false; then :
1.1 misho 12809:
12810: else
12811: ac_cv_search_opendir=no
12812: fi
12813: rm conftest.$ac_ext
12814: LIBS=$ac_func_search_save_LIBS
12815: fi
12816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12817: $as_echo "$ac_cv_search_opendir" >&6; }
12818: ac_res=$ac_cv_search_opendir
12819: if test "$ac_res" != no; then :
12820: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12821:
12822: fi
12823:
12824: fi
12825:
12826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12827: $as_echo_n "checking for ANSI C header files... " >&6; }
1.1.1.2 misho 12828: if ${ac_cv_header_stdc+:} false; then :
1.1 misho 12829: $as_echo_n "(cached) " >&6
12830: else
12831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832: /* end confdefs.h. */
12833: #include <stdlib.h>
12834: #include <stdarg.h>
12835: #include <string.h>
12836: #include <float.h>
12837:
12838: int
12839: main ()
12840: {
12841:
12842: ;
12843: return 0;
12844: }
12845: _ACEOF
12846: if ac_fn_c_try_compile "$LINENO"; then :
12847: ac_cv_header_stdc=yes
12848: else
12849: ac_cv_header_stdc=no
12850: fi
12851: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852:
12853: if test $ac_cv_header_stdc = yes; then
12854: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856: /* end confdefs.h. */
12857: #include <string.h>
12858:
12859: _ACEOF
12860: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12861: $EGREP "memchr" >/dev/null 2>&1; then :
12862:
12863: else
12864: ac_cv_header_stdc=no
12865: fi
12866: rm -f conftest*
12867:
12868: fi
12869:
12870: if test $ac_cv_header_stdc = yes; then
12871: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873: /* end confdefs.h. */
12874: #include <stdlib.h>
12875:
12876: _ACEOF
12877: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12878: $EGREP "free" >/dev/null 2>&1; then :
12879:
12880: else
12881: ac_cv_header_stdc=no
12882: fi
12883: rm -f conftest*
12884:
12885: fi
12886:
12887: if test $ac_cv_header_stdc = yes; then
12888: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12889: if test "$cross_compiling" = yes; then :
12890: :
12891: else
12892: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893: /* end confdefs.h. */
12894: #include <ctype.h>
12895: #include <stdlib.h>
12896: #if ((' ' & 0x0FF) == 0x020)
12897: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12898: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12899: #else
12900: # define ISLOWER(c) \
12901: (('a' <= (c) && (c) <= 'i') \
12902: || ('j' <= (c) && (c) <= 'r') \
12903: || ('s' <= (c) && (c) <= 'z'))
12904: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12905: #endif
12906:
12907: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12908: int
12909: main ()
12910: {
12911: int i;
12912: for (i = 0; i < 256; i++)
12913: if (XOR (islower (i), ISLOWER (i))
12914: || toupper (i) != TOUPPER (i))
12915: return 2;
12916: return 0;
12917: }
12918: _ACEOF
12919: if ac_fn_c_try_run "$LINENO"; then :
12920:
12921: else
12922: ac_cv_header_stdc=no
12923: fi
12924: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12925: conftest.$ac_objext conftest.beam conftest.$ac_ext
12926: fi
12927:
12928: fi
12929: fi
12930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12931: $as_echo "$ac_cv_header_stdc" >&6; }
12932: if test $ac_cv_header_stdc = yes; then
12933:
12934: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12935:
12936: fi
12937:
12938: for ac_header in fcntl.h
12939: do :
12940: ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
1.1.1.2 misho 12941: if test "x$ac_cv_header_fcntl_h" = xyes; then :
1.1 misho 12942: cat >>confdefs.h <<_ACEOF
12943: #define HAVE_FCNTL_H 1
12944: _ACEOF
12945:
12946: fi
12947:
12948: done
12949:
12950: for ac_header in unistd.h
12951: do :
12952: ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
1.1.1.2 misho 12953: if test "x$ac_cv_header_unistd_h" = xyes; then :
1.1 misho 12954: cat >>confdefs.h <<_ACEOF
12955: #define HAVE_UNISTD_H 1
12956: _ACEOF
12957:
12958: fi
12959:
12960: done
12961:
12962: for ac_header in ctype.h
12963: do :
12964: ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
1.1.1.2 misho 12965: if test "x$ac_cv_header_ctype_h" = xyes; then :
1.1 misho 12966: cat >>confdefs.h <<_ACEOF
12967: #define HAVE_CTYPE_H 1
12968: _ACEOF
12969:
12970: fi
12971:
12972: done
12973:
12974: for ac_header in dirent.h
12975: do :
12976: ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
1.1.1.2 misho 12977: if test "x$ac_cv_header_dirent_h" = xyes; then :
1.1 misho 12978: cat >>confdefs.h <<_ACEOF
12979: #define HAVE_DIRENT_H 1
12980: _ACEOF
12981:
12982: fi
12983:
12984: done
12985:
12986: for ac_header in errno.h
12987: do :
12988: ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
1.1.1.2 misho 12989: if test "x$ac_cv_header_errno_h" = xyes; then :
1.1 misho 12990: cat >>confdefs.h <<_ACEOF
12991: #define HAVE_ERRNO_H 1
12992: _ACEOF
12993:
12994: fi
12995:
12996: done
12997:
12998: for ac_header in malloc.h
12999: do :
13000: ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
1.1.1.2 misho 13001: if test "x$ac_cv_header_malloc_h" = xyes; then :
1.1 misho 13002: cat >>confdefs.h <<_ACEOF
13003: #define HAVE_MALLOC_H 1
13004: _ACEOF
13005:
13006: fi
13007:
13008: done
13009:
13010: for ac_header in stdarg.h
13011: do :
13012: ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
1.1.1.2 misho 13013: if test "x$ac_cv_header_stdarg_h" = xyes; then :
1.1 misho 13014: cat >>confdefs.h <<_ACEOF
13015: #define HAVE_STDARG_H 1
13016: _ACEOF
13017:
13018: fi
13019:
13020: done
13021:
13022: for ac_header in sys/stat.h
13023: do :
13024: ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
1.1.1.2 misho 13025: if test "x$ac_cv_header_sys_stat_h" = xyes; then :
1.1 misho 13026: cat >>confdefs.h <<_ACEOF
13027: #define HAVE_SYS_STAT_H 1
13028: _ACEOF
13029:
13030: fi
13031:
13032: done
13033:
13034: for ac_header in sys/types.h
13035: do :
13036: ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
1.1.1.2 misho 13037: if test "x$ac_cv_header_sys_types_h" = xyes; then :
1.1 misho 13038: cat >>confdefs.h <<_ACEOF
13039: #define HAVE_SYS_TYPES_H 1
13040: _ACEOF
13041:
13042: fi
13043:
13044: done
13045:
13046: for ac_header in stdint.h
13047: do :
13048: ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
1.1.1.2 misho 13049: if test "x$ac_cv_header_stdint_h" = xyes; then :
1.1 misho 13050: cat >>confdefs.h <<_ACEOF
13051: #define HAVE_STDINT_H 1
13052: _ACEOF
13053:
13054: fi
13055:
13056: done
13057:
1.1.1.2 misho 13058: for ac_header in inttypes.h
1.1 misho 13059: do :
1.1.1.2 misho 13060: ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13061: if test "x$ac_cv_header_inttypes_h" = xyes; then :
1.1 misho 13062: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 13063: #define HAVE_INTTYPES_H 1
1.1 misho 13064: _ACEOF
13065:
13066: fi
13067:
13068: done
13069:
13070: for ac_header in time.h
13071: do :
13072: ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
1.1.1.2 misho 13073: if test "x$ac_cv_header_time_h" = xyes; then :
1.1 misho 13074: cat >>confdefs.h <<_ACEOF
13075: #define HAVE_TIME_H 1
13076: _ACEOF
13077:
13078: fi
13079:
13080: done
13081:
13082: for ac_header in ansidecl.h
13083: do :
13084: ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
1.1.1.2 misho 13085: if test "x$ac_cv_header_ansidecl_h" = xyes; then :
1.1 misho 13086: cat >>confdefs.h <<_ACEOF
13087: #define HAVE_ANSIDECL_H 1
13088: _ACEOF
13089:
13090: fi
13091:
13092: done
13093:
13094: for ac_header in ieeefp.h
13095: do :
13096: ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
1.1.1.2 misho 13097: if test "x$ac_cv_header_ieeefp_h" = xyes; then :
1.1 misho 13098: cat >>confdefs.h <<_ACEOF
13099: #define HAVE_IEEEFP_H 1
13100: _ACEOF
13101:
13102: fi
13103:
13104: done
13105:
13106: for ac_header in nan.h
13107: do :
13108: ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
1.1.1.2 misho 13109: if test "x$ac_cv_header_nan_h" = xyes; then :
1.1 misho 13110: cat >>confdefs.h <<_ACEOF
13111: #define HAVE_NAN_H 1
13112: _ACEOF
13113:
13114: fi
13115:
13116: done
13117:
13118: for ac_header in math.h
13119: do :
13120: ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
1.1.1.2 misho 13121: if test "x$ac_cv_header_math_h" = xyes; then :
1.1 misho 13122: cat >>confdefs.h <<_ACEOF
13123: #define HAVE_MATH_H 1
13124: _ACEOF
13125:
13126: fi
13127:
13128: done
13129:
13130: for ac_header in limits.h
13131: do :
13132: ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
1.1.1.2 misho 13133: if test "x$ac_cv_header_limits_h" = xyes; then :
1.1 misho 13134: cat >>confdefs.h <<_ACEOF
13135: #define HAVE_LIMITS_H 1
13136: _ACEOF
13137:
13138: fi
13139:
13140: done
13141:
13142: for ac_header in fp_class.h
13143: do :
13144: ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
1.1.1.2 misho 13145: if test "x$ac_cv_header_fp_class_h" = xyes; then :
1.1 misho 13146: cat >>confdefs.h <<_ACEOF
13147: #define HAVE_FP_CLASS_H 1
13148: _ACEOF
13149:
13150: fi
13151:
13152: done
13153:
13154: for ac_header in float.h
13155: do :
13156: ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
1.1.1.2 misho 13157: if test "x$ac_cv_header_float_h" = xyes; then :
1.1 misho 13158: cat >>confdefs.h <<_ACEOF
13159: #define HAVE_FLOAT_H 1
13160: _ACEOF
13161:
13162: fi
13163:
13164: done
13165:
13166: for ac_header in stdlib.h
13167: do :
13168: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
1.1.1.2 misho 13169: if test "x$ac_cv_header_stdlib_h" = xyes; then :
1.1 misho 13170: cat >>confdefs.h <<_ACEOF
13171: #define HAVE_STDLIB_H 1
13172: _ACEOF
13173:
13174: fi
13175:
13176: done
13177:
13178: for ac_header in sys/socket.h
13179: do :
13180: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
13181: # include <sys/types.h>
13182: # endif
13183:
13184: "
1.1.1.2 misho 13185: if test "x$ac_cv_header_sys_socket_h" = xyes; then :
1.1 misho 13186: cat >>confdefs.h <<_ACEOF
13187: #define HAVE_SYS_SOCKET_H 1
13188: _ACEOF
13189:
13190: fi
13191:
13192: done
13193:
13194: for ac_header in netinet/in.h
13195: do :
13196: ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
13197: # include <sys/types.h>
13198: # endif
13199:
13200: "
1.1.1.2 misho 13201: if test "x$ac_cv_header_netinet_in_h" = xyes; then :
1.1 misho 13202: cat >>confdefs.h <<_ACEOF
13203: #define HAVE_NETINET_IN_H 1
13204: _ACEOF
13205:
13206: fi
13207:
13208: done
13209:
13210: for ac_header in arpa/inet.h
13211: do :
13212: ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
13213: # include <sys/types.h>
13214: # endif
13215: #if HAVE_ARPA_INET_H
13216: # include <arpa/inet.h>
13217: # endif
13218:
13219: "
1.1.1.2 misho 13220: if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
1.1 misho 13221: cat >>confdefs.h <<_ACEOF
13222: #define HAVE_ARPA_INET_H 1
13223: _ACEOF
13224:
13225: fi
13226:
13227: done
13228:
13229: for ac_header in netdb.h
13230: do :
13231: ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
1.1.1.2 misho 13232: if test "x$ac_cv_header_netdb_h" = xyes; then :
1.1 misho 13233: cat >>confdefs.h <<_ACEOF
13234: #define HAVE_NETDB_H 1
13235: _ACEOF
13236:
13237: fi
13238:
13239: done
13240:
13241: for ac_header in sys/time.h
13242: do :
13243: ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
1.1.1.2 misho 13244: if test "x$ac_cv_header_sys_time_h" = xyes; then :
1.1 misho 13245: cat >>confdefs.h <<_ACEOF
13246: #define HAVE_SYS_TIME_H 1
13247: _ACEOF
13248:
13249: fi
13250:
13251: done
13252:
13253: for ac_header in sys/select.h
13254: do :
13255: ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
1.1.1.2 misho 13256: if test "x$ac_cv_header_sys_select_h" = xyes; then :
1.1 misho 13257: cat >>confdefs.h <<_ACEOF
13258: #define HAVE_SYS_SELECT_H 1
13259: _ACEOF
13260:
13261: fi
13262:
13263: done
13264:
13265: for ac_header in poll.h
13266: do :
13267: ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
1.1.1.2 misho 13268: if test "x$ac_cv_header_poll_h" = xyes; then :
1.1 misho 13269: cat >>confdefs.h <<_ACEOF
13270: #define HAVE_POLL_H 1
13271: _ACEOF
13272:
13273: fi
13274:
13275: done
13276:
13277: for ac_header in sys/mman.h
13278: do :
13279: ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
1.1.1.2 misho 13280: if test "x$ac_cv_header_sys_mman_h" = xyes; then :
1.1 misho 13281: cat >>confdefs.h <<_ACEOF
13282: #define HAVE_SYS_MMAN_H 1
13283: _ACEOF
13284:
13285: fi
13286:
13287: done
13288:
13289: for ac_header in sys/timeb.h
13290: do :
13291: ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
1.1.1.2 misho 13292: if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
1.1 misho 13293: cat >>confdefs.h <<_ACEOF
13294: #define HAVE_SYS_TIMEB_H 1
13295: _ACEOF
13296:
13297: fi
13298:
13299: done
13300:
13301: for ac_header in signal.h
13302: do :
13303: ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
1.1.1.2 misho 13304: if test "x$ac_cv_header_signal_h" = xyes; then :
1.1 misho 13305: cat >>confdefs.h <<_ACEOF
13306: #define HAVE_SIGNAL_H 1
13307: _ACEOF
13308:
13309: fi
13310:
13311: done
13312:
13313: for ac_header in arpa/nameser.h
13314: do :
13315: ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
13316: # include <sys/types.h>
13317: # endif
13318:
13319: "
1.1.1.2 misho 13320: if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
1.1 misho 13321: cat >>confdefs.h <<_ACEOF
13322: #define HAVE_ARPA_NAMESER_H 1
13323: _ACEOF
13324:
13325: fi
13326:
13327: done
13328:
13329: for ac_header in resolv.h
13330: do :
13331: ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
13332: # include <sys/types.h>
13333: # endif
13334: #if HAVE_NETINET_IN_H
13335: # include <netinet/in.h>
13336: # endif
13337: #if HAVE_ARPA_NAMESER_H
13338: # include <arpa/nameser.h>
13339: # endif
13340:
13341: "
1.1.1.2 misho 13342: if test "x$ac_cv_header_resolv_h" = xyes; then :
1.1 misho 13343: cat >>confdefs.h <<_ACEOF
13344: #define HAVE_RESOLV_H 1
13345: _ACEOF
13346:
13347: fi
13348:
13349: done
13350:
13351: for ac_header in dl.h
13352: do :
13353: ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
1.1.1.2 misho 13354: if test "x$ac_cv_header_dl_h" = xyes; then :
1.1 misho 13355: cat >>confdefs.h <<_ACEOF
13356: #define HAVE_DL_H 1
13357: _ACEOF
13358:
13359: fi
13360:
13361: done
13362:
13363: for ac_header in dlfcn.h
13364: do :
13365: ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
1.1.1.2 misho 13366: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.1 misho 13367: cat >>confdefs.h <<_ACEOF
13368: #define HAVE_DLFCN_H 1
13369: _ACEOF
13370:
13371: fi
13372:
13373: done
13374:
13375:
13376:
13377: echo Checking libraries
13378:
13379: for ac_func in strftime
13380: do :
13381: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.1.1.2 misho 13382: if test "x$ac_cv_func_strftime" = xyes; then :
1.1 misho 13383: cat >>confdefs.h <<_ACEOF
13384: #define HAVE_STRFTIME 1
13385: _ACEOF
13386:
13387: else
13388: # strftime is in -lintl on SCO UNIX.
13389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13390: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.1.1.2 misho 13391: if ${ac_cv_lib_intl_strftime+:} false; then :
1.1 misho 13392: $as_echo_n "(cached) " >&6
13393: else
13394: ac_check_lib_save_LIBS=$LIBS
13395: LIBS="-lintl $LIBS"
13396: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397: /* end confdefs.h. */
13398:
13399: /* Override any GCC internal prototype to avoid an error.
13400: Use char because int might match the return type of a GCC
13401: builtin and then its argument prototype would still apply. */
13402: #ifdef __cplusplus
13403: extern "C"
13404: #endif
13405: char strftime ();
13406: int
13407: main ()
13408: {
13409: return strftime ();
13410: ;
13411: return 0;
13412: }
13413: _ACEOF
13414: if ac_fn_c_try_link "$LINENO"; then :
13415: ac_cv_lib_intl_strftime=yes
13416: else
13417: ac_cv_lib_intl_strftime=no
13418: fi
13419: rm -f core conftest.err conftest.$ac_objext \
13420: conftest$ac_exeext conftest.$ac_ext
13421: LIBS=$ac_check_lib_save_LIBS
13422: fi
13423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13424: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.1.1.2 misho 13425: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.1 misho 13426: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13427:
13428: LIBS="-lintl $LIBS"
13429: fi
13430:
13431: fi
13432: done
13433:
13434: for ac_func in strdup strndup strerror
13435: do :
13436: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13437: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13438: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13439: cat >>confdefs.h <<_ACEOF
13440: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13441: _ACEOF
13442:
13443: fi
13444: done
13445:
13446: for ac_func in finite isnand fp_class class fpclass
13447: do :
13448: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13449: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13450: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13451: cat >>confdefs.h <<_ACEOF
13452: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13453: _ACEOF
13454:
13455: fi
13456: done
13457:
13458: for ac_func in strftime localtime gettimeofday ftime
13459: do :
13460: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13461: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13462: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13463: cat >>confdefs.h <<_ACEOF
13464: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13465: _ACEOF
13466:
13467: fi
13468: done
13469:
13470: for ac_func in stat _stat signal
13471: do :
13472: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13473: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13474: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13475: cat >>confdefs.h <<_ACEOF
13476: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477: _ACEOF
13478:
13479: fi
13480: done
13481:
1.1.1.2 misho 13482: for ac_func in rand rand_r srand time
1.1 misho 13483: do :
13484: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13485: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13486: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13487: cat >>confdefs.h <<_ACEOF
13488: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13489: _ACEOF
13490:
13491: fi
13492: done
13493:
13494:
13495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
13496: $as_echo_n "checking for va_copy... " >&6; }
13497: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498: /* end confdefs.h. */
13499: #include <stdarg.h>
13500: va_list ap1,ap2;
13501: int
13502: main ()
13503: {
13504: va_copy(ap1,ap2);
13505: ;
13506: return 0;
13507: }
13508: _ACEOF
13509: if ac_fn_c_try_link "$LINENO"; then :
13510: have_va_copy=yes
13511: else
13512: have_va_copy=no
13513: fi
13514: rm -f core conftest.err conftest.$ac_objext \
13515: conftest$ac_exeext conftest.$ac_ext
13516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
13517: $as_echo "$have_va_copy" >&6; }
13518: if test x"$have_va_copy" = x"yes"; then
13519:
13520: $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13521:
13522: else
13523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
13524: $as_echo_n "checking for __va_copy... " >&6; }
13525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526: /* end confdefs.h. */
13527: #include <stdarg.h>
13528: va_list ap1,ap2;
13529: int
13530: main ()
13531: {
13532: __va_copy(ap1,ap2);
13533: ;
13534: return 0;
13535: }
13536: _ACEOF
13537: if ac_fn_c_try_link "$LINENO"; then :
13538: have___va_copy=yes
13539: else
13540: have___va_copy=no
13541: fi
13542: rm -f core conftest.err conftest.$ac_objext \
13543: conftest$ac_exeext conftest.$ac_ext
13544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
13545: $as_echo "$have___va_copy" >&6; }
13546: if test x"$have___va_copy" = x"yes"; then
13547:
13548: $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
13549:
13550: fi
13551: fi
13552:
13553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
13554: $as_echo_n "checking for library containing gethostent... " >&6; }
1.1.1.2 misho 13555: if ${ac_cv_search_gethostent+:} false; then :
1.1 misho 13556: $as_echo_n "(cached) " >&6
13557: else
13558: ac_func_search_save_LIBS=$LIBS
13559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560: /* end confdefs.h. */
13561:
13562: /* Override any GCC internal prototype to avoid an error.
13563: Use char because int might match the return type of a GCC
13564: builtin and then its argument prototype would still apply. */
13565: #ifdef __cplusplus
13566: extern "C"
13567: #endif
13568: char gethostent ();
13569: int
13570: main ()
13571: {
13572: return gethostent ();
13573: ;
13574: return 0;
13575: }
13576: _ACEOF
13577: for ac_lib in '' nsl; do
13578: if test -z "$ac_lib"; then
13579: ac_res="none required"
13580: else
13581: ac_res=-l$ac_lib
13582: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13583: fi
13584: if ac_fn_c_try_link "$LINENO"; then :
13585: ac_cv_search_gethostent=$ac_res
13586: fi
13587: rm -f core conftest.err conftest.$ac_objext \
13588: conftest$ac_exeext
1.1.1.2 misho 13589: if ${ac_cv_search_gethostent+:} false; then :
1.1 misho 13590: break
13591: fi
13592: done
1.1.1.2 misho 13593: if ${ac_cv_search_gethostent+:} false; then :
1.1 misho 13594:
13595: else
13596: ac_cv_search_gethostent=no
13597: fi
13598: rm conftest.$ac_ext
13599: LIBS=$ac_func_search_save_LIBS
13600: fi
13601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
13602: $as_echo "$ac_cv_search_gethostent" >&6; }
13603: ac_res=$ac_cv_search_gethostent
13604: if test "$ac_res" != no; then :
13605: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13606:
13607: fi
13608:
13609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13610: $as_echo_n "checking for library containing setsockopt... " >&6; }
1.1.1.2 misho 13611: if ${ac_cv_search_setsockopt+:} false; then :
1.1 misho 13612: $as_echo_n "(cached) " >&6
13613: else
13614: ac_func_search_save_LIBS=$LIBS
13615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616: /* end confdefs.h. */
13617:
13618: /* Override any GCC internal prototype to avoid an error.
13619: Use char because int might match the return type of a GCC
13620: builtin and then its argument prototype would still apply. */
13621: #ifdef __cplusplus
13622: extern "C"
13623: #endif
13624: char setsockopt ();
13625: int
13626: main ()
13627: {
13628: return setsockopt ();
13629: ;
13630: return 0;
13631: }
13632: _ACEOF
13633: for ac_lib in '' socket net network; do
13634: if test -z "$ac_lib"; then
13635: ac_res="none required"
13636: else
13637: ac_res=-l$ac_lib
13638: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13639: fi
13640: if ac_fn_c_try_link "$LINENO"; then :
13641: ac_cv_search_setsockopt=$ac_res
13642: fi
13643: rm -f core conftest.err conftest.$ac_objext \
13644: conftest$ac_exeext
1.1.1.2 misho 13645: if ${ac_cv_search_setsockopt+:} false; then :
1.1 misho 13646: break
13647: fi
13648: done
1.1.1.2 misho 13649: if ${ac_cv_search_setsockopt+:} false; then :
1.1 misho 13650:
13651: else
13652: ac_cv_search_setsockopt=no
13653: fi
13654: rm conftest.$ac_ext
13655: LIBS=$ac_func_search_save_LIBS
13656: fi
13657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
13658: $as_echo "$ac_cv_search_setsockopt" >&6; }
13659: ac_res=$ac_cv_search_setsockopt
13660: if test "$ac_res" != no; then :
13661: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13662:
13663: fi
13664:
13665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13666: $as_echo_n "checking for library containing connect... " >&6; }
1.1.1.2 misho 13667: if ${ac_cv_search_connect+:} false; then :
1.1 misho 13668: $as_echo_n "(cached) " >&6
13669: else
13670: ac_func_search_save_LIBS=$LIBS
13671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672: /* end confdefs.h. */
13673:
13674: /* Override any GCC internal prototype to avoid an error.
13675: Use char because int might match the return type of a GCC
13676: builtin and then its argument prototype would still apply. */
13677: #ifdef __cplusplus
13678: extern "C"
13679: #endif
13680: char connect ();
13681: int
13682: main ()
13683: {
13684: return connect ();
13685: ;
13686: return 0;
13687: }
13688: _ACEOF
13689: for ac_lib in '' inet; do
13690: if test -z "$ac_lib"; then
13691: ac_res="none required"
13692: else
13693: ac_res=-l$ac_lib
13694: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13695: fi
13696: if ac_fn_c_try_link "$LINENO"; then :
13697: ac_cv_search_connect=$ac_res
13698: fi
13699: rm -f core conftest.err conftest.$ac_objext \
13700: conftest$ac_exeext
1.1.1.2 misho 13701: if ${ac_cv_search_connect+:} false; then :
1.1 misho 13702: break
13703: fi
13704: done
1.1.1.2 misho 13705: if ${ac_cv_search_connect+:} false; then :
1.1 misho 13706:
13707: else
13708: ac_cv_search_connect=no
13709: fi
13710: rm conftest.$ac_ext
13711: LIBS=$ac_func_search_save_LIBS
13712: fi
13713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13714: $as_echo "$ac_cv_search_connect" >&6; }
13715: ac_res=$ac_cv_search_connect
13716: if test "$ac_res" != no; then :
13717: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13718:
13719: fi
13720:
13721:
13722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
13723: $as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
13724: cat > conftest.$ac_ext <<EOF
1.1.1.2 misho 13725: #line 13725 "configure"
1.1 misho 13726: #include "confdefs.h"
13727:
13728: #include <stddef.h>
13729: #include <sys/types.h>
13730: #include <sys/socket.h>
13731: int main(void) {
13732:
13733: (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
13734: ; return 0; }
13735: EOF
1.1.1.2 misho 13736: if { (eval echo configure:13736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
1.1 misho 13737: rm -rf conftest*
13738:
13739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
13740: $as_echo "socklen_t *" >&6; }
13741: XML_SOCKLEN_T=socklen_t
13742: else
13743: echo "configure: failed program was:" >&5
13744: cat conftest.$ac_ext >&5
13745: rm -rf conftest*
13746:
13747: cat > conftest.$ac_ext <<EOF
1.1.1.2 misho 13748: #line 13748 "configure"
1.1 misho 13749: #include "confdefs.h"
13750:
13751: #include <stddef.h>
13752: #include <sys/types.h>
13753: #include <sys/socket.h>
13754: int main(void) {
13755:
13756: (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
13757: ; return 0; }
13758: EOF
1.1.1.2 misho 13759: if { (eval echo configure:13759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
1.1 misho 13760: rm -rf conftest*
13761:
13762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
13763: $as_echo "size_t *" >&6; }
13764: XML_SOCKLEN_T=size_t
13765: else
13766: echo "configure: failed program was:" >&5
13767: cat conftest.$ac_ext >&5
13768: rm -rf conftest*
13769:
13770: cat > conftest.$ac_ext <<EOF
1.1.1.2 misho 13771: #line 13771 "configure"
1.1 misho 13772: #include "confdefs.h"
13773:
13774: #include <stddef.h>
13775: #include <sys/types.h>
13776: #include <sys/socket.h>
13777: int main(void) {
13778:
13779: (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
13780: ; return 0; }
13781: EOF
1.1.1.2 misho 13782: if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
1.1 misho 13783: rm -rf conftest*
13784:
13785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
13786: $as_echo "int *" >&6; }
13787: XML_SOCKLEN_T=int
13788: else
13789: echo "configure: failed program was:" >&5
13790: cat conftest.$ac_ext >&5
13791: rm -rf conftest*
13792:
13793: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
13794: $as_echo "$as_me: WARNING: could not determine" >&2;}
13795: XML_SOCKLEN_T="int"
13796: fi
13797: rm -f conftest*
13798: fi
13799: rm -f conftest*
13800: fi
13801: rm -f conftest*
13802:
13803: cat >>confdefs.h <<_ACEOF
13804: #define XML_SOCKLEN_T $XML_SOCKLEN_T
13805: _ACEOF
13806:
13807:
13808:
13809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
13810: $as_echo_n "checking whether to enable IPv6... " >&6; }
13811: # Check whether --enable-ipv6 was given.
13812: if test "${enable_ipv6+set}" = set; then :
13813: enableval=$enable_ipv6;
13814: else
13815: enable_ipv6=yes
13816: fi
13817:
13818: if test "$with_minimum" = "yes"
13819: then
13820: enable_ipv6=no
13821: fi
13822: if test $enable_ipv6 = yes; then
13823: have_ipv6=no
13824: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825: /* end confdefs.h. */
13826:
13827: #include <sys/types.h>
13828: #include <sys/socket.h>
13829:
13830: int
13831: main ()
13832: {
13833:
13834: struct sockaddr_storage ss;
13835: socket(AF_INET6, SOCK_STREAM, 0)
13836:
13837: ;
13838: return 0;
13839: }
13840: _ACEOF
13841: if ac_fn_c_try_compile "$LINENO"; then :
13842: have_ipv6=yes
13843: else
13844: have_ipv6=no
13845:
13846: fi
13847: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
13849: $as_echo "$have_ipv6" >&6; }
13850:
13851: if test $have_ipv6 = yes; then
13852:
13853: $as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
13854:
13855: have_broken_ss_family=no
13856:
13857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
13858: $as_echo_n "checking struct sockaddr::ss_family... " >&6; }
13859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860: /* end confdefs.h. */
13861:
13862: #include <sys/types.h>
13863: #include <sys/socket.h>
13864:
13865: int
13866: main ()
13867: {
13868:
13869: struct sockaddr_storage ss ;
13870: ss.ss_family = 0 ;
13871:
13872: ;
13873: return 0;
13874: }
13875: _ACEOF
13876: if ac_fn_c_try_compile "$LINENO"; then :
13877: have_ss_family=yes
13878: else
13879: have_ss_family=no
13880:
13881: fi
13882: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
13884: $as_echo "$have_ss_family" >&6; }
13885: if test x$have_ss_family = xno ; then
13886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
13887: $as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
13888: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889: /* end confdefs.h. */
13890:
13891: #include <sys/types.h>
13892: #include <sys/socket.h>
13893:
13894: int
13895: main ()
13896: {
13897:
13898: struct sockaddr_storage ss ;
13899: ss.__ss_family = 0 ;
13900:
13901: ;
13902: return 0;
13903: }
13904: _ACEOF
13905: if ac_fn_c_try_compile "$LINENO"; then :
13906: have_broken_ss_family=yes
13907: else
13908: have_broken_ss_family=no
13909:
13910: fi
13911: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
13913: $as_echo "$have_broken_ss_family" >&6; }
13914: if test x$have_broken_ss_family = xyes ; then
13915:
13916: $as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
13917:
13918:
13919: $as_echo "#define ss_family __ss_family" >>confdefs.h
13920:
13921: else
13922: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
13923: $as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
13924: fi
13925: fi
13926:
13927: have_getaddrinfo=no
13928: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
1.1.1.2 misho 13929: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
1.1 misho 13930: have_getaddrinfo=yes
13931: fi
13932:
13933: if test $have_getaddrinfo != yes; then
13934: for lib in bsd socket inet; do
13935: as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
13936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
13937: $as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
1.1.1.2 misho 13938: if eval \${$as_ac_Lib+:} false; then :
1.1 misho 13939: $as_echo_n "(cached) " >&6
13940: else
13941: ac_check_lib_save_LIBS=$LIBS
13942: LIBS="-l$lib $LIBS"
13943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944: /* end confdefs.h. */
13945:
13946: /* Override any GCC internal prototype to avoid an error.
13947: Use char because int might match the return type of a GCC
13948: builtin and then its argument prototype would still apply. */
13949: #ifdef __cplusplus
13950: extern "C"
13951: #endif
13952: char getaddrinfo ();
13953: int
13954: main ()
13955: {
13956: return getaddrinfo ();
13957: ;
13958: return 0;
13959: }
13960: _ACEOF
13961: if ac_fn_c_try_link "$LINENO"; then :
13962: eval "$as_ac_Lib=yes"
13963: else
13964: eval "$as_ac_Lib=no"
13965: fi
13966: rm -f core conftest.err conftest.$ac_objext \
13967: conftest$ac_exeext conftest.$ac_ext
13968: LIBS=$ac_check_lib_save_LIBS
13969: fi
13970: eval ac_res=\$$as_ac_Lib
13971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13972: $as_echo "$ac_res" >&6; }
13973: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13974: LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
13975: fi
13976:
13977: done
13978: fi
13979:
13980: if test $have_getaddrinfo = yes; then
13981:
13982: $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
13983:
13984: fi
13985: fi
13986: fi
13987:
13988:
13989: ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
1.1.1.2 misho 13990: if test "x$ac_cv_func_isnan" = xyes; then :
1.1 misho 13991:
13992: $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13993:
13994: else
13995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13996: $as_echo_n "checking for isnan in -lm... " >&6; }
1.1.1.2 misho 13997: if ${ac_cv_lib_m_isnan+:} false; then :
1.1 misho 13998: $as_echo_n "(cached) " >&6
13999: else
14000: ac_check_lib_save_LIBS=$LIBS
14001: LIBS="-lm $LIBS"
14002: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003: /* end confdefs.h. */
14004:
14005: /* Override any GCC internal prototype to avoid an error.
14006: Use char because int might match the return type of a GCC
14007: builtin and then its argument prototype would still apply. */
14008: #ifdef __cplusplus
14009: extern "C"
14010: #endif
14011: char isnan ();
14012: int
14013: main ()
14014: {
14015: return isnan ();
14016: ;
14017: return 0;
14018: }
14019: _ACEOF
14020: if ac_fn_c_try_link "$LINENO"; then :
14021: ac_cv_lib_m_isnan=yes
14022: else
14023: ac_cv_lib_m_isnan=no
14024: fi
14025: rm -f core conftest.err conftest.$ac_objext \
14026: conftest$ac_exeext conftest.$ac_ext
14027: LIBS=$ac_check_lib_save_LIBS
14028: fi
14029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
14030: $as_echo "$ac_cv_lib_m_isnan" >&6; }
1.1.1.2 misho 14031: if test "x$ac_cv_lib_m_isnan" = xyes; then :
1.1 misho 14032:
14033: $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14034:
14035: fi
14036:
14037: fi
14038:
14039:
14040: ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
1.1.1.2 misho 14041: if test "x$ac_cv_func_isinf" = xyes; then :
1.1 misho 14042:
14043: $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14044:
14045: else
14046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
14047: $as_echo_n "checking for isinf in -lm... " >&6; }
1.1.1.2 misho 14048: if ${ac_cv_lib_m_isinf+:} false; then :
1.1 misho 14049: $as_echo_n "(cached) " >&6
14050: else
14051: ac_check_lib_save_LIBS=$LIBS
14052: LIBS="-lm $LIBS"
14053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054: /* end confdefs.h. */
14055:
14056: /* Override any GCC internal prototype to avoid an error.
14057: Use char because int might match the return type of a GCC
14058: builtin and then its argument prototype would still apply. */
14059: #ifdef __cplusplus
14060: extern "C"
14061: #endif
14062: char isinf ();
14063: int
14064: main ()
14065: {
14066: return isinf ();
14067: ;
14068: return 0;
14069: }
14070: _ACEOF
14071: if ac_fn_c_try_link "$LINENO"; then :
14072: ac_cv_lib_m_isinf=yes
14073: else
14074: ac_cv_lib_m_isinf=no
14075: fi
14076: rm -f core conftest.err conftest.$ac_objext \
14077: conftest$ac_exeext conftest.$ac_ext
14078: LIBS=$ac_check_lib_save_LIBS
14079: fi
14080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
14081: $as_echo "$ac_cv_lib_m_isinf" >&6; }
1.1.1.2 misho 14082: if test "x$ac_cv_lib_m_isinf" = xyes; then :
1.1 misho 14083:
14084: $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14085:
14086: fi
14087:
14088: fi
14089:
14090:
14091: XML_LIBDIR='-L${libdir}'
14092: XML_INCLUDEDIR='-I${includedir}/libxml2'
14093:
14094: XML_CFLAGS=""
14095: RDL_LIBS=""
14096:
14097: if test "${GCC}" != "yes" ; then
14098: case "${host}" in
14099: hppa*-*-hpux* )
14100: CFLAGS="${CFLAGS} -Wp,-H30000"
14101: ;;
14102: *-dec-osf* )
14103: CFLAGS="${CFLAGS} -ieee"
14104: ;;
14105: alpha*-*-linux* )
14106: CFLAGS="${CFLAGS} -ieee"
14107: ;;
14108: esac
14109: else
14110: if test "$with_fexceptions" = "yes"
14111: then
14112: #
14113: # Not activated by default because this inflates the code size
14114: # Used to allow propagation of C++ exceptions through the library
14115: #
14116: CFLAGS="${CFLAGS} -fexceptions"
14117: fi
14118:
1.1.1.2 misho 14119: # warnings we'd like to see
1.1 misho 14120: CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
1.1.1.2 misho 14121: # warnings we'd like to supress
14122: CFLAGS="${CFLAGS} -Wno-long-long"
1.1 misho 14123: case "${host}" in
14124: alpha*-*-linux* )
14125: CFLAGS="${CFLAGS} -mieee"
14126: ;;
14127: alpha*-*-osf* )
14128: CFLAGS="${CFLAGS} -mieee"
14129: ;;
14130: esac
14131: fi
14132: case ${host} in
14133: *-*-solaris*)
14134: XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
14135: ;;
14136: hppa*-hp-mpeix)
14137: NEED_TRIO=1
14138: ;;
14139: *-*-mingw* | *-*-cygwin* | *-*-msvc* )
14140: # If the host is Windows, and shared libraries are disabled, we
14141: # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
14142: # work properly (without it, xmlexports.h would force the use of
14143: # DLL imports, which obviously aren't present in a static
14144: # library).
14145: if test "x$enable_shared" = "xno"; then
14146: XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
14147: CFLAGS="$CFLAGS -DLIBXML_STATIC"
14148: fi
14149: ;;
14150: esac
14151:
14152:
14153:
14154: PYTHON_VERSION=
14155: PYTHON_INCLUDES=
14156: PYTHON_SITE_PACKAGES=
14157: PYTHON_TESTS=
14158: pythondir=
14159: if test "$with_python" != "no" ; then
14160: if test -x "$with_python/bin/python"
14161: then
14162: echo Found python in $with_python/bin/python
14163: PYTHON="$with_python/bin/python"
14164: else
14165: if test -x "$with_python/python.exe"
14166: then
14167: echo Found python in $with_python/python.exe
14168: PYTHON="$with_python/python.exe"
14169: else
14170: if test -x "$with_python"
14171: then
14172: echo Found python in $with_python
14173: PYTHON="$with_python"
14174: else
14175: if test -x "$PYTHON"
14176: then
14177: echo Found python in environment PYTHON=$PYTHON
14178: with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
14179: else
14180: # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
14181: set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
14182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 14184: if ${ac_cv_path_PYTHON+:} false; then :
1.1 misho 14185: $as_echo_n "(cached) " >&6
14186: else
14187: case $PYTHON in
14188: [\\/]* | ?:[\\/]*)
14189: ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14190: ;;
14191: *)
14192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193: for as_dir in $PATH
14194: do
14195: IFS=$as_save_IFS
14196: test -z "$as_dir" && as_dir=.
14197: for ac_exec_ext in '' $ac_executable_extensions; do
14198: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14199: ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14200: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201: break 2
14202: fi
14203: done
14204: done
14205: IFS=$as_save_IFS
14206:
14207: ;;
14208: esac
14209: fi
14210: PYTHON=$ac_cv_path_PYTHON
14211: if test -n "$PYTHON"; then
14212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14213: $as_echo "$PYTHON" >&6; }
14214: else
14215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216: $as_echo "no" >&6; }
14217: fi
14218:
14219:
14220: fi
14221: fi
14222: fi
14223: fi
14224: if test "$PYTHON" != ""
14225: then
14226: PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
14227: echo Found Python version $PYTHON_VERSION
14228: fi
14229: if test "$PYTHON_VERSION" != ""
14230: then
1.1.1.2.2.1! misho 14231: with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
1.1 misho 14232: if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
14233: -d $with_python/lib/python$PYTHON_VERSION/site-packages
14234: then
14235: PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
1.1.1.2.2.1! misho 14236: PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
1.1 misho 14237: else
14238: if test -r $prefix/include/python$PYTHON_VERSION/Python.h
14239: then
14240: PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
14241: PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
14242: else
14243: if test -r /usr/include/python$PYTHON_VERSION/Python.h
14244: then
14245: PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
14246: PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
14247: else
14248: if test -r $with_python/include/Python.h -a \
14249: -d $with_python/lib/site-packages
14250: then
14251: PYTHON_INCLUDES=$with_python/include
14252: PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
14253: else
14254: echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
14255: fi
14256: fi
14257: fi
14258: if test ! -d "$PYTHON_SITE_PACKAGES"
14259: then
14260: PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
14261: fi
14262: fi
14263: PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
14264: fi
14265: if test "$with_python" != ""
14266: then
14267: pythondir='$(PYTHON_SITE_PACKAGES)'
14268: else
14269: pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
14270: fi
14271: else
14272: PYTHON=
14273: fi
14274: if test "$PYTHON_INCLUDES" != ""; then
14275: WITH_PYTHON_TRUE=
14276: WITH_PYTHON_FALSE='#'
14277: else
14278: WITH_PYTHON_TRUE='#'
14279: WITH_PYTHON_FALSE=
14280: fi
14281:
14282: if test "$PYTHON_INCLUDES" != ""
14283: then
14284: PYTHON_SUBDIR=python
14285: else
14286: PYTHON_SUBDIR=
14287: fi
14288:
14289:
14290:
14291:
14292: WITH_MODULES=0
14293: TEST_MODULES=
14294:
14295: if test "$with_modules" != "no" ; then
14296: case "$host" in
14297: *-*-cygwin*)
14298: MODULE_EXTENSION=".dll"
14299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
14300: $as_echo_n "checking for dlopen in -lcygwin... " >&6; }
1.1.1.2 misho 14301: if ${ac_cv_lib_cygwin_dlopen+:} false; then :
1.1 misho 14302: $as_echo_n "(cached) " >&6
14303: else
14304: ac_check_lib_save_LIBS=$LIBS
14305: LIBS="-lcygwin $LIBS"
14306: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307: /* end confdefs.h. */
14308:
14309: /* Override any GCC internal prototype to avoid an error.
14310: Use char because int might match the return type of a GCC
14311: builtin and then its argument prototype would still apply. */
14312: #ifdef __cplusplus
14313: extern "C"
14314: #endif
14315: char dlopen ();
14316: int
14317: main ()
14318: {
14319: return dlopen ();
14320: ;
14321: return 0;
14322: }
14323: _ACEOF
14324: if ac_fn_c_try_link "$LINENO"; then :
14325: ac_cv_lib_cygwin_dlopen=yes
14326: else
14327: ac_cv_lib_cygwin_dlopen=no
14328: fi
14329: rm -f core conftest.err conftest.$ac_objext \
14330: conftest$ac_exeext conftest.$ac_ext
14331: LIBS=$ac_check_lib_save_LIBS
14332: fi
14333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
14334: $as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
1.1.1.2 misho 14335: if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
1.1 misho 14336:
14337: WITH_MODULES=1
14338: MODULE_PLATFORM_LIBS=
14339:
14340: $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14341:
14342:
14343: fi
14344:
14345: ;;
14346: *-*-mingw*)
14347: MODULE_EXTENSION=".dll"
14348: WITH_MODULES=1
14349: ;;
14350: *)
14351: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.1.1.2 misho 14352: if test "x$ac_cv_func_shl_load" = xyes; then :
1.1 misho 14353: libxml_have_shl_load=yes
14354: else
14355:
14356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14357: $as_echo_n "checking for shl_load in -ldld... " >&6; }
1.1.1.2 misho 14358: if ${ac_cv_lib_dld_shl_load+:} false; then :
1.1 misho 14359: $as_echo_n "(cached) " >&6
14360: else
14361: ac_check_lib_save_LIBS=$LIBS
14362: LIBS="-ldld $LIBS"
14363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364: /* end confdefs.h. */
14365:
14366: /* Override any GCC internal prototype to avoid an error.
14367: Use char because int might match the return type of a GCC
14368: builtin and then its argument prototype would still apply. */
14369: #ifdef __cplusplus
14370: extern "C"
14371: #endif
14372: char shl_load ();
14373: int
14374: main ()
14375: {
14376: return shl_load ();
14377: ;
14378: return 0;
14379: }
14380: _ACEOF
14381: if ac_fn_c_try_link "$LINENO"; then :
14382: ac_cv_lib_dld_shl_load=yes
14383: else
14384: ac_cv_lib_dld_shl_load=no
14385: fi
14386: rm -f core conftest.err conftest.$ac_objext \
14387: conftest$ac_exeext conftest.$ac_ext
14388: LIBS=$ac_check_lib_save_LIBS
14389: fi
14390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14391: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1.1.1.2 misho 14392: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1 misho 14393:
14394: MODULE_PLATFORM_LIBS="-ldld"
14395: libxml_have_shl_load=yes
14396: else
14397:
14398: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1.1.1.2 misho 14399: if test "x$ac_cv_func_dlopen" = xyes; then :
1.1 misho 14400: libxml_have_dlopen=yes
14401: else
14402:
14403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14404: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 misho 14405: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 14406: $as_echo_n "(cached) " >&6
14407: else
14408: ac_check_lib_save_LIBS=$LIBS
14409: LIBS="-ldl $LIBS"
14410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411: /* end confdefs.h. */
14412:
14413: /* Override any GCC internal prototype to avoid an error.
14414: Use char because int might match the return type of a GCC
14415: builtin and then its argument prototype would still apply. */
14416: #ifdef __cplusplus
14417: extern "C"
14418: #endif
14419: char dlopen ();
14420: int
14421: main ()
14422: {
14423: return dlopen ();
14424: ;
14425: return 0;
14426: }
14427: _ACEOF
14428: if ac_fn_c_try_link "$LINENO"; then :
14429: ac_cv_lib_dl_dlopen=yes
14430: else
14431: ac_cv_lib_dl_dlopen=no
14432: fi
14433: rm -f core conftest.err conftest.$ac_objext \
14434: conftest$ac_exeext conftest.$ac_ext
14435: LIBS=$ac_check_lib_save_LIBS
14436: fi
14437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14438: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 misho 14439: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1 misho 14440:
14441: MODULE_PLATFORM_LIBS="-ldl"
14442: libxml_have_dlopen=yes
14443: fi
14444:
14445: fi
14446:
14447: fi
14448:
14449: fi
14450:
14451:
14452: if test "${libxml_have_shl_load}" = "yes"; then
14453: MODULE_EXTENSION=".sl"
14454: WITH_MODULES=1
14455:
14456: $as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
14457:
14458: fi
14459:
14460: if test "${libxml_have_dlopen}" = "yes"; then
14461: case "${host}" in
14462: *-*-hpux* )
14463: MODULE_EXTENSION=".sl"
14464: ;;
14465: * )
14466: MODULE_EXTENSION=".so"
14467: ;;
14468: esac
14469:
14470: WITH_MODULES=1
14471:
14472: $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14473:
14474: fi
14475: ;;
14476: esac
14477: fi
14478:
14479: if test "${WITH_MODULES}" = "1"; then
14480: TEST_MODULES="ModuleTests"
14481: fi
14482:
14483:
14484:
14485:
14486:
14487:
14488:
14489: if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
14490: [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
14491: [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
14492: then
14493: if test "$with_minimum" != "yes"
14494: then
14495: if test "${with_mem_debug}" = "" ; then
14496: echo Activating memory debugging
14497: with_mem_debug="yes"
14498: with_run_debug="yes"
14499: fi
14500: if test "${with_docbook}" = "" ; then
14501: with_docbook="yes"
14502: fi
14503: fi
14504: if test "${GCC}" = "yes" ; then
14505: CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
14506: fi
14507: STATIC_BINARIES="-static"
14508: else
14509: STATIC_BINARIES=
14510: fi
14511:
14512:
14513:
14514: if test "${NEED_TRIO}" = "1" ; then
14515: echo Adding trio library for string functions
14516: WITH_TRIO=1
14517: else
14518: WITH_TRIO=0
14519: fi
14520: if test "${NEED_TRIO}" = "1"; then
14521: WITH_TRIO_SOURCES_TRUE=
14522: WITH_TRIO_SOURCES_FALSE='#'
14523: else
14524: WITH_TRIO_SOURCES_TRUE='#'
14525: WITH_TRIO_SOURCES_FALSE=
14526: fi
14527:
14528:
14529:
14530: echo Checking configuration requirements
14531:
14532: THREAD_LIBS=""
14533: BASE_THREAD_LIBS=""
14534: WITH_THREADS=0
14535: THREAD_CFLAGS=""
14536: TEST_THREADS=""
14537: THREADS_W32=""
14538:
14539: if test "$with_threads" = "no" ; then
14540: echo Disabling multithreaded support
14541: else
14542: echo Enabling multithreaded support
1.1.1.2 misho 14543:
14544: case $host_os in
14545: *mingw32*) if test "$with_threads" != "pthread" && test "$with_threads" != "no"; then
14546: WITH_THREADS="1"
14547: THREADS_W32="Win32"
14548: THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
14549: fi
14550: ;;
14551: esac
14552:
14553: if test -z "$THREADS_W32"; then
1.1 misho 14554: if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
1.1.1.2 misho 14555: ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14556: if test "x$ac_cv_header_pthread_h" = xyes; then :
1.1 misho 14557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
14558: $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
1.1.1.2 misho 14559: if ${ac_cv_lib_pthread_pthread_join+:} false; then :
1.1 misho 14560: $as_echo_n "(cached) " >&6
14561: else
14562: ac_check_lib_save_LIBS=$LIBS
14563: LIBS="-lpthread $LIBS"
14564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565: /* end confdefs.h. */
14566:
14567: /* Override any GCC internal prototype to avoid an error.
14568: Use char because int might match the return type of a GCC
14569: builtin and then its argument prototype would still apply. */
14570: #ifdef __cplusplus
14571: extern "C"
14572: #endif
14573: char pthread_join ();
14574: int
14575: main ()
14576: {
14577: return pthread_join ();
14578: ;
14579: return 0;
14580: }
14581: _ACEOF
14582: if ac_fn_c_try_link "$LINENO"; then :
14583: ac_cv_lib_pthread_pthread_join=yes
14584: else
14585: ac_cv_lib_pthread_pthread_join=no
14586: fi
14587: rm -f core conftest.err conftest.$ac_objext \
14588: conftest$ac_exeext conftest.$ac_ext
14589: LIBS=$ac_check_lib_save_LIBS
14590: fi
14591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
14592: $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
1.1.1.2 misho 14593: if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
1.1 misho 14594:
1.1.1.2 misho 14595: THREAD_LIBS="-lpthread"
1.1 misho 14596:
14597: $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
14598:
14599:
14600: $as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
14601:
1.1.1.2 misho 14602: WITH_THREADS="1"
1.1 misho 14603: fi
14604:
14605: fi
14606:
14607:
1.1.1.2 misho 14608: fi
1.1 misho 14609: fi
1.1.1.2 misho 14610:
1.1 misho 14611: case $host_os in
14612: *cygwin*) THREAD_LIBS=""
14613: ;;
14614: *beos*) WITH_THREADS="1"
14615: THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
14616: ;;
14617: *linux*)
14618: if test "${GCC}" = "yes" ; then
14619: GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
14620: GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
14621: GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
14622: if test "${THREAD_LIBS}" = "-lpthread" ; then
14623: if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
14624: then
14625: THREAD_LIBS=""
14626: BASE_THREAD_LIBS="-lpthread"
14627: else
14628: if expr ${GCC_MAJOR} \> 3 > /dev/null
14629: then
14630: THREAD_LIBS=""
14631: BASE_THREAD_LIBS="-lpthread"
14632: else
14633: echo old GCC disabling weak symbols for pthread
14634: fi
14635: fi
14636: fi
14637: fi
14638: ;;
1.1.1.2.2.1! misho 14639: *freebsd*) THREAD_LIBS=""
! 14640: ;;
1.1 misho 14641: esac
14642: if test "$WITH_THREADS" = "1" ; then
14643: THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
14644: TEST_THREADS="Threadtests"
14645: fi
14646: fi
14647: if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
14648: THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
14649: fi
14650:
14651:
14652:
14653:
14654:
14655:
14656:
14657:
14658: if test "$with_history" = "yes" ; then
14659: echo Enabling xmllint shell history
14660: unset tcap
14661: for termlib in ncurses curses termcap terminfo termlib; do
14662: as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
14663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
14664: $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
1.1.1.2 misho 14665: if eval \${$as_ac_Lib+:} false; then :
1.1 misho 14666: $as_echo_n "(cached) " >&6
14667: else
14668: ac_check_lib_save_LIBS=$LIBS
14669: LIBS="-l${termlib} $LIBS"
14670: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671: /* end confdefs.h. */
14672:
14673: /* Override any GCC internal prototype to avoid an error.
14674: Use char because int might match the return type of a GCC
14675: builtin and then its argument prototype would still apply. */
14676: #ifdef __cplusplus
14677: extern "C"
14678: #endif
14679: char tputs ();
14680: int
14681: main ()
14682: {
14683: return tputs ();
14684: ;
14685: return 0;
14686: }
14687: _ACEOF
14688: if ac_fn_c_try_link "$LINENO"; then :
14689: eval "$as_ac_Lib=yes"
14690: else
14691: eval "$as_ac_Lib=no"
14692: fi
14693: rm -f core conftest.err conftest.$ac_objext \
14694: conftest$ac_exeext conftest.$ac_ext
14695: LIBS=$ac_check_lib_save_LIBS
14696: fi
14697: eval ac_res=\$$as_ac_Lib
14698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14699: $as_echo "$ac_res" >&6; }
14700: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14701: tcap="-l$termlib"
14702: fi
14703:
14704: test -n "$tcap" && break
14705: done
14706:
14707: ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
1.1.1.2 misho 14708: if test "x$ac_cv_header_readline_history_h" = xyes; then :
1.1 misho 14709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
14710: $as_echo_n "checking for append_history in -lhistory... " >&6; }
1.1.1.2 misho 14711: if ${ac_cv_lib_history_append_history+:} false; then :
1.1 misho 14712: $as_echo_n "(cached) " >&6
14713: else
14714: ac_check_lib_save_LIBS=$LIBS
14715: LIBS="-lhistory $LIBS"
14716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717: /* end confdefs.h. */
14718:
14719: /* Override any GCC internal prototype to avoid an error.
14720: Use char because int might match the return type of a GCC
14721: builtin and then its argument prototype would still apply. */
14722: #ifdef __cplusplus
14723: extern "C"
14724: #endif
14725: char append_history ();
14726: int
14727: main ()
14728: {
14729: return append_history ();
14730: ;
14731: return 0;
14732: }
14733: _ACEOF
14734: if ac_fn_c_try_link "$LINENO"; then :
14735: ac_cv_lib_history_append_history=yes
14736: else
14737: ac_cv_lib_history_append_history=no
14738: fi
14739: rm -f core conftest.err conftest.$ac_objext \
14740: conftest$ac_exeext conftest.$ac_ext
14741: LIBS=$ac_check_lib_save_LIBS
14742: fi
14743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
14744: $as_echo "$ac_cv_lib_history_append_history" >&6; }
1.1.1.2 misho 14745: if test "x$ac_cv_lib_history_append_history" = xyes; then :
1.1 misho 14746:
14747: RDL_LIBS="-lhistory"
14748:
14749: $as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
14750:
14751: fi
14752:
14753: fi
14754:
14755:
14756: ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
1.1.1.2 misho 14757: if test "x$ac_cv_header_readline_readline_h" = xyes; then :
1.1 misho 14758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14759: $as_echo_n "checking for readline in -lreadline... " >&6; }
1.1.1.2 misho 14760: if ${ac_cv_lib_readline_readline+:} false; then :
1.1 misho 14761: $as_echo_n "(cached) " >&6
14762: else
14763: ac_check_lib_save_LIBS=$LIBS
14764: LIBS="-lreadline $tcap $LIBS"
14765: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766: /* end confdefs.h. */
14767:
14768: /* Override any GCC internal prototype to avoid an error.
14769: Use char because int might match the return type of a GCC
14770: builtin and then its argument prototype would still apply. */
14771: #ifdef __cplusplus
14772: extern "C"
14773: #endif
14774: char readline ();
14775: int
14776: main ()
14777: {
14778: return readline ();
14779: ;
14780: return 0;
14781: }
14782: _ACEOF
14783: if ac_fn_c_try_link "$LINENO"; then :
14784: ac_cv_lib_readline_readline=yes
14785: else
14786: ac_cv_lib_readline_readline=no
14787: fi
14788: rm -f core conftest.err conftest.$ac_objext \
14789: conftest$ac_exeext conftest.$ac_ext
14790: LIBS=$ac_check_lib_save_LIBS
14791: fi
14792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14793: $as_echo "$ac_cv_lib_readline_readline" >&6; }
1.1.1.2 misho 14794: if test "x$ac_cv_lib_readline_readline" = xyes; then :
1.1 misho 14795:
14796: RDL_LIBS="-lreadline $RDL_LIBS $tcap"
14797:
14798: $as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
14799:
14800: fi
14801:
14802: fi
14803:
14804:
14805: if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
14806: CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
14807: RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
14808: fi
14809: fi
14810:
14811: if test "$with_tree" = "no" ; then
14812: echo Disabling DOM like tree manipulation APIs
14813: WITH_TREE=0
14814: else
14815: WITH_TREE=1
14816: fi
14817:
14818:
14819: if test "$with_ftp" = "no" ; then
14820: echo Disabling FTP support
14821: WITH_FTP=0
14822: FTP_OBJ=
14823: else
14824: WITH_FTP=1
14825: FTP_OBJ=nanoftp.o
14826: fi
14827:
14828:
14829:
14830: if test "$with_http" = "no" ; then
14831: echo Disabling HTTP support
14832: WITH_HTTP=0
14833: HTTP_OBJ=
14834: else
14835: WITH_HTTP=1
14836: HTTP_OBJ=nanohttp.o
14837: fi
14838:
14839:
14840:
14841: if test "$with_legacy" = "no" ; then
14842: echo Disabling deprecated APIs
14843: WITH_LEGACY=0
14844: else
14845: WITH_LEGACY=1
14846: fi
14847:
14848:
14849: if test "$with_reader" = "no" ; then
14850: echo Disabling the xmlReader parsing interface
14851: WITH_READER=0
14852: READER_TEST=
14853: else
14854: WITH_READER=1
14855: READER_TEST=Readertests
14856: if test "$with_push" = "no" ; then
14857: echo xmlReader requires Push interface - enabling it
14858: with_push=yes
14859: fi
14860: fi
14861:
14862:
14863:
14864: if test "$with_writer" = "no" ; then
14865: echo Disabling the xmlWriter saving interface
14866: WITH_WRITER=0
14867: # WRITER_TEST=
14868: else
14869: WITH_WRITER=1
14870: # WRITER_TEST=Writertests
14871: if test "$with_push" = "no" ; then
14872: echo xmlWriter requires Push interface - enabling it
14873: with_push=yes
14874: fi
14875: if test "$with_output" = "no" ; then
14876: echo xmlWriter requires Output interface - enabling it
14877: with_output=yes
14878: fi
14879: fi
14880:
14881: #AC_SUBST(WRITER_TEST)
14882:
14883: if test "$with_pattern" = "no" ; then
14884: echo Disabling the xmlPattern parsing interface
14885: WITH_PATTERN=0
14886: TEST_PATTERN=
14887: else
14888: WITH_PATTERN=1
14889: TEST_PATTERN=Patterntests
14890: fi
14891:
14892:
14893:
14894: if test "$with_sax1" = "no" ; then
14895: echo Disabling the older SAX1 interface
14896: WITH_SAX1=0
14897: TEST_SAX=
14898: else
14899: WITH_SAX1=1
14900: TEST_SAX=SAXtests
14901: fi
14902:
14903:
14904:
14905: if test "$with_push" = "no" ; then
14906: echo Disabling the PUSH parser interfaces
14907: WITH_PUSH=0
14908: TEST_PUSH=
14909: else
14910: WITH_PUSH=1
14911: TEST_PUSH="XMLPushtests"
14912: fi
14913:
14914:
14915:
14916: if test "$with_html" = "no" ; then
14917: echo Disabling HTML support
14918: WITH_HTML=0
14919: HTML_OBJ=
14920: TEST_HTML=
14921: else
14922: WITH_HTML=1
14923: HTML_OBJ="HTMLparser.o HTMLtree.o"
14924: TEST_HTML=HTMLtests
14925: if test "$with_push" != "no" ; then
14926: TEST_PHTML=HTMLPushtests
14927: else
14928: TEST_PHTML=
14929: fi
14930: fi
14931:
14932:
14933:
14934:
14935:
14936: if test "$with_valid" = "no" ; then
14937: echo Disabling DTD validation support
14938: WITH_VALID=0
14939: TEST_VALID=
14940: TEST_VTIME=
14941: else
14942: WITH_VALID=1
14943: TEST_VALID=Validtests
14944: TEST_VTIME=VTimingtests
14945: fi
14946:
14947:
14948:
14949:
14950: if test "$with_catalog" = "no" ; then
14951: echo Disabling Catalog support
14952: WITH_CATALOG=0
14953: CATALOG_OBJ=
14954: TEST_CATALOG=
14955: else
14956: WITH_CATALOG=1
14957: CATALOG_OBJ="catalog.o"
14958: TEST_CATALOG=Catatests
14959: fi
14960:
14961:
14962:
14963:
14964: if test "$with_docbook" = "no" ; then
14965: echo Disabling Docbook support
14966: WITH_DOCB=0
14967: DOCB_OBJ=
14968: else
14969: WITH_DOCB=1
14970: DOCB_OBJ="DOCBparser.o"
14971: fi
14972:
14973:
14974:
14975:
14976: if test "$with_xptr" = "no" ; then
14977: echo Disabling XPointer support
14978: WITH_XPTR=0
14979: XPTR_OBJ=
14980: TEST_XPTR=
14981: else
14982: WITH_XPTR=1
14983: XPTR_OBJ=xpointer.o
14984: TEST_XPTR=XPtrtests
14985: if test "$with_xpath" = "no" ; then
14986: echo XPointer requires XPath support - enabling it
14987: with_xpath=yes
14988: fi
14989: fi
14990:
14991:
14992:
14993:
14994: if test "$with_c14n" = "no" ; then
14995: echo Disabling C14N support
14996: WITH_C14N=0
14997: C14N_OBJ=
14998: TEST_C14N=
14999: else
15000: WITH_C14N=1
15001: C14N_OBJ="c14n.c"
15002: TEST_C14N=C14Ntests
15003: if test "$with_xpath" = "no" ; then
15004: echo C14N requires XPath support - enabling it
15005: with_xpath=yes
15006: fi
15007: fi
15008:
15009:
15010:
15011:
15012: if test "$with_xinclude" = "no" ; then
15013: echo Disabling XInclude support
15014: WITH_XINCLUDE=0
15015: XINCLUDE_OBJ=
15016: with_xinclude="no"
15017: TEST_XINCLUDE=
15018: else
15019: WITH_XINCLUDE=1
15020: XINCLUDE_OBJ=xinclude.o
15021: TEST_XINCLUDE=XIncludetests
15022: if test "$with_xpath" = "no" ; then
15023: echo XInclude requires XPath support - enabling it
15024: with_xpath=yes
15025: fi
15026: fi
15027:
15028:
15029:
15030:
15031: if test "$with_xpath" = "no" ; then
15032: echo Disabling XPATH support
15033: WITH_XPATH=0
15034: XPATH_OBJ=
15035: TEST_XPATH=
15036: else
15037: WITH_XPATH=1
15038: XPATH_OBJ=xpath.o
15039: TEST_XPATH=XPathtests
15040: fi
15041:
15042:
15043:
15044:
15045: if test "$with_output" = "no" ; then
15046: echo Disabling serialization/saving support
15047: WITH_OUTPUT=0
15048: else
15049: WITH_OUTPUT=1
15050: fi
15051:
15052:
15053: WITH_ICONV=0
15054: if test "$with_iconv" = "no" ; then
15055: echo Disabling ICONV support
15056: else
15057: if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
15058: CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
15059: # Export this since our headers include iconv.h
15060: XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
15061: ICONV_LIBS="-L$with_iconv/lib"
15062: fi
15063:
15064: ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
1.1.1.2 misho 15065: if test "x$ac_cv_header_iconv_h" = xyes; then :
1.1 misho 15066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15067: $as_echo_n "checking for iconv... " >&6; }
15068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069: /* end confdefs.h. */
15070: #include <stdlib.h>
15071: #include <iconv.h>
15072: int
15073: main ()
15074: {
15075:
15076: iconv_t cd = iconv_open ("","");
15077: iconv (cd, NULL, NULL, NULL, NULL);
15078: ;
15079: return 0;
15080: }
15081: _ACEOF
15082: if ac_fn_c_try_link "$LINENO"; then :
15083:
15084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15085: $as_echo "yes" >&6; }
15086: WITH_ICONV=1
15087: else
15088:
15089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090: $as_echo "no" >&6; }
15091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
15092: $as_echo_n "checking for iconv in -liconv... " >&6; }
15093:
15094: _ldflags="${LDFLAGS}"
15095: _libs="${LIBS}"
15096: LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
15097: LIBS="${LIBS} -liconv"
15098:
15099: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100: /* end confdefs.h. */
15101: #include <stdlib.h>
15102: #include <iconv.h>
15103: int
15104: main ()
15105: {
15106:
15107: iconv_t cd = iconv_open ("","");
15108: iconv (cd, NULL, NULL, NULL, NULL);
15109: ;
15110: return 0;
15111: }
15112: _ACEOF
15113: if ac_fn_c_try_link "$LINENO"; then :
15114:
15115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15116: $as_echo "yes" >&6; }
15117: WITH_ICONV=1
15118: ICONV_LIBS="${ICONV_LIBS} -liconv"
15119: LIBS="${_libs}"
15120: LDFLAGS="${_ldflags}"
15121: else
15122:
15123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124: $as_echo "no" >&6; }
15125: LIBS="${_libs}"
15126: LDFLAGS="${_ldflags}"
15127: fi
15128: rm -f core conftest.err conftest.$ac_objext \
15129: conftest$ac_exeext conftest.$ac_ext
15130: fi
15131: rm -f core conftest.err conftest.$ac_objext \
15132: conftest$ac_exeext conftest.$ac_ext
15133: fi
15134:
15135:
15136:
15137: if test "$WITH_ICONV" = "1" ; then
15138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15139: $as_echo_n "checking for iconv declaration... " >&6; }
1.1.1.2 misho 15140: if ${xml_cv_iconv_arg2+:} false; then :
1.1 misho 15141: $as_echo_n "(cached) " >&6
15142: else
15143:
15144: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145: /* end confdefs.h. */
15146: #include <stdlib.h>
15147: #include <iconv.h>
15148: extern
15149: #ifdef __cplusplus
15150: "C"
15151: #endif
15152: #if defined(__STDC__) || defined(__cplusplus)
15153: size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15154: #else
15155: size_t iconv();
15156: #endif
15157:
15158: int
15159: main ()
15160: {
15161:
15162: ;
15163: return 0;
15164: }
15165: _ACEOF
15166: if ac_fn_c_try_compile "$LINENO"; then :
15167: xml_cv_iconv_arg2=""
15168: else
15169: xml_cv_iconv_arg2="const"
15170: fi
15171: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172: fi
15173:
15174:
15175: xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_iconv_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
15177: }$xml_cv_iconv_decl" >&5
15178: $as_echo "${xml_xxx:-
15179: }$xml_cv_iconv_decl" >&6; }
15180:
15181: cat >>confdefs.h <<_ACEOF
15182: #define ICONV_CONST $xml_cv_iconv_arg2
15183: _ACEOF
15184:
15185: fi
15186: fi
15187: case "$host" in
15188: *mingw*) M_LIBS=""
15189: ;;
15190: *beos*) M_LIBS=""
15191: ;;
15192: *haiku*) M_LIBS=""
15193: ;;
15194: *) M_LIBS="-lm"
15195: ;;
15196: esac
15197: XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
15198: XML_LIBTOOLLIBS="libxml2.la"
15199:
15200:
15201: WITH_ICU=0
15202: if test "$with_icu" != "yes" ; then
15203: echo Disabling ICU support
15204: else
15205: ICU_CONFIG=icu-config
15206: if ${ICU_CONFIG} --cflags >/dev/null 2>&1
15207: then
15208: ICU_LIBS=`icu-config --ldflags`
15209: LDFLAGS="$LDFLAGS $ICU_LIBS"
15210: WITH_ICU=1
15211: echo Enabling ICU support
15212: else
15213: as_fn_error $? "libicu config program icu-config not found" "$LINENO" 5
15214: fi
15215: fi
15216:
15217:
15218: WITH_ISO8859X=1
15219: if test "$WITH_ICONV" != "1" ; then
15220: if test "$with_iso8859x" = "no" ; then
15221: echo Disabling ISO8859X support
15222: WITH_ISO8859X=0
15223: fi
15224: fi
15225:
15226:
15227: if test "$with_schematron" = "no" ; then
15228: echo "Disabling Schematron support"
15229: WITH_SCHEMATRON=0
15230: TEST_SCHEMATRON=
15231: else
15232: echo "Enabled Schematron support"
15233: WITH_SCHEMATRON=1
15234: TEST_SCHEMATRON="Schematrontests"
15235: with_xpath=yes
15236: with_pattern=yes
15237: fi
15238:
15239:
15240:
15241: if test "$with_schemas" = "no" ; then
15242: echo "Disabling Schemas/Relax-NG support"
15243: WITH_SCHEMAS=0
15244: TEST_SCHEMAS=
15245: else
15246: echo "Enabled Schemas/Relax-NG support"
15247: WITH_SCHEMAS=1
15248: TEST_SCHEMAS="Schemastests Relaxtests"
15249: if test "$PYTHON_INCLUDES" != "" ; then
15250: PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
15251: fi
15252: with_regexps=yes
15253: fi
15254:
15255:
15256:
15257: if test "$with_regexps" = "no" ; then
15258: echo Disabling Regexps support
15259: WITH_REGEXPS=0
15260: TEST_REGEXPS=
15261: else
15262: WITH_REGEXPS=1
15263: TEST_REGEXPS="Regexptests Automatatests"
15264: fi
15265:
15266:
15267:
15268: if test "$with_debug" = "no" ; then
15269: echo Disabling DEBUG support
15270: WITH_DEBUG=0
15271: DEBUG_OBJ=
15272: TEST_DEBUG=
15273: else
15274: WITH_DEBUG=1
15275: DEBUG_OBJ=debugXML.o
15276: TEST_DEBUG=Scripttests
15277: fi
15278:
15279:
15280:
15281:
15282: if test "$with_mem_debug" = "yes" ; then
15283: if test "$with_thread_alloc" = "yes" ; then
15284: echo Disabling memory debug - cannot use mem-debug with thread-alloc!
15285: WITH_MEM_DEBUG=0
15286: else
15287: echo Enabling memory debug support
15288: WITH_MEM_DEBUG=1
15289: fi
15290: else
15291: WITH_MEM_DEBUG=0
15292: fi
15293:
15294:
15295: if test "$with_run_debug" = "yes" ; then
15296: echo Enabling runtime debug support
15297: WITH_RUN_DEBUG=1
15298: else
15299: WITH_RUN_DEBUG=0
15300: fi
15301:
15302:
15303: WIN32_EXTRA_LIBADD=
15304: WIN32_EXTRA_LDFLAGS=
15305: CYGWIN_EXTRA_LDFLAGS=
15306: CYGWIN_EXTRA_PYTHON_LIBADD=
15307: WIN32_EXTRA_PYTHON_LIBADD=
15308: case "$host" in
15309: *-*-mingw*)
15310: CPPFLAGS="$CPPFLAGS -DWIN32"
15311: WIN32_EXTRA_LIBADD="-lws2_32"
15312: WIN32_EXTRA_LDFLAGS="-no-undefined"
15313:
15314: $as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
15315:
15316: if test "${PYTHON}" != ""
15317: then
1.1.1.2 misho 15318: WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
1.1 misho 15319: fi
15320: ;;
15321: *-*-cygwin*)
15322: CYGWIN_EXTRA_LDFLAGS="-no-undefined"
15323: if test "${PYTHON}" != ""
15324: then
15325: CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
15326: fi
15327: ;;
15328: esac
15329:
15330:
15331:
15332:
15333:
15334:
1.1.1.2 misho 15335: for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
15336: do :
15337: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15338: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15339: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15340: cat >>confdefs.h <<_ACEOF
15341: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15342: _ACEOF
15343:
15344: else
15345: NEED_TRIO=1
15346: fi
15347: done
15348:
15349:
1.1 misho 15350: if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
15351: then
15352: echo Enabling code coverage for GCC
15353: CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
15354: LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
15355: else
15356: echo Disabling code coverage for GCC
15357: fi
15358:
15359:
15360:
15361:
15362:
15363:
15364:
15365:
15366:
15367:
15368:
15369:
15370:
15371:
15372:
15373:
15374:
15375:
15376:
15377:
15378:
15379:
15380: RELDATE=`date +'%a %b %e %Y'`
15381:
15382:
15383:
15384: rm -f COPYING.LIB COPYING
15385: ln -s Copyright COPYING
15386:
15387: # keep on one line for cygwin c.f. #130896
15388: ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py"
15389:
15390: cat >confcache <<\_ACEOF
15391: # This file is a shell script that caches the results of configure
15392: # tests run on this system so they can be shared between configure
15393: # scripts and configure runs, see configure's option --config-cache.
15394: # It is not useful on other systems. If it contains results you don't
15395: # want to keep, you may remove or edit it.
15396: #
15397: # config.status only pays attention to the cache file if you give it
15398: # the --recheck option to rerun configure.
15399: #
15400: # `ac_cv_env_foo' variables (set or unset) will be overridden when
15401: # loading this file, other *unset* `ac_cv_foo' will be assigned the
15402: # following values.
15403:
15404: _ACEOF
15405:
15406: # The following way of writing the cache mishandles newlines in values,
15407: # but we know of no workaround that is simple, portable, and efficient.
15408: # So, we kill variables containing newlines.
15409: # Ultrix sh set writes to stderr and can't be redirected directly,
15410: # and sets the high bit in the cache file unless we assign to the vars.
15411: (
15412: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15413: eval ac_val=\$$ac_var
15414: case $ac_val in #(
15415: *${as_nl}*)
15416: case $ac_var in #(
15417: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15418: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15419: esac
15420: case $ac_var in #(
15421: _ | IFS | as_nl) ;; #(
15422: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15423: *) { eval $ac_var=; unset $ac_var;} ;;
15424: esac ;;
15425: esac
15426: done
15427:
15428: (set) 2>&1 |
15429: case $as_nl`(ac_space=' '; set) 2>&1` in #(
15430: *${as_nl}ac_space=\ *)
15431: # `set' does not quote correctly, so add quotes: double-quote
15432: # substitution turns \\\\ into \\, and sed turns \\ into \.
15433: sed -n \
15434: "s/'/'\\\\''/g;
15435: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15436: ;; #(
15437: *)
15438: # `set' quotes correctly as required by POSIX, so do not add quotes.
15439: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15440: ;;
15441: esac |
15442: sort
15443: ) |
15444: sed '
15445: /^ac_cv_env_/b end
15446: t clear
15447: :clear
15448: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15449: t end
15450: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15451: :end' >>confcache
15452: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15453: if test -w "$cache_file"; then
1.1.1.2 misho 15454: if test "x$cache_file" != "x/dev/null"; then
1.1 misho 15455: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15456: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1.1.2 misho 15457: if test ! -f "$cache_file" || test -h "$cache_file"; then
15458: cat confcache >"$cache_file"
15459: else
15460: case $cache_file in #(
15461: */* | ?:*)
15462: mv -f confcache "$cache_file"$$ &&
15463: mv -f "$cache_file"$$ "$cache_file" ;; #(
15464: *)
15465: mv -f confcache "$cache_file" ;;
15466: esac
15467: fi
15468: fi
1.1 misho 15469: else
15470: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15471: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15472: fi
15473: fi
15474: rm -f confcache
15475:
15476: test "x$prefix" = xNONE && prefix=$ac_default_prefix
15477: # Let make expand exec_prefix.
15478: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15479:
15480: DEFS=-DHAVE_CONFIG_H
15481:
15482: ac_libobjs=
15483: ac_ltlibobjs=
1.1.1.2 misho 15484: U=
1.1 misho 15485: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15486: # 1. Remove the extension, and $U if already installed.
15487: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15488: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15489: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15490: # will be set to the directory where LIBOBJS objects are built.
15491: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15492: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15493: done
15494: LIBOBJS=$ac_libobjs
15495:
15496: LTLIBOBJS=$ac_ltlibobjs
15497:
15498:
15499: if test -n "$EXEEXT"; then
15500: am__EXEEXT_TRUE=
15501: am__EXEEXT_FALSE='#'
15502: else
15503: am__EXEEXT_TRUE='#'
15504: am__EXEEXT_FALSE=
15505: fi
15506:
15507: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15508: as_fn_error $? "conditional \"AMDEP\" was never defined.
15509: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15510: fi
15511: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15512: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15513: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15514: fi
15515: if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
15516: as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
15517: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15518: fi
15519: if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
15520: as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
15521: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15522: fi
15523: if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
15524: as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
15525: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15526: fi
15527: if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
15528: as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
15529: Usually this means the macro was only invoked conditionally." "$LINENO" 5
15530: fi
15531:
1.1.1.2 misho 15532: : "${CONFIG_STATUS=./config.status}"
1.1 misho 15533: ac_write_fail=0
15534: ac_clean_files_save=$ac_clean_files
15535: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15536: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15537: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15538: as_write_fail=0
15539: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15540: #! $SHELL
15541: # Generated by $as_me.
15542: # Run this file to recreate the current configuration.
15543: # Compiler output produced by configure, useful for debugging
15544: # configure, is in config.log if it exists.
15545:
15546: debug=false
15547: ac_cs_recheck=false
15548: ac_cs_silent=false
15549:
15550: SHELL=\${CONFIG_SHELL-$SHELL}
15551: export SHELL
15552: _ASEOF
15553: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15554: ## -------------------- ##
15555: ## M4sh Initialization. ##
15556: ## -------------------- ##
15557:
15558: # Be more Bourne compatible
15559: DUALCASE=1; export DUALCASE # for MKS sh
15560: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15561: emulate sh
15562: NULLCMD=:
15563: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15564: # is contrary to our usage. Disable this feature.
15565: alias -g '${1+"$@"}'='"$@"'
15566: setopt NO_GLOB_SUBST
15567: else
15568: case `(set -o) 2>/dev/null` in #(
15569: *posix*) :
15570: set -o posix ;; #(
15571: *) :
15572: ;;
15573: esac
15574: fi
15575:
15576:
15577: as_nl='
15578: '
15579: export as_nl
15580: # Printing a long string crashes Solaris 7 /usr/bin/printf.
15581: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15582: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15583: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15584: # Prefer a ksh shell builtin over an external printf program on Solaris,
15585: # but without wasting forks for bash or zsh.
15586: if test -z "$BASH_VERSION$ZSH_VERSION" \
15587: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15588: as_echo='print -r --'
15589: as_echo_n='print -rn --'
15590: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15591: as_echo='printf %s\n'
15592: as_echo_n='printf %s'
15593: else
15594: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15595: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15596: as_echo_n='/usr/ucb/echo -n'
15597: else
15598: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15599: as_echo_n_body='eval
15600: arg=$1;
15601: case $arg in #(
15602: *"$as_nl"*)
15603: expr "X$arg" : "X\\(.*\\)$as_nl";
15604: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15605: esac;
15606: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15607: '
15608: export as_echo_n_body
15609: as_echo_n='sh -c $as_echo_n_body as_echo'
15610: fi
15611: export as_echo_body
15612: as_echo='sh -c $as_echo_body as_echo'
15613: fi
15614:
15615: # The user is always right.
15616: if test "${PATH_SEPARATOR+set}" != set; then
15617: PATH_SEPARATOR=:
15618: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15619: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15620: PATH_SEPARATOR=';'
15621: }
15622: fi
15623:
15624:
15625: # IFS
15626: # We need space, tab and new line, in precisely that order. Quoting is
15627: # there to prevent editors from complaining about space-tab.
15628: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15629: # splitting by setting IFS to empty value.)
15630: IFS=" "" $as_nl"
15631:
15632: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 misho 15633: as_myself=
1.1 misho 15634: case $0 in #((
15635: *[\\/]* ) as_myself=$0 ;;
15636: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637: for as_dir in $PATH
15638: do
15639: IFS=$as_save_IFS
15640: test -z "$as_dir" && as_dir=.
15641: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15642: done
15643: IFS=$as_save_IFS
15644:
15645: ;;
15646: esac
15647: # We did not find ourselves, most probably we were run as `sh COMMAND'
15648: # in which case we are not to be found in the path.
15649: if test "x$as_myself" = x; then
15650: as_myself=$0
15651: fi
15652: if test ! -f "$as_myself"; then
15653: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15654: exit 1
15655: fi
15656:
15657: # Unset variables that we do not need and which cause bugs (e.g. in
15658: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15659: # suppresses any "Segmentation fault" message there. '((' could
15660: # trigger a bug in pdksh 5.2.14.
15661: for as_var in BASH_ENV ENV MAIL MAILPATH
15662: do eval test x\${$as_var+set} = xset \
15663: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15664: done
15665: PS1='$ '
15666: PS2='> '
15667: PS4='+ '
15668:
15669: # NLS nuisances.
15670: LC_ALL=C
15671: export LC_ALL
15672: LANGUAGE=C
15673: export LANGUAGE
15674:
15675: # CDPATH.
15676: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15677:
15678:
15679: # as_fn_error STATUS ERROR [LINENO LOG_FD]
15680: # ----------------------------------------
15681: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15682: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15683: # script with STATUS, using 1 if that was 0.
15684: as_fn_error ()
15685: {
15686: as_status=$1; test $as_status -eq 0 && as_status=1
15687: if test "$4"; then
15688: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15689: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15690: fi
15691: $as_echo "$as_me: error: $2" >&2
15692: as_fn_exit $as_status
15693: } # as_fn_error
15694:
15695:
15696: # as_fn_set_status STATUS
15697: # -----------------------
15698: # Set $? to STATUS, without forking.
15699: as_fn_set_status ()
15700: {
15701: return $1
15702: } # as_fn_set_status
15703:
15704: # as_fn_exit STATUS
15705: # -----------------
15706: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15707: as_fn_exit ()
15708: {
15709: set +e
15710: as_fn_set_status $1
15711: exit $1
15712: } # as_fn_exit
15713:
15714: # as_fn_unset VAR
15715: # ---------------
15716: # Portably unset VAR.
15717: as_fn_unset ()
15718: {
15719: { eval $1=; unset $1;}
15720: }
15721: as_unset=as_fn_unset
15722: # as_fn_append VAR VALUE
15723: # ----------------------
15724: # Append the text in VALUE to the end of the definition contained in VAR. Take
15725: # advantage of any shell optimizations that allow amortized linear growth over
15726: # repeated appends, instead of the typical quadratic growth present in naive
15727: # implementations.
15728: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15729: eval 'as_fn_append ()
15730: {
15731: eval $1+=\$2
15732: }'
15733: else
15734: as_fn_append ()
15735: {
15736: eval $1=\$$1\$2
15737: }
15738: fi # as_fn_append
15739:
15740: # as_fn_arith ARG...
15741: # ------------------
15742: # Perform arithmetic evaluation on the ARGs, and store the result in the
15743: # global $as_val. Take advantage of shells that can avoid forks. The arguments
15744: # must be portable across $(()) and expr.
15745: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15746: eval 'as_fn_arith ()
15747: {
15748: as_val=$(( $* ))
15749: }'
15750: else
15751: as_fn_arith ()
15752: {
15753: as_val=`expr "$@" || test $? -eq 1`
15754: }
15755: fi # as_fn_arith
15756:
15757:
15758: if expr a : '\(a\)' >/dev/null 2>&1 &&
15759: test "X`expr 00001 : '.*\(...\)'`" = X001; then
15760: as_expr=expr
15761: else
15762: as_expr=false
15763: fi
15764:
15765: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15766: as_basename=basename
15767: else
15768: as_basename=false
15769: fi
15770:
15771: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15772: as_dirname=dirname
15773: else
15774: as_dirname=false
15775: fi
15776:
15777: as_me=`$as_basename -- "$0" ||
15778: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15779: X"$0" : 'X\(//\)$' \| \
15780: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15781: $as_echo X/"$0" |
15782: sed '/^.*\/\([^/][^/]*\)\/*$/{
15783: s//\1/
15784: q
15785: }
15786: /^X\/\(\/\/\)$/{
15787: s//\1/
15788: q
15789: }
15790: /^X\/\(\/\).*/{
15791: s//\1/
15792: q
15793: }
15794: s/.*/./; q'`
15795:
15796: # Avoid depending upon Character Ranges.
15797: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15798: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15799: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15800: as_cr_digits='0123456789'
15801: as_cr_alnum=$as_cr_Letters$as_cr_digits
15802:
15803: ECHO_C= ECHO_N= ECHO_T=
15804: case `echo -n x` in #(((((
15805: -n*)
15806: case `echo 'xy\c'` in
15807: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15808: xy) ECHO_C='\c';;
15809: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15810: ECHO_T=' ';;
15811: esac;;
15812: *)
15813: ECHO_N='-n';;
15814: esac
15815:
15816: rm -f conf$$ conf$$.exe conf$$.file
15817: if test -d conf$$.dir; then
15818: rm -f conf$$.dir/conf$$.file
15819: else
15820: rm -f conf$$.dir
15821: mkdir conf$$.dir 2>/dev/null
15822: fi
15823: if (echo >conf$$.file) 2>/dev/null; then
15824: if ln -s conf$$.file conf$$ 2>/dev/null; then
15825: as_ln_s='ln -s'
15826: # ... but there are two gotchas:
15827: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15828: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15829: # In both cases, we have to default to `cp -p'.
15830: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15831: as_ln_s='cp -p'
15832: elif ln conf$$.file conf$$ 2>/dev/null; then
15833: as_ln_s=ln
15834: else
15835: as_ln_s='cp -p'
15836: fi
15837: else
15838: as_ln_s='cp -p'
15839: fi
15840: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15841: rmdir conf$$.dir 2>/dev/null
15842:
15843:
15844: # as_fn_mkdir_p
15845: # -------------
15846: # Create "$as_dir" as a directory, including parents if necessary.
15847: as_fn_mkdir_p ()
15848: {
15849:
15850: case $as_dir in #(
15851: -*) as_dir=./$as_dir;;
15852: esac
15853: test -d "$as_dir" || eval $as_mkdir_p || {
15854: as_dirs=
15855: while :; do
15856: case $as_dir in #(
15857: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15858: *) as_qdir=$as_dir;;
15859: esac
15860: as_dirs="'$as_qdir' $as_dirs"
15861: as_dir=`$as_dirname -- "$as_dir" ||
15862: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15863: X"$as_dir" : 'X\(//\)[^/]' \| \
15864: X"$as_dir" : 'X\(//\)$' \| \
15865: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15866: $as_echo X"$as_dir" |
15867: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15868: s//\1/
15869: q
15870: }
15871: /^X\(\/\/\)[^/].*/{
15872: s//\1/
15873: q
15874: }
15875: /^X\(\/\/\)$/{
15876: s//\1/
15877: q
15878: }
15879: /^X\(\/\).*/{
15880: s//\1/
15881: q
15882: }
15883: s/.*/./; q'`
15884: test -d "$as_dir" && break
15885: done
15886: test -z "$as_dirs" || eval "mkdir $as_dirs"
15887: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15888:
15889:
15890: } # as_fn_mkdir_p
15891: if mkdir -p . 2>/dev/null; then
15892: as_mkdir_p='mkdir -p "$as_dir"'
15893: else
15894: test -d ./-p && rmdir ./-p
15895: as_mkdir_p=false
15896: fi
15897:
15898: if test -x / >/dev/null 2>&1; then
15899: as_test_x='test -x'
15900: else
15901: if ls -dL / >/dev/null 2>&1; then
15902: as_ls_L_option=L
15903: else
15904: as_ls_L_option=
15905: fi
15906: as_test_x='
15907: eval sh -c '\''
15908: if test -d "$1"; then
15909: test -d "$1/.";
15910: else
15911: case $1 in #(
15912: -*)set "./$1";;
15913: esac;
15914: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15915: ???[sx]*):;;*)false;;esac;fi
15916: '\'' sh
15917: '
15918: fi
15919: as_executable_p=$as_test_x
15920:
15921: # Sed expression to map a string onto a valid CPP name.
15922: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15923:
15924: # Sed expression to map a string onto a valid variable name.
15925: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15926:
15927:
15928: exec 6>&1
15929: ## ----------------------------------- ##
15930: ## Main body of $CONFIG_STATUS script. ##
15931: ## ----------------------------------- ##
15932: _ASEOF
15933: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15934:
15935: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936: # Save the log message, to keep $0 and so on meaningful, and to
15937: # report actual input values of CONFIG_FILES etc. instead of their
15938: # values after options handling.
15939: ac_log="
15940: This file was extended by $as_me, which was
1.1.1.2 misho 15941: generated by GNU Autoconf 2.68. Invocation command line was
1.1 misho 15942:
15943: CONFIG_FILES = $CONFIG_FILES
15944: CONFIG_HEADERS = $CONFIG_HEADERS
15945: CONFIG_LINKS = $CONFIG_LINKS
15946: CONFIG_COMMANDS = $CONFIG_COMMANDS
15947: $ $0 $@
15948:
15949: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15950: "
15951:
15952: _ACEOF
15953:
15954: case $ac_config_files in *"
15955: "*) set x $ac_config_files; shift; ac_config_files=$*;;
15956: esac
15957:
15958: case $ac_config_headers in *"
15959: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15960: esac
15961:
15962:
15963: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15964: # Files that config.status was made for.
15965: config_files="$ac_config_files"
15966: config_headers="$ac_config_headers"
15967: config_commands="$ac_config_commands"
15968:
15969: _ACEOF
15970:
15971: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972: ac_cs_usage="\
15973: \`$as_me' instantiates files and other configuration actions
15974: from templates according to the current configuration. Unless the files
15975: and actions are specified as TAGs, all are instantiated by default.
15976:
15977: Usage: $0 [OPTION]... [TAG]...
15978:
15979: -h, --help print this help, then exit
15980: -V, --version print version number and configuration settings, then exit
15981: --config print configuration, then exit
15982: -q, --quiet, --silent
15983: do not print progress messages
15984: -d, --debug don't remove temporary files
15985: --recheck update $as_me by reconfiguring in the same conditions
15986: --file=FILE[:TEMPLATE]
15987: instantiate the configuration file FILE
15988: --header=FILE[:TEMPLATE]
15989: instantiate the configuration header FILE
15990:
15991: Configuration files:
15992: $config_files
15993:
15994: Configuration headers:
15995: $config_headers
15996:
15997: Configuration commands:
15998: $config_commands
15999:
16000: Report bugs to the package provider."
16001:
16002: _ACEOF
16003: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16005: ac_cs_version="\\
16006: config.status
1.1.1.2 misho 16007: configured by $0, generated by GNU Autoconf 2.68,
1.1 misho 16008: with options \\"\$ac_cs_config\\"
16009:
16010: Copyright (C) 2010 Free Software Foundation, Inc.
16011: This config.status script is free software; the Free Software Foundation
16012: gives unlimited permission to copy, distribute and modify it."
16013:
16014: ac_pwd='$ac_pwd'
16015: srcdir='$srcdir'
16016: INSTALL='$INSTALL'
16017: MKDIR_P='$MKDIR_P'
16018: AWK='$AWK'
16019: test -n "\$AWK" || AWK=awk
16020: _ACEOF
16021:
16022: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16023: # The default lists apply if the user does not specify any file.
16024: ac_need_defaults=:
16025: while test $# != 0
16026: do
16027: case $1 in
1.1.1.2 misho 16028: --*=?*)
1.1 misho 16029: ac_option=`expr "X$1" : 'X\([^=]*\)='`
16030: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16031: ac_shift=:
16032: ;;
1.1.1.2 misho 16033: --*=)
16034: ac_option=`expr "X$1" : 'X\([^=]*\)='`
16035: ac_optarg=
16036: ac_shift=:
16037: ;;
1.1 misho 16038: *)
16039: ac_option=$1
16040: ac_optarg=$2
16041: ac_shift=shift
16042: ;;
16043: esac
16044:
16045: case $ac_option in
16046: # Handling of the options.
16047: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16048: ac_cs_recheck=: ;;
16049: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16050: $as_echo "$ac_cs_version"; exit ;;
16051: --config | --confi | --conf | --con | --co | --c )
16052: $as_echo "$ac_cs_config"; exit ;;
16053: --debug | --debu | --deb | --de | --d | -d )
16054: debug=: ;;
16055: --file | --fil | --fi | --f )
16056: $ac_shift
16057: case $ac_optarg in
16058: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.1.2 misho 16059: '') as_fn_error $? "missing file argument" ;;
1.1 misho 16060: esac
16061: as_fn_append CONFIG_FILES " '$ac_optarg'"
16062: ac_need_defaults=false;;
16063: --header | --heade | --head | --hea )
16064: $ac_shift
16065: case $ac_optarg in
16066: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16067: esac
16068: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16069: ac_need_defaults=false;;
16070: --he | --h)
16071: # Conflict between --help and --header
16072: as_fn_error $? "ambiguous option: \`$1'
16073: Try \`$0 --help' for more information.";;
16074: --help | --hel | -h )
16075: $as_echo "$ac_cs_usage"; exit ;;
16076: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16077: | -silent | --silent | --silen | --sile | --sil | --si | --s)
16078: ac_cs_silent=: ;;
16079:
16080: # This is an error.
16081: -*) as_fn_error $? "unrecognized option: \`$1'
16082: Try \`$0 --help' for more information." ;;
16083:
16084: *) as_fn_append ac_config_targets " $1"
16085: ac_need_defaults=false ;;
16086:
16087: esac
16088: shift
16089: done
16090:
16091: ac_configure_extra_args=
16092:
16093: if $ac_cs_silent; then
16094: exec 6>/dev/null
16095: ac_configure_extra_args="$ac_configure_extra_args --silent"
16096: fi
16097:
16098: _ACEOF
16099: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16100: if \$ac_cs_recheck; then
16101: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16102: shift
16103: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16104: CONFIG_SHELL='$SHELL'
16105: export CONFIG_SHELL
16106: exec "\$@"
16107: fi
16108:
16109: _ACEOF
16110: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16111: exec 5>>config.log
16112: {
16113: echo
16114: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16115: ## Running $as_me. ##
16116: _ASBOX
16117: $as_echo "$ac_log"
16118: } >&5
16119:
16120: _ACEOF
16121: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16122: #
16123: # INIT-COMMANDS
16124: #
16125: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16126:
16127:
16128: # The HP-UX ksh and POSIX shell print the target directory to stdout
16129: # if CDPATH is set.
16130: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16131:
16132: sed_quote_subst='$sed_quote_subst'
16133: double_quote_subst='$double_quote_subst'
16134: delay_variable_subst='$delay_variable_subst'
16135: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16136: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16137: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16138: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16139: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16140: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16141: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16142: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16143: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16144: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16145: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16146: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16147: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16148: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16149: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16150: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16151: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16152: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16153: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16154: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16155: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16156: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16157: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16158: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16159: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16160: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16161: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16162: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16163: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16164: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16165: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 16166: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16167: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1.1 misho 16168: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16169: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16170: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16171: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 16172: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16173: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16174: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1.1 misho 16175: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16176: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 16177: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1.1 misho 16178: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16179: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16180: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16181: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16182: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16183: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16184: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16185: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16186: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16187: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16188: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16189: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16190: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16191: 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"`'
1.1.1.2 misho 16192: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16193: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1.1 misho 16194: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16195: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16196: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16197: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 16198: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1.1 misho 16199: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16200: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16201: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 16202: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
1.1 misho 16203: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16204: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16205: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16206: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16207: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16208: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16209: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16210: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16211: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16212: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16213: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16214: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16215: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16216: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16217: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16218: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16219: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16220: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16221: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16222: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16223: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16224: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16225: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16226: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16227: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16228: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16229: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16230: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16231: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16232: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16233: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16234: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16235: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16236: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16237: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16238: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16239: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 16240: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
1.1 misho 16241: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16242: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16243: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16244: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16245: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16246: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16247: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16248: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16249: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16250: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16251: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16252: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16253: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16254: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16255: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16256: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16257: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16258: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16259: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16260: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16261: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16262: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16263: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16264: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16265: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16266:
16267: LTCC='$LTCC'
16268: LTCFLAGS='$LTCFLAGS'
16269: compiler='$compiler_DEFAULT'
16270:
16271: # A function that is used when there is no print builtin or printf.
16272: func_fallback_echo ()
16273: {
16274: eval 'cat <<_LTECHO_EOF
16275: \$1
16276: _LTECHO_EOF'
16277: }
16278:
16279: # Quote evaled strings.
16280: for var in AS \
16281: DLLTOOL \
16282: OBJDUMP \
16283: SHELL \
16284: ECHO \
16285: SED \
16286: GREP \
16287: EGREP \
16288: FGREP \
16289: LD \
16290: NM \
16291: LN_S \
16292: lt_SP2NL \
16293: lt_NL2SP \
16294: reload_flag \
16295: deplibs_check_method \
16296: file_magic_cmd \
1.1.1.2 misho 16297: file_magic_glob \
16298: want_nocaseglob \
16299: sharedlib_from_linklib_cmd \
1.1 misho 16300: AR \
16301: AR_FLAGS \
1.1.1.2 misho 16302: archiver_list_spec \
1.1 misho 16303: STRIP \
16304: RANLIB \
16305: CC \
16306: CFLAGS \
16307: compiler \
16308: lt_cv_sys_global_symbol_pipe \
16309: lt_cv_sys_global_symbol_to_cdecl \
16310: lt_cv_sys_global_symbol_to_c_name_address \
16311: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.1.1.2 misho 16312: nm_file_list_spec \
1.1 misho 16313: lt_prog_compiler_no_builtin_flag \
16314: lt_prog_compiler_pic \
1.1.1.2 misho 16315: lt_prog_compiler_wl \
1.1 misho 16316: lt_prog_compiler_static \
16317: lt_cv_prog_compiler_c_o \
16318: need_locks \
1.1.1.2 misho 16319: MANIFEST_TOOL \
1.1 misho 16320: DSYMUTIL \
16321: NMEDIT \
16322: LIPO \
16323: OTOOL \
16324: OTOOL64 \
16325: shrext_cmds \
16326: export_dynamic_flag_spec \
16327: whole_archive_flag_spec \
16328: compiler_needs_object \
16329: with_gnu_ld \
16330: allow_undefined_flag \
16331: no_undefined_flag \
16332: hardcode_libdir_flag_spec \
16333: hardcode_libdir_flag_spec_ld \
16334: hardcode_libdir_separator \
16335: exclude_expsyms \
16336: include_expsyms \
16337: file_list_spec \
16338: variables_saved_for_relink \
16339: libname_spec \
16340: library_names_spec \
16341: soname_spec \
16342: install_override_mode \
16343: finish_eval \
16344: old_striplib \
16345: striplib; do
16346: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16347: *[\\\\\\\`\\"\\\$]*)
16348: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16349: ;;
16350: *)
16351: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16352: ;;
16353: esac
16354: done
16355:
16356: # Double-quote double-evaled strings.
16357: for var in reload_cmds \
16358: old_postinstall_cmds \
16359: old_postuninstall_cmds \
16360: old_archive_cmds \
16361: extract_expsyms_cmds \
16362: old_archive_from_new_cmds \
16363: old_archive_from_expsyms_cmds \
16364: archive_cmds \
16365: archive_expsym_cmds \
16366: module_cmds \
16367: module_expsym_cmds \
16368: export_symbols_cmds \
16369: prelink_cmds \
1.1.1.2 misho 16370: postlink_cmds \
1.1 misho 16371: postinstall_cmds \
16372: postuninstall_cmds \
16373: finish_cmds \
16374: sys_lib_search_path_spec \
16375: sys_lib_dlsearch_path_spec; do
16376: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16377: *[\\\\\\\`\\"\\\$]*)
16378: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16379: ;;
16380: *)
16381: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16382: ;;
16383: esac
16384: done
16385:
16386: ac_aux_dir='$ac_aux_dir'
16387: xsi_shell='$xsi_shell'
16388: lt_shell_append='$lt_shell_append'
16389:
16390: # See if we are running on zsh, and set the options which allow our
16391: # commands through without removal of \ escapes INIT.
16392: if test -n "\${ZSH_VERSION+set}" ; then
16393: setopt NO_GLOB_SUBST
16394: fi
16395:
16396:
16397: PACKAGE='$PACKAGE'
16398: VERSION='$VERSION'
16399: TIMESTAMP='$TIMESTAMP'
16400: RM='$RM'
16401: ofile='$ofile'
16402:
16403:
16404:
16405:
16406: _ACEOF
16407:
16408: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16409:
16410: # Handling of arguments.
16411: for ac_config_target in $ac_config_targets
16412: do
16413: case $ac_config_target in
16414: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16415: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16416: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16417: "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
16418: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16419: "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16420: "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
16421: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16422: "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
16423: "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
16424: "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
16425: "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16426: "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
16427: "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
16428: "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
16429: "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
16430: "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
16431: "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
16432: "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
16433:
16434: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16435: esac
16436: done
16437:
16438:
16439: # If the user did not use the arguments to specify the items to instantiate,
16440: # then the envvar interface is used. Set only those that are not.
16441: # We use the long form for the default assignment because of an extremely
16442: # bizarre bug on SunOS 4.1.3.
16443: if $ac_need_defaults; then
16444: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16445: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16446: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16447: fi
16448:
16449: # Have a temporary directory for convenience. Make it in the build tree
16450: # simply because there is no reason against having it here, and in addition,
16451: # creating and moving files from /tmp can sometimes cause problems.
16452: # Hook for its removal unless debugging.
16453: # Note that there is a small window in which the directory will not be cleaned:
16454: # after its creation but before its name has been assigned to `$tmp'.
16455: $debug ||
16456: {
1.1.1.2 misho 16457: tmp= ac_tmp=
1.1 misho 16458: trap 'exit_status=$?
1.1.1.2 misho 16459: : "${ac_tmp:=$tmp}"
16460: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 misho 16461: ' 0
16462: trap 'as_fn_exit 1' 1 2 13 15
16463: }
16464: # Create a (secure) tmp directory for tmp files.
16465:
16466: {
16467: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.1.2 misho 16468: test -d "$tmp"
1.1 misho 16469: } ||
16470: {
16471: tmp=./conf$$-$RANDOM
16472: (umask 077 && mkdir "$tmp")
16473: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.1.1.2 misho 16474: ac_tmp=$tmp
1.1 misho 16475:
16476: # Set up the scripts for CONFIG_FILES section.
16477: # No need to generate them if there are no CONFIG_FILES.
16478: # This happens for instance with `./config.status config.h'.
16479: if test -n "$CONFIG_FILES"; then
16480:
16481:
16482: ac_cr=`echo X | tr X '\015'`
16483: # On cygwin, bash can eat \r inside `` if the user requested igncr.
16484: # But we know of no other shell where ac_cr would be empty at this
16485: # point, so we can use a bashism as a fallback.
16486: if test "x$ac_cr" = x; then
16487: eval ac_cr=\$\'\\r\'
16488: fi
16489: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16490: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16491: ac_cs_awk_cr='\\r'
16492: else
16493: ac_cs_awk_cr=$ac_cr
16494: fi
16495:
1.1.1.2 misho 16496: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.1 misho 16497: _ACEOF
16498:
16499:
16500: {
16501: echo "cat >conf$$subs.awk <<_ACEOF" &&
16502: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16503: echo "_ACEOF"
16504: } >conf$$subs.sh ||
16505: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16506: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16507: ac_delim='%!_!# '
16508: for ac_last_try in false false false false false :; do
16509: . ./conf$$subs.sh ||
16510: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16511:
16512: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16513: if test $ac_delim_n = $ac_delim_num; then
16514: break
16515: elif $ac_last_try; then
16516: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16517: else
16518: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16519: fi
16520: done
16521: rm -f conf$$subs.sh
16522:
16523: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.2 misho 16524: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.1 misho 16525: _ACEOF
16526: sed -n '
16527: h
16528: s/^/S["/; s/!.*/"]=/
16529: p
16530: g
16531: s/^[^!]*!//
16532: :repl
16533: t repl
16534: s/'"$ac_delim"'$//
16535: t delim
16536: :nl
16537: h
16538: s/\(.\{148\}\)..*/\1/
16539: t more1
16540: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16541: p
16542: n
16543: b repl
16544: :more1
16545: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16546: p
16547: g
16548: s/.\{148\}//
16549: t nl
16550: :delim
16551: h
16552: s/\(.\{148\}\)..*/\1/
16553: t more2
16554: s/["\\]/\\&/g; s/^/"/; s/$/"/
16555: p
16556: b
16557: :more2
16558: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16559: p
16560: g
16561: s/.\{148\}//
16562: t delim
16563: ' <conf$$subs.awk | sed '
16564: /^[^""]/{
16565: N
16566: s/\n//
16567: }
16568: ' >>$CONFIG_STATUS || ac_write_fail=1
16569: rm -f conf$$subs.awk
16570: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16571: _ACAWK
1.1.1.2 misho 16572: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.1 misho 16573: for (key in S) S_is_set[key] = 1
16574: FS = ""
16575:
16576: }
16577: {
16578: line = $ 0
16579: nfields = split(line, field, "@")
16580: substed = 0
16581: len = length(field[1])
16582: for (i = 2; i < nfields; i++) {
16583: key = field[i]
16584: keylen = length(key)
16585: if (S_is_set[key]) {
16586: value = S[key]
16587: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16588: len += length(value) + length(field[++i])
16589: substed = 1
16590: } else
16591: len += 1 + keylen
16592: }
16593:
16594: print line
16595: }
16596:
16597: _ACAWK
16598: _ACEOF
16599: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16600: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16601: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16602: else
16603: cat
1.1.1.2 misho 16604: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.1 misho 16605: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16606: _ACEOF
16607:
16608: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16609: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16610: # trailing colons and then remove the whole line if VPATH becomes empty
16611: # (actually we leave an empty line to preserve line numbers).
16612: if test "x$srcdir" = x.; then
16613: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16614: h
16615: s///
16616: s/^/:/
16617: s/[ ]*$/:/
16618: s/:\$(srcdir):/:/g
16619: s/:\${srcdir}:/:/g
16620: s/:@srcdir@:/:/g
16621: s/^:*//
16622: s/:*$//
16623: x
16624: s/\(=[ ]*\).*/\1/
16625: G
16626: s/\n//
16627: s/^[^=]*=[ ]*$//
16628: }'
16629: fi
16630:
16631: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16632: fi # test -n "$CONFIG_FILES"
16633:
16634: # Set up the scripts for CONFIG_HEADERS section.
16635: # No need to generate them if there are no CONFIG_HEADERS.
16636: # This happens for instance with `./config.status Makefile'.
16637: if test -n "$CONFIG_HEADERS"; then
1.1.1.2 misho 16638: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.1 misho 16639: BEGIN {
16640: _ACEOF
16641:
16642: # Transform confdefs.h into an awk script `defines.awk', embedded as
16643: # here-document in config.status, that substitutes the proper values into
16644: # config.h.in to produce config.h.
16645:
16646: # Create a delimiter string that does not exist in confdefs.h, to ease
16647: # handling of long lines.
16648: ac_delim='%!_!# '
16649: for ac_last_try in false false :; do
1.1.1.2 misho 16650: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16651: if test -z "$ac_tt"; then
1.1 misho 16652: break
16653: elif $ac_last_try; then
16654: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16655: else
16656: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16657: fi
16658: done
16659:
16660: # For the awk script, D is an array of macro values keyed by name,
16661: # likewise P contains macro parameters if any. Preserve backslash
16662: # newline sequences.
16663:
16664: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16665: sed -n '
16666: s/.\{148\}/&'"$ac_delim"'/g
16667: t rset
16668: :rset
16669: s/^[ ]*#[ ]*define[ ][ ]*/ /
16670: t def
16671: d
16672: :def
16673: s/\\$//
16674: t bsnl
16675: s/["\\]/\\&/g
16676: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16677: D["\1"]=" \3"/p
16678: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16679: d
16680: :bsnl
16681: s/["\\]/\\&/g
16682: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16683: D["\1"]=" \3\\\\\\n"\\/p
16684: t cont
16685: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16686: t cont
16687: d
16688: :cont
16689: n
16690: s/.\{148\}/&'"$ac_delim"'/g
16691: t clear
16692: :clear
16693: s/\\$//
16694: t bsnlc
16695: s/["\\]/\\&/g; s/^/"/; s/$/"/p
16696: d
16697: :bsnlc
16698: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16699: b cont
16700: ' <confdefs.h | sed '
16701: s/'"$ac_delim"'/"\\\
16702: "/g' >>$CONFIG_STATUS || ac_write_fail=1
16703:
16704: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705: for (key in D) D_is_set[key] = 1
16706: FS = ""
16707: }
16708: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16709: line = \$ 0
16710: split(line, arg, " ")
16711: if (arg[1] == "#") {
16712: defundef = arg[2]
16713: mac1 = arg[3]
16714: } else {
16715: defundef = substr(arg[1], 2)
16716: mac1 = arg[2]
16717: }
16718: split(mac1, mac2, "(") #)
16719: macro = mac2[1]
16720: prefix = substr(line, 1, index(line, defundef) - 1)
16721: if (D_is_set[macro]) {
16722: # Preserve the white space surrounding the "#".
16723: print prefix "define", macro P[macro] D[macro]
16724: next
16725: } else {
16726: # Replace #undef with comments. This is necessary, for example,
16727: # in the case of _POSIX_SOURCE, which is predefined and required
16728: # on some systems where configure will not decide to define it.
16729: if (defundef == "undef") {
16730: print "/*", prefix defundef, macro, "*/"
16731: next
16732: }
16733: }
16734: }
16735: { print }
16736: _ACAWK
16737: _ACEOF
16738: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16739: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16740: fi # test -n "$CONFIG_HEADERS"
16741:
16742:
16743: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16744: shift
16745: for ac_tag
16746: do
16747: case $ac_tag in
16748: :[FHLC]) ac_mode=$ac_tag; continue;;
16749: esac
16750: case $ac_mode$ac_tag in
16751: :[FHL]*:*);;
16752: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16753: :[FH]-) ac_tag=-:-;;
16754: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16755: esac
16756: ac_save_IFS=$IFS
16757: IFS=:
16758: set x $ac_tag
16759: IFS=$ac_save_IFS
16760: shift
16761: ac_file=$1
16762: shift
16763:
16764: case $ac_mode in
16765: :L) ac_source=$1;;
16766: :[FH])
16767: ac_file_inputs=
16768: for ac_f
16769: do
16770: case $ac_f in
1.1.1.2 misho 16771: -) ac_f="$ac_tmp/stdin";;
1.1 misho 16772: *) # Look for the file first in the build tree, then in the source tree
16773: # (if the path is not absolute). The absolute path cannot be DOS-style,
16774: # because $ac_f cannot contain `:'.
16775: test -f "$ac_f" ||
16776: case $ac_f in
16777: [\\/$]*) false;;
16778: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16779: esac ||
16780: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16781: esac
16782: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16783: as_fn_append ac_file_inputs " '$ac_f'"
16784: done
16785:
16786: # Let's still pretend it is `configure' which instantiates (i.e., don't
16787: # use $as_me), people would be surprised to read:
16788: # /* config.h. Generated by config.status. */
16789: configure_input='Generated from '`
16790: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16791: `' by configure.'
16792: if test x"$ac_file" != x-; then
16793: configure_input="$ac_file. $configure_input"
16794: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16795: $as_echo "$as_me: creating $ac_file" >&6;}
16796: fi
16797: # Neutralize special characters interpreted by sed in replacement strings.
16798: case $configure_input in #(
16799: *\&* | *\|* | *\\* )
16800: ac_sed_conf_input=`$as_echo "$configure_input" |
16801: sed 's/[\\\\&|]/\\\\&/g'`;; #(
16802: *) ac_sed_conf_input=$configure_input;;
16803: esac
16804:
16805: case $ac_tag in
1.1.1.2 misho 16806: *:-:* | *:-) cat >"$ac_tmp/stdin" \
1.1 misho 16807: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16808: esac
16809: ;;
16810: esac
16811:
16812: ac_dir=`$as_dirname -- "$ac_file" ||
16813: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16814: X"$ac_file" : 'X\(//\)[^/]' \| \
16815: X"$ac_file" : 'X\(//\)$' \| \
16816: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16817: $as_echo X"$ac_file" |
16818: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16819: s//\1/
16820: q
16821: }
16822: /^X\(\/\/\)[^/].*/{
16823: s//\1/
16824: q
16825: }
16826: /^X\(\/\/\)$/{
16827: s//\1/
16828: q
16829: }
16830: /^X\(\/\).*/{
16831: s//\1/
16832: q
16833: }
16834: s/.*/./; q'`
16835: as_dir="$ac_dir"; as_fn_mkdir_p
16836: ac_builddir=.
16837:
16838: case "$ac_dir" in
16839: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16840: *)
16841: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16842: # A ".." for each directory in $ac_dir_suffix.
16843: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16844: case $ac_top_builddir_sub in
16845: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16846: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16847: esac ;;
16848: esac
16849: ac_abs_top_builddir=$ac_pwd
16850: ac_abs_builddir=$ac_pwd$ac_dir_suffix
16851: # for backward compatibility:
16852: ac_top_builddir=$ac_top_build_prefix
16853:
16854: case $srcdir in
16855: .) # We are building in place.
16856: ac_srcdir=.
16857: ac_top_srcdir=$ac_top_builddir_sub
16858: ac_abs_top_srcdir=$ac_pwd ;;
16859: [\\/]* | ?:[\\/]* ) # Absolute name.
16860: ac_srcdir=$srcdir$ac_dir_suffix;
16861: ac_top_srcdir=$srcdir
16862: ac_abs_top_srcdir=$srcdir ;;
16863: *) # Relative name.
16864: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16865: ac_top_srcdir=$ac_top_build_prefix$srcdir
16866: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16867: esac
16868: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16869:
16870:
16871: case $ac_mode in
16872: :F)
16873: #
16874: # CONFIG_FILE
16875: #
16876:
16877: case $INSTALL in
16878: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16879: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16880: esac
16881: ac_MKDIR_P=$MKDIR_P
16882: case $MKDIR_P in
16883: [\\/$]* | ?:[\\/]* ) ;;
16884: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16885: esac
16886: _ACEOF
16887:
16888: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889: # If the template does not know about datarootdir, expand it.
16890: # FIXME: This hack should be removed a few years after 2.60.
16891: ac_datarootdir_hack=; ac_datarootdir_seen=
16892: ac_sed_dataroot='
16893: /datarootdir/ {
16894: p
16895: q
16896: }
16897: /@datadir@/p
16898: /@docdir@/p
16899: /@infodir@/p
16900: /@localedir@/p
16901: /@mandir@/p'
16902: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16903: *datarootdir*) ac_datarootdir_seen=yes;;
16904: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16905: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16906: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16907: _ACEOF
16908: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16909: ac_datarootdir_hack='
16910: s&@datadir@&$datadir&g
16911: s&@docdir@&$docdir&g
16912: s&@infodir@&$infodir&g
16913: s&@localedir@&$localedir&g
16914: s&@mandir@&$mandir&g
16915: s&\\\${datarootdir}&$datarootdir&g' ;;
16916: esac
16917: _ACEOF
16918:
16919: # Neutralize VPATH when `$srcdir' = `.'.
16920: # Shell code in configure.ac might set extrasub.
16921: # FIXME: do we really want to maintain this feature?
16922: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16923: ac_sed_extra="$ac_vpsub
16924: $extrasub
16925: _ACEOF
16926: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16927: :t
16928: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16929: s|@configure_input@|$ac_sed_conf_input|;t t
16930: s&@top_builddir@&$ac_top_builddir_sub&;t t
16931: s&@top_build_prefix@&$ac_top_build_prefix&;t t
16932: s&@srcdir@&$ac_srcdir&;t t
16933: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16934: s&@top_srcdir@&$ac_top_srcdir&;t t
16935: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16936: s&@builddir@&$ac_builddir&;t t
16937: s&@abs_builddir@&$ac_abs_builddir&;t t
16938: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16939: s&@INSTALL@&$ac_INSTALL&;t t
16940: s&@MKDIR_P@&$ac_MKDIR_P&;t t
16941: $ac_datarootdir_hack
16942: "
1.1.1.2 misho 16943: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16944: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 16945:
16946: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.1.1.2 misho 16947: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16948: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16949: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.1 misho 16950: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16951: which seems to be undefined. Please make sure it is defined" >&5
16952: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16953: which seems to be undefined. Please make sure it is defined" >&2;}
16954:
1.1.1.2 misho 16955: rm -f "$ac_tmp/stdin"
1.1 misho 16956: case $ac_file in
1.1.1.2 misho 16957: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16958: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.1 misho 16959: esac \
16960: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16961: ;;
16962: :H)
16963: #
16964: # CONFIG_HEADER
16965: #
16966: if test x"$ac_file" != x-; then
16967: {
16968: $as_echo "/* $configure_input */" \
1.1.1.2 misho 16969: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16970: } >"$ac_tmp/config.h" \
1.1 misho 16971: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1.1.2 misho 16972: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.1 misho 16973: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16974: $as_echo "$as_me: $ac_file is unchanged" >&6;}
16975: else
16976: rm -f "$ac_file"
1.1.1.2 misho 16977: mv "$ac_tmp/config.h" "$ac_file" \
1.1 misho 16978: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16979: fi
16980: else
16981: $as_echo "/* $configure_input */" \
1.1.1.2 misho 16982: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.1 misho 16983: || as_fn_error $? "could not create -" "$LINENO" 5
16984: fi
16985: # Compute "$ac_file"'s index in $config_headers.
16986: _am_arg="$ac_file"
16987: _am_stamp_count=1
16988: for _am_header in $config_headers :; do
16989: case $_am_header in
16990: $_am_arg | $_am_arg:* )
16991: break ;;
16992: * )
16993: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16994: esac
16995: done
16996: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16997: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16998: X"$_am_arg" : 'X\(//\)[^/]' \| \
16999: X"$_am_arg" : 'X\(//\)$' \| \
17000: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17001: $as_echo X"$_am_arg" |
17002: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17003: s//\1/
17004: q
17005: }
17006: /^X\(\/\/\)[^/].*/{
17007: s//\1/
17008: q
17009: }
17010: /^X\(\/\/\)$/{
17011: s//\1/
17012: q
17013: }
17014: /^X\(\/\).*/{
17015: s//\1/
17016: q
17017: }
17018: s/.*/./; q'`/stamp-h$_am_stamp_count
17019: ;;
17020:
17021: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17022: $as_echo "$as_me: executing $ac_file commands" >&6;}
17023: ;;
17024: esac
17025:
17026:
17027: case $ac_file$ac_mode in
17028: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17029: # Autoconf 2.62 quotes --file arguments for eval, but not when files
17030: # are listed without --file. Let's play safe and only enable the eval
17031: # if we detect the quoting.
17032: case $CONFIG_FILES in
17033: *\'*) eval set x "$CONFIG_FILES" ;;
17034: *) set x $CONFIG_FILES ;;
17035: esac
17036: shift
17037: for mf
17038: do
17039: # Strip MF so we end up with the name of the file.
17040: mf=`echo "$mf" | sed -e 's/:.*$//'`
17041: # Check whether this is an Automake generated Makefile or not.
17042: # We used to match only the files named `Makefile.in', but
17043: # some people rename them; so instead we look at the file content.
17044: # Grep'ing the first line is not enough: some people post-process
17045: # each Makefile.in and add a new line on top of each file to say so.
17046: # Grep'ing the whole file is not good either: AIX grep has a line
17047: # limit of 2048, but all sed's we know have understand at least 4000.
17048: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17049: dirpart=`$as_dirname -- "$mf" ||
17050: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17051: X"$mf" : 'X\(//\)[^/]' \| \
17052: X"$mf" : 'X\(//\)$' \| \
17053: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17054: $as_echo X"$mf" |
17055: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17056: s//\1/
17057: q
17058: }
17059: /^X\(\/\/\)[^/].*/{
17060: s//\1/
17061: q
17062: }
17063: /^X\(\/\/\)$/{
17064: s//\1/
17065: q
17066: }
17067: /^X\(\/\).*/{
17068: s//\1/
17069: q
17070: }
17071: s/.*/./; q'`
17072: else
17073: continue
17074: fi
17075: # Extract the definition of DEPDIR, am__include, and am__quote
17076: # from the Makefile without running `make'.
17077: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17078: test -z "$DEPDIR" && continue
17079: am__include=`sed -n 's/^am__include = //p' < "$mf"`
17080: test -z "am__include" && continue
17081: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17082: # When using ansi2knr, U may be empty or an underscore; expand it
17083: U=`sed -n 's/^U = //p' < "$mf"`
17084: # Find all dependency output files, they are included files with
17085: # $(DEPDIR) in their names. We invoke sed twice because it is the
17086: # simplest approach to changing $(DEPDIR) to its actual value in the
17087: # expansion.
17088: for file in `sed -n "
17089: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17090: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17091: # Make sure the directory exists.
17092: test -f "$dirpart/$file" && continue
17093: fdir=`$as_dirname -- "$file" ||
17094: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17095: X"$file" : 'X\(//\)[^/]' \| \
17096: X"$file" : 'X\(//\)$' \| \
17097: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17098: $as_echo X"$file" |
17099: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17100: s//\1/
17101: q
17102: }
17103: /^X\(\/\/\)[^/].*/{
17104: s//\1/
17105: q
17106: }
17107: /^X\(\/\/\)$/{
17108: s//\1/
17109: q
17110: }
17111: /^X\(\/\).*/{
17112: s//\1/
17113: q
17114: }
17115: s/.*/./; q'`
17116: as_dir=$dirpart/$fdir; as_fn_mkdir_p
17117: # echo "creating $dirpart/$file"
17118: echo '# dummy' > "$dirpart/$file"
17119: done
17120: done
17121: }
17122: ;;
17123: "libtool":C)
17124:
17125: # See if we are running on zsh, and set the options which allow our
17126: # commands through without removal of \ escapes.
17127: if test -n "${ZSH_VERSION+set}" ; then
17128: setopt NO_GLOB_SUBST
17129: fi
17130:
17131: cfgfile="${ofile}T"
17132: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17133: $RM "$cfgfile"
17134:
17135: cat <<_LT_EOF >> "$cfgfile"
17136: #! $SHELL
17137:
17138: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17139: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17140: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17141: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17142: #
17143: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17144: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17145: # Inc.
17146: # Written by Gordon Matzigkeit, 1996
17147: #
17148: # This file is part of GNU Libtool.
17149: #
17150: # GNU Libtool is free software; you can redistribute it and/or
17151: # modify it under the terms of the GNU General Public License as
17152: # published by the Free Software Foundation; either version 2 of
17153: # the License, or (at your option) any later version.
17154: #
17155: # As a special exception to the GNU General Public License,
17156: # if you distribute this file as part of a program or library that
17157: # is built using GNU Libtool, you may include this file under the
17158: # same distribution terms that you use for the rest of that program.
17159: #
17160: # GNU Libtool is distributed in the hope that it will be useful,
17161: # but WITHOUT ANY WARRANTY; without even the implied warranty of
17162: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17163: # GNU General Public License for more details.
17164: #
17165: # You should have received a copy of the GNU General Public License
17166: # along with GNU Libtool; see the file COPYING. If not, a copy
17167: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17168: # obtained by writing to the Free Software Foundation, Inc.,
17169: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17170:
17171:
17172: # The names of the tagged configurations supported by this script.
17173: available_tags=""
17174:
17175: # ### BEGIN LIBTOOL CONFIG
17176:
17177: # Assembler program.
17178: AS=$lt_AS
17179:
17180: # DLL creation program.
17181: DLLTOOL=$lt_DLLTOOL
17182:
17183: # Object dumper program.
17184: OBJDUMP=$lt_OBJDUMP
17185:
17186: # Which release of libtool.m4 was used?
17187: macro_version=$macro_version
17188: macro_revision=$macro_revision
17189:
17190: # Whether or not to build shared libraries.
17191: build_libtool_libs=$enable_shared
17192:
17193: # Whether or not to build static libraries.
17194: build_old_libs=$enable_static
17195:
17196: # What type of objects to build.
17197: pic_mode=$pic_mode
17198:
17199: # Whether or not to optimize for fast installation.
17200: fast_install=$enable_fast_install
17201:
17202: # Shell to use when invoking shell scripts.
17203: SHELL=$lt_SHELL
17204:
17205: # An echo program that protects backslashes.
17206: ECHO=$lt_ECHO
17207:
17208: # The host system.
17209: host_alias=$host_alias
17210: host=$host
17211: host_os=$host_os
17212:
17213: # The build system.
17214: build_alias=$build_alias
17215: build=$build
17216: build_os=$build_os
17217:
17218: # A sed program that does not truncate output.
17219: SED=$lt_SED
17220:
17221: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17222: Xsed="\$SED -e 1s/^X//"
17223:
17224: # A grep program that handles long lines.
17225: GREP=$lt_GREP
17226:
17227: # An ERE matcher.
17228: EGREP=$lt_EGREP
17229:
17230: # A literal string matcher.
17231: FGREP=$lt_FGREP
17232:
17233: # A BSD- or MS-compatible name lister.
17234: NM=$lt_NM
17235:
17236: # Whether we need soft or hard links.
17237: LN_S=$lt_LN_S
17238:
17239: # What is the maximum length of a command?
17240: max_cmd_len=$max_cmd_len
17241:
17242: # Object file suffix (normally "o").
17243: objext=$ac_objext
17244:
17245: # Executable file suffix (normally "").
17246: exeext=$exeext
17247:
17248: # whether the shell understands "unset".
17249: lt_unset=$lt_unset
17250:
17251: # turn spaces into newlines.
17252: SP2NL=$lt_lt_SP2NL
17253:
17254: # turn newlines into spaces.
17255: NL2SP=$lt_lt_NL2SP
17256:
1.1.1.2 misho 17257: # convert \$build file names to \$host format.
17258: to_host_file_cmd=$lt_cv_to_host_file_cmd
17259:
17260: # convert \$build files to toolchain format.
17261: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17262:
1.1 misho 17263: # Method to check whether dependent libraries are shared objects.
17264: deplibs_check_method=$lt_deplibs_check_method
17265:
1.1.1.2 misho 17266: # Command to use when deplibs_check_method = "file_magic".
1.1 misho 17267: file_magic_cmd=$lt_file_magic_cmd
17268:
1.1.1.2 misho 17269: # How to find potential files when deplibs_check_method = "file_magic".
17270: file_magic_glob=$lt_file_magic_glob
17271:
17272: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17273: want_nocaseglob=$lt_want_nocaseglob
17274:
17275: # Command to associate shared and link libraries.
17276: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17277:
1.1 misho 17278: # The archiver.
17279: AR=$lt_AR
1.1.1.2 misho 17280:
17281: # Flags to create an archive.
1.1 misho 17282: AR_FLAGS=$lt_AR_FLAGS
17283:
1.1.1.2 misho 17284: # How to feed a file listing to the archiver.
17285: archiver_list_spec=$lt_archiver_list_spec
17286:
1.1 misho 17287: # A symbol stripping program.
17288: STRIP=$lt_STRIP
17289:
17290: # Commands used to install an old-style archive.
17291: RANLIB=$lt_RANLIB
17292: old_postinstall_cmds=$lt_old_postinstall_cmds
17293: old_postuninstall_cmds=$lt_old_postuninstall_cmds
17294:
17295: # Whether to use a lock for old archive extraction.
17296: lock_old_archive_extraction=$lock_old_archive_extraction
17297:
17298: # A C compiler.
17299: LTCC=$lt_CC
17300:
17301: # LTCC compiler flags.
17302: LTCFLAGS=$lt_CFLAGS
17303:
17304: # Take the output of nm and produce a listing of raw symbols and C names.
17305: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17306:
17307: # Transform the output of nm in a proper C declaration.
17308: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17309:
17310: # Transform the output of nm in a C name address pair.
17311: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17312:
17313: # Transform the output of nm in a C name address pair when lib prefix is needed.
17314: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17315:
1.1.1.2 misho 17316: # Specify filename containing input files for \$NM.
17317: nm_file_list_spec=$lt_nm_file_list_spec
17318:
17319: # The root where to search for dependent libraries,and in which our libraries should be installed.
17320: lt_sysroot=$lt_sysroot
17321:
1.1 misho 17322: # The name of the directory that contains temporary libtool files.
17323: objdir=$objdir
17324:
17325: # Used to examine libraries when file_magic_cmd begins with "file".
17326: MAGIC_CMD=$MAGIC_CMD
17327:
17328: # Must we lock files when doing compilation?
17329: need_locks=$lt_need_locks
17330:
1.1.1.2 misho 17331: # Manifest tool.
17332: MANIFEST_TOOL=$lt_MANIFEST_TOOL
17333:
1.1 misho 17334: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17335: DSYMUTIL=$lt_DSYMUTIL
17336:
17337: # Tool to change global to local symbols on Mac OS X.
17338: NMEDIT=$lt_NMEDIT
17339:
17340: # Tool to manipulate fat objects and archives on Mac OS X.
17341: LIPO=$lt_LIPO
17342:
17343: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17344: OTOOL=$lt_OTOOL
17345:
17346: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17347: OTOOL64=$lt_OTOOL64
17348:
17349: # Old archive suffix (normally "a").
17350: libext=$libext
17351:
17352: # Shared library suffix (normally ".so").
17353: shrext_cmds=$lt_shrext_cmds
17354:
17355: # The commands to extract the exported symbol list from a shared archive.
17356: extract_expsyms_cmds=$lt_extract_expsyms_cmds
17357:
17358: # Variables whose values should be saved in libtool wrapper scripts and
17359: # restored at link time.
17360: variables_saved_for_relink=$lt_variables_saved_for_relink
17361:
17362: # Do we need the "lib" prefix for modules?
17363: need_lib_prefix=$need_lib_prefix
17364:
17365: # Do we need a version for libraries?
17366: need_version=$need_version
17367:
17368: # Library versioning type.
17369: version_type=$version_type
17370:
17371: # Shared library runtime path variable.
17372: runpath_var=$runpath_var
17373:
17374: # Shared library path variable.
17375: shlibpath_var=$shlibpath_var
17376:
17377: # Is shlibpath searched before the hard-coded library search path?
17378: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17379:
17380: # Format of library name prefix.
17381: libname_spec=$lt_libname_spec
17382:
17383: # List of archive names. First name is the real one, the rest are links.
17384: # The last name is the one that the linker finds with -lNAME
17385: library_names_spec=$lt_library_names_spec
17386:
17387: # The coded name of the library, if different from the real name.
17388: soname_spec=$lt_soname_spec
17389:
17390: # Permission mode override for installation of shared libraries.
17391: install_override_mode=$lt_install_override_mode
17392:
17393: # Command to use after installation of a shared archive.
17394: postinstall_cmds=$lt_postinstall_cmds
17395:
17396: # Command to use after uninstallation of a shared archive.
17397: postuninstall_cmds=$lt_postuninstall_cmds
17398:
17399: # Commands used to finish a libtool library installation in a directory.
17400: finish_cmds=$lt_finish_cmds
17401:
17402: # As "finish_cmds", except a single script fragment to be evaled but
17403: # not shown.
17404: finish_eval=$lt_finish_eval
17405:
17406: # Whether we should hardcode library paths into libraries.
17407: hardcode_into_libs=$hardcode_into_libs
17408:
17409: # Compile-time system search path for libraries.
17410: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17411:
17412: # Run-time system search path for libraries.
17413: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17414:
17415: # Whether dlopen is supported.
17416: dlopen_support=$enable_dlopen
17417:
17418: # Whether dlopen of programs is supported.
17419: dlopen_self=$enable_dlopen_self
17420:
17421: # Whether dlopen of statically linked programs is supported.
17422: dlopen_self_static=$enable_dlopen_self_static
17423:
17424: # Commands to strip libraries.
17425: old_striplib=$lt_old_striplib
17426: striplib=$lt_striplib
17427:
17428:
17429: # The linker used to build libraries.
17430: LD=$lt_LD
17431:
17432: # How to create reloadable object files.
17433: reload_flag=$lt_reload_flag
17434: reload_cmds=$lt_reload_cmds
17435:
17436: # Commands used to build an old-style archive.
17437: old_archive_cmds=$lt_old_archive_cmds
17438:
17439: # A language specific compiler.
17440: CC=$lt_compiler
17441:
17442: # Is the compiler the GNU compiler?
17443: with_gcc=$GCC
17444:
17445: # Compiler flag to turn off builtin functions.
17446: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17447:
17448: # Additional compiler flags for building library objects.
17449: pic_flag=$lt_lt_prog_compiler_pic
17450:
1.1.1.2 misho 17451: # How to pass a linker flag through the compiler.
17452: wl=$lt_lt_prog_compiler_wl
17453:
1.1 misho 17454: # Compiler flag to prevent dynamic linking.
17455: link_static_flag=$lt_lt_prog_compiler_static
17456:
17457: # Does compiler simultaneously support -c and -o options?
17458: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17459:
17460: # Whether or not to add -lc for building shared libraries.
17461: build_libtool_need_lc=$archive_cmds_need_lc
17462:
17463: # Whether or not to disallow shared libs when runtime libs are static.
17464: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17465:
17466: # Compiler flag to allow reflexive dlopens.
17467: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17468:
17469: # Compiler flag to generate shared objects directly from archives.
17470: whole_archive_flag_spec=$lt_whole_archive_flag_spec
17471:
17472: # Whether the compiler copes with passing no objects directly.
17473: compiler_needs_object=$lt_compiler_needs_object
17474:
17475: # Create an old-style archive from a shared archive.
17476: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17477:
17478: # Create a temporary old-style archive to link instead of a shared archive.
17479: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17480:
17481: # Commands used to build a shared archive.
17482: archive_cmds=$lt_archive_cmds
17483: archive_expsym_cmds=$lt_archive_expsym_cmds
17484:
17485: # Commands used to build a loadable module if different from building
17486: # a shared archive.
17487: module_cmds=$lt_module_cmds
17488: module_expsym_cmds=$lt_module_expsym_cmds
17489:
17490: # Whether we are building with GNU ld or not.
17491: with_gnu_ld=$lt_with_gnu_ld
17492:
17493: # Flag that allows shared libraries with undefined symbols to be built.
17494: allow_undefined_flag=$lt_allow_undefined_flag
17495:
17496: # Flag that enforces no undefined symbols.
17497: no_undefined_flag=$lt_no_undefined_flag
17498:
17499: # Flag to hardcode \$libdir into a binary during linking.
17500: # This must work even if \$libdir does not exist
17501: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17502:
17503: # If ld is used when linking, flag to hardcode \$libdir into a binary
17504: # during linking. This must work even if \$libdir does not exist.
17505: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17506:
17507: # Whether we need a single "-rpath" flag with a separated argument.
17508: hardcode_libdir_separator=$lt_hardcode_libdir_separator
17509:
17510: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17511: # DIR into the resulting binary.
17512: hardcode_direct=$hardcode_direct
17513:
17514: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17515: # DIR into the resulting binary and the resulting library dependency is
17516: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17517: # library is relocated.
17518: hardcode_direct_absolute=$hardcode_direct_absolute
17519:
17520: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17521: # into the resulting binary.
17522: hardcode_minus_L=$hardcode_minus_L
17523:
17524: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17525: # into the resulting binary.
17526: hardcode_shlibpath_var=$hardcode_shlibpath_var
17527:
17528: # Set to "yes" if building a shared library automatically hardcodes DIR
17529: # into the library and all subsequent libraries and executables linked
17530: # against it.
17531: hardcode_automatic=$hardcode_automatic
17532:
17533: # Set to yes if linker adds runtime paths of dependent libraries
17534: # to runtime path list.
17535: inherit_rpath=$inherit_rpath
17536:
17537: # Whether libtool must link a program against all its dependency libraries.
17538: link_all_deplibs=$link_all_deplibs
17539:
17540: # Set to "yes" if exported symbols are required.
17541: always_export_symbols=$always_export_symbols
17542:
17543: # The commands to list exported symbols.
17544: export_symbols_cmds=$lt_export_symbols_cmds
17545:
17546: # Symbols that should not be listed in the preloaded symbols.
17547: exclude_expsyms=$lt_exclude_expsyms
17548:
17549: # Symbols that must always be exported.
17550: include_expsyms=$lt_include_expsyms
17551:
17552: # Commands necessary for linking programs (against libraries) with templates.
17553: prelink_cmds=$lt_prelink_cmds
17554:
1.1.1.2 misho 17555: # Commands necessary for finishing linking programs.
17556: postlink_cmds=$lt_postlink_cmds
17557:
1.1 misho 17558: # Specify filename containing input files.
17559: file_list_spec=$lt_file_list_spec
17560:
17561: # How to hardcode a shared library path into an executable.
17562: hardcode_action=$hardcode_action
17563:
17564: # ### END LIBTOOL CONFIG
17565:
17566: _LT_EOF
17567:
17568: case $host_os in
17569: aix3*)
17570: cat <<\_LT_EOF >> "$cfgfile"
17571: # AIX sometimes has problems with the GCC collect2 program. For some
17572: # reason, if we set the COLLECT_NAMES environment variable, the problems
17573: # vanish in a puff of smoke.
17574: if test "X${COLLECT_NAMES+set}" != Xset; then
17575: COLLECT_NAMES=
17576: export COLLECT_NAMES
17577: fi
17578: _LT_EOF
17579: ;;
17580: esac
17581:
17582:
17583: ltmain="$ac_aux_dir/ltmain.sh"
17584:
17585:
17586: # We use sed instead of cat because bash on DJGPP gets confused if
17587: # if finds mixed CR/LF and LF-only lines. Since sed operates in
17588: # text mode, it properly converts lines to CR/LF. This bash problem
17589: # is reportedly fixed, but why not run on old versions too?
1.1.1.2 misho 17590: sed '$q' "$ltmain" >> "$cfgfile" \
17591: || (rm -f "$cfgfile"; exit 1)
1.1 misho 17592:
1.1.1.2 misho 17593: if test x"$xsi_shell" = xyes; then
17594: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17595: func_dirname ()\
17596: {\
17597: \ case ${1} in\
17598: \ */*) func_dirname_result="${1%/*}${2}" ;;\
17599: \ * ) func_dirname_result="${3}" ;;\
17600: \ esac\
17601: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17602: && mv -f "$cfgfile.tmp" "$cfgfile" \
17603: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17604: test 0 -eq $? || _lt_function_replace_fail=:
17605:
17606:
17607: sed -e '/^func_basename ()$/,/^} # func_basename /c\
17608: func_basename ()\
17609: {\
17610: \ func_basename_result="${1##*/}"\
17611: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17612: && mv -f "$cfgfile.tmp" "$cfgfile" \
17613: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17614: test 0 -eq $? || _lt_function_replace_fail=:
17615:
17616:
17617: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17618: func_dirname_and_basename ()\
17619: {\
17620: \ case ${1} in\
17621: \ */*) func_dirname_result="${1%/*}${2}" ;;\
17622: \ * ) func_dirname_result="${3}" ;;\
17623: \ esac\
17624: \ func_basename_result="${1##*/}"\
17625: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17626: && mv -f "$cfgfile.tmp" "$cfgfile" \
17627: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17628: test 0 -eq $? || _lt_function_replace_fail=:
17629:
17630:
17631: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17632: func_stripname ()\
17633: {\
17634: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17635: \ # positional parameters, so assign one to ordinary parameter first.\
17636: \ func_stripname_result=${3}\
17637: \ func_stripname_result=${func_stripname_result#"${1}"}\
17638: \ func_stripname_result=${func_stripname_result%"${2}"}\
17639: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17640: && mv -f "$cfgfile.tmp" "$cfgfile" \
17641: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17642: test 0 -eq $? || _lt_function_replace_fail=:
17643:
17644:
17645: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17646: func_split_long_opt ()\
17647: {\
17648: \ func_split_long_opt_name=${1%%=*}\
17649: \ func_split_long_opt_arg=${1#*=}\
17650: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17651: && mv -f "$cfgfile.tmp" "$cfgfile" \
17652: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17653: test 0 -eq $? || _lt_function_replace_fail=:
17654:
17655:
17656: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17657: func_split_short_opt ()\
17658: {\
17659: \ func_split_short_opt_arg=${1#??}\
17660: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17661: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17662: && mv -f "$cfgfile.tmp" "$cfgfile" \
17663: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17664: test 0 -eq $? || _lt_function_replace_fail=:
17665:
17666:
17667: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17668: func_lo2o ()\
17669: {\
17670: \ case ${1} in\
17671: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17672: \ *) func_lo2o_result=${1} ;;\
17673: \ esac\
17674: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17675: && mv -f "$cfgfile.tmp" "$cfgfile" \
17676: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17677: test 0 -eq $? || _lt_function_replace_fail=:
17678:
17679:
17680: sed -e '/^func_xform ()$/,/^} # func_xform /c\
17681: func_xform ()\
17682: {\
17683: func_xform_result=${1%.*}.lo\
17684: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17685: && mv -f "$cfgfile.tmp" "$cfgfile" \
17686: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17687: test 0 -eq $? || _lt_function_replace_fail=:
17688:
17689:
17690: sed -e '/^func_arith ()$/,/^} # func_arith /c\
17691: func_arith ()\
17692: {\
17693: func_arith_result=$(( $* ))\
17694: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17695: && mv -f "$cfgfile.tmp" "$cfgfile" \
17696: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17697: test 0 -eq $? || _lt_function_replace_fail=:
17698:
17699:
17700: sed -e '/^func_len ()$/,/^} # func_len /c\
17701: func_len ()\
17702: {\
17703: func_len_result=${#1}\
17704: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17705: && mv -f "$cfgfile.tmp" "$cfgfile" \
17706: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17707: test 0 -eq $? || _lt_function_replace_fail=:
17708:
17709: fi
17710:
17711: if test x"$lt_shell_append" = xyes; then
17712: sed -e '/^func_append ()$/,/^} # func_append /c\
17713: func_append ()\
17714: {\
17715: eval "${1}+=\\${2}"\
17716: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17717: && mv -f "$cfgfile.tmp" "$cfgfile" \
17718: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17719: test 0 -eq $? || _lt_function_replace_fail=:
17720:
17721:
17722: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17723: func_append_quoted ()\
17724: {\
17725: \ func_quote_for_eval "${2}"\
17726: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17727: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17728: && mv -f "$cfgfile.tmp" "$cfgfile" \
17729: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17730: test 0 -eq $? || _lt_function_replace_fail=:
17731:
17732:
17733: # Save a `func_append' function call where possible by direct use of '+='
17734: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17735: && mv -f "$cfgfile.tmp" "$cfgfile" \
17736: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17737: test 0 -eq $? || _lt_function_replace_fail=:
17738: else
17739: # Save a `func_append' function call even when '+=' is not available
17740: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17741: && mv -f "$cfgfile.tmp" "$cfgfile" \
17742: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17743: test 0 -eq $? || _lt_function_replace_fail=:
17744: fi
17745:
17746: if test x"$_lt_function_replace_fail" = x":"; then
17747: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17748: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17749: fi
1.1 misho 17750:
17751:
1.1.1.2 misho 17752: mv -f "$cfgfile" "$ofile" ||
1.1 misho 17753: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17754: chmod +x "$ofile"
17755:
17756: ;;
17757:
17758: esac
17759: done # for ac_tag
17760:
17761:
17762: as_fn_exit 0
17763: _ACEOF
17764: ac_clean_files=$ac_clean_files_save
17765:
17766: test $ac_write_fail = 0 ||
17767: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17768:
17769:
17770: # configure is writing to config.log, and then calls config.status.
17771: # config.status does its own redirection, appending to config.log.
17772: # Unfortunately, on DOS this fails, as config.log is still kept open
17773: # by configure, so config.status won't be able to write to it; its
17774: # output is simply discarded. So we exec the FD to /dev/null,
17775: # effectively closing config.log, so it can be properly (re)opened and
17776: # appended to by config.status. When coming back to configure, we
17777: # need to make the FD available again.
17778: if test "$no_create" != yes; then
17779: ac_cs_success=:
17780: ac_config_status_args=
17781: test "$silent" = yes &&
17782: ac_config_status_args="$ac_config_status_args --quiet"
17783: exec 5>/dev/null
17784: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17785: exec 5>>config.log
17786: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17787: # would make configure fail if this is the last instruction.
17788: $ac_cs_success || as_fn_exit 1
17789: fi
17790: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17791: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17792: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17793: fi
17794:
17795:
17796: chmod +x xml2-config python/setup.py
17797: echo Done configuring
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>