Annotation of embedaddon/libiconv/libcharset/configure, revision 1.1.1.3
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.3 ! misho 3: # Generated by GNU Autoconf 2.69 for libcharset 1.4.
1.1.1.2 misho 4: #
1.1 misho 5: #
1.1.1.3 ! misho 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1.1.2 misho 7: #
8: #
1.1 misho 9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.1.1.2 misho 11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
1.1 misho 14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.2 misho 17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 misho 18: emulate sh
19: NULLCMD=:
20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
1.1.1.2 misho 25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
1.1 misho 30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1.1.1.2 misho 41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.1 misho 48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
1.1.1.2 misho 58: case $arg in #(
1.1 misho 59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81:
82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 misho 90: as_myself=
91: case $0 in #((
1.1 misho 92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
1.1 misho 100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.1.2 misho 111: exit 1
1.1 misho 112: fi
113:
1.1.1.2 misho 114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 misho 121: done
122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
1.1.1.2 misho 133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 misho 134:
1.1.1.3 ! misho 135: # Use a proper internal environment variable to ensure we don't fall
! 136: # into an infinite loop, continuously re-executing ourselves.
! 137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
! 138: _as_can_reexec=no; export _as_can_reexec;
! 139: # We cannot yet assume a decent shell, so we have to provide a
! 140: # neutralization value for shells without unset; and this also
! 141: # works around shells that cannot unset nonexistent variables.
! 142: # Preserve -v and -x to the replacement shell.
! 143: BASH_ENV=/dev/null
! 144: ENV=/dev/null
! 145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 146: case $- in # ((((
! 147: *v*x* | *x*v* ) as_opts=-vx ;;
! 148: *v* ) as_opts=-v ;;
! 149: *x* ) as_opts=-x ;;
! 150: * ) as_opts= ;;
! 151: esac
! 152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 153: # Admittedly, this is quite paranoid, since all the known shells bail
! 154: # out after a failed `exec'.
! 155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 156: as_fn_exit 255
! 157: fi
! 158: # We don't want this to propagate to other subprocesses.
! 159: { _as_can_reexec=; unset _as_can_reexec;}
1.1 misho 160: if test "x$CONFIG_SHELL" = x; then
1.1.1.2 misho 161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
1.1 misho 168: else
1.1.1.2 misho 169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
1.1 misho 175: fi
1.1.1.2 misho 176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
1.1 misho 182:
183: exitcode=0
1.1.1.2 misho 184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.1.1.3 ! misho 193: test x\$exitcode = x0 || exit 1
! 194: test -x / || exit 1"
1.1.1.2 misho 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199: test \$(( 1 + 1 )) = 2 || exit 1
200:
201: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205: PATH=/empty FPATH=/empty; export PATH FPATH
206: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
1.1 misho 210: else
1.1.1.2 misho 211: as_have_required=no
1.1 misho 212: fi
1.1.1.2 misho 213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.1 misho 214:
215: else
1.1.1.2 misho 216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
1.1 misho 218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219: do
220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 222: as_found=:
223: case $as_dir in #(
1.1 misho 224: /*)
225: for as_base in sh bash ksh sh5; do
1.1.1.2 misho 226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
1.1 misho 235: done;;
236: esac
1.1.1.2 misho 237: as_found=false
1.1 misho 238: done
1.1.1.2 misho 239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
1.1 misho 243: IFS=$as_save_IFS
244:
245:
1.1.1.2 misho 246: if test "x$CONFIG_SHELL" != x; then :
1.1.1.3 ! misho 247: export CONFIG_SHELL
! 248: # We cannot yet assume a decent shell, so we have to provide a
! 249: # neutralization value for shells without unset; and this also
! 250: # works around shells that cannot unset nonexistent variables.
! 251: # Preserve -v and -x to the replacement shell.
! 252: BASH_ENV=/dev/null
! 253: ENV=/dev/null
! 254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 255: case $- in # ((((
! 256: *v*x* | *x*v* ) as_opts=-vx ;;
! 257: *v* ) as_opts=-v ;;
! 258: *x* ) as_opts=-x ;;
! 259: * ) as_opts= ;;
! 260: esac
! 261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 262: # Admittedly, this is quite paranoid, since all the known shells bail
! 263: # out after a failed `exec'.
! 264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 265: exit 255
1.1 misho 266: fi
267:
1.1.1.2 misho 268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274: else
275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
279: fi
280: exit 1
1.1 misho 281: fi
282: fi
283: fi
1.1.1.2 misho 284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
1.1 misho 289:
1.1.1.2 misho 290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
1.1 misho 325:
1.1.1.2 misho 326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 misho 364:
365:
1.1.1.2 misho 366: } # as_fn_mkdir_p
1.1.1.3 ! misho 367:
! 368: # as_fn_executable_p FILE
! 369: # -----------------------
! 370: # Test if FILE is an executable regular file.
! 371: as_fn_executable_p ()
! 372: {
! 373: test -f "$1" && test -x "$1"
! 374: } # as_fn_executable_p
1.1.1.2 misho 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
1.1 misho 392:
1.1.1.2 misho 393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
1.1 misho 409:
410:
1.1.1.2 misho 411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
1.1 misho 426:
1.1.1.2 misho 427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
429: as_expr=expr
1.1 misho 430: else
1.1.1.2 misho 431: as_expr=false
1.1 misho 432: fi
433:
1.1.1.2 misho 434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435: as_basename=basename
1.1 misho 436: else
1.1.1.2 misho 437: as_basename=false
1.1 misho 438: fi
439:
1.1.1.2 misho 440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
1.1 misho 442: else
1.1.1.2 misho 443: as_dirname=false
1.1 misho 444: fi
445:
1.1.1.2 misho 446: as_me=`$as_basename -- "$0" ||
447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
1.1 misho 464:
1.1.1.2 misho 465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 misho 471:
472:
1.1.1.2 misho 473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1.1 misho 478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
482: sed '
483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
487: N
488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490: t loop
491: s/-\n.*//
492: ' >$as_me.lineno &&
493: chmod +x "$as_me.lineno" ||
1.1.1.2 misho 494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misho 495:
1.1.1.3 ! misho 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
! 497: # already done that, so ensure we don't try to do so again and fall
! 498: # in an infinite loop. This has already happened in practice.
! 499: _as_can_reexec=no; export _as_can_reexec
1.1 misho 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
504: # Exit status is that of the last command.
505: exit
506: }
507:
508: ECHO_C= ECHO_N= ECHO_T=
1.1.1.2 misho 509: case `echo -n x` in #(((((
1.1 misho 510: -n*)
1.1.1.2 misho 511: case `echo 'xy\c'` in
1.1 misho 512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.1.1.2 misho 513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
1.1 misho 516: esac;;
517: *)
518: ECHO_N='-n';;
519: esac
520:
521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
524: else
525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
527: fi
528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3 ! misho 534: # In both cases, we have to default to `cp -pR'.
1.1 misho 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 ! misho 536: as_ln_s='cp -pR'
1.1 misho 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.1.1.3 ! misho 540: as_ln_s='cp -pR'
1.1 misho 541: fi
542: else
1.1.1.3 ! misho 543: as_ln_s='cp -pR'
1.1 misho 544: fi
545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
547:
548: if mkdir -p . 2>/dev/null; then
1.1.1.2 misho 549: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misho 550: else
551: test -d ./-p && rmdir ./-p
552: as_mkdir_p=false
553: fi
554:
1.1.1.3 ! misho 555: as_test_x='test -x'
! 556: as_executable_p=as_fn_executable_p
1.1 misho 557:
558: # Sed expression to map a string onto a valid CPP name.
559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560:
561: # Sed expression to map a string onto a valid variable name.
562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563:
564: SHELL=${CONFIG_SHELL-/bin/sh}
565:
566:
1.1.1.2 misho 567: test -n "$DJDIR" || exec 7<&0 </dev/null
568: exec 6>&1
1.1 misho 569:
570: # Name of the host.
1.1.1.2 misho 571: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 misho 572: # so uname gets run too.
573: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574:
575: #
576: # Initializations.
577: #
578: ac_default_prefix=/usr/local
579: ac_clean_files=
580: ac_config_libobj_dir=.
581: LIBOBJS=
582: cross_compiling=no
583: subdirs=
584: MFLAGS=
585: MAKEFLAGS=
586:
587: # Identity of this package.
1.1.1.3 ! misho 588: PACKAGE_NAME='libcharset'
! 589: PACKAGE_TARNAME='libcharset'
! 590: PACKAGE_VERSION='1.4'
! 591: PACKAGE_STRING='libcharset 1.4'
! 592: PACKAGE_BUGREPORT=''
! 593: PACKAGE_URL=''
1.1 misho 594:
595: ac_unique_file="lib/localcharset.c"
596: # Factoring default headers for most tests.
597: ac_includes_default="\
598: #include <stdio.h>
599: #ifdef HAVE_SYS_TYPES_H
600: # include <sys/types.h>
601: #endif
602: #ifdef HAVE_SYS_STAT_H
603: # include <sys/stat.h>
604: #endif
605: #ifdef STDC_HEADERS
606: # include <stdlib.h>
607: # include <stddef.h>
608: #else
609: # ifdef HAVE_STDLIB_H
610: # include <stdlib.h>
611: # endif
612: #endif
613: #ifdef HAVE_STRING_H
614: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615: # include <memory.h>
616: # endif
617: # include <string.h>
618: #endif
619: #ifdef HAVE_STRINGS_H
620: # include <strings.h>
621: #endif
622: #ifdef HAVE_INTTYPES_H
623: # include <inttypes.h>
624: #endif
625: #ifdef HAVE_STDINT_H
626: # include <stdint.h>
627: #endif
628: #ifdef HAVE_UNISTD_H
629: # include <unistd.h>
630: #endif"
631:
1.1.1.3 ! misho 632: ac_header_list=
! 633: ac_func_list=
1.1 misho 634: ac_subst_vars='LTLIBOBJS
1.1.1.3 ! misho 635: LIBOBJS
1.1 misho 636: GLIBC21
637: HAVE_VISIBILITY
638: CFLAG_VISIBILITY
1.1.1.3 ! misho 639: RELOCATABLE_STRIP
! 640: RELOCATABLE_BUILD_DIR
! 641: RELOCATABLE_SRC_DIR
! 642: RELOCATABLE_CONFIG_H_DIR
! 643: RELOCATABLE_LIBRARY_PATH
! 644: RELOCATABLE_VIA_WRAPPER_FALSE
! 645: RELOCATABLE_VIA_WRAPPER_TRUE
! 646: RELOCATABLE_VIA_LD_FALSE
! 647: RELOCATABLE_VIA_LD_TRUE
! 648: INSTALL_PROGRAM_ENV
! 649: RELOCATABLE_LDFLAGS
! 650: RELOCATABLE
! 651: LT_SYS_LIBRARY_PATH
1.1 misho 652: OTOOL64
653: OTOOL
654: LIPO
655: NMEDIT
656: DSYMUTIL
1.1.1.2 misho 657: MANIFEST_TOOL
658: AWK
1.1 misho 659: RANLIB
660: STRIP
1.1.1.2 misho 661: ac_ct_AR
1.1 misho 662: AR
663: LN_S
664: NM
665: ac_ct_DUMPBIN
666: DUMPBIN
667: LD
668: FGREP
669: SED
670: LIBTOOL
671: OBJDUMP
672: DLLTOOL
673: AS
674: EGREP
675: GREP
676: host_os
677: host_vendor
678: host_cpu
679: host
680: build_os
681: build_vendor
682: build_cpu
683: build
684: INSTALL_DATA
685: INSTALL_SCRIPT
686: INSTALL_PROGRAM
687: CPP
688: OBJEXT
689: EXEEXT
690: ac_ct_CC
691: CPPFLAGS
692: LDFLAGS
693: CFLAGS
694: CC
695: SET_MAKE
696: target_alias
697: host_alias
698: build_alias
699: LIBS
700: ECHO_T
701: ECHO_N
702: ECHO_C
703: DEFS
704: mandir
705: localedir
706: libdir
707: psdir
708: pdfdir
709: dvidir
710: htmldir
711: infodir
712: docdir
713: oldincludedir
714: includedir
715: localstatedir
716: sharedstatedir
717: sysconfdir
718: datadir
719: datarootdir
720: libexecdir
721: sbindir
722: bindir
723: program_transform_name
724: prefix
725: exec_prefix
1.1.1.2 misho 726: PACKAGE_URL
1.1 misho 727: PACKAGE_BUGREPORT
728: PACKAGE_STRING
729: PACKAGE_VERSION
730: PACKAGE_TARNAME
731: PACKAGE_NAME
732: PATH_SEPARATOR
733: SHELL'
734: ac_subst_files=''
735: ac_user_opts='
736: enable_option_checking
737: enable_shared
738: enable_static
739: with_pic
740: enable_fast_install
1.1.1.3 ! misho 741: with_aix_soname
1.1 misho 742: with_gnu_ld
1.1.1.2 misho 743: with_sysroot
1.1 misho 744: enable_libtool_lock
1.1.1.3 ! misho 745: enable_relocatable
1.1 misho 746: '
747: ac_precious_vars='build_alias
748: host_alias
749: target_alias
750: CC
751: CFLAGS
752: LDFLAGS
753: LIBS
754: CPPFLAGS
1.1.1.2 misho 755: CPP
1.1.1.3 ! misho 756: LT_SYS_LIBRARY_PATH'
1.1 misho 757:
758:
759: # Initialize some variables set by options.
760: ac_init_help=
761: ac_init_version=false
762: ac_unrecognized_opts=
763: ac_unrecognized_sep=
764: # The variables have the same names as the options, with
765: # dashes changed to underlines.
766: cache_file=/dev/null
767: exec_prefix=NONE
768: no_create=
769: no_recursion=
770: prefix=NONE
771: program_prefix=NONE
772: program_suffix=NONE
773: program_transform_name=s,x,x,
774: silent=
775: site=
776: srcdir=
777: verbose=
778: x_includes=NONE
779: x_libraries=NONE
780:
781: # Installation directory options.
782: # These are left unexpanded so users can "make install exec_prefix=/foo"
783: # and all the variables that are supposed to be based on exec_prefix
784: # by default will actually change.
785: # Use braces instead of parens because sh, perl, etc. also accept them.
786: # (The list follows the same order as the GNU Coding Standards.)
787: bindir='${exec_prefix}/bin'
788: sbindir='${exec_prefix}/sbin'
789: libexecdir='${exec_prefix}/libexec'
790: datarootdir='${prefix}/share'
791: datadir='${datarootdir}'
792: sysconfdir='${prefix}/etc'
793: sharedstatedir='${prefix}/com'
794: localstatedir='${prefix}/var'
795: includedir='${prefix}/include'
796: oldincludedir='/usr/include'
1.1.1.3 ! misho 797: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1.1 misho 798: infodir='${datarootdir}/info'
799: htmldir='${docdir}'
800: dvidir='${docdir}'
801: pdfdir='${docdir}'
802: psdir='${docdir}'
803: libdir='${exec_prefix}/lib'
804: localedir='${datarootdir}/locale'
805: mandir='${datarootdir}/man'
806:
807: ac_prev=
808: ac_dashdash=
809: for ac_option
810: do
811: # If the previous option needs an argument, assign it.
812: if test -n "$ac_prev"; then
813: eval $ac_prev=\$ac_option
814: ac_prev=
815: continue
816: fi
817:
818: case $ac_option in
1.1.1.2 misho 819: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820: *=) ac_optarg= ;;
821: *) ac_optarg=yes ;;
1.1 misho 822: esac
823:
824: # Accept the important Cygnus configure options, so we can diagnose typos.
825:
826: case $ac_dashdash$ac_option in
827: --)
828: ac_dashdash=yes ;;
829:
830: -bindir | --bindir | --bindi | --bind | --bin | --bi)
831: ac_prev=bindir ;;
832: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833: bindir=$ac_optarg ;;
834:
835: -build | --build | --buil | --bui | --bu)
836: ac_prev=build_alias ;;
837: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838: build_alias=$ac_optarg ;;
839:
840: -cache-file | --cache-file | --cache-fil | --cache-fi \
841: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842: ac_prev=cache_file ;;
843: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845: cache_file=$ac_optarg ;;
846:
847: --config-cache | -C)
848: cache_file=config.cache ;;
849:
850: -datadir | --datadir | --datadi | --datad)
851: ac_prev=datadir ;;
852: -datadir=* | --datadir=* | --datadi=* | --datad=*)
853: datadir=$ac_optarg ;;
854:
855: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856: | --dataroo | --dataro | --datar)
857: ac_prev=datarootdir ;;
858: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860: datarootdir=$ac_optarg ;;
861:
862: -disable-* | --disable-*)
863: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864: # Reject names that are not valid shell variable names.
865: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 misho 866: as_fn_error $? "invalid feature name: $ac_useropt"
1.1 misho 867: ac_useropt_orig=$ac_useropt
868: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869: case $ac_user_opts in
870: *"
871: "enable_$ac_useropt"
872: "*) ;;
873: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874: ac_unrecognized_sep=', ';;
875: esac
876: eval enable_$ac_useropt=no ;;
877:
878: -docdir | --docdir | --docdi | --doc | --do)
879: ac_prev=docdir ;;
880: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881: docdir=$ac_optarg ;;
882:
883: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884: ac_prev=dvidir ;;
885: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886: dvidir=$ac_optarg ;;
887:
888: -enable-* | --enable-*)
889: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890: # Reject names that are not valid shell variable names.
891: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 misho 892: as_fn_error $? "invalid feature name: $ac_useropt"
1.1 misho 893: ac_useropt_orig=$ac_useropt
894: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895: case $ac_user_opts in
896: *"
897: "enable_$ac_useropt"
898: "*) ;;
899: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900: ac_unrecognized_sep=', ';;
901: esac
902: eval enable_$ac_useropt=\$ac_optarg ;;
903:
904: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906: | --exec | --exe | --ex)
907: ac_prev=exec_prefix ;;
908: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910: | --exec=* | --exe=* | --ex=*)
911: exec_prefix=$ac_optarg ;;
912:
913: -gas | --gas | --ga | --g)
914: # Obsolete; use --with-gas.
915: with_gas=yes ;;
916:
917: -help | --help | --hel | --he | -h)
918: ac_init_help=long ;;
919: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920: ac_init_help=recursive ;;
921: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922: ac_init_help=short ;;
923:
924: -host | --host | --hos | --ho)
925: ac_prev=host_alias ;;
926: -host=* | --host=* | --hos=* | --ho=*)
927: host_alias=$ac_optarg ;;
928:
929: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930: ac_prev=htmldir ;;
931: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932: | --ht=*)
933: htmldir=$ac_optarg ;;
934:
935: -includedir | --includedir | --includedi | --included | --include \
936: | --includ | --inclu | --incl | --inc)
937: ac_prev=includedir ;;
938: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939: | --includ=* | --inclu=* | --incl=* | --inc=*)
940: includedir=$ac_optarg ;;
941:
942: -infodir | --infodir | --infodi | --infod | --info | --inf)
943: ac_prev=infodir ;;
944: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945: infodir=$ac_optarg ;;
946:
947: -libdir | --libdir | --libdi | --libd)
948: ac_prev=libdir ;;
949: -libdir=* | --libdir=* | --libdi=* | --libd=*)
950: libdir=$ac_optarg ;;
951:
952: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953: | --libexe | --libex | --libe)
954: ac_prev=libexecdir ;;
955: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956: | --libexe=* | --libex=* | --libe=*)
957: libexecdir=$ac_optarg ;;
958:
959: -localedir | --localedir | --localedi | --localed | --locale)
960: ac_prev=localedir ;;
961: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962: localedir=$ac_optarg ;;
963:
964: -localstatedir | --localstatedir | --localstatedi | --localstated \
965: | --localstate | --localstat | --localsta | --localst | --locals)
966: ac_prev=localstatedir ;;
967: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969: localstatedir=$ac_optarg ;;
970:
971: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972: ac_prev=mandir ;;
973: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974: mandir=$ac_optarg ;;
975:
976: -nfp | --nfp | --nf)
977: # Obsolete; use --without-fp.
978: with_fp=no ;;
979:
980: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981: | --no-cr | --no-c | -n)
982: no_create=yes ;;
983:
984: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986: no_recursion=yes ;;
987:
988: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990: | --oldin | --oldi | --old | --ol | --o)
991: ac_prev=oldincludedir ;;
992: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995: oldincludedir=$ac_optarg ;;
996:
997: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998: ac_prev=prefix ;;
999: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000: prefix=$ac_optarg ;;
1001:
1002: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003: | --program-pre | --program-pr | --program-p)
1004: ac_prev=program_prefix ;;
1005: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007: program_prefix=$ac_optarg ;;
1008:
1009: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010: | --program-suf | --program-su | --program-s)
1011: ac_prev=program_suffix ;;
1012: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014: program_suffix=$ac_optarg ;;
1015:
1016: -program-transform-name | --program-transform-name \
1017: | --program-transform-nam | --program-transform-na \
1018: | --program-transform-n | --program-transform- \
1019: | --program-transform | --program-transfor \
1020: | --program-transfo | --program-transf \
1021: | --program-trans | --program-tran \
1022: | --progr-tra | --program-tr | --program-t)
1023: ac_prev=program_transform_name ;;
1024: -program-transform-name=* | --program-transform-name=* \
1025: | --program-transform-nam=* | --program-transform-na=* \
1026: | --program-transform-n=* | --program-transform-=* \
1027: | --program-transform=* | --program-transfor=* \
1028: | --program-transfo=* | --program-transf=* \
1029: | --program-trans=* | --program-tran=* \
1030: | --progr-tra=* | --program-tr=* | --program-t=*)
1031: program_transform_name=$ac_optarg ;;
1032:
1033: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034: ac_prev=pdfdir ;;
1035: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036: pdfdir=$ac_optarg ;;
1037:
1038: -psdir | --psdir | --psdi | --psd | --ps)
1039: ac_prev=psdir ;;
1040: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041: psdir=$ac_optarg ;;
1042:
1043: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044: | -silent | --silent | --silen | --sile | --sil)
1045: silent=yes ;;
1046:
1047: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048: ac_prev=sbindir ;;
1049: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050: | --sbi=* | --sb=*)
1051: sbindir=$ac_optarg ;;
1052:
1053: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055: | --sharedst | --shareds | --shared | --share | --shar \
1056: | --sha | --sh)
1057: ac_prev=sharedstatedir ;;
1058: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061: | --sha=* | --sh=*)
1062: sharedstatedir=$ac_optarg ;;
1063:
1064: -site | --site | --sit)
1065: ac_prev=site ;;
1066: -site=* | --site=* | --sit=*)
1067: site=$ac_optarg ;;
1068:
1069: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070: ac_prev=srcdir ;;
1071: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072: srcdir=$ac_optarg ;;
1073:
1074: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075: | --syscon | --sysco | --sysc | --sys | --sy)
1076: ac_prev=sysconfdir ;;
1077: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079: sysconfdir=$ac_optarg ;;
1080:
1081: -target | --target | --targe | --targ | --tar | --ta | --t)
1082: ac_prev=target_alias ;;
1083: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084: target_alias=$ac_optarg ;;
1085:
1086: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087: verbose=yes ;;
1088:
1089: -version | --version | --versio | --versi | --vers | -V)
1090: ac_init_version=: ;;
1091:
1092: -with-* | --with-*)
1093: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094: # Reject names that are not valid shell variable names.
1095: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 misho 1096: as_fn_error $? "invalid package name: $ac_useropt"
1.1 misho 1097: ac_useropt_orig=$ac_useropt
1098: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099: case $ac_user_opts in
1100: *"
1101: "with_$ac_useropt"
1102: "*) ;;
1103: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104: ac_unrecognized_sep=', ';;
1105: esac
1106: eval with_$ac_useropt=\$ac_optarg ;;
1107:
1108: -without-* | --without-*)
1109: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110: # Reject names that are not valid shell variable names.
1111: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 misho 1112: as_fn_error $? "invalid package name: $ac_useropt"
1.1 misho 1113: ac_useropt_orig=$ac_useropt
1114: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115: case $ac_user_opts in
1116: *"
1117: "with_$ac_useropt"
1118: "*) ;;
1119: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120: ac_unrecognized_sep=', ';;
1121: esac
1122: eval with_$ac_useropt=no ;;
1123:
1124: --x)
1125: # Obsolete; use --with-x.
1126: with_x=yes ;;
1127:
1128: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129: | --x-incl | --x-inc | --x-in | --x-i)
1130: ac_prev=x_includes ;;
1131: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133: x_includes=$ac_optarg ;;
1134:
1135: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137: ac_prev=x_libraries ;;
1138: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140: x_libraries=$ac_optarg ;;
1141:
1.1.1.2 misho 1142: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143: Try \`$0 --help' for more information"
1.1 misho 1144: ;;
1145:
1146: *=*)
1147: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148: # Reject names that are not valid shell variable names.
1.1.1.2 misho 1149: case $ac_envvar in #(
1150: '' | [0-9]* | *[!_$as_cr_alnum]* )
1151: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152: esac
1.1 misho 1153: eval $ac_envvar=\$ac_optarg
1154: export $ac_envvar ;;
1155:
1156: *)
1157: # FIXME: should be removed in autoconf 3.0.
1158: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1.1.2 misho 1161: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misho 1162: ;;
1163:
1164: esac
1165: done
1166:
1167: if test -n "$ac_prev"; then
1168: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.1.1.2 misho 1169: as_fn_error $? "missing argument to $ac_option"
1.1 misho 1170: fi
1171:
1172: if test -n "$ac_unrecognized_opts"; then
1173: case $enable_option_checking in
1174: no) ;;
1.1.1.2 misho 1175: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.1 misho 1176: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177: esac
1178: fi
1179:
1180: # Check all directory arguments for consistency.
1181: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182: datadir sysconfdir sharedstatedir localstatedir includedir \
1183: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184: libdir localedir mandir
1185: do
1186: eval ac_val=\$$ac_var
1187: # Remove trailing slashes.
1188: case $ac_val in
1189: */ )
1190: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191: eval $ac_var=\$ac_val;;
1192: esac
1193: # Be sure to have absolute directory names.
1194: case $ac_val in
1195: [\\/$]* | ?:[\\/]* ) continue;;
1196: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197: esac
1.1.1.2 misho 1198: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 misho 1199: done
1200:
1201: # There might be people who depend on the old broken behavior: `$host'
1202: # used to hold the argument of --host etc.
1203: # FIXME: To remove some day.
1204: build=$build_alias
1205: host=$host_alias
1206: target=$target_alias
1207:
1208: # FIXME: To remove some day.
1209: if test "x$host_alias" != x; then
1210: if test "x$build_alias" = x; then
1211: cross_compiling=maybe
1212: elif test "x$build_alias" != "x$host_alias"; then
1213: cross_compiling=yes
1214: fi
1215: fi
1216:
1217: ac_tool_prefix=
1218: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219:
1220: test "$silent" = yes && exec 6>/dev/null
1221:
1222:
1223: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224: ac_ls_di=`ls -di .` &&
1225: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.1.1.2 misho 1226: as_fn_error $? "working directory cannot be determined"
1.1 misho 1227: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.1.1.2 misho 1228: as_fn_error $? "pwd does not report name of working directory"
1.1 misho 1229:
1230:
1231: # Find the source files, if location was not specified.
1232: if test -z "$srcdir"; then
1233: ac_srcdir_defaulted=yes
1234: # Try the directory containing this script, then the parent directory.
1235: ac_confdir=`$as_dirname -- "$as_myself" ||
1236: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237: X"$as_myself" : 'X\(//\)[^/]' \| \
1238: X"$as_myself" : 'X\(//\)$' \| \
1239: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240: $as_echo X"$as_myself" |
1241: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242: s//\1/
1243: q
1244: }
1245: /^X\(\/\/\)[^/].*/{
1246: s//\1/
1247: q
1248: }
1249: /^X\(\/\/\)$/{
1250: s//\1/
1251: q
1252: }
1253: /^X\(\/\).*/{
1254: s//\1/
1255: q
1256: }
1257: s/.*/./; q'`
1258: srcdir=$ac_confdir
1259: if test ! -r "$srcdir/$ac_unique_file"; then
1260: srcdir=..
1261: fi
1262: else
1263: ac_srcdir_defaulted=no
1264: fi
1265: if test ! -r "$srcdir/$ac_unique_file"; then
1266: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.1.1.2 misho 1267: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 misho 1268: fi
1269: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270: ac_abs_confdir=`(
1.1.1.2 misho 1271: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 misho 1272: pwd)`
1273: # When building in place, set srcdir=.
1274: if test "$ac_abs_confdir" = "$ac_pwd"; then
1275: srcdir=.
1276: fi
1277: # Remove unnecessary trailing slashes from srcdir.
1278: # Double slashes in file names in object file debugging info
1279: # mess up M-x gdb in Emacs.
1280: case $srcdir in
1281: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282: esac
1283: for ac_var in $ac_precious_vars; do
1284: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285: eval ac_env_${ac_var}_value=\$${ac_var}
1286: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288: done
1289:
1290: #
1291: # Report the --help message.
1292: #
1293: if test "$ac_init_help" = "long"; then
1294: # Omit some internal or obsolete options to make the list less imposing.
1295: # This message is too long to be a string in the A/UX 3.1 sh.
1296: cat <<_ACEOF
1.1.1.3 ! misho 1297: \`configure' configures libcharset 1.4 to adapt to many kinds of systems.
1.1 misho 1298:
1299: Usage: $0 [OPTION]... [VAR=VALUE]...
1300:
1301: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302: VAR=VALUE. See below for descriptions of some of the useful variables.
1303:
1304: Defaults for the options are specified in brackets.
1305:
1306: Configuration:
1307: -h, --help display this help and exit
1308: --help=short display options specific to this package
1309: --help=recursive display the short help of all the included packages
1310: -V, --version display version information and exit
1.1.1.2 misho 1311: -q, --quiet, --silent do not print \`checking ...' messages
1.1 misho 1312: --cache-file=FILE cache test results in FILE [disabled]
1313: -C, --config-cache alias for \`--cache-file=config.cache'
1314: -n, --no-create do not create output files
1315: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316:
1317: Installation directories:
1318: --prefix=PREFIX install architecture-independent files in PREFIX
1319: [$ac_default_prefix]
1320: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321: [PREFIX]
1322:
1323: By default, \`make install' will install all the files in
1324: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326: for instance \`--prefix=\$HOME'.
1327:
1328: For better control, use the options below.
1329:
1330: Fine tuning of the installation directories:
1331: --bindir=DIR user executables [EPREFIX/bin]
1332: --sbindir=DIR system admin executables [EPREFIX/sbin]
1333: --libexecdir=DIR program executables [EPREFIX/libexec]
1334: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337: --libdir=DIR object code libraries [EPREFIX/lib]
1338: --includedir=DIR C header files [PREFIX/include]
1339: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342: --infodir=DIR info documentation [DATAROOTDIR/info]
1343: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344: --mandir=DIR man documentation [DATAROOTDIR/man]
1.1.1.3 ! misho 1345: --docdir=DIR documentation root [DATAROOTDIR/doc/libcharset]
1.1 misho 1346: --htmldir=DIR html documentation [DOCDIR]
1347: --dvidir=DIR dvi documentation [DOCDIR]
1348: --pdfdir=DIR pdf documentation [DOCDIR]
1349: --psdir=DIR ps documentation [DOCDIR]
1350: _ACEOF
1351:
1352: cat <<\_ACEOF
1353:
1354: System types:
1355: --build=BUILD configure for building on BUILD [guessed]
1356: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357: _ACEOF
1358: fi
1359:
1360: if test -n "$ac_init_help"; then
1.1.1.3 ! misho 1361: case $ac_init_help in
! 1362: short | recursive ) echo "Configuration of libcharset 1.4:";;
! 1363: esac
1.1 misho 1364: cat <<\_ACEOF
1365:
1366: Optional Features:
1367: --disable-option-checking ignore unrecognized --enable/--with options
1368: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370: --enable-shared[=PKGS] build shared libraries [default=yes]
1371: --enable-static[=PKGS] build static libraries [default=yes]
1372: --enable-fast-install[=PKGS]
1373: optimize for fast installation [default=yes]
1374: --disable-libtool-lock avoid locking (might break parallel builds)
1.1.1.3 ! misho 1375: --enable-relocatable install a package that can be moved in the file
! 1376: system
1.1 misho 1377:
1378: Optional Packages:
1379: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.3 ! misho 1381: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.1 misho 1382: both]
1.1.1.3 ! misho 1383: --with-aix-soname=aix|svr4|both
! 1384: shared library versioning (aka "SONAME") variant to
! 1385: provide on AIX, [default=aix].
! 1386: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
! 1387: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
! 1388: compiler's sysroot if not specified).
1.1 misho 1389: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1390:
1391: Some influential environment variables:
1392: CC C compiler command
1393: CFLAGS C compiler flags
1394: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395: nonstandard directory <lib dir>
1396: LIBS libraries to pass to the linker, e.g. -l<library>
1.1.1.2 misho 1397: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 misho 1398: you have headers in a nonstandard directory <include dir>
1399: CPP C preprocessor
1.1.1.3 ! misho 1400: LT_SYS_LIBRARY_PATH
! 1401: User-defined run-time library search path.
1.1 misho 1402:
1403: Use these variables to override the choices made by `configure' or to help
1404: it to find libraries and programs with nonstandard names/locations.
1405:
1.1.1.2 misho 1406: Report bugs to the package provider.
1.1 misho 1407: _ACEOF
1408: ac_status=$?
1409: fi
1410:
1411: if test "$ac_init_help" = "recursive"; then
1412: # If there are subdirs, report their specific --help.
1413: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414: test -d "$ac_dir" ||
1415: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416: continue
1417: ac_builddir=.
1418:
1419: case "$ac_dir" in
1420: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421: *)
1422: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423: # A ".." for each directory in $ac_dir_suffix.
1424: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425: case $ac_top_builddir_sub in
1426: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428: esac ;;
1429: esac
1430: ac_abs_top_builddir=$ac_pwd
1431: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432: # for backward compatibility:
1433: ac_top_builddir=$ac_top_build_prefix
1434:
1435: case $srcdir in
1436: .) # We are building in place.
1437: ac_srcdir=.
1438: ac_top_srcdir=$ac_top_builddir_sub
1439: ac_abs_top_srcdir=$ac_pwd ;;
1440: [\\/]* | ?:[\\/]* ) # Absolute name.
1441: ac_srcdir=$srcdir$ac_dir_suffix;
1442: ac_top_srcdir=$srcdir
1443: ac_abs_top_srcdir=$srcdir ;;
1444: *) # Relative name.
1445: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446: ac_top_srcdir=$ac_top_build_prefix$srcdir
1447: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448: esac
1.1.1.2 misho 1449: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450:
1451: cd "$ac_dir" || { ac_status=$?; continue; }
1452: # Check for guested configure.
1453: if test -f "$ac_srcdir/configure.gnu"; then
1454: echo &&
1455: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456: elif test -f "$ac_srcdir/configure"; then
1457: echo &&
1458: $SHELL "$ac_srcdir/configure" --help=recursive
1459: else
1460: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461: fi || ac_status=$?
1462: cd "$ac_pwd" || { ac_status=$?; break; }
1463: done
1464: fi
1465:
1466: test -n "$ac_init_help" && exit $ac_status
1467: if $ac_init_version; then
1468: cat <<\_ACEOF
1.1.1.3 ! misho 1469: libcharset configure 1.4
! 1470: generated by GNU Autoconf 2.69
1.1.1.2 misho 1471:
1.1.1.3 ! misho 1472: Copyright (C) 2012 Free Software Foundation, Inc.
1.1.1.2 misho 1473: This configure script is free software; the Free Software Foundation
1474: gives unlimited permission to copy, distribute and modify it.
1475: _ACEOF
1476: exit
1477: fi
1478:
1479: ## ------------------------ ##
1480: ## Autoconf initialization. ##
1481: ## ------------------------ ##
1482:
1483: # ac_fn_c_try_compile LINENO
1484: # --------------------------
1485: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486: ac_fn_c_try_compile ()
1487: {
1488: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489: rm -f conftest.$ac_objext
1490: if { { ac_try="$ac_compile"
1491: case "(($ac_try" in
1492: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493: *) ac_try_echo=$ac_try;;
1494: esac
1495: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496: $as_echo "$ac_try_echo"; } >&5
1497: (eval "$ac_compile") 2>conftest.err
1498: ac_status=$?
1499: if test -s conftest.err; then
1500: grep -v '^ *+' conftest.err >conftest.er1
1501: cat conftest.er1 >&5
1502: mv -f conftest.er1 conftest.err
1503: fi
1504: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505: test $ac_status = 0; } && {
1506: test -z "$ac_c_werror_flag" ||
1507: test ! -s conftest.err
1508: } && test -s conftest.$ac_objext; then :
1509: ac_retval=0
1510: else
1511: $as_echo "$as_me: failed program was:" >&5
1512: sed 's/^/| /' conftest.$ac_ext >&5
1513:
1514: ac_retval=1
1515: fi
1516: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517: as_fn_set_status $ac_retval
1518:
1519: } # ac_fn_c_try_compile
1520:
1521: # ac_fn_c_try_cpp LINENO
1522: # ----------------------
1523: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1524: ac_fn_c_try_cpp ()
1525: {
1526: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527: if { { ac_try="$ac_cpp conftest.$ac_ext"
1528: case "(($ac_try" in
1529: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530: *) ac_try_echo=$ac_try;;
1531: esac
1532: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533: $as_echo "$ac_try_echo"; } >&5
1534: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1535: ac_status=$?
1536: if test -s conftest.err; then
1537: grep -v '^ *+' conftest.err >conftest.er1
1538: cat conftest.er1 >&5
1539: mv -f conftest.er1 conftest.err
1540: fi
1541: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542: test $ac_status = 0; } > conftest.i && {
1543: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1544: test ! -s conftest.err
1545: }; then :
1546: ac_retval=0
1547: else
1548: $as_echo "$as_me: failed program was:" >&5
1549: sed 's/^/| /' conftest.$ac_ext >&5
1550:
1551: ac_retval=1
1552: fi
1553: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554: as_fn_set_status $ac_retval
1555:
1556: } # ac_fn_c_try_cpp
1557:
1558: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1559: # -------------------------------------------------------
1560: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1561: # the include files in INCLUDES and setting the cache variable VAR
1562: # accordingly.
1563: ac_fn_c_check_header_mongrel ()
1564: {
1565: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566: if eval \${$3+:} false; then :
1567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568: $as_echo_n "checking for $2... " >&6; }
1569: if eval \${$3+:} false; then :
1570: $as_echo_n "(cached) " >&6
1571: fi
1572: eval ac_res=\$$3
1573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574: $as_echo "$ac_res" >&6; }
1575: else
1576: # Is the header compilable?
1577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1578: $as_echo_n "checking $2 usability... " >&6; }
1579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1580: /* end confdefs.h. */
1581: $4
1582: #include <$2>
1583: _ACEOF
1584: if ac_fn_c_try_compile "$LINENO"; then :
1585: ac_header_compiler=yes
1586: else
1587: ac_header_compiler=no
1588: fi
1589: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1591: $as_echo "$ac_header_compiler" >&6; }
1592:
1593: # Is the header present?
1594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1595: $as_echo_n "checking $2 presence... " >&6; }
1596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597: /* end confdefs.h. */
1598: #include <$2>
1599: _ACEOF
1600: if ac_fn_c_try_cpp "$LINENO"; then :
1601: ac_header_preproc=yes
1602: else
1603: ac_header_preproc=no
1604: fi
1605: rm -f conftest.err conftest.i conftest.$ac_ext
1606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1607: $as_echo "$ac_header_preproc" >&6; }
1608:
1609: # So? What about this header?
1610: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1611: yes:no: )
1612: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1613: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1614: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1615: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1616: ;;
1617: no:yes:* )
1618: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1619: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1620: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1621: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1622: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1623: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1624: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1625: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1626: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1628: ;;
1629: esac
1630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631: $as_echo_n "checking for $2... " >&6; }
1632: if eval \${$3+:} false; then :
1633: $as_echo_n "(cached) " >&6
1634: else
1635: eval "$3=\$ac_header_compiler"
1636: fi
1637: eval ac_res=\$$3
1638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639: $as_echo "$ac_res" >&6; }
1640: fi
1641: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642:
1643: } # ac_fn_c_check_header_mongrel
1644:
1645: # ac_fn_c_try_run LINENO
1646: # ----------------------
1647: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648: # that executables *can* be run.
1649: ac_fn_c_try_run ()
1650: {
1651: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652: if { { ac_try="$ac_link"
1653: case "(($ac_try" in
1654: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655: *) ac_try_echo=$ac_try;;
1656: esac
1657: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658: $as_echo "$ac_try_echo"; } >&5
1659: (eval "$ac_link") 2>&5
1660: ac_status=$?
1661: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663: { { case "(($ac_try" in
1664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665: *) ac_try_echo=$ac_try;;
1666: esac
1667: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668: $as_echo "$ac_try_echo"; } >&5
1669: (eval "$ac_try") 2>&5
1670: ac_status=$?
1671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672: test $ac_status = 0; }; }; then :
1673: ac_retval=0
1674: else
1675: $as_echo "$as_me: program exited with status $ac_status" >&5
1676: $as_echo "$as_me: failed program was:" >&5
1677: sed 's/^/| /' conftest.$ac_ext >&5
1678:
1679: ac_retval=$ac_status
1680: fi
1681: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683: as_fn_set_status $ac_retval
1684:
1685: } # ac_fn_c_try_run
1686:
1687: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688: # -------------------------------------------------------
1689: # Tests whether HEADER exists and can be compiled using the include files in
1690: # INCLUDES, setting the cache variable VAR accordingly.
1691: ac_fn_c_check_header_compile ()
1692: {
1693: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695: $as_echo_n "checking for $2... " >&6; }
1696: if eval \${$3+:} false; then :
1697: $as_echo_n "(cached) " >&6
1698: else
1699: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700: /* end confdefs.h. */
1701: $4
1702: #include <$2>
1703: _ACEOF
1704: if ac_fn_c_try_compile "$LINENO"; then :
1705: eval "$3=yes"
1706: else
1707: eval "$3=no"
1708: fi
1709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710: fi
1711: eval ac_res=\$$3
1712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713: $as_echo "$ac_res" >&6; }
1714: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715:
1716: } # ac_fn_c_check_header_compile
1717:
1718: # ac_fn_c_try_link LINENO
1719: # -----------------------
1720: # Try to link conftest.$ac_ext, and return whether this succeeded.
1721: ac_fn_c_try_link ()
1722: {
1723: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724: rm -f conftest.$ac_objext conftest$ac_exeext
1725: if { { ac_try="$ac_link"
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_link") 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
1740: test $ac_status = 0; } && {
1741: test -z "$ac_c_werror_flag" ||
1742: test ! -s conftest.err
1743: } && test -s conftest$ac_exeext && {
1744: test "$cross_compiling" = yes ||
1.1.1.3 ! misho 1745: test -x conftest$ac_exeext
1.1.1.2 misho 1746: }; then :
1747: ac_retval=0
1748: else
1749: $as_echo "$as_me: failed program was:" >&5
1750: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 1751:
1.1.1.2 misho 1752: ac_retval=1
1.1 misho 1753: fi
1.1.1.2 misho 1754: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756: # interfere with the next link command; also delete a directory that is
1757: # left behind by Apple's compiler. We do this before executing the actions.
1758: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760: as_fn_set_status $ac_retval
1761:
1762: } # ac_fn_c_try_link
1763:
1764: # ac_fn_c_check_func LINENO FUNC VAR
1765: # ----------------------------------
1766: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767: ac_fn_c_check_func ()
1768: {
1769: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771: $as_echo_n "checking for $2... " >&6; }
1772: if eval \${$3+:} false; then :
1773: $as_echo_n "(cached) " >&6
1774: else
1775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776: /* end confdefs.h. */
1777: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779: #define $2 innocuous_$2
1.1 misho 1780:
1.1.1.2 misho 1781: /* System header to define __stub macros and hopefully few prototypes,
1782: which can conflict with char $2 (); below.
1783: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784: <limits.h> exists even on freestanding compilers. */
1.1 misho 1785:
1.1.1.2 misho 1786: #ifdef __STDC__
1787: # include <limits.h>
1788: #else
1789: # include <assert.h>
1790: #endif
1791:
1792: #undef $2
1793:
1794: /* Override any GCC internal prototype to avoid an error.
1795: Use char because int might match the return type of a GCC
1796: builtin and then its argument prototype would still apply. */
1797: #ifdef __cplusplus
1798: extern "C"
1799: #endif
1800: char $2 ();
1801: /* The GNU C library defines this for functions which it implements
1802: to always fail with ENOSYS. Some functions are actually named
1803: something starting with __ and the normal name is an alias. */
1804: #if defined __stub_$2 || defined __stub___$2
1805: choke me
1806: #endif
1807:
1808: int
1809: main ()
1810: {
1811: return $2 ();
1812: ;
1813: return 0;
1814: }
1.1 misho 1815: _ACEOF
1.1.1.2 misho 1816: if ac_fn_c_try_link "$LINENO"; then :
1817: eval "$3=yes"
1818: else
1819: eval "$3=no"
1820: fi
1821: rm -f core conftest.err conftest.$ac_objext \
1822: conftest$ac_exeext conftest.$ac_ext
1.1 misho 1823: fi
1.1.1.2 misho 1824: eval ac_res=\$$3
1825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826: $as_echo "$ac_res" >&6; }
1827: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828:
1829: } # ac_fn_c_check_func
1.1 misho 1830: cat >config.log <<_ACEOF
1831: This file contains any messages produced by compilers while
1832: running configure, to aid debugging if configure makes a mistake.
1833:
1.1.1.3 ! misho 1834: It was created by libcharset $as_me 1.4, which was
! 1835: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 1836:
1837: $ $0 $@
1838:
1839: _ACEOF
1840: exec 5>>config.log
1841: {
1842: cat <<_ASUNAME
1843: ## --------- ##
1844: ## Platform. ##
1845: ## --------- ##
1846:
1847: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852:
1853: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1855:
1856: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1857: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1858: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1860: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1861: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1862: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1863:
1864: _ASUNAME
1865:
1866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867: for as_dir in $PATH
1868: do
1869: IFS=$as_save_IFS
1870: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 1871: $as_echo "PATH: $as_dir"
1872: done
1.1 misho 1873: IFS=$as_save_IFS
1874:
1875: } >&5
1876:
1877: cat >&5 <<_ACEOF
1878:
1879:
1880: ## ----------- ##
1881: ## Core tests. ##
1882: ## ----------- ##
1883:
1884: _ACEOF
1885:
1886:
1887: # Keep a trace of the command line.
1888: # Strip out --no-create and --no-recursion so they do not pile up.
1889: # Strip out --silent because we don't want to record it for future runs.
1890: # Also quote any args containing shell meta-characters.
1891: # Make two passes to allow for proper duplicate-argument suppression.
1892: ac_configure_args=
1893: ac_configure_args0=
1894: ac_configure_args1=
1895: ac_must_keep_next=false
1896: for ac_pass in 1 2
1897: do
1898: for ac_arg
1899: do
1900: case $ac_arg in
1901: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903: | -silent | --silent | --silen | --sile | --sil)
1904: continue ;;
1905: *\'*)
1906: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907: esac
1908: case $ac_pass in
1.1.1.2 misho 1909: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.1 misho 1910: 2)
1.1.1.2 misho 1911: as_fn_append ac_configure_args1 " '$ac_arg'"
1.1 misho 1912: if test $ac_must_keep_next = true; then
1913: ac_must_keep_next=false # Got value, back to normal.
1914: else
1915: case $ac_arg in
1916: *=* | --config-cache | -C | -disable-* | --disable-* \
1917: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919: | -with-* | --with-* | -without-* | --without-* | --x)
1920: case "$ac_configure_args0 " in
1921: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922: esac
1923: ;;
1924: -* ) ac_must_keep_next=true ;;
1925: esac
1926: fi
1.1.1.2 misho 1927: as_fn_append ac_configure_args " '$ac_arg'"
1.1 misho 1928: ;;
1929: esac
1930: done
1931: done
1.1.1.2 misho 1932: { ac_configure_args0=; unset ac_configure_args0;}
1933: { ac_configure_args1=; unset ac_configure_args1;}
1.1 misho 1934:
1935: # When interrupted or exit'd, cleanup temporary files, and complete
1936: # config.log. We remove comments because anyway the quotes in there
1937: # would cause problems or look ugly.
1938: # WARNING: Use '\'' to represent an apostrophe within the trap.
1939: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940: trap 'exit_status=$?
1941: # Save into config.log some information that might help in debugging.
1942: {
1943: echo
1944:
1.1.1.2 misho 1945: $as_echo "## ---------------- ##
1.1 misho 1946: ## Cache variables. ##
1.1.1.2 misho 1947: ## ---------------- ##"
1.1 misho 1948: echo
1949: # The following way of writing the cache mishandles newlines in values,
1950: (
1951: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952: eval ac_val=\$$ac_var
1953: case $ac_val in #(
1954: *${as_nl}*)
1955: case $ac_var in #(
1.1.1.2 misho 1956: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1.1 misho 1957: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958: esac
1959: case $ac_var in #(
1960: _ | IFS | as_nl) ;; #(
1961: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.1.2 misho 1962: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 misho 1963: esac ;;
1964: esac
1965: done
1966: (set) 2>&1 |
1967: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968: *${as_nl}ac_space=\ *)
1969: sed -n \
1970: "s/'\''/'\''\\\\'\'''\''/g;
1971: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972: ;; #(
1973: *)
1974: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975: ;;
1976: esac |
1977: sort
1978: )
1979: echo
1980:
1.1.1.2 misho 1981: $as_echo "## ----------------- ##
1.1 misho 1982: ## Output variables. ##
1.1.1.2 misho 1983: ## ----------------- ##"
1.1 misho 1984: echo
1985: for ac_var in $ac_subst_vars
1986: do
1987: eval ac_val=\$$ac_var
1988: case $ac_val in
1989: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990: esac
1991: $as_echo "$ac_var='\''$ac_val'\''"
1992: done | sort
1993: echo
1994:
1995: if test -n "$ac_subst_files"; then
1.1.1.2 misho 1996: $as_echo "## ------------------- ##
1.1 misho 1997: ## File substitutions. ##
1.1.1.2 misho 1998: ## ------------------- ##"
1.1 misho 1999: echo
2000: for ac_var in $ac_subst_files
2001: do
2002: eval ac_val=\$$ac_var
2003: case $ac_val in
2004: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005: esac
2006: $as_echo "$ac_var='\''$ac_val'\''"
2007: done | sort
2008: echo
2009: fi
2010:
2011: if test -s confdefs.h; then
1.1.1.2 misho 2012: $as_echo "## ----------- ##
1.1 misho 2013: ## confdefs.h. ##
1.1.1.2 misho 2014: ## ----------- ##"
1.1 misho 2015: echo
2016: cat confdefs.h
2017: echo
2018: fi
2019: test "$ac_signal" != 0 &&
2020: $as_echo "$as_me: caught signal $ac_signal"
2021: $as_echo "$as_me: exit $exit_status"
2022: } >&5
2023: rm -f core *.core core.conftest.* &&
2024: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025: exit $exit_status
2026: ' 0
2027: for ac_signal in 1 2 13 15; do
1.1.1.2 misho 2028: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.1 misho 2029: done
2030: ac_signal=0
2031:
2032: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033: rm -f -r conftest* confdefs.h
2034:
1.1.1.2 misho 2035: $as_echo "/* confdefs.h */" > confdefs.h
2036:
1.1 misho 2037: # Predefined preprocessor variables.
2038:
2039: cat >>confdefs.h <<_ACEOF
2040: #define PACKAGE_NAME "$PACKAGE_NAME"
2041: _ACEOF
2042:
2043: cat >>confdefs.h <<_ACEOF
2044: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2045: _ACEOF
2046:
2047: cat >>confdefs.h <<_ACEOF
2048: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2049: _ACEOF
2050:
2051: cat >>confdefs.h <<_ACEOF
2052: #define PACKAGE_STRING "$PACKAGE_STRING"
2053: _ACEOF
2054:
2055: cat >>confdefs.h <<_ACEOF
2056: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057: _ACEOF
2058:
1.1.1.2 misho 2059: cat >>confdefs.h <<_ACEOF
2060: #define PACKAGE_URL "$PACKAGE_URL"
2061: _ACEOF
2062:
1.1 misho 2063:
2064: # Let the site file select an alternate cache file if it wants to.
2065: # Prefer an explicitly selected file to automatically selected ones.
2066: ac_site_file1=NONE
2067: ac_site_file2=NONE
2068: if test -n "$CONFIG_SITE"; then
1.1.1.2 misho 2069: # We do not want a PATH search for config.site.
2070: case $CONFIG_SITE in #((
2071: -*) ac_site_file1=./$CONFIG_SITE;;
2072: */*) ac_site_file1=$CONFIG_SITE;;
2073: *) ac_site_file1=./$CONFIG_SITE;;
2074: esac
1.1 misho 2075: elif test "x$prefix" != xNONE; then
2076: ac_site_file1=$prefix/share/config.site
2077: ac_site_file2=$prefix/etc/config.site
2078: else
2079: ac_site_file1=$ac_default_prefix/share/config.site
2080: ac_site_file2=$ac_default_prefix/etc/config.site
2081: fi
2082: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2083: do
2084: test "x$ac_site_file" = xNONE && continue
1.1.1.2 misho 2085: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2086: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1.1 misho 2087: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2088: sed 's/^/| /' "$ac_site_file" >&5
1.1.1.2 misho 2089: . "$ac_site_file" \
2090: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092: as_fn_error $? "failed to load site script $ac_site_file
2093: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2094: fi
2095: done
2096:
2097: if test -r "$cache_file"; then
1.1.1.2 misho 2098: # Some versions of bash will fail to source /dev/null (special files
2099: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2100: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2101: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1.1 misho 2102: $as_echo "$as_me: loading cache $cache_file" >&6;}
2103: case $cache_file in
2104: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105: *) . "./$cache_file";;
2106: esac
2107: fi
2108: else
1.1.1.2 misho 2109: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1.1 misho 2110: $as_echo "$as_me: creating cache $cache_file" >&6;}
2111: >$cache_file
2112: fi
2113:
1.1.1.3 ! misho 2114: as_fn_append ac_header_list " unistd.h"
! 2115: as_fn_append ac_func_list " symlink"
1.1 misho 2116: # Check that the precious variables saved in the cache have kept the same
2117: # value.
2118: ac_cache_corrupted=false
2119: for ac_var in $ac_precious_vars; do
2120: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2121: eval ac_new_set=\$ac_env_${ac_var}_set
2122: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2123: eval ac_new_val=\$ac_env_${ac_var}_value
2124: case $ac_old_set,$ac_new_set in
2125: set,)
1.1.1.2 misho 2126: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.1 misho 2127: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128: ac_cache_corrupted=: ;;
2129: ,set)
1.1.1.2 misho 2130: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1.1 misho 2131: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132: ac_cache_corrupted=: ;;
2133: ,);;
2134: *)
2135: if test "x$ac_old_val" != "x$ac_new_val"; then
2136: # differences in whitespace do not lead to failure.
2137: ac_old_val_w=`echo x $ac_old_val`
2138: ac_new_val_w=`echo x $ac_new_val`
2139: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.1.1.2 misho 2140: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1.1 misho 2141: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142: ac_cache_corrupted=:
2143: else
1.1.1.2 misho 2144: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1.1 misho 2145: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2146: eval $ac_var=\$ac_old_val
2147: fi
1.1.1.2 misho 2148: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1.1 misho 2149: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1.1.1.2 misho 2150: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1.1 misho 2151: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2152: fi;;
2153: esac
2154: # Pass precious variables to config.status.
2155: if test "$ac_new_set" = set; then
2156: case $ac_new_val in
2157: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2158: *) ac_arg=$ac_var=$ac_new_val ;;
2159: esac
2160: case " $ac_configure_args " in
2161: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.1.1.2 misho 2162: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.1 misho 2163: esac
2164: fi
2165: done
2166: if $ac_cache_corrupted; then
1.1.1.2 misho 2167: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2168: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 2169: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1.1 misho 2170: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.1.1.2 misho 2171: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.1 misho 2172: fi
1.1.1.2 misho 2173: ## -------------------- ##
2174: ## Main body of script. ##
2175: ## -------------------- ##
1.1 misho 2176:
2177: ac_ext=c
2178: ac_cpp='$CPP $CPPFLAGS'
2179: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182:
2183:
1.1.1.3 ! misho 2184:
1.1 misho 2185: ac_aux_dir=
2186: for ac_dir in build-aux "$srcdir"/build-aux; do
2187: if test -f "$ac_dir/install-sh"; then
2188: ac_aux_dir=$ac_dir
2189: ac_install_sh="$ac_aux_dir/install-sh -c"
2190: break
2191: elif test -f "$ac_dir/install.sh"; then
2192: ac_aux_dir=$ac_dir
2193: ac_install_sh="$ac_aux_dir/install.sh -c"
2194: break
2195: elif test -f "$ac_dir/shtool"; then
2196: ac_aux_dir=$ac_dir
2197: ac_install_sh="$ac_aux_dir/shtool install -c"
2198: break
2199: fi
2200: done
2201: if test -z "$ac_aux_dir"; then
1.1.1.2 misho 2202: as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
1.1 misho 2203: fi
2204:
2205: # These three variables are undocumented and unsupported,
2206: # and are intended to be withdrawn in a future Autoconf release.
2207: # They can cause serious problems if a builder's source tree is in a directory
2208: # whose full name contains unusual characters.
2209: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2210: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2211: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2212:
2213:
2214: ac_config_headers="$ac_config_headers config.h"
2215:
1.1.1.2 misho 2216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1.1 misho 2217: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2218: set x ${MAKE-make}
2219: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.1.1.2 misho 2220: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.1 misho 2221: $as_echo_n "(cached) " >&6
2222: else
2223: cat >conftest.make <<\_ACEOF
2224: SHELL = /bin/sh
2225: all:
2226: @echo '@@@%%%=$(MAKE)=@@@%%%'
2227: _ACEOF
1.1.1.2 misho 2228: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.1 misho 2229: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230: *@@@%%%=?*=@@@%%%*)
2231: eval ac_cv_prog_make_${ac_make}_set=yes;;
2232: *)
2233: eval ac_cv_prog_make_${ac_make}_set=no;;
2234: esac
2235: rm -f conftest.make
2236: fi
2237: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.1.1.2 misho 2238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 2239: $as_echo "yes" >&6; }
2240: SET_MAKE=
2241: else
1.1.1.2 misho 2242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2243: $as_echo "no" >&6; }
2244: SET_MAKE="MAKE=${MAKE-make}"
2245: fi
2246:
2247:
2248:
2249: ac_ext=c
2250: ac_cpp='$CPP $CPPFLAGS'
2251: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254: if test -n "$ac_tool_prefix"; then
2255: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2256: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.2 misho 2257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2258: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2259: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2260: $as_echo_n "(cached) " >&6
2261: else
2262: if test -n "$CC"; then
2263: ac_cv_prog_CC="$CC" # Let the user override the test.
2264: else
2265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266: for as_dir in $PATH
2267: do
2268: IFS=$as_save_IFS
2269: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 2270: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2271: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2272: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1.1.2 misho 2273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2274: break 2
2275: fi
2276: done
1.1.1.2 misho 2277: done
1.1 misho 2278: IFS=$as_save_IFS
2279:
2280: fi
2281: fi
2282: CC=$ac_cv_prog_CC
2283: if test -n "$CC"; then
1.1.1.2 misho 2284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.1 misho 2285: $as_echo "$CC" >&6; }
2286: else
1.1.1.2 misho 2287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2288: $as_echo "no" >&6; }
2289: fi
2290:
2291:
2292: fi
2293: if test -z "$ac_cv_prog_CC"; then
2294: ac_ct_CC=$CC
2295: # Extract the first word of "gcc", so it can be a program name with args.
2296: set dummy gcc; ac_word=$2
1.1.1.2 misho 2297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2298: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2299: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 2300: $as_echo_n "(cached) " >&6
2301: else
2302: if test -n "$ac_ct_CC"; then
2303: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304: else
2305: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306: for as_dir in $PATH
2307: do
2308: IFS=$as_save_IFS
2309: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 2310: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2311: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2312: ac_cv_prog_ac_ct_CC="gcc"
1.1.1.2 misho 2313: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2314: break 2
2315: fi
2316: done
1.1.1.2 misho 2317: done
1.1 misho 2318: IFS=$as_save_IFS
2319:
2320: fi
2321: fi
2322: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323: if test -n "$ac_ct_CC"; then
1.1.1.2 misho 2324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.1 misho 2325: $as_echo "$ac_ct_CC" >&6; }
2326: else
1.1.1.2 misho 2327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2328: $as_echo "no" >&6; }
2329: fi
2330:
2331: if test "x$ac_ct_CC" = x; then
2332: CC=""
2333: else
2334: case $cross_compiling:$ac_tool_warned in
2335: yes:)
1.1.1.2 misho 2336: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 2337: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2338: ac_tool_warned=yes ;;
2339: esac
2340: CC=$ac_ct_CC
2341: fi
2342: else
2343: CC="$ac_cv_prog_CC"
2344: fi
2345:
2346: if test -z "$CC"; then
2347: if test -n "$ac_tool_prefix"; then
2348: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2349: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.2 misho 2350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2351: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2352: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2353: $as_echo_n "(cached) " >&6
2354: else
2355: if test -n "$CC"; then
2356: ac_cv_prog_CC="$CC" # Let the user override the test.
2357: else
2358: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359: for as_dir in $PATH
2360: do
2361: IFS=$as_save_IFS
2362: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 2363: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2364: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2365: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1.1.2 misho 2366: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2367: break 2
2368: fi
2369: done
1.1.1.2 misho 2370: done
1.1 misho 2371: IFS=$as_save_IFS
2372:
2373: fi
2374: fi
2375: CC=$ac_cv_prog_CC
2376: if test -n "$CC"; then
1.1.1.2 misho 2377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.1 misho 2378: $as_echo "$CC" >&6; }
2379: else
1.1.1.2 misho 2380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2381: $as_echo "no" >&6; }
2382: fi
2383:
2384:
2385: fi
2386: fi
2387: if test -z "$CC"; then
2388: # Extract the first word of "cc", so it can be a program name with args.
2389: set dummy cc; ac_word=$2
1.1.1.2 misho 2390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2391: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2392: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2393: $as_echo_n "(cached) " >&6
2394: else
2395: if test -n "$CC"; then
2396: ac_cv_prog_CC="$CC" # Let the user override the test.
2397: else
2398: ac_prog_rejected=no
2399: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400: for as_dir in $PATH
2401: do
2402: IFS=$as_save_IFS
2403: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 2404: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2405: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2406: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2407: ac_prog_rejected=yes
2408: continue
2409: fi
2410: ac_cv_prog_CC="cc"
1.1.1.2 misho 2411: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2412: break 2
2413: fi
2414: done
1.1.1.2 misho 2415: done
1.1 misho 2416: IFS=$as_save_IFS
2417:
2418: if test $ac_prog_rejected = yes; then
2419: # We found a bogon in the path, so make sure we never use it.
2420: set dummy $ac_cv_prog_CC
2421: shift
2422: if test $# != 0; then
2423: # We chose a different compiler from the bogus one.
2424: # However, it has the same basename, so the bogon will be chosen
2425: # first if we set CC to just the basename; use the full file name.
2426: shift
2427: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2428: fi
2429: fi
2430: fi
2431: fi
2432: CC=$ac_cv_prog_CC
2433: if test -n "$CC"; then
1.1.1.2 misho 2434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.1 misho 2435: $as_echo "$CC" >&6; }
2436: else
1.1.1.2 misho 2437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2438: $as_echo "no" >&6; }
2439: fi
2440:
2441:
2442: fi
2443: if test -z "$CC"; then
2444: if test -n "$ac_tool_prefix"; then
2445: for ac_prog in cl.exe
2446: do
2447: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2448: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.2 misho 2449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2450: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2451: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2452: $as_echo_n "(cached) " >&6
2453: else
2454: if test -n "$CC"; then
2455: ac_cv_prog_CC="$CC" # Let the user override the test.
2456: else
2457: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458: for as_dir in $PATH
2459: do
2460: IFS=$as_save_IFS
2461: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 2462: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2463: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2464: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.1.2 misho 2465: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2466: break 2
2467: fi
2468: done
1.1.1.2 misho 2469: done
1.1 misho 2470: IFS=$as_save_IFS
2471:
2472: fi
2473: fi
2474: CC=$ac_cv_prog_CC
2475: if test -n "$CC"; then
1.1.1.2 misho 2476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.1 misho 2477: $as_echo "$CC" >&6; }
2478: else
1.1.1.2 misho 2479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2480: $as_echo "no" >&6; }
2481: fi
2482:
2483:
2484: test -n "$CC" && break
2485: done
2486: fi
2487: if test -z "$CC"; then
2488: ac_ct_CC=$CC
2489: for ac_prog in cl.exe
2490: do
2491: # Extract the first word of "$ac_prog", so it can be a program name with args.
2492: set dummy $ac_prog; ac_word=$2
1.1.1.2 misho 2493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2494: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 2495: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 2496: $as_echo_n "(cached) " >&6
2497: else
2498: if test -n "$ac_ct_CC"; then
2499: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500: else
2501: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502: for as_dir in $PATH
2503: do
2504: IFS=$as_save_IFS
2505: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 2506: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 2507: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2508: ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.1.2 misho 2509: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2510: break 2
2511: fi
2512: done
1.1.1.2 misho 2513: done
1.1 misho 2514: IFS=$as_save_IFS
2515:
2516: fi
2517: fi
2518: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519: if test -n "$ac_ct_CC"; then
1.1.1.2 misho 2520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.1 misho 2521: $as_echo "$ac_ct_CC" >&6; }
2522: else
1.1.1.2 misho 2523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2524: $as_echo "no" >&6; }
2525: fi
2526:
2527:
2528: test -n "$ac_ct_CC" && break
2529: done
2530:
2531: if test "x$ac_ct_CC" = x; then
2532: CC=""
2533: else
2534: case $cross_compiling:$ac_tool_warned in
2535: yes:)
1.1.1.2 misho 2536: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 2537: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2538: ac_tool_warned=yes ;;
2539: esac
2540: CC=$ac_ct_CC
2541: fi
2542: fi
2543:
2544: fi
2545:
2546:
1.1.1.2 misho 2547: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2548: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 2549: as_fn_error $? "no acceptable C compiler found in \$PATH
2550: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2551:
2552: # Provide some information about the compiler.
1.1.1.2 misho 2553: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1 misho 2554: set X $ac_compile
2555: ac_compiler=$2
1.1.1.2 misho 2556: for ac_option in --version -v -V -qversion; do
2557: { { ac_try="$ac_compiler $ac_option >&5"
1.1 misho 2558: case "(($ac_try" in
2559: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560: *) ac_try_echo=$ac_try;;
2561: esac
1.1.1.2 misho 2562: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563: $as_echo "$ac_try_echo"; } >&5
2564: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2565: ac_status=$?
2566: if test -s conftest.err; then
2567: sed '10a\
2568: ... rest of stderr output deleted ...
2569: 10q' conftest.err >conftest.er1
2570: cat conftest.er1 >&5
2571: fi
2572: rm -f conftest.er1 conftest.err
2573: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574: test $ac_status = 0; }
2575: done
1.1 misho 2576:
1.1.1.2 misho 2577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2578: /* end confdefs.h. */
2579:
2580: int
2581: main ()
2582: {
2583:
2584: ;
2585: return 0;
2586: }
2587: _ACEOF
2588: ac_clean_files_save=$ac_clean_files
2589: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2590: # Try to create an executable without -o first, disregard a.out.
2591: # It will help us diagnose broken compilers, and finding out an intuition
2592: # of exeext.
1.1.1.2 misho 2593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2594: $as_echo_n "checking whether the C compiler works... " >&6; }
1.1 misho 2595: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2596:
2597: # The possible output files:
2598: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2599:
2600: ac_rmfiles=
2601: for ac_file in $ac_files
2602: do
2603: case $ac_file in
2604: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2606: esac
2607: done
2608: rm -f $ac_rmfiles
2609:
1.1.1.2 misho 2610: if { { ac_try="$ac_link_default"
1.1 misho 2611: case "(($ac_try" in
2612: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613: *) ac_try_echo=$ac_try;;
2614: esac
1.1.1.2 misho 2615: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616: $as_echo "$ac_try_echo"; } >&5
1.1 misho 2617: (eval "$ac_link_default") 2>&5
2618: ac_status=$?
1.1.1.2 misho 2619: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620: test $ac_status = 0; }; then :
1.1 misho 2621: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2622: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2623: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2624: # so that the user can short-circuit this test for compilers unknown to
2625: # Autoconf.
2626: for ac_file in $ac_files ''
2627: do
2628: test -f "$ac_file" || continue
2629: case $ac_file in
2630: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2631: ;;
2632: [ab].out )
2633: # We found the default executable, but exeext='' is most
2634: # certainly right.
2635: break;;
2636: *.* )
1.1.1.2 misho 2637: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.1 misho 2638: then :; else
2639: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640: fi
2641: # We set ac_cv_exeext here because the later test for it is not
2642: # safe: cross compilers may not add the suffix if given an `-o'
2643: # argument, so we may need to know it at that point already.
2644: # Even if this section looks crufty: it has the advantage of
2645: # actually working.
2646: break;;
2647: * )
2648: break;;
2649: esac
2650: done
2651: test "$ac_cv_exeext" = no && ac_cv_exeext=
2652:
2653: else
2654: ac_file=''
2655: fi
1.1.1.2 misho 2656: if test -z "$ac_file"; then :
2657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658: $as_echo "no" >&6; }
2659: $as_echo "$as_me: failed program was:" >&5
1.1 misho 2660: sed 's/^/| /' conftest.$ac_ext >&5
2661:
1.1.1.2 misho 2662: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2663: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 2664: as_fn_error 77 "C compiler cannot create executables
2665: See \`config.log' for more details" "$LINENO" 5; }
2666: else
2667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668: $as_echo "yes" >&6; }
1.1 misho 2669: fi
1.1.1.2 misho 2670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2671: $as_echo_n "checking for C compiler default output file name... " >&6; }
2672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2673: $as_echo "$ac_file" >&6; }
1.1 misho 2674: ac_exeext=$ac_cv_exeext
2675:
2676: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2677: ac_clean_files=$ac_clean_files_save
1.1.1.2 misho 2678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
1.1 misho 2679: $as_echo_n "checking for suffix of executables... " >&6; }
1.1.1.2 misho 2680: if { { ac_try="$ac_link"
1.1 misho 2681: case "(($ac_try" in
2682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683: *) ac_try_echo=$ac_try;;
2684: esac
1.1.1.2 misho 2685: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2686: $as_echo "$ac_try_echo"; } >&5
1.1 misho 2687: (eval "$ac_link") 2>&5
2688: ac_status=$?
1.1.1.2 misho 2689: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2690: test $ac_status = 0; }; then :
1.1 misho 2691: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2692: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2693: # work properly (i.e., refer to `conftest.exe'), while it won't with
2694: # `rm'.
2695: for ac_file in conftest.exe conftest conftest.*; do
2696: test -f "$ac_file" || continue
2697: case $ac_file in
2698: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2699: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700: break;;
2701: * ) break;;
2702: esac
2703: done
2704: else
1.1.1.2 misho 2705: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2706: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 2707: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2708: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2709: fi
1.1.1.2 misho 2710: rm -f conftest conftest$ac_cv_exeext
2711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1.1 misho 2712: $as_echo "$ac_cv_exeext" >&6; }
2713:
2714: rm -f conftest.$ac_ext
2715: EXEEXT=$ac_cv_exeext
2716: ac_exeext=$EXEEXT
1.1.1.2 misho 2717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718: /* end confdefs.h. */
2719: #include <stdio.h>
2720: int
2721: main ()
2722: {
2723: FILE *f = fopen ("conftest.out", "w");
2724: return ferror (f) || fclose (f) != 0;
2725:
2726: ;
2727: return 0;
2728: }
2729: _ACEOF
2730: ac_clean_files="$ac_clean_files conftest.out"
2731: # Check that the compiler produces executables we can run. If not, either
2732: # the compiler is broken, or we cross compile.
2733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2734: $as_echo_n "checking whether we are cross compiling... " >&6; }
2735: if test "$cross_compiling" != yes; then
2736: { { ac_try="$ac_link"
2737: case "(($ac_try" in
2738: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739: *) ac_try_echo=$ac_try;;
2740: esac
2741: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742: $as_echo "$ac_try_echo"; } >&5
2743: (eval "$ac_link") 2>&5
2744: ac_status=$?
2745: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746: test $ac_status = 0; }
2747: if { ac_try='./conftest$ac_cv_exeext'
2748: { { case "(($ac_try" in
2749: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750: *) ac_try_echo=$ac_try;;
2751: esac
2752: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753: $as_echo "$ac_try_echo"; } >&5
2754: (eval "$ac_try") 2>&5
2755: ac_status=$?
2756: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757: test $ac_status = 0; }; }; then
2758: cross_compiling=no
2759: else
2760: if test "$cross_compiling" = maybe; then
2761: cross_compiling=yes
2762: else
2763: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765: as_fn_error $? "cannot run C compiled programs.
2766: If you meant to cross compile, use \`--host'.
2767: See \`config.log' for more details" "$LINENO" 5; }
2768: fi
2769: fi
2770: fi
2771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2772: $as_echo "$cross_compiling" >&6; }
2773:
2774: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2775: ac_clean_files=$ac_clean_files_save
2776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
1.1 misho 2777: $as_echo_n "checking for suffix of object files... " >&6; }
1.1.1.2 misho 2778: if ${ac_cv_objext+:} false; then :
1.1 misho 2779: $as_echo_n "(cached) " >&6
2780: else
1.1.1.2 misho 2781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2782: /* end confdefs.h. */
2783:
2784: int
2785: main ()
2786: {
2787:
2788: ;
2789: return 0;
2790: }
2791: _ACEOF
2792: rm -f conftest.o conftest.obj
1.1.1.2 misho 2793: if { { ac_try="$ac_compile"
1.1 misho 2794: case "(($ac_try" in
2795: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796: *) ac_try_echo=$ac_try;;
2797: esac
1.1.1.2 misho 2798: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799: $as_echo "$ac_try_echo"; } >&5
1.1 misho 2800: (eval "$ac_compile") 2>&5
2801: ac_status=$?
1.1.1.2 misho 2802: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803: test $ac_status = 0; }; then :
1.1 misho 2804: for ac_file in conftest.o conftest.obj conftest.*; do
2805: test -f "$ac_file" || continue;
2806: case $ac_file in
2807: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2808: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2809: break;;
2810: esac
2811: done
2812: else
2813: $as_echo "$as_me: failed program was:" >&5
2814: sed 's/^/| /' conftest.$ac_ext >&5
2815:
1.1.1.2 misho 2816: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2817: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 2818: as_fn_error $? "cannot compute suffix of object files: cannot compile
2819: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2820: fi
2821: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2822: fi
1.1.1.2 misho 2823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
1.1 misho 2824: $as_echo "$ac_cv_objext" >&6; }
2825: OBJEXT=$ac_cv_objext
2826: ac_objext=$OBJEXT
1.1.1.2 misho 2827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
1.1 misho 2828: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1.1.2 misho 2829: if ${ac_cv_c_compiler_gnu+:} false; then :
1.1 misho 2830: $as_echo_n "(cached) " >&6
2831: else
1.1.1.2 misho 2832: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2833: /* end confdefs.h. */
2834:
2835: int
2836: main ()
2837: {
2838: #ifndef __GNUC__
2839: choke me
2840: #endif
2841:
2842: ;
2843: return 0;
2844: }
2845: _ACEOF
1.1.1.2 misho 2846: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2847: ac_compiler_gnu=yes
2848: else
1.1.1.2 misho 2849: ac_compiler_gnu=no
1.1 misho 2850: fi
2851: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2853:
2854: fi
1.1.1.2 misho 2855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
1.1 misho 2856: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2857: if test $ac_compiler_gnu = yes; then
2858: GCC=yes
2859: else
2860: GCC=
2861: fi
2862: ac_test_CFLAGS=${CFLAGS+set}
2863: ac_save_CFLAGS=$CFLAGS
1.1.1.2 misho 2864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
1.1 misho 2865: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1.1.2 misho 2866: if ${ac_cv_prog_cc_g+:} false; then :
1.1 misho 2867: $as_echo_n "(cached) " >&6
2868: else
2869: ac_save_c_werror_flag=$ac_c_werror_flag
2870: ac_c_werror_flag=yes
2871: ac_cv_prog_cc_g=no
2872: CFLAGS="-g"
1.1.1.2 misho 2873: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2874: /* end confdefs.h. */
2875:
2876: int
2877: main ()
2878: {
2879:
2880: ;
2881: return 0;
2882: }
2883: _ACEOF
1.1.1.2 misho 2884: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2885: ac_cv_prog_cc_g=yes
2886: else
1.1.1.2 misho 2887: CFLAGS=""
2888: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2889: /* end confdefs.h. */
2890:
2891: int
2892: main ()
2893: {
2894:
1.1.1.2 misho 2895: ;
2896: return 0;
2897: }
1.1 misho 2898: _ACEOF
1.1.1.2 misho 2899: if ac_fn_c_try_compile "$LINENO"; then :
2900:
2901: else
2902: ac_c_werror_flag=$ac_save_c_werror_flag
2903: CFLAGS="-g"
2904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2905: /* end confdefs.h. */
2906:
2907: int
2908: main ()
2909: {
2910:
2911: ;
2912: return 0;
2913: }
2914: _ACEOF
1.1.1.2 misho 2915: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2916: ac_cv_prog_cc_g=yes
2917: fi
2918: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919: fi
2920: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921: fi
2922: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923: ac_c_werror_flag=$ac_save_c_werror_flag
2924: fi
1.1.1.2 misho 2925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
1.1 misho 2926: $as_echo "$ac_cv_prog_cc_g" >&6; }
2927: if test "$ac_test_CFLAGS" = set; then
2928: CFLAGS=$ac_save_CFLAGS
2929: elif test $ac_cv_prog_cc_g = yes; then
2930: if test "$GCC" = yes; then
2931: CFLAGS="-g -O2"
2932: else
2933: CFLAGS="-g"
2934: fi
2935: else
2936: if test "$GCC" = yes; then
2937: CFLAGS="-O2"
2938: else
2939: CFLAGS=
2940: fi
2941: fi
1.1.1.2 misho 2942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
1.1 misho 2943: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.1.2 misho 2944: if ${ac_cv_prog_cc_c89+:} false; then :
1.1 misho 2945: $as_echo_n "(cached) " >&6
2946: else
2947: ac_cv_prog_cc_c89=no
2948: ac_save_CC=$CC
1.1.1.2 misho 2949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2950: /* end confdefs.h. */
2951: #include <stdarg.h>
2952: #include <stdio.h>
1.1.1.3 ! misho 2953: struct stat;
1.1 misho 2954: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2955: struct buf { int x; };
2956: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957: static char *e (p, i)
2958: char **p;
2959: int i;
2960: {
2961: return p[i];
2962: }
2963: static char *f (char * (*g) (char **, int), char **p, ...)
2964: {
2965: char *s;
2966: va_list v;
2967: va_start (v,p);
2968: s = g (p, va_arg (v,int));
2969: va_end (v);
2970: return s;
2971: }
2972:
2973: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2974: function prototypes and stuff, but not '\xHH' hex character constants.
2975: These don't provoke an error unfortunately, instead are silently treated
2976: as 'x'. The following induces an error, until -std is added to get
2977: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2978: array size at least. It's necessary to write '\x00'==0 to get something
2979: that's true only with -std. */
2980: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981:
2982: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983: inside strings and character constants. */
2984: #define FOO(x) 'x'
2985: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986:
2987: int test (int i, double x);
2988: struct s1 {int (*f) (int a);};
2989: struct s2 {int (*f) (double a);};
2990: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991: int argc;
2992: char **argv;
2993: int
2994: main ()
2995: {
2996: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997: ;
2998: return 0;
2999: }
3000: _ACEOF
3001: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3003: do
3004: CC="$ac_save_CC $ac_arg"
1.1.1.2 misho 3005: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 3006: ac_cv_prog_cc_c89=$ac_arg
3007: fi
3008: rm -f core conftest.err conftest.$ac_objext
3009: test "x$ac_cv_prog_cc_c89" != "xno" && break
3010: done
3011: rm -f conftest.$ac_ext
3012: CC=$ac_save_CC
3013:
3014: fi
3015: # AC_CACHE_VAL
3016: case "x$ac_cv_prog_cc_c89" in
3017: x)
1.1.1.2 misho 3018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
1.1 misho 3019: $as_echo "none needed" >&6; } ;;
3020: xno)
1.1.1.2 misho 3021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
1.1 misho 3022: $as_echo "unsupported" >&6; } ;;
3023: *)
3024: CC="$CC $ac_cv_prog_cc_c89"
1.1.1.2 misho 3025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
1.1 misho 3026: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3027: esac
1.1.1.2 misho 3028: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.1 misho 3029:
1.1.1.2 misho 3030: fi
1.1 misho 3031:
3032: ac_ext=c
3033: ac_cpp='$CPP $CPPFLAGS'
3034: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037:
3038: ac_ext=c
3039: ac_cpp='$CPP $CPPFLAGS'
3040: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.2 misho 3043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
1.1 misho 3044: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3045: # On Suns, sometimes $CPP names a directory.
3046: if test -n "$CPP" && test -d "$CPP"; then
3047: CPP=
3048: fi
3049: if test -z "$CPP"; then
1.1.1.2 misho 3050: if ${ac_cv_prog_CPP+:} false; then :
1.1 misho 3051: $as_echo_n "(cached) " >&6
3052: else
3053: # Double quotes because CPP needs to be expanded
3054: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3055: do
3056: ac_preproc_ok=false
3057: for ac_c_preproc_warn_flag in '' yes
3058: do
3059: # Use a header file that comes with gcc, so configuring glibc
3060: # with a fresh cross-compiler works.
3061: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3062: # <limits.h> exists even on freestanding compilers.
3063: # On the NeXT, cc -E runs the code through the compiler's parser,
3064: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.2 misho 3065: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3066: /* end confdefs.h. */
3067: #ifdef __STDC__
3068: # include <limits.h>
3069: #else
3070: # include <assert.h>
3071: #endif
3072: Syntax error
3073: _ACEOF
1.1.1.2 misho 3074: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3075:
1.1.1.2 misho 3076: else
1.1 misho 3077: # Broken: fails on valid input.
3078: continue
3079: fi
1.1.1.2 misho 3080: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3081:
3082: # OK, works on sane cases. Now check whether nonexistent headers
3083: # can be detected and how.
1.1.1.2 misho 3084: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3085: /* end confdefs.h. */
3086: #include <ac_nonexistent.h>
3087: _ACEOF
1.1.1.2 misho 3088: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3089: # Broken: success on invalid input.
3090: continue
3091: else
3092: # Passes both tests.
3093: ac_preproc_ok=:
3094: break
3095: fi
1.1.1.2 misho 3096: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3097:
3098: done
3099: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.2 misho 3100: rm -f conftest.i conftest.err conftest.$ac_ext
3101: if $ac_preproc_ok; then :
1.1 misho 3102: break
3103: fi
3104:
3105: done
3106: ac_cv_prog_CPP=$CPP
3107:
3108: fi
3109: CPP=$ac_cv_prog_CPP
3110: else
3111: ac_cv_prog_CPP=$CPP
3112: fi
1.1.1.2 misho 3113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
1.1 misho 3114: $as_echo "$CPP" >&6; }
3115: ac_preproc_ok=false
3116: for ac_c_preproc_warn_flag in '' yes
3117: do
3118: # Use a header file that comes with gcc, so configuring glibc
3119: # with a fresh cross-compiler works.
3120: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121: # <limits.h> exists even on freestanding compilers.
3122: # On the NeXT, cc -E runs the code through the compiler's parser,
3123: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.2 misho 3124: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3125: /* end confdefs.h. */
3126: #ifdef __STDC__
3127: # include <limits.h>
3128: #else
3129: # include <assert.h>
3130: #endif
3131: Syntax error
3132: _ACEOF
1.1.1.2 misho 3133: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3134:
1.1.1.2 misho 3135: else
1.1 misho 3136: # Broken: fails on valid input.
3137: continue
3138: fi
1.1.1.2 misho 3139: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3140:
3141: # OK, works on sane cases. Now check whether nonexistent headers
3142: # can be detected and how.
1.1.1.2 misho 3143: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3144: /* end confdefs.h. */
3145: #include <ac_nonexistent.h>
3146: _ACEOF
1.1.1.2 misho 3147: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3148: # Broken: success on invalid input.
3149: continue
3150: else
3151: # Passes both tests.
3152: ac_preproc_ok=:
3153: break
3154: fi
1.1.1.2 misho 3155: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3156:
3157: done
3158: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.2 misho 3159: rm -f conftest.i conftest.err conftest.$ac_ext
3160: if $ac_preproc_ok; then :
3161:
1.1 misho 3162: else
1.1.1.2 misho 3163: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 3164: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 misho 3165: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3166: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3167: fi
3168:
3169: ac_ext=c
3170: ac_cpp='$CPP $CPPFLAGS'
3171: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174:
3175: # Find a good install program. We prefer a C program (faster),
3176: # so one script is as good as another. But avoid the broken or
3177: # incompatible versions:
3178: # SysV /etc/install, /usr/sbin/install
3179: # SunOS /usr/etc/install
3180: # IRIX /sbin/install
3181: # AIX /bin/install
3182: # AmigaOS /C/install, which installs bootblocks on floppy discs
3183: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3184: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3185: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3186: # OS/2's system install, which has a completely different semantic
3187: # ./install, which can be erroneously created by make from ./install.sh.
3188: # Reject install programs that cannot install multiple files.
1.1.1.2 misho 3189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1.1 misho 3190: $as_echo_n "checking for a BSD-compatible install... " >&6; }
3191: if test -z "$INSTALL"; then
1.1.1.2 misho 3192: if ${ac_cv_path_install+:} false; then :
1.1 misho 3193: $as_echo_n "(cached) " >&6
3194: else
3195: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196: for as_dir in $PATH
3197: do
3198: IFS=$as_save_IFS
3199: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 3200: # Account for people who put trailing slashes in PATH elements.
3201: case $as_dir/ in #((
3202: ./ | .// | /[cC]/* | \
1.1 misho 3203: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.2 misho 3204: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.1 misho 3205: /usr/ucb/* ) ;;
3206: *)
3207: # OSF1 and SCO ODT 3.0 have their own names for install.
3208: # Don't use installbsd from OSF since it installs stuff as root
3209: # by default.
3210: for ac_prog in ginstall scoinst install; do
3211: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 3212: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misho 3213: if test $ac_prog = install &&
3214: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3215: # AIX install. It has an incompatible calling convention.
3216: :
3217: elif test $ac_prog = install &&
3218: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3219: # program-specific install script used by HP pwplus--don't use.
3220: :
3221: else
3222: rm -rf conftest.one conftest.two conftest.dir
3223: echo one > conftest.one
3224: echo two > conftest.two
3225: mkdir conftest.dir
3226: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3227: test -s conftest.one && test -s conftest.two &&
3228: test -s conftest.dir/conftest.one &&
3229: test -s conftest.dir/conftest.two
3230: then
3231: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3232: break 3
3233: fi
3234: fi
3235: fi
3236: done
3237: done
3238: ;;
3239: esac
3240:
1.1.1.2 misho 3241: done
1.1 misho 3242: IFS=$as_save_IFS
3243:
3244: rm -rf conftest.one conftest.two conftest.dir
3245:
3246: fi
3247: if test "${ac_cv_path_install+set}" = set; then
3248: INSTALL=$ac_cv_path_install
3249: else
3250: # As a last resort, use the slow shell script. Don't cache a
3251: # value for INSTALL within a source directory, because that will
3252: # break other packages using the cache if that directory is
3253: # removed, or if the value is a relative name.
3254: INSTALL=$ac_install_sh
3255: fi
3256: fi
1.1.1.2 misho 3257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1.1 misho 3258: $as_echo "$INSTALL" >&6; }
3259:
3260: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3261: # It thinks the first close brace ends the variable substitution.
3262: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3263:
3264: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3265:
3266: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3267:
3268:
3269:
3270: # Make sure we can run config.sub.
3271: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.1.1.2 misho 3272: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.1 misho 3273:
1.1.1.2 misho 3274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1.1 misho 3275: $as_echo_n "checking build system type... " >&6; }
1.1.1.2 misho 3276: if ${ac_cv_build+:} false; then :
1.1 misho 3277: $as_echo_n "(cached) " >&6
3278: else
3279: ac_build_alias=$build_alias
3280: test "x$ac_build_alias" = x &&
3281: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3282: test "x$ac_build_alias" = x &&
1.1.1.2 misho 3283: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.1 misho 3284: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.1.1.2 misho 3285: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.1 misho 3286:
3287: fi
1.1.1.2 misho 3288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1.1 misho 3289: $as_echo "$ac_cv_build" >&6; }
3290: case $ac_cv_build in
3291: *-*-*) ;;
1.1.1.2 misho 3292: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.1 misho 3293: esac
3294: build=$ac_cv_build
3295: ac_save_IFS=$IFS; IFS='-'
3296: set x $ac_cv_build
3297: shift
3298: build_cpu=$1
3299: build_vendor=$2
3300: shift; shift
3301: # Remember, the first character of IFS is used to create $*,
3302: # except with old shells:
3303: build_os=$*
3304: IFS=$ac_save_IFS
3305: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3306:
3307:
1.1.1.2 misho 3308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1.1 misho 3309: $as_echo_n "checking host system type... " >&6; }
1.1.1.2 misho 3310: if ${ac_cv_host+:} false; then :
1.1 misho 3311: $as_echo_n "(cached) " >&6
3312: else
3313: if test "x$host_alias" = x; then
3314: ac_cv_host=$ac_cv_build
3315: else
3316: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.1.1.2 misho 3317: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.1 misho 3318: fi
3319:
3320: fi
1.1.1.2 misho 3321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1.1 misho 3322: $as_echo "$ac_cv_host" >&6; }
3323: case $ac_cv_host in
3324: *-*-*) ;;
1.1.1.2 misho 3325: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.1 misho 3326: esac
3327: host=$ac_cv_host
3328: ac_save_IFS=$IFS; IFS='-'
3329: set x $ac_cv_host
3330: shift
3331: host_cpu=$1
3332: host_vendor=$2
3333: shift; shift
3334: # Remember, the first character of IFS is used to create $*,
3335: # except with old shells:
3336: host_os=$*
3337: IFS=$ac_save_IFS
3338: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3339:
3340:
3341:
3342:
3343:
3344:
3345:
3346:
1.1.1.2 misho 3347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
1.1 misho 3348: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.1.1.2 misho 3349: if ${ac_cv_path_GREP+:} false; then :
1.1 misho 3350: $as_echo_n "(cached) " >&6
3351: else
3352: if test -z "$GREP"; then
3353: ac_path_GREP_found=false
3354: # Loop through the user's path and test for each of PROGNAME-LIST
3355: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3357: do
3358: IFS=$as_save_IFS
3359: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 3360: for ac_prog in grep ggrep; do
1.1 misho 3361: for ac_exec_ext in '' $ac_executable_extensions; do
3362: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 3363: as_fn_executable_p "$ac_path_GREP" || continue
1.1 misho 3364: # Check for GNU ac_path_GREP and select it if it is found.
3365: # Check for GNU $ac_path_GREP
3366: case `"$ac_path_GREP" --version 2>&1` in
3367: *GNU*)
3368: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3369: *)
3370: ac_count=0
3371: $as_echo_n 0123456789 >"conftest.in"
3372: while :
3373: do
3374: cat "conftest.in" "conftest.in" >"conftest.tmp"
3375: mv "conftest.tmp" "conftest.in"
3376: cp "conftest.in" "conftest.nl"
3377: $as_echo 'GREP' >> "conftest.nl"
3378: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3379: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 misho 3380: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3381: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3382: # Best one so far, save it but keep looking for a better one
3383: ac_cv_path_GREP="$ac_path_GREP"
3384: ac_path_GREP_max=$ac_count
3385: fi
3386: # 10*(2^10) chars as input seems more than enough
3387: test $ac_count -gt 10 && break
3388: done
3389: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3390: esac
3391:
3392: $ac_path_GREP_found && break 3
3393: done
3394: done
1.1.1.2 misho 3395: done
1.1 misho 3396: IFS=$as_save_IFS
3397: if test -z "$ac_cv_path_GREP"; then
1.1.1.2 misho 3398: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3399: fi
3400: else
3401: ac_cv_path_GREP=$GREP
3402: fi
3403:
3404: fi
1.1.1.2 misho 3405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
1.1 misho 3406: $as_echo "$ac_cv_path_GREP" >&6; }
3407: GREP="$ac_cv_path_GREP"
3408:
3409:
1.1.1.2 misho 3410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
1.1 misho 3411: $as_echo_n "checking for egrep... " >&6; }
1.1.1.2 misho 3412: if ${ac_cv_path_EGREP+:} false; then :
1.1 misho 3413: $as_echo_n "(cached) " >&6
3414: else
3415: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3416: then ac_cv_path_EGREP="$GREP -E"
3417: else
3418: if test -z "$EGREP"; then
3419: ac_path_EGREP_found=false
3420: # Loop through the user's path and test for each of PROGNAME-LIST
3421: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3423: do
3424: IFS=$as_save_IFS
3425: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 3426: for ac_prog in egrep; do
1.1 misho 3427: for ac_exec_ext in '' $ac_executable_extensions; do
3428: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 3429: as_fn_executable_p "$ac_path_EGREP" || continue
1.1 misho 3430: # Check for GNU ac_path_EGREP and select it if it is found.
3431: # Check for GNU $ac_path_EGREP
3432: case `"$ac_path_EGREP" --version 2>&1` in
3433: *GNU*)
3434: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3435: *)
3436: ac_count=0
3437: $as_echo_n 0123456789 >"conftest.in"
3438: while :
3439: do
3440: cat "conftest.in" "conftest.in" >"conftest.tmp"
3441: mv "conftest.tmp" "conftest.in"
3442: cp "conftest.in" "conftest.nl"
3443: $as_echo 'EGREP' >> "conftest.nl"
3444: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3445: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 misho 3446: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3447: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3448: # Best one so far, save it but keep looking for a better one
3449: ac_cv_path_EGREP="$ac_path_EGREP"
3450: ac_path_EGREP_max=$ac_count
3451: fi
3452: # 10*(2^10) chars as input seems more than enough
3453: test $ac_count -gt 10 && break
3454: done
3455: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3456: esac
3457:
3458: $ac_path_EGREP_found && break 3
3459: done
3460: done
1.1.1.2 misho 3461: done
1.1 misho 3462: IFS=$as_save_IFS
3463: if test -z "$ac_cv_path_EGREP"; then
1.1.1.2 misho 3464: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3465: fi
3466: else
3467: ac_cv_path_EGREP=$EGREP
3468: fi
3469:
3470: fi
3471: fi
1.1.1.2 misho 3472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
1.1 misho 3473: $as_echo "$ac_cv_path_EGREP" >&6; }
3474: EGREP="$ac_cv_path_EGREP"
3475:
3476:
1.1.1.2 misho 3477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
1.1 misho 3478: $as_echo_n "checking for ANSI C header files... " >&6; }
1.1.1.2 misho 3479: if ${ac_cv_header_stdc+:} false; then :
1.1 misho 3480: $as_echo_n "(cached) " >&6
3481: else
1.1.1.2 misho 3482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3483: /* end confdefs.h. */
3484: #include <stdlib.h>
3485: #include <stdarg.h>
3486: #include <string.h>
3487: #include <float.h>
3488:
3489: int
3490: main ()
3491: {
3492:
3493: ;
3494: return 0;
3495: }
3496: _ACEOF
1.1.1.2 misho 3497: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 3498: ac_cv_header_stdc=yes
3499: else
1.1.1.2 misho 3500: ac_cv_header_stdc=no
1.1 misho 3501: fi
3502: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503:
3504: if test $ac_cv_header_stdc = yes; then
3505: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.1.1.2 misho 3506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3507: /* end confdefs.h. */
3508: #include <string.h>
3509:
3510: _ACEOF
3511: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.2 misho 3512: $EGREP "memchr" >/dev/null 2>&1; then :
3513:
1.1 misho 3514: else
3515: ac_cv_header_stdc=no
3516: fi
3517: rm -f conftest*
3518:
3519: fi
3520:
3521: if test $ac_cv_header_stdc = yes; then
3522: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.1.1.2 misho 3523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3524: /* end confdefs.h. */
3525: #include <stdlib.h>
3526:
3527: _ACEOF
3528: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.2 misho 3529: $EGREP "free" >/dev/null 2>&1; then :
3530:
1.1 misho 3531: else
3532: ac_cv_header_stdc=no
3533: fi
3534: rm -f conftest*
3535:
3536: fi
3537:
3538: if test $ac_cv_header_stdc = yes; then
3539: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.1.1.2 misho 3540: if test "$cross_compiling" = yes; then :
1.1 misho 3541: :
3542: else
1.1.1.2 misho 3543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3544: /* end confdefs.h. */
3545: #include <ctype.h>
3546: #include <stdlib.h>
3547: #if ((' ' & 0x0FF) == 0x020)
3548: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3549: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3550: #else
3551: # define ISLOWER(c) \
3552: (('a' <= (c) && (c) <= 'i') \
3553: || ('j' <= (c) && (c) <= 'r') \
3554: || ('s' <= (c) && (c) <= 'z'))
3555: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3556: #endif
3557:
3558: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3559: int
3560: main ()
3561: {
3562: int i;
3563: for (i = 0; i < 256; i++)
3564: if (XOR (islower (i), ISLOWER (i))
3565: || toupper (i) != TOUPPER (i))
3566: return 2;
3567: return 0;
3568: }
3569: _ACEOF
1.1.1.2 misho 3570: if ac_fn_c_try_run "$LINENO"; then :
1.1 misho 3571:
1.1.1.2 misho 3572: else
3573: ac_cv_header_stdc=no
1.1 misho 3574: fi
1.1.1.2 misho 3575: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3576: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 3577: fi
3578:
3579: fi
3580: fi
1.1.1.2 misho 3581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
1.1 misho 3582: $as_echo "$ac_cv_header_stdc" >&6; }
3583: if test $ac_cv_header_stdc = yes; then
3584:
1.1.1.2 misho 3585: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 misho 3586:
3587: fi
3588:
3589: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3590: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3591: inttypes.h stdint.h unistd.h
1.1.1.2 misho 3592: do :
3593: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3594: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3595: "
3596: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.1 misho 3597: cat >>confdefs.h <<_ACEOF
3598: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3599: _ACEOF
3600:
3601: fi
3602:
3603: done
3604:
3605:
3606:
1.1.1.2 misho 3607: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3608: if test "x$ac_cv_header_minix_config_h" = xyes; then :
1.1 misho 3609: MINIX=yes
3610: else
3611: MINIX=
3612: fi
3613:
3614:
3615: if test "$MINIX" = yes; then
3616:
1.1.1.2 misho 3617: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
1.1 misho 3618:
3619:
1.1.1.2 misho 3620: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
1.1 misho 3621:
3622:
1.1.1.2 misho 3623: $as_echo "#define _MINIX 1" >>confdefs.h
1.1 misho 3624:
3625: fi
3626:
3627:
1.1.1.2 misho 3628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
1.1 misho 3629: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
1.1.1.2 misho 3630: if ${ac_cv_safe_to_define___extensions__+:} false; then :
1.1 misho 3631: $as_echo_n "(cached) " >&6
3632: else
1.1.1.2 misho 3633: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3634: /* end confdefs.h. */
3635:
1.1.1.3 ! misho 3636: # define __EXTENSIONS__ 1
! 3637: $ac_includes_default
1.1 misho 3638: int
3639: main ()
3640: {
3641:
1.1.1.2 misho 3642: ;
3643: return 0;
3644: }
3645: _ACEOF
3646: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 3647: ac_cv_safe_to_define___extensions__=yes
3648: else
1.1.1.2 misho 3649: ac_cv_safe_to_define___extensions__=no
1.1 misho 3650: fi
3651: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652: fi
1.1.1.2 misho 3653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
1.1 misho 3654: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3655: test $ac_cv_safe_to_define___extensions__ = yes &&
1.1.1.2 misho 3656: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
1.1 misho 3657:
1.1.1.2 misho 3658: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
1.1 misho 3659:
1.1.1.2 misho 3660: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
1.1 misho 3661:
1.1.1.2 misho 3662: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
1.1 misho 3663:
1.1.1.2 misho 3664: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
1.1 misho 3665:
3666:
3667:
3668:
3669:
3670:
3671:
3672:
3673: case `pwd` in
3674: *\ * | *\ *)
1.1.1.2 misho 3675: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1.1 misho 3676: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3677: esac
3678:
3679:
3680:
1.1.1.3 ! misho 3681: macro_version='2.4.6'
! 3682: macro_revision='2.4.6'
1.1 misho 3683:
3684:
3685:
3686:
3687:
3688:
3689:
3690:
3691:
3692:
3693:
3694:
3695:
1.1.1.3 ! misho 3696: ltmain=$ac_aux_dir/ltmain.sh
1.1 misho 3697:
1.1.1.2 misho 3698: # Backslashify metacharacters that are still active within
3699: # double-quoted strings.
3700: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3701:
3702: # Same as above, but do not quote variable references.
3703: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3704:
3705: # Sed substitution to delay expansion of an escaped shell variable in a
3706: # double_quote_subst'ed string.
3707: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3708:
3709: # Sed substitution to delay expansion of an escaped single quote.
3710: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3711:
3712: # Sed substitution to avoid accidental globbing in evaled expressions
3713: no_glob_subst='s/\*/\\\*/g'
3714:
3715: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3716: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3717: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3718:
3719: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3720: $as_echo_n "checking how to print strings... " >&6; }
3721: # Test print first, because it will be a builtin if present.
3722: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3723: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3724: ECHO='print -r --'
3725: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3726: ECHO='printf %s\n'
3727: else
3728: # Use this function as a fallback that always works.
3729: func_fallback_echo ()
3730: {
3731: eval 'cat <<_LTECHO_EOF
3732: $1
3733: _LTECHO_EOF'
3734: }
3735: ECHO='func_fallback_echo'
3736: fi
3737:
3738: # func_echo_all arg...
3739: # Invoke $ECHO with all args, space-separated.
3740: func_echo_all ()
3741: {
3742: $ECHO ""
3743: }
3744:
1.1.1.3 ! misho 3745: case $ECHO in
1.1.1.2 misho 3746: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3747: $as_echo "printf" >&6; } ;;
3748: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3749: $as_echo "print -r" >&6; } ;;
3750: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3751: $as_echo "cat" >&6; } ;;
3752: esac
3753:
3754:
3755:
3756:
3757:
3758:
3759:
3760:
3761:
3762:
3763:
3764:
3765:
3766:
3767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
1.1 misho 3768: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
1.1.1.2 misho 3769: if ${ac_cv_path_SED+:} false; then :
1.1 misho 3770: $as_echo_n "(cached) " >&6
3771: else
3772: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3773: for ac_i in 1 2 3 4 5 6 7; do
3774: ac_script="$ac_script$as_nl$ac_script"
3775: done
3776: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
1.1.1.2 misho 3777: { ac_script=; unset ac_script;}
1.1 misho 3778: if test -z "$SED"; then
3779: ac_path_SED_found=false
3780: # Loop through the user's path and test for each of PROGNAME-LIST
3781: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782: for as_dir in $PATH
3783: do
3784: IFS=$as_save_IFS
3785: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 3786: for ac_prog in sed gsed; do
1.1 misho 3787: for ac_exec_ext in '' $ac_executable_extensions; do
3788: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 3789: as_fn_executable_p "$ac_path_SED" || continue
1.1 misho 3790: # Check for GNU ac_path_SED and select it if it is found.
3791: # Check for GNU $ac_path_SED
3792: case `"$ac_path_SED" --version 2>&1` in
3793: *GNU*)
3794: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3795: *)
3796: ac_count=0
3797: $as_echo_n 0123456789 >"conftest.in"
3798: while :
3799: do
3800: cat "conftest.in" "conftest.in" >"conftest.tmp"
3801: mv "conftest.tmp" "conftest.in"
3802: cp "conftest.in" "conftest.nl"
3803: $as_echo '' >> "conftest.nl"
3804: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 misho 3806: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3807: if test $ac_count -gt ${ac_path_SED_max-0}; then
3808: # Best one so far, save it but keep looking for a better one
3809: ac_cv_path_SED="$ac_path_SED"
3810: ac_path_SED_max=$ac_count
3811: fi
3812: # 10*(2^10) chars as input seems more than enough
3813: test $ac_count -gt 10 && break
3814: done
3815: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816: esac
3817:
3818: $ac_path_SED_found && break 3
3819: done
3820: done
1.1.1.2 misho 3821: done
1.1 misho 3822: IFS=$as_save_IFS
3823: if test -z "$ac_cv_path_SED"; then
1.1.1.2 misho 3824: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.1 misho 3825: fi
3826: else
3827: ac_cv_path_SED=$SED
3828: fi
3829:
3830: fi
1.1.1.2 misho 3831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
1.1 misho 3832: $as_echo "$ac_cv_path_SED" >&6; }
3833: SED="$ac_cv_path_SED"
3834: rm -f conftest.sed
3835:
3836: test -z "$SED" && SED=sed
3837: Xsed="$SED -e 1s/^X//"
3838:
3839:
3840:
3841:
3842:
3843:
3844:
3845:
3846:
3847:
3848:
1.1.1.2 misho 3849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
1.1 misho 3850: $as_echo_n "checking for fgrep... " >&6; }
1.1.1.2 misho 3851: if ${ac_cv_path_FGREP+:} false; then :
1.1 misho 3852: $as_echo_n "(cached) " >&6
3853: else
3854: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3855: then ac_cv_path_FGREP="$GREP -F"
3856: else
3857: if test -z "$FGREP"; then
3858: ac_path_FGREP_found=false
3859: # Loop through the user's path and test for each of PROGNAME-LIST
3860: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3862: do
3863: IFS=$as_save_IFS
3864: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 3865: for ac_prog in fgrep; do
1.1 misho 3866: for ac_exec_ext in '' $ac_executable_extensions; do
3867: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho 3868: as_fn_executable_p "$ac_path_FGREP" || continue
1.1 misho 3869: # Check for GNU ac_path_FGREP and select it if it is found.
3870: # Check for GNU $ac_path_FGREP
3871: case `"$ac_path_FGREP" --version 2>&1` in
3872: *GNU*)
3873: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3874: *)
3875: ac_count=0
3876: $as_echo_n 0123456789 >"conftest.in"
3877: while :
3878: do
3879: cat "conftest.in" "conftest.in" >"conftest.tmp"
3880: mv "conftest.tmp" "conftest.in"
3881: cp "conftest.in" "conftest.nl"
3882: $as_echo 'FGREP' >> "conftest.nl"
3883: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3884: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 misho 3885: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3886: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3887: # Best one so far, save it but keep looking for a better one
3888: ac_cv_path_FGREP="$ac_path_FGREP"
3889: ac_path_FGREP_max=$ac_count
3890: fi
3891: # 10*(2^10) chars as input seems more than enough
3892: test $ac_count -gt 10 && break
3893: done
3894: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3895: esac
3896:
3897: $ac_path_FGREP_found && break 3
3898: done
3899: done
1.1.1.2 misho 3900: done
1.1 misho 3901: IFS=$as_save_IFS
3902: if test -z "$ac_cv_path_FGREP"; then
1.1.1.2 misho 3903: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3904: fi
3905: else
3906: ac_cv_path_FGREP=$FGREP
3907: fi
3908:
3909: fi
3910: fi
1.1.1.2 misho 3911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
1.1 misho 3912: $as_echo "$ac_cv_path_FGREP" >&6; }
3913: FGREP="$ac_cv_path_FGREP"
3914:
3915:
3916: test -z "$GREP" && GREP=grep
3917:
3918:
3919:
3920:
3921:
3922:
3923:
3924:
3925:
3926:
3927:
3928:
3929:
3930:
3931:
3932:
3933:
3934:
3935:
3936: # Check whether --with-gnu-ld was given.
1.1.1.2 misho 3937: if test "${with_gnu_ld+set}" = set; then :
1.1.1.3 ! misho 3938: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
1.1 misho 3939: else
3940: with_gnu_ld=no
3941: fi
3942:
3943: ac_prog=ld
1.1.1.3 ! misho 3944: if test yes = "$GCC"; then
1.1 misho 3945: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.2 misho 3946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
1.1 misho 3947: $as_echo_n "checking for ld used by $CC... " >&6; }
3948: case $host in
3949: *-*-mingw*)
1.1.1.3 ! misho 3950: # gcc leaves a trailing carriage return, which upsets mingw
1.1 misho 3951: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3952: *)
3953: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3954: esac
3955: case $ac_prog in
3956: # Accept absolute paths.
3957: [\\/]* | ?:[\\/]*)
3958: re_direlt='/[^/][^/]*/\.\./'
3959: # Canonicalize the pathname of ld
3960: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3961: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3962: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3963: done
1.1.1.3 ! misho 3964: test -z "$LD" && LD=$ac_prog
1.1 misho 3965: ;;
3966: "")
3967: # If it fails, then pretend we aren't using GCC.
3968: ac_prog=ld
3969: ;;
3970: *)
3971: # If it is relative, then search for the first ld in PATH.
3972: with_gnu_ld=unknown
3973: ;;
3974: esac
1.1.1.3 ! misho 3975: elif test yes = "$with_gnu_ld"; then
1.1.1.2 misho 3976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
1.1 misho 3977: $as_echo_n "checking for GNU ld... " >&6; }
3978: else
1.1.1.2 misho 3979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
1.1 misho 3980: $as_echo_n "checking for non-GNU ld... " >&6; }
3981: fi
1.1.1.2 misho 3982: if ${lt_cv_path_LD+:} false; then :
1.1 misho 3983: $as_echo_n "(cached) " >&6
3984: else
3985: if test -z "$LD"; then
1.1.1.3 ! misho 3986: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 3987: for ac_dir in $PATH; do
1.1.1.3 ! misho 3988: IFS=$lt_save_ifs
1.1 misho 3989: test -z "$ac_dir" && ac_dir=.
3990: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.1.1.3 ! misho 3991: lt_cv_path_LD=$ac_dir/$ac_prog
1.1 misho 3992: # Check to see if the program is GNU ld. I'd rather use --version,
3993: # but apparently some variants of GNU ld only accept -v.
3994: # Break only if it was the GNU/non-GNU ld that we prefer.
3995: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3996: *GNU* | *'with BFD'*)
1.1.1.3 ! misho 3997: test no != "$with_gnu_ld" && break
1.1 misho 3998: ;;
3999: *)
1.1.1.3 ! misho 4000: test yes != "$with_gnu_ld" && break
1.1 misho 4001: ;;
4002: esac
4003: fi
4004: done
1.1.1.3 ! misho 4005: IFS=$lt_save_ifs
1.1 misho 4006: else
1.1.1.3 ! misho 4007: lt_cv_path_LD=$LD # Let the user override the test with a path.
1.1 misho 4008: fi
4009: fi
4010:
1.1.1.3 ! misho 4011: LD=$lt_cv_path_LD
1.1 misho 4012: if test -n "$LD"; then
1.1.1.2 misho 4013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
1.1 misho 4014: $as_echo "$LD" >&6; }
4015: else
1.1.1.2 misho 4016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4017: $as_echo "no" >&6; }
4018: fi
1.1.1.2 misho 4019: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
1.1 misho 4021: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.1.1.2 misho 4022: if ${lt_cv_prog_gnu_ld+:} false; then :
1.1 misho 4023: $as_echo_n "(cached) " >&6
4024: else
4025: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4026: case `$LD -v 2>&1 </dev/null` in
4027: *GNU* | *'with BFD'*)
4028: lt_cv_prog_gnu_ld=yes
4029: ;;
4030: *)
4031: lt_cv_prog_gnu_ld=no
4032: ;;
4033: esac
4034: fi
1.1.1.2 misho 4035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
1.1 misho 4036: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4037: with_gnu_ld=$lt_cv_prog_gnu_ld
4038:
4039:
4040:
4041:
4042:
4043:
4044:
4045:
4046:
1.1.1.2 misho 4047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
1.1 misho 4048: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
1.1.1.2 misho 4049: if ${lt_cv_path_NM+:} false; then :
1.1 misho 4050: $as_echo_n "(cached) " >&6
4051: else
4052: if test -n "$NM"; then
4053: # Let the user override the test.
1.1.1.3 ! misho 4054: lt_cv_path_NM=$NM
1.1 misho 4055: else
1.1.1.3 ! misho 4056: lt_nm_to_check=${ac_tool_prefix}nm
1.1 misho 4057: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4058: lt_nm_to_check="$lt_nm_to_check nm"
4059: fi
4060: for lt_tmp_nm in $lt_nm_to_check; do
1.1.1.3 ! misho 4061: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 4062: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1.1.1.3 ! misho 4063: IFS=$lt_save_ifs
1.1 misho 4064: test -z "$ac_dir" && ac_dir=.
1.1.1.3 ! misho 4065: tmp_nm=$ac_dir/$lt_tmp_nm
! 4066: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
1.1 misho 4067: # Check to see if the nm accepts a BSD-compat flag.
1.1.1.3 ! misho 4068: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
1.1 misho 4069: # nm: unknown option "B" ignored
4070: # Tru64's nm complains that /dev/null is an invalid object file
1.1.1.3 ! misho 4071: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
! 4072: case $build_os in
! 4073: mingw*) lt_bad_file=conftest.nm/nofile ;;
! 4074: *) lt_bad_file=/dev/null ;;
! 4075: esac
! 4076: case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
! 4077: *$lt_bad_file* | *'Invalid file or object type'*)
1.1 misho 4078: lt_cv_path_NM="$tmp_nm -B"
1.1.1.3 ! misho 4079: break 2
1.1 misho 4080: ;;
4081: *)
4082: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4083: */dev/null*)
4084: lt_cv_path_NM="$tmp_nm -p"
1.1.1.3 ! misho 4085: break 2
1.1 misho 4086: ;;
4087: *)
4088: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4089: continue # so that we can try to find one that supports BSD flags
4090: ;;
4091: esac
4092: ;;
4093: esac
4094: fi
4095: done
1.1.1.3 ! misho 4096: IFS=$lt_save_ifs
1.1 misho 4097: done
4098: : ${lt_cv_path_NM=no}
4099: fi
4100: fi
1.1.1.2 misho 4101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
1.1 misho 4102: $as_echo "$lt_cv_path_NM" >&6; }
1.1.1.3 ! misho 4103: if test no != "$lt_cv_path_NM"; then
! 4104: NM=$lt_cv_path_NM
1.1 misho 4105: else
4106: # Didn't find any BSD compatible name lister, look for dumpbin.
1.1.1.2 misho 4107: if test -n "$DUMPBIN"; then :
4108: # Let the user override the test.
4109: else
4110: if test -n "$ac_tool_prefix"; then
4111: for ac_prog in dumpbin "link -dump"
1.1 misho 4112: do
4113: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4114: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.2 misho 4115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4116: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4117: if ${ac_cv_prog_DUMPBIN+:} false; then :
1.1 misho 4118: $as_echo_n "(cached) " >&6
4119: else
4120: if test -n "$DUMPBIN"; then
4121: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4122: else
4123: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124: for as_dir in $PATH
4125: do
4126: IFS=$as_save_IFS
4127: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 4128: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4129: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4130: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.1.1.2 misho 4131: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4132: break 2
4133: fi
4134: done
1.1.1.2 misho 4135: done
1.1 misho 4136: IFS=$as_save_IFS
4137:
4138: fi
4139: fi
4140: DUMPBIN=$ac_cv_prog_DUMPBIN
4141: if test -n "$DUMPBIN"; then
1.1.1.2 misho 4142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
1.1 misho 4143: $as_echo "$DUMPBIN" >&6; }
4144: else
1.1.1.2 misho 4145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4146: $as_echo "no" >&6; }
4147: fi
4148:
4149:
4150: test -n "$DUMPBIN" && break
4151: done
4152: fi
4153: if test -z "$DUMPBIN"; then
4154: ac_ct_DUMPBIN=$DUMPBIN
1.1.1.2 misho 4155: for ac_prog in dumpbin "link -dump"
1.1 misho 4156: do
4157: # Extract the first word of "$ac_prog", so it can be a program name with args.
4158: set dummy $ac_prog; ac_word=$2
1.1.1.2 misho 4159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4160: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4161: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
1.1 misho 4162: $as_echo_n "(cached) " >&6
4163: else
4164: if test -n "$ac_ct_DUMPBIN"; then
4165: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4166: else
4167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168: for as_dir in $PATH
4169: do
4170: IFS=$as_save_IFS
4171: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 4172: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4173: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4174: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.1.1.2 misho 4175: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4176: break 2
4177: fi
4178: done
1.1.1.2 misho 4179: done
1.1 misho 4180: IFS=$as_save_IFS
4181:
4182: fi
4183: fi
4184: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4185: if test -n "$ac_ct_DUMPBIN"; then
1.1.1.2 misho 4186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
1.1 misho 4187: $as_echo "$ac_ct_DUMPBIN" >&6; }
4188: else
1.1.1.2 misho 4189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4190: $as_echo "no" >&6; }
4191: fi
4192:
4193:
4194: test -n "$ac_ct_DUMPBIN" && break
4195: done
4196:
4197: if test "x$ac_ct_DUMPBIN" = x; then
4198: DUMPBIN=":"
4199: else
4200: case $cross_compiling:$ac_tool_warned in
4201: yes:)
1.1.1.2 misho 4202: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 4203: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204: ac_tool_warned=yes ;;
4205: esac
4206: DUMPBIN=$ac_ct_DUMPBIN
4207: fi
4208: fi
4209:
1.1.1.3 ! misho 4210: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
1.1.1.2 misho 4211: *COFF*)
1.1.1.3 ! misho 4212: DUMPBIN="$DUMPBIN -symbols -headers"
1.1.1.2 misho 4213: ;;
4214: *)
4215: DUMPBIN=:
4216: ;;
4217: esac
4218: fi
1.1 misho 4219:
1.1.1.3 ! misho 4220: if test : != "$DUMPBIN"; then
! 4221: NM=$DUMPBIN
1.1 misho 4222: fi
4223: fi
4224: test -z "$NM" && NM=nm
4225:
4226:
4227:
4228:
4229:
4230:
1.1.1.2 misho 4231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
1.1 misho 4232: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
1.1.1.2 misho 4233: if ${lt_cv_nm_interface+:} false; then :
1.1 misho 4234: $as_echo_n "(cached) " >&6
4235: else
4236: lt_cv_nm_interface="BSD nm"
4237: echo "int some_variable = 0;" > conftest.$ac_ext
1.1.1.2 misho 4238: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1.1 misho 4239: (eval "$ac_compile" 2>conftest.err)
4240: cat conftest.err >&5
1.1.1.2 misho 4241: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1.1 misho 4242: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4243: cat conftest.err >&5
1.1.1.2 misho 4244: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1.1 misho 4245: cat conftest.out >&5
4246: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4247: lt_cv_nm_interface="MS dumpbin"
4248: fi
4249: rm -f conftest*
4250: fi
1.1.1.2 misho 4251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
1.1 misho 4252: $as_echo "$lt_cv_nm_interface" >&6; }
4253:
1.1.1.2 misho 4254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
1.1 misho 4255: $as_echo_n "checking whether ln -s works... " >&6; }
4256: LN_S=$as_ln_s
4257: if test "$LN_S" = "ln -s"; then
1.1.1.2 misho 4258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 4259: $as_echo "yes" >&6; }
4260: else
1.1.1.2 misho 4261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
1.1 misho 4262: $as_echo "no, using $LN_S" >&6; }
4263: fi
4264:
4265: # find the maximum length of command line arguments
1.1.1.2 misho 4266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
1.1 misho 4267: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
1.1.1.2 misho 4268: if ${lt_cv_sys_max_cmd_len+:} false; then :
1.1 misho 4269: $as_echo_n "(cached) " >&6
4270: else
4271: i=0
1.1.1.3 ! misho 4272: teststring=ABCD
1.1 misho 4273:
4274: case $build_os in
4275: msdosdjgpp*)
4276: # On DJGPP, this test can blow up pretty badly due to problems in libc
4277: # (any single argument exceeding 2000 bytes causes a buffer overrun
4278: # during glob expansion). Even if it were fixed, the result of this
4279: # check would be larger than it should be.
4280: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4281: ;;
4282:
4283: gnu*)
4284: # Under GNU Hurd, this test is not required because there is
4285: # no limit to the length of command line arguments.
4286: # Libtool will interpret -1 as no limit whatsoever
4287: lt_cv_sys_max_cmd_len=-1;
4288: ;;
4289:
4290: cygwin* | mingw* | cegcc*)
4291: # On Win9x/ME, this test blows up -- it succeeds, but takes
4292: # about 5 minutes as the teststring grows exponentially.
4293: # Worse, since 9x/ME are not pre-emptively multitasking,
4294: # you end up with a "frozen" computer, even though with patience
4295: # the test eventually succeeds (with a max line length of 256k).
4296: # Instead, let's just punt: use the minimum linelength reported by
4297: # all of the supported platforms: 8192 (on NT/2K/XP).
4298: lt_cv_sys_max_cmd_len=8192;
4299: ;;
4300:
1.1.1.2 misho 4301: mint*)
4302: # On MiNT this can take a long time and run out of memory.
4303: lt_cv_sys_max_cmd_len=8192;
4304: ;;
4305:
1.1 misho 4306: amigaos*)
4307: # On AmigaOS with pdksh, this test takes hours, literally.
4308: # So we just punt and use a minimum line length of 8192.
4309: lt_cv_sys_max_cmd_len=8192;
4310: ;;
4311:
1.1.1.3 ! misho 4312: bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1.1 misho 4313: # This has been around since 386BSD, at least. Likely further.
4314: if test -x /sbin/sysctl; then
4315: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4316: elif test -x /usr/sbin/sysctl; then
4317: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4318: else
4319: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4320: fi
4321: # And add a safety zone
4322: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4323: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4324: ;;
4325:
4326: interix*)
4327: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4328: lt_cv_sys_max_cmd_len=196608
4329: ;;
4330:
1.1.1.3 ! misho 4331: os2*)
! 4332: # The test takes a long time on OS/2.
! 4333: lt_cv_sys_max_cmd_len=8192
! 4334: ;;
! 4335:
1.1 misho 4336: osf*)
4337: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4338: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4339: # nice to cause kernel panics so lets avoid the loop below.
4340: # First set a reasonable default.
4341: lt_cv_sys_max_cmd_len=16384
4342: #
4343: if test -x /sbin/sysconfig; then
4344: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4345: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4346: esac
4347: fi
4348: ;;
4349: sco3.2v5*)
4350: lt_cv_sys_max_cmd_len=102400
4351: ;;
4352: sysv5* | sco5v6* | sysv4.2uw2*)
4353: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4354: if test -n "$kargmax"; then
4355: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4356: else
4357: lt_cv_sys_max_cmd_len=32768
4358: fi
4359: ;;
4360: *)
4361: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1.1.1.3 ! misho 4362: if test -n "$lt_cv_sys_max_cmd_len" && \
! 4363: test undefined != "$lt_cv_sys_max_cmd_len"; then
1.1 misho 4364: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4365: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4366: else
4367: # Make teststring a little bigger before we do anything with it.
4368: # a 1K string should be a reasonable start.
1.1.1.3 ! misho 4369: for i in 1 2 3 4 5 6 7 8; do
1.1 misho 4370: teststring=$teststring$teststring
4371: done
4372: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4373: # If test is not a shell built-in, we'll probably end up computing a
4374: # maximum length that is only half of the actual maximum length, but
4375: # we can't tell.
1.1.1.3 ! misho 4376: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1.1.1.2 misho 4377: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.1.1.3 ! misho 4378: test 17 != "$i" # 1/2 MB should be enough
1.1 misho 4379: do
4380: i=`expr $i + 1`
4381: teststring=$teststring$teststring
4382: done
4383: # Only check the string length outside the loop.
4384: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4385: teststring=
4386: # Add a significant safety factor because C++ compilers can tack on
4387: # massive amounts of additional arguments before passing them to the
4388: # linker. It appears as though 1/2 is a usable value.
4389: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4390: fi
4391: ;;
4392: esac
4393:
4394: fi
4395:
1.1.1.3 ! misho 4396: if test -n "$lt_cv_sys_max_cmd_len"; then
1.1.1.2 misho 4397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
1.1 misho 4398: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4399: else
1.1.1.2 misho 4400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
1.1 misho 4401: $as_echo "none" >&6; }
4402: fi
4403: max_cmd_len=$lt_cv_sys_max_cmd_len
4404:
4405:
4406:
4407:
4408:
4409:
4410: : ${CP="cp -f"}
4411: : ${MV="mv -f"}
4412: : ${RM="rm -f"}
4413:
4414: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4415: lt_unset=unset
4416: else
4417: lt_unset=false
4418: fi
4419:
4420:
4421:
4422:
4423:
4424: # test EBCDIC or ASCII
4425: case `echo X|tr X '\101'` in
4426: A) # ASCII based system
4427: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4428: lt_SP2NL='tr \040 \012'
4429: lt_NL2SP='tr \015\012 \040\040'
4430: ;;
4431: *) # EBCDIC based system
4432: lt_SP2NL='tr \100 \n'
4433: lt_NL2SP='tr \r\n \100\100'
4434: ;;
4435: esac
4436:
4437:
4438:
4439:
4440:
4441:
4442:
4443:
4444:
1.1.1.2 misho 4445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4446: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4447: if ${lt_cv_to_host_file_cmd+:} false; then :
4448: $as_echo_n "(cached) " >&6
4449: else
4450: case $host in
4451: *-*-mingw* )
4452: case $build in
4453: *-*-mingw* ) # actually msys
4454: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4455: ;;
4456: *-*-cygwin* )
4457: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4458: ;;
4459: * ) # otherwise, assume *nix
4460: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4461: ;;
4462: esac
4463: ;;
4464: *-*-cygwin* )
4465: case $build in
4466: *-*-mingw* ) # actually msys
4467: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4468: ;;
4469: *-*-cygwin* )
4470: lt_cv_to_host_file_cmd=func_convert_file_noop
4471: ;;
4472: * ) # otherwise, assume *nix
4473: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4474: ;;
4475: esac
4476: ;;
4477: * ) # unhandled hosts (and "normal" native builds)
4478: lt_cv_to_host_file_cmd=func_convert_file_noop
4479: ;;
4480: esac
4481:
4482: fi
4483:
4484: to_host_file_cmd=$lt_cv_to_host_file_cmd
4485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4486: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4487:
4488:
4489:
4490:
4491:
4492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4493: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4494: if ${lt_cv_to_tool_file_cmd+:} false; then :
4495: $as_echo_n "(cached) " >&6
4496: else
4497: #assume ordinary cross tools, or native build.
4498: lt_cv_to_tool_file_cmd=func_convert_file_noop
4499: case $host in
4500: *-*-mingw* )
4501: case $build in
4502: *-*-mingw* ) # actually msys
4503: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4504: ;;
4505: esac
4506: ;;
4507: esac
4508:
4509: fi
4510:
4511: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4513: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4514:
4515:
4516:
4517:
4518:
4519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
1.1 misho 4520: $as_echo_n "checking for $LD option to reload object files... " >&6; }
1.1.1.2 misho 4521: if ${lt_cv_ld_reload_flag+:} false; then :
1.1 misho 4522: $as_echo_n "(cached) " >&6
4523: else
4524: lt_cv_ld_reload_flag='-r'
4525: fi
1.1.1.2 misho 4526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
1.1 misho 4527: $as_echo "$lt_cv_ld_reload_flag" >&6; }
4528: reload_flag=$lt_cv_ld_reload_flag
4529: case $reload_flag in
4530: "" | " "*) ;;
4531: *) reload_flag=" $reload_flag" ;;
4532: esac
4533: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4534: case $host_os in
1.1.1.2 misho 4535: cygwin* | mingw* | pw32* | cegcc*)
1.1.1.3 ! misho 4536: if test yes != "$GCC"; then
1.1.1.2 misho 4537: reload_cmds=false
4538: fi
4539: ;;
1.1 misho 4540: darwin*)
1.1.1.3 ! misho 4541: if test yes = "$GCC"; then
! 4542: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
1.1 misho 4543: else
4544: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4545: fi
4546: ;;
4547: esac
4548:
4549:
4550:
4551:
4552:
4553:
4554:
4555:
4556:
4557: if test -n "$ac_tool_prefix"; then
4558: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4559: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.1.1.2 misho 4560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4561: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4562: if ${ac_cv_prog_OBJDUMP+:} false; then :
1.1 misho 4563: $as_echo_n "(cached) " >&6
4564: else
4565: if test -n "$OBJDUMP"; then
4566: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4567: else
4568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569: for as_dir in $PATH
4570: do
4571: IFS=$as_save_IFS
4572: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 4573: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4574: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4575: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.1.1.2 misho 4576: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4577: break 2
4578: fi
4579: done
1.1.1.2 misho 4580: done
1.1 misho 4581: IFS=$as_save_IFS
4582:
4583: fi
4584: fi
4585: OBJDUMP=$ac_cv_prog_OBJDUMP
4586: if test -n "$OBJDUMP"; then
1.1.1.2 misho 4587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
1.1 misho 4588: $as_echo "$OBJDUMP" >&6; }
4589: else
1.1.1.2 misho 4590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4591: $as_echo "no" >&6; }
4592: fi
4593:
4594:
4595: fi
4596: if test -z "$ac_cv_prog_OBJDUMP"; then
4597: ac_ct_OBJDUMP=$OBJDUMP
4598: # Extract the first word of "objdump", so it can be a program name with args.
4599: set dummy objdump; ac_word=$2
1.1.1.2 misho 4600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4601: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 4602: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1.1 misho 4603: $as_echo_n "(cached) " >&6
4604: else
4605: if test -n "$ac_ct_OBJDUMP"; then
4606: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4607: else
4608: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609: for as_dir in $PATH
4610: do
4611: IFS=$as_save_IFS
4612: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 4613: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4614: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4615: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.1.1.2 misho 4616: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4617: break 2
4618: fi
4619: done
1.1.1.2 misho 4620: done
1.1 misho 4621: IFS=$as_save_IFS
4622:
4623: fi
4624: fi
4625: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4626: if test -n "$ac_ct_OBJDUMP"; then
1.1.1.2 misho 4627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
1.1 misho 4628: $as_echo "$ac_ct_OBJDUMP" >&6; }
4629: else
1.1.1.2 misho 4630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4631: $as_echo "no" >&6; }
4632: fi
4633:
4634: if test "x$ac_ct_OBJDUMP" = x; then
4635: OBJDUMP="false"
4636: else
4637: case $cross_compiling:$ac_tool_warned in
4638: yes:)
1.1.1.2 misho 4639: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 4640: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641: ac_tool_warned=yes ;;
4642: esac
4643: OBJDUMP=$ac_ct_OBJDUMP
4644: fi
4645: else
4646: OBJDUMP="$ac_cv_prog_OBJDUMP"
4647: fi
4648:
4649: test -z "$OBJDUMP" && OBJDUMP=objdump
4650:
4651:
4652:
4653:
4654:
4655:
1.1.1.2 misho 4656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
1.1 misho 4657: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
1.1.1.2 misho 4658: if ${lt_cv_deplibs_check_method+:} false; then :
1.1 misho 4659: $as_echo_n "(cached) " >&6
4660: else
4661: lt_cv_file_magic_cmd='$MAGIC_CMD'
4662: lt_cv_file_magic_test_file=
4663: lt_cv_deplibs_check_method='unknown'
4664: # Need to set the preceding variable on all platforms that support
4665: # interlibrary dependencies.
4666: # 'none' -- dependencies not supported.
1.1.1.3 ! misho 4667: # 'unknown' -- same as none, but documents that we really don't know.
1.1 misho 4668: # 'pass_all' -- all dependencies passed with no checks.
4669: # 'test_compile' -- check by making test program.
4670: # 'file_magic [[regex]]' -- check by looking for files in library path
1.1.1.3 ! misho 4671: # that responds to the $file_magic_cmd with a given extended regex.
! 4672: # If you have 'file' or equivalent on your system and you're not sure
! 4673: # whether 'pass_all' will *always* work, you probably want this one.
1.1 misho 4674:
4675: case $host_os in
4676: aix[4-9]*)
4677: lt_cv_deplibs_check_method=pass_all
4678: ;;
4679:
4680: beos*)
4681: lt_cv_deplibs_check_method=pass_all
4682: ;;
4683:
4684: bsdi[45]*)
4685: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4686: lt_cv_file_magic_cmd='/usr/bin/file -L'
4687: lt_cv_file_magic_test_file=/shlib/libc.so
4688: ;;
4689:
4690: cygwin*)
4691: # func_win32_libid is a shell function defined in ltmain.sh
4692: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4693: lt_cv_file_magic_cmd='func_win32_libid'
4694: ;;
4695:
4696: mingw* | pw32*)
4697: # Base MSYS/MinGW do not provide the 'file' command needed by
4698: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4699: # unless we find 'file', for example because we are cross-compiling.
1.1.1.3 ! misho 4700: if ( file / ) >/dev/null 2>&1; then
1.1 misho 4701: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4702: lt_cv_file_magic_cmd='func_win32_libid'
4703: else
1.1.1.2 misho 4704: # Keep this pattern in sync with the one in func_win32_libid.
4705: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
1.1 misho 4706: lt_cv_file_magic_cmd='$OBJDUMP -f'
4707: fi
4708: ;;
4709:
1.1.1.2 misho 4710: cegcc*)
1.1 misho 4711: # use the weaker test based on 'objdump'. See mingw*.
4712: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4713: lt_cv_file_magic_cmd='$OBJDUMP -f'
4714: ;;
4715:
4716: darwin* | rhapsody*)
4717: lt_cv_deplibs_check_method=pass_all
4718: ;;
4719:
4720: freebsd* | dragonfly*)
4721: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4722: case $host_cpu in
4723: i*86 )
4724: # Not sure whether the presence of OpenBSD here was a mistake.
4725: # Let's accept both of them until this is cleared up.
4726: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4727: lt_cv_file_magic_cmd=/usr/bin/file
4728: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4729: ;;
4730: esac
4731: else
4732: lt_cv_deplibs_check_method=pass_all
4733: fi
4734: ;;
4735:
1.1.1.2 misho 4736: haiku*)
4737: lt_cv_deplibs_check_method=pass_all
4738: ;;
4739:
1.1 misho 4740: hpux10.20* | hpux11*)
4741: lt_cv_file_magic_cmd=/usr/bin/file
4742: case $host_cpu in
4743: ia64*)
4744: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4745: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4746: ;;
4747: hppa*64*)
1.1.1.2 misho 4748: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1.1 misho 4749: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4750: ;;
4751: *)
1.1.1.2 misho 4752: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1.1 misho 4753: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4754: ;;
4755: esac
4756: ;;
4757:
4758: interix[3-9]*)
4759: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4760: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4761: ;;
4762:
4763: irix5* | irix6* | nonstopux*)
4764: case $LD in
4765: *-32|*"-32 ") libmagic=32-bit;;
4766: *-n32|*"-n32 ") libmagic=N32;;
4767: *-64|*"-64 ") libmagic=64-bit;;
4768: *) libmagic=never-match;;
4769: esac
4770: lt_cv_deplibs_check_method=pass_all
4771: ;;
4772:
1.1.1.3 ! misho 4773: # This must be glibc/ELF.
! 4774: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.1 misho 4775: lt_cv_deplibs_check_method=pass_all
4776: ;;
4777:
4778: netbsd*)
4779: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4780: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4781: else
4782: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4783: fi
4784: ;;
4785:
4786: newos6*)
4787: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4788: lt_cv_file_magic_cmd=/usr/bin/file
4789: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4790: ;;
4791:
4792: *nto* | *qnx*)
4793: lt_cv_deplibs_check_method=pass_all
4794: ;;
4795:
1.1.1.3 ! misho 4796: openbsd* | bitrig*)
! 4797: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.1 misho 4798: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4799: else
4800: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4801: fi
4802: ;;
4803:
4804: osf3* | osf4* | osf5*)
4805: lt_cv_deplibs_check_method=pass_all
4806: ;;
4807:
4808: rdos*)
4809: lt_cv_deplibs_check_method=pass_all
4810: ;;
4811:
4812: solaris*)
4813: lt_cv_deplibs_check_method=pass_all
4814: ;;
4815:
4816: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4817: lt_cv_deplibs_check_method=pass_all
4818: ;;
4819:
4820: sysv4 | sysv4.3*)
4821: case $host_vendor in
4822: motorola)
4823: 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]'
4824: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4825: ;;
4826: ncr)
4827: lt_cv_deplibs_check_method=pass_all
4828: ;;
4829: sequent)
4830: lt_cv_file_magic_cmd='/bin/file'
4831: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4832: ;;
4833: sni)
4834: lt_cv_file_magic_cmd='/bin/file'
4835: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4836: lt_cv_file_magic_test_file=/lib/libc.so
4837: ;;
4838: siemens)
4839: lt_cv_deplibs_check_method=pass_all
4840: ;;
4841: pc)
4842: lt_cv_deplibs_check_method=pass_all
4843: ;;
4844: esac
4845: ;;
4846:
4847: tpf*)
4848: lt_cv_deplibs_check_method=pass_all
4849: ;;
1.1.1.3 ! misho 4850: os2*)
! 4851: lt_cv_deplibs_check_method=pass_all
! 4852: ;;
1.1 misho 4853: esac
4854:
4855: fi
1.1.1.2 misho 4856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
1.1 misho 4857: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.1.1.2 misho 4858:
4859: file_magic_glob=
4860: want_nocaseglob=no
4861: if test "$build" = "$host"; then
4862: case $host_os in
4863: mingw* | pw32*)
4864: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4865: want_nocaseglob=yes
4866: else
4867: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4868: fi
4869: ;;
4870: esac
4871: fi
4872:
1.1 misho 4873: file_magic_cmd=$lt_cv_file_magic_cmd
4874: deplibs_check_method=$lt_cv_deplibs_check_method
4875: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4876:
4877:
4878:
4879:
4880:
4881:
4882:
4883:
4884:
4885:
4886:
4887:
1.1.1.2 misho 4888:
4889:
4890:
4891:
4892:
4893:
4894:
4895:
4896:
4897:
4898: if test -n "$ac_tool_prefix"; then
4899: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4900: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902: $as_echo_n "checking for $ac_word... " >&6; }
4903: if ${ac_cv_prog_DLLTOOL+:} false; then :
4904: $as_echo_n "(cached) " >&6
4905: else
4906: if test -n "$DLLTOOL"; then
4907: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4908: else
4909: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910: for as_dir in $PATH
4911: do
4912: IFS=$as_save_IFS
4913: test -z "$as_dir" && as_dir=.
4914: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4915: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 4916: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4917: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918: break 2
4919: fi
4920: done
4921: done
4922: IFS=$as_save_IFS
4923:
4924: fi
4925: fi
4926: DLLTOOL=$ac_cv_prog_DLLTOOL
4927: if test -n "$DLLTOOL"; then
4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4929: $as_echo "$DLLTOOL" >&6; }
4930: else
4931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932: $as_echo "no" >&6; }
4933: fi
4934:
4935:
4936: fi
4937: if test -z "$ac_cv_prog_DLLTOOL"; then
4938: ac_ct_DLLTOOL=$DLLTOOL
4939: # Extract the first word of "dlltool", so it can be a program name with args.
4940: set dummy dlltool; ac_word=$2
4941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942: $as_echo_n "checking for $ac_word... " >&6; }
4943: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4944: $as_echo_n "(cached) " >&6
4945: else
4946: if test -n "$ac_ct_DLLTOOL"; then
4947: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4948: else
4949: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950: for as_dir in $PATH
4951: do
4952: IFS=$as_save_IFS
4953: test -z "$as_dir" && as_dir=.
4954: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 4955: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 4956: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4957: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958: break 2
4959: fi
4960: done
4961: done
4962: IFS=$as_save_IFS
4963:
4964: fi
4965: fi
4966: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4967: if test -n "$ac_ct_DLLTOOL"; then
4968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4969: $as_echo "$ac_ct_DLLTOOL" >&6; }
4970: else
4971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972: $as_echo "no" >&6; }
4973: fi
4974:
4975: if test "x$ac_ct_DLLTOOL" = x; then
4976: DLLTOOL="false"
4977: else
4978: case $cross_compiling:$ac_tool_warned in
4979: yes:)
4980: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4981: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4982: ac_tool_warned=yes ;;
4983: esac
4984: DLLTOOL=$ac_ct_DLLTOOL
4985: fi
4986: else
4987: DLLTOOL="$ac_cv_prog_DLLTOOL"
4988: fi
4989:
4990: test -z "$DLLTOOL" && DLLTOOL=dlltool
4991:
4992:
4993:
4994:
4995:
4996:
4997:
4998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4999: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5000: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5001: $as_echo_n "(cached) " >&6
5002: else
5003: lt_cv_sharedlib_from_linklib_cmd='unknown'
5004:
5005: case $host_os in
5006: cygwin* | mingw* | pw32* | cegcc*)
1.1.1.3 ! misho 5007: # two different shell functions defined in ltmain.sh;
! 5008: # decide which one to use based on capabilities of $DLLTOOL
1.1.1.2 misho 5009: case `$DLLTOOL --help 2>&1` in
5010: *--identify-strict*)
5011: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5012: ;;
5013: *)
5014: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5015: ;;
5016: esac
5017: ;;
5018: *)
5019: # fallback: assume linklib IS sharedlib
1.1.1.3 ! misho 5020: lt_cv_sharedlib_from_linklib_cmd=$ECHO
1.1.1.2 misho 5021: ;;
5022: esac
5023:
5024: fi
5025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5026: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5027: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5028: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5029:
5030:
5031:
5032:
5033:
5034:
5035:
1.1 misho 5036: if test -n "$ac_tool_prefix"; then
1.1.1.2 misho 5037: for ac_prog in ar
5038: do
5039: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5040: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5042: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5043: if ${ac_cv_prog_AR+:} false; then :
1.1 misho 5044: $as_echo_n "(cached) " >&6
5045: else
5046: if test -n "$AR"; then
5047: ac_cv_prog_AR="$AR" # Let the user override the test.
5048: else
5049: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050: for as_dir in $PATH
5051: do
5052: IFS=$as_save_IFS
5053: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 5054: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5055: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 5056: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5057: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5058: break 2
5059: fi
5060: done
1.1.1.2 misho 5061: done
1.1 misho 5062: IFS=$as_save_IFS
5063:
5064: fi
5065: fi
5066: AR=$ac_cv_prog_AR
5067: if test -n "$AR"; then
1.1.1.2 misho 5068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
1.1 misho 5069: $as_echo "$AR" >&6; }
5070: else
1.1.1.2 misho 5071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5072: $as_echo "no" >&6; }
5073: fi
5074:
5075:
1.1.1.2 misho 5076: test -n "$AR" && break
5077: done
1.1 misho 5078: fi
1.1.1.2 misho 5079: if test -z "$AR"; then
1.1 misho 5080: ac_ct_AR=$AR
1.1.1.2 misho 5081: for ac_prog in ar
5082: do
5083: # Extract the first word of "$ac_prog", so it can be a program name with args.
5084: set dummy $ac_prog; ac_word=$2
5085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5086: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5087: if ${ac_cv_prog_ac_ct_AR+:} false; then :
1.1 misho 5088: $as_echo_n "(cached) " >&6
5089: else
5090: if test -n "$ac_ct_AR"; then
5091: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5092: else
5093: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094: for as_dir in $PATH
5095: do
5096: IFS=$as_save_IFS
5097: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 5098: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5099: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 5100: ac_cv_prog_ac_ct_AR="$ac_prog"
5101: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5102: break 2
5103: fi
5104: done
1.1.1.2 misho 5105: done
1.1 misho 5106: IFS=$as_save_IFS
5107:
5108: fi
5109: fi
5110: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5111: if test -n "$ac_ct_AR"; then
1.1.1.2 misho 5112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
1.1 misho 5113: $as_echo "$ac_ct_AR" >&6; }
5114: else
1.1.1.2 misho 5115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5116: $as_echo "no" >&6; }
5117: fi
5118:
1.1.1.2 misho 5119:
5120: test -n "$ac_ct_AR" && break
5121: done
5122:
1.1 misho 5123: if test "x$ac_ct_AR" = x; then
5124: AR="false"
5125: else
5126: case $cross_compiling:$ac_tool_warned in
5127: yes:)
1.1.1.2 misho 5128: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 5129: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130: ac_tool_warned=yes ;;
5131: esac
5132: AR=$ac_ct_AR
5133: fi
5134: fi
5135:
1.1.1.2 misho 5136: : ${AR=ar}
5137: : ${AR_FLAGS=cru}
5138:
5139:
5140:
1.1 misho 5141:
5142:
5143:
5144:
5145:
5146:
5147:
5148:
1.1.1.2 misho 5149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5150: $as_echo_n "checking for archiver @FILE support... " >&6; }
5151: if ${lt_cv_ar_at_file+:} false; then :
5152: $as_echo_n "(cached) " >&6
5153: else
5154: lt_cv_ar_at_file=no
5155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156: /* end confdefs.h. */
5157:
5158: int
5159: main ()
5160: {
5161:
5162: ;
5163: return 0;
5164: }
5165: _ACEOF
5166: if ac_fn_c_try_compile "$LINENO"; then :
5167: echo conftest.$ac_objext > conftest.lst
5168: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5169: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5170: (eval $lt_ar_try) 2>&5
5171: ac_status=$?
5172: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173: test $ac_status = 0; }
1.1.1.3 ! misho 5174: if test 0 -eq "$ac_status"; then
1.1.1.2 misho 5175: # Ensure the archiver fails upon bogus file names.
5176: rm -f conftest.$ac_objext libconftest.a
5177: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5178: (eval $lt_ar_try) 2>&5
5179: ac_status=$?
5180: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181: test $ac_status = 0; }
1.1.1.3 ! misho 5182: if test 0 -ne "$ac_status"; then
1.1.1.2 misho 5183: lt_cv_ar_at_file=@
5184: fi
5185: fi
5186: rm -f conftest.* libconftest.a
5187:
5188: fi
5189: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190:
5191: fi
5192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5193: $as_echo "$lt_cv_ar_at_file" >&6; }
5194:
1.1.1.3 ! misho 5195: if test no = "$lt_cv_ar_at_file"; then
1.1.1.2 misho 5196: archiver_list_spec=
5197: else
5198: archiver_list_spec=$lt_cv_ar_at_file
5199: fi
5200:
5201:
5202:
5203:
1.1 misho 5204:
5205:
5206:
5207: if test -n "$ac_tool_prefix"; then
5208: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5209: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.2 misho 5210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5211: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5212: if ${ac_cv_prog_STRIP+:} false; then :
1.1 misho 5213: $as_echo_n "(cached) " >&6
5214: else
5215: if test -n "$STRIP"; then
5216: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5217: else
5218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219: for as_dir in $PATH
5220: do
5221: IFS=$as_save_IFS
5222: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 5223: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5224: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5225: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.1.1.2 misho 5226: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5227: break 2
5228: fi
5229: done
1.1.1.2 misho 5230: done
1.1 misho 5231: IFS=$as_save_IFS
5232:
5233: fi
5234: fi
5235: STRIP=$ac_cv_prog_STRIP
5236: if test -n "$STRIP"; then
1.1.1.2 misho 5237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
1.1 misho 5238: $as_echo "$STRIP" >&6; }
5239: else
1.1.1.2 misho 5240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5241: $as_echo "no" >&6; }
5242: fi
5243:
5244:
5245: fi
5246: if test -z "$ac_cv_prog_STRIP"; then
5247: ac_ct_STRIP=$STRIP
5248: # Extract the first word of "strip", so it can be a program name with args.
5249: set dummy strip; ac_word=$2
1.1.1.2 misho 5250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5251: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5252: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.1 misho 5253: $as_echo_n "(cached) " >&6
5254: else
5255: if test -n "$ac_ct_STRIP"; then
5256: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5257: else
5258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259: for as_dir in $PATH
5260: do
5261: IFS=$as_save_IFS
5262: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 5263: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5264: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5265: ac_cv_prog_ac_ct_STRIP="strip"
1.1.1.2 misho 5266: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5267: break 2
5268: fi
5269: done
1.1.1.2 misho 5270: done
1.1 misho 5271: IFS=$as_save_IFS
5272:
5273: fi
5274: fi
5275: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5276: if test -n "$ac_ct_STRIP"; then
1.1.1.2 misho 5277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
1.1 misho 5278: $as_echo "$ac_ct_STRIP" >&6; }
5279: else
1.1.1.2 misho 5280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5281: $as_echo "no" >&6; }
5282: fi
5283:
5284: if test "x$ac_ct_STRIP" = x; then
5285: STRIP=":"
5286: else
5287: case $cross_compiling:$ac_tool_warned in
5288: yes:)
1.1.1.2 misho 5289: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 5290: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291: ac_tool_warned=yes ;;
5292: esac
5293: STRIP=$ac_ct_STRIP
5294: fi
5295: else
5296: STRIP="$ac_cv_prog_STRIP"
5297: fi
5298:
5299: test -z "$STRIP" && STRIP=:
5300:
5301:
5302:
5303:
5304:
5305:
5306: if test -n "$ac_tool_prefix"; then
5307: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5308: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.2 misho 5309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5310: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5311: if ${ac_cv_prog_RANLIB+:} false; then :
1.1 misho 5312: $as_echo_n "(cached) " >&6
5313: else
5314: if test -n "$RANLIB"; then
5315: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5316: else
5317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318: for as_dir in $PATH
5319: do
5320: IFS=$as_save_IFS
5321: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 5322: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5323: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5324: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1.1.2 misho 5325: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5326: break 2
5327: fi
5328: done
1.1.1.2 misho 5329: done
1.1 misho 5330: IFS=$as_save_IFS
5331:
5332: fi
5333: fi
5334: RANLIB=$ac_cv_prog_RANLIB
5335: if test -n "$RANLIB"; then
1.1.1.2 misho 5336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
1.1 misho 5337: $as_echo "$RANLIB" >&6; }
5338: else
1.1.1.2 misho 5339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5340: $as_echo "no" >&6; }
5341: fi
5342:
5343:
5344: fi
5345: if test -z "$ac_cv_prog_RANLIB"; then
5346: ac_ct_RANLIB=$RANLIB
5347: # Extract the first word of "ranlib", so it can be a program name with args.
5348: set dummy ranlib; ac_word=$2
1.1.1.2 misho 5349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5350: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 5351: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.1 misho 5352: $as_echo_n "(cached) " >&6
5353: else
5354: if test -n "$ac_ct_RANLIB"; then
5355: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356: else
5357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358: for as_dir in $PATH
5359: do
5360: IFS=$as_save_IFS
5361: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 5362: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5363: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 5364: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.1.1.2 misho 5365: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5366: break 2
5367: fi
5368: done
1.1.1.2 misho 5369: done
1.1 misho 5370: IFS=$as_save_IFS
5371:
5372: fi
5373: fi
5374: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5375: if test -n "$ac_ct_RANLIB"; then
1.1.1.2 misho 5376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
1.1 misho 5377: $as_echo "$ac_ct_RANLIB" >&6; }
5378: else
1.1.1.2 misho 5379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5380: $as_echo "no" >&6; }
5381: fi
5382:
5383: if test "x$ac_ct_RANLIB" = x; then
5384: RANLIB=":"
5385: else
5386: case $cross_compiling:$ac_tool_warned in
5387: yes:)
1.1.1.2 misho 5388: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 5389: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390: ac_tool_warned=yes ;;
5391: esac
5392: RANLIB=$ac_ct_RANLIB
5393: fi
5394: else
5395: RANLIB="$ac_cv_prog_RANLIB"
5396: fi
5397:
5398: test -z "$RANLIB" && RANLIB=:
5399:
5400:
5401:
5402:
5403:
5404:
5405: # Determine commands to create old-style static archives.
5406: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5407: old_postinstall_cmds='chmod 644 $oldlib'
5408: old_postuninstall_cmds=
5409:
5410: if test -n "$RANLIB"; then
5411: case $host_os in
1.1.1.3 ! misho 5412: bitrig* | openbsd*)
! 5413: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misho 5414: ;;
5415: *)
1.1.1.3 ! misho 5416: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 5417: ;;
5418: esac
1.1.1.3 ! misho 5419: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 5420: fi
5421:
1.1.1.2 misho 5422: case $host_os in
5423: darwin*)
5424: lock_old_archive_extraction=yes ;;
5425: *)
5426: lock_old_archive_extraction=no ;;
5427: esac
5428:
5429:
5430:
5431:
5432:
5433:
1.1 misho 5434:
5435:
5436:
5437:
5438:
5439:
5440:
5441:
5442:
5443:
5444:
5445:
5446:
5447:
5448:
1.1.1.2 misho 5449: for ac_prog in gawk mawk nawk awk
5450: do
5451: # Extract the first word of "$ac_prog", so it can be a program name with args.
5452: set dummy $ac_prog; ac_word=$2
5453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454: $as_echo_n "checking for $ac_word... " >&6; }
5455: if ${ac_cv_prog_AWK+:} false; then :
5456: $as_echo_n "(cached) " >&6
5457: else
5458: if test -n "$AWK"; then
5459: ac_cv_prog_AWK="$AWK" # Let the user override the test.
5460: else
5461: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462: for as_dir in $PATH
5463: do
5464: IFS=$as_save_IFS
5465: test -z "$as_dir" && as_dir=.
5466: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 5467: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 5468: ac_cv_prog_AWK="$ac_prog"
5469: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470: break 2
5471: fi
5472: done
5473: done
5474: IFS=$as_save_IFS
5475:
5476: fi
5477: fi
5478: AWK=$ac_cv_prog_AWK
5479: if test -n "$AWK"; then
5480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5481: $as_echo "$AWK" >&6; }
5482: else
5483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484: $as_echo "no" >&6; }
5485: fi
5486:
5487:
5488: test -n "$AWK" && break
5489: done
5490:
1.1 misho 5491:
5492:
5493:
5494:
5495:
5496:
5497:
5498:
5499:
5500:
5501:
5502:
5503:
5504:
5505:
5506:
5507:
5508:
5509: # If no C compiler was specified, use CC.
5510: LTCC=${LTCC-"$CC"}
5511:
5512: # If no C compiler flags were specified, use CFLAGS.
5513: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5514:
5515: # Allow CC to be a program name with arguments.
5516: compiler=$CC
5517:
5518:
5519: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.1.1.2 misho 5520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
1.1 misho 5521: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
1.1.1.2 misho 5522: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
1.1 misho 5523: $as_echo_n "(cached) " >&6
5524: else
5525:
5526: # These are sane defaults that work on at least a few old systems.
5527: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5528:
5529: # Character class describing NM global symbol codes.
5530: symcode='[BCDEGRST]'
5531:
5532: # Regexp to match symbols that can be accessed directly from C.
5533: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5534:
5535: # Define system-specific variables.
5536: case $host_os in
5537: aix*)
5538: symcode='[BCDT]'
5539: ;;
5540: cygwin* | mingw* | pw32* | cegcc*)
5541: symcode='[ABCDGISTW]'
5542: ;;
5543: hpux*)
1.1.1.3 ! misho 5544: if test ia64 = "$host_cpu"; then
1.1 misho 5545: symcode='[ABCDEGRST]'
5546: fi
5547: ;;
5548: irix* | nonstopux*)
5549: symcode='[BCDEGRST]'
5550: ;;
5551: osf*)
5552: symcode='[BCDEGQRST]'
5553: ;;
5554: solaris*)
5555: symcode='[BDRT]'
5556: ;;
5557: sco3.2v5*)
5558: symcode='[DT]'
5559: ;;
5560: sysv4.2uw2*)
5561: symcode='[DT]'
5562: ;;
5563: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5564: symcode='[ABDT]'
5565: ;;
5566: sysv4)
5567: symcode='[DFNSTU]'
5568: ;;
5569: esac
5570:
5571: # If we're using GNU nm, then use its standard symbol codes.
5572: case `$NM -V 2>&1` in
5573: *GNU* | *'with BFD'*)
5574: symcode='[ABCDGIRSTW]' ;;
5575: esac
5576:
1.1.1.3 ! misho 5577: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
! 5578: # Gets list of data symbols to import.
! 5579: lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
! 5580: # Adjust the below global symbol transforms to fixup imported variables.
! 5581: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
! 5582: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
! 5583: lt_c_name_lib_hook="\
! 5584: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
! 5585: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
! 5586: else
! 5587: # Disable hooks by default.
! 5588: lt_cv_sys_global_symbol_to_import=
! 5589: lt_cdecl_hook=
! 5590: lt_c_name_hook=
! 5591: lt_c_name_lib_hook=
! 5592: fi
! 5593:
1.1 misho 5594: # Transform an extracted symbol line into a proper C declaration.
5595: # Some systems (esp. on ia64) link data and code symbols differently,
5596: # so use this general approach.
1.1.1.3 ! misho 5597: lt_cv_sys_global_symbol_to_cdecl="sed -n"\
! 5598: $lt_cdecl_hook\
! 5599: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
! 5600: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
1.1 misho 5601:
5602: # Transform an extracted symbol line into symbol name and symbol address
1.1.1.3 ! misho 5603: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
! 5604: $lt_c_name_hook\
! 5605: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
! 5606: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
! 5607:
! 5608: # Transform an extracted symbol line into symbol name with lib prefix and
! 5609: # symbol address.
! 5610: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
! 5611: $lt_c_name_lib_hook\
! 5612: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
! 5613: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
! 5614: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
1.1 misho 5615:
5616: # Handle CRLF in mingw tool chain
5617: opt_cr=
5618: case $build_os in
5619: mingw*)
5620: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5621: ;;
5622: esac
5623:
5624: # Try without a prefix underscore, then with it.
5625: for ac_symprfx in "" "_"; do
5626:
5627: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5628: symxfrm="\\1 $ac_symprfx\\2 \\2"
5629:
5630: # Write the raw and C identifiers.
5631: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
1.1.1.3 ! misho 5632: # Fake it for dumpbin and say T for any non-static function,
! 5633: # D for any global variable and I for any imported variable.
1.1 misho 5634: # Also find C++ and __fastcall symbols from MSVC++,
5635: # which start with @ or ?.
5636: lt_cv_sys_global_symbol_pipe="$AWK '"\
5637: " {last_section=section; section=\$ 3};"\
1.1.1.3 ! misho 5638: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
1.1 misho 5639: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
1.1.1.3 ! misho 5640: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
! 5641: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
! 5642: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
1.1 misho 5643: " \$ 0!~/External *\|/{next};"\
5644: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5645: " {if(hide[section]) next};"\
1.1.1.3 ! misho 5646: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
! 5647: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
! 5648: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
! 5649: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
1.1 misho 5650: " ' prfx=^$ac_symprfx"
5651: else
5652: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5653: fi
1.1.1.2 misho 5654: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.1 misho 5655:
5656: # Check to see that the pipe works correctly.
5657: pipe_works=no
5658:
5659: rm -f conftest*
5660: cat > conftest.$ac_ext <<_LT_EOF
5661: #ifdef __cplusplus
5662: extern "C" {
5663: #endif
5664: char nm_test_var;
5665: void nm_test_func(void);
5666: void nm_test_func(void){}
5667: #ifdef __cplusplus
5668: }
5669: #endif
5670: int main(){nm_test_var='a';nm_test_func();return(0);}
5671: _LT_EOF
5672:
1.1.1.2 misho 5673: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 5674: (eval $ac_compile) 2>&5
5675: ac_status=$?
1.1.1.2 misho 5676: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677: test $ac_status = 0; }; then
1.1 misho 5678: # Now try to grab the symbols.
5679: nlist=conftest.nm
1.1.1.2 misho 5680: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5681: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misho 5682: ac_status=$?
1.1.1.2 misho 5683: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684: test $ac_status = 0; } && test -s "$nlist"; then
1.1 misho 5685: # Try sorting and uniquifying the output.
5686: if sort "$nlist" | uniq > "$nlist"T; then
5687: mv -f "$nlist"T "$nlist"
5688: else
5689: rm -f "$nlist"T
5690: fi
5691:
5692: # Make sure that we snagged all the symbols we need.
5693: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5694: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5695: cat <<_LT_EOF > conftest.$ac_ext
1.1.1.2 misho 5696: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
1.1.1.3 ! misho 5697: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
! 5698: /* DATA imports from DLLs on WIN32 can't be const, because runtime
1.1.1.2 misho 5699: relocations are performed -- see ld's documentation on pseudo-relocs. */
5700: # define LT_DLSYM_CONST
1.1.1.3 ! misho 5701: #elif defined __osf__
1.1.1.2 misho 5702: /* This system does not cope well with relocations in const data. */
5703: # define LT_DLSYM_CONST
5704: #else
5705: # define LT_DLSYM_CONST const
5706: #endif
5707:
1.1 misho 5708: #ifdef __cplusplus
5709: extern "C" {
5710: #endif
5711:
5712: _LT_EOF
5713: # Now generate the symbol file.
5714: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5715:
5716: cat <<_LT_EOF >> conftest.$ac_ext
5717:
5718: /* The mapping between symbol names and symbols. */
1.1.1.2 misho 5719: LT_DLSYM_CONST struct {
1.1 misho 5720: const char *name;
5721: void *address;
5722: }
5723: lt__PROGRAM__LTX_preloaded_symbols[] =
5724: {
5725: { "@PROGRAM@", (void *) 0 },
5726: _LT_EOF
1.1.1.3 ! misho 5727: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
1.1 misho 5728: cat <<\_LT_EOF >> conftest.$ac_ext
5729: {0, (void *) 0}
5730: };
5731:
5732: /* This works around a problem in FreeBSD linker */
5733: #ifdef FREEBSD_WORKAROUND
5734: static const void *lt_preloaded_setup() {
5735: return lt__PROGRAM__LTX_preloaded_symbols;
5736: }
5737: #endif
5738:
5739: #ifdef __cplusplus
5740: }
5741: #endif
5742: _LT_EOF
5743: # Now try linking the two files.
5744: mv conftest.$ac_objext conftstm.$ac_objext
1.1.1.2 misho 5745: lt_globsym_save_LIBS=$LIBS
5746: lt_globsym_save_CFLAGS=$CFLAGS
1.1.1.3 ! misho 5747: LIBS=conftstm.$ac_objext
1.1 misho 5748: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.1.1.2 misho 5749: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.1 misho 5750: (eval $ac_link) 2>&5
5751: ac_status=$?
1.1.1.2 misho 5752: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.3 ! misho 5753: test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.1 misho 5754: pipe_works=yes
5755: fi
1.1.1.2 misho 5756: LIBS=$lt_globsym_save_LIBS
5757: CFLAGS=$lt_globsym_save_CFLAGS
1.1 misho 5758: else
5759: echo "cannot find nm_test_func in $nlist" >&5
5760: fi
5761: else
5762: echo "cannot find nm_test_var in $nlist" >&5
5763: fi
5764: else
5765: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5766: fi
5767: else
5768: echo "$progname: failed program was:" >&5
5769: cat conftest.$ac_ext >&5
5770: fi
5771: rm -rf conftest* conftst*
5772:
5773: # Do not use the global_symbol_pipe unless it works.
1.1.1.3 ! misho 5774: if test yes = "$pipe_works"; then
1.1 misho 5775: break
5776: else
5777: lt_cv_sys_global_symbol_pipe=
5778: fi
5779: done
5780:
5781: fi
5782:
5783: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5784: lt_cv_sys_global_symbol_to_cdecl=
5785: fi
5786: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.1.1.2 misho 5787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1.1 misho 5788: $as_echo "failed" >&6; }
5789: else
1.1.1.2 misho 5790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1.1 misho 5791: $as_echo "ok" >&6; }
5792: fi
5793:
1.1.1.2 misho 5794: # Response file support.
5795: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5796: nm_file_list_spec='@'
5797: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5798: nm_file_list_spec='@'
5799: fi
5800:
5801:
5802:
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813:
5814:
1.1 misho 5815:
5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
5824:
5825:
5826:
1.1.1.3 ! misho 5827:
! 5828:
! 5829:
! 5830:
! 5831:
! 5832:
! 5833:
! 5834:
! 5835:
! 5836:
1.1.1.2 misho 5837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5838: $as_echo_n "checking for sysroot... " >&6; }
1.1 misho 5839:
1.1.1.2 misho 5840: # Check whether --with-sysroot was given.
5841: if test "${with_sysroot+set}" = set; then :
5842: withval=$with_sysroot;
5843: else
5844: with_sysroot=no
5845: fi
1.1 misho 5846:
5847:
1.1.1.2 misho 5848: lt_sysroot=
1.1.1.3 ! misho 5849: case $with_sysroot in #(
1.1.1.2 misho 5850: yes)
1.1.1.3 ! misho 5851: if test yes = "$GCC"; then
1.1.1.2 misho 5852: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5853: fi
5854: ;; #(
5855: /*)
5856: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5857: ;; #(
5858: no|'')
5859: ;; #(
5860: *)
1.1.1.3 ! misho 5861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
! 5862: $as_echo "$with_sysroot" >&6; }
1.1.1.2 misho 5863: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5864: ;;
5865: esac
1.1 misho 5866:
1.1.1.2 misho 5867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5868: $as_echo "${lt_sysroot:-no}" >&6; }
1.1 misho 5869:
5870:
5871:
5872:
5873:
1.1.1.3 ! misho 5874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
! 5875: $as_echo_n "checking for a working dd... " >&6; }
! 5876: if ${ac_cv_path_lt_DD+:} false; then :
! 5877: $as_echo_n "(cached) " >&6
! 5878: else
! 5879: printf 0123456789abcdef0123456789abcdef >conftest.i
! 5880: cat conftest.i conftest.i >conftest2.i
! 5881: : ${lt_DD:=$DD}
! 5882: if test -z "$lt_DD"; then
! 5883: ac_path_lt_DD_found=false
! 5884: # Loop through the user's path and test for each of PROGNAME-LIST
! 5885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5886: for as_dir in $PATH
! 5887: do
! 5888: IFS=$as_save_IFS
! 5889: test -z "$as_dir" && as_dir=.
! 5890: for ac_prog in dd; do
! 5891: for ac_exec_ext in '' $ac_executable_extensions; do
! 5892: ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
! 5893: as_fn_executable_p "$ac_path_lt_DD" || continue
! 5894: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
! 5895: cmp -s conftest.i conftest.out \
! 5896: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
! 5897: fi
! 5898: $ac_path_lt_DD_found && break 3
! 5899: done
! 5900: done
! 5901: done
! 5902: IFS=$as_save_IFS
! 5903: if test -z "$ac_cv_path_lt_DD"; then
! 5904: :
! 5905: fi
! 5906: else
! 5907: ac_cv_path_lt_DD=$lt_DD
! 5908: fi
! 5909:
! 5910: rm -f conftest.i conftest2.i conftest.out
! 5911: fi
! 5912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
! 5913: $as_echo "$ac_cv_path_lt_DD" >&6; }
! 5914:
! 5915:
! 5916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
! 5917: $as_echo_n "checking how to truncate binary pipes... " >&6; }
! 5918: if ${lt_cv_truncate_bin+:} false; then :
! 5919: $as_echo_n "(cached) " >&6
! 5920: else
! 5921: printf 0123456789abcdef0123456789abcdef >conftest.i
! 5922: cat conftest.i conftest.i >conftest2.i
! 5923: lt_cv_truncate_bin=
! 5924: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
! 5925: cmp -s conftest.i conftest.out \
! 5926: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
! 5927: fi
! 5928: rm -f conftest.i conftest2.i conftest.out
! 5929: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
! 5930: fi
! 5931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
! 5932: $as_echo "$lt_cv_truncate_bin" >&6; }
! 5933:
! 5934:
! 5935:
! 5936:
! 5937:
! 5938:
! 5939:
! 5940: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
! 5941: func_cc_basename ()
! 5942: {
! 5943: for cc_temp in $*""; do
! 5944: case $cc_temp in
! 5945: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 5946: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 5947: \-*) ;;
! 5948: *) break;;
! 5949: esac
! 5950: done
! 5951: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
! 5952: }
! 5953:
1.1 misho 5954: # Check whether --enable-libtool-lock was given.
1.1.1.2 misho 5955: if test "${enable_libtool_lock+set}" = set; then :
1.1 misho 5956: enableval=$enable_libtool_lock;
5957: fi
5958:
1.1.1.3 ! misho 5959: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1.1 misho 5960:
5961: # Some flags need to be propagated to the compiler or linker for good
5962: # libtool support.
5963: case $host in
5964: ia64-*-hpux*)
1.1.1.3 ! misho 5965: # Find out what ABI is being produced by ac_compile, and set mode
! 5966: # options accordingly.
1.1 misho 5967: echo 'int i;' > conftest.$ac_ext
1.1.1.2 misho 5968: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 5969: (eval $ac_compile) 2>&5
5970: ac_status=$?
1.1.1.2 misho 5971: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972: test $ac_status = 0; }; then
1.1 misho 5973: case `/usr/bin/file conftest.$ac_objext` in
5974: *ELF-32*)
1.1.1.3 ! misho 5975: HPUX_IA64_MODE=32
1.1 misho 5976: ;;
5977: *ELF-64*)
1.1.1.3 ! misho 5978: HPUX_IA64_MODE=64
1.1 misho 5979: ;;
5980: esac
5981: fi
5982: rm -rf conftest*
5983: ;;
5984: *-*-irix6*)
1.1.1.3 ! misho 5985: # Find out what ABI is being produced by ac_compile, and set linker
! 5986: # options accordingly.
1.1.1.2 misho 5987: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5988: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 5989: (eval $ac_compile) 2>&5
5990: ac_status=$?
1.1.1.2 misho 5991: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992: test $ac_status = 0; }; then
1.1.1.3 ! misho 5993: if test yes = "$lt_cv_prog_gnu_ld"; then
1.1 misho 5994: case `/usr/bin/file conftest.$ac_objext` in
5995: *32-bit*)
5996: LD="${LD-ld} -melf32bsmip"
5997: ;;
5998: *N32*)
5999: LD="${LD-ld} -melf32bmipn32"
6000: ;;
6001: *64-bit*)
6002: LD="${LD-ld} -melf64bmip"
6003: ;;
6004: esac
6005: else
6006: case `/usr/bin/file conftest.$ac_objext` in
6007: *32-bit*)
6008: LD="${LD-ld} -32"
6009: ;;
6010: *N32*)
6011: LD="${LD-ld} -n32"
6012: ;;
6013: *64-bit*)
6014: LD="${LD-ld} -64"
6015: ;;
6016: esac
6017: fi
6018: fi
6019: rm -rf conftest*
6020: ;;
6021:
1.1.1.3 ! misho 6022: mips64*-*linux*)
! 6023: # Find out what ABI is being produced by ac_compile, and set linker
! 6024: # options accordingly.
! 6025: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
! 6026: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
! 6027: (eval $ac_compile) 2>&5
! 6028: ac_status=$?
! 6029: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6030: test $ac_status = 0; }; then
! 6031: emul=elf
! 6032: case `/usr/bin/file conftest.$ac_objext` in
! 6033: *32-bit*)
! 6034: emul="${emul}32"
! 6035: ;;
! 6036: *64-bit*)
! 6037: emul="${emul}64"
! 6038: ;;
! 6039: esac
! 6040: case `/usr/bin/file conftest.$ac_objext` in
! 6041: *MSB*)
! 6042: emul="${emul}btsmip"
! 6043: ;;
! 6044: *LSB*)
! 6045: emul="${emul}ltsmip"
! 6046: ;;
! 6047: esac
! 6048: case `/usr/bin/file conftest.$ac_objext` in
! 6049: *N32*)
! 6050: emul="${emul}n32"
! 6051: ;;
! 6052: esac
! 6053: LD="${LD-ld} -m $emul"
! 6054: fi
! 6055: rm -rf conftest*
! 6056: ;;
! 6057:
! 6058: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1.1 misho 6059: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1.1.1.3 ! misho 6060: # Find out what ABI is being produced by ac_compile, and set linker
! 6061: # options accordingly. Note that the listed cases only cover the
! 6062: # situations where additional linker options are needed (such as when
! 6063: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
! 6064: # vice versa); the common cases where no linker options are needed do
! 6065: # not appear in the list.
1.1 misho 6066: echo 'int i;' > conftest.$ac_ext
1.1.1.2 misho 6067: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 6068: (eval $ac_compile) 2>&5
6069: ac_status=$?
1.1.1.2 misho 6070: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071: test $ac_status = 0; }; then
1.1 misho 6072: case `/usr/bin/file conftest.o` in
6073: *32-bit*)
6074: case $host in
6075: x86_64-*kfreebsd*-gnu)
6076: LD="${LD-ld} -m elf_i386_fbsd"
6077: ;;
6078: x86_64-*linux*)
1.1.1.3 ! misho 6079: case `/usr/bin/file conftest.o` in
! 6080: *x86-64*)
! 6081: LD="${LD-ld} -m elf32_x86_64"
! 6082: ;;
! 6083: *)
! 6084: LD="${LD-ld} -m elf_i386"
! 6085: ;;
! 6086: esac
1.1 misho 6087: ;;
1.1.1.3 ! misho 6088: powerpc64le-*linux*)
! 6089: LD="${LD-ld} -m elf32lppclinux"
! 6090: ;;
! 6091: powerpc64-*linux*)
1.1 misho 6092: LD="${LD-ld} -m elf32ppclinux"
6093: ;;
6094: s390x-*linux*)
6095: LD="${LD-ld} -m elf_s390"
6096: ;;
6097: sparc64-*linux*)
6098: LD="${LD-ld} -m elf32_sparc"
6099: ;;
6100: esac
6101: ;;
6102: *64-bit*)
6103: case $host in
6104: x86_64-*kfreebsd*-gnu)
6105: LD="${LD-ld} -m elf_x86_64_fbsd"
6106: ;;
6107: x86_64-*linux*)
6108: LD="${LD-ld} -m elf_x86_64"
6109: ;;
1.1.1.3 ! misho 6110: powerpcle-*linux*)
! 6111: LD="${LD-ld} -m elf64lppc"
! 6112: ;;
! 6113: powerpc-*linux*)
1.1 misho 6114: LD="${LD-ld} -m elf64ppc"
6115: ;;
6116: s390*-*linux*|s390*-*tpf*)
6117: LD="${LD-ld} -m elf64_s390"
6118: ;;
6119: sparc*-*linux*)
6120: LD="${LD-ld} -m elf64_sparc"
6121: ;;
6122: esac
6123: ;;
6124: esac
6125: fi
6126: rm -rf conftest*
6127: ;;
6128:
6129: *-*-sco3.2v5*)
6130: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.1.1.3 ! misho 6131: SAVE_CFLAGS=$CFLAGS
1.1 misho 6132: CFLAGS="$CFLAGS -belf"
1.1.1.2 misho 6133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
1.1 misho 6134: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
1.1.1.2 misho 6135: if ${lt_cv_cc_needs_belf+:} false; then :
1.1 misho 6136: $as_echo_n "(cached) " >&6
6137: else
6138: ac_ext=c
6139: ac_cpp='$CPP $CPPFLAGS'
6140: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143:
1.1.1.2 misho 6144: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 6145: /* end confdefs.h. */
6146:
6147: int
6148: main ()
6149: {
6150:
6151: ;
6152: return 0;
6153: }
6154: _ACEOF
1.1.1.2 misho 6155: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 6156: lt_cv_cc_needs_belf=yes
6157: else
1.1.1.2 misho 6158: lt_cv_cc_needs_belf=no
1.1 misho 6159: fi
1.1.1.2 misho 6160: rm -f core conftest.err conftest.$ac_objext \
6161: conftest$ac_exeext conftest.$ac_ext
1.1 misho 6162: ac_ext=c
6163: ac_cpp='$CPP $CPPFLAGS'
6164: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167:
6168: fi
1.1.1.2 misho 6169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
1.1 misho 6170: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.1.1.3 ! misho 6171: if test yes != "$lt_cv_cc_needs_belf"; then
1.1 misho 6172: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.1.1.3 ! misho 6173: CFLAGS=$SAVE_CFLAGS
1.1 misho 6174: fi
6175: ;;
1.1.1.3 ! misho 6176: *-*solaris*)
! 6177: # Find out what ABI is being produced by ac_compile, and set linker
! 6178: # options accordingly.
1.1 misho 6179: echo 'int i;' > conftest.$ac_ext
1.1.1.2 misho 6180: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 6181: (eval $ac_compile) 2>&5
6182: ac_status=$?
1.1.1.2 misho 6183: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6184: test $ac_status = 0; }; then
1.1 misho 6185: case `/usr/bin/file conftest.o` in
6186: *64-bit*)
6187: case $lt_cv_prog_gnu_ld in
1.1.1.3 ! misho 6188: yes*)
! 6189: case $host in
! 6190: i?86-*-solaris*|x86_64-*-solaris*)
! 6191: LD="${LD-ld} -m elf_x86_64"
! 6192: ;;
! 6193: sparc*-*-solaris*)
! 6194: LD="${LD-ld} -m elf64_sparc"
! 6195: ;;
! 6196: esac
! 6197: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
! 6198: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
! 6199: LD=${LD-ld}_sol2
! 6200: fi
! 6201: ;;
1.1 misho 6202: *)
6203: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6204: LD="${LD-ld} -64"
6205: fi
6206: ;;
6207: esac
6208: ;;
6209: esac
6210: fi
6211: rm -rf conftest*
6212: ;;
6213: esac
6214:
1.1.1.3 ! misho 6215: need_locks=$enable_libtool_lock
1.1 misho 6216:
1.1.1.2 misho 6217: if test -n "$ac_tool_prefix"; then
6218: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6219: set dummy ${ac_tool_prefix}mt; ac_word=$2
6220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221: $as_echo_n "checking for $ac_word... " >&6; }
6222: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6223: $as_echo_n "(cached) " >&6
6224: else
6225: if test -n "$MANIFEST_TOOL"; then
6226: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6227: else
6228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229: for as_dir in $PATH
6230: do
6231: IFS=$as_save_IFS
6232: test -z "$as_dir" && as_dir=.
6233: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6234: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 6235: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6236: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237: break 2
6238: fi
6239: done
6240: done
6241: IFS=$as_save_IFS
6242:
6243: fi
6244: fi
6245: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6246: if test -n "$MANIFEST_TOOL"; then
6247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6248: $as_echo "$MANIFEST_TOOL" >&6; }
6249: else
6250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251: $as_echo "no" >&6; }
6252: fi
6253:
6254:
6255: fi
6256: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6257: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6258: # Extract the first word of "mt", so it can be a program name with args.
6259: set dummy mt; ac_word=$2
6260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261: $as_echo_n "checking for $ac_word... " >&6; }
6262: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6263: $as_echo_n "(cached) " >&6
6264: else
6265: if test -n "$ac_ct_MANIFEST_TOOL"; then
6266: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6267: else
6268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269: for as_dir in $PATH
6270: do
6271: IFS=$as_save_IFS
6272: test -z "$as_dir" && as_dir=.
6273: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6274: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 6275: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6276: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277: break 2
6278: fi
6279: done
6280: done
6281: IFS=$as_save_IFS
6282:
6283: fi
6284: fi
6285: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6286: if test -n "$ac_ct_MANIFEST_TOOL"; then
6287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6288: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6289: else
6290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291: $as_echo "no" >&6; }
6292: fi
6293:
6294: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6295: MANIFEST_TOOL=":"
6296: else
6297: case $cross_compiling:$ac_tool_warned in
6298: yes:)
6299: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301: ac_tool_warned=yes ;;
6302: esac
6303: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6304: fi
6305: else
6306: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6307: fi
6308:
6309: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6311: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6312: if ${lt_cv_path_mainfest_tool+:} false; then :
6313: $as_echo_n "(cached) " >&6
6314: else
6315: lt_cv_path_mainfest_tool=no
6316: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6317: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6318: cat conftest.err >&5
6319: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6320: lt_cv_path_mainfest_tool=yes
6321: fi
6322: rm -f conftest*
6323: fi
6324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6325: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.1.1.3 ! misho 6326: if test yes != "$lt_cv_path_mainfest_tool"; then
1.1.1.2 misho 6327: MANIFEST_TOOL=:
6328: fi
6329:
6330:
6331:
6332:
6333:
1.1 misho 6334:
6335: case $host_os in
6336: rhapsody* | darwin*)
6337: if test -n "$ac_tool_prefix"; then
6338: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6339: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.1.1.2 misho 6340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6341: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6342: if ${ac_cv_prog_DSYMUTIL+:} false; then :
1.1 misho 6343: $as_echo_n "(cached) " >&6
6344: else
6345: if test -n "$DSYMUTIL"; then
6346: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6347: else
6348: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349: for as_dir in $PATH
6350: do
6351: IFS=$as_save_IFS
6352: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6353: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6354: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6355: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.1.1.2 misho 6356: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6357: break 2
6358: fi
6359: done
1.1.1.2 misho 6360: done
1.1 misho 6361: IFS=$as_save_IFS
6362:
6363: fi
6364: fi
6365: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6366: if test -n "$DSYMUTIL"; then
1.1.1.2 misho 6367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
1.1 misho 6368: $as_echo "$DSYMUTIL" >&6; }
6369: else
1.1.1.2 misho 6370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6371: $as_echo "no" >&6; }
6372: fi
6373:
6374:
6375: fi
6376: if test -z "$ac_cv_prog_DSYMUTIL"; then
6377: ac_ct_DSYMUTIL=$DSYMUTIL
6378: # Extract the first word of "dsymutil", so it can be a program name with args.
6379: set dummy dsymutil; ac_word=$2
1.1.1.2 misho 6380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6381: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6382: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
1.1 misho 6383: $as_echo_n "(cached) " >&6
6384: else
6385: if test -n "$ac_ct_DSYMUTIL"; then
6386: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6387: else
6388: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389: for as_dir in $PATH
6390: do
6391: IFS=$as_save_IFS
6392: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6393: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6394: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6395: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.1.1.2 misho 6396: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6397: break 2
6398: fi
6399: done
1.1.1.2 misho 6400: done
1.1 misho 6401: IFS=$as_save_IFS
6402:
6403: fi
6404: fi
6405: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6406: if test -n "$ac_ct_DSYMUTIL"; then
1.1.1.2 misho 6407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
1.1 misho 6408: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6409: else
1.1.1.2 misho 6410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6411: $as_echo "no" >&6; }
6412: fi
6413:
6414: if test "x$ac_ct_DSYMUTIL" = x; then
6415: DSYMUTIL=":"
6416: else
6417: case $cross_compiling:$ac_tool_warned in
6418: yes:)
1.1.1.2 misho 6419: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6420: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421: ac_tool_warned=yes ;;
6422: esac
6423: DSYMUTIL=$ac_ct_DSYMUTIL
6424: fi
6425: else
6426: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6427: fi
6428:
6429: if test -n "$ac_tool_prefix"; then
6430: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6431: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.1.1.2 misho 6432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6433: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6434: if ${ac_cv_prog_NMEDIT+:} false; then :
1.1 misho 6435: $as_echo_n "(cached) " >&6
6436: else
6437: if test -n "$NMEDIT"; then
6438: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6439: else
6440: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441: for as_dir in $PATH
6442: do
6443: IFS=$as_save_IFS
6444: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6445: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6446: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6447: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.1.1.2 misho 6448: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6449: break 2
6450: fi
6451: done
1.1.1.2 misho 6452: done
1.1 misho 6453: IFS=$as_save_IFS
6454:
6455: fi
6456: fi
6457: NMEDIT=$ac_cv_prog_NMEDIT
6458: if test -n "$NMEDIT"; then
1.1.1.2 misho 6459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
1.1 misho 6460: $as_echo "$NMEDIT" >&6; }
6461: else
1.1.1.2 misho 6462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6463: $as_echo "no" >&6; }
6464: fi
6465:
6466:
6467: fi
6468: if test -z "$ac_cv_prog_NMEDIT"; then
6469: ac_ct_NMEDIT=$NMEDIT
6470: # Extract the first word of "nmedit", so it can be a program name with args.
6471: set dummy nmedit; ac_word=$2
1.1.1.2 misho 6472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6473: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6474: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
1.1 misho 6475: $as_echo_n "(cached) " >&6
6476: else
6477: if test -n "$ac_ct_NMEDIT"; then
6478: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6479: else
6480: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481: for as_dir in $PATH
6482: do
6483: IFS=$as_save_IFS
6484: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6485: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6486: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6487: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.1.1.2 misho 6488: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6489: break 2
6490: fi
6491: done
1.1.1.2 misho 6492: done
1.1 misho 6493: IFS=$as_save_IFS
6494:
6495: fi
6496: fi
6497: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6498: if test -n "$ac_ct_NMEDIT"; then
1.1.1.2 misho 6499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
1.1 misho 6500: $as_echo "$ac_ct_NMEDIT" >&6; }
6501: else
1.1.1.2 misho 6502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6503: $as_echo "no" >&6; }
6504: fi
6505:
6506: if test "x$ac_ct_NMEDIT" = x; then
6507: NMEDIT=":"
6508: else
6509: case $cross_compiling:$ac_tool_warned in
6510: yes:)
1.1.1.2 misho 6511: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6512: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513: ac_tool_warned=yes ;;
6514: esac
6515: NMEDIT=$ac_ct_NMEDIT
6516: fi
6517: else
6518: NMEDIT="$ac_cv_prog_NMEDIT"
6519: fi
6520:
6521: if test -n "$ac_tool_prefix"; then
6522: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6523: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.1.1.2 misho 6524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6525: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6526: if ${ac_cv_prog_LIPO+:} false; then :
1.1 misho 6527: $as_echo_n "(cached) " >&6
6528: else
6529: if test -n "$LIPO"; then
6530: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6531: else
6532: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533: for as_dir in $PATH
6534: do
6535: IFS=$as_save_IFS
6536: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6537: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6538: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6539: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.1.1.2 misho 6540: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6541: break 2
6542: fi
6543: done
1.1.1.2 misho 6544: done
1.1 misho 6545: IFS=$as_save_IFS
6546:
6547: fi
6548: fi
6549: LIPO=$ac_cv_prog_LIPO
6550: if test -n "$LIPO"; then
1.1.1.2 misho 6551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
1.1 misho 6552: $as_echo "$LIPO" >&6; }
6553: else
1.1.1.2 misho 6554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6555: $as_echo "no" >&6; }
6556: fi
6557:
6558:
6559: fi
6560: if test -z "$ac_cv_prog_LIPO"; then
6561: ac_ct_LIPO=$LIPO
6562: # Extract the first word of "lipo", so it can be a program name with args.
6563: set dummy lipo; ac_word=$2
1.1.1.2 misho 6564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6565: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6566: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
1.1 misho 6567: $as_echo_n "(cached) " >&6
6568: else
6569: if test -n "$ac_ct_LIPO"; then
6570: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6571: else
6572: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573: for as_dir in $PATH
6574: do
6575: IFS=$as_save_IFS
6576: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6577: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6578: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6579: ac_cv_prog_ac_ct_LIPO="lipo"
1.1.1.2 misho 6580: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6581: break 2
6582: fi
6583: done
1.1.1.2 misho 6584: done
1.1 misho 6585: IFS=$as_save_IFS
6586:
6587: fi
6588: fi
6589: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6590: if test -n "$ac_ct_LIPO"; then
1.1.1.2 misho 6591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
1.1 misho 6592: $as_echo "$ac_ct_LIPO" >&6; }
6593: else
1.1.1.2 misho 6594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6595: $as_echo "no" >&6; }
6596: fi
6597:
6598: if test "x$ac_ct_LIPO" = x; then
6599: LIPO=":"
6600: else
6601: case $cross_compiling:$ac_tool_warned in
6602: yes:)
1.1.1.2 misho 6603: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6604: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605: ac_tool_warned=yes ;;
6606: esac
6607: LIPO=$ac_ct_LIPO
6608: fi
6609: else
6610: LIPO="$ac_cv_prog_LIPO"
6611: fi
6612:
6613: if test -n "$ac_tool_prefix"; then
6614: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6615: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.1.1.2 misho 6616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6617: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6618: if ${ac_cv_prog_OTOOL+:} false; then :
1.1 misho 6619: $as_echo_n "(cached) " >&6
6620: else
6621: if test -n "$OTOOL"; then
6622: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6623: else
6624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625: for as_dir in $PATH
6626: do
6627: IFS=$as_save_IFS
6628: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6629: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6630: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6631: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.1.1.2 misho 6632: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6633: break 2
6634: fi
6635: done
1.1.1.2 misho 6636: done
1.1 misho 6637: IFS=$as_save_IFS
6638:
6639: fi
6640: fi
6641: OTOOL=$ac_cv_prog_OTOOL
6642: if test -n "$OTOOL"; then
1.1.1.2 misho 6643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
1.1 misho 6644: $as_echo "$OTOOL" >&6; }
6645: else
1.1.1.2 misho 6646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6647: $as_echo "no" >&6; }
6648: fi
6649:
6650:
6651: fi
6652: if test -z "$ac_cv_prog_OTOOL"; then
6653: ac_ct_OTOOL=$OTOOL
6654: # Extract the first word of "otool", so it can be a program name with args.
6655: set dummy otool; ac_word=$2
1.1.1.2 misho 6656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6657: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6658: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
1.1 misho 6659: $as_echo_n "(cached) " >&6
6660: else
6661: if test -n "$ac_ct_OTOOL"; then
6662: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6663: else
6664: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665: for as_dir in $PATH
6666: do
6667: IFS=$as_save_IFS
6668: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6669: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6670: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6671: ac_cv_prog_ac_ct_OTOOL="otool"
1.1.1.2 misho 6672: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6673: break 2
6674: fi
6675: done
1.1.1.2 misho 6676: done
1.1 misho 6677: IFS=$as_save_IFS
6678:
6679: fi
6680: fi
6681: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6682: if test -n "$ac_ct_OTOOL"; then
1.1.1.2 misho 6683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
1.1 misho 6684: $as_echo "$ac_ct_OTOOL" >&6; }
6685: else
1.1.1.2 misho 6686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6687: $as_echo "no" >&6; }
6688: fi
6689:
6690: if test "x$ac_ct_OTOOL" = x; then
6691: OTOOL=":"
6692: else
6693: case $cross_compiling:$ac_tool_warned in
6694: yes:)
1.1.1.2 misho 6695: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6696: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697: ac_tool_warned=yes ;;
6698: esac
6699: OTOOL=$ac_ct_OTOOL
6700: fi
6701: else
6702: OTOOL="$ac_cv_prog_OTOOL"
6703: fi
6704:
6705: if test -n "$ac_tool_prefix"; then
6706: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6707: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.1.1.2 misho 6708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6709: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6710: if ${ac_cv_prog_OTOOL64+:} false; then :
1.1 misho 6711: $as_echo_n "(cached) " >&6
6712: else
6713: if test -n "$OTOOL64"; then
6714: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6715: else
6716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717: for as_dir in $PATH
6718: do
6719: IFS=$as_save_IFS
6720: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6721: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6722: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6723: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.1.1.2 misho 6724: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6725: break 2
6726: fi
6727: done
1.1.1.2 misho 6728: done
1.1 misho 6729: IFS=$as_save_IFS
6730:
6731: fi
6732: fi
6733: OTOOL64=$ac_cv_prog_OTOOL64
6734: if test -n "$OTOOL64"; then
1.1.1.2 misho 6735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
1.1 misho 6736: $as_echo "$OTOOL64" >&6; }
6737: else
1.1.1.2 misho 6738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6739: $as_echo "no" >&6; }
6740: fi
6741:
6742:
6743: fi
6744: if test -z "$ac_cv_prog_OTOOL64"; then
6745: ac_ct_OTOOL64=$OTOOL64
6746: # Extract the first word of "otool64", so it can be a program name with args.
6747: set dummy otool64; ac_word=$2
1.1.1.2 misho 6748: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6749: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 6750: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
1.1 misho 6751: $as_echo_n "(cached) " >&6
6752: else
6753: if test -n "$ac_ct_OTOOL64"; then
6754: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6755: else
6756: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757: for as_dir in $PATH
6758: do
6759: IFS=$as_save_IFS
6760: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 6761: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 6762: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6763: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.1.1.2 misho 6764: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6765: break 2
6766: fi
6767: done
1.1.1.2 misho 6768: done
1.1 misho 6769: IFS=$as_save_IFS
6770:
6771: fi
6772: fi
6773: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6774: if test -n "$ac_ct_OTOOL64"; then
1.1.1.2 misho 6775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
1.1 misho 6776: $as_echo "$ac_ct_OTOOL64" >&6; }
6777: else
1.1.1.2 misho 6778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6779: $as_echo "no" >&6; }
6780: fi
6781:
6782: if test "x$ac_ct_OTOOL64" = x; then
6783: OTOOL64=":"
6784: else
6785: case $cross_compiling:$ac_tool_warned in
6786: yes:)
1.1.1.2 misho 6787: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6788: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789: ac_tool_warned=yes ;;
6790: esac
6791: OTOOL64=$ac_ct_OTOOL64
6792: fi
6793: else
6794: OTOOL64="$ac_cv_prog_OTOOL64"
6795: fi
6796:
6797:
6798:
6799:
6800:
6801:
6802:
6803:
6804:
6805:
6806:
6807:
6808:
6809:
6810:
6811:
6812:
6813:
6814:
6815:
6816:
6817:
6818:
6819:
6820:
6821:
6822:
1.1.1.2 misho 6823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
1.1 misho 6824: $as_echo_n "checking for -single_module linker flag... " >&6; }
1.1.1.2 misho 6825: if ${lt_cv_apple_cc_single_mod+:} false; then :
1.1 misho 6826: $as_echo_n "(cached) " >&6
6827: else
6828: lt_cv_apple_cc_single_mod=no
1.1.1.3 ! misho 6829: if test -z "$LT_MULTI_MODULE"; then
1.1 misho 6830: # By default we will add the -single_module flag. You can override
6831: # by either setting the environment variable LT_MULTI_MODULE
6832: # non-empty at configure time, or by adding -multi_module to the
6833: # link flags.
6834: rm -rf libconftest.dylib*
6835: echo "int foo(void){return 1;}" > conftest.c
6836: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6837: -dynamiclib -Wl,-single_module conftest.c" >&5
6838: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6839: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6840: _lt_result=$?
1.1.1.3 ! misho 6841: # If there is a non-empty error log, and "single_module"
! 6842: # appears in it, assume the flag caused a linker warning
! 6843: if test -s conftest.err && $GREP single_module conftest.err; then
! 6844: cat conftest.err >&5
! 6845: # Otherwise, if the output was created with a 0 exit code from
! 6846: # the compiler, it worked.
! 6847: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1.1 misho 6848: lt_cv_apple_cc_single_mod=yes
6849: else
6850: cat conftest.err >&5
6851: fi
6852: rm -rf libconftest.dylib*
6853: rm -f conftest.*
6854: fi
6855: fi
1.1.1.2 misho 6856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
1.1 misho 6857: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.3 ! misho 6858:
1.1.1.2 misho 6859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
1.1 misho 6860: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
1.1.1.2 misho 6861: if ${lt_cv_ld_exported_symbols_list+:} false; then :
1.1 misho 6862: $as_echo_n "(cached) " >&6
6863: else
6864: lt_cv_ld_exported_symbols_list=no
6865: save_LDFLAGS=$LDFLAGS
6866: echo "_main" > conftest.sym
6867: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.1.1.2 misho 6868: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 6869: /* end confdefs.h. */
6870:
6871: int
6872: main ()
6873: {
6874:
6875: ;
6876: return 0;
6877: }
6878: _ACEOF
1.1.1.2 misho 6879: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 6880: lt_cv_ld_exported_symbols_list=yes
6881: else
1.1.1.2 misho 6882: lt_cv_ld_exported_symbols_list=no
1.1 misho 6883: fi
1.1.1.2 misho 6884: rm -f core conftest.err conftest.$ac_objext \
6885: conftest$ac_exeext conftest.$ac_ext
1.1.1.3 ! misho 6886: LDFLAGS=$save_LDFLAGS
1.1 misho 6887:
6888: fi
1.1.1.2 misho 6889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6890: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.3 ! misho 6891:
1.1.1.2 misho 6892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6893: $as_echo_n "checking for -force_load linker flag... " >&6; }
6894: if ${lt_cv_ld_force_load+:} false; then :
6895: $as_echo_n "(cached) " >&6
6896: else
6897: lt_cv_ld_force_load=no
6898: cat > conftest.c << _LT_EOF
6899: int forced_loaded() { return 2;}
6900: _LT_EOF
6901: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6902: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6903: echo "$AR cru libconftest.a conftest.o" >&5
6904: $AR cru libconftest.a conftest.o 2>&5
6905: echo "$RANLIB libconftest.a" >&5
6906: $RANLIB libconftest.a 2>&5
6907: cat > conftest.c << _LT_EOF
6908: int main() { return 0;}
6909: _LT_EOF
6910: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6911: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6912: _lt_result=$?
1.1.1.3 ! misho 6913: if test -s conftest.err && $GREP force_load conftest.err; then
! 6914: cat conftest.err >&5
! 6915: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1.1.1.2 misho 6916: lt_cv_ld_force_load=yes
6917: else
6918: cat conftest.err >&5
6919: fi
6920: rm -f conftest.err libconftest.a conftest conftest.c
6921: rm -rf conftest.dSYM
6922:
6923: fi
6924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6925: $as_echo "$lt_cv_ld_force_load" >&6; }
1.1 misho 6926: case $host_os in
6927: rhapsody* | darwin1.[012])
1.1.1.3 ! misho 6928: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1.1 misho 6929: darwin1.*)
1.1.1.3 ! misho 6930: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1.1 misho 6931: darwin*) # darwin 5.x on
6932: # if running on 10.5 or later, the deployment target defaults
6933: # to the OS version, if on x86, and 10.4, the deployment
6934: # target defaults to 10.4. Don't you love it?
6935: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6936: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
1.1.1.3 ! misho 6937: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
! 6938: 10.[012][,.]*)
! 6939: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1.1 misho 6940: 10.*)
1.1.1.3 ! misho 6941: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1.1 misho 6942: esac
6943: ;;
6944: esac
1.1.1.3 ! misho 6945: if test yes = "$lt_cv_apple_cc_single_mod"; then
1.1 misho 6946: _lt_dar_single_mod='$single_module'
6947: fi
1.1.1.3 ! misho 6948: if test yes = "$lt_cv_ld_exported_symbols_list"; then
! 6949: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1.1 misho 6950: else
1.1.1.3 ! misho 6951: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1.1 misho 6952: fi
1.1.1.3 ! misho 6953: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1.1 misho 6954: _lt_dsymutil='~$DSYMUTIL $lib || :'
6955: else
6956: _lt_dsymutil=
6957: fi
6958: ;;
6959: esac
6960:
1.1.1.3 ! misho 6961: # func_munge_path_list VARIABLE PATH
! 6962: # -----------------------------------
! 6963: # VARIABLE is name of variable containing _space_ separated list of
! 6964: # directories to be munged by the contents of PATH, which is string
! 6965: # having a format:
! 6966: # "DIR[:DIR]:"
! 6967: # string "DIR[ DIR]" will be prepended to VARIABLE
! 6968: # ":DIR[:DIR]"
! 6969: # string "DIR[ DIR]" will be appended to VARIABLE
! 6970: # "DIRP[:DIRP]::[DIRA:]DIRA"
! 6971: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
! 6972: # "DIRA[ DIRA]" will be appended to VARIABLE
! 6973: # "DIR[:DIR]"
! 6974: # VARIABLE will be replaced by "DIR[ DIR]"
! 6975: func_munge_path_list ()
! 6976: {
! 6977: case x$2 in
! 6978: x)
! 6979: ;;
! 6980: *:)
! 6981: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
! 6982: ;;
! 6983: x:*)
! 6984: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
! 6985: ;;
! 6986: *::*)
! 6987: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
! 6988: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
! 6989: ;;
! 6990: *)
! 6991: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
! 6992: ;;
! 6993: esac
! 6994: }
! 6995:
1.1 misho 6996: for ac_header in dlfcn.h
1.1.1.2 misho 6997: do :
6998: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6999: "
7000: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.1 misho 7001: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 7002: #define HAVE_DLFCN_H 1
1.1 misho 7003: _ACEOF
7004:
7005: fi
7006:
7007: done
7008:
7009:
7010:
1.1.1.2 misho 7011:
7012:
1.1 misho 7013: # Set options
7014: enable_win32_dll=yes
7015:
7016: case $host in
1.1.1.2 misho 7017: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
1.1 misho 7018: if test -n "$ac_tool_prefix"; then
7019: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7020: set dummy ${ac_tool_prefix}as; ac_word=$2
1.1.1.2 misho 7021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7022: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7023: if ${ac_cv_prog_AS+:} false; then :
1.1 misho 7024: $as_echo_n "(cached) " >&6
7025: else
7026: if test -n "$AS"; then
7027: ac_cv_prog_AS="$AS" # Let the user override the test.
7028: else
7029: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030: for as_dir in $PATH
7031: do
7032: IFS=$as_save_IFS
7033: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 7034: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7035: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7036: ac_cv_prog_AS="${ac_tool_prefix}as"
1.1.1.2 misho 7037: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7038: break 2
7039: fi
7040: done
1.1.1.2 misho 7041: done
1.1 misho 7042: IFS=$as_save_IFS
7043:
7044: fi
7045: fi
7046: AS=$ac_cv_prog_AS
7047: if test -n "$AS"; then
1.1.1.2 misho 7048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
1.1 misho 7049: $as_echo "$AS" >&6; }
7050: else
1.1.1.2 misho 7051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7052: $as_echo "no" >&6; }
7053: fi
7054:
7055:
7056: fi
7057: if test -z "$ac_cv_prog_AS"; then
7058: ac_ct_AS=$AS
7059: # Extract the first word of "as", so it can be a program name with args.
7060: set dummy as; ac_word=$2
1.1.1.2 misho 7061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7062: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7063: if ${ac_cv_prog_ac_ct_AS+:} false; then :
1.1 misho 7064: $as_echo_n "(cached) " >&6
7065: else
7066: if test -n "$ac_ct_AS"; then
7067: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7068: else
7069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070: for as_dir in $PATH
7071: do
7072: IFS=$as_save_IFS
7073: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 7074: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7075: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7076: ac_cv_prog_ac_ct_AS="as"
1.1.1.2 misho 7077: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7078: break 2
7079: fi
7080: done
1.1.1.2 misho 7081: done
1.1 misho 7082: IFS=$as_save_IFS
7083:
7084: fi
7085: fi
7086: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7087: if test -n "$ac_ct_AS"; then
1.1.1.2 misho 7088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
1.1 misho 7089: $as_echo "$ac_ct_AS" >&6; }
7090: else
1.1.1.2 misho 7091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7092: $as_echo "no" >&6; }
7093: fi
7094:
7095: if test "x$ac_ct_AS" = x; then
7096: AS="false"
7097: else
7098: case $cross_compiling:$ac_tool_warned in
7099: yes:)
1.1.1.2 misho 7100: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 7101: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102: ac_tool_warned=yes ;;
7103: esac
7104: AS=$ac_ct_AS
7105: fi
7106: else
7107: AS="$ac_cv_prog_AS"
7108: fi
7109:
7110: if test -n "$ac_tool_prefix"; then
7111: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7112: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.1.1.2 misho 7113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7114: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7115: if ${ac_cv_prog_DLLTOOL+:} false; then :
1.1 misho 7116: $as_echo_n "(cached) " >&6
7117: else
7118: if test -n "$DLLTOOL"; then
7119: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7120: else
7121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122: for as_dir in $PATH
7123: do
7124: IFS=$as_save_IFS
7125: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 7126: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7127: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7128: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.1.1.2 misho 7129: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7130: break 2
7131: fi
7132: done
1.1.1.2 misho 7133: done
1.1 misho 7134: IFS=$as_save_IFS
7135:
7136: fi
7137: fi
7138: DLLTOOL=$ac_cv_prog_DLLTOOL
7139: if test -n "$DLLTOOL"; then
1.1.1.2 misho 7140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
1.1 misho 7141: $as_echo "$DLLTOOL" >&6; }
7142: else
1.1.1.2 misho 7143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7144: $as_echo "no" >&6; }
7145: fi
7146:
7147:
7148: fi
7149: if test -z "$ac_cv_prog_DLLTOOL"; then
7150: ac_ct_DLLTOOL=$DLLTOOL
7151: # Extract the first word of "dlltool", so it can be a program name with args.
7152: set dummy dlltool; ac_word=$2
1.1.1.2 misho 7153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7154: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7155: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
1.1 misho 7156: $as_echo_n "(cached) " >&6
7157: else
7158: if test -n "$ac_ct_DLLTOOL"; then
7159: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7160: else
7161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162: for as_dir in $PATH
7163: do
7164: IFS=$as_save_IFS
7165: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 7166: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7168: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.1.1.2 misho 7169: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7170: break 2
7171: fi
7172: done
1.1.1.2 misho 7173: done
1.1 misho 7174: IFS=$as_save_IFS
7175:
7176: fi
7177: fi
7178: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7179: if test -n "$ac_ct_DLLTOOL"; then
1.1.1.2 misho 7180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
1.1 misho 7181: $as_echo "$ac_ct_DLLTOOL" >&6; }
7182: else
1.1.1.2 misho 7183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7184: $as_echo "no" >&6; }
7185: fi
7186:
7187: if test "x$ac_ct_DLLTOOL" = x; then
7188: DLLTOOL="false"
7189: else
7190: case $cross_compiling:$ac_tool_warned in
7191: yes:)
1.1.1.2 misho 7192: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 7193: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194: ac_tool_warned=yes ;;
7195: esac
7196: DLLTOOL=$ac_ct_DLLTOOL
7197: fi
7198: else
7199: DLLTOOL="$ac_cv_prog_DLLTOOL"
7200: fi
7201:
7202: if test -n "$ac_tool_prefix"; then
7203: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7204: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.1.1.2 misho 7205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7206: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7207: if ${ac_cv_prog_OBJDUMP+:} false; then :
1.1 misho 7208: $as_echo_n "(cached) " >&6
7209: else
7210: if test -n "$OBJDUMP"; then
7211: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7212: else
7213: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214: for as_dir in $PATH
7215: do
7216: IFS=$as_save_IFS
7217: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 7218: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7219: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7220: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.1.1.2 misho 7221: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7222: break 2
7223: fi
7224: done
1.1.1.2 misho 7225: done
1.1 misho 7226: IFS=$as_save_IFS
7227:
7228: fi
7229: fi
7230: OBJDUMP=$ac_cv_prog_OBJDUMP
7231: if test -n "$OBJDUMP"; then
1.1.1.2 misho 7232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
1.1 misho 7233: $as_echo "$OBJDUMP" >&6; }
7234: else
1.1.1.2 misho 7235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7236: $as_echo "no" >&6; }
7237: fi
7238:
7239:
7240: fi
7241: if test -z "$ac_cv_prog_OBJDUMP"; then
7242: ac_ct_OBJDUMP=$OBJDUMP
7243: # Extract the first word of "objdump", so it can be a program name with args.
7244: set dummy objdump; ac_word=$2
1.1.1.2 misho 7245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7246: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 misho 7247: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1.1 misho 7248: $as_echo_n "(cached) " >&6
7249: else
7250: if test -n "$ac_ct_OBJDUMP"; then
7251: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7252: else
7253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254: for as_dir in $PATH
7255: do
7256: IFS=$as_save_IFS
7257: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 7258: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho 7259: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7260: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.1.1.2 misho 7261: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7262: break 2
7263: fi
7264: done
1.1.1.2 misho 7265: done
1.1 misho 7266: IFS=$as_save_IFS
7267:
7268: fi
7269: fi
7270: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7271: if test -n "$ac_ct_OBJDUMP"; then
1.1.1.2 misho 7272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
1.1 misho 7273: $as_echo "$ac_ct_OBJDUMP" >&6; }
7274: else
1.1.1.2 misho 7275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7276: $as_echo "no" >&6; }
7277: fi
7278:
7279: if test "x$ac_ct_OBJDUMP" = x; then
7280: OBJDUMP="false"
7281: else
7282: case $cross_compiling:$ac_tool_warned in
7283: yes:)
1.1.1.2 misho 7284: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 7285: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286: ac_tool_warned=yes ;;
7287: esac
7288: OBJDUMP=$ac_ct_OBJDUMP
7289: fi
7290: else
7291: OBJDUMP="$ac_cv_prog_OBJDUMP"
7292: fi
7293:
7294: ;;
7295: esac
7296:
7297: test -z "$AS" && AS=as
7298:
7299:
7300:
7301:
7302:
7303: test -z "$DLLTOOL" && DLLTOOL=dlltool
7304:
7305:
7306:
7307:
7308:
7309: test -z "$OBJDUMP" && OBJDUMP=objdump
7310:
7311:
7312:
7313:
7314:
7315:
7316:
7317: enable_dlopen=no
7318:
7319:
7320:
7321: # Check whether --enable-shared was given.
1.1.1.2 misho 7322: if test "${enable_shared+set}" = set; then :
1.1 misho 7323: enableval=$enable_shared; p=${PACKAGE-default}
7324: case $enableval in
7325: yes) enable_shared=yes ;;
7326: no) enable_shared=no ;;
7327: *)
7328: enable_shared=no
7329: # Look at the argument we got. We use all the common list separators.
1.1.1.3 ! misho 7330: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.1 misho 7331: for pkg in $enableval; do
1.1.1.3 ! misho 7332: IFS=$lt_save_ifs
1.1 misho 7333: if test "X$pkg" = "X$p"; then
7334: enable_shared=yes
7335: fi
7336: done
1.1.1.3 ! misho 7337: IFS=$lt_save_ifs
1.1 misho 7338: ;;
7339: esac
7340: else
7341: enable_shared=yes
7342: fi
7343:
7344:
7345:
7346:
7347:
7348:
7349:
7350:
7351:
7352: # Check whether --enable-static was given.
1.1.1.2 misho 7353: if test "${enable_static+set}" = set; then :
1.1 misho 7354: enableval=$enable_static; p=${PACKAGE-default}
7355: case $enableval in
7356: yes) enable_static=yes ;;
7357: no) enable_static=no ;;
7358: *)
7359: enable_static=no
7360: # Look at the argument we got. We use all the common list separators.
1.1.1.3 ! misho 7361: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.1 misho 7362: for pkg in $enableval; do
1.1.1.3 ! misho 7363: IFS=$lt_save_ifs
1.1 misho 7364: if test "X$pkg" = "X$p"; then
7365: enable_static=yes
7366: fi
7367: done
1.1.1.3 ! misho 7368: IFS=$lt_save_ifs
1.1 misho 7369: ;;
7370: esac
7371: else
7372: enable_static=yes
7373: fi
7374:
7375:
7376:
7377:
7378:
7379:
7380:
7381:
7382:
7383:
7384: # Check whether --with-pic was given.
1.1.1.2 misho 7385: if test "${with_pic+set}" = set; then :
1.1.1.3 ! misho 7386: withval=$with_pic; lt_p=${PACKAGE-default}
! 7387: case $withval in
! 7388: yes|no) pic_mode=$withval ;;
! 7389: *)
! 7390: pic_mode=default
! 7391: # Look at the argument we got. We use all the common list separators.
! 7392: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
! 7393: for lt_pkg in $withval; do
! 7394: IFS=$lt_save_ifs
! 7395: if test "X$lt_pkg" = "X$lt_p"; then
! 7396: pic_mode=yes
! 7397: fi
! 7398: done
! 7399: IFS=$lt_save_ifs
! 7400: ;;
! 7401: esac
1.1 misho 7402: else
7403: pic_mode=default
7404: fi
7405:
7406:
7407:
7408:
7409:
7410:
7411:
7412:
7413: # Check whether --enable-fast-install was given.
1.1.1.2 misho 7414: if test "${enable_fast_install+set}" = set; then :
1.1 misho 7415: enableval=$enable_fast_install; p=${PACKAGE-default}
7416: case $enableval in
7417: yes) enable_fast_install=yes ;;
7418: no) enable_fast_install=no ;;
7419: *)
7420: enable_fast_install=no
7421: # Look at the argument we got. We use all the common list separators.
1.1.1.3 ! misho 7422: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.1 misho 7423: for pkg in $enableval; do
1.1.1.3 ! misho 7424: IFS=$lt_save_ifs
1.1 misho 7425: if test "X$pkg" = "X$p"; then
7426: enable_fast_install=yes
7427: fi
7428: done
1.1.1.3 ! misho 7429: IFS=$lt_save_ifs
1.1 misho 7430: ;;
7431: esac
7432: else
7433: enable_fast_install=yes
7434: fi
7435:
7436:
7437:
7438:
7439:
7440:
7441:
7442:
1.1.1.3 ! misho 7443: shared_archive_member_spec=
! 7444: case $host,$enable_shared in
! 7445: power*-*-aix[5-9]*,yes)
! 7446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
! 7447: $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
! 7448:
! 7449: # Check whether --with-aix-soname was given.
! 7450: if test "${with_aix_soname+set}" = set; then :
! 7451: withval=$with_aix_soname; case $withval in
! 7452: aix|svr4|both)
! 7453: ;;
! 7454: *)
! 7455: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
! 7456: ;;
! 7457: esac
! 7458: lt_cv_with_aix_soname=$with_aix_soname
! 7459: else
! 7460: if ${lt_cv_with_aix_soname+:} false; then :
! 7461: $as_echo_n "(cached) " >&6
! 7462: else
! 7463: lt_cv_with_aix_soname=aix
! 7464: fi
! 7465:
! 7466: with_aix_soname=$lt_cv_with_aix_soname
! 7467: fi
! 7468:
! 7469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
! 7470: $as_echo "$with_aix_soname" >&6; }
! 7471: if test aix != "$with_aix_soname"; then
! 7472: # For the AIX way of multilib, we name the shared archive member
! 7473: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
! 7474: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
! 7475: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
! 7476: # the AIX toolchain works better with OBJECT_MODE set (default 32).
! 7477: if test 64 = "${OBJECT_MODE-32}"; then
! 7478: shared_archive_member_spec=shr_64
! 7479: else
! 7480: shared_archive_member_spec=shr
! 7481: fi
! 7482: fi
! 7483: ;;
! 7484: *)
! 7485: with_aix_soname=aix
! 7486: ;;
! 7487: esac
! 7488:
! 7489:
! 7490:
! 7491:
! 7492:
! 7493:
! 7494:
1.1 misho 7495:
7496:
7497:
7498: # This can be used to rebuild libtool when needed
1.1.1.3 ! misho 7499: LIBTOOL_DEPS=$ltmain
1.1 misho 7500:
7501: # Always use our own libtool.
7502: LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
1.1.1.2 misho 7528:
1.1.1.3 ! misho 7529:
! 7530:
! 7531:
! 7532:
1.1 misho 7533: test -z "$LN_S" && LN_S="ln -s"
7534:
7535:
7536:
7537:
7538:
7539:
7540:
7541:
7542:
7543:
7544:
7545:
7546:
7547:
1.1.1.3 ! misho 7548: if test -n "${ZSH_VERSION+set}"; then
1.1 misho 7549: setopt NO_GLOB_SUBST
7550: fi
7551:
1.1.1.2 misho 7552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
1.1 misho 7553: $as_echo_n "checking for objdir... " >&6; }
1.1.1.2 misho 7554: if ${lt_cv_objdir+:} false; then :
1.1 misho 7555: $as_echo_n "(cached) " >&6
7556: else
7557: rm -f .libs 2>/dev/null
7558: mkdir .libs 2>/dev/null
7559: if test -d .libs; then
7560: lt_cv_objdir=.libs
7561: else
7562: # MS-DOS does not allow filenames that begin with a dot.
7563: lt_cv_objdir=_libs
7564: fi
7565: rmdir .libs 2>/dev/null
7566: fi
1.1.1.2 misho 7567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
1.1 misho 7568: $as_echo "$lt_cv_objdir" >&6; }
7569: objdir=$lt_cv_objdir
7570:
7571:
7572:
7573:
7574:
7575: cat >>confdefs.h <<_ACEOF
7576: #define LT_OBJDIR "$lt_cv_objdir/"
7577: _ACEOF
7578:
7579:
7580:
7581:
7582: case $host_os in
7583: aix3*)
7584: # AIX sometimes has problems with the GCC collect2 program. For some
7585: # reason, if we set the COLLECT_NAMES environment variable, the problems
7586: # vanish in a puff of smoke.
1.1.1.3 ! misho 7587: if test set != "${COLLECT_NAMES+set}"; then
1.1 misho 7588: COLLECT_NAMES=
7589: export COLLECT_NAMES
7590: fi
7591: ;;
7592: esac
7593:
7594: # Global variables:
7595: ofile=libtool
7596: can_build_shared=yes
7597:
1.1.1.3 ! misho 7598: # All known linkers require a '.a' archive for static linking (except MSVC,
1.1 misho 7599: # which needs '.lib').
7600: libext=a
7601:
1.1.1.3 ! misho 7602: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 misho 7603:
1.1.1.3 ! misho 7604: old_CC=$CC
! 7605: old_CFLAGS=$CFLAGS
1.1 misho 7606:
7607: # Set sane defaults for various variables
7608: test -z "$CC" && CC=cc
7609: test -z "$LTCC" && LTCC=$CC
7610: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7611: test -z "$LD" && LD=ld
7612: test -z "$ac_objext" && ac_objext=o
7613:
1.1.1.3 ! misho 7614: func_cc_basename $compiler
! 7615: cc_basename=$func_cc_basename_result
1.1 misho 7616:
7617:
7618: # Only perform the check for file, if the check method requires it
7619: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7620: case $deplibs_check_method in
7621: file_magic*)
7622: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.1.2 misho 7623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
1.1 misho 7624: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
1.1.1.2 misho 7625: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 7626: $as_echo_n "(cached) " >&6
7627: else
7628: case $MAGIC_CMD in
7629: [\\/*] | ?:[\\/]*)
1.1.1.3 ! misho 7630: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.1 misho 7631: ;;
7632: *)
1.1.1.3 ! misho 7633: lt_save_MAGIC_CMD=$MAGIC_CMD
! 7634: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 7635: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7636: for ac_dir in $ac_dummy; do
1.1.1.3 ! misho 7637: IFS=$lt_save_ifs
1.1 misho 7638: test -z "$ac_dir" && ac_dir=.
1.1.1.3 ! misho 7639: if test -f "$ac_dir/${ac_tool_prefix}file"; then
! 7640: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
1.1 misho 7641: if test -n "$file_magic_test_file"; then
7642: case $deplibs_check_method in
7643: "file_magic "*)
7644: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1.1.3 ! misho 7645: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1 misho 7646: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7647: $EGREP "$file_magic_regex" > /dev/null; then
7648: :
7649: else
7650: cat <<_LT_EOF 1>&2
7651:
7652: *** Warning: the command libtool uses to detect shared libraries,
7653: *** $file_magic_cmd, produces output that libtool cannot recognize.
7654: *** The result is that libtool may fail to recognize shared libraries
7655: *** as such. This will affect the creation of libtool libraries that
7656: *** depend on shared libraries, but programs linked with such libtool
7657: *** libraries will work regardless of this problem. Nevertheless, you
7658: *** may want to report the problem to your system manager and/or to
7659: *** bug-libtool@gnu.org
7660:
7661: _LT_EOF
7662: fi ;;
7663: esac
7664: fi
7665: break
7666: fi
7667: done
1.1.1.3 ! misho 7668: IFS=$lt_save_ifs
! 7669: MAGIC_CMD=$lt_save_MAGIC_CMD
1.1 misho 7670: ;;
7671: esac
7672: fi
7673:
1.1.1.3 ! misho 7674: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1 misho 7675: if test -n "$MAGIC_CMD"; then
1.1.1.2 misho 7676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
1.1 misho 7677: $as_echo "$MAGIC_CMD" >&6; }
7678: else
1.1.1.2 misho 7679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7680: $as_echo "no" >&6; }
7681: fi
7682:
7683:
7684:
7685:
7686:
7687: if test -z "$lt_cv_path_MAGIC_CMD"; then
7688: if test -n "$ac_tool_prefix"; then
1.1.1.2 misho 7689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
1.1 misho 7690: $as_echo_n "checking for file... " >&6; }
1.1.1.2 misho 7691: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 7692: $as_echo_n "(cached) " >&6
7693: else
7694: case $MAGIC_CMD in
7695: [\\/*] | ?:[\\/]*)
1.1.1.3 ! misho 7696: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.1 misho 7697: ;;
7698: *)
1.1.1.3 ! misho 7699: lt_save_MAGIC_CMD=$MAGIC_CMD
! 7700: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 7701: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7702: for ac_dir in $ac_dummy; do
1.1.1.3 ! misho 7703: IFS=$lt_save_ifs
1.1 misho 7704: test -z "$ac_dir" && ac_dir=.
1.1.1.3 ! misho 7705: if test -f "$ac_dir/file"; then
! 7706: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
1.1 misho 7707: if test -n "$file_magic_test_file"; then
7708: case $deplibs_check_method in
7709: "file_magic "*)
7710: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1.1.3 ! misho 7711: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1 misho 7712: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7713: $EGREP "$file_magic_regex" > /dev/null; then
7714: :
7715: else
7716: cat <<_LT_EOF 1>&2
7717:
7718: *** Warning: the command libtool uses to detect shared libraries,
7719: *** $file_magic_cmd, produces output that libtool cannot recognize.
7720: *** The result is that libtool may fail to recognize shared libraries
7721: *** as such. This will affect the creation of libtool libraries that
7722: *** depend on shared libraries, but programs linked with such libtool
7723: *** libraries will work regardless of this problem. Nevertheless, you
7724: *** may want to report the problem to your system manager and/or to
7725: *** bug-libtool@gnu.org
7726:
7727: _LT_EOF
7728: fi ;;
7729: esac
7730: fi
7731: break
7732: fi
7733: done
1.1.1.3 ! misho 7734: IFS=$lt_save_ifs
! 7735: MAGIC_CMD=$lt_save_MAGIC_CMD
1.1 misho 7736: ;;
7737: esac
7738: fi
7739:
1.1.1.3 ! misho 7740: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.1 misho 7741: if test -n "$MAGIC_CMD"; then
1.1.1.2 misho 7742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
1.1 misho 7743: $as_echo "$MAGIC_CMD" >&6; }
7744: else
1.1.1.2 misho 7745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7746: $as_echo "no" >&6; }
7747: fi
7748:
7749:
7750: else
7751: MAGIC_CMD=:
7752: fi
7753: fi
7754:
7755: fi
7756: ;;
7757: esac
7758:
7759: # Use C for the default configuration in the libtool script
7760:
1.1.1.3 ! misho 7761: lt_save_CC=$CC
1.1 misho 7762: ac_ext=c
7763: ac_cpp='$CPP $CPPFLAGS'
7764: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7765: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7766: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767:
7768:
7769: # Source file extension for C test sources.
7770: ac_ext=c
7771:
7772: # Object file extension for compiled C test sources.
7773: objext=o
7774: objext=$objext
7775:
7776: # Code to be used in simple compile tests
7777: lt_simple_compile_test_code="int some_variable = 0;"
7778:
7779: # Code to be used in simple link tests
7780: lt_simple_link_test_code='int main(){return(0);}'
7781:
7782:
7783:
7784:
7785:
7786:
7787:
7788: # If no C compiler was specified, use CC.
7789: LTCC=${LTCC-"$CC"}
7790:
7791: # If no C compiler flags were specified, use CFLAGS.
7792: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7793:
7794: # Allow CC to be a program name with arguments.
7795: compiler=$CC
7796:
7797: # Save the default compiler, since it gets overwritten when the other
7798: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7799: compiler_DEFAULT=$CC
7800:
7801: # save warnings/boilerplate of simple test code
7802: ac_outfile=conftest.$ac_objext
7803: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7804: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7805: _lt_compiler_boilerplate=`cat conftest.err`
7806: $RM conftest*
7807:
7808: ac_outfile=conftest.$ac_objext
7809: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7810: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7811: _lt_linker_boilerplate=`cat conftest.err`
7812: $RM -r conftest*
7813:
7814:
7815: ## CAVEAT EMPTOR:
7816: ## There is no encapsulation within the following macros, do not change
7817: ## the running order or otherwise move them around unless you know exactly
7818: ## what you are doing...
7819: if test -n "$compiler"; then
7820:
7821: lt_prog_compiler_no_builtin_flag=
7822:
1.1.1.3 ! misho 7823: if test yes = "$GCC"; then
1.1.1.2 misho 7824: case $cc_basename in
7825: nvcc*)
7826: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7827: *)
7828: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7829: esac
1.1 misho 7830:
1.1.1.2 misho 7831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
1.1 misho 7832: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1.1.1.2 misho 7833: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
1.1 misho 7834: $as_echo_n "(cached) " >&6
7835: else
7836: lt_cv_prog_compiler_rtti_exceptions=no
7837: ac_outfile=conftest.$ac_objext
7838: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.1.3 ! misho 7839: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
1.1 misho 7840: # Insert the option either (1) after the last *FLAGS variable, or
7841: # (2) before a word containing "conftest.", or (3) at the end.
7842: # Note that $ac_compile itself does not contain backslashes and begins
7843: # with a dollar sign (not a hyphen), so the echo should work correctly.
7844: # The option is referenced via a variable to avoid confusing sed.
7845: lt_compile=`echo "$ac_compile" | $SED \
7846: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7847: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7848: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 7849: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 7850: (eval "$lt_compile" 2>conftest.err)
7851: ac_status=$?
7852: cat conftest.err >&5
1.1.1.2 misho 7853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 7854: if (exit $ac_status) && test -s "$ac_outfile"; then
7855: # The compiler can only warn and ignore the option if not recognized
7856: # So say no if there are warnings other than the usual output.
1.1.1.2 misho 7857: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1.1 misho 7858: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7859: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7860: lt_cv_prog_compiler_rtti_exceptions=yes
7861: fi
7862: fi
7863: $RM conftest*
7864:
7865: fi
1.1.1.2 misho 7866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
1.1 misho 7867: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7868:
1.1.1.3 ! misho 7869: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
1.1 misho 7870: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7871: else
7872: :
7873: fi
7874:
7875: fi
7876:
7877:
7878:
7879:
7880:
7881:
7882: lt_prog_compiler_wl=
7883: lt_prog_compiler_pic=
7884: lt_prog_compiler_static=
7885:
7886:
1.1.1.3 ! misho 7887: if test yes = "$GCC"; then
1.1 misho 7888: lt_prog_compiler_wl='-Wl,'
7889: lt_prog_compiler_static='-static'
7890:
7891: case $host_os in
7892: aix*)
7893: # All AIX code is PIC.
1.1.1.3 ! misho 7894: if test ia64 = "$host_cpu"; then
1.1 misho 7895: # AIX 5 now supports IA64 processor
7896: lt_prog_compiler_static='-Bstatic'
7897: fi
1.1.1.3 ! misho 7898: lt_prog_compiler_pic='-fPIC'
1.1 misho 7899: ;;
7900:
7901: amigaos*)
7902: case $host_cpu in
7903: powerpc)
7904: # see comment about AmigaOS4 .so support
7905: lt_prog_compiler_pic='-fPIC'
7906: ;;
7907: m68k)
7908: # FIXME: we need at least 68020 code to build shared libraries, but
1.1.1.3 ! misho 7909: # adding the '-m68020' flag to GCC prevents building anything better,
! 7910: # like '-m68040'.
1.1 misho 7911: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7912: ;;
7913: esac
7914: ;;
7915:
7916: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7917: # PIC is the default for these OSes.
7918: ;;
7919:
7920: mingw* | cygwin* | pw32* | os2* | cegcc*)
7921: # This hack is so that the source file can tell whether it is being
7922: # built for inclusion in a dll (and should export symbols for example).
7923: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7924: # (--disable-auto-import) libraries
7925: lt_prog_compiler_pic='-DDLL_EXPORT'
1.1.1.3 ! misho 7926: case $host_os in
! 7927: os2*)
! 7928: lt_prog_compiler_static='$wl-static'
! 7929: ;;
! 7930: esac
1.1 misho 7931: ;;
7932:
7933: darwin* | rhapsody*)
7934: # PIC is the default on this platform
7935: # Common symbols not allowed in MH_DYLIB files
7936: lt_prog_compiler_pic='-fno-common'
7937: ;;
7938:
1.1.1.2 misho 7939: haiku*)
7940: # PIC is the default for Haiku.
7941: # The "-static" flag exists, but is broken.
7942: lt_prog_compiler_static=
7943: ;;
7944:
1.1 misho 7945: hpux*)
7946: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7947: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7948: # sets the default TLS model and affects inlining.
7949: case $host_cpu in
7950: hppa*64*)
7951: # +Z the default
7952: ;;
7953: *)
7954: lt_prog_compiler_pic='-fPIC'
7955: ;;
7956: esac
7957: ;;
7958:
7959: interix[3-9]*)
7960: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7961: # Instead, we relocate shared libraries at runtime.
7962: ;;
7963:
7964: msdosdjgpp*)
7965: # Just because we use GCC doesn't mean we suddenly get shared libraries
7966: # on systems that don't support them.
7967: lt_prog_compiler_can_build_shared=no
7968: enable_shared=no
7969: ;;
7970:
7971: *nto* | *qnx*)
7972: # QNX uses GNU C++, but need to define -shared option too, otherwise
7973: # it will coredump.
7974: lt_prog_compiler_pic='-fPIC -shared'
7975: ;;
7976:
7977: sysv4*MP*)
7978: if test -d /usr/nec; then
7979: lt_prog_compiler_pic=-Kconform_pic
7980: fi
7981: ;;
7982:
7983: *)
7984: lt_prog_compiler_pic='-fPIC'
7985: ;;
7986: esac
1.1.1.2 misho 7987:
7988: case $cc_basename in
7989: nvcc*) # Cuda Compiler Driver 2.2
7990: lt_prog_compiler_wl='-Xlinker '
1.1.1.3 ! misho 7991: if test -n "$lt_prog_compiler_pic"; then
! 7992: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
! 7993: fi
1.1.1.2 misho 7994: ;;
7995: esac
1.1 misho 7996: else
7997: # PORTME Check for flag to pass linker flags through the system compiler.
7998: case $host_os in
7999: aix*)
8000: lt_prog_compiler_wl='-Wl,'
1.1.1.3 ! misho 8001: if test ia64 = "$host_cpu"; then
1.1 misho 8002: # AIX 5 now supports IA64 processor
8003: lt_prog_compiler_static='-Bstatic'
8004: else
8005: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8006: fi
8007: ;;
8008:
1.1.1.3 ! misho 8009: darwin* | rhapsody*)
! 8010: # PIC is the default on this platform
! 8011: # Common symbols not allowed in MH_DYLIB files
! 8012: lt_prog_compiler_pic='-fno-common'
! 8013: case $cc_basename in
! 8014: nagfor*)
! 8015: # NAG Fortran compiler
! 8016: lt_prog_compiler_wl='-Wl,-Wl,,'
! 8017: lt_prog_compiler_pic='-PIC'
! 8018: lt_prog_compiler_static='-Bstatic'
! 8019: ;;
! 8020: esac
! 8021: ;;
! 8022:
1.1 misho 8023: mingw* | cygwin* | pw32* | os2* | cegcc*)
8024: # This hack is so that the source file can tell whether it is being
8025: # built for inclusion in a dll (and should export symbols for example).
8026: lt_prog_compiler_pic='-DDLL_EXPORT'
1.1.1.3 ! misho 8027: case $host_os in
! 8028: os2*)
! 8029: lt_prog_compiler_static='$wl-static'
! 8030: ;;
! 8031: esac
1.1 misho 8032: ;;
8033:
8034: hpux9* | hpux10* | hpux11*)
8035: lt_prog_compiler_wl='-Wl,'
8036: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8037: # not for PA HP-UX.
8038: case $host_cpu in
8039: hppa*64*|ia64*)
8040: # +Z the default
8041: ;;
8042: *)
8043: lt_prog_compiler_pic='+Z'
8044: ;;
8045: esac
8046: # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.1.1.3 ! misho 8047: lt_prog_compiler_static='$wl-a ${wl}archive'
1.1 misho 8048: ;;
8049:
8050: irix5* | irix6* | nonstopux*)
8051: lt_prog_compiler_wl='-Wl,'
8052: # PIC (with -KPIC) is the default.
8053: lt_prog_compiler_static='-non_shared'
8054: ;;
8055:
1.1.1.3 ! misho 8056: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.1 misho 8057: case $cc_basename in
1.1.1.3 ! misho 8058: # old Intel for x86_64, which still supported -KPIC.
1.1 misho 8059: ecc*)
8060: lt_prog_compiler_wl='-Wl,'
8061: lt_prog_compiler_pic='-KPIC'
8062: lt_prog_compiler_static='-static'
8063: ;;
8064: # icc used to be incompatible with GCC.
8065: # ICC 10 doesn't accept -KPIC any more.
8066: icc* | ifort*)
8067: lt_prog_compiler_wl='-Wl,'
8068: lt_prog_compiler_pic='-fPIC'
8069: lt_prog_compiler_static='-static'
8070: ;;
8071: # Lahey Fortran 8.1.
8072: lf95*)
8073: lt_prog_compiler_wl='-Wl,'
8074: lt_prog_compiler_pic='--shared'
8075: lt_prog_compiler_static='--static'
8076: ;;
1.1.1.2 misho 8077: nagfor*)
8078: # NAG Fortran compiler
8079: lt_prog_compiler_wl='-Wl,-Wl,,'
8080: lt_prog_compiler_pic='-PIC'
8081: lt_prog_compiler_static='-Bstatic'
8082: ;;
1.1.1.3 ! misho 8083: tcc*)
! 8084: # Fabrice Bellard et al's Tiny C Compiler
! 8085: lt_prog_compiler_wl='-Wl,'
! 8086: lt_prog_compiler_pic='-fPIC'
! 8087: lt_prog_compiler_static='-static'
! 8088: ;;
1.1.1.2 misho 8089: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1.1 misho 8090: # Portland Group compilers (*not* the Pentium gcc compiler,
8091: # which looks to be a dead project)
8092: lt_prog_compiler_wl='-Wl,'
8093: lt_prog_compiler_pic='-fpic'
8094: lt_prog_compiler_static='-Bstatic'
8095: ;;
8096: ccc*)
8097: lt_prog_compiler_wl='-Wl,'
8098: # All Alpha code is PIC.
8099: lt_prog_compiler_static='-non_shared'
8100: ;;
1.1.1.2 misho 8101: xl* | bgxl* | bgf* | mpixl*)
8102: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
1.1 misho 8103: lt_prog_compiler_wl='-Wl,'
8104: lt_prog_compiler_pic='-qpic'
8105: lt_prog_compiler_static='-qstaticlink'
8106: ;;
8107: *)
8108: case `$CC -V 2>&1 | sed 5q` in
1.1.1.3 ! misho 8109: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1.1.1.2 misho 8110: # Sun Fortran 8.3 passes all unrecognized flags to the linker
1.1 misho 8111: lt_prog_compiler_pic='-KPIC'
8112: lt_prog_compiler_static='-Bstatic'
1.1.1.2 misho 8113: lt_prog_compiler_wl=''
1.1 misho 8114: ;;
1.1.1.3 ! misho 8115: *Sun\ F* | *Sun*Fortran*)
! 8116: lt_prog_compiler_pic='-KPIC'
! 8117: lt_prog_compiler_static='-Bstatic'
! 8118: lt_prog_compiler_wl='-Qoption ld '
! 8119: ;;
1.1.1.2 misho 8120: *Sun\ C*)
8121: # Sun C 5.9
1.1 misho 8122: lt_prog_compiler_pic='-KPIC'
8123: lt_prog_compiler_static='-Bstatic'
1.1.1.2 misho 8124: lt_prog_compiler_wl='-Wl,'
1.1 misho 8125: ;;
1.1.1.3 ! misho 8126: *Intel*\ [CF]*Compiler*)
! 8127: lt_prog_compiler_wl='-Wl,'
! 8128: lt_prog_compiler_pic='-fPIC'
! 8129: lt_prog_compiler_static='-static'
! 8130: ;;
! 8131: *Portland\ Group*)
! 8132: lt_prog_compiler_wl='-Wl,'
! 8133: lt_prog_compiler_pic='-fpic'
! 8134: lt_prog_compiler_static='-Bstatic'
! 8135: ;;
1.1 misho 8136: esac
8137: ;;
8138: esac
8139: ;;
8140:
8141: newsos6)
8142: lt_prog_compiler_pic='-KPIC'
8143: lt_prog_compiler_static='-Bstatic'
8144: ;;
8145:
8146: *nto* | *qnx*)
8147: # QNX uses GNU C++, but need to define -shared option too, otherwise
8148: # it will coredump.
8149: lt_prog_compiler_pic='-fPIC -shared'
8150: ;;
8151:
8152: osf3* | osf4* | osf5*)
8153: lt_prog_compiler_wl='-Wl,'
8154: # All OSF/1 code is PIC.
8155: lt_prog_compiler_static='-non_shared'
8156: ;;
8157:
8158: rdos*)
8159: lt_prog_compiler_static='-non_shared'
8160: ;;
8161:
8162: solaris*)
8163: lt_prog_compiler_pic='-KPIC'
8164: lt_prog_compiler_static='-Bstatic'
8165: case $cc_basename in
1.1.1.2 misho 8166: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
1.1 misho 8167: lt_prog_compiler_wl='-Qoption ld ';;
8168: *)
8169: lt_prog_compiler_wl='-Wl,';;
8170: esac
8171: ;;
8172:
8173: sunos4*)
8174: lt_prog_compiler_wl='-Qoption ld '
8175: lt_prog_compiler_pic='-PIC'
8176: lt_prog_compiler_static='-Bstatic'
8177: ;;
8178:
8179: sysv4 | sysv4.2uw2* | sysv4.3*)
8180: lt_prog_compiler_wl='-Wl,'
8181: lt_prog_compiler_pic='-KPIC'
8182: lt_prog_compiler_static='-Bstatic'
8183: ;;
8184:
8185: sysv4*MP*)
1.1.1.3 ! misho 8186: if test -d /usr/nec; then
1.1 misho 8187: lt_prog_compiler_pic='-Kconform_pic'
8188: lt_prog_compiler_static='-Bstatic'
8189: fi
8190: ;;
8191:
8192: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8193: lt_prog_compiler_wl='-Wl,'
8194: lt_prog_compiler_pic='-KPIC'
8195: lt_prog_compiler_static='-Bstatic'
8196: ;;
8197:
8198: unicos*)
8199: lt_prog_compiler_wl='-Wl,'
8200: lt_prog_compiler_can_build_shared=no
8201: ;;
8202:
8203: uts4*)
8204: lt_prog_compiler_pic='-pic'
8205: lt_prog_compiler_static='-Bstatic'
8206: ;;
8207:
8208: *)
8209: lt_prog_compiler_can_build_shared=no
8210: ;;
8211: esac
8212: fi
8213:
8214: case $host_os in
1.1.1.3 ! misho 8215: # For platforms that do not support PIC, -DPIC is meaningless:
1.1 misho 8216: *djgpp*)
8217: lt_prog_compiler_pic=
8218: ;;
8219: *)
8220: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8221: ;;
8222: esac
8223:
1.1.1.2 misho 8224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8225: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8226: if ${lt_cv_prog_compiler_pic+:} false; then :
8227: $as_echo_n "(cached) " >&6
8228: else
8229: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8230: fi
8231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8232: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8233: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misho 8234:
8235: #
8236: # Check to make sure the PIC flag actually works.
8237: #
8238: if test -n "$lt_prog_compiler_pic"; then
1.1.1.2 misho 8239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
1.1 misho 8240: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
1.1.1.2 misho 8241: if ${lt_cv_prog_compiler_pic_works+:} false; then :
1.1 misho 8242: $as_echo_n "(cached) " >&6
8243: else
8244: lt_cv_prog_compiler_pic_works=no
8245: ac_outfile=conftest.$ac_objext
8246: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1.1.3 ! misho 8247: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.1 misho 8248: # Insert the option either (1) after the last *FLAGS variable, or
8249: # (2) before a word containing "conftest.", or (3) at the end.
8250: # Note that $ac_compile itself does not contain backslashes and begins
8251: # with a dollar sign (not a hyphen), so the echo should work correctly.
8252: # The option is referenced via a variable to avoid confusing sed.
8253: lt_compile=`echo "$ac_compile" | $SED \
8254: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8255: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8256: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 8257: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8258: (eval "$lt_compile" 2>conftest.err)
8259: ac_status=$?
8260: cat conftest.err >&5
1.1.1.2 misho 8261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8262: if (exit $ac_status) && test -s "$ac_outfile"; then
8263: # The compiler can only warn and ignore the option if not recognized
8264: # So say no if there are warnings other than the usual output.
1.1.1.2 misho 8265: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1.1 misho 8266: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8267: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8268: lt_cv_prog_compiler_pic_works=yes
8269: fi
8270: fi
8271: $RM conftest*
8272:
8273: fi
1.1.1.2 misho 8274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
1.1 misho 8275: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8276:
1.1.1.3 ! misho 8277: if test yes = "$lt_cv_prog_compiler_pic_works"; then
1.1 misho 8278: case $lt_prog_compiler_pic in
8279: "" | " "*) ;;
8280: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8281: esac
8282: else
8283: lt_prog_compiler_pic=
8284: lt_prog_compiler_can_build_shared=no
8285: fi
8286:
8287: fi
8288:
8289:
8290:
8291:
8292:
8293:
1.1.1.2 misho 8294:
8295:
8296:
8297:
8298:
1.1 misho 8299: #
8300: # Check to make sure the static flag actually works.
8301: #
8302: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.1.1.2 misho 8303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1.1 misho 8304: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
1.1.1.2 misho 8305: if ${lt_cv_prog_compiler_static_works+:} false; then :
1.1 misho 8306: $as_echo_n "(cached) " >&6
8307: else
8308: lt_cv_prog_compiler_static_works=no
1.1.1.3 ! misho 8309: save_LDFLAGS=$LDFLAGS
1.1 misho 8310: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8311: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8312: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8313: # The linker can only warn and ignore the option if not recognized
8314: # So say no if there are warnings
8315: if test -s conftest.err; then
8316: # Append any errors to the config.log.
8317: cat conftest.err 1>&5
1.1.1.2 misho 8318: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1.1 misho 8319: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8320: if diff conftest.exp conftest.er2 >/dev/null; then
8321: lt_cv_prog_compiler_static_works=yes
8322: fi
8323: else
8324: lt_cv_prog_compiler_static_works=yes
8325: fi
8326: fi
8327: $RM -r conftest*
1.1.1.3 ! misho 8328: LDFLAGS=$save_LDFLAGS
1.1 misho 8329:
8330: fi
1.1.1.2 misho 8331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
1.1 misho 8332: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8333:
1.1.1.3 ! misho 8334: if test yes = "$lt_cv_prog_compiler_static_works"; then
1.1 misho 8335: :
8336: else
8337: lt_prog_compiler_static=
8338: fi
8339:
8340:
8341:
8342:
8343:
8344:
8345:
1.1.1.2 misho 8346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1.1 misho 8347: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 misho 8348: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 8349: $as_echo_n "(cached) " >&6
8350: else
8351: lt_cv_prog_compiler_c_o=no
8352: $RM -r conftest 2>/dev/null
8353: mkdir conftest
8354: cd conftest
8355: mkdir out
8356: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8357:
8358: lt_compiler_flag="-o out/conftest2.$ac_objext"
8359: # Insert the option either (1) after the last *FLAGS variable, or
8360: # (2) before a word containing "conftest.", or (3) at the end.
8361: # Note that $ac_compile itself does not contain backslashes and begins
8362: # with a dollar sign (not a hyphen), so the echo should work correctly.
8363: lt_compile=`echo "$ac_compile" | $SED \
8364: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8365: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8366: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 8367: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8368: (eval "$lt_compile" 2>out/conftest.err)
8369: ac_status=$?
8370: cat out/conftest.err >&5
1.1.1.2 misho 8371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8372: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8373: then
8374: # The compiler can only warn and ignore the option if not recognized
8375: # So say no if there are warnings
1.1.1.2 misho 8376: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1.1 misho 8377: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8378: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8379: lt_cv_prog_compiler_c_o=yes
8380: fi
8381: fi
8382: chmod u+w . 2>&5
8383: $RM conftest*
8384: # SGI C++ compiler will create directory out/ii_files/ for
8385: # template instantiation
8386: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8387: $RM out/* && rmdir out
8388: cd ..
8389: $RM -r conftest
8390: $RM conftest*
8391:
8392: fi
1.1.1.2 misho 8393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
1.1 misho 8394: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8395:
8396:
8397:
8398:
8399:
8400:
1.1.1.2 misho 8401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1.1 misho 8402: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 misho 8403: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 8404: $as_echo_n "(cached) " >&6
8405: else
8406: lt_cv_prog_compiler_c_o=no
8407: $RM -r conftest 2>/dev/null
8408: mkdir conftest
8409: cd conftest
8410: mkdir out
8411: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8412:
8413: lt_compiler_flag="-o out/conftest2.$ac_objext"
8414: # Insert the option either (1) after the last *FLAGS variable, or
8415: # (2) before a word containing "conftest.", or (3) at the end.
8416: # Note that $ac_compile itself does not contain backslashes and begins
8417: # with a dollar sign (not a hyphen), so the echo should work correctly.
8418: lt_compile=`echo "$ac_compile" | $SED \
8419: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 misho 8422: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8423: (eval "$lt_compile" 2>out/conftest.err)
8424: ac_status=$?
8425: cat out/conftest.err >&5
1.1.1.2 misho 8426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8427: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8428: then
8429: # The compiler can only warn and ignore the option if not recognized
8430: # So say no if there are warnings
1.1.1.2 misho 8431: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1.1 misho 8432: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8433: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8434: lt_cv_prog_compiler_c_o=yes
8435: fi
8436: fi
8437: chmod u+w . 2>&5
8438: $RM conftest*
8439: # SGI C++ compiler will create directory out/ii_files/ for
8440: # template instantiation
8441: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8442: $RM out/* && rmdir out
8443: cd ..
8444: $RM -r conftest
8445: $RM conftest*
8446:
8447: fi
1.1.1.2 misho 8448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
1.1 misho 8449: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8450:
8451:
8452:
8453:
1.1.1.3 ! misho 8454: hard_links=nottested
! 8455: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1.1 misho 8456: # do not overwrite the value of need_locks provided by the user
1.1.1.2 misho 8457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
1.1 misho 8458: $as_echo_n "checking if we can lock with hard links... " >&6; }
8459: hard_links=yes
8460: $RM conftest*
8461: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8462: touch conftest.a
8463: ln conftest.a conftest.b 2>&5 || hard_links=no
8464: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.2 misho 8465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
1.1 misho 8466: $as_echo "$hard_links" >&6; }
1.1.1.3 ! misho 8467: if test no = "$hard_links"; then
! 8468: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
! 8469: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.1 misho 8470: need_locks=warn
8471: fi
8472: else
8473: need_locks=no
8474: fi
8475:
8476:
8477:
8478:
8479:
8480:
1.1.1.2 misho 8481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.1 misho 8482: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8483:
8484: runpath_var=
8485: allow_undefined_flag=
8486: always_export_symbols=no
8487: archive_cmds=
8488: archive_expsym_cmds=
8489: compiler_needs_object=no
8490: enable_shared_with_static_runtimes=no
8491: export_dynamic_flag_spec=
8492: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8493: hardcode_automatic=no
8494: hardcode_direct=no
8495: hardcode_direct_absolute=no
8496: hardcode_libdir_flag_spec=
8497: hardcode_libdir_separator=
8498: hardcode_minus_L=no
8499: hardcode_shlibpath_var=unsupported
8500: inherit_rpath=no
8501: link_all_deplibs=unknown
8502: module_cmds=
8503: module_expsym_cmds=
8504: old_archive_from_new_cmds=
8505: old_archive_from_expsyms_cmds=
8506: thread_safe_flag_spec=
8507: whole_archive_flag_spec=
8508: # include_expsyms should be a list of space-separated symbols to be *always*
8509: # included in the symbol list
8510: include_expsyms=
8511: # exclude_expsyms can be an extended regexp of symbols to exclude
1.1.1.3 ! misho 8512: # it will be wrapped by ' (' and ')$', so one must not match beginning or
! 8513: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
! 8514: # as well as any symbol that contains 'd'.
1.1 misho 8515: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8516: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8517: # platforms (ab)use it in PIC code, but their linkers get confused if
8518: # the symbol is explicitly referenced. Since portable code cannot
8519: # rely on this symbol name, it's probably fine to never include it in
8520: # preloaded symbol tables.
8521: # Exclude shared library initialization/finalization symbols.
8522: extract_expsyms_cmds=
8523:
8524: case $host_os in
8525: cygwin* | mingw* | pw32* | cegcc*)
8526: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8527: # When not using gcc, we currently assume that we are using
8528: # Microsoft Visual C++.
1.1.1.3 ! misho 8529: if test yes != "$GCC"; then
1.1 misho 8530: with_gnu_ld=no
8531: fi
8532: ;;
8533: interix*)
8534: # we just hope/assume this is gcc and not c89 (= MSVC++)
8535: with_gnu_ld=yes
8536: ;;
1.1.1.3 ! misho 8537: openbsd* | bitrig*)
1.1 misho 8538: with_gnu_ld=no
8539: ;;
8540: esac
8541:
8542: ld_shlibs=yes
1.1.1.2 misho 8543:
8544: # On some targets, GNU ld is compatible enough with the native linker
8545: # that we're better off using the native interface for both.
8546: lt_use_gnu_ld_interface=no
1.1.1.3 ! misho 8547: if test yes = "$with_gnu_ld"; then
1.1.1.2 misho 8548: case $host_os in
8549: aix*)
8550: # The AIX port of GNU ld has always aspired to compatibility
8551: # with the native linker. However, as the warning in the GNU ld
8552: # block says, versions before 2.19.5* couldn't really create working
8553: # shared libraries, regardless of the interface used.
8554: case `$LD -v 2>&1` in
8555: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8556: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8557: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8558: *)
8559: lt_use_gnu_ld_interface=yes
8560: ;;
8561: esac
8562: ;;
8563: *)
8564: lt_use_gnu_ld_interface=yes
8565: ;;
8566: esac
8567: fi
8568:
1.1.1.3 ! misho 8569: if test yes = "$lt_use_gnu_ld_interface"; then
1.1 misho 8570: # If archive_cmds runs LD, not CC, wlarc should be empty
1.1.1.3 ! misho 8571: wlarc='$wl'
1.1 misho 8572:
8573: # Set some defaults for GNU ld with shared library support. These
8574: # are reset later if shared libraries are not supported. Putting them
8575: # here allows them to be overridden if necessary.
8576: runpath_var=LD_RUN_PATH
1.1.1.3 ! misho 8577: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
! 8578: export_dynamic_flag_spec='$wl--export-dynamic'
1.1 misho 8579: # ancient GNU ld didn't support --whole-archive et. al.
8580: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
1.1.1.3 ! misho 8581: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.1 misho 8582: else
8583: whole_archive_flag_spec=
8584: fi
8585: supports_anon_versioning=no
1.1.1.3 ! misho 8586: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
1.1.1.2 misho 8587: *GNU\ gold*) supports_anon_versioning=yes ;;
1.1 misho 8588: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8589: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8590: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8591: *\ 2.11.*) ;; # other 2.11 versions
8592: *) supports_anon_versioning=yes ;;
8593: esac
8594:
8595: # See if GNU ld supports shared libraries.
8596: case $host_os in
8597: aix[3-9]*)
8598: # On AIX/PPC, the GNU linker is very broken
1.1.1.3 ! misho 8599: if test ia64 != "$host_cpu"; then
1.1 misho 8600: ld_shlibs=no
8601: cat <<_LT_EOF 1>&2
8602:
1.1.1.2 misho 8603: *** Warning: the GNU linker, at least up to release 2.19, is reported
1.1 misho 8604: *** to be unable to reliably create shared libraries on AIX.
8605: *** Therefore, libtool is disabling shared libraries support. If you
1.1.1.2 misho 8606: *** really care for shared libraries, you may want to install binutils
8607: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8608: *** You will then need to restart the configuration process.
1.1 misho 8609:
8610: _LT_EOF
8611: fi
8612: ;;
8613:
8614: amigaos*)
8615: case $host_cpu in
8616: powerpc)
8617: # see comment about AmigaOS4 .so support
1.1.1.3 ! misho 8618: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1 misho 8619: archive_expsym_cmds=''
8620: ;;
8621: m68k)
8622: 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)'
8623: hardcode_libdir_flag_spec='-L$libdir'
8624: hardcode_minus_L=yes
8625: ;;
8626: esac
8627: ;;
8628:
8629: beos*)
8630: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8631: allow_undefined_flag=unsupported
8632: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8633: # support --undefined. This deserves some investigation. FIXME
1.1.1.3 ! misho 8634: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1 misho 8635: else
8636: ld_shlibs=no
8637: fi
8638: ;;
8639:
8640: cygwin* | mingw* | pw32* | cegcc*)
8641: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8642: # as there is no search path for DLLs.
8643: hardcode_libdir_flag_spec='-L$libdir'
1.1.1.3 ! misho 8644: export_dynamic_flag_spec='$wl--export-all-symbols'
1.1 misho 8645: allow_undefined_flag=unsupported
8646: always_export_symbols=no
8647: enable_shared_with_static_runtimes=yes
1.1.1.2 misho 8648: 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'
8649: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.1 misho 8650:
8651: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.1.1.3 ! misho 8652: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 8653: # If the export-symbols file already is a .def file, use it as
! 8654: # is; otherwise, prepend EXPORTS...
! 8655: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
! 8656: cp $export_symbols $output_objdir/$soname.def;
! 8657: else
! 8658: echo EXPORTS > $output_objdir/$soname.def;
! 8659: cat $export_symbols >> $output_objdir/$soname.def;
! 8660: fi~
! 8661: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 misho 8662: else
8663: ld_shlibs=no
8664: fi
8665: ;;
8666:
1.1.1.2 misho 8667: haiku*)
1.1.1.3 ! misho 8668: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1.1.2 misho 8669: link_all_deplibs=yes
8670: ;;
8671:
1.1.1.3 ! misho 8672: os2*)
! 8673: hardcode_libdir_flag_spec='-L$libdir'
! 8674: hardcode_minus_L=yes
! 8675: allow_undefined_flag=unsupported
! 8676: shrext_cmds=.dll
! 8677: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 8678: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 8679: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 8680: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 8681: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
! 8682: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 8683: emximp -o $lib $output_objdir/$libname.def'
! 8684: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 8685: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 8686: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 8687: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 8688: prefix_cmds="$SED"~
! 8689: if test EXPORTS = "`$SED 1q $export_symbols`"; then
! 8690: prefix_cmds="$prefix_cmds -e 1d";
! 8691: fi~
! 8692: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
! 8693: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
! 8694: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 8695: emximp -o $lib $output_objdir/$libname.def'
! 8696: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
! 8697: enable_shared_with_static_runtimes=yes
! 8698: ;;
! 8699:
1.1 misho 8700: interix[3-9]*)
8701: hardcode_direct=no
8702: hardcode_shlibpath_var=no
1.1.1.3 ! misho 8703: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
! 8704: export_dynamic_flag_spec='$wl-E'
1.1 misho 8705: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8706: # Instead, shared libraries are loaded at an image base (0x10000000 by
8707: # default) and relocated if they conflict, which is a slow very memory
8708: # consuming and fragmenting process. To avoid this, we pick a random,
8709: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8710: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.1.1.3 ! misho 8711: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 8712: 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'
1.1 misho 8713: ;;
8714:
1.1.1.2 misho 8715: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1.1 misho 8716: tmp_diet=no
1.1.1.3 ! misho 8717: if test linux-dietlibc = "$host_os"; then
1.1 misho 8718: case $cc_basename in
8719: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8720: esac
8721: fi
8722: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
1.1.1.3 ! misho 8723: && test no = "$tmp_diet"
1.1 misho 8724: then
1.1.1.2 misho 8725: tmp_addflag=' $pic_flag'
1.1 misho 8726: tmp_sharedflag='-shared'
8727: case $cc_basename,$host_cpu in
8728: pgcc*) # Portland Group C compiler
1.1.1.3 ! misho 8729: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.1 misho 8730: tmp_addflag=' $pic_flag'
8731: ;;
1.1.1.2 misho 8732: pgf77* | pgf90* | pgf95* | pgfortran*)
8733: # Portland Group f77 and f90 compilers
1.1.1.3 ! misho 8734: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.1 misho 8735: tmp_addflag=' $pic_flag -Mnomain' ;;
8736: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8737: tmp_addflag=' -i_dynamic' ;;
8738: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8739: tmp_addflag=' -i_dynamic -nofor_main' ;;
8740: ifc* | ifort*) # Intel Fortran compiler
8741: tmp_addflag=' -nofor_main' ;;
8742: lf95*) # Lahey Fortran 8.1
8743: whole_archive_flag_spec=
8744: tmp_sharedflag='--shared' ;;
1.1.1.3 ! misho 8745: nagfor*) # NAGFOR 5.3
! 8746: tmp_sharedflag='-Wl,-shared' ;;
1.1.1.2 misho 8747: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1.1 misho 8748: tmp_sharedflag='-qmkshrobj'
8749: tmp_addflag= ;;
1.1.1.2 misho 8750: nvcc*) # Cuda Compiler Driver 2.2
1.1.1.3 ! misho 8751: whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.1.1.2 misho 8752: compiler_needs_object=yes
8753: ;;
1.1 misho 8754: esac
8755: case `$CC -V 2>&1 | sed 5q` in
8756: *Sun\ C*) # Sun C 5.9
1.1.1.3 ! misho 8757: whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.1 misho 8758: compiler_needs_object=yes
8759: tmp_sharedflag='-G' ;;
8760: *Sun\ F*) # Sun Fortran 8.3
8761: tmp_sharedflag='-G' ;;
8762: esac
1.1.1.3 ! misho 8763: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1 misho 8764:
1.1.1.3 ! misho 8765: if test yes = "$supports_anon_versioning"; then
1.1 misho 8766: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.1.1.3 ! misho 8767: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 8768: echo "local: *; };" >> $output_objdir/$libname.ver~
! 8769: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.1 misho 8770: fi
8771:
8772: case $cc_basename in
1.1.1.3 ! misho 8773: tcc*)
! 8774: export_dynamic_flag_spec='-rdynamic'
! 8775: ;;
1.1.1.2 misho 8776: xlf* | bgf* | bgxlf* | mpixlf*)
1.1 misho 8777: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8778: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.1.3 ! misho 8779: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1.1.2 misho 8780: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.1.1.3 ! misho 8781: if test yes = "$supports_anon_versioning"; then
1.1 misho 8782: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.1.1.3 ! misho 8783: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 8784: echo "local: *; };" >> $output_objdir/$libname.ver~
! 8785: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.1 misho 8786: fi
8787: ;;
8788: esac
8789: else
8790: ld_shlibs=no
8791: fi
8792: ;;
8793:
8794: netbsd*)
8795: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8796: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8797: wlarc=
8798: else
1.1.1.3 ! misho 8799: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 8800: 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 8801: fi
8802: ;;
8803:
8804: solaris*)
8805: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8806: ld_shlibs=no
8807: cat <<_LT_EOF 1>&2
8808:
8809: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8810: *** create shared libraries on Solaris systems. Therefore, libtool
8811: *** is disabling shared libraries support. We urge you to upgrade GNU
8812: *** binutils to release 2.9.1 or newer. Another option is to modify
8813: *** your PATH or compiler configuration so that the native linker is
8814: *** used, and then restart.
8815:
8816: _LT_EOF
8817: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.3 ! misho 8818: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 8819: 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 8820: else
8821: ld_shlibs=no
8822: fi
8823: ;;
8824:
8825: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8826: case `$LD -v 2>&1` in
8827: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8828: ld_shlibs=no
8829: cat <<_LT_EOF 1>&2
8830:
1.1.1.3 ! misho 8831: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1.1 misho 8832: *** reliably create shared libraries on SCO systems. Therefore, libtool
8833: *** is disabling shared libraries support. We urge you to upgrade GNU
8834: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8835: *** your PATH or compiler configuration so that the native linker is
8836: *** used, and then restart.
8837:
8838: _LT_EOF
8839: ;;
8840: *)
8841: # For security reasons, it is highly recommended that you always
8842: # use absolute paths for naming shared libraries, and exclude the
8843: # DT_RUNPATH tag from executables and libraries. But doing so
8844: # requires that you compile everything twice, which is a pain.
8845: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.3 ! misho 8846: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
! 8847: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 8848: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.1 misho 8849: else
8850: ld_shlibs=no
8851: fi
8852: ;;
8853: esac
8854: ;;
8855:
8856: sunos4*)
8857: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8858: wlarc=
8859: hardcode_direct=yes
8860: hardcode_shlibpath_var=no
8861: ;;
8862:
8863: *)
8864: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.3 ! misho 8865: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 8866: 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 8867: else
8868: ld_shlibs=no
8869: fi
8870: ;;
8871: esac
8872:
1.1.1.3 ! misho 8873: if test no = "$ld_shlibs"; then
1.1 misho 8874: runpath_var=
8875: hardcode_libdir_flag_spec=
8876: export_dynamic_flag_spec=
8877: whole_archive_flag_spec=
8878: fi
8879: else
8880: # PORTME fill in a description of your system's linker (not GNU ld)
8881: case $host_os in
8882: aix3*)
8883: allow_undefined_flag=unsupported
8884: always_export_symbols=yes
8885: 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'
8886: # Note: this linker hardcodes the directories in LIBPATH if there
8887: # are no directories specified by -L.
8888: hardcode_minus_L=yes
1.1.1.3 ! misho 8889: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1.1 misho 8890: # Neither direct hardcoding nor static linking is supported with a
8891: # broken collect2.
8892: hardcode_direct=unsupported
8893: fi
8894: ;;
8895:
8896: aix[4-9]*)
1.1.1.3 ! misho 8897: if test ia64 = "$host_cpu"; then
1.1 misho 8898: # On IA64, the linker does run time linking by default, so we don't
8899: # have to do anything special.
8900: aix_use_runtimelinking=no
8901: exp_sym_flag='-Bexport'
1.1.1.3 ! misho 8902: no_entry_flag=
1.1 misho 8903: else
8904: # If we're using GNU nm, then we don't want the "-C" option.
1.1.1.3 ! misho 8905: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
! 8906: # Without the "-l" option, or with the "-B" option, AIX nm treats
! 8907: # weak defined symbols like other global defined symbols, whereas
! 8908: # GNU nm marks them as "W".
! 8909: # While the 'weak' keyword is ignored in the Export File, we need
! 8910: # it in the Import File for the 'aix-soname' feature, so we have
! 8911: # to replace the "-B" option with "-P" for AIX nm.
1.1 misho 8912: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.1.1.3 ! misho 8913: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.1 misho 8914: else
1.1.1.3 ! misho 8915: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.1 misho 8916: fi
8917: aix_use_runtimelinking=no
8918:
8919: # Test if we are trying to use run time linking or normal
8920: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.1.1.3 ! misho 8921: # have runtime linking enabled, and use it for executables.
! 8922: # For shared libraries, we enable/disable runtime linking
! 8923: # depending on the kind of the shared library created -
! 8924: # when "with_aix_soname,aix_use_runtimelinking" is:
! 8925: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
! 8926: # "aix,yes" lib.so shared, rtl:yes, for executables
! 8927: # lib.a static archive
! 8928: # "both,no" lib.so.V(shr.o) shared, rtl:yes
! 8929: # lib.a(lib.so.V) shared, rtl:no, for executables
! 8930: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
! 8931: # lib.a(lib.so.V) shared, rtl:no
! 8932: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
! 8933: # lib.a static archive
1.1 misho 8934: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8935: for ld_flag in $LDFLAGS; do
1.1.1.3 ! misho 8936: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1.1 misho 8937: aix_use_runtimelinking=yes
8938: break
8939: fi
8940: done
1.1.1.3 ! misho 8941: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
! 8942: # With aix-soname=svr4, we create the lib.so.V shared archives only,
! 8943: # so we don't have lib.a shared libs to link our executables.
! 8944: # We have to force runtime linking in this case.
! 8945: aix_use_runtimelinking=yes
! 8946: LDFLAGS="$LDFLAGS -Wl,-brtl"
! 8947: fi
1.1 misho 8948: ;;
8949: esac
8950:
8951: exp_sym_flag='-bexport'
8952: no_entry_flag='-bnoentry'
8953: fi
8954:
8955: # When large executables or shared objects are built, AIX ld can
8956: # have problems creating the table of contents. If linking a library
8957: # or program results in "error TOC overflow" add -mminimal-toc to
8958: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8959: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8960:
8961: archive_cmds=''
8962: hardcode_direct=yes
8963: hardcode_direct_absolute=yes
8964: hardcode_libdir_separator=':'
8965: link_all_deplibs=yes
1.1.1.3 ! misho 8966: file_list_spec='$wl-f,'
! 8967: case $with_aix_soname,$aix_use_runtimelinking in
! 8968: aix,*) ;; # traditional, no import file
! 8969: svr4,* | *,yes) # use import file
! 8970: # The Import File defines what to hardcode.
! 8971: hardcode_direct=no
! 8972: hardcode_direct_absolute=no
! 8973: ;;
! 8974: esac
1.1 misho 8975:
1.1.1.3 ! misho 8976: if test yes = "$GCC"; then
1.1 misho 8977: case $host_os in aix4.[012]|aix4.[012].*)
8978: # We only want to do this on AIX 4.2 and lower, the check
8979: # below for broken collect2 doesn't work under 4.3+
1.1.1.3 ! misho 8980: collect2name=`$CC -print-prog-name=collect2`
1.1 misho 8981: if test -f "$collect2name" &&
8982: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8983: then
8984: # We have reworked collect2
8985: :
8986: else
8987: # We have old collect2
8988: hardcode_direct=unsupported
8989: # It fails to find uninstalled libraries when the uninstalled
8990: # path is not listed in the libpath. Setting hardcode_minus_L
8991: # to unsupported forces relinking
8992: hardcode_minus_L=yes
8993: hardcode_libdir_flag_spec='-L$libdir'
8994: hardcode_libdir_separator=
8995: fi
8996: ;;
8997: esac
8998: shared_flag='-shared'
1.1.1.3 ! misho 8999: if test yes = "$aix_use_runtimelinking"; then
! 9000: shared_flag="$shared_flag "'$wl-G'
1.1 misho 9001: fi
1.1.1.3 ! misho 9002: # Need to ensure runtime linking is disabled for the traditional
! 9003: # shared library, or the linker may eventually find shared libraries
! 9004: # /with/ Import File - we do not want to mix them.
! 9005: shared_flag_aix='-shared'
! 9006: shared_flag_svr4='-shared $wl-G'
1.1 misho 9007: else
9008: # not using gcc
1.1.1.3 ! misho 9009: if test ia64 = "$host_cpu"; then
1.1 misho 9010: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9011: # chokes on -Wl,-G. The following line is correct:
9012: shared_flag='-G'
9013: else
1.1.1.3 ! misho 9014: if test yes = "$aix_use_runtimelinking"; then
! 9015: shared_flag='$wl-G'
1.1 misho 9016: else
1.1.1.3 ! misho 9017: shared_flag='$wl-bM:SRE'
1.1 misho 9018: fi
1.1.1.3 ! misho 9019: shared_flag_aix='$wl-bM:SRE'
! 9020: shared_flag_svr4='$wl-G'
1.1 misho 9021: fi
9022: fi
9023:
1.1.1.3 ! misho 9024: export_dynamic_flag_spec='$wl-bexpall'
1.1 misho 9025: # It seems that -bexpall does not export symbols beginning with
9026: # underscore (_), so it is better to generate a list of symbols to export.
9027: always_export_symbols=yes
1.1.1.3 ! misho 9028: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.1 misho 9029: # Warning - without using the other runtime loading flags (-brtl),
9030: # -berok will link without error, but may produce a broken library.
9031: allow_undefined_flag='-berok'
9032: # Determine the default libpath from the value encoded in an
9033: # empty executable.
1.1.1.3 ! misho 9034: if test set = "${lt_cv_aix_libpath+set}"; then
1.1.1.2 misho 9035: aix_libpath=$lt_cv_aix_libpath
9036: else
9037: if ${lt_cv_aix_libpath_+:} false; then :
9038: $as_echo_n "(cached) " >&6
9039: else
9040: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 9041: /* end confdefs.h. */
9042:
9043: int
9044: main ()
9045: {
9046:
9047: ;
9048: return 0;
9049: }
9050: _ACEOF
1.1.1.2 misho 9051: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 9052:
1.1.1.2 misho 9053: lt_aix_libpath_sed='
9054: /Import File Strings/,/^$/ {
9055: /^0/ {
9056: s/^0 *\([^ ]*\) *$/\1/
9057: p
9058: }
9059: }'
9060: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9061: # Check for a 64-bit object if we didn't find anything.
9062: if test -z "$lt_cv_aix_libpath_"; then
9063: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064: fi
1.1 misho 9065: fi
1.1.1.2 misho 9066: rm -f core conftest.err conftest.$ac_objext \
9067: conftest$ac_exeext conftest.$ac_ext
9068: if test -z "$lt_cv_aix_libpath_"; then
1.1.1.3 ! misho 9069: lt_cv_aix_libpath_=/usr/lib:/lib
1.1.1.2 misho 9070: fi
1.1 misho 9071:
9072: fi
9073:
1.1.1.2 misho 9074: aix_libpath=$lt_cv_aix_libpath_
9075: fi
1.1 misho 9076:
1.1.1.3 ! misho 9077: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
! 9078: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.1 misho 9079: else
1.1.1.3 ! misho 9080: if test ia64 = "$host_cpu"; then
! 9081: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1.1 misho 9082: allow_undefined_flag="-z nodefs"
1.1.1.3 ! misho 9083: 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"
1.1 misho 9084: else
9085: # Determine the default libpath from the value encoded in an
9086: # empty executable.
1.1.1.3 ! misho 9087: if test set = "${lt_cv_aix_libpath+set}"; then
1.1.1.2 misho 9088: aix_libpath=$lt_cv_aix_libpath
9089: else
9090: if ${lt_cv_aix_libpath_+:} false; then :
9091: $as_echo_n "(cached) " >&6
9092: else
9093: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 9094: /* end confdefs.h. */
9095:
9096: int
9097: main ()
9098: {
9099:
9100: ;
9101: return 0;
9102: }
9103: _ACEOF
1.1.1.2 misho 9104: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 9105:
1.1.1.2 misho 9106: lt_aix_libpath_sed='
9107: /Import File Strings/,/^$/ {
9108: /^0/ {
9109: s/^0 *\([^ ]*\) *$/\1/
9110: p
9111: }
9112: }'
9113: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9114: # Check for a 64-bit object if we didn't find anything.
9115: if test -z "$lt_cv_aix_libpath_"; then
9116: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9117: fi
1.1 misho 9118: fi
1.1.1.2 misho 9119: rm -f core conftest.err conftest.$ac_objext \
9120: conftest$ac_exeext conftest.$ac_ext
9121: if test -z "$lt_cv_aix_libpath_"; then
1.1.1.3 ! misho 9122: lt_cv_aix_libpath_=/usr/lib:/lib
1.1.1.2 misho 9123: fi
1.1 misho 9124:
9125: fi
9126:
1.1.1.2 misho 9127: aix_libpath=$lt_cv_aix_libpath_
9128: fi
1.1 misho 9129:
1.1.1.3 ! misho 9130: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1.1 misho 9131: # Warning - without using the other run time loading flags,
9132: # -berok will link without error, but may produce a broken library.
1.1.1.3 ! misho 9133: no_undefined_flag=' $wl-bernotok'
! 9134: allow_undefined_flag=' $wl-berok'
! 9135: if test yes = "$with_gnu_ld"; then
1.1.1.2 misho 9136: # We only use this code for GNU lds that support --whole-archive.
1.1.1.3 ! misho 9137: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1.1.1.2 misho 9138: else
9139: # Exported symbols can be pulled into shared objects from archives
9140: whole_archive_flag_spec='$convenience'
9141: fi
1.1 misho 9142: archive_cmds_need_lc=yes
1.1.1.3 ! misho 9143: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
! 9144: # -brtl affects multiple linker settings, -berok does not and is overridden later
! 9145: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
! 9146: if test svr4 != "$with_aix_soname"; then
! 9147: # This is similar to how AIX traditionally builds its shared libraries.
! 9148: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
! 9149: fi
! 9150: if test aix != "$with_aix_soname"; then
! 9151: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
! 9152: else
! 9153: # used by -dlpreopen to get the symbols
! 9154: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
! 9155: fi
! 9156: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
1.1 misho 9157: fi
9158: fi
9159: ;;
9160:
9161: amigaos*)
9162: case $host_cpu in
9163: powerpc)
9164: # see comment about AmigaOS4 .so support
1.1.1.3 ! misho 9165: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.1 misho 9166: archive_expsym_cmds=''
9167: ;;
9168: m68k)
9169: 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)'
9170: hardcode_libdir_flag_spec='-L$libdir'
9171: hardcode_minus_L=yes
9172: ;;
9173: esac
9174: ;;
9175:
9176: bsdi[45]*)
9177: export_dynamic_flag_spec=-rdynamic
9178: ;;
9179:
9180: cygwin* | mingw* | pw32* | cegcc*)
9181: # When not using gcc, we currently assume that we are using
9182: # Microsoft Visual C++.
9183: # hardcode_libdir_flag_spec is actually meaningless, as there is
9184: # no search path for DLLs.
1.1.1.2 misho 9185: case $cc_basename in
9186: cl*)
9187: # Native MSVC
9188: hardcode_libdir_flag_spec=' '
9189: allow_undefined_flag=unsupported
9190: always_export_symbols=yes
9191: file_list_spec='@'
9192: # Tell ltmain to make .lib files, not .a files.
9193: libext=lib
9194: # Tell ltmain to make .dll files, not .so files.
1.1.1.3 ! misho 9195: shrext_cmds=.dll
1.1.1.2 misho 9196: # FIXME: Setting linknames here is a bad hack.
1.1.1.3 ! misho 9197: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
! 9198: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
! 9199: cp "$export_symbols" "$output_objdir/$soname.def";
! 9200: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
! 9201: else
! 9202: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
! 9203: fi~
! 9204: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
! 9205: linknames='
1.1.1.2 misho 9206: # The linker will not automatically build a static lib if we build a DLL.
9207: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9208: enable_shared_with_static_runtimes=yes
1.1.1.3 ! misho 9209: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1.1.1.2 misho 9210: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9211: # Don't use ranlib
9212: old_postinstall_cmds='chmod 644 $oldlib'
9213: postlink_cmds='lt_outputfile="@OUTPUT@"~
1.1.1.3 ! misho 9214: lt_tool_outputfile="@TOOL_OUTPUT@"~
! 9215: case $lt_outputfile in
! 9216: *.exe|*.EXE) ;;
! 9217: *)
! 9218: lt_outputfile=$lt_outputfile.exe
! 9219: lt_tool_outputfile=$lt_tool_outputfile.exe
! 9220: ;;
! 9221: esac~
! 9222: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
! 9223: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
! 9224: $RM "$lt_outputfile.manifest";
! 9225: fi'
1.1.1.2 misho 9226: ;;
9227: *)
9228: # Assume MSVC wrapper
9229: hardcode_libdir_flag_spec=' '
9230: allow_undefined_flag=unsupported
9231: # Tell ltmain to make .lib files, not .a files.
9232: libext=lib
9233: # Tell ltmain to make .dll files, not .so files.
1.1.1.3 ! misho 9234: shrext_cmds=.dll
1.1.1.2 misho 9235: # FIXME: Setting linknames here is a bad hack.
9236: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9237: # The linker will automatically build a .lib file if we build a DLL.
9238: old_archive_from_new_cmds='true'
9239: # FIXME: Should let the user specify the lib program.
9240: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9241: enable_shared_with_static_runtimes=yes
9242: ;;
9243: esac
1.1 misho 9244: ;;
9245:
9246: darwin* | rhapsody*)
9247:
9248:
9249: archive_cmds_need_lc=no
9250: hardcode_direct=no
9251: hardcode_automatic=yes
9252: hardcode_shlibpath_var=unsupported
1.1.1.3 ! misho 9253: if test yes = "$lt_cv_ld_force_load"; then
! 9254: 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\"`'
! 9255:
1.1.1.2 misho 9256: else
9257: whole_archive_flag_spec=''
9258: fi
1.1 misho 9259: link_all_deplibs=yes
1.1.1.3 ! misho 9260: allow_undefined_flag=$_lt_dar_allow_undefined
1.1 misho 9261: case $cc_basename in
1.1.1.3 ! misho 9262: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.1 misho 9263: *) _lt_dar_can_shared=$GCC ;;
9264: esac
1.1.1.3 ! misho 9265: if test yes = "$_lt_dar_can_shared"; then
1.1.1.2 misho 9266: output_verbose_link_cmd=func_echo_all
1.1.1.3 ! misho 9267: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
! 9268: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
! 9269: 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"
! 9270: 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"
1.1 misho 9271:
9272: else
9273: ld_shlibs=no
9274: fi
9275:
9276: ;;
9277:
9278: dgux*)
9279: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280: hardcode_libdir_flag_spec='-L$libdir'
9281: hardcode_shlibpath_var=no
9282: ;;
9283:
9284: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9285: # support. Future versions do this automatically, but an explicit c++rt0.o
9286: # does not break anything, and helps significantly (at the cost of a little
9287: # extra space).
9288: freebsd2.2*)
9289: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9290: hardcode_libdir_flag_spec='-R$libdir'
9291: hardcode_direct=yes
9292: hardcode_shlibpath_var=no
9293: ;;
9294:
9295: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.1.3 ! misho 9296: freebsd2.*)
1.1 misho 9297: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9298: hardcode_direct=yes
9299: hardcode_minus_L=yes
9300: hardcode_shlibpath_var=no
9301: ;;
9302:
9303: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9304: freebsd* | dragonfly*)
1.1.1.2 misho 9305: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9306: hardcode_libdir_flag_spec='-R$libdir'
9307: hardcode_direct=yes
9308: hardcode_shlibpath_var=no
9309: ;;
9310:
9311: hpux9*)
1.1.1.3 ! misho 9312: if test yes = "$GCC"; then
! 9313: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.1 misho 9314: else
1.1.1.3 ! misho 9315: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.1 misho 9316: fi
1.1.1.3 ! misho 9317: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.1 misho 9318: hardcode_libdir_separator=:
9319: hardcode_direct=yes
9320:
9321: # hardcode_minus_L: Not really in the search PATH,
9322: # but as the default location of the library.
9323: hardcode_minus_L=yes
1.1.1.3 ! misho 9324: export_dynamic_flag_spec='$wl-E'
1.1 misho 9325: ;;
9326:
9327: hpux10*)
1.1.1.3 ! misho 9328: if test yes,no = "$GCC,$with_gnu_ld"; then
! 9329: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9330: else
9331: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9332: fi
1.1.1.3 ! misho 9333: if test no = "$with_gnu_ld"; then
! 9334: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.1 misho 9335: hardcode_libdir_separator=:
9336: hardcode_direct=yes
9337: hardcode_direct_absolute=yes
1.1.1.3 ! misho 9338: export_dynamic_flag_spec='$wl-E'
1.1 misho 9339: # hardcode_minus_L: Not really in the search PATH,
9340: # but as the default location of the library.
9341: hardcode_minus_L=yes
9342: fi
9343: ;;
9344:
9345: hpux11*)
1.1.1.3 ! misho 9346: if test yes,no = "$GCC,$with_gnu_ld"; then
1.1 misho 9347: case $host_cpu in
9348: hppa*64*)
1.1.1.3 ! misho 9349: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9350: ;;
9351: ia64*)
1.1.1.3 ! misho 9352: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9353: ;;
9354: *)
1.1.1.3 ! misho 9355: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9356: ;;
9357: esac
9358: else
9359: case $host_cpu in
9360: hppa*64*)
1.1.1.3 ! misho 9361: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9362: ;;
9363: ia64*)
1.1.1.3 ! misho 9364: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9365: ;;
9366: *)
1.1.1.2 misho 9367:
9368: # Older versions of the 11.00 compiler do not understand -b yet
9369: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9371: $as_echo_n "checking if $CC understands -b... " >&6; }
9372: if ${lt_cv_prog_compiler__b+:} false; then :
9373: $as_echo_n "(cached) " >&6
9374: else
9375: lt_cv_prog_compiler__b=no
1.1.1.3 ! misho 9376: save_LDFLAGS=$LDFLAGS
1.1.1.2 misho 9377: LDFLAGS="$LDFLAGS -b"
9378: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9379: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9380: # The linker can only warn and ignore the option if not recognized
9381: # So say no if there are warnings
9382: if test -s conftest.err; then
9383: # Append any errors to the config.log.
9384: cat conftest.err 1>&5
9385: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9386: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9387: if diff conftest.exp conftest.er2 >/dev/null; then
9388: lt_cv_prog_compiler__b=yes
9389: fi
9390: else
9391: lt_cv_prog_compiler__b=yes
9392: fi
9393: fi
9394: $RM -r conftest*
1.1.1.3 ! misho 9395: LDFLAGS=$save_LDFLAGS
1.1.1.2 misho 9396:
9397: fi
9398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9399: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9400:
1.1.1.3 ! misho 9401: if test yes = "$lt_cv_prog_compiler__b"; then
! 9402: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1.1.2 misho 9403: else
9404: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9405: fi
9406:
1.1 misho 9407: ;;
9408: esac
9409: fi
1.1.1.3 ! misho 9410: if test no = "$with_gnu_ld"; then
! 9411: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.1 misho 9412: hardcode_libdir_separator=:
9413:
9414: case $host_cpu in
9415: hppa*64*|ia64*)
9416: hardcode_direct=no
9417: hardcode_shlibpath_var=no
9418: ;;
9419: *)
9420: hardcode_direct=yes
9421: hardcode_direct_absolute=yes
1.1.1.3 ! misho 9422: export_dynamic_flag_spec='$wl-E'
1.1 misho 9423:
9424: # hardcode_minus_L: Not really in the search PATH,
9425: # but as the default location of the library.
9426: hardcode_minus_L=yes
9427: ;;
9428: esac
9429: fi
9430: ;;
9431:
9432: irix5* | irix6* | nonstopux*)
1.1.1.3 ! misho 9433: if test yes = "$GCC"; then
! 9434: 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 9435: # Try to use the -exported_symbol ld option, if it does not
9436: # work, assume that -exports_file does not work either and
9437: # implicitly export all symbols.
1.1.1.2 misho 9438: # This should be the same for all languages, so no per-tag cache variable.
9439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9440: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9441: if ${lt_cv_irix_exported_symbol+:} false; then :
9442: $as_echo_n "(cached) " >&6
9443: else
1.1.1.3 ! misho 9444: save_LDFLAGS=$LDFLAGS
! 9445: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1.1.1.2 misho 9446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447: /* end confdefs.h. */
9448: int foo (void) { return 0; }
1.1 misho 9449: _ACEOF
1.1.1.2 misho 9450: if ac_fn_c_try_link "$LINENO"; then :
9451: lt_cv_irix_exported_symbol=yes
1.1 misho 9452: else
1.1.1.2 misho 9453: lt_cv_irix_exported_symbol=no
1.1 misho 9454: fi
1.1.1.2 misho 9455: rm -f core conftest.err conftest.$ac_objext \
9456: conftest$ac_exeext conftest.$ac_ext
1.1.1.3 ! misho 9457: LDFLAGS=$save_LDFLAGS
1.1.1.2 misho 9458: fi
9459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9460: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.1.1.3 ! misho 9461: if test yes = "$lt_cv_irix_exported_symbol"; then
! 9462: 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'
1.1.1.2 misho 9463: fi
1.1 misho 9464: else
1.1.1.3 ! misho 9465: 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'
! 9466: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
1.1 misho 9467: fi
9468: archive_cmds_need_lc='no'
1.1.1.3 ! misho 9469: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1 misho 9470: hardcode_libdir_separator=:
9471: inherit_rpath=yes
9472: link_all_deplibs=yes
9473: ;;
9474:
1.1.1.3 ! misho 9475: linux*)
! 9476: case $cc_basename in
! 9477: tcc*)
! 9478: # Fabrice Bellard et al's Tiny C Compiler
! 9479: ld_shlibs=yes
! 9480: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 9481: ;;
! 9482: esac
! 9483: ;;
! 9484:
1.1 misho 9485: netbsd*)
9486: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9488: else
9489: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9490: fi
9491: hardcode_libdir_flag_spec='-R$libdir'
9492: hardcode_direct=yes
9493: hardcode_shlibpath_var=no
9494: ;;
9495:
9496: newsos6)
9497: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498: hardcode_direct=yes
1.1.1.3 ! misho 9499: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1 misho 9500: hardcode_libdir_separator=:
9501: hardcode_shlibpath_var=no
9502: ;;
9503:
9504: *nto* | *qnx*)
9505: ;;
9506:
1.1.1.3 ! misho 9507: openbsd* | bitrig*)
1.1 misho 9508: if test -f /usr/libexec/ld.so; then
9509: hardcode_direct=yes
9510: hardcode_shlibpath_var=no
9511: hardcode_direct_absolute=yes
1.1.1.3 ! misho 9512: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.1 misho 9513: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.1.1.3 ! misho 9514: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
! 9515: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
! 9516: export_dynamic_flag_spec='$wl-E'
1.1 misho 9517: else
1.1.1.3 ! misho 9518: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 9519: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1.1 misho 9520: fi
9521: else
9522: ld_shlibs=no
9523: fi
9524: ;;
9525:
9526: os2*)
9527: hardcode_libdir_flag_spec='-L$libdir'
9528: hardcode_minus_L=yes
9529: allow_undefined_flag=unsupported
1.1.1.3 ! misho 9530: shrext_cmds=.dll
! 9531: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 9532: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 9533: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 9534: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 9535: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
! 9536: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 9537: emximp -o $lib $output_objdir/$libname.def'
! 9538: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 9539: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 9540: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 9541: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 9542: prefix_cmds="$SED"~
! 9543: if test EXPORTS = "`$SED 1q $export_symbols`"; then
! 9544: prefix_cmds="$prefix_cmds -e 1d";
! 9545: fi~
! 9546: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
! 9547: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
! 9548: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 9549: emximp -o $lib $output_objdir/$libname.def'
! 9550: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
! 9551: enable_shared_with_static_runtimes=yes
1.1 misho 9552: ;;
9553:
9554: osf3*)
1.1.1.3 ! misho 9555: if test yes = "$GCC"; then
! 9556: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
! 9557: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.1 misho 9558: else
9559: allow_undefined_flag=' -expect_unresolved \*'
1.1.1.3 ! misho 9560: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.1 misho 9561: fi
9562: archive_cmds_need_lc='no'
1.1.1.3 ! misho 9563: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1 misho 9564: hardcode_libdir_separator=:
9565: ;;
9566:
9567: osf4* | osf5*) # as osf3* with the addition of -msym flag
1.1.1.3 ! misho 9568: if test yes = "$GCC"; then
! 9569: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
! 9570: 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'
! 9571: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.1 misho 9572: else
9573: allow_undefined_flag=' -expect_unresolved \*'
1.1.1.3 ! misho 9574: archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.1 misho 9575: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
1.1.1.3 ! misho 9576: $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
1.1 misho 9577:
9578: # Both c and cxx compiler support -rpath directly
9579: hardcode_libdir_flag_spec='-rpath $libdir'
9580: fi
9581: archive_cmds_need_lc='no'
9582: hardcode_libdir_separator=:
9583: ;;
9584:
9585: solaris*)
9586: no_undefined_flag=' -z defs'
1.1.1.3 ! misho 9587: if test yes = "$GCC"; then
! 9588: wlarc='$wl'
! 9589: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9590: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.3 ! misho 9591: $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 9592: else
9593: case `$CC -V 2>&1` in
9594: *"Compilers 5.0"*)
9595: wlarc=''
1.1.1.3 ! misho 9596: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.1 misho 9597: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.3 ! misho 9598: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1.1 misho 9599: ;;
9600: *)
1.1.1.3 ! misho 9601: wlarc='$wl'
! 9602: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9603: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.3 ! misho 9604: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.1 misho 9605: ;;
9606: esac
9607: fi
9608: hardcode_libdir_flag_spec='-R$libdir'
9609: hardcode_shlibpath_var=no
9610: case $host_os in
9611: solaris2.[0-5] | solaris2.[0-5].*) ;;
9612: *)
9613: # The compiler driver will combine and reorder linker options,
1.1.1.3 ! misho 9614: # but understands '-z linker_flag'. GCC discards it without '$wl',
1.1 misho 9615: # but is careful enough not to reorder.
9616: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1.3 ! misho 9617: if test yes = "$GCC"; then
! 9618: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.1 misho 9619: else
9620: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9621: fi
9622: ;;
9623: esac
9624: link_all_deplibs=yes
9625: ;;
9626:
9627: sunos4*)
1.1.1.3 ! misho 9628: if test sequent = "$host_vendor"; then
1.1 misho 9629: # Use $CC to link under sequent, because it throws in some extra .o
9630: # files that make .init and .fini sections work.
1.1.1.3 ! misho 9631: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9632: else
9633: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9634: fi
9635: hardcode_libdir_flag_spec='-L$libdir'
9636: hardcode_direct=yes
9637: hardcode_minus_L=yes
9638: hardcode_shlibpath_var=no
9639: ;;
9640:
9641: sysv4)
9642: case $host_vendor in
9643: sni)
9644: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645: hardcode_direct=yes # is this really true???
9646: ;;
9647: siemens)
9648: ## LD is ld it makes a PLAMLIB
9649: ## CC just makes a GrossModule.
9650: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9651: reload_cmds='$CC -r -o $output$reload_objs'
9652: hardcode_direct=no
9653: ;;
9654: motorola)
9655: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9657: ;;
9658: esac
9659: runpath_var='LD_RUN_PATH'
9660: hardcode_shlibpath_var=no
9661: ;;
9662:
9663: sysv4.3*)
9664: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665: hardcode_shlibpath_var=no
9666: export_dynamic_flag_spec='-Bexport'
9667: ;;
9668:
9669: sysv4*MP*)
9670: if test -d /usr/nec; then
9671: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672: hardcode_shlibpath_var=no
9673: runpath_var=LD_RUN_PATH
9674: hardcode_runpath_var=yes
9675: ld_shlibs=yes
9676: fi
9677: ;;
9678:
9679: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.1.1.3 ! misho 9680: no_undefined_flag='$wl-z,text'
1.1 misho 9681: archive_cmds_need_lc=no
9682: hardcode_shlibpath_var=no
9683: runpath_var='LD_RUN_PATH'
9684:
1.1.1.3 ! misho 9685: if test yes = "$GCC"; then
! 9686: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9687: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9688: else
1.1.1.3 ! misho 9689: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9690: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9691: fi
9692: ;;
9693:
9694: sysv5* | sco3.2v5* | sco5v6*)
1.1.1.3 ! misho 9695: # Note: We CANNOT use -z defs as we might desire, because we do not
1.1 misho 9696: # link with -lc, and that would cause any symbols used from libc to
9697: # always be unresolved, which means just about no library would
9698: # ever link correctly. If we're not using GNU ld we use -z text
9699: # though, which does catch some bad symbols but isn't as heavy-handed
9700: # as -z defs.
1.1.1.3 ! misho 9701: no_undefined_flag='$wl-z,text'
! 9702: allow_undefined_flag='$wl-z,nodefs'
1.1 misho 9703: archive_cmds_need_lc=no
9704: hardcode_shlibpath_var=no
1.1.1.3 ! misho 9705: hardcode_libdir_flag_spec='$wl-R,$libdir'
1.1 misho 9706: hardcode_libdir_separator=':'
9707: link_all_deplibs=yes
1.1.1.3 ! misho 9708: export_dynamic_flag_spec='$wl-Bexport'
1.1 misho 9709: runpath_var='LD_RUN_PATH'
9710:
1.1.1.3 ! misho 9711: if test yes = "$GCC"; then
! 9712: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9713: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9714: else
1.1.1.3 ! misho 9715: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9716: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9717: fi
9718: ;;
9719:
9720: uts4*)
9721: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722: hardcode_libdir_flag_spec='-L$libdir'
9723: hardcode_shlibpath_var=no
9724: ;;
9725:
9726: *)
9727: ld_shlibs=no
9728: ;;
9729: esac
9730:
1.1.1.3 ! misho 9731: if test sni = "$host_vendor"; then
1.1 misho 9732: case $host in
9733: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.1.1.3 ! misho 9734: export_dynamic_flag_spec='$wl-Blargedynsym'
1.1 misho 9735: ;;
9736: esac
9737: fi
9738: fi
9739:
1.1.1.2 misho 9740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1.1 misho 9741: $as_echo "$ld_shlibs" >&6; }
1.1.1.3 ! misho 9742: test no = "$ld_shlibs" && can_build_shared=no
1.1 misho 9743:
9744: with_gnu_ld=$with_gnu_ld
9745:
9746:
9747:
9748:
9749:
9750:
9751:
9752:
9753:
9754:
9755:
9756:
9757:
9758:
9759:
9760: #
9761: # Do we need to explicitly link libc?
9762: #
9763: case "x$archive_cmds_need_lc" in
9764: x|xyes)
9765: # Assume -lc should be added
9766: archive_cmds_need_lc=yes
9767:
1.1.1.3 ! misho 9768: if test yes,yes = "$GCC,$enable_shared"; then
1.1 misho 9769: case $archive_cmds in
9770: *'~'*)
9771: # FIXME: we may have to deal with multi-command sequences.
9772: ;;
9773: '$CC '*)
9774: # Test whether the compiler implicitly links with -lc since on some
9775: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9776: # to ld, don't add -lc before -lgcc.
1.1.1.2 misho 9777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1.1 misho 9778: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.1.2 misho 9779: if ${lt_cv_archive_cmds_need_lc+:} false; then :
9780: $as_echo_n "(cached) " >&6
9781: else
9782: $RM conftest*
9783: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 misho 9784:
1.1.1.2 misho 9785: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 9786: (eval $ac_compile) 2>&5
9787: ac_status=$?
1.1.1.2 misho 9788: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9789: test $ac_status = 0; } 2>conftest.err; then
9790: soname=conftest
9791: lib=conftest
9792: libobjs=conftest.$ac_objext
9793: deplibs=
9794: wl=$lt_prog_compiler_wl
9795: pic_flag=$lt_prog_compiler_pic
9796: compiler_flags=-v
9797: linker_flags=-v
9798: verstring=
9799: output_objdir=.
9800: libname=conftest
9801: lt_save_allow_undefined_flag=$allow_undefined_flag
9802: allow_undefined_flag=
9803: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.1 misho 9804: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9805: ac_status=$?
1.1.1.2 misho 9806: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9807: test $ac_status = 0; }
9808: then
9809: lt_cv_archive_cmds_need_lc=no
9810: else
9811: lt_cv_archive_cmds_need_lc=yes
9812: fi
9813: allow_undefined_flag=$lt_save_allow_undefined_flag
9814: else
9815: cat conftest.err 1>&5
9816: fi
9817: $RM conftest*
9818:
9819: fi
9820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9821: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9822: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1.1 misho 9823: ;;
9824: esac
9825: fi
9826: ;;
9827: esac
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901:
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
9921:
9922:
9923:
9924:
9925:
9926:
9927:
9928:
9929:
9930:
9931:
9932:
9933:
9934:
9935:
9936:
9937:
9938:
9939:
9940:
9941:
9942:
9943:
9944:
9945:
9946:
9947:
9948:
9949:
9950:
9951:
9952:
9953:
9954:
9955:
9956:
9957:
9958:
9959:
9960:
9961:
9962:
9963:
9964:
9965:
9966:
9967:
9968:
9969:
9970:
9971:
9972:
9973:
9974:
9975:
9976:
9977:
9978:
9979:
1.1.1.2 misho 9980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1.1 misho 9981: $as_echo_n "checking dynamic linker characteristics... " >&6; }
9982:
1.1.1.3 ! misho 9983: if test yes = "$GCC"; then
1.1 misho 9984: case $host_os in
1.1.1.3 ! misho 9985: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
! 9986: *) lt_awk_arg='/^libraries:/' ;;
1.1 misho 9987: esac
1.1.1.2 misho 9988: case $host_os in
1.1.1.3 ! misho 9989: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
! 9990: *) lt_sed_strip_eq='s|=/|/|g' ;;
1.1.1.2 misho 9991: esac
9992: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9993: case $lt_search_path_spec in
9994: *\;*)
1.1 misho 9995: # if the path contains ";" then we assume it to be the separator
9996: # otherwise default to the standard path separator (i.e. ":") - it is
9997: # assumed that no part of a normal pathname contains ";" but that should
9998: # okay in the real world where ";" in dirpaths is itself problematic.
1.1.1.2 misho 9999: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10000: ;;
10001: *)
10002: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10003: ;;
10004: esac
1.1 misho 10005: # Ok, now we have the path, separated by spaces, we can step through it
1.1.1.3 ! misho 10006: # and add multilib dir if necessary...
1.1 misho 10007: lt_tmp_lt_search_path_spec=
1.1.1.3 ! misho 10008: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
! 10009: # ...but if some path component already ends with the multilib dir we assume
! 10010: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
! 10011: case "$lt_multi_os_dir; $lt_search_path_spec " in
! 10012: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
! 10013: lt_multi_os_dir=
! 10014: ;;
! 10015: esac
1.1 misho 10016: for lt_sys_path in $lt_search_path_spec; do
1.1.1.3 ! misho 10017: if test -d "$lt_sys_path$lt_multi_os_dir"; then
! 10018: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
! 10019: elif test -n "$lt_multi_os_dir"; then
1.1 misho 10020: test -d "$lt_sys_path" && \
10021: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10022: fi
10023: done
1.1.1.2 misho 10024: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.1.1.3 ! misho 10025: BEGIN {RS = " "; FS = "/|\n";} {
! 10026: lt_foo = "";
! 10027: lt_count = 0;
1.1 misho 10028: for (lt_i = NF; lt_i > 0; lt_i--) {
10029: if ($lt_i != "" && $lt_i != ".") {
10030: if ($lt_i == "..") {
10031: lt_count++;
10032: } else {
10033: if (lt_count == 0) {
1.1.1.3 ! misho 10034: lt_foo = "/" $lt_i lt_foo;
1.1 misho 10035: } else {
10036: lt_count--;
10037: }
10038: }
10039: }
10040: }
10041: if (lt_foo != "") { lt_freq[lt_foo]++; }
10042: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10043: }'`
1.1.1.2 misho 10044: # AWK program above erroneously prepends '/' to C:/dos/paths
10045: # for these hosts.
10046: case $host_os in
10047: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
1.1.1.3 ! misho 10048: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1.1.1.2 misho 10049: esac
10050: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misho 10051: else
10052: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10053: fi
10054: library_names_spec=
10055: libname_spec='lib$name'
10056: soname_spec=
1.1.1.3 ! misho 10057: shrext_cmds=.so
1.1 misho 10058: postinstall_cmds=
10059: postuninstall_cmds=
10060: finish_cmds=
10061: finish_eval=
10062: shlibpath_var=
10063: shlibpath_overrides_runpath=unknown
10064: version_type=none
10065: dynamic_linker="$host_os ld.so"
10066: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10067: need_lib_prefix=unknown
10068: hardcode_into_libs=no
10069:
10070: # when you set need_version to no, make sure it does not cause -set_version
10071: # flags to be left without arguments
10072: need_version=unknown
10073:
1.1.1.3 ! misho 10074:
! 10075:
1.1 misho 10076: case $host_os in
10077: aix3*)
1.1.1.3 ! misho 10078: version_type=linux # correct to gnu/linux during the next big refactor
! 10079: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.1 misho 10080: shlibpath_var=LIBPATH
10081:
10082: # AIX 3 has no versioning support, so we append a major version to the name.
1.1.1.3 ! misho 10083: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10084: ;;
10085:
10086: aix[4-9]*)
1.1.1.3 ! misho 10087: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10088: need_lib_prefix=no
10089: need_version=no
10090: hardcode_into_libs=yes
1.1.1.3 ! misho 10091: if test ia64 = "$host_cpu"; then
1.1 misho 10092: # AIX 5 supports IA64
1.1.1.3 ! misho 10093: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.1 misho 10094: shlibpath_var=LD_LIBRARY_PATH
10095: else
10096: # With GCC up to 2.95.x, collect2 would create an import file
10097: # for dependence libraries. The import file would start with
1.1.1.3 ! misho 10098: # the line '#! .'. This would cause the generated library to
! 10099: # depend on '.', always an invalid library. This was fixed in
1.1 misho 10100: # development snapshots of GCC prior to 3.0.
10101: case $host_os in
10102: aix4 | aix4.[01] | aix4.[01].*)
10103: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10104: echo ' yes '
1.1.1.3 ! misho 10105: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.1 misho 10106: :
10107: else
10108: can_build_shared=no
10109: fi
10110: ;;
10111: esac
1.1.1.3 ! misho 10112: # Using Import Files as archive members, it is possible to support
! 10113: # filename-based versioning of shared library archives on AIX. While
! 10114: # this would work for both with and without runtime linking, it will
! 10115: # prevent static linking of such archives. So we do filename-based
! 10116: # shared library versioning with .so extension only, which is used
! 10117: # when both runtime linking and shared linking is enabled.
! 10118: # Unfortunately, runtime linking may impact performance, so we do
! 10119: # not want this to be the default eventually. Also, we use the
! 10120: # versioned .so libs for executables only if there is the -brtl
! 10121: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
! 10122: # To allow for filename-based versioning support, we need to create
! 10123: # libNAME.so.V as an archive file, containing:
! 10124: # *) an Import File, referring to the versioned filename of the
! 10125: # archive as well as the shared archive member, telling the
! 10126: # bitwidth (32 or 64) of that shared object, and providing the
! 10127: # list of exported symbols of that shared object, eventually
! 10128: # decorated with the 'weak' keyword
! 10129: # *) the shared object with the F_LOADONLY flag set, to really avoid
! 10130: # it being seen by the linker.
! 10131: # At run time we better use the real file rather than another symlink,
! 10132: # but for link time we create the symlink libNAME.so -> libNAME.so.V
! 10133:
! 10134: case $with_aix_soname,$aix_use_runtimelinking in
! 10135: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.1 misho 10136: # soname into executable. Probably we can add versioning support to
10137: # collect2, so additional links can be useful in future.
1.1.1.3 ! misho 10138: aix,yes) # traditional libtool
! 10139: dynamic_linker='AIX unversionable lib.so'
1.1 misho 10140: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10141: # instead of lib<name>.a to let people know that these are not
10142: # typical AIX shared libraries.
1.1.1.3 ! misho 10143: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10144: ;;
! 10145: aix,no) # traditional AIX only
! 10146: dynamic_linker='AIX lib.a(lib.so.V)'
1.1 misho 10147: # We preserve .a as extension for shared libraries through AIX4.2
10148: # and later when we are not doing run time linking.
1.1.1.3 ! misho 10149: library_names_spec='$libname$release.a $libname.a'
! 10150: soname_spec='$libname$release$shared_ext$major'
! 10151: ;;
! 10152: svr4,*) # full svr4 only
! 10153: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
! 10154: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
! 10155: # We do not specify a path in Import Files, so LIBPATH fires.
! 10156: shlibpath_overrides_runpath=yes
! 10157: ;;
! 10158: *,yes) # both, prefer svr4
! 10159: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
! 10160: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
! 10161: # unpreferred sharedlib libNAME.a needs extra handling
! 10162: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
! 10163: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
! 10164: # We do not specify a path in Import Files, so LIBPATH fires.
! 10165: shlibpath_overrides_runpath=yes
! 10166: ;;
! 10167: *,no) # both, prefer aix
! 10168: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
! 10169: library_names_spec='$libname$release.a $libname.a'
! 10170: soname_spec='$libname$release$shared_ext$major'
! 10171: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
! 10172: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
! 10173: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
! 10174: ;;
! 10175: esac
1.1 misho 10176: shlibpath_var=LIBPATH
10177: fi
10178: ;;
10179:
10180: amigaos*)
10181: case $host_cpu in
10182: powerpc)
10183: # Since July 2007 AmigaOS4 officially supports .so libraries.
10184: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.1.1.3 ! misho 10185: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1 misho 10186: ;;
10187: m68k)
10188: library_names_spec='$libname.ixlibrary $libname.a'
10189: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.3 ! misho 10190: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.1 misho 10191: ;;
10192: esac
10193: ;;
10194:
10195: beos*)
1.1.1.3 ! misho 10196: library_names_spec='$libname$shared_ext'
1.1 misho 10197: dynamic_linker="$host_os ld.so"
10198: shlibpath_var=LIBRARY_PATH
10199: ;;
10200:
10201: bsdi[45]*)
1.1.1.3 ! misho 10202: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10203: need_version=no
1.1.1.3 ! misho 10204: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10205: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10206: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10207: shlibpath_var=LD_LIBRARY_PATH
10208: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10209: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10210: # the default ld.so.conf also contains /usr/contrib/lib and
10211: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10212: # libtool to hard-code these into programs
10213: ;;
10214:
10215: cygwin* | mingw* | pw32* | cegcc*)
10216: version_type=windows
1.1.1.3 ! misho 10217: shrext_cmds=.dll
1.1 misho 10218: need_version=no
10219: need_lib_prefix=no
10220:
1.1.1.2 misho 10221: case $GCC,$cc_basename in
10222: yes,*)
10223: # gcc
1.1 misho 10224: library_names_spec='$libname.dll.a'
10225: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.1.1.3 ! misho 10226: postinstall_cmds='base_file=`basename \$file`~
! 10227: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.1 misho 10228: dldir=$destdir/`dirname \$dlpath`~
10229: test -d \$dldir || mkdir -p \$dldir~
10230: $install_prog $dir/$dlname \$dldir/$dlname~
10231: chmod a+x \$dldir/$dlname~
10232: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10233: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10234: fi'
10235: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10236: dlpath=$dir/\$dldll~
10237: $RM \$dlpath'
10238: shlibpath_overrides_runpath=yes
10239:
10240: case $host_os in
10241: cygwin*)
10242: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.1.1.3 ! misho 10243: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1.1.2 misho 10244:
10245: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1.1 misho 10246: ;;
10247: mingw* | cegcc*)
10248: # MinGW DLLs use traditional 'lib' prefix
1.1.1.3 ! misho 10249: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1 misho 10250: ;;
10251: pw32*)
10252: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.3 ! misho 10253: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.1 misho 10254: ;;
10255: esac
1.1.1.2 misho 10256: dynamic_linker='Win32 ld.exe'
10257: ;;
10258:
10259: *,cl*)
10260: # Native MSVC
10261: libname_spec='$name'
1.1.1.3 ! misho 10262: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
! 10263: library_names_spec='$libname.dll.lib'
1.1.1.2 misho 10264:
10265: case $build_os in
10266: mingw*)
10267: sys_lib_search_path_spec=
10268: lt_save_ifs=$IFS
10269: IFS=';'
10270: for lt_path in $LIB
10271: do
10272: IFS=$lt_save_ifs
10273: # Let DOS variable expansion print the short 8.3 style file name.
10274: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10275: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10276: done
10277: IFS=$lt_save_ifs
10278: # Convert to MSYS style.
10279: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10280: ;;
10281: cygwin*)
10282: # Convert to unix form, then to dos form, then back to unix form
10283: # but this time dos style (no spaces!) so that the unix form looks
10284: # like /cygdrive/c/PROGRA~1:/cygdr...
10285: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10286: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10287: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10288: ;;
10289: *)
1.1.1.3 ! misho 10290: sys_lib_search_path_spec=$LIB
1.1.1.2 misho 10291: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10292: # It is most probably a Windows format PATH.
10293: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10294: else
10295: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10296: fi
10297: # FIXME: find the short name or the path components, as spaces are
10298: # common. (e.g. "Program Files" -> "PROGRA~1")
10299: ;;
10300: esac
10301:
10302: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.1.1.3 ! misho 10303: postinstall_cmds='base_file=`basename \$file`~
! 10304: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.1.1.2 misho 10305: dldir=$destdir/`dirname \$dlpath`~
10306: test -d \$dldir || mkdir -p \$dldir~
10307: $install_prog $dir/$dlname \$dldir/$dlname'
10308: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10309: dlpath=$dir/\$dldll~
10310: $RM \$dlpath'
10311: shlibpath_overrides_runpath=yes
10312: dynamic_linker='Win32 link.exe'
1.1 misho 10313: ;;
10314:
10315: *)
1.1.1.2 misho 10316: # Assume MSVC wrapper
1.1.1.3 ! misho 10317: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.1.1.2 misho 10318: dynamic_linker='Win32 ld.exe'
1.1 misho 10319: ;;
10320: esac
10321: # FIXME: first we should search . and the directory the executable is in
10322: shlibpath_var=PATH
10323: ;;
10324:
10325: darwin* | rhapsody*)
10326: dynamic_linker="$host_os dyld"
10327: version_type=darwin
10328: need_lib_prefix=no
10329: need_version=no
1.1.1.3 ! misho 10330: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
! 10331: soname_spec='$libname$release$major$shared_ext'
1.1 misho 10332: shlibpath_overrides_runpath=yes
10333: shlibpath_var=DYLD_LIBRARY_PATH
10334: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10335:
10336: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10337: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10338: ;;
10339:
10340: dgux*)
1.1.1.3 ! misho 10341: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10342: need_lib_prefix=no
10343: need_version=no
1.1.1.3 ! misho 10344: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10345: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10346: shlibpath_var=LD_LIBRARY_PATH
10347: ;;
10348:
10349: freebsd* | dragonfly*)
10350: # DragonFly does not have aout. When/if they implement a new
10351: # versioning mechanism, adjust this.
10352: if test -x /usr/bin/objformat; then
10353: objformat=`/usr/bin/objformat`
10354: else
10355: case $host_os in
1.1.1.3 ! misho 10356: freebsd[23].*) objformat=aout ;;
1.1 misho 10357: *) objformat=elf ;;
10358: esac
10359: fi
10360: version_type=freebsd-$objformat
10361: case $version_type in
10362: freebsd-elf*)
1.1.1.3 ! misho 10363: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10364: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10365: need_version=no
10366: need_lib_prefix=no
10367: ;;
10368: freebsd-*)
1.1.1.3 ! misho 10369: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.1 misho 10370: need_version=yes
10371: ;;
10372: esac
10373: shlibpath_var=LD_LIBRARY_PATH
10374: case $host_os in
1.1.1.3 ! misho 10375: freebsd2.*)
1.1 misho 10376: shlibpath_overrides_runpath=yes
10377: ;;
10378: freebsd3.[01]* | freebsdelf3.[01]*)
10379: shlibpath_overrides_runpath=yes
10380: hardcode_into_libs=yes
10381: ;;
10382: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10383: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10384: shlibpath_overrides_runpath=no
10385: hardcode_into_libs=yes
10386: ;;
10387: *) # from 4.6 on, and DragonFly
10388: shlibpath_overrides_runpath=yes
10389: hardcode_into_libs=yes
10390: ;;
10391: esac
10392: ;;
10393:
1.1.1.2 misho 10394: haiku*)
1.1.1.3 ! misho 10395: version_type=linux # correct to gnu/linux during the next big refactor
1.1.1.2 misho 10396: need_lib_prefix=no
10397: need_version=no
10398: dynamic_linker="$host_os runtime_loader"
1.1.1.3 ! misho 10399: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10400: soname_spec='$libname$release$shared_ext$major'
1.1.1.2 misho 10401: shlibpath_var=LIBRARY_PATH
1.1.1.3 ! misho 10402: shlibpath_overrides_runpath=no
1.1.1.2 misho 10403: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10404: hardcode_into_libs=yes
10405: ;;
10406:
1.1 misho 10407: hpux9* | hpux10* | hpux11*)
10408: # Give a soname corresponding to the major version so that dld.sl refuses to
10409: # link against other versions.
10410: version_type=sunos
10411: need_lib_prefix=no
10412: need_version=no
10413: case $host_cpu in
10414: ia64*)
10415: shrext_cmds='.so'
10416: hardcode_into_libs=yes
10417: dynamic_linker="$host_os dld.so"
10418: shlibpath_var=LD_LIBRARY_PATH
10419: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.1.1.3 ! misho 10420: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10421: soname_spec='$libname$release$shared_ext$major'
! 10422: if test 32 = "$HPUX_IA64_MODE"; then
1.1 misho 10423: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.1.1.3 ! misho 10424: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.1 misho 10425: else
10426: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.1.1.3 ! misho 10427: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.1 misho 10428: fi
10429: ;;
10430: hppa*64*)
10431: shrext_cmds='.sl'
10432: hardcode_into_libs=yes
10433: dynamic_linker="$host_os dld.sl"
10434: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10435: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.1.1.3 ! misho 10436: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10437: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10438: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10439: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10440: ;;
10441: *)
10442: shrext_cmds='.sl'
10443: dynamic_linker="$host_os dld.sl"
10444: shlibpath_var=SHLIB_PATH
10445: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.1.1.3 ! misho 10446: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10447: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10448: ;;
10449: esac
1.1.1.2 misho 10450: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1.1 misho 10451: postinstall_cmds='chmod 555 $lib'
1.1.1.2 misho 10452: # or fails outright, so override atomically:
10453: install_override_mode=555
1.1 misho 10454: ;;
10455:
10456: interix[3-9]*)
1.1.1.3 ! misho 10457: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10458: need_lib_prefix=no
10459: need_version=no
1.1.1.3 ! misho 10460: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10461: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10462: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10463: shlibpath_var=LD_LIBRARY_PATH
10464: shlibpath_overrides_runpath=no
10465: hardcode_into_libs=yes
10466: ;;
10467:
10468: irix5* | irix6* | nonstopux*)
10469: case $host_os in
10470: nonstopux*) version_type=nonstopux ;;
10471: *)
1.1.1.3 ! misho 10472: if test yes = "$lt_cv_prog_gnu_ld"; then
! 10473: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10474: else
10475: version_type=irix
10476: fi ;;
10477: esac
10478: need_lib_prefix=no
10479: need_version=no
1.1.1.3 ! misho 10480: soname_spec='$libname$release$shared_ext$major'
! 10481: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.1 misho 10482: case $host_os in
10483: irix5* | nonstopux*)
10484: libsuff= shlibsuff=
10485: ;;
10486: *)
10487: case $LD in # libtool.m4 will add one of these switches to LD
10488: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10489: libsuff= shlibsuff= libmagic=32-bit;;
10490: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10491: libsuff=32 shlibsuff=N32 libmagic=N32;;
10492: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10493: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10494: *) libsuff= shlibsuff= libmagic=never-match;;
10495: esac
10496: ;;
10497: esac
10498: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10499: shlibpath_overrides_runpath=no
1.1.1.3 ! misho 10500: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
! 10501: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.1 misho 10502: hardcode_into_libs=yes
10503: ;;
10504:
10505: # No shared lib support for Linux oldld, aout, or coff.
10506: linux*oldld* | linux*aout* | linux*coff*)
10507: dynamic_linker=no
10508: ;;
10509:
1.1.1.3 ! misho 10510: linux*android*)
! 10511: version_type=none # Android doesn't support versioned libraries.
! 10512: need_lib_prefix=no
! 10513: need_version=no
! 10514: library_names_spec='$libname$release$shared_ext'
! 10515: soname_spec='$libname$release$shared_ext'
! 10516: finish_cmds=
! 10517: shlibpath_var=LD_LIBRARY_PATH
! 10518: shlibpath_overrides_runpath=yes
! 10519:
! 10520: # This implies no fast_install, which is unacceptable.
! 10521: # Some rework will be needed to allow for fast_install
! 10522: # before this can be enabled.
! 10523: hardcode_into_libs=yes
! 10524:
! 10525: dynamic_linker='Android linker'
! 10526: # Don't embed -rpath directories since the linker doesn't support them.
! 10527: hardcode_libdir_flag_spec='-L$libdir'
! 10528: ;;
! 10529:
! 10530: # This must be glibc/ELF.
! 10531: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
! 10532: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10533: need_lib_prefix=no
10534: need_version=no
1.1.1.3 ! misho 10535: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10536: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10537: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10538: shlibpath_var=LD_LIBRARY_PATH
10539: shlibpath_overrides_runpath=no
1.1.1.2 misho 10540:
1.1 misho 10541: # Some binutils ld are patched to set DT_RUNPATH
1.1.1.2 misho 10542: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10543: $as_echo_n "(cached) " >&6
10544: else
10545: lt_cv_shlibpath_overrides_runpath=no
10546: save_LDFLAGS=$LDFLAGS
10547: save_libdir=$libdir
10548: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10549: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10551: /* end confdefs.h. */
10552:
10553: int
10554: main ()
10555: {
10556:
10557: ;
10558: return 0;
10559: }
10560: _ACEOF
1.1.1.2 misho 10561: if ac_fn_c_try_link "$LINENO"; then :
10562: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10563: lt_cv_shlibpath_overrides_runpath=yes
1.1 misho 10564: fi
1.1.1.2 misho 10565: fi
10566: rm -f core conftest.err conftest.$ac_objext \
10567: conftest$ac_exeext conftest.$ac_ext
10568: LDFLAGS=$save_LDFLAGS
10569: libdir=$save_libdir
1.1 misho 10570:
10571: fi
10572:
1.1.1.2 misho 10573: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1.1 misho 10574:
10575: # This implies no fast_install, which is unacceptable.
10576: # Some rework will be needed to allow for fast_install
10577: # before this can be enabled.
10578: hardcode_into_libs=yes
10579:
1.1.1.3 ! misho 10580: # Ideally, we could use ldconfig to report *all* directores which are
! 10581: # searched for libraries, however this is still not possible. Aside from not
! 10582: # being certain /sbin/ldconfig is available, command
! 10583: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
! 10584: # even though it is searched at run-time. Try to do the best guess by
! 10585: # appending ld.so.conf contents (and includes) to the search path.
1.1 misho 10586: if test -f /etc/ld.so.conf; then
1.1.1.2 misho 10587: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1.1 misho 10588: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10589: fi
10590:
10591: # We used to test for /lib/ld.so.1 and disable shared libraries on
10592: # powerpc, because MkLinux only supported shared libraries with the
10593: # GNU dynamic linker. Since this was broken with cross compilers,
10594: # most powerpc-linux boxes support dynamic linking these days and
10595: # people can always --disable-shared, the test was removed, and we
10596: # assume the GNU/Linux dynamic linker is in use.
10597: dynamic_linker='GNU/Linux ld.so'
10598: ;;
10599:
10600: netbsd*)
10601: version_type=sunos
10602: need_lib_prefix=no
10603: need_version=no
10604: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.1.1.3 ! misho 10605: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.1 misho 10606: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10607: dynamic_linker='NetBSD (a.out) ld.so'
10608: else
1.1.1.3 ! misho 10609: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10610: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10611: dynamic_linker='NetBSD ld.elf_so'
10612: fi
10613: shlibpath_var=LD_LIBRARY_PATH
10614: shlibpath_overrides_runpath=yes
10615: hardcode_into_libs=yes
10616: ;;
10617:
10618: newsos6)
1.1.1.3 ! misho 10619: version_type=linux # correct to gnu/linux during the next big refactor
! 10620: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1 misho 10621: shlibpath_var=LD_LIBRARY_PATH
10622: shlibpath_overrides_runpath=yes
10623: ;;
10624:
10625: *nto* | *qnx*)
10626: version_type=qnx
10627: need_lib_prefix=no
10628: need_version=no
1.1.1.3 ! misho 10629: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10630: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10631: shlibpath_var=LD_LIBRARY_PATH
10632: shlibpath_overrides_runpath=no
10633: hardcode_into_libs=yes
10634: dynamic_linker='ldqnx.so'
10635: ;;
10636:
1.1.1.3 ! misho 10637: openbsd* | bitrig*)
1.1 misho 10638: version_type=sunos
1.1.1.3 ! misho 10639: sys_lib_dlsearch_path_spec=/usr/lib
1.1 misho 10640: need_lib_prefix=no
1.1.1.3 ! misho 10641: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
! 10642: need_version=no
1.1 misho 10643: else
1.1.1.3 ! misho 10644: need_version=yes
1.1 misho 10645: fi
1.1.1.3 ! misho 10646: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
! 10647: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 10648: shlibpath_var=LD_LIBRARY_PATH
! 10649: shlibpath_overrides_runpath=yes
1.1 misho 10650: ;;
10651:
10652: os2*)
10653: libname_spec='$name'
1.1.1.3 ! misho 10654: version_type=windows
! 10655: shrext_cmds=.dll
! 10656: need_version=no
1.1 misho 10657: need_lib_prefix=no
1.1.1.3 ! misho 10658: # OS/2 can only load a DLL with a base name of 8 characters or less.
! 10659: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
! 10660: v=$($ECHO $release$versuffix | tr -d .-);
! 10661: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
! 10662: $ECHO $n$v`$shared_ext'
! 10663: library_names_spec='${libname}_dll.$libext'
1.1 misho 10664: dynamic_linker='OS/2 ld.exe'
1.1.1.3 ! misho 10665: shlibpath_var=BEGINLIBPATH
! 10666: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 10667: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 10668: postinstall_cmds='base_file=`basename \$file`~
! 10669: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
! 10670: dldir=$destdir/`dirname \$dlpath`~
! 10671: test -d \$dldir || mkdir -p \$dldir~
! 10672: $install_prog $dir/$dlname \$dldir/$dlname~
! 10673: chmod a+x \$dldir/$dlname~
! 10674: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
! 10675: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
! 10676: fi'
! 10677: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
! 10678: dlpath=$dir/\$dldll~
! 10679: $RM \$dlpath'
1.1 misho 10680: ;;
10681:
10682: osf3* | osf4* | osf5*)
10683: version_type=osf
10684: need_lib_prefix=no
10685: need_version=no
1.1.1.3 ! misho 10686: soname_spec='$libname$release$shared_ext$major'
! 10687: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1 misho 10688: shlibpath_var=LD_LIBRARY_PATH
10689: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.1.1.3 ! misho 10690: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.1 misho 10691: ;;
10692:
10693: rdos*)
10694: dynamic_linker=no
10695: ;;
10696:
10697: solaris*)
1.1.1.3 ! misho 10698: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10699: need_lib_prefix=no
10700: need_version=no
1.1.1.3 ! misho 10701: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10702: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10703: shlibpath_var=LD_LIBRARY_PATH
10704: shlibpath_overrides_runpath=yes
10705: hardcode_into_libs=yes
10706: # ldd complains unless libraries are executable
10707: postinstall_cmds='chmod +x $lib'
10708: ;;
10709:
10710: sunos4*)
10711: version_type=sunos
1.1.1.3 ! misho 10712: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.1 misho 10713: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10714: shlibpath_var=LD_LIBRARY_PATH
10715: shlibpath_overrides_runpath=yes
1.1.1.3 ! misho 10716: if test yes = "$with_gnu_ld"; then
1.1 misho 10717: need_lib_prefix=no
10718: fi
10719: need_version=yes
10720: ;;
10721:
10722: sysv4 | sysv4.3*)
1.1.1.3 ! misho 10723: version_type=linux # correct to gnu/linux during the next big refactor
! 10724: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10725: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10726: shlibpath_var=LD_LIBRARY_PATH
10727: case $host_vendor in
10728: sni)
10729: shlibpath_overrides_runpath=no
10730: need_lib_prefix=no
10731: runpath_var=LD_RUN_PATH
10732: ;;
10733: siemens)
10734: need_lib_prefix=no
10735: ;;
10736: motorola)
10737: need_lib_prefix=no
10738: need_version=no
10739: shlibpath_overrides_runpath=no
10740: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10741: ;;
10742: esac
10743: ;;
10744:
10745: sysv4*MP*)
1.1.1.3 ! misho 10746: if test -d /usr/nec; then
! 10747: version_type=linux # correct to gnu/linux during the next big refactor
! 10748: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
! 10749: soname_spec='$libname$shared_ext.$major'
1.1 misho 10750: shlibpath_var=LD_LIBRARY_PATH
10751: fi
10752: ;;
10753:
10754: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1.1.3 ! misho 10755: version_type=sco
1.1 misho 10756: need_lib_prefix=no
10757: need_version=no
1.1.1.3 ! misho 10758: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
! 10759: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10760: shlibpath_var=LD_LIBRARY_PATH
10761: shlibpath_overrides_runpath=yes
10762: hardcode_into_libs=yes
1.1.1.3 ! misho 10763: if test yes = "$with_gnu_ld"; then
1.1 misho 10764: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10765: else
10766: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10767: case $host_os in
10768: sco3.2v5*)
10769: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10770: ;;
10771: esac
10772: fi
10773: sys_lib_dlsearch_path_spec='/usr/lib'
10774: ;;
10775:
10776: tpf*)
10777: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
1.1.1.3 ! misho 10778: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 10779: need_lib_prefix=no
10780: need_version=no
1.1.1.3 ! misho 10781: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.1 misho 10782: shlibpath_var=LD_LIBRARY_PATH
10783: shlibpath_overrides_runpath=no
10784: hardcode_into_libs=yes
10785: ;;
10786:
10787: uts4*)
1.1.1.3 ! misho 10788: version_type=linux # correct to gnu/linux during the next big refactor
! 10789: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 10790: soname_spec='$libname$release$shared_ext$major'
1.1 misho 10791: shlibpath_var=LD_LIBRARY_PATH
10792: ;;
10793:
10794: *)
10795: dynamic_linker=no
10796: ;;
10797: esac
1.1.1.2 misho 10798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1.1 misho 10799: $as_echo "$dynamic_linker" >&6; }
1.1.1.3 ! misho 10800: test no = "$dynamic_linker" && can_build_shared=no
1.1 misho 10801:
10802: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.1.1.3 ! misho 10803: if test yes = "$GCC"; then
1.1 misho 10804: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10805: fi
10806:
1.1.1.3 ! misho 10807: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
! 10808: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
1.1 misho 10809: fi
1.1.1.3 ! misho 10810:
! 10811: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
! 10812: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
1.1 misho 10813: fi
10814:
1.1.1.3 ! misho 10815: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
! 10816: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
! 10817:
! 10818: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
! 10819: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
! 10820:
! 10821: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
! 10822: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
! 10823:
! 10824:
! 10825:
! 10826:
! 10827:
! 10828:
1.1 misho 10829:
10830:
10831:
10832:
10833:
10834:
10835:
10836:
10837:
10838:
10839:
10840:
10841:
10842:
10843:
10844:
10845:
10846:
10847:
10848:
10849:
10850:
10851:
10852:
10853:
10854:
10855:
10856:
10857:
10858:
10859:
10860:
10861:
10862:
10863:
10864:
10865:
10866:
10867:
10868:
10869:
10870:
10871:
10872:
10873:
10874:
10875:
10876:
10877:
10878:
10879:
10880:
10881:
10882:
10883:
10884:
10885:
10886:
10887:
10888:
10889:
10890:
10891:
10892:
10893:
10894:
10895:
10896:
10897:
10898:
10899:
10900:
10901:
10902:
10903:
10904:
10905:
10906:
10907:
10908:
10909:
10910:
10911:
10912:
10913:
10914:
1.1.1.2 misho 10915:
10916:
10917:
10918:
10919:
10920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
1.1 misho 10921: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10922: hardcode_action=
10923: if test -n "$hardcode_libdir_flag_spec" ||
10924: test -n "$runpath_var" ||
1.1.1.3 ! misho 10925: test yes = "$hardcode_automatic"; then
1.1 misho 10926:
10927: # We can hardcode non-existent directories.
1.1.1.3 ! misho 10928: if test no != "$hardcode_direct" &&
1.1 misho 10929: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10930: # have to relink, otherwise we might link with an installed library
10931: # when we should be linking with a yet-to-be-installed one
1.1.1.3 ! misho 10932: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
! 10933: test no != "$hardcode_minus_L"; then
1.1 misho 10934: # Linking always hardcodes the temporary library directory.
10935: hardcode_action=relink
10936: else
10937: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10938: hardcode_action=immediate
10939: fi
10940: else
10941: # We cannot hardcode anything, or else we can only hardcode existing
10942: # directories.
10943: hardcode_action=unsupported
10944: fi
1.1.1.2 misho 10945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1.1 misho 10946: $as_echo "$hardcode_action" >&6; }
10947:
1.1.1.3 ! misho 10948: if test relink = "$hardcode_action" ||
! 10949: test yes = "$inherit_rpath"; then
1.1 misho 10950: # Fast installation is not supported
10951: enable_fast_install=no
1.1.1.3 ! misho 10952: elif test yes = "$shlibpath_overrides_runpath" ||
! 10953: test no = "$enable_shared"; then
1.1 misho 10954: # Fast installation is not necessary
10955: enable_fast_install=needless
10956: fi
10957:
10958:
10959:
10960:
10961:
10962:
1.1.1.3 ! misho 10963: if test yes != "$enable_dlopen"; then
1.1 misho 10964: enable_dlopen=unknown
10965: enable_dlopen_self=unknown
10966: enable_dlopen_self_static=unknown
10967: else
10968: lt_cv_dlopen=no
10969: lt_cv_dlopen_libs=
10970:
10971: case $host_os in
10972: beos*)
1.1.1.3 ! misho 10973: lt_cv_dlopen=load_add_on
1.1 misho 10974: lt_cv_dlopen_libs=
10975: lt_cv_dlopen_self=yes
10976: ;;
10977:
10978: mingw* | pw32* | cegcc*)
1.1.1.3 ! misho 10979: lt_cv_dlopen=LoadLibrary
1.1 misho 10980: lt_cv_dlopen_libs=
10981: ;;
10982:
10983: cygwin*)
1.1.1.3 ! misho 10984: lt_cv_dlopen=dlopen
1.1 misho 10985: lt_cv_dlopen_libs=
10986: ;;
10987:
10988: darwin*)
1.1.1.3 ! misho 10989: # if libdl is installed we need to link against it
1.1.1.2 misho 10990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1.1 misho 10991: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 misho 10992: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 10993: $as_echo_n "(cached) " >&6
10994: else
10995: ac_check_lib_save_LIBS=$LIBS
10996: LIBS="-ldl $LIBS"
1.1.1.2 misho 10997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10998: /* end confdefs.h. */
10999:
11000: /* Override any GCC internal prototype to avoid an error.
11001: Use char because int might match the return type of a GCC
11002: builtin and then its argument prototype would still apply. */
11003: #ifdef __cplusplus
11004: extern "C"
11005: #endif
11006: char dlopen ();
11007: int
11008: main ()
11009: {
11010: return dlopen ();
11011: ;
11012: return 0;
11013: }
11014: _ACEOF
1.1.1.2 misho 11015: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 11016: ac_cv_lib_dl_dlopen=yes
11017: else
1.1.1.2 misho 11018: ac_cv_lib_dl_dlopen=no
1.1 misho 11019: fi
1.1.1.2 misho 11020: rm -f core conftest.err conftest.$ac_objext \
11021: conftest$ac_exeext conftest.$ac_ext
1.1 misho 11022: LIBS=$ac_check_lib_save_LIBS
11023: fi
1.1.1.2 misho 11024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1.1 misho 11025: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 misho 11026: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1.1.3 ! misho 11027: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.1 misho 11028: else
11029:
1.1.1.3 ! misho 11030: lt_cv_dlopen=dyld
1.1 misho 11031: lt_cv_dlopen_libs=
11032: lt_cv_dlopen_self=yes
11033:
11034: fi
11035:
11036: ;;
11037:
1.1.1.3 ! misho 11038: tpf*)
! 11039: # Don't try to run any link tests for TPF. We know it's impossible
! 11040: # because TPF is a cross-compiler, and we know how we open DSOs.
! 11041: lt_cv_dlopen=dlopen
! 11042: lt_cv_dlopen_libs=
! 11043: lt_cv_dlopen_self=no
! 11044: ;;
! 11045:
1.1 misho 11046: *)
1.1.1.2 misho 11047: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11048: if test "x$ac_cv_func_shl_load" = xyes; then :
1.1.1.3 ! misho 11049: lt_cv_dlopen=shl_load
1.1 misho 11050: else
1.1.1.2 misho 11051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1.1 misho 11052: $as_echo_n "checking for shl_load in -ldld... " >&6; }
1.1.1.2 misho 11053: if ${ac_cv_lib_dld_shl_load+:} false; then :
1.1 misho 11054: $as_echo_n "(cached) " >&6
11055: else
11056: ac_check_lib_save_LIBS=$LIBS
11057: LIBS="-ldld $LIBS"
1.1.1.2 misho 11058: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 11059: /* end confdefs.h. */
11060:
11061: /* Override any GCC internal prototype to avoid an error.
11062: Use char because int might match the return type of a GCC
11063: builtin and then its argument prototype would still apply. */
11064: #ifdef __cplusplus
11065: extern "C"
11066: #endif
11067: char shl_load ();
11068: int
11069: main ()
11070: {
11071: return shl_load ();
11072: ;
11073: return 0;
11074: }
11075: _ACEOF
1.1.1.2 misho 11076: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 11077: ac_cv_lib_dld_shl_load=yes
11078: else
1.1.1.2 misho 11079: ac_cv_lib_dld_shl_load=no
1.1 misho 11080: fi
1.1.1.2 misho 11081: rm -f core conftest.err conftest.$ac_objext \
11082: conftest$ac_exeext conftest.$ac_ext
1.1 misho 11083: LIBS=$ac_check_lib_save_LIBS
11084: fi
1.1.1.2 misho 11085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1.1 misho 11086: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1.1.1.2 misho 11087: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1.1.1.3 ! misho 11088: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1.1 misho 11089: else
1.1.1.2 misho 11090: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11091: if test "x$ac_cv_func_dlopen" = xyes; then :
1.1.1.3 ! misho 11092: lt_cv_dlopen=dlopen
1.1 misho 11093: else
1.1.1.2 misho 11094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1.1 misho 11095: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 misho 11096: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 11097: $as_echo_n "(cached) " >&6
11098: else
11099: ac_check_lib_save_LIBS=$LIBS
11100: LIBS="-ldl $LIBS"
1.1.1.2 misho 11101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 11102: /* end confdefs.h. */
11103:
11104: /* Override any GCC internal prototype to avoid an error.
11105: Use char because int might match the return type of a GCC
11106: builtin and then its argument prototype would still apply. */
11107: #ifdef __cplusplus
11108: extern "C"
11109: #endif
11110: char dlopen ();
11111: int
11112: main ()
11113: {
11114: return dlopen ();
11115: ;
11116: return 0;
11117: }
11118: _ACEOF
1.1.1.2 misho 11119: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 11120: ac_cv_lib_dl_dlopen=yes
11121: else
1.1.1.2 misho 11122: ac_cv_lib_dl_dlopen=no
1.1 misho 11123: fi
1.1.1.2 misho 11124: rm -f core conftest.err conftest.$ac_objext \
11125: conftest$ac_exeext conftest.$ac_ext
1.1 misho 11126: LIBS=$ac_check_lib_save_LIBS
11127: fi
1.1.1.2 misho 11128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1.1 misho 11129: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 misho 11130: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1.1.3 ! misho 11131: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1.1 misho 11132: else
1.1.1.2 misho 11133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1.1 misho 11134: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1.1.1.2 misho 11135: if ${ac_cv_lib_svld_dlopen+:} false; then :
1.1 misho 11136: $as_echo_n "(cached) " >&6
11137: else
11138: ac_check_lib_save_LIBS=$LIBS
11139: LIBS="-lsvld $LIBS"
1.1.1.2 misho 11140: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 11141: /* end confdefs.h. */
11142:
11143: /* Override any GCC internal prototype to avoid an error.
11144: Use char because int might match the return type of a GCC
11145: builtin and then its argument prototype would still apply. */
11146: #ifdef __cplusplus
11147: extern "C"
11148: #endif
1.1.1.2 misho 11149: char dlopen ();
11150: int
11151: main ()
11152: {
11153: return dlopen ();
11154: ;
11155: return 0;
11156: }
11157: _ACEOF
11158: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 11159: ac_cv_lib_svld_dlopen=yes
11160: else
1.1.1.2 misho 11161: ac_cv_lib_svld_dlopen=no
1.1 misho 11162: fi
1.1.1.2 misho 11163: rm -f core conftest.err conftest.$ac_objext \
11164: conftest$ac_exeext conftest.$ac_ext
1.1 misho 11165: LIBS=$ac_check_lib_save_LIBS
11166: fi
1.1.1.2 misho 11167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1.1 misho 11168: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1.1.1.2 misho 11169: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.1.1.3 ! misho 11170: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1.1 misho 11171: else
1.1.1.2 misho 11172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1.1 misho 11173: $as_echo_n "checking for dld_link in -ldld... " >&6; }
1.1.1.2 misho 11174: if ${ac_cv_lib_dld_dld_link+:} false; then :
1.1 misho 11175: $as_echo_n "(cached) " >&6
11176: else
11177: ac_check_lib_save_LIBS=$LIBS
11178: LIBS="-ldld $LIBS"
1.1.1.2 misho 11179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 11180: /* end confdefs.h. */
11181:
11182: /* Override any GCC internal prototype to avoid an error.
11183: Use char because int might match the return type of a GCC
11184: builtin and then its argument prototype would still apply. */
11185: #ifdef __cplusplus
11186: extern "C"
11187: #endif
11188: char dld_link ();
11189: int
11190: main ()
11191: {
11192: return dld_link ();
11193: ;
11194: return 0;
11195: }
11196: _ACEOF
1.1.1.2 misho 11197: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 11198: ac_cv_lib_dld_dld_link=yes
11199: else
1.1.1.2 misho 11200: ac_cv_lib_dld_dld_link=no
1.1 misho 11201: fi
1.1.1.2 misho 11202: rm -f core conftest.err conftest.$ac_objext \
11203: conftest$ac_exeext conftest.$ac_ext
1.1 misho 11204: LIBS=$ac_check_lib_save_LIBS
11205: fi
1.1.1.2 misho 11206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1.1 misho 11207: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1.1.1.2 misho 11208: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.1.1.3 ! misho 11209: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1.1 misho 11210: fi
11211:
11212:
11213: fi
11214:
11215:
11216: fi
11217:
11218:
11219: fi
11220:
11221:
11222: fi
11223:
11224:
11225: fi
11226:
11227: ;;
11228: esac
11229:
1.1.1.3 ! misho 11230: if test no = "$lt_cv_dlopen"; then
1.1 misho 11231: enable_dlopen=no
1.1.1.3 ! misho 11232: else
! 11233: enable_dlopen=yes
1.1 misho 11234: fi
11235:
11236: case $lt_cv_dlopen in
11237: dlopen)
1.1.1.3 ! misho 11238: save_CPPFLAGS=$CPPFLAGS
! 11239: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.1 misho 11240:
1.1.1.3 ! misho 11241: save_LDFLAGS=$LDFLAGS
1.1 misho 11242: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11243:
1.1.1.3 ! misho 11244: save_LIBS=$LIBS
1.1 misho 11245: LIBS="$lt_cv_dlopen_libs $LIBS"
11246:
1.1.1.2 misho 11247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1.1 misho 11248: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
1.1.1.2 misho 11249: if ${lt_cv_dlopen_self+:} false; then :
1.1 misho 11250: $as_echo_n "(cached) " >&6
11251: else
1.1.1.3 ! misho 11252: if test yes = "$cross_compiling"; then :
1.1 misho 11253: lt_cv_dlopen_self=cross
11254: else
11255: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11256: lt_status=$lt_dlunknown
11257: cat > conftest.$ac_ext <<_LT_EOF
1.1.1.2 misho 11258: #line $LINENO "configure"
1.1 misho 11259: #include "confdefs.h"
11260:
11261: #if HAVE_DLFCN_H
11262: #include <dlfcn.h>
11263: #endif
11264:
11265: #include <stdio.h>
11266:
11267: #ifdef RTLD_GLOBAL
11268: # define LT_DLGLOBAL RTLD_GLOBAL
11269: #else
11270: # ifdef DL_GLOBAL
11271: # define LT_DLGLOBAL DL_GLOBAL
11272: # else
11273: # define LT_DLGLOBAL 0
11274: # endif
11275: #endif
11276:
11277: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11278: find out it does not work in some platform. */
11279: #ifndef LT_DLLAZY_OR_NOW
11280: # ifdef RTLD_LAZY
11281: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11282: # else
11283: # ifdef DL_LAZY
11284: # define LT_DLLAZY_OR_NOW DL_LAZY
11285: # else
11286: # ifdef RTLD_NOW
11287: # define LT_DLLAZY_OR_NOW RTLD_NOW
11288: # else
11289: # ifdef DL_NOW
11290: # define LT_DLLAZY_OR_NOW DL_NOW
11291: # else
11292: # define LT_DLLAZY_OR_NOW 0
11293: # endif
11294: # endif
11295: # endif
11296: # endif
11297: #endif
11298:
1.1.1.3 ! misho 11299: /* When -fvisibility=hidden is used, assume the code has been annotated
1.1.1.2 misho 11300: correspondingly for the symbols needed. */
1.1.1.3 ! misho 11301: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1.1.1.2 misho 11302: int fnord () __attribute__((visibility("default")));
11303: #endif
11304:
11305: int fnord () { return 42; }
1.1 misho 11306: int main ()
11307: {
11308: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11309: int status = $lt_dlunknown;
11310:
11311: if (self)
11312: {
11313: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.1.1.2 misho 11314: else
11315: {
11316: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11317: else puts (dlerror ());
11318: }
1.1 misho 11319: /* dlclose (self); */
11320: }
11321: else
11322: puts (dlerror ());
11323:
11324: return status;
11325: }
11326: _LT_EOF
1.1.1.2 misho 11327: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.1 misho 11328: (eval $ac_link) 2>&5
11329: ac_status=$?
1.1.1.2 misho 11330: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.3 ! misho 11331: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.1 misho 11332: (./conftest; exit; ) >&5 2>/dev/null
11333: lt_status=$?
11334: case x$lt_status in
11335: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11336: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11337: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11338: esac
11339: else :
11340: # compilation failed
11341: lt_cv_dlopen_self=no
11342: fi
11343: fi
11344: rm -fr conftest*
11345:
11346:
11347: fi
1.1.1.2 misho 11348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1.1 misho 11349: $as_echo "$lt_cv_dlopen_self" >&6; }
11350:
1.1.1.3 ! misho 11351: if test yes = "$lt_cv_dlopen_self"; then
1.1 misho 11352: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.1.1.2 misho 11353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1.1 misho 11354: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1.1.1.2 misho 11355: if ${lt_cv_dlopen_self_static+:} false; then :
1.1 misho 11356: $as_echo_n "(cached) " >&6
11357: else
1.1.1.3 ! misho 11358: if test yes = "$cross_compiling"; then :
1.1 misho 11359: lt_cv_dlopen_self_static=cross
11360: else
11361: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11362: lt_status=$lt_dlunknown
11363: cat > conftest.$ac_ext <<_LT_EOF
1.1.1.2 misho 11364: #line $LINENO "configure"
1.1 misho 11365: #include "confdefs.h"
11366:
11367: #if HAVE_DLFCN_H
11368: #include <dlfcn.h>
11369: #endif
11370:
11371: #include <stdio.h>
11372:
11373: #ifdef RTLD_GLOBAL
11374: # define LT_DLGLOBAL RTLD_GLOBAL
11375: #else
11376: # ifdef DL_GLOBAL
11377: # define LT_DLGLOBAL DL_GLOBAL
11378: # else
11379: # define LT_DLGLOBAL 0
11380: # endif
11381: #endif
11382:
11383: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11384: find out it does not work in some platform. */
11385: #ifndef LT_DLLAZY_OR_NOW
11386: # ifdef RTLD_LAZY
11387: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11388: # else
11389: # ifdef DL_LAZY
11390: # define LT_DLLAZY_OR_NOW DL_LAZY
11391: # else
11392: # ifdef RTLD_NOW
11393: # define LT_DLLAZY_OR_NOW RTLD_NOW
11394: # else
11395: # ifdef DL_NOW
11396: # define LT_DLLAZY_OR_NOW DL_NOW
11397: # else
11398: # define LT_DLLAZY_OR_NOW 0
11399: # endif
11400: # endif
11401: # endif
11402: # endif
11403: #endif
11404:
1.1.1.3 ! misho 11405: /* When -fvisibility=hidden is used, assume the code has been annotated
1.1.1.2 misho 11406: correspondingly for the symbols needed. */
1.1.1.3 ! misho 11407: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1.1.1.2 misho 11408: int fnord () __attribute__((visibility("default")));
11409: #endif
11410:
11411: int fnord () { return 42; }
1.1 misho 11412: int main ()
11413: {
11414: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11415: int status = $lt_dlunknown;
11416:
11417: if (self)
11418: {
11419: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.1.1.2 misho 11420: else
11421: {
11422: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11423: else puts (dlerror ());
11424: }
1.1 misho 11425: /* dlclose (self); */
11426: }
11427: else
11428: puts (dlerror ());
11429:
11430: return status;
11431: }
11432: _LT_EOF
1.1.1.2 misho 11433: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.1 misho 11434: (eval $ac_link) 2>&5
11435: ac_status=$?
1.1.1.2 misho 11436: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1.1.3 ! misho 11437: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.1 misho 11438: (./conftest; exit; ) >&5 2>/dev/null
11439: lt_status=$?
11440: case x$lt_status in
11441: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11442: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11443: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11444: esac
11445: else :
11446: # compilation failed
11447: lt_cv_dlopen_self_static=no
11448: fi
11449: fi
11450: rm -fr conftest*
11451:
11452:
11453: fi
1.1.1.2 misho 11454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
1.1 misho 11455: $as_echo "$lt_cv_dlopen_self_static" >&6; }
11456: fi
11457:
1.1.1.3 ! misho 11458: CPPFLAGS=$save_CPPFLAGS
! 11459: LDFLAGS=$save_LDFLAGS
! 11460: LIBS=$save_LIBS
1.1 misho 11461: ;;
11462: esac
11463:
11464: case $lt_cv_dlopen_self in
11465: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11466: *) enable_dlopen_self=unknown ;;
11467: esac
11468:
11469: case $lt_cv_dlopen_self_static in
11470: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11471: *) enable_dlopen_self_static=unknown ;;
11472: esac
11473: fi
11474:
11475:
11476:
11477:
11478:
11479:
11480:
11481:
11482:
11483:
11484:
11485:
11486:
11487:
11488:
11489:
11490:
11491: striplib=
11492: old_striplib=
1.1.1.2 misho 11493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1.1 misho 11494: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11495: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11496: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11497: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.1.1.2 misho 11498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 11499: $as_echo "yes" >&6; }
11500: else
11501: # FIXME - insert some real tests, host_os isn't really good enough
11502: case $host_os in
11503: darwin*)
1.1.1.3 ! misho 11504: if test -n "$STRIP"; then
1.1 misho 11505: striplib="$STRIP -x"
11506: old_striplib="$STRIP -S"
1.1.1.2 misho 11507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 11508: $as_echo "yes" >&6; }
11509: else
1.1.1.2 misho 11510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 11511: $as_echo "no" >&6; }
11512: fi
11513: ;;
11514: *)
1.1.1.2 misho 11515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 11516: $as_echo "no" >&6; }
11517: ;;
11518: esac
11519: fi
11520:
11521:
11522:
11523:
11524:
11525:
11526:
11527:
11528:
11529:
11530:
11531:
1.1.1.3 ! misho 11532: # Report what library types will actually be built
1.1.1.2 misho 11533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1.1 misho 11534: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1.1.1.2 misho 11535: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1.1 misho 11536: $as_echo "$can_build_shared" >&6; }
11537:
1.1.1.2 misho 11538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1.1 misho 11539: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.1.1.3 ! misho 11540: test no = "$can_build_shared" && enable_shared=no
1.1 misho 11541:
11542: # On AIX, shared libraries and static libraries use the same namespace, and
11543: # are all built from PIC.
11544: case $host_os in
11545: aix3*)
1.1.1.3 ! misho 11546: test yes = "$enable_shared" && enable_static=no
1.1 misho 11547: if test -n "$RANLIB"; then
11548: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11549: postinstall_cmds='$RANLIB $lib'
11550: fi
11551: ;;
11552:
11553: aix[4-9]*)
1.1.1.3 ! misho 11554: if test ia64 != "$host_cpu"; then
! 11555: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
! 11556: yes,aix,yes) ;; # shared object as lib.so file only
! 11557: yes,svr4,*) ;; # shared object as lib.so archive member only
! 11558: yes,*) enable_static=no ;; # shared object in lib.a archive as well
! 11559: esac
1.1 misho 11560: fi
11561: ;;
11562: esac
1.1.1.2 misho 11563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
1.1 misho 11564: $as_echo "$enable_shared" >&6; }
11565:
1.1.1.2 misho 11566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1.1 misho 11567: $as_echo_n "checking whether to build static libraries... " >&6; }
11568: # Make sure either enable_shared or enable_static is yes.
1.1.1.3 ! misho 11569: test yes = "$enable_shared" || enable_static=yes
1.1.1.2 misho 11570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1.1 misho 11571: $as_echo "$enable_static" >&6; }
11572:
11573:
11574:
11575:
11576: fi
11577: ac_ext=c
11578: ac_cpp='$CPP $CPPFLAGS'
11579: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11580: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11581: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11582:
1.1.1.3 ! misho 11583: CC=$lt_save_CC
! 11584:
! 11585:
1.1 misho 11586:
11587:
11588:
11589:
11590:
11591:
11592:
11593:
11594:
11595:
11596:
11597:
11598:
11599: ac_config_commands="$ac_config_commands libtool"
11600:
11601:
11602:
11603:
11604: # Only expand once:
11605:
11606:
11607:
11608:
1.1.1.3 ! misho 11609: # Check whether --with-gnu-ld was given.
! 11610: if test "${with_gnu_ld+set}" = set; then :
! 11611: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
! 11612: else
! 11613: with_gnu_ld=no
! 11614: fi
! 11615:
! 11616: # Prepare PATH_SEPARATOR.
! 11617: # The user is always right.
! 11618: if test "${PATH_SEPARATOR+set}" != set; then
! 11619: # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
! 11620: # contains only /bin. Note that ksh looks also at the FPATH variable,
! 11621: # so we have to set that as well for the test.
! 11622: PATH_SEPARATOR=:
! 11623: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
! 11624: && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
! 11625: || PATH_SEPARATOR=';'
! 11626: }
! 11627: fi
! 11628:
! 11629: if test -n "$LD"; then
! 11630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
! 11631: $as_echo_n "checking for ld... " >&6; }
! 11632: elif test "$GCC" = yes; then
! 11633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 11634: $as_echo_n "checking for ld used by $CC... " >&6; }
! 11635: elif test "$with_gnu_ld" = yes; then
! 11636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 11637: $as_echo_n "checking for GNU ld... " >&6; }
! 11638: else
! 11639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 11640: $as_echo_n "checking for non-GNU ld... " >&6; }
! 11641: fi
! 11642: if test -n "$LD"; then
! 11643: # Let the user override the test with a path.
! 11644: :
! 11645: else
! 11646: if ${acl_cv_path_LD+:} false; then :
! 11647: $as_echo_n "(cached) " >&6
! 11648: else
! 11649:
! 11650: acl_cv_path_LD= # Final result of this test
! 11651: ac_prog=ld # Program to search in $PATH
! 11652: if test "$GCC" = yes; then
! 11653: # Check if gcc -print-prog-name=ld gives a path.
! 11654: case $host in
! 11655: *-*-mingw*)
! 11656: # gcc leaves a trailing carriage return which upsets mingw
! 11657: acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 11658: *)
! 11659: acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
! 11660: esac
! 11661: case $acl_output in
! 11662: # Accept absolute paths.
! 11663: [\\/]* | ?:[\\/]*)
! 11664: re_direlt='/[^/][^/]*/\.\./'
! 11665: # Canonicalize the pathname of ld
! 11666: acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
! 11667: while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
! 11668: acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
! 11669: done
! 11670: # Got the pathname. No search in PATH is needed.
! 11671: acl_cv_path_LD="$acl_output"
! 11672: ac_prog=
! 11673: ;;
! 11674: "")
! 11675: # If it fails, then pretend we aren't using GCC.
! 11676: ;;
! 11677: *)
! 11678: # If it is relative, then search for the first ld in PATH.
! 11679: with_gnu_ld=unknown
! 11680: ;;
! 11681: esac
! 11682: fi
! 11683: if test -n "$ac_prog"; then
! 11684: # Search for $ac_prog in $PATH.
! 11685: acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 11686: for ac_dir in $PATH; do
! 11687: IFS="$acl_save_ifs"
! 11688: test -z "$ac_dir" && ac_dir=.
! 11689: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
! 11690: acl_cv_path_LD="$ac_dir/$ac_prog"
! 11691: # Check to see if the program is GNU ld. I'd rather use --version,
! 11692: # but apparently some variants of GNU ld only accept -v.
! 11693: # Break only if it was the GNU/non-GNU ld that we prefer.
! 11694: case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
! 11695: *GNU* | *'with BFD'*)
! 11696: test "$with_gnu_ld" != no && break
! 11697: ;;
! 11698: *)
! 11699: test "$with_gnu_ld" != yes && break
! 11700: ;;
! 11701: esac
! 11702: fi
! 11703: done
! 11704: IFS="$acl_save_ifs"
! 11705: fi
! 11706: case $host in
! 11707: *-*-aix*)
! 11708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 11709: /* end confdefs.h. */
! 11710: #if defined __powerpc64__ || defined _ARCH_PPC64
! 11711: int ok;
! 11712: #else
! 11713: error fail
! 11714: #endif
! 11715:
! 11716: _ACEOF
! 11717: if ac_fn_c_try_compile "$LINENO"; then :
! 11718: # The compiler produces 64-bit code. Add option '-b64' so that the
! 11719: # linker groks 64-bit object files.
! 11720: case "$acl_cv_path_LD " in
! 11721: *" -b64 "*) ;;
! 11722: *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
! 11723: esac
! 11724:
! 11725: fi
! 11726: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11727: ;;
! 11728: sparc64-*-netbsd*)
! 11729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 11730: /* end confdefs.h. */
! 11731: #if defined __sparcv9 || defined __arch64__
! 11732: int ok;
! 11733: #else
! 11734: error fail
! 11735: #endif
! 11736:
! 11737: _ACEOF
! 11738: if ac_fn_c_try_compile "$LINENO"; then :
! 11739:
! 11740: else
! 11741: # The compiler produces 32-bit code. Add option '-m elf32_sparc'
! 11742: # so that the linker groks 32-bit object files.
! 11743: case "$acl_cv_path_LD " in
! 11744: *" -m elf32_sparc "*) ;;
! 11745: *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
! 11746: esac
! 11747:
! 11748: fi
! 11749: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11750: ;;
! 11751: esac
! 11752:
! 11753: fi
! 11754:
! 11755: LD="$acl_cv_path_LD"
! 11756: fi
! 11757: if test -n "$LD"; then
! 11758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 11759: $as_echo "$LD" >&6; }
! 11760: else
! 11761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 11762: $as_echo "no" >&6; }
! 11763: as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 11764: fi
! 11765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 11766: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
! 11767: if ${acl_cv_prog_gnu_ld+:} false; then :
! 11768: $as_echo_n "(cached) " >&6
! 11769: else
! 11770: # I'd rather use --version here, but apparently some GNU lds only accept -v.
! 11771: case `$LD -v 2>&1 </dev/null` in
! 11772: *GNU* | *'with BFD'*)
! 11773: acl_cv_prog_gnu_ld=yes
! 11774: ;;
! 11775: *)
! 11776: acl_cv_prog_gnu_ld=no
! 11777: ;;
! 11778: esac
! 11779: fi
! 11780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
! 11781: $as_echo "$acl_cv_prog_gnu_ld" >&6; }
! 11782: with_gnu_ld=$acl_cv_prog_gnu_ld
! 11783:
! 11784:
! 11785:
! 11786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
! 11787: $as_echo_n "checking for shared library path variable... " >&6; }
! 11788: if ${acl_cv_libpath+:} false; then :
! 11789: $as_echo_n "(cached) " >&6
! 11790: else
! 11791:
! 11792: LD="$LD" \
! 11793: ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
! 11794: . ./conftest.sh
! 11795: rm -f ./conftest.sh
! 11796: acl_cv_libpath=${acl_cv_shlibpath_var:-none}
! 11797:
! 11798: fi
! 11799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
! 11800: $as_echo "$acl_cv_libpath" >&6; }
! 11801: shlibpath_var="$acl_cv_shlibpath_var"
! 11802:
! 11803:
! 11804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
! 11805: $as_echo_n "checking whether to activate relocatable installation... " >&6; }
! 11806: # Check whether --enable-relocatable was given.
! 11807: if test "${enable_relocatable+set}" = set; then :
! 11808: enableval=$enable_relocatable; if test "$enableval" != no; then
! 11809: RELOCATABLE=yes
! 11810: else
! 11811: RELOCATABLE=no
! 11812: fi
! 11813:
! 11814: else
! 11815: RELOCATABLE=no
! 11816: fi
! 11817:
! 11818:
! 11819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
! 11820: $as_echo "$RELOCATABLE" >&6; }
! 11821:
! 11822:
! 11823:
! 11824: if test "X$prefix" = "XNONE"; then
! 11825: reloc_final_prefix="$ac_default_prefix"
! 11826: else
! 11827: reloc_final_prefix="$prefix"
! 11828: fi
! 11829:
! 11830: cat >>confdefs.h <<_ACEOF
! 11831: #define INSTALLPREFIX "${reloc_final_prefix}"
! 11832: _ACEOF
! 11833:
! 11834: if test $RELOCATABLE = yes; then
! 11835:
! 11836: $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
! 11837:
! 11838: fi
! 11839:
! 11840:
! 11841:
! 11842:
! 11843:
! 11844:
! 11845:
! 11846:
! 11847: is_noop=no
! 11848: use_elf_origin_trick=no
! 11849: use_macos_tools=no
! 11850: use_wrapper=no
! 11851: if test $RELOCATABLE = yes; then
! 11852: # --enable-relocatable implies --disable-rpath
! 11853: enable_rpath=no
! 11854: for ac_header in mach-o/dyld.h
! 11855: do :
! 11856: ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
! 11857: if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
! 11858: cat >>confdefs.h <<_ACEOF
! 11859: #define HAVE_MACH_O_DYLD_H 1
! 11860: _ACEOF
! 11861:
! 11862: fi
! 11863:
! 11864: done
! 11865:
! 11866: for ac_func in _NSGetExecutablePath
! 11867: do :
! 11868: ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
! 11869: if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
! 11870: cat >>confdefs.h <<_ACEOF
! 11871: #define HAVE__NSGETEXECUTABLEPATH 1
! 11872: _ACEOF
! 11873:
! 11874: fi
! 11875: done
! 11876:
! 11877: case "$host_os" in
! 11878: mingw*) is_noop=yes ;;
! 11879: # For the platforms that support $ORIGIN, see
! 11880: # <https://lekensteyn.nl/rpath.html>.
! 11881: # glibc systems, Linux with musl libc: yes. Android: no.
! 11882: linux*-android*) ;;
! 11883: linux* | kfreebsd*) use_elf_origin_trick=yes ;;
! 11884: # Hurd: <http://lists.gnu.org/archive/html/bug-hurd/2019-02/msg00049.html>
! 11885: # only after the glibc commit from 2018-01-08
! 11886: # <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=311ba8dc4416467947eff2ab327854f124226309>
! 11887: gnu*)
! 11888: # Test for a glibc version >= 2.27.
! 11889: for ac_func in copy_file_range
! 11890: do :
! 11891: ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
! 11892: if test "x$ac_cv_func_copy_file_range" = xyes; then :
! 11893: cat >>confdefs.h <<_ACEOF
! 11894: #define HAVE_COPY_FILE_RANGE 1
! 11895: _ACEOF
! 11896:
! 11897: fi
! 11898: done
! 11899:
! 11900: if test $ac_cv_func_copy_file_range = yes; then
! 11901: use_elf_origin_trick=yes
! 11902: fi
! 11903: ;;
! 11904: # FreeBSD >= 7.3, DragonFly >= 3.0: yes.
! 11905: freebsd | freebsd[1-7] | freebsd[1-6].* | freebsd7.[0-2]) ;;
! 11906: dragonfly | dragonfly[1-2] | dragonfly[1-2].*) ;;
! 11907: freebsd* | dragonfly*) use_elf_origin_trick=yes ;;
! 11908: # NetBSD >= 8.0: yes.
! 11909: netbsd | netbsd[1-7] | netbsd[1-7].*) ;;
! 11910: netbsdelf | netbsdelf[1-7] | netbsdelf[1-7].*) ;;
! 11911: netbsd*) use_elf_origin_trick=yes ;;
! 11912: # OpenBSD >= 5.4: yes.
! 11913: openbsd | openbsd[1-5] | openbsd[1-4].* | openbsd5.[0-3]) ;;
! 11914: openbsd*) use_elf_origin_trick=yes ;;
! 11915: # Solaris >= 10: yes.
! 11916: solaris | solaris2.[1-9] | solaris2.[1-9].*) ;;
! 11917: solaris*) use_elf_origin_trick=yes ;;
! 11918: # Haiku: yes.
! 11919: haiku*) use_elf_origin_trick=yes ;;
! 11920: # On Mac OS X 10.4 or newer, use Mac OS X tools. See
! 11921: # <https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath>.
! 11922: darwin | darwin[1-7].*) ;;
! 11923: darwin*) use_macos_tools=yes ;;
! 11924: esac
! 11925: if test $is_noop = yes; then
! 11926: RELOCATABLE_LDFLAGS=:
! 11927:
! 11928: else
! 11929: if test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
! 11930: case "$ac_aux_dir" in
! 11931: /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
! 11932: *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
! 11933: esac
! 11934: RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
! 11935:
! 11936: if test $use_macos_tools = yes; then
! 11937: case "$ac_aux_dir" in
! 11938: /*) LIBTOOL="${CONFIG_SHELL-$SHELL} $ac_aux_dir/libtool-reloc $LIBTOOL" ;;
! 11939: *) LIBTOOL="${CONFIG_SHELL-$SHELL} \$(top_builddir)/$ac_aux_dir/libtool-reloc $LIBTOOL" ;;
! 11940: esac
! 11941: fi
! 11942: else
! 11943: use_wrapper=yes
! 11944: INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
! 11945:
! 11946: case "$ac_aux_dir" in
! 11947: /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
! 11948: *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
! 11949: esac
! 11950: fi
! 11951: fi
! 11952: fi
! 11953: if test $is_noop = yes || test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then
! 11954: RELOCATABLE_VIA_LD_TRUE=
! 11955: RELOCATABLE_VIA_LD_FALSE='#'
! 11956: else
! 11957: RELOCATABLE_VIA_LD_TRUE='#'
! 11958: RELOCATABLE_VIA_LD_FALSE=
! 11959: fi
! 11960:
! 11961: if test $use_wrapper = yes; then
! 11962: RELOCATABLE_VIA_WRAPPER_TRUE=
! 11963: RELOCATABLE_VIA_WRAPPER_FALSE='#'
! 11964: else
! 11965: RELOCATABLE_VIA_WRAPPER_TRUE='#'
! 11966: RELOCATABLE_VIA_WRAPPER_FALSE=
! 11967: fi
! 11968:
! 11969:
! 11970:
! 11971:
! 11972:
! 11973:
! 11974:
! 11975:
! 11976: RELOCATABLE_STRIP=':'
! 11977:
! 11978:
! 11979:
! 11980:
! 11981:
! 11982:
! 11983:
! 11984: : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
! 11985: RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
! 11986: RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
! 11987:
! 11988:
! 11989:
1.1 misho 11990: CFLAG_VISIBILITY=
11991: HAVE_VISIBILITY=0
11992: if test -n "$GCC"; then
1.1.1.3 ! misho 11993: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
! 11994: $as_echo_n "checking whether the -Werror option is usable... " >&6; }
! 11995: if ${gl_cv_cc_vis_werror+:} false; then :
1.1 misho 11996: $as_echo_n "(cached) " >&6
11997: else
1.1.1.3 ! misho 11998: gl_save_CFLAGS="$CFLAGS"
! 11999: CFLAGS="$CFLAGS -Werror"
! 12000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 12001: /* end confdefs.h. */
1.1 misho 12002:
1.1.1.3 ! misho 12003: int
! 12004: main ()
! 12005: {
! 12006:
! 12007: ;
! 12008: return 0;
! 12009: }
! 12010: _ACEOF
! 12011: if ac_fn_c_try_compile "$LINENO"; then :
! 12012: gl_cv_cc_vis_werror=yes
! 12013: else
! 12014: gl_cv_cc_vis_werror=no
! 12015: fi
! 12016: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 12017: CFLAGS="$gl_save_CFLAGS"
! 12018:
! 12019: fi
! 12020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
! 12021: $as_echo "$gl_cv_cc_vis_werror" >&6; }
! 12022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
! 12023: $as_echo_n "checking for simple visibility declarations... " >&6; }
! 12024: if ${gl_cv_cc_visibility+:} false; then :
! 12025: $as_echo_n "(cached) " >&6
! 12026: else
! 12027: gl_save_CFLAGS="$CFLAGS"
! 12028: CFLAGS="$CFLAGS -fvisibility=hidden"
! 12029: if test $gl_cv_cc_vis_werror = yes; then
! 12030: CFLAGS="$CFLAGS -Werror"
! 12031: fi
! 12032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 12033: /* end confdefs.h. */
12034: extern __attribute__((__visibility__("hidden"))) int hiddenvar;
1.1.1.3 ! misho 12035: extern __attribute__((__visibility__("default"))) int exportedvar;
! 12036: extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
! 12037: extern __attribute__((__visibility__("default"))) int exportedfunc (void);
! 12038: void dummyfunc (void) {}
! 12039:
1.1 misho 12040: int
12041: main ()
12042: {
12043:
12044: ;
12045: return 0;
12046: }
12047: _ACEOF
1.1.1.2 misho 12048: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 12049: gl_cv_cc_visibility=yes
12050: else
1.1.1.2 misho 12051: gl_cv_cc_visibility=no
1.1 misho 12052: fi
12053: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.3 ! misho 12054: CFLAGS="$gl_save_CFLAGS"
1.1 misho 12055:
1.1.1.3 ! misho 12056: fi
! 12057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
1.1 misho 12058: $as_echo "$gl_cv_cc_visibility" >&6; }
12059: if test $gl_cv_cc_visibility = yes; then
12060: CFLAG_VISIBILITY="-fvisibility=hidden"
12061: HAVE_VISIBILITY=1
12062: fi
12063: fi
12064:
12065:
12066:
12067: cat >>confdefs.h <<_ACEOF
12068: #define HAVE_VISIBILITY $HAVE_VISIBILITY
12069: _ACEOF
12070:
12071:
12072:
12073:
12074:
1.1.1.2 misho 12075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
1.1 misho 12076: $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
1.1.1.2 misho 12077: if ${am_cv_langinfo_codeset+:} false; then :
1.1 misho 12078: $as_echo_n "(cached) " >&6
12079: else
1.1.1.2 misho 12080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 12081: /* end confdefs.h. */
12082: #include <langinfo.h>
12083: int
12084: main ()
12085: {
1.1.1.3 ! misho 12086: char* cs = nl_langinfo(CODESET); return !cs;
1.1 misho 12087: ;
12088: return 0;
12089: }
12090: _ACEOF
1.1.1.2 misho 12091: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 12092: am_cv_langinfo_codeset=yes
12093: else
1.1.1.2 misho 12094: am_cv_langinfo_codeset=no
1.1 misho 12095: fi
1.1.1.2 misho 12096: rm -f core conftest.err conftest.$ac_objext \
12097: conftest$ac_exeext conftest.$ac_ext
1.1 misho 12098:
12099: fi
1.1.1.2 misho 12100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
1.1 misho 12101: $as_echo "$am_cv_langinfo_codeset" >&6; }
12102: if test $am_cv_langinfo_codeset = yes; then
12103:
1.1.1.2 misho 12104: $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
1.1 misho 12105:
12106: fi
12107:
12108:
1.1.1.2 misho 12109:
1.1.1.3 ! misho 12110:
! 12111: for ac_header in $ac_header_list
! 12112: do :
! 12113: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 12114: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 12115: "
! 12116: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 12117: cat >>confdefs.h <<_ACEOF
! 12118: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 12119: _ACEOF
! 12120:
! 12121: fi
! 12122:
! 12123: done
! 12124:
! 12125:
! 12126:
! 12127:
! 12128:
! 12129:
! 12130: for ac_func in $ac_func_list
! 12131: do :
! 12132: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 12133: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 12134: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 12135: cat >>confdefs.h <<_ACEOF
! 12136: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 12137: _ACEOF
! 12138:
! 12139: fi
! 12140: done
! 12141:
! 12142:
! 12143:
! 12144:
! 12145:
! 12146:
! 12147:
! 12148:
1.1.1.2 misho 12149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
12150: $as_echo_n "checking for working fcntl.h... " >&6; }
12151: if ${gl_cv_header_working_fcntl_h+:} false; then :
1.1 misho 12152: $as_echo_n "(cached) " >&6
12153: else
1.1.1.2 misho 12154: if test "$cross_compiling" = yes; then :
1.1.1.3 ! misho 12155: case "$host_os" in
! 12156: # Guess 'no' on native Windows.
! 12157: mingw*) gl_cv_header_working_fcntl_h='no' ;;
! 12158: *) gl_cv_header_working_fcntl_h=cross-compiling ;;
! 12159: esac
! 12160:
1.1.1.2 misho 12161: else
12162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163: /* end confdefs.h. */
12164: #include <sys/types.h>
12165: #include <sys/stat.h>
1.1.1.3 ! misho 12166: #if HAVE_UNISTD_H
! 12167: # include <unistd.h>
! 12168: #else /* on Windows with MSVC */
! 12169: # include <io.h>
! 12170: # include <stdlib.h>
! 12171: # defined sleep(n) _sleep ((n) * 1000)
! 12172: #endif
1.1.1.2 misho 12173: #include <fcntl.h>
12174: #ifndef O_NOATIME
12175: #define O_NOATIME 0
12176: #endif
12177: #ifndef O_NOFOLLOW
12178: #define O_NOFOLLOW 0
12179: #endif
12180: static int const constants[] =
12181: {
12182: O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
12183: O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
12184: };
12185:
12186: int
12187: main ()
12188: {
12189:
1.1.1.3 ! misho 12190: int result = !constants;
! 12191: #if HAVE_SYMLINK
1.1.1.2 misho 12192: {
12193: static char const sym[] = "conftest.sym";
1.1.1.3 ! misho 12194: if (symlink ("/dev/null", sym) != 0)
! 12195: result |= 2;
! 12196: else
! 12197: {
! 12198: int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
! 12199: if (fd >= 0)
! 12200: {
! 12201: close (fd);
! 12202: result |= 4;
! 12203: }
! 12204: }
! 12205: if (unlink (sym) != 0 || symlink (".", sym) != 0)
! 12206: result |= 2;
! 12207: else
! 12208: {
! 12209: int fd = open (sym, O_RDONLY | O_NOFOLLOW);
! 12210: if (fd >= 0)
! 12211: {
! 12212: close (fd);
! 12213: result |= 4;
! 12214: }
! 12215: }
1.1.1.2 misho 12216: unlink (sym);
12217: }
1.1.1.3 ! misho 12218: #endif
1.1.1.2 misho 12219: {
12220: static char const file[] = "confdefs.h";
12221: int fd = open (file, O_RDONLY | O_NOATIME);
1.1.1.3 ! misho 12222: if (fd < 0)
! 12223: result |= 8;
! 12224: else
! 12225: {
! 12226: struct stat st0;
! 12227: if (fstat (fd, &st0) != 0)
! 12228: result |= 16;
! 12229: else
! 12230: {
! 12231: char c;
! 12232: sleep (1);
! 12233: if (read (fd, &c, 1) != 1)
! 12234: result |= 24;
! 12235: else
! 12236: {
! 12237: if (close (fd) != 0)
! 12238: result |= 32;
! 12239: else
! 12240: {
! 12241: struct stat st1;
! 12242: if (stat (file, &st1) != 0)
! 12243: result |= 40;
! 12244: else
! 12245: if (st0.st_atime != st1.st_atime)
! 12246: result |= 64;
! 12247: }
! 12248: }
! 12249: }
! 12250: }
1.1.1.2 misho 12251: }
1.1.1.3 ! misho 12252: return result;
1.1.1.2 misho 12253: ;
12254: return 0;
12255: }
12256: _ACEOF
12257: if ac_fn_c_try_run "$LINENO"; then :
12258: gl_cv_header_working_fcntl_h=yes
12259: else
12260: case $? in #(
1.1.1.3 ! misho 12261: 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
1.1.1.2 misho 12262: 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
1.1.1.3 ! misho 12263: 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
1.1.1.2 misho 12264: *) gl_cv_header_working_fcntl_h='no';;
12265: esac
12266: fi
12267: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12268: conftest.$ac_objext conftest.beam conftest.$ac_ext
12269: fi
12270:
1.1.1.3 ! misho 12271:
1.1.1.2 misho 12272: fi
12273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
12274: $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
12275:
12276: case $gl_cv_header_working_fcntl_h in #(
12277: *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
12278: *) ac_val=1;;
12279: esac
12280:
12281: cat >>confdefs.h <<_ACEOF
12282: #define HAVE_WORKING_O_NOATIME $ac_val
12283: _ACEOF
12284:
12285:
12286: case $gl_cv_header_working_fcntl_h in #(
12287: *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
12288: *) ac_val=1;;
12289: esac
12290:
12291: cat >>confdefs.h <<_ACEOF
12292: #define HAVE_WORKING_O_NOFOLLOW $ac_val
1.1 misho 12293: _ACEOF
1.1.1.2 misho 12294:
12295:
12296:
1.1.1.3 ! misho 12297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
! 12298: $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
1.1.1.2 misho 12299: if ${ac_cv_gnu_library_2_1+:} false; then :
12300: $as_echo_n "(cached) " >&6
12301: else
12302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 12303: /* end confdefs.h. */
12304:
12305: #include <features.h>
12306: #ifdef __GNU_LIBRARY__
12307: #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12308: Lucky GNU user
12309: #endif
12310: #endif
1.1.1.3 ! misho 12311: #ifdef __UCLIBC__
! 12312: Lucky user
! 12313: #endif
1.1 misho 12314:
12315: _ACEOF
12316: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.3 ! misho 12317: $EGREP "Lucky" >/dev/null 2>&1; then :
1.1 misho 12318: ac_cv_gnu_library_2_1=yes
12319: else
12320: ac_cv_gnu_library_2_1=no
12321: fi
12322: rm -f conftest*
12323:
12324:
12325:
12326: fi
1.1.1.2 misho 12327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
1.1 misho 12328: $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12329:
12330: GLIBC21="$ac_cv_gnu_library_2_1"
12331:
12332:
12333: for ac_func in setlocale
1.1.1.2 misho 12334: do :
12335: ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12336: if test "x$ac_cv_func_setlocale" = xyes; then :
1.1 misho 12337: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 12338: #define HAVE_SETLOCALE 1
1.1 misho 12339: _ACEOF
12340:
12341: fi
12342: done
12343:
12344:
12345: ac_config_files="$ac_config_files Makefile"
12346:
12347: ac_config_files="$ac_config_files lib/Makefile"
12348:
12349: ac_config_files="$ac_config_files include/localcharset.h:include/localcharset.h.build.in"
12350:
12351: ac_config_files="$ac_config_files include/localcharset.h.inst:include/localcharset.h.in"
12352:
12353: cat >confcache <<\_ACEOF
12354: # This file is a shell script that caches the results of configure
12355: # tests run on this system so they can be shared between configure
12356: # scripts and configure runs, see configure's option --config-cache.
12357: # It is not useful on other systems. If it contains results you don't
12358: # want to keep, you may remove or edit it.
12359: #
12360: # config.status only pays attention to the cache file if you give it
12361: # the --recheck option to rerun configure.
12362: #
12363: # `ac_cv_env_foo' variables (set or unset) will be overridden when
12364: # loading this file, other *unset* `ac_cv_foo' will be assigned the
12365: # following values.
12366:
12367: _ACEOF
12368:
12369: # The following way of writing the cache mishandles newlines in values,
12370: # but we know of no workaround that is simple, portable, and efficient.
12371: # So, we kill variables containing newlines.
12372: # Ultrix sh set writes to stderr and can't be redirected directly,
12373: # and sets the high bit in the cache file unless we assign to the vars.
12374: (
12375: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12376: eval ac_val=\$$ac_var
12377: case $ac_val in #(
12378: *${as_nl}*)
12379: case $ac_var in #(
1.1.1.2 misho 12380: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1.1 misho 12381: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12382: esac
12383: case $ac_var in #(
12384: _ | IFS | as_nl) ;; #(
12385: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.1.2 misho 12386: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 misho 12387: esac ;;
12388: esac
12389: done
12390:
12391: (set) 2>&1 |
12392: case $as_nl`(ac_space=' '; set) 2>&1` in #(
12393: *${as_nl}ac_space=\ *)
1.1.1.2 misho 12394: # `set' does not quote correctly, so add quotes: double-quote
12395: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 misho 12396: sed -n \
12397: "s/'/'\\\\''/g;
12398: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12399: ;; #(
12400: *)
12401: # `set' quotes correctly as required by POSIX, so do not add quotes.
12402: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12403: ;;
12404: esac |
12405: sort
12406: ) |
12407: sed '
12408: /^ac_cv_env_/b end
12409: t clear
12410: :clear
12411: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12412: t end
12413: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12414: :end' >>confcache
12415: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12416: if test -w "$cache_file"; then
1.1.1.2 misho 12417: if test "x$cache_file" != "x/dev/null"; then
12418: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1.1 misho 12419: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1.1.2 misho 12420: if test ! -f "$cache_file" || test -h "$cache_file"; then
12421: cat confcache >"$cache_file"
12422: else
12423: case $cache_file in #(
12424: */* | ?:*)
12425: mv -f confcache "$cache_file"$$ &&
12426: mv -f "$cache_file"$$ "$cache_file" ;; #(
12427: *)
12428: mv -f confcache "$cache_file" ;;
12429: esac
12430: fi
12431: fi
1.1 misho 12432: else
1.1.1.2 misho 12433: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1.1 misho 12434: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12435: fi
12436: fi
12437: rm -f confcache
12438:
12439: test "x$prefix" = xNONE && prefix=$ac_default_prefix
12440: # Let make expand exec_prefix.
12441: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12442:
12443: DEFS=-DHAVE_CONFIG_H
12444:
12445: ac_libobjs=
12446: ac_ltlibobjs=
1.1.1.2 misho 12447: U=
1.1 misho 12448: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12449: # 1. Remove the extension, and $U if already installed.
12450: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12451: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12452: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12453: # will be set to the directory where LIBOBJS objects are built.
1.1.1.2 misho 12454: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12455: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 misho 12456: done
12457: LIBOBJS=$ac_libobjs
12458:
12459: LTLIBOBJS=$ac_ltlibobjs
12460:
12461:
1.1.1.3 ! misho 12462: if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
! 12463: as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
! 12464: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 12465: fi
! 12466: if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
! 12467: as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
! 12468: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 12469: fi
1.1 misho 12470:
1.1.1.2 misho 12471: : "${CONFIG_STATUS=./config.status}"
1.1 misho 12472: ac_write_fail=0
12473: ac_clean_files_save=$ac_clean_files
12474: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.1.1.2 misho 12475: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1.1 misho 12476: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1.1.1.2 misho 12477: as_write_fail=0
12478: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 misho 12479: #! $SHELL
12480: # Generated by $as_me.
12481: # Run this file to recreate the current configuration.
12482: # Compiler output produced by configure, useful for debugging
12483: # configure, is in config.log if it exists.
12484:
12485: debug=false
12486: ac_cs_recheck=false
12487: ac_cs_silent=false
12488:
1.1.1.2 misho 12489: SHELL=\${CONFIG_SHELL-$SHELL}
12490: export SHELL
12491: _ASEOF
12492: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12493: ## -------------------- ##
12494: ## M4sh Initialization. ##
12495: ## -------------------- ##
1.1 misho 12496:
12497: # Be more Bourne compatible
12498: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.2 misho 12499: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 misho 12500: emulate sh
12501: NULLCMD=:
12502: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12503: # is contrary to our usage. Disable this feature.
12504: alias -g '${1+"$@"}'='"$@"'
12505: setopt NO_GLOB_SUBST
12506: else
1.1.1.2 misho 12507: case `(set -o) 2>/dev/null` in #(
12508: *posix*) :
12509: set -o posix ;; #(
12510: *) :
12511: ;;
1.1 misho 12512: esac
12513: fi
12514:
12515:
12516: as_nl='
12517: '
12518: export as_nl
12519: # Printing a long string crashes Solaris 7 /usr/bin/printf.
12520: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12521: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12522: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1.1.1.2 misho 12523: # Prefer a ksh shell builtin over an external printf program on Solaris,
12524: # but without wasting forks for bash or zsh.
12525: if test -z "$BASH_VERSION$ZSH_VERSION" \
12526: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12527: as_echo='print -r --'
12528: as_echo_n='print -rn --'
12529: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.1 misho 12530: as_echo='printf %s\n'
12531: as_echo_n='printf %s'
12532: else
12533: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12534: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12535: as_echo_n='/usr/ucb/echo -n'
12536: else
12537: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12538: as_echo_n_body='eval
12539: arg=$1;
1.1.1.2 misho 12540: case $arg in #(
1.1 misho 12541: *"$as_nl"*)
12542: expr "X$arg" : "X\\(.*\\)$as_nl";
12543: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12544: esac;
12545: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12546: '
12547: export as_echo_n_body
12548: as_echo_n='sh -c $as_echo_n_body as_echo'
12549: fi
12550: export as_echo_body
12551: as_echo='sh -c $as_echo_body as_echo'
12552: fi
12553:
12554: # The user is always right.
12555: if test "${PATH_SEPARATOR+set}" != set; then
12556: PATH_SEPARATOR=:
12557: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12558: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12559: PATH_SEPARATOR=';'
12560: }
12561: fi
12562:
12563:
12564: # IFS
12565: # We need space, tab and new line, in precisely that order. Quoting is
12566: # there to prevent editors from complaining about space-tab.
12567: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12568: # splitting by setting IFS to empty value.)
12569: IFS=" "" $as_nl"
12570:
12571: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 misho 12572: as_myself=
12573: case $0 in #((
1.1 misho 12574: *[\\/]* ) as_myself=$0 ;;
12575: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576: for as_dir in $PATH
12577: do
12578: IFS=$as_save_IFS
12579: test -z "$as_dir" && as_dir=.
1.1.1.2 misho 12580: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12581: done
1.1 misho 12582: IFS=$as_save_IFS
12583:
12584: ;;
12585: esac
12586: # We did not find ourselves, most probably we were run as `sh COMMAND'
12587: # in which case we are not to be found in the path.
12588: if test "x$as_myself" = x; then
12589: as_myself=$0
12590: fi
12591: if test ! -f "$as_myself"; then
12592: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.1.2 misho 12593: exit 1
1.1 misho 12594: fi
12595:
1.1.1.2 misho 12596: # Unset variables that we do not need and which cause bugs (e.g. in
12597: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12598: # suppresses any "Segmentation fault" message there. '((' could
12599: # trigger a bug in pdksh 5.2.14.
12600: for as_var in BASH_ENV ENV MAIL MAILPATH
12601: do eval test x\${$as_var+set} = xset \
12602: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 misho 12603: done
12604: PS1='$ '
12605: PS2='> '
12606: PS4='+ '
12607:
12608: # NLS nuisances.
12609: LC_ALL=C
12610: export LC_ALL
12611: LANGUAGE=C
12612: export LANGUAGE
12613:
12614: # CDPATH.
1.1.1.2 misho 12615: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12616:
1.1 misho 12617:
1.1.1.2 misho 12618: # as_fn_error STATUS ERROR [LINENO LOG_FD]
12619: # ----------------------------------------
12620: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12621: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12622: # script with STATUS, using 1 if that was 0.
12623: as_fn_error ()
12624: {
12625: as_status=$1; test $as_status -eq 0 && as_status=1
12626: if test "$4"; then
12627: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12628: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12629: fi
12630: $as_echo "$as_me: error: $2" >&2
12631: as_fn_exit $as_status
12632: } # as_fn_error
12633:
12634:
12635: # as_fn_set_status STATUS
12636: # -----------------------
12637: # Set $? to STATUS, without forking.
12638: as_fn_set_status ()
12639: {
12640: return $1
12641: } # as_fn_set_status
12642:
12643: # as_fn_exit STATUS
12644: # -----------------
12645: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12646: as_fn_exit ()
12647: {
12648: set +e
12649: as_fn_set_status $1
12650: exit $1
12651: } # as_fn_exit
12652:
12653: # as_fn_unset VAR
12654: # ---------------
12655: # Portably unset VAR.
12656: as_fn_unset ()
12657: {
12658: { eval $1=; unset $1;}
12659: }
12660: as_unset=as_fn_unset
12661: # as_fn_append VAR VALUE
12662: # ----------------------
12663: # Append the text in VALUE to the end of the definition contained in VAR. Take
12664: # advantage of any shell optimizations that allow amortized linear growth over
12665: # repeated appends, instead of the typical quadratic growth present in naive
12666: # implementations.
12667: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12668: eval 'as_fn_append ()
12669: {
12670: eval $1+=\$2
12671: }'
12672: else
12673: as_fn_append ()
12674: {
12675: eval $1=\$$1\$2
12676: }
12677: fi # as_fn_append
1.1 misho 12678:
1.1.1.2 misho 12679: # as_fn_arith ARG...
12680: # ------------------
12681: # Perform arithmetic evaluation on the ARGs, and store the result in the
12682: # global $as_val. Take advantage of shells that can avoid forks. The arguments
12683: # must be portable across $(()) and expr.
12684: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12685: eval 'as_fn_arith ()
12686: {
12687: as_val=$(( $* ))
12688: }'
12689: else
12690: as_fn_arith ()
12691: {
12692: as_val=`expr "$@" || test $? -eq 1`
12693: }
12694: fi # as_fn_arith
1.1 misho 12695:
12696:
1.1.1.2 misho 12697: if expr a : '\(a\)' >/dev/null 2>&1 &&
12698: test "X`expr 00001 : '.*\(...\)'`" = X001; then
12699: as_expr=expr
12700: else
12701: as_expr=false
12702: fi
1.1 misho 12703:
1.1.1.2 misho 12704: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12705: as_basename=basename
12706: else
12707: as_basename=false
12708: fi
1.1 misho 12709:
12710: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12711: as_dirname=dirname
12712: else
12713: as_dirname=false
12714: fi
12715:
1.1.1.2 misho 12716: as_me=`$as_basename -- "$0" ||
12717: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12718: X"$0" : 'X\(//\)$' \| \
12719: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12720: $as_echo X/"$0" |
12721: sed '/^.*\/\([^/][^/]*\)\/*$/{
12722: s//\1/
12723: q
12724: }
12725: /^X\/\(\/\/\)$/{
12726: s//\1/
12727: q
12728: }
12729: /^X\/\(\/\).*/{
12730: s//\1/
12731: q
12732: }
12733: s/.*/./; q'`
12734:
12735: # Avoid depending upon Character Ranges.
12736: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12737: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12738: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12739: as_cr_digits='0123456789'
12740: as_cr_alnum=$as_cr_Letters$as_cr_digits
12741:
1.1 misho 12742: ECHO_C= ECHO_N= ECHO_T=
1.1.1.2 misho 12743: case `echo -n x` in #(((((
1.1 misho 12744: -n*)
1.1.1.2 misho 12745: case `echo 'xy\c'` in
1.1 misho 12746: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.1.1.2 misho 12747: xy) ECHO_C='\c';;
12748: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12749: ECHO_T=' ';;
1.1 misho 12750: esac;;
12751: *)
12752: ECHO_N='-n';;
12753: esac
12754:
12755: rm -f conf$$ conf$$.exe conf$$.file
12756: if test -d conf$$.dir; then
12757: rm -f conf$$.dir/conf$$.file
12758: else
12759: rm -f conf$$.dir
12760: mkdir conf$$.dir 2>/dev/null
12761: fi
12762: if (echo >conf$$.file) 2>/dev/null; then
12763: if ln -s conf$$.file conf$$ 2>/dev/null; then
12764: as_ln_s='ln -s'
12765: # ... but there are two gotchas:
12766: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12767: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3 ! misho 12768: # In both cases, we have to default to `cp -pR'.
1.1 misho 12769: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 ! misho 12770: as_ln_s='cp -pR'
1.1 misho 12771: elif ln conf$$.file conf$$ 2>/dev/null; then
12772: as_ln_s=ln
12773: else
1.1.1.3 ! misho 12774: as_ln_s='cp -pR'
1.1 misho 12775: fi
12776: else
1.1.1.3 ! misho 12777: as_ln_s='cp -pR'
1.1 misho 12778: fi
12779: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12780: rmdir conf$$.dir 2>/dev/null
12781:
1.1.1.2 misho 12782:
12783: # as_fn_mkdir_p
12784: # -------------
12785: # Create "$as_dir" as a directory, including parents if necessary.
12786: as_fn_mkdir_p ()
12787: {
12788:
12789: case $as_dir in #(
12790: -*) as_dir=./$as_dir;;
12791: esac
12792: test -d "$as_dir" || eval $as_mkdir_p || {
12793: as_dirs=
12794: while :; do
12795: case $as_dir in #(
12796: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12797: *) as_qdir=$as_dir;;
12798: esac
12799: as_dirs="'$as_qdir' $as_dirs"
12800: as_dir=`$as_dirname -- "$as_dir" ||
12801: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12802: X"$as_dir" : 'X\(//\)[^/]' \| \
12803: X"$as_dir" : 'X\(//\)$' \| \
12804: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12805: $as_echo X"$as_dir" |
12806: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12807: s//\1/
12808: q
12809: }
12810: /^X\(\/\/\)[^/].*/{
12811: s//\1/
12812: q
12813: }
12814: /^X\(\/\/\)$/{
12815: s//\1/
12816: q
12817: }
12818: /^X\(\/\).*/{
12819: s//\1/
12820: q
12821: }
12822: s/.*/./; q'`
12823: test -d "$as_dir" && break
12824: done
12825: test -z "$as_dirs" || eval "mkdir $as_dirs"
12826: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12827:
12828:
12829: } # as_fn_mkdir_p
1.1 misho 12830: if mkdir -p . 2>/dev/null; then
1.1.1.2 misho 12831: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misho 12832: else
12833: test -d ./-p && rmdir ./-p
12834: as_mkdir_p=false
12835: fi
12836:
1.1.1.3 ! misho 12837:
! 12838: # as_fn_executable_p FILE
! 12839: # -----------------------
! 12840: # Test if FILE is an executable regular file.
! 12841: as_fn_executable_p ()
! 12842: {
! 12843: test -f "$1" && test -x "$1"
! 12844: } # as_fn_executable_p
! 12845: as_test_x='test -x'
! 12846: as_executable_p=as_fn_executable_p
1.1 misho 12847:
12848: # Sed expression to map a string onto a valid CPP name.
12849: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12850:
12851: # Sed expression to map a string onto a valid variable name.
12852: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12853:
12854:
12855: exec 6>&1
1.1.1.2 misho 12856: ## ----------------------------------- ##
12857: ## Main body of $CONFIG_STATUS script. ##
12858: ## ----------------------------------- ##
12859: _ASEOF
12860: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 misho 12861:
1.1.1.2 misho 12862: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12863: # Save the log message, to keep $0 and so on meaningful, and to
1.1 misho 12864: # report actual input values of CONFIG_FILES etc. instead of their
12865: # values after options handling.
12866: ac_log="
1.1.1.3 ! misho 12867: This file was extended by libcharset $as_me 1.4, which was
! 12868: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 12869:
12870: CONFIG_FILES = $CONFIG_FILES
12871: CONFIG_HEADERS = $CONFIG_HEADERS
12872: CONFIG_LINKS = $CONFIG_LINKS
12873: CONFIG_COMMANDS = $CONFIG_COMMANDS
12874: $ $0 $@
12875:
12876: on `(hostname || uname -n) 2>/dev/null | sed 1q`
12877: "
12878:
12879: _ACEOF
12880:
12881: case $ac_config_files in *"
12882: "*) set x $ac_config_files; shift; ac_config_files=$*;;
12883: esac
12884:
12885: case $ac_config_headers in *"
12886: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12887: esac
12888:
12889:
12890: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12891: # Files that config.status was made for.
12892: config_files="$ac_config_files"
12893: config_headers="$ac_config_headers"
12894: config_commands="$ac_config_commands"
12895:
12896: _ACEOF
12897:
12898: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12899: ac_cs_usage="\
1.1.1.2 misho 12900: \`$as_me' instantiates files and other configuration actions
12901: from templates according to the current configuration. Unless the files
12902: and actions are specified as TAGs, all are instantiated by default.
1.1 misho 12903:
1.1.1.2 misho 12904: Usage: $0 [OPTION]... [TAG]...
1.1 misho 12905:
12906: -h, --help print this help, then exit
12907: -V, --version print version number and configuration settings, then exit
1.1.1.2 misho 12908: --config print configuration, then exit
1.1 misho 12909: -q, --quiet, --silent
12910: do not print progress messages
12911: -d, --debug don't remove temporary files
12912: --recheck update $as_me by reconfiguring in the same conditions
12913: --file=FILE[:TEMPLATE]
12914: instantiate the configuration file FILE
12915: --header=FILE[:TEMPLATE]
12916: instantiate the configuration header FILE
12917:
12918: Configuration files:
12919: $config_files
12920:
12921: Configuration headers:
12922: $config_headers
12923:
12924: Configuration commands:
12925: $config_commands
12926:
1.1.1.2 misho 12927: Report bugs to the package provider."
1.1 misho 12928:
12929: _ACEOF
12930: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.2 misho 12931: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 misho 12932: ac_cs_version="\\
1.1.1.3 ! misho 12933: libcharset config.status 1.4
! 12934: configured by $0, generated by GNU Autoconf 2.69,
1.1.1.2 misho 12935: with options \\"\$ac_cs_config\\"
1.1 misho 12936:
1.1.1.3 ! misho 12937: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 12938: This config.status script is free software; the Free Software Foundation
12939: gives unlimited permission to copy, distribute and modify it."
12940:
12941: ac_pwd='$ac_pwd'
12942: srcdir='$srcdir'
12943: INSTALL='$INSTALL'
1.1.1.2 misho 12944: AWK='$AWK'
1.1 misho 12945: test -n "\$AWK" || AWK=awk
12946: _ACEOF
12947:
12948: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12949: # The default lists apply if the user does not specify any file.
12950: ac_need_defaults=:
12951: while test $# != 0
12952: do
12953: case $1 in
1.1.1.2 misho 12954: --*=?*)
1.1 misho 12955: ac_option=`expr "X$1" : 'X\([^=]*\)='`
12956: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12957: ac_shift=:
12958: ;;
1.1.1.2 misho 12959: --*=)
12960: ac_option=`expr "X$1" : 'X\([^=]*\)='`
12961: ac_optarg=
12962: ac_shift=:
12963: ;;
1.1 misho 12964: *)
12965: ac_option=$1
12966: ac_optarg=$2
12967: ac_shift=shift
12968: ;;
12969: esac
12970:
12971: case $ac_option in
12972: # Handling of the options.
12973: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12974: ac_cs_recheck=: ;;
12975: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12976: $as_echo "$ac_cs_version"; exit ;;
1.1.1.2 misho 12977: --config | --confi | --conf | --con | --co | --c )
12978: $as_echo "$ac_cs_config"; exit ;;
1.1 misho 12979: --debug | --debu | --deb | --de | --d | -d )
12980: debug=: ;;
12981: --file | --fil | --fi | --f )
12982: $ac_shift
12983: case $ac_optarg in
12984: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.1.2 misho 12985: '') as_fn_error $? "missing file argument" ;;
1.1 misho 12986: esac
1.1.1.2 misho 12987: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 misho 12988: ac_need_defaults=false;;
12989: --header | --heade | --head | --hea )
12990: $ac_shift
12991: case $ac_optarg in
12992: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12993: esac
1.1.1.2 misho 12994: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 misho 12995: ac_need_defaults=false;;
12996: --he | --h)
12997: # Conflict between --help and --header
1.1.1.2 misho 12998: as_fn_error $? "ambiguous option: \`$1'
12999: Try \`$0 --help' for more information.";;
1.1 misho 13000: --help | --hel | -h )
13001: $as_echo "$ac_cs_usage"; exit ;;
13002: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13003: | -silent | --silent | --silen | --sile | --sil | --si | --s)
13004: ac_cs_silent=: ;;
13005:
13006: # This is an error.
1.1.1.2 misho 13007: -*) as_fn_error $? "unrecognized option: \`$1'
13008: Try \`$0 --help' for more information." ;;
1.1 misho 13009:
1.1.1.2 misho 13010: *) as_fn_append ac_config_targets " $1"
1.1 misho 13011: ac_need_defaults=false ;;
13012:
13013: esac
13014: shift
13015: done
13016:
13017: ac_configure_extra_args=
13018:
13019: if $ac_cs_silent; then
13020: exec 6>/dev/null
13021: ac_configure_extra_args="$ac_configure_extra_args --silent"
13022: fi
13023:
13024: _ACEOF
13025: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13026: if \$ac_cs_recheck; then
1.1.1.3 ! misho 13027: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 misho 13028: shift
13029: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13030: CONFIG_SHELL='$SHELL'
13031: export CONFIG_SHELL
13032: exec "\$@"
13033: fi
13034:
13035: _ACEOF
13036: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13037: exec 5>>config.log
13038: {
13039: echo
13040: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13041: ## Running $as_me. ##
13042: _ASBOX
13043: $as_echo "$ac_log"
13044: } >&5
13045:
13046: _ACEOF
13047: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13048: #
13049: # INIT-COMMANDS
13050: #
13051:
13052:
13053: # The HP-UX ksh and POSIX shell print the target directory to stdout
13054: # if CDPATH is set.
13055: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13056:
13057: sed_quote_subst='$sed_quote_subst'
13058: double_quote_subst='$double_quote_subst'
13059: delay_variable_subst='$delay_variable_subst'
1.1.1.2 misho 13060: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13061: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13062: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13063: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13064: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13065: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13066: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13067: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13068: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1.1.1.3 ! misho 13069: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 13070: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13071: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1.1.1.3 ! misho 13072: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 13073: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13074: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13075: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13076: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13077: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13078: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13079: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13080: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13081: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13082: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13083: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13084: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13085: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13086: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13087: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13088: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13089: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13090: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13091: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13092: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13093: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13094: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13095: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13096: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13097: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13098: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13099: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13100: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13101: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13102: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13103: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13104: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13105: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13106: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13107: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13108: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13109: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13110: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13111: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13112: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13113: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13114: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13115: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13116: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1.1.1.3 ! misho 13117: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 13118: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13119: 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.3 ! misho 13120: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 13121: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13122: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1.1.1.3 ! misho 13123: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 13124: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13125: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13126: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13127: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13128: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13129: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13130: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13131: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13132: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13133: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13134: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13135: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13136: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13137: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13138: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13139: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13140: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13141: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13142: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13143: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13144: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13145: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13146: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13147: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13148: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13149: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13150: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13151: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13152: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13153: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13154: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13155: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13156: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13157: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13158: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13159: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13160: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13161: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13162: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13163: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13164: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13165: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13166: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13167: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13168: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13169: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13170: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13171: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13172: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13173: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13174: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13175: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13176: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13177: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13178: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13179: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13180: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13181: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13182: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13183: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13184: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13185: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13186: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13187: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1.1.1.3 ! misho 13188: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
! 13189: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 13190: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13191: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13192: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13193: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13194: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13195: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1.1 misho 13196:
13197: LTCC='$LTCC'
13198: LTCFLAGS='$LTCFLAGS'
13199: compiler='$compiler_DEFAULT'
13200:
1.1.1.2 misho 13201: # A function that is used when there is no print builtin or printf.
13202: func_fallback_echo ()
13203: {
13204: eval 'cat <<_LTECHO_EOF
13205: \$1
13206: _LTECHO_EOF'
13207: }
13208:
1.1 misho 13209: # Quote evaled strings.
1.1.1.2 misho 13210: for var in AS \
13211: DLLTOOL \
13212: OBJDUMP \
13213: SHELL \
13214: ECHO \
1.1.1.3 ! misho 13215: PATH_SEPARATOR \
1.1.1.2 misho 13216: SED \
1.1 misho 13217: GREP \
13218: EGREP \
13219: FGREP \
13220: LD \
13221: NM \
13222: LN_S \
13223: lt_SP2NL \
13224: lt_NL2SP \
13225: reload_flag \
13226: deplibs_check_method \
13227: file_magic_cmd \
1.1.1.2 misho 13228: file_magic_glob \
13229: want_nocaseglob \
13230: sharedlib_from_linklib_cmd \
1.1 misho 13231: AR \
13232: AR_FLAGS \
1.1.1.2 misho 13233: archiver_list_spec \
1.1 misho 13234: STRIP \
13235: RANLIB \
13236: CC \
13237: CFLAGS \
13238: compiler \
13239: lt_cv_sys_global_symbol_pipe \
13240: lt_cv_sys_global_symbol_to_cdecl \
1.1.1.3 ! misho 13241: lt_cv_sys_global_symbol_to_import \
1.1 misho 13242: lt_cv_sys_global_symbol_to_c_name_address \
13243: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.1.1.3 ! misho 13244: lt_cv_nm_interface \
1.1.1.2 misho 13245: nm_file_list_spec \
1.1.1.3 ! misho 13246: lt_cv_truncate_bin \
1.1 misho 13247: lt_prog_compiler_no_builtin_flag \
13248: lt_prog_compiler_pic \
1.1.1.2 misho 13249: lt_prog_compiler_wl \
1.1 misho 13250: lt_prog_compiler_static \
13251: lt_cv_prog_compiler_c_o \
13252: need_locks \
1.1.1.2 misho 13253: MANIFEST_TOOL \
1.1 misho 13254: DSYMUTIL \
13255: NMEDIT \
13256: LIPO \
13257: OTOOL \
13258: OTOOL64 \
13259: shrext_cmds \
13260: export_dynamic_flag_spec \
13261: whole_archive_flag_spec \
13262: compiler_needs_object \
13263: with_gnu_ld \
13264: allow_undefined_flag \
13265: no_undefined_flag \
13266: hardcode_libdir_flag_spec \
13267: hardcode_libdir_separator \
13268: exclude_expsyms \
13269: include_expsyms \
13270: file_list_spec \
13271: variables_saved_for_relink \
13272: libname_spec \
13273: library_names_spec \
13274: soname_spec \
1.1.1.2 misho 13275: install_override_mode \
1.1 misho 13276: finish_eval \
13277: old_striplib \
13278: striplib; do
1.1.1.2 misho 13279: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1.1 misho 13280: *[\\\\\\\`\\"\\\$]*)
1.1.1.3 ! misho 13281: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.1 misho 13282: ;;
13283: *)
13284: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13285: ;;
13286: esac
13287: done
13288:
13289: # Double-quote double-evaled strings.
13290: for var in reload_cmds \
13291: old_postinstall_cmds \
13292: old_postuninstall_cmds \
13293: old_archive_cmds \
13294: extract_expsyms_cmds \
13295: old_archive_from_new_cmds \
13296: old_archive_from_expsyms_cmds \
13297: archive_cmds \
13298: archive_expsym_cmds \
13299: module_cmds \
13300: module_expsym_cmds \
13301: export_symbols_cmds \
13302: prelink_cmds \
1.1.1.2 misho 13303: postlink_cmds \
1.1 misho 13304: postinstall_cmds \
13305: postuninstall_cmds \
13306: finish_cmds \
13307: sys_lib_search_path_spec \
1.1.1.3 ! misho 13308: configure_time_dlsearch_path \
! 13309: configure_time_lt_sys_library_path; do
1.1.1.2 misho 13310: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1.1 misho 13311: *[\\\\\\\`\\"\\\$]*)
1.1.1.3 ! misho 13312: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.1 misho 13313: ;;
13314: *)
13315: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13316: ;;
13317: esac
13318: done
13319:
13320: ac_aux_dir='$ac_aux_dir'
13321:
1.1.1.3 ! misho 13322: # See if we are running on zsh, and set the options that allow our
1.1 misho 13323: # commands through without removal of \ escapes INIT.
1.1.1.3 ! misho 13324: if test -n "\${ZSH_VERSION+set}"; then
1.1 misho 13325: setopt NO_GLOB_SUBST
13326: fi
13327:
13328:
13329: PACKAGE='$PACKAGE'
13330: VERSION='$VERSION'
13331: RM='$RM'
13332: ofile='$ofile'
13333:
13334:
13335:
13336:
13337: _ACEOF
13338:
13339: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13340:
13341: # Handling of arguments.
13342: for ac_config_target in $ac_config_targets
13343: do
13344: case $ac_config_target in
13345: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13346: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13347: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13348: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13349: "include/localcharset.h") CONFIG_FILES="$CONFIG_FILES include/localcharset.h:include/localcharset.h.build.in" ;;
13350: "include/localcharset.h.inst") CONFIG_FILES="$CONFIG_FILES include/localcharset.h.inst:include/localcharset.h.in" ;;
13351:
1.1.1.2 misho 13352: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 misho 13353: esac
13354: done
13355:
13356:
13357: # If the user did not use the arguments to specify the items to instantiate,
13358: # then the envvar interface is used. Set only those that are not.
13359: # We use the long form for the default assignment because of an extremely
13360: # bizarre bug on SunOS 4.1.3.
13361: if $ac_need_defaults; then
13362: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13363: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13364: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13365: fi
13366:
13367: # Have a temporary directory for convenience. Make it in the build tree
13368: # simply because there is no reason against having it here, and in addition,
13369: # creating and moving files from /tmp can sometimes cause problems.
13370: # Hook for its removal unless debugging.
13371: # Note that there is a small window in which the directory will not be cleaned:
13372: # after its creation but before its name has been assigned to `$tmp'.
13373: $debug ||
13374: {
1.1.1.2 misho 13375: tmp= ac_tmp=
1.1 misho 13376: trap 'exit_status=$?
1.1.1.2 misho 13377: : "${ac_tmp:=$tmp}"
13378: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 misho 13379: ' 0
1.1.1.2 misho 13380: trap 'as_fn_exit 1' 1 2 13 15
1.1 misho 13381: }
13382: # Create a (secure) tmp directory for tmp files.
13383:
13384: {
13385: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.1.2 misho 13386: test -d "$tmp"
1.1 misho 13387: } ||
13388: {
13389: tmp=./conf$$-$RANDOM
13390: (umask 077 && mkdir "$tmp")
1.1.1.2 misho 13391: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13392: ac_tmp=$tmp
1.1 misho 13393:
13394: # Set up the scripts for CONFIG_FILES section.
13395: # No need to generate them if there are no CONFIG_FILES.
13396: # This happens for instance with `./config.status config.h'.
13397: if test -n "$CONFIG_FILES"; then
13398:
13399:
1.1.1.2 misho 13400: ac_cr=`echo X | tr X '\015'`
13401: # On cygwin, bash can eat \r inside `` if the user requested igncr.
13402: # But we know of no other shell where ac_cr would be empty at this
13403: # point, so we can use a bashism as a fallback.
13404: if test "x$ac_cr" = x; then
13405: eval ac_cr=\$\'\\r\'
13406: fi
1.1 misho 13407: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13408: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13409: ac_cs_awk_cr='\\r'
13410: else
13411: ac_cs_awk_cr=$ac_cr
13412: fi
13413:
1.1.1.2 misho 13414: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.1 misho 13415: _ACEOF
13416:
13417:
13418: {
13419: echo "cat >conf$$subs.awk <<_ACEOF" &&
13420: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13421: echo "_ACEOF"
13422: } >conf$$subs.sh ||
1.1.1.2 misho 13423: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13424: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.1 misho 13425: ac_delim='%!_!# '
13426: for ac_last_try in false false false false false :; do
13427: . ./conf$$subs.sh ||
1.1.1.2 misho 13428: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 13429:
13430: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13431: if test $ac_delim_n = $ac_delim_num; then
13432: break
13433: elif $ac_last_try; then
1.1.1.2 misho 13434: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 13435: else
13436: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13437: fi
13438: done
13439: rm -f conf$$subs.sh
13440:
13441: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.2 misho 13442: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.1 misho 13443: _ACEOF
13444: sed -n '
13445: h
13446: s/^/S["/; s/!.*/"]=/
13447: p
13448: g
13449: s/^[^!]*!//
13450: :repl
13451: t repl
13452: s/'"$ac_delim"'$//
13453: t delim
13454: :nl
13455: h
1.1.1.2 misho 13456: s/\(.\{148\}\)..*/\1/
1.1 misho 13457: t more1
13458: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13459: p
13460: n
13461: b repl
13462: :more1
13463: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13464: p
13465: g
13466: s/.\{148\}//
13467: t nl
13468: :delim
13469: h
1.1.1.2 misho 13470: s/\(.\{148\}\)..*/\1/
1.1 misho 13471: t more2
13472: s/["\\]/\\&/g; s/^/"/; s/$/"/
13473: p
13474: b
13475: :more2
13476: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13477: p
13478: g
13479: s/.\{148\}//
13480: t delim
13481: ' <conf$$subs.awk | sed '
13482: /^[^""]/{
13483: N
13484: s/\n//
13485: }
13486: ' >>$CONFIG_STATUS || ac_write_fail=1
13487: rm -f conf$$subs.awk
13488: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489: _ACAWK
1.1.1.2 misho 13490: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.1 misho 13491: for (key in S) S_is_set[key] = 1
13492: FS = ""
13493:
13494: }
13495: {
13496: line = $ 0
13497: nfields = split(line, field, "@")
13498: substed = 0
13499: len = length(field[1])
13500: for (i = 2; i < nfields; i++) {
13501: key = field[i]
13502: keylen = length(key)
13503: if (S_is_set[key]) {
13504: value = S[key]
13505: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13506: len += length(value) + length(field[++i])
13507: substed = 1
13508: } else
13509: len += 1 + keylen
13510: }
13511:
13512: print line
13513: }
13514:
13515: _ACAWK
13516: _ACEOF
13517: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13518: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13519: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13520: else
13521: cat
1.1.1.2 misho 13522: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13523: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 misho 13524: _ACEOF
13525:
1.1.1.2 misho 13526: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13527: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 misho 13528: # trailing colons and then remove the whole line if VPATH becomes empty
13529: # (actually we leave an empty line to preserve line numbers).
13530: if test "x$srcdir" = x.; then
1.1.1.2 misho 13531: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13532: h
13533: s///
13534: s/^/:/
13535: s/[ ]*$/:/
13536: s/:\$(srcdir):/:/g
13537: s/:\${srcdir}:/:/g
13538: s/:@srcdir@:/:/g
13539: s/^:*//
1.1 misho 13540: s/:*$//
1.1.1.2 misho 13541: x
13542: s/\(=[ ]*\).*/\1/
13543: G
13544: s/\n//
1.1 misho 13545: s/^[^=]*=[ ]*$//
13546: }'
13547: fi
13548:
13549: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13550: fi # test -n "$CONFIG_FILES"
13551:
13552: # Set up the scripts for CONFIG_HEADERS section.
13553: # No need to generate them if there are no CONFIG_HEADERS.
13554: # This happens for instance with `./config.status Makefile'.
13555: if test -n "$CONFIG_HEADERS"; then
1.1.1.2 misho 13556: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.1 misho 13557: BEGIN {
13558: _ACEOF
13559:
13560: # Transform confdefs.h into an awk script `defines.awk', embedded as
13561: # here-document in config.status, that substitutes the proper values into
13562: # config.h.in to produce config.h.
13563:
13564: # Create a delimiter string that does not exist in confdefs.h, to ease
13565: # handling of long lines.
13566: ac_delim='%!_!# '
13567: for ac_last_try in false false :; do
1.1.1.2 misho 13568: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13569: if test -z "$ac_tt"; then
1.1 misho 13570: break
13571: elif $ac_last_try; then
1.1.1.2 misho 13572: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.1 misho 13573: else
13574: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13575: fi
13576: done
13577:
13578: # For the awk script, D is an array of macro values keyed by name,
13579: # likewise P contains macro parameters if any. Preserve backslash
13580: # newline sequences.
13581:
13582: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13583: sed -n '
13584: s/.\{148\}/&'"$ac_delim"'/g
13585: t rset
13586: :rset
13587: s/^[ ]*#[ ]*define[ ][ ]*/ /
13588: t def
13589: d
13590: :def
13591: s/\\$//
13592: t bsnl
13593: s/["\\]/\\&/g
13594: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13595: D["\1"]=" \3"/p
13596: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13597: d
13598: :bsnl
13599: s/["\\]/\\&/g
13600: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13601: D["\1"]=" \3\\\\\\n"\\/p
13602: t cont
13603: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13604: t cont
13605: d
13606: :cont
13607: n
13608: s/.\{148\}/&'"$ac_delim"'/g
13609: t clear
13610: :clear
13611: s/\\$//
13612: t bsnlc
13613: s/["\\]/\\&/g; s/^/"/; s/$/"/p
13614: d
13615: :bsnlc
13616: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13617: b cont
13618: ' <confdefs.h | sed '
13619: s/'"$ac_delim"'/"\\\
13620: "/g' >>$CONFIG_STATUS || ac_write_fail=1
13621:
13622: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623: for (key in D) D_is_set[key] = 1
13624: FS = ""
13625: }
13626: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13627: line = \$ 0
13628: split(line, arg, " ")
13629: if (arg[1] == "#") {
13630: defundef = arg[2]
13631: mac1 = arg[3]
13632: } else {
13633: defundef = substr(arg[1], 2)
13634: mac1 = arg[2]
13635: }
13636: split(mac1, mac2, "(") #)
13637: macro = mac2[1]
13638: prefix = substr(line, 1, index(line, defundef) - 1)
13639: if (D_is_set[macro]) {
13640: # Preserve the white space surrounding the "#".
13641: print prefix "define", macro P[macro] D[macro]
13642: next
13643: } else {
13644: # Replace #undef with comments. This is necessary, for example,
13645: # in the case of _POSIX_SOURCE, which is predefined and required
13646: # on some systems where configure will not decide to define it.
13647: if (defundef == "undef") {
13648: print "/*", prefix defundef, macro, "*/"
13649: next
13650: }
13651: }
13652: }
13653: { print }
13654: _ACAWK
13655: _ACEOF
13656: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1.1.2 misho 13657: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.1 misho 13658: fi # test -n "$CONFIG_HEADERS"
13659:
13660:
13661: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13662: shift
13663: for ac_tag
13664: do
13665: case $ac_tag in
13666: :[FHLC]) ac_mode=$ac_tag; continue;;
13667: esac
13668: case $ac_mode$ac_tag in
13669: :[FHL]*:*);;
1.1.1.2 misho 13670: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 misho 13671: :[FH]-) ac_tag=-:-;;
13672: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13673: esac
13674: ac_save_IFS=$IFS
13675: IFS=:
13676: set x $ac_tag
13677: IFS=$ac_save_IFS
13678: shift
13679: ac_file=$1
13680: shift
13681:
13682: case $ac_mode in
13683: :L) ac_source=$1;;
13684: :[FH])
13685: ac_file_inputs=
13686: for ac_f
13687: do
13688: case $ac_f in
1.1.1.2 misho 13689: -) ac_f="$ac_tmp/stdin";;
1.1 misho 13690: *) # Look for the file first in the build tree, then in the source tree
13691: # (if the path is not absolute). The absolute path cannot be DOS-style,
13692: # because $ac_f cannot contain `:'.
13693: test -f "$ac_f" ||
13694: case $ac_f in
13695: [\\/$]*) false;;
13696: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13697: esac ||
1.1.1.2 misho 13698: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 misho 13699: esac
13700: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.1.1.2 misho 13701: as_fn_append ac_file_inputs " '$ac_f'"
1.1 misho 13702: done
13703:
13704: # Let's still pretend it is `configure' which instantiates (i.e., don't
13705: # use $as_me), people would be surprised to read:
13706: # /* config.h. Generated by config.status. */
13707: configure_input='Generated from '`
13708: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13709: `' by configure.'
13710: if test x"$ac_file" != x-; then
13711: configure_input="$ac_file. $configure_input"
1.1.1.2 misho 13712: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1.1 misho 13713: $as_echo "$as_me: creating $ac_file" >&6;}
13714: fi
13715: # Neutralize special characters interpreted by sed in replacement strings.
13716: case $configure_input in #(
13717: *\&* | *\|* | *\\* )
13718: ac_sed_conf_input=`$as_echo "$configure_input" |
13719: sed 's/[\\\\&|]/\\\\&/g'`;; #(
13720: *) ac_sed_conf_input=$configure_input;;
13721: esac
13722:
13723: case $ac_tag in
1.1.1.2 misho 13724: *:-:* | *:-) cat >"$ac_tmp/stdin" \
13725: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 misho 13726: esac
13727: ;;
13728: esac
13729:
13730: ac_dir=`$as_dirname -- "$ac_file" ||
13731: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13732: X"$ac_file" : 'X\(//\)[^/]' \| \
13733: X"$ac_file" : 'X\(//\)$' \| \
13734: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13735: $as_echo X"$ac_file" |
13736: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13737: s//\1/
13738: q
13739: }
13740: /^X\(\/\/\)[^/].*/{
13741: s//\1/
13742: q
13743: }
13744: /^X\(\/\/\)$/{
13745: s//\1/
13746: q
13747: }
13748: /^X\(\/\).*/{
13749: s//\1/
13750: q
13751: }
13752: s/.*/./; q'`
1.1.1.2 misho 13753: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 misho 13754: ac_builddir=.
13755:
13756: case "$ac_dir" in
13757: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13758: *)
13759: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13760: # A ".." for each directory in $ac_dir_suffix.
13761: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13762: case $ac_top_builddir_sub in
13763: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13764: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13765: esac ;;
13766: esac
13767: ac_abs_top_builddir=$ac_pwd
13768: ac_abs_builddir=$ac_pwd$ac_dir_suffix
13769: # for backward compatibility:
13770: ac_top_builddir=$ac_top_build_prefix
13771:
13772: case $srcdir in
13773: .) # We are building in place.
13774: ac_srcdir=.
13775: ac_top_srcdir=$ac_top_builddir_sub
13776: ac_abs_top_srcdir=$ac_pwd ;;
13777: [\\/]* | ?:[\\/]* ) # Absolute name.
13778: ac_srcdir=$srcdir$ac_dir_suffix;
13779: ac_top_srcdir=$srcdir
13780: ac_abs_top_srcdir=$srcdir ;;
13781: *) # Relative name.
13782: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13783: ac_top_srcdir=$ac_top_build_prefix$srcdir
13784: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13785: esac
13786: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13787:
13788:
13789: case $ac_mode in
13790: :F)
13791: #
13792: # CONFIG_FILE
13793: #
13794:
13795: case $INSTALL in
13796: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13797: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13798: esac
13799: _ACEOF
13800:
13801: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13802: # If the template does not know about datarootdir, expand it.
13803: # FIXME: This hack should be removed a few years after 2.60.
13804: ac_datarootdir_hack=; ac_datarootdir_seen=
13805: ac_sed_dataroot='
13806: /datarootdir/ {
13807: p
13808: q
13809: }
13810: /@datadir@/p
13811: /@docdir@/p
13812: /@infodir@/p
13813: /@localedir@/p
1.1.1.2 misho 13814: /@mandir@/p'
1.1 misho 13815: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13816: *datarootdir*) ac_datarootdir_seen=yes;;
13817: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.1.1.2 misho 13818: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1.1 misho 13819: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13820: _ACEOF
13821: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13822: ac_datarootdir_hack='
13823: s&@datadir@&$datadir&g
13824: s&@docdir@&$docdir&g
13825: s&@infodir@&$infodir&g
13826: s&@localedir@&$localedir&g
13827: s&@mandir@&$mandir&g
1.1.1.2 misho 13828: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 misho 13829: esac
13830: _ACEOF
13831:
13832: # Neutralize VPATH when `$srcdir' = `.'.
13833: # Shell code in configure.ac might set extrasub.
13834: # FIXME: do we really want to maintain this feature?
13835: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13836: ac_sed_extra="$ac_vpsub
13837: $extrasub
13838: _ACEOF
13839: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13840: :t
13841: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13842: s|@configure_input@|$ac_sed_conf_input|;t t
13843: s&@top_builddir@&$ac_top_builddir_sub&;t t
13844: s&@top_build_prefix@&$ac_top_build_prefix&;t t
13845: s&@srcdir@&$ac_srcdir&;t t
13846: s&@abs_srcdir@&$ac_abs_srcdir&;t t
13847: s&@top_srcdir@&$ac_top_srcdir&;t t
13848: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13849: s&@builddir@&$ac_builddir&;t t
13850: s&@abs_builddir@&$ac_abs_builddir&;t t
13851: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13852: s&@INSTALL@&$ac_INSTALL&;t t
13853: $ac_datarootdir_hack
13854: "
1.1.1.2 misho 13855: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13856: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 13857:
13858: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.1.1.2 misho 13859: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13860: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13861: "$ac_tmp/out"`; test -z "$ac_out"; } &&
13862: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13863: which seems to be undefined. Please make sure it is defined" >&5
1.1 misho 13864: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.1.2 misho 13865: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 misho 13866:
1.1.1.2 misho 13867: rm -f "$ac_tmp/stdin"
1.1 misho 13868: case $ac_file in
1.1.1.2 misho 13869: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13870: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.1 misho 13871: esac \
1.1.1.2 misho 13872: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 13873: ;;
13874: :H)
13875: #
13876: # CONFIG_HEADER
13877: #
13878: if test x"$ac_file" != x-; then
13879: {
13880: $as_echo "/* $configure_input */" \
1.1.1.2 misho 13881: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13882: } >"$ac_tmp/config.h" \
13883: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13884: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13885: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1.1 misho 13886: $as_echo "$as_me: $ac_file is unchanged" >&6;}
13887: else
13888: rm -f "$ac_file"
1.1.1.2 misho 13889: mv "$ac_tmp/config.h" "$ac_file" \
13890: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 13891: fi
13892: else
13893: $as_echo "/* $configure_input */" \
1.1.1.2 misho 13894: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13895: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 misho 13896: fi
13897: ;;
13898:
1.1.1.2 misho 13899: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1.1 misho 13900: $as_echo "$as_me: executing $ac_file commands" >&6;}
13901: ;;
13902: esac
13903:
13904:
13905: case $ac_file$ac_mode in
13906: "libtool":C)
13907:
1.1.1.3 ! misho 13908: # See if we are running on zsh, and set the options that allow our
1.1 misho 13909: # commands through without removal of \ escapes.
1.1.1.3 ! misho 13910: if test -n "${ZSH_VERSION+set}"; then
1.1 misho 13911: setopt NO_GLOB_SUBST
13912: fi
13913:
1.1.1.3 ! misho 13914: cfgfile=${ofile}T
1.1 misho 13915: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13916: $RM "$cfgfile"
13917:
13918: cat <<_LT_EOF >> "$cfgfile"
13919: #! $SHELL
1.1.1.3 ! misho 13920: # Generated automatically by $as_me ($PACKAGE) $VERSION
1.1 misho 13921: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13922: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1.1.1.3 ! misho 13923:
! 13924: # Provide generalized library-building support services.
! 13925: # Written by Gordon Matzigkeit, 1996
! 13926:
! 13927: # Copyright (C) 2014 Free Software Foundation, Inc.
! 13928: # This is free software; see the source for copying conditions. There is NO
! 13929: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
! 13930:
! 13931: # GNU Libtool is free software; you can redistribute it and/or modify
! 13932: # it under the terms of the GNU General Public License as published by
! 13933: # the Free Software Foundation; either version 2 of of the License, or
! 13934: # (at your option) any later version.
1.1 misho 13935: #
1.1.1.3 ! misho 13936: # As a special exception to the GNU General Public License, if you
! 13937: # distribute this file as part of a program or library that is built
! 13938: # using GNU Libtool, you may include this file under the same
! 13939: # distribution terms that you use for the rest of that program.
1.1 misho 13940: #
1.1.1.3 ! misho 13941: # GNU Libtool is distributed in the hope that it will be useful, but
! 13942: # WITHOUT ANY WARRANTY; without even the implied warranty of
1.1 misho 13943: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13944: # GNU General Public License for more details.
13945: #
13946: # You should have received a copy of the GNU General Public License
1.1.1.3 ! misho 13947: # along with this program. If not, see <http://www.gnu.org/licenses/>.
1.1 misho 13948:
13949:
13950: # The names of the tagged configurations supported by this script.
1.1.1.3 ! misho 13951: available_tags=''
! 13952:
! 13953: # Configured defaults for sys_lib_dlsearch_path munging.
! 13954: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1.1 misho 13955:
13956: # ### BEGIN LIBTOOL CONFIG
13957:
13958: # Which release of libtool.m4 was used?
13959: macro_version=$macro_version
13960: macro_revision=$macro_revision
13961:
13962: # Assembler program.
1.1.1.2 misho 13963: AS=$lt_AS
1.1 misho 13964:
13965: # DLL creation program.
1.1.1.2 misho 13966: DLLTOOL=$lt_DLLTOOL
1.1 misho 13967:
13968: # Object dumper program.
1.1.1.2 misho 13969: OBJDUMP=$lt_OBJDUMP
1.1 misho 13970:
13971: # Whether or not to build shared libraries.
13972: build_libtool_libs=$enable_shared
13973:
13974: # Whether or not to build static libraries.
13975: build_old_libs=$enable_static
13976:
13977: # What type of objects to build.
13978: pic_mode=$pic_mode
13979:
13980: # Whether or not to optimize for fast installation.
13981: fast_install=$enable_fast_install
13982:
1.1.1.3 ! misho 13983: # Shared archive member basename,for filename based shared library versioning on AIX.
! 13984: shared_archive_member_spec=$shared_archive_member_spec
! 13985:
1.1.1.2 misho 13986: # Shell to use when invoking shell scripts.
13987: SHELL=$lt_SHELL
13988:
13989: # An echo program that protects backslashes.
13990: ECHO=$lt_ECHO
13991:
1.1.1.3 ! misho 13992: # The PATH separator for the build system.
! 13993: PATH_SEPARATOR=$lt_PATH_SEPARATOR
! 13994:
1.1 misho 13995: # The host system.
13996: host_alias=$host_alias
13997: host=$host
13998: host_os=$host_os
13999:
14000: # The build system.
14001: build_alias=$build_alias
14002: build=$build
14003: build_os=$build_os
14004:
14005: # A sed program that does not truncate output.
14006: SED=$lt_SED
14007:
14008: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14009: Xsed="\$SED -e 1s/^X//"
14010:
14011: # A grep program that handles long lines.
14012: GREP=$lt_GREP
14013:
14014: # An ERE matcher.
14015: EGREP=$lt_EGREP
14016:
14017: # A literal string matcher.
14018: FGREP=$lt_FGREP
14019:
14020: # A BSD- or MS-compatible name lister.
14021: NM=$lt_NM
14022:
14023: # Whether we need soft or hard links.
14024: LN_S=$lt_LN_S
14025:
14026: # What is the maximum length of a command?
14027: max_cmd_len=$max_cmd_len
14028:
14029: # Object file suffix (normally "o").
14030: objext=$ac_objext
14031:
14032: # Executable file suffix (normally "").
14033: exeext=$exeext
14034:
14035: # whether the shell understands "unset".
14036: lt_unset=$lt_unset
14037:
14038: # turn spaces into newlines.
14039: SP2NL=$lt_lt_SP2NL
14040:
14041: # turn newlines into spaces.
14042: NL2SP=$lt_lt_NL2SP
14043:
1.1.1.2 misho 14044: # convert \$build file names to \$host format.
14045: to_host_file_cmd=$lt_cv_to_host_file_cmd
14046:
14047: # convert \$build files to toolchain format.
14048: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1 misho 14049:
14050: # Method to check whether dependent libraries are shared objects.
14051: deplibs_check_method=$lt_deplibs_check_method
14052:
1.1.1.2 misho 14053: # Command to use when deplibs_check_method = "file_magic".
1.1 misho 14054: file_magic_cmd=$lt_file_magic_cmd
14055:
1.1.1.2 misho 14056: # How to find potential files when deplibs_check_method = "file_magic".
14057: file_magic_glob=$lt_file_magic_glob
14058:
14059: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14060: want_nocaseglob=$lt_want_nocaseglob
14061:
14062: # Command to associate shared and link libraries.
14063: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14064:
1.1 misho 14065: # The archiver.
14066: AR=$lt_AR
1.1.1.2 misho 14067:
14068: # Flags to create an archive.
1.1 misho 14069: AR_FLAGS=$lt_AR_FLAGS
14070:
1.1.1.2 misho 14071: # How to feed a file listing to the archiver.
14072: archiver_list_spec=$lt_archiver_list_spec
14073:
1.1 misho 14074: # A symbol stripping program.
14075: STRIP=$lt_STRIP
14076:
14077: # Commands used to install an old-style archive.
14078: RANLIB=$lt_RANLIB
14079: old_postinstall_cmds=$lt_old_postinstall_cmds
14080: old_postuninstall_cmds=$lt_old_postuninstall_cmds
14081:
1.1.1.2 misho 14082: # Whether to use a lock for old archive extraction.
14083: lock_old_archive_extraction=$lock_old_archive_extraction
14084:
1.1 misho 14085: # A C compiler.
14086: LTCC=$lt_CC
14087:
14088: # LTCC compiler flags.
14089: LTCFLAGS=$lt_CFLAGS
14090:
14091: # Take the output of nm and produce a listing of raw symbols and C names.
14092: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14093:
14094: # Transform the output of nm in a proper C declaration.
14095: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14096:
1.1.1.3 ! misho 14097: # Transform the output of nm into a list of symbols to manually relocate.
! 14098: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
! 14099:
1.1 misho 14100: # Transform the output of nm in a C name address pair.
14101: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14102:
14103: # Transform the output of nm in a C name address pair when lib prefix is needed.
14104: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14105:
1.1.1.3 ! misho 14106: # The name lister interface.
! 14107: nm_interface=$lt_lt_cv_nm_interface
! 14108:
1.1.1.2 misho 14109: # Specify filename containing input files for \$NM.
14110: nm_file_list_spec=$lt_nm_file_list_spec
1.1 misho 14111:
1.1.1.3 ! misho 14112: # The root where to search for dependent libraries,and where our libraries should be installed.
1.1.1.2 misho 14113: lt_sysroot=$lt_sysroot
1.1 misho 14114:
1.1.1.3 ! misho 14115: # Command to truncate a binary pipe.
! 14116: lt_truncate_bin=$lt_lt_cv_truncate_bin
! 14117:
1.1.1.2 misho 14118: # The name of the directory that contains temporary libtool files.
14119: objdir=$objdir
1.1 misho 14120:
14121: # Used to examine libraries when file_magic_cmd begins with "file".
14122: MAGIC_CMD=$MAGIC_CMD
14123:
14124: # Must we lock files when doing compilation?
14125: need_locks=$lt_need_locks
14126:
1.1.1.2 misho 14127: # Manifest tool.
14128: MANIFEST_TOOL=$lt_MANIFEST_TOOL
14129:
1.1 misho 14130: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14131: DSYMUTIL=$lt_DSYMUTIL
14132:
14133: # Tool to change global to local symbols on Mac OS X.
14134: NMEDIT=$lt_NMEDIT
14135:
14136: # Tool to manipulate fat objects and archives on Mac OS X.
14137: LIPO=$lt_LIPO
14138:
14139: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14140: OTOOL=$lt_OTOOL
14141:
14142: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14143: OTOOL64=$lt_OTOOL64
14144:
14145: # Old archive suffix (normally "a").
14146: libext=$libext
14147:
14148: # Shared library suffix (normally ".so").
14149: shrext_cmds=$lt_shrext_cmds
14150:
14151: # The commands to extract the exported symbol list from a shared archive.
14152: extract_expsyms_cmds=$lt_extract_expsyms_cmds
14153:
14154: # Variables whose values should be saved in libtool wrapper scripts and
14155: # restored at link time.
14156: variables_saved_for_relink=$lt_variables_saved_for_relink
14157:
14158: # Do we need the "lib" prefix for modules?
14159: need_lib_prefix=$need_lib_prefix
14160:
14161: # Do we need a version for libraries?
14162: need_version=$need_version
14163:
14164: # Library versioning type.
14165: version_type=$version_type
14166:
14167: # Shared library runtime path variable.
14168: runpath_var=$runpath_var
14169:
14170: # Shared library path variable.
14171: shlibpath_var=$shlibpath_var
14172:
14173: # Is shlibpath searched before the hard-coded library search path?
14174: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14175:
14176: # Format of library name prefix.
14177: libname_spec=$lt_libname_spec
14178:
14179: # List of archive names. First name is the real one, the rest are links.
14180: # The last name is the one that the linker finds with -lNAME
14181: library_names_spec=$lt_library_names_spec
14182:
14183: # The coded name of the library, if different from the real name.
14184: soname_spec=$lt_soname_spec
14185:
1.1.1.2 misho 14186: # Permission mode override for installation of shared libraries.
14187: install_override_mode=$lt_install_override_mode
14188:
1.1 misho 14189: # Command to use after installation of a shared archive.
14190: postinstall_cmds=$lt_postinstall_cmds
14191:
14192: # Command to use after uninstallation of a shared archive.
14193: postuninstall_cmds=$lt_postuninstall_cmds
14194:
14195: # Commands used to finish a libtool library installation in a directory.
14196: finish_cmds=$lt_finish_cmds
14197:
14198: # As "finish_cmds", except a single script fragment to be evaled but
14199: # not shown.
14200: finish_eval=$lt_finish_eval
14201:
14202: # Whether we should hardcode library paths into libraries.
14203: hardcode_into_libs=$hardcode_into_libs
14204:
14205: # Compile-time system search path for libraries.
14206: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14207:
1.1.1.3 ! misho 14208: # Detected run-time system search path for libraries.
! 14209: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
! 14210:
! 14211: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
! 14212: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1.1 misho 14213:
14214: # Whether dlopen is supported.
14215: dlopen_support=$enable_dlopen
14216:
14217: # Whether dlopen of programs is supported.
14218: dlopen_self=$enable_dlopen_self
14219:
14220: # Whether dlopen of statically linked programs is supported.
14221: dlopen_self_static=$enable_dlopen_self_static
14222:
14223: # Commands to strip libraries.
14224: old_striplib=$lt_old_striplib
14225: striplib=$lt_striplib
14226:
14227:
14228: # The linker used to build libraries.
14229: LD=$lt_LD
14230:
1.1.1.2 misho 14231: # How to create reloadable object files.
14232: reload_flag=$lt_reload_flag
14233: reload_cmds=$lt_reload_cmds
14234:
1.1 misho 14235: # Commands used to build an old-style archive.
14236: old_archive_cmds=$lt_old_archive_cmds
14237:
14238: # A language specific compiler.
14239: CC=$lt_compiler
14240:
14241: # Is the compiler the GNU compiler?
14242: with_gcc=$GCC
14243:
14244: # Compiler flag to turn off builtin functions.
14245: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14246:
14247: # Additional compiler flags for building library objects.
14248: pic_flag=$lt_lt_prog_compiler_pic
14249:
1.1.1.2 misho 14250: # How to pass a linker flag through the compiler.
14251: wl=$lt_lt_prog_compiler_wl
14252:
1.1 misho 14253: # Compiler flag to prevent dynamic linking.
14254: link_static_flag=$lt_lt_prog_compiler_static
14255:
14256: # Does compiler simultaneously support -c and -o options?
14257: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14258:
14259: # Whether or not to add -lc for building shared libraries.
14260: build_libtool_need_lc=$archive_cmds_need_lc
14261:
14262: # Whether or not to disallow shared libs when runtime libs are static.
14263: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14264:
14265: # Compiler flag to allow reflexive dlopens.
14266: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14267:
14268: # Compiler flag to generate shared objects directly from archives.
14269: whole_archive_flag_spec=$lt_whole_archive_flag_spec
14270:
14271: # Whether the compiler copes with passing no objects directly.
14272: compiler_needs_object=$lt_compiler_needs_object
14273:
14274: # Create an old-style archive from a shared archive.
14275: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14276:
14277: # Create a temporary old-style archive to link instead of a shared archive.
14278: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14279:
14280: # Commands used to build a shared archive.
14281: archive_cmds=$lt_archive_cmds
14282: archive_expsym_cmds=$lt_archive_expsym_cmds
14283:
14284: # Commands used to build a loadable module if different from building
14285: # a shared archive.
14286: module_cmds=$lt_module_cmds
14287: module_expsym_cmds=$lt_module_expsym_cmds
14288:
14289: # Whether we are building with GNU ld or not.
14290: with_gnu_ld=$lt_with_gnu_ld
14291:
14292: # Flag that allows shared libraries with undefined symbols to be built.
14293: allow_undefined_flag=$lt_allow_undefined_flag
14294:
14295: # Flag that enforces no undefined symbols.
14296: no_undefined_flag=$lt_no_undefined_flag
14297:
14298: # Flag to hardcode \$libdir into a binary during linking.
14299: # This must work even if \$libdir does not exist
14300: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14301:
14302: # Whether we need a single "-rpath" flag with a separated argument.
14303: hardcode_libdir_separator=$lt_hardcode_libdir_separator
14304:
1.1.1.3 ! misho 14305: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.1 misho 14306: # DIR into the resulting binary.
14307: hardcode_direct=$hardcode_direct
14308:
1.1.1.3 ! misho 14309: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.1 misho 14310: # DIR into the resulting binary and the resulting library dependency is
1.1.1.3 ! misho 14311: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1.1 misho 14312: # library is relocated.
14313: hardcode_direct_absolute=$hardcode_direct_absolute
14314:
14315: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14316: # into the resulting binary.
14317: hardcode_minus_L=$hardcode_minus_L
14318:
14319: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14320: # into the resulting binary.
14321: hardcode_shlibpath_var=$hardcode_shlibpath_var
14322:
14323: # Set to "yes" if building a shared library automatically hardcodes DIR
14324: # into the library and all subsequent libraries and executables linked
14325: # against it.
14326: hardcode_automatic=$hardcode_automatic
14327:
14328: # Set to yes if linker adds runtime paths of dependent libraries
14329: # to runtime path list.
14330: inherit_rpath=$inherit_rpath
14331:
14332: # Whether libtool must link a program against all its dependency libraries.
14333: link_all_deplibs=$link_all_deplibs
14334:
14335: # Set to "yes" if exported symbols are required.
14336: always_export_symbols=$always_export_symbols
14337:
14338: # The commands to list exported symbols.
14339: export_symbols_cmds=$lt_export_symbols_cmds
14340:
14341: # Symbols that should not be listed in the preloaded symbols.
14342: exclude_expsyms=$lt_exclude_expsyms
14343:
14344: # Symbols that must always be exported.
14345: include_expsyms=$lt_include_expsyms
14346:
14347: # Commands necessary for linking programs (against libraries) with templates.
14348: prelink_cmds=$lt_prelink_cmds
14349:
1.1.1.2 misho 14350: # Commands necessary for finishing linking programs.
14351: postlink_cmds=$lt_postlink_cmds
14352:
1.1 misho 14353: # Specify filename containing input files.
14354: file_list_spec=$lt_file_list_spec
14355:
14356: # How to hardcode a shared library path into an executable.
14357: hardcode_action=$hardcode_action
14358:
14359: # ### END LIBTOOL CONFIG
14360:
14361: _LT_EOF
14362:
1.1.1.3 ! misho 14363: cat <<'_LT_EOF' >> "$cfgfile"
! 14364:
! 14365: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
! 14366:
! 14367: # func_munge_path_list VARIABLE PATH
! 14368: # -----------------------------------
! 14369: # VARIABLE is name of variable containing _space_ separated list of
! 14370: # directories to be munged by the contents of PATH, which is string
! 14371: # having a format:
! 14372: # "DIR[:DIR]:"
! 14373: # string "DIR[ DIR]" will be prepended to VARIABLE
! 14374: # ":DIR[:DIR]"
! 14375: # string "DIR[ DIR]" will be appended to VARIABLE
! 14376: # "DIRP[:DIRP]::[DIRA:]DIRA"
! 14377: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
! 14378: # "DIRA[ DIRA]" will be appended to VARIABLE
! 14379: # "DIR[:DIR]"
! 14380: # VARIABLE will be replaced by "DIR[ DIR]"
! 14381: func_munge_path_list ()
! 14382: {
! 14383: case x$2 in
! 14384: x)
! 14385: ;;
! 14386: *:)
! 14387: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
! 14388: ;;
! 14389: x:*)
! 14390: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
! 14391: ;;
! 14392: *::*)
! 14393: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
! 14394: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
! 14395: ;;
! 14396: *)
! 14397: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
! 14398: ;;
! 14399: esac
! 14400: }
! 14401:
! 14402:
! 14403: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
! 14404: func_cc_basename ()
! 14405: {
! 14406: for cc_temp in $*""; do
! 14407: case $cc_temp in
! 14408: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 14409: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 14410: \-*) ;;
! 14411: *) break;;
! 14412: esac
! 14413: done
! 14414: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
! 14415: }
! 14416:
! 14417:
! 14418: # ### END FUNCTIONS SHARED WITH CONFIGURE
! 14419:
! 14420: _LT_EOF
! 14421:
1.1 misho 14422: case $host_os in
14423: aix3*)
14424: cat <<\_LT_EOF >> "$cfgfile"
14425: # AIX sometimes has problems with the GCC collect2 program. For some
14426: # reason, if we set the COLLECT_NAMES environment variable, the problems
14427: # vanish in a puff of smoke.
1.1.1.3 ! misho 14428: if test set != "${COLLECT_NAMES+set}"; then
1.1 misho 14429: COLLECT_NAMES=
14430: export COLLECT_NAMES
14431: fi
14432: _LT_EOF
14433: ;;
14434: esac
14435:
14436:
1.1.1.3 ! misho 14437: ltmain=$ac_aux_dir/ltmain.sh
1.1 misho 14438:
14439:
14440: # We use sed instead of cat because bash on DJGPP gets confused if
14441: # if finds mixed CR/LF and LF-only lines. Since sed operates in
14442: # text mode, it properly converts lines to CR/LF. This bash problem
14443: # is reportedly fixed, but why not run on old versions too?
1.1.1.2 misho 14444: sed '$q' "$ltmain" >> "$cfgfile" \
14445: || (rm -f "$cfgfile"; exit 1)
1.1 misho 14446:
1.1.1.2 misho 14447: mv -f "$cfgfile" "$ofile" ||
1.1 misho 14448: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14449: chmod +x "$ofile"
14450:
14451: ;;
14452:
14453: esac
14454: done # for ac_tag
14455:
14456:
1.1.1.2 misho 14457: as_fn_exit 0
1.1 misho 14458: _ACEOF
14459: ac_clean_files=$ac_clean_files_save
14460:
14461: test $ac_write_fail = 0 ||
1.1.1.2 misho 14462: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.1 misho 14463:
14464:
14465: # configure is writing to config.log, and then calls config.status.
14466: # config.status does its own redirection, appending to config.log.
14467: # Unfortunately, on DOS this fails, as config.log is still kept open
14468: # by configure, so config.status won't be able to write to it; its
14469: # output is simply discarded. So we exec the FD to /dev/null,
14470: # effectively closing config.log, so it can be properly (re)opened and
14471: # appended to by config.status. When coming back to configure, we
14472: # need to make the FD available again.
14473: if test "$no_create" != yes; then
14474: ac_cs_success=:
14475: ac_config_status_args=
14476: test "$silent" = yes &&
14477: ac_config_status_args="$ac_config_status_args --quiet"
14478: exec 5>/dev/null
14479: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14480: exec 5>>config.log
14481: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14482: # would make configure fail if this is the last instruction.
1.1.1.2 misho 14483: $ac_cs_success || as_fn_exit 1
1.1 misho 14484: fi
14485: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.1.1.2 misho 14486: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1.1 misho 14487: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14488: fi
14489:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>