Annotation of embedaddon/libiconv/preload/configure, revision 1.1.1.2
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.2 ! misho 3: # Generated by GNU Autoconf 2.68.
! 4: #
1.1 misho 5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.1.1.2 ! misho 7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
! 8: # Foundation, Inc.
! 9: #
! 10: #
1.1 misho 11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.1.1.2 ! misho 13: ## -------------------- ##
! 14: ## M4sh Initialization. ##
! 15: ## -------------------- ##
1.1 misho 16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.2 ! misho 19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 misho 20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
1.1.1.2 ! misho 27: case `(set -o) 2>/dev/null` in #(
! 28: *posix*) :
! 29: set -o posix ;; #(
! 30: *) :
! 31: ;;
1.1 misho 32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1.1.1.2 ! misho 43: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 44: # but without wasting forks for bash or zsh.
! 45: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 47: as_echo='print -r --'
! 48: as_echo_n='print -rn --'
! 49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.1 misho 50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
1.1.1.2 ! misho 60: case $arg in #(
1.1 misho 61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 ! misho 92: as_myself=
! 93: case $0 in #((
1.1 misho 94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 101: done
1.1 misho 102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.1.2 ! misho 113: exit 1
1.1 misho 114: fi
115:
1.1.1.2 ! misho 116: # Unset variables that we do not need and which cause bugs (e.g. in
! 117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 118: # suppresses any "Segmentation fault" message there. '((' could
! 119: # trigger a bug in pdksh 5.2.14.
! 120: for as_var in BASH_ENV ENV MAIL MAILPATH
! 121: do eval test x\${$as_var+set} = xset \
! 122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 misho 123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
1.1.1.2 ! misho 135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 misho 136:
137: if test "x$CONFIG_SHELL" = x; then
1.1.1.2 ! misho 138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
! 139: emulate sh
! 140: NULLCMD=:
! 141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
! 142: # is contrary to our usage. Disable this feature.
! 143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
! 144: setopt NO_GLOB_SUBST
1.1 misho 145: else
1.1.1.2 ! misho 146: case \`(set -o) 2>/dev/null\` in #(
! 147: *posix*) :
! 148: set -o posix ;; #(
! 149: *) :
! 150: ;;
! 151: esac
1.1 misho 152: fi
1.1.1.2 ! misho 153: "
! 154: as_required="as_fn_return () { (exit \$1); }
! 155: as_fn_success () { as_fn_return 0; }
! 156: as_fn_failure () { as_fn_return 1; }
! 157: as_fn_ret_success () { return 0; }
! 158: as_fn_ret_failure () { return 1; }
1.1 misho 159:
160: exitcode=0
1.1.1.2 ! misho 161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
! 162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
! 163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
! 164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
! 165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
! 166:
! 167: else
! 168: exitcode=1; echo positional parameters were not saved.
! 169: fi
! 170: test x\$exitcode = x0 || exit 1"
! 171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
! 172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
! 173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
! 174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
! 175: test \$(( 1 + 1 )) = 2 || exit 1
! 176:
! 177: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
! 178: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
! 180: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
! 181: PATH=/empty FPATH=/empty; export PATH FPATH
! 182: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
! 183: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
! 184: if (eval "$as_required") 2>/dev/null; then :
! 185: as_have_required=yes
1.1 misho 186: else
1.1.1.2 ! misho 187: as_have_required=no
1.1 misho 188: fi
1.1.1.2 ! misho 189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.1 misho 190:
191: else
1.1.1.2 ! misho 192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 193: as_found=false
1.1 misho 194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195: do
196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 198: as_found=:
! 199: case $as_dir in #(
1.1 misho 200: /*)
201: for as_base in sh bash ksh sh5; do
1.1.1.2 ! misho 202: # Try only shells that exist, to save several forks.
! 203: as_shell=$as_dir/$as_base
! 204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 206: CONFIG_SHELL=$as_shell as_have_required=yes
! 207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 208: break 2
! 209: fi
! 210: fi
1.1 misho 211: done;;
212: esac
1.1.1.2 ! misho 213: as_found=false
1.1 misho 214: done
1.1.1.2 ! misho 215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
! 216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
! 217: CONFIG_SHELL=$SHELL as_have_required=yes
! 218: fi; }
1.1 misho 219: IFS=$as_save_IFS
220:
221:
1.1.1.2 ! misho 222: if test "x$CONFIG_SHELL" != x; then :
! 223: # We cannot yet assume a decent shell, so we have to provide a
! 224: # neutralization value for shells without unset; and this also
! 225: # works around shells that cannot unset nonexistent variables.
! 226: # Preserve -v and -x to the replacement shell.
! 227: BASH_ENV=/dev/null
! 228: ENV=/dev/null
! 229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 230: export CONFIG_SHELL
! 231: case $- in # ((((
! 232: *v*x* | *x*v* ) as_opts=-vx ;;
! 233: *v* ) as_opts=-v ;;
! 234: *x* ) as_opts=-x ;;
! 235: * ) as_opts= ;;
! 236: esac
! 237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.1 misho 238: fi
239:
1.1.1.2 ! misho 240: if test x$as_have_required = xno; then :
! 241: $as_echo "$0: This script requires a shell more modern than all"
! 242: $as_echo "$0: the shells that I found on your system."
! 243: if test x${ZSH_VERSION+set} = xset ; then
! 244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
! 245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
! 246: else
! 247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
! 248: $0: including any error possibly output before this
! 249: $0: message. Then install a modern shell, or manually run
! 250: $0: the script under such a shell if you do have one."
! 251: fi
! 252: exit 1
1.1 misho 253: fi
254: fi
255: fi
1.1.1.2 ! misho 256: SHELL=${CONFIG_SHELL-/bin/sh}
! 257: export SHELL
! 258: # Unset more variables known to interfere with behavior of common tools.
! 259: CLICOLOR_FORCE= GREP_OPTIONS=
! 260: unset CLICOLOR_FORCE GREP_OPTIONS
1.1 misho 261:
1.1.1.2 ! misho 262: ## --------------------- ##
! 263: ## M4sh Shell Functions. ##
! 264: ## --------------------- ##
! 265: # as_fn_unset VAR
! 266: # ---------------
! 267: # Portably unset VAR.
! 268: as_fn_unset ()
! 269: {
! 270: { eval $1=; unset $1;}
! 271: }
! 272: as_unset=as_fn_unset
! 273:
! 274: # as_fn_set_status STATUS
! 275: # -----------------------
! 276: # Set $? to STATUS, without forking.
! 277: as_fn_set_status ()
! 278: {
! 279: return $1
! 280: } # as_fn_set_status
! 281:
! 282: # as_fn_exit STATUS
! 283: # -----------------
! 284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 285: as_fn_exit ()
! 286: {
! 287: set +e
! 288: as_fn_set_status $1
! 289: exit $1
! 290: } # as_fn_exit
! 291:
! 292: # as_fn_mkdir_p
! 293: # -------------
! 294: # Create "$as_dir" as a directory, including parents if necessary.
! 295: as_fn_mkdir_p ()
! 296: {
1.1 misho 297:
1.1.1.2 ! misho 298: case $as_dir in #(
! 299: -*) as_dir=./$as_dir;;
! 300: esac
! 301: test -d "$as_dir" || eval $as_mkdir_p || {
! 302: as_dirs=
! 303: while :; do
! 304: case $as_dir in #(
! 305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 306: *) as_qdir=$as_dir;;
! 307: esac
! 308: as_dirs="'$as_qdir' $as_dirs"
! 309: as_dir=`$as_dirname -- "$as_dir" ||
! 310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 311: X"$as_dir" : 'X\(//\)[^/]' \| \
! 312: X"$as_dir" : 'X\(//\)$' \| \
! 313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 314: $as_echo X"$as_dir" |
! 315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 316: s//\1/
! 317: q
! 318: }
! 319: /^X\(\/\/\)[^/].*/{
! 320: s//\1/
! 321: q
! 322: }
! 323: /^X\(\/\/\)$/{
! 324: s//\1/
! 325: q
! 326: }
! 327: /^X\(\/\).*/{
! 328: s//\1/
! 329: q
! 330: }
! 331: s/.*/./; q'`
! 332: test -d "$as_dir" && break
! 333: done
! 334: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 misho 336:
337:
1.1.1.2 ! misho 338: } # as_fn_mkdir_p
! 339: # as_fn_append VAR VALUE
! 340: # ----------------------
! 341: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 342: # advantage of any shell optimizations that allow amortized linear growth over
! 343: # repeated appends, instead of the typical quadratic growth present in naive
! 344: # implementations.
! 345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 346: eval 'as_fn_append ()
! 347: {
! 348: eval $1+=\$2
! 349: }'
! 350: else
! 351: as_fn_append ()
! 352: {
! 353: eval $1=\$$1\$2
! 354: }
! 355: fi # as_fn_append
1.1 misho 356:
1.1.1.2 ! misho 357: # as_fn_arith ARG...
! 358: # ------------------
! 359: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 361: # must be portable across $(()) and expr.
! 362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 363: eval 'as_fn_arith ()
! 364: {
! 365: as_val=$(( $* ))
! 366: }'
! 367: else
! 368: as_fn_arith ()
! 369: {
! 370: as_val=`expr "$@" || test $? -eq 1`
! 371: }
! 372: fi # as_fn_arith
1.1 misho 373:
374:
1.1.1.2 ! misho 375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 376: # ----------------------------------------
! 377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 379: # script with STATUS, using 1 if that was 0.
! 380: as_fn_error ()
! 381: {
! 382: as_status=$1; test $as_status -eq 0 && as_status=1
! 383: if test "$4"; then
! 384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 386: fi
! 387: $as_echo "$as_me: error: $2" >&2
! 388: as_fn_exit $as_status
! 389: } # as_fn_error
1.1 misho 390:
1.1.1.2 ! misho 391: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 393: as_expr=expr
1.1 misho 394: else
1.1.1.2 ! misho 395: as_expr=false
1.1 misho 396: fi
397:
1.1.1.2 ! misho 398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
! 399: as_basename=basename
1.1 misho 400: else
1.1.1.2 ! misho 401: as_basename=false
1.1 misho 402: fi
403:
1.1.1.2 ! misho 404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 405: as_dirname=dirname
1.1 misho 406: else
1.1.1.2 ! misho 407: as_dirname=false
1.1 misho 408: fi
409:
1.1.1.2 ! misho 410: as_me=`$as_basename -- "$0" ||
! 411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 412: X"$0" : 'X\(//\)$' \| \
! 413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 414: $as_echo X/"$0" |
! 415: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 416: s//\1/
! 417: q
! 418: }
! 419: /^X\/\(\/\/\)$/{
! 420: s//\1/
! 421: q
! 422: }
! 423: /^X\/\(\/\).*/{
! 424: s//\1/
! 425: q
! 426: }
! 427: s/.*/./; q'`
1.1 misho 428:
1.1.1.2 ! misho 429: # Avoid depending upon Character Ranges.
! 430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 433: as_cr_digits='0123456789'
! 434: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 misho 435:
436:
1.1.1.2 ! misho 437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
! 438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
! 439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
! 440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
! 441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1.1 misho 442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
446: sed '
447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
451: N
452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454: t loop
455: s/-\n.*//
456: ' >$as_me.lineno &&
457: chmod +x "$as_me.lineno" ||
1.1.1.2 ! misho 458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misho 459:
460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
464: # Exit status is that of the last command.
465: exit
466: }
467:
468: ECHO_C= ECHO_N= ECHO_T=
1.1.1.2 ! misho 469: case `echo -n x` in #(((((
1.1 misho 470: -n*)
1.1.1.2 ! misho 471: case `echo 'xy\c'` in
1.1 misho 472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.1.1.2 ! misho 473: xy) ECHO_C='\c';;
! 474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 475: ECHO_T=' ';;
1.1 misho 476: esac;;
477: *)
478: ECHO_N='-n';;
479: esac
480:
481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
484: else
485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
487: fi
488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
504: fi
505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
507:
508: if mkdir -p . 2>/dev/null; then
1.1.1.2 ! misho 509: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misho 510: else
511: test -d ./-p && rmdir ./-p
512: as_mkdir_p=false
513: fi
514:
515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
1.1.1.2 ! misho 528: case $1 in #(
1.1 misho 529: -*)set "./$1";;
530: esac;
1.1.1.2 ! misho 531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 misho 532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
535: fi
536: as_executable_p=$as_test_x
537:
538: # Sed expression to map a string onto a valid CPP name.
539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540:
541: # Sed expression to map a string onto a valid variable name.
542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543:
544: SHELL=${CONFIG_SHELL-/bin/sh}
545:
546:
1.1.1.2 ! misho 547: test -n "$DJDIR" || exec 7<&0 </dev/null
! 548: exec 6>&1
1.1 misho 549:
550: # Name of the host.
1.1.1.2 ! misho 551: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 misho 552: # so uname gets run too.
553: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554:
555: #
556: # Initializations.
557: #
558: ac_default_prefix=/usr/local
559: ac_clean_files=
560: ac_config_libobj_dir=.
561: LIBOBJS=
562: cross_compiling=no
563: subdirs=
564: MFLAGS=
565: MAKEFLAGS=
566:
567: # Identity of this package.
568: PACKAGE_NAME=
569: PACKAGE_TARNAME=
570: PACKAGE_VERSION=
571: PACKAGE_STRING=
572: PACKAGE_BUGREPORT=
1.1.1.2 ! misho 573: PACKAGE_URL=
1.1 misho 574:
575: ac_unique_file="configure.ac"
576: # Factoring default headers for most tests.
577: ac_includes_default="\
578: #include <stdio.h>
579: #ifdef HAVE_SYS_TYPES_H
580: # include <sys/types.h>
581: #endif
582: #ifdef HAVE_SYS_STAT_H
583: # include <sys/stat.h>
584: #endif
585: #ifdef STDC_HEADERS
586: # include <stdlib.h>
587: # include <stddef.h>
588: #else
589: # ifdef HAVE_STDLIB_H
590: # include <stdlib.h>
591: # endif
592: #endif
593: #ifdef HAVE_STRING_H
594: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595: # include <memory.h>
596: # endif
597: # include <string.h>
598: #endif
599: #ifdef HAVE_STRINGS_H
600: # include <strings.h>
601: #endif
602: #ifdef HAVE_INTTYPES_H
603: # include <inttypes.h>
604: #endif
605: #ifdef HAVE_STDINT_H
606: # include <stdint.h>
607: #endif
608: #ifdef HAVE_UNISTD_H
609: # include <unistd.h>
610: #endif"
611:
612: ac_subst_vars='LTLIBOBJS
613: PLUGLIB
614: HAVE_VISIBILITY
615: CFLAG_VISIBILITY
616: OTOOL64
617: OTOOL
618: LIPO
619: NMEDIT
620: DSYMUTIL
1.1.1.2 ! misho 621: MANIFEST_TOOL
! 622: AWK
1.1 misho 623: RANLIB
624: STRIP
1.1.1.2 ! misho 625: ac_ct_AR
1.1 misho 626: AR
627: NM
628: ac_ct_DUMPBIN
629: DUMPBIN
630: LD
631: FGREP
632: SED
633: LIBTOOL
634: OBJDUMP
635: DLLTOOL
636: AS
637: EGREP
638: GREP
639: LN_S
640: LIBOBJS
641: RELOCATABLE
642: host_os
643: host_vendor
644: host_cpu
645: host
646: build_os
647: build_vendor
648: build_cpu
649: build
650: INSTALL_DATA
651: INSTALL_SCRIPT
652: INSTALL_PROGRAM
653: CPP
654: OBJEXT
655: EXEEXT
656: ac_ct_CC
657: CPPFLAGS
658: LDFLAGS
659: CFLAGS
660: CC
661: VERSION
662: PACKAGE
663: SET_MAKE
664: target_alias
665: host_alias
666: build_alias
667: LIBS
668: ECHO_T
669: ECHO_N
670: ECHO_C
671: DEFS
672: mandir
673: localedir
674: libdir
675: psdir
676: pdfdir
677: dvidir
678: htmldir
679: infodir
680: docdir
681: oldincludedir
682: includedir
683: localstatedir
684: sharedstatedir
685: sysconfdir
686: datadir
687: datarootdir
688: libexecdir
689: sbindir
690: bindir
691: program_transform_name
692: prefix
693: exec_prefix
1.1.1.2 ! misho 694: PACKAGE_URL
1.1 misho 695: PACKAGE_BUGREPORT
696: PACKAGE_STRING
697: PACKAGE_VERSION
698: PACKAGE_TARNAME
699: PACKAGE_NAME
700: PATH_SEPARATOR
701: SHELL'
702: ac_subst_files=''
703: ac_user_opts='
704: enable_option_checking
705: enable_relocatable
706: enable_shared
707: enable_static
708: with_pic
709: enable_fast_install
710: with_gnu_ld
1.1.1.2 ! misho 711: with_sysroot
1.1 misho 712: enable_libtool_lock
713: '
714: ac_precious_vars='build_alias
715: host_alias
716: target_alias
717: CC
718: CFLAGS
719: LDFLAGS
720: LIBS
721: CPPFLAGS
1.1.1.2 ! misho 722: CPP
! 723: CPPFLAGS'
1.1 misho 724:
725:
726: # Initialize some variables set by options.
727: ac_init_help=
728: ac_init_version=false
729: ac_unrecognized_opts=
730: ac_unrecognized_sep=
731: # The variables have the same names as the options, with
732: # dashes changed to underlines.
733: cache_file=/dev/null
734: exec_prefix=NONE
735: no_create=
736: no_recursion=
737: prefix=NONE
738: program_prefix=NONE
739: program_suffix=NONE
740: program_transform_name=s,x,x,
741: silent=
742: site=
743: srcdir=
744: verbose=
745: x_includes=NONE
746: x_libraries=NONE
747:
748: # Installation directory options.
749: # These are left unexpanded so users can "make install exec_prefix=/foo"
750: # and all the variables that are supposed to be based on exec_prefix
751: # by default will actually change.
752: # Use braces instead of parens because sh, perl, etc. also accept them.
753: # (The list follows the same order as the GNU Coding Standards.)
754: bindir='${exec_prefix}/bin'
755: sbindir='${exec_prefix}/sbin'
756: libexecdir='${exec_prefix}/libexec'
757: datarootdir='${prefix}/share'
758: datadir='${datarootdir}'
759: sysconfdir='${prefix}/etc'
760: sharedstatedir='${prefix}/com'
761: localstatedir='${prefix}/var'
762: includedir='${prefix}/include'
763: oldincludedir='/usr/include'
764: docdir='${datarootdir}/doc/${PACKAGE}'
765: infodir='${datarootdir}/info'
766: htmldir='${docdir}'
767: dvidir='${docdir}'
768: pdfdir='${docdir}'
769: psdir='${docdir}'
770: libdir='${exec_prefix}/lib'
771: localedir='${datarootdir}/locale'
772: mandir='${datarootdir}/man'
773:
774: ac_prev=
775: ac_dashdash=
776: for ac_option
777: do
778: # If the previous option needs an argument, assign it.
779: if test -n "$ac_prev"; then
780: eval $ac_prev=\$ac_option
781: ac_prev=
782: continue
783: fi
784:
785: case $ac_option in
1.1.1.2 ! misho 786: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 787: *=) ac_optarg= ;;
! 788: *) ac_optarg=yes ;;
1.1 misho 789: esac
790:
791: # Accept the important Cygnus configure options, so we can diagnose typos.
792:
793: case $ac_dashdash$ac_option in
794: --)
795: ac_dashdash=yes ;;
796:
797: -bindir | --bindir | --bindi | --bind | --bin | --bi)
798: ac_prev=bindir ;;
799: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800: bindir=$ac_optarg ;;
801:
802: -build | --build | --buil | --bui | --bu)
803: ac_prev=build_alias ;;
804: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
805: build_alias=$ac_optarg ;;
806:
807: -cache-file | --cache-file | --cache-fil | --cache-fi \
808: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809: ac_prev=cache_file ;;
810: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
812: cache_file=$ac_optarg ;;
813:
814: --config-cache | -C)
815: cache_file=config.cache ;;
816:
817: -datadir | --datadir | --datadi | --datad)
818: ac_prev=datadir ;;
819: -datadir=* | --datadir=* | --datadi=* | --datad=*)
820: datadir=$ac_optarg ;;
821:
822: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823: | --dataroo | --dataro | --datar)
824: ac_prev=datarootdir ;;
825: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827: datarootdir=$ac_optarg ;;
828:
829: -disable-* | --disable-*)
830: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
831: # Reject names that are not valid shell variable names.
832: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 ! misho 833: as_fn_error $? "invalid feature name: $ac_useropt"
1.1 misho 834: ac_useropt_orig=$ac_useropt
835: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836: case $ac_user_opts in
837: *"
838: "enable_$ac_useropt"
839: "*) ;;
840: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841: ac_unrecognized_sep=', ';;
842: esac
843: eval enable_$ac_useropt=no ;;
844:
845: -docdir | --docdir | --docdi | --doc | --do)
846: ac_prev=docdir ;;
847: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848: docdir=$ac_optarg ;;
849:
850: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851: ac_prev=dvidir ;;
852: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853: dvidir=$ac_optarg ;;
854:
855: -enable-* | --enable-*)
856: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857: # Reject names that are not valid shell variable names.
858: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 ! misho 859: as_fn_error $? "invalid feature name: $ac_useropt"
1.1 misho 860: ac_useropt_orig=$ac_useropt
861: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862: case $ac_user_opts in
863: *"
864: "enable_$ac_useropt"
865: "*) ;;
866: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
867: ac_unrecognized_sep=', ';;
868: esac
869: eval enable_$ac_useropt=\$ac_optarg ;;
870:
871: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873: | --exec | --exe | --ex)
874: ac_prev=exec_prefix ;;
875: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877: | --exec=* | --exe=* | --ex=*)
878: exec_prefix=$ac_optarg ;;
879:
880: -gas | --gas | --ga | --g)
881: # Obsolete; use --with-gas.
882: with_gas=yes ;;
883:
884: -help | --help | --hel | --he | -h)
885: ac_init_help=long ;;
886: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887: ac_init_help=recursive ;;
888: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889: ac_init_help=short ;;
890:
891: -host | --host | --hos | --ho)
892: ac_prev=host_alias ;;
893: -host=* | --host=* | --hos=* | --ho=*)
894: host_alias=$ac_optarg ;;
895:
896: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897: ac_prev=htmldir ;;
898: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899: | --ht=*)
900: htmldir=$ac_optarg ;;
901:
902: -includedir | --includedir | --includedi | --included | --include \
903: | --includ | --inclu | --incl | --inc)
904: ac_prev=includedir ;;
905: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906: | --includ=* | --inclu=* | --incl=* | --inc=*)
907: includedir=$ac_optarg ;;
908:
909: -infodir | --infodir | --infodi | --infod | --info | --inf)
910: ac_prev=infodir ;;
911: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912: infodir=$ac_optarg ;;
913:
914: -libdir | --libdir | --libdi | --libd)
915: ac_prev=libdir ;;
916: -libdir=* | --libdir=* | --libdi=* | --libd=*)
917: libdir=$ac_optarg ;;
918:
919: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920: | --libexe | --libex | --libe)
921: ac_prev=libexecdir ;;
922: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923: | --libexe=* | --libex=* | --libe=*)
924: libexecdir=$ac_optarg ;;
925:
926: -localedir | --localedir | --localedi | --localed | --locale)
927: ac_prev=localedir ;;
928: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929: localedir=$ac_optarg ;;
930:
931: -localstatedir | --localstatedir | --localstatedi | --localstated \
932: | --localstate | --localstat | --localsta | --localst | --locals)
933: ac_prev=localstatedir ;;
934: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936: localstatedir=$ac_optarg ;;
937:
938: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939: ac_prev=mandir ;;
940: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941: mandir=$ac_optarg ;;
942:
943: -nfp | --nfp | --nf)
944: # Obsolete; use --without-fp.
945: with_fp=no ;;
946:
947: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948: | --no-cr | --no-c | -n)
949: no_create=yes ;;
950:
951: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953: no_recursion=yes ;;
954:
955: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957: | --oldin | --oldi | --old | --ol | --o)
958: ac_prev=oldincludedir ;;
959: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962: oldincludedir=$ac_optarg ;;
963:
964: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965: ac_prev=prefix ;;
966: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967: prefix=$ac_optarg ;;
968:
969: -program-prefix | --program-prefix | --program-prefi | --program-pref \
970: | --program-pre | --program-pr | --program-p)
971: ac_prev=program_prefix ;;
972: -program-prefix=* | --program-prefix=* | --program-prefi=* \
973: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974: program_prefix=$ac_optarg ;;
975:
976: -program-suffix | --program-suffix | --program-suffi | --program-suff \
977: | --program-suf | --program-su | --program-s)
978: ac_prev=program_suffix ;;
979: -program-suffix=* | --program-suffix=* | --program-suffi=* \
980: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981: program_suffix=$ac_optarg ;;
982:
983: -program-transform-name | --program-transform-name \
984: | --program-transform-nam | --program-transform-na \
985: | --program-transform-n | --program-transform- \
986: | --program-transform | --program-transfor \
987: | --program-transfo | --program-transf \
988: | --program-trans | --program-tran \
989: | --progr-tra | --program-tr | --program-t)
990: ac_prev=program_transform_name ;;
991: -program-transform-name=* | --program-transform-name=* \
992: | --program-transform-nam=* | --program-transform-na=* \
993: | --program-transform-n=* | --program-transform-=* \
994: | --program-transform=* | --program-transfor=* \
995: | --program-transfo=* | --program-transf=* \
996: | --program-trans=* | --program-tran=* \
997: | --progr-tra=* | --program-tr=* | --program-t=*)
998: program_transform_name=$ac_optarg ;;
999:
1000: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001: ac_prev=pdfdir ;;
1002: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003: pdfdir=$ac_optarg ;;
1004:
1005: -psdir | --psdir | --psdi | --psd | --ps)
1006: ac_prev=psdir ;;
1007: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008: psdir=$ac_optarg ;;
1009:
1010: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011: | -silent | --silent | --silen | --sile | --sil)
1012: silent=yes ;;
1013:
1014: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015: ac_prev=sbindir ;;
1016: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017: | --sbi=* | --sb=*)
1018: sbindir=$ac_optarg ;;
1019:
1020: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022: | --sharedst | --shareds | --shared | --share | --shar \
1023: | --sha | --sh)
1024: ac_prev=sharedstatedir ;;
1025: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028: | --sha=* | --sh=*)
1029: sharedstatedir=$ac_optarg ;;
1030:
1031: -site | --site | --sit)
1032: ac_prev=site ;;
1033: -site=* | --site=* | --sit=*)
1034: site=$ac_optarg ;;
1035:
1036: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037: ac_prev=srcdir ;;
1038: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039: srcdir=$ac_optarg ;;
1040:
1041: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042: | --syscon | --sysco | --sysc | --sys | --sy)
1043: ac_prev=sysconfdir ;;
1044: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046: sysconfdir=$ac_optarg ;;
1047:
1048: -target | --target | --targe | --targ | --tar | --ta | --t)
1049: ac_prev=target_alias ;;
1050: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051: target_alias=$ac_optarg ;;
1052:
1053: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054: verbose=yes ;;
1055:
1056: -version | --version | --versio | --versi | --vers | -V)
1057: ac_init_version=: ;;
1058:
1059: -with-* | --with-*)
1060: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061: # Reject names that are not valid shell variable names.
1062: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 ! misho 1063: as_fn_error $? "invalid package name: $ac_useropt"
1.1 misho 1064: ac_useropt_orig=$ac_useropt
1065: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066: case $ac_user_opts in
1067: *"
1068: "with_$ac_useropt"
1069: "*) ;;
1070: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1071: ac_unrecognized_sep=', ';;
1072: esac
1073: eval with_$ac_useropt=\$ac_optarg ;;
1074:
1075: -without-* | --without-*)
1076: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077: # Reject names that are not valid shell variable names.
1078: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.2 ! misho 1079: as_fn_error $? "invalid package name: $ac_useropt"
1.1 misho 1080: ac_useropt_orig=$ac_useropt
1081: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082: case $ac_user_opts in
1083: *"
1084: "with_$ac_useropt"
1085: "*) ;;
1086: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1087: ac_unrecognized_sep=', ';;
1088: esac
1089: eval with_$ac_useropt=no ;;
1090:
1091: --x)
1092: # Obsolete; use --with-x.
1093: with_x=yes ;;
1094:
1095: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096: | --x-incl | --x-inc | --x-in | --x-i)
1097: ac_prev=x_includes ;;
1098: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100: x_includes=$ac_optarg ;;
1101:
1102: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104: ac_prev=x_libraries ;;
1105: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107: x_libraries=$ac_optarg ;;
1108:
1.1.1.2 ! misho 1109: -*) as_fn_error $? "unrecognized option: \`$ac_option'
! 1110: Try \`$0 --help' for more information"
1.1 misho 1111: ;;
1112:
1113: *=*)
1114: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115: # Reject names that are not valid shell variable names.
1.1.1.2 ! misho 1116: case $ac_envvar in #(
! 1117: '' | [0-9]* | *[!_$as_cr_alnum]* )
! 1118: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
! 1119: esac
1.1 misho 1120: eval $ac_envvar=\$ac_optarg
1121: export $ac_envvar ;;
1122:
1123: *)
1124: # FIXME: should be removed in autoconf 3.0.
1125: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1126: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1.1.2 ! misho 1128: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misho 1129: ;;
1130:
1131: esac
1132: done
1133:
1134: if test -n "$ac_prev"; then
1135: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.1.1.2 ! misho 1136: as_fn_error $? "missing argument to $ac_option"
1.1 misho 1137: fi
1138:
1139: if test -n "$ac_unrecognized_opts"; then
1140: case $enable_option_checking in
1141: no) ;;
1.1.1.2 ! misho 1142: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.1 misho 1143: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144: esac
1145: fi
1146:
1147: # Check all directory arguments for consistency.
1148: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149: datadir sysconfdir sharedstatedir localstatedir includedir \
1150: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151: libdir localedir mandir
1152: do
1153: eval ac_val=\$$ac_var
1154: # Remove trailing slashes.
1155: case $ac_val in
1156: */ )
1157: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1158: eval $ac_var=\$ac_val;;
1159: esac
1160: # Be sure to have absolute directory names.
1161: case $ac_val in
1162: [\\/$]* | ?:[\\/]* ) continue;;
1163: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164: esac
1.1.1.2 ! misho 1165: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 misho 1166: done
1167:
1168: # There might be people who depend on the old broken behavior: `$host'
1169: # used to hold the argument of --host etc.
1170: # FIXME: To remove some day.
1171: build=$build_alias
1172: host=$host_alias
1173: target=$target_alias
1174:
1175: # FIXME: To remove some day.
1176: if test "x$host_alias" != x; then
1177: if test "x$build_alias" = x; then
1178: cross_compiling=maybe
1.1.1.2 ! misho 1179: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
! 1180: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 misho 1181: elif test "x$build_alias" != "x$host_alias"; then
1182: cross_compiling=yes
1183: fi
1184: fi
1185:
1186: ac_tool_prefix=
1187: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188:
1189: test "$silent" = yes && exec 6>/dev/null
1190:
1191:
1192: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193: ac_ls_di=`ls -di .` &&
1194: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.1.1.2 ! misho 1195: as_fn_error $? "working directory cannot be determined"
1.1 misho 1196: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.1.1.2 ! misho 1197: as_fn_error $? "pwd does not report name of working directory"
1.1 misho 1198:
1199:
1200: # Find the source files, if location was not specified.
1201: if test -z "$srcdir"; then
1202: ac_srcdir_defaulted=yes
1203: # Try the directory containing this script, then the parent directory.
1204: ac_confdir=`$as_dirname -- "$as_myself" ||
1205: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1206: X"$as_myself" : 'X\(//\)[^/]' \| \
1207: X"$as_myself" : 'X\(//\)$' \| \
1208: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1209: $as_echo X"$as_myself" |
1210: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211: s//\1/
1212: q
1213: }
1214: /^X\(\/\/\)[^/].*/{
1215: s//\1/
1216: q
1217: }
1218: /^X\(\/\/\)$/{
1219: s//\1/
1220: q
1221: }
1222: /^X\(\/\).*/{
1223: s//\1/
1224: q
1225: }
1226: s/.*/./; q'`
1227: srcdir=$ac_confdir
1228: if test ! -r "$srcdir/$ac_unique_file"; then
1229: srcdir=..
1230: fi
1231: else
1232: ac_srcdir_defaulted=no
1233: fi
1234: if test ! -r "$srcdir/$ac_unique_file"; then
1235: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.1.1.2 ! misho 1236: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 misho 1237: fi
1238: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1239: ac_abs_confdir=`(
1.1.1.2 ! misho 1240: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 misho 1241: pwd)`
1242: # When building in place, set srcdir=.
1243: if test "$ac_abs_confdir" = "$ac_pwd"; then
1244: srcdir=.
1245: fi
1246: # Remove unnecessary trailing slashes from srcdir.
1247: # Double slashes in file names in object file debugging info
1248: # mess up M-x gdb in Emacs.
1249: case $srcdir in
1250: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251: esac
1252: for ac_var in $ac_precious_vars; do
1253: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1254: eval ac_env_${ac_var}_value=\$${ac_var}
1255: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1256: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257: done
1258:
1259: #
1260: # Report the --help message.
1261: #
1262: if test "$ac_init_help" = "long"; then
1263: # Omit some internal or obsolete options to make the list less imposing.
1264: # This message is too long to be a string in the A/UX 3.1 sh.
1265: cat <<_ACEOF
1266: \`configure' configures this package to adapt to many kinds of systems.
1267:
1268: Usage: $0 [OPTION]... [VAR=VALUE]...
1269:
1270: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1271: VAR=VALUE. See below for descriptions of some of the useful variables.
1272:
1273: Defaults for the options are specified in brackets.
1274:
1275: Configuration:
1276: -h, --help display this help and exit
1277: --help=short display options specific to this package
1278: --help=recursive display the short help of all the included packages
1279: -V, --version display version information and exit
1.1.1.2 ! misho 1280: -q, --quiet, --silent do not print \`checking ...' messages
1.1 misho 1281: --cache-file=FILE cache test results in FILE [disabled]
1282: -C, --config-cache alias for \`--cache-file=config.cache'
1283: -n, --no-create do not create output files
1284: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285:
1286: Installation directories:
1287: --prefix=PREFIX install architecture-independent files in PREFIX
1288: [$ac_default_prefix]
1289: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1290: [PREFIX]
1291:
1292: By default, \`make install' will install all the files in
1293: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1294: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1295: for instance \`--prefix=\$HOME'.
1296:
1297: For better control, use the options below.
1298:
1299: Fine tuning of the installation directories:
1300: --bindir=DIR user executables [EPREFIX/bin]
1301: --sbindir=DIR system admin executables [EPREFIX/sbin]
1302: --libexecdir=DIR program executables [EPREFIX/libexec]
1303: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1304: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1305: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1306: --libdir=DIR object code libraries [EPREFIX/lib]
1307: --includedir=DIR C header files [PREFIX/include]
1308: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1309: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1310: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1311: --infodir=DIR info documentation [DATAROOTDIR/info]
1312: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1313: --mandir=DIR man documentation [DATAROOTDIR/man]
1314: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1315: --htmldir=DIR html documentation [DOCDIR]
1316: --dvidir=DIR dvi documentation [DOCDIR]
1317: --pdfdir=DIR pdf documentation [DOCDIR]
1318: --psdir=DIR ps documentation [DOCDIR]
1319: _ACEOF
1320:
1321: cat <<\_ACEOF
1322:
1323: System types:
1324: --build=BUILD configure for building on BUILD [guessed]
1325: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1326: _ACEOF
1327: fi
1328:
1329: if test -n "$ac_init_help"; then
1330:
1331: cat <<\_ACEOF
1332:
1333: Optional Features:
1334: --disable-option-checking ignore unrecognized --enable/--with options
1335: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1336: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 ! misho 1337: --enable-relocatable install a package that can be moved in the file
! 1338: system
1.1 misho 1339: --enable-shared[=PKGS] build shared libraries [default=yes]
1340: --enable-static[=PKGS] build static libraries [default=yes]
1341: --enable-fast-install[=PKGS]
1342: optimize for fast installation [default=yes]
1343: --disable-libtool-lock avoid locking (might break parallel builds)
1344:
1345: Optional Packages:
1346: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348: --with-pic try to use only PIC/non-PIC objects [default=use
1349: both]
1350: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.1.1.2 ! misho 1351: --with-sysroot=DIR Search for dependent libraries within DIR
! 1352: (or the compiler's sysroot if not specified).
1.1 misho 1353:
1354: Some influential environment variables:
1355: CC C compiler command
1356: CFLAGS C compiler flags
1357: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1358: nonstandard directory <lib dir>
1359: LIBS libraries to pass to the linker, e.g. -l<library>
1.1.1.2 ! misho 1360: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 misho 1361: you have headers in a nonstandard directory <include dir>
1362: CPP C preprocessor
1363:
1364: Use these variables to override the choices made by `configure' or to help
1365: it to find libraries and programs with nonstandard names/locations.
1366:
1.1.1.2 ! misho 1367: Report bugs to the package provider.
1.1 misho 1368: _ACEOF
1369: ac_status=$?
1370: fi
1371:
1372: if test "$ac_init_help" = "recursive"; then
1373: # If there are subdirs, report their specific --help.
1374: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1375: test -d "$ac_dir" ||
1376: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1377: continue
1378: ac_builddir=.
1379:
1380: case "$ac_dir" in
1381: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382: *)
1383: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1384: # A ".." for each directory in $ac_dir_suffix.
1385: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1386: case $ac_top_builddir_sub in
1387: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1389: esac ;;
1390: esac
1391: ac_abs_top_builddir=$ac_pwd
1392: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1393: # for backward compatibility:
1394: ac_top_builddir=$ac_top_build_prefix
1395:
1396: case $srcdir in
1397: .) # We are building in place.
1398: ac_srcdir=.
1399: ac_top_srcdir=$ac_top_builddir_sub
1400: ac_abs_top_srcdir=$ac_pwd ;;
1401: [\\/]* | ?:[\\/]* ) # Absolute name.
1402: ac_srcdir=$srcdir$ac_dir_suffix;
1403: ac_top_srcdir=$srcdir
1404: ac_abs_top_srcdir=$srcdir ;;
1405: *) # Relative name.
1406: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1407: ac_top_srcdir=$ac_top_build_prefix$srcdir
1408: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409: esac
1410: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411:
1412: cd "$ac_dir" || { ac_status=$?; continue; }
1413: # Check for guested configure.
1414: if test -f "$ac_srcdir/configure.gnu"; then
1415: echo &&
1416: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417: elif test -f "$ac_srcdir/configure"; then
1418: echo &&
1419: $SHELL "$ac_srcdir/configure" --help=recursive
1420: else
1421: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422: fi || ac_status=$?
1423: cd "$ac_pwd" || { ac_status=$?; break; }
1424: done
1425: fi
1426:
1.1.1.2 ! misho 1427: test -n "$ac_init_help" && exit $ac_status
! 1428: if $ac_init_version; then
! 1429: cat <<\_ACEOF
! 1430: configure
! 1431: generated by GNU Autoconf 2.68
! 1432:
! 1433: Copyright (C) 2010 Free Software Foundation, Inc.
! 1434: This configure script is free software; the Free Software Foundation
! 1435: gives unlimited permission to copy, distribute and modify it.
! 1436: _ACEOF
! 1437: exit
! 1438: fi
! 1439:
! 1440: ## ------------------------ ##
! 1441: ## Autoconf initialization. ##
! 1442: ## ------------------------ ##
! 1443:
! 1444: # ac_fn_c_try_compile LINENO
! 1445: # --------------------------
! 1446: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1447: ac_fn_c_try_compile ()
! 1448: {
! 1449: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1450: rm -f conftest.$ac_objext
! 1451: if { { ac_try="$ac_compile"
! 1452: case "(($ac_try" in
! 1453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1454: *) ac_try_echo=$ac_try;;
! 1455: esac
! 1456: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1457: $as_echo "$ac_try_echo"; } >&5
! 1458: (eval "$ac_compile") 2>conftest.err
! 1459: ac_status=$?
! 1460: if test -s conftest.err; then
! 1461: grep -v '^ *+' conftest.err >conftest.er1
! 1462: cat conftest.er1 >&5
! 1463: mv -f conftest.er1 conftest.err
! 1464: fi
! 1465: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1466: test $ac_status = 0; } && {
! 1467: test -z "$ac_c_werror_flag" ||
! 1468: test ! -s conftest.err
! 1469: } && test -s conftest.$ac_objext; then :
! 1470: ac_retval=0
! 1471: else
! 1472: $as_echo "$as_me: failed program was:" >&5
! 1473: sed 's/^/| /' conftest.$ac_ext >&5
! 1474:
! 1475: ac_retval=1
! 1476: fi
! 1477: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1478: as_fn_set_status $ac_retval
! 1479:
! 1480: } # ac_fn_c_try_compile
! 1481:
! 1482: # ac_fn_c_try_cpp LINENO
! 1483: # ----------------------
! 1484: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1485: ac_fn_c_try_cpp ()
! 1486: {
! 1487: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1488: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1489: case "(($ac_try" in
! 1490: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1491: *) ac_try_echo=$ac_try;;
! 1492: esac
! 1493: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1494: $as_echo "$ac_try_echo"; } >&5
! 1495: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1496: ac_status=$?
! 1497: if test -s conftest.err; then
! 1498: grep -v '^ *+' conftest.err >conftest.er1
! 1499: cat conftest.er1 >&5
! 1500: mv -f conftest.er1 conftest.err
! 1501: fi
! 1502: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1503: test $ac_status = 0; } > conftest.i && {
! 1504: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 1505: test ! -s conftest.err
! 1506: }; then :
! 1507: ac_retval=0
! 1508: else
! 1509: $as_echo "$as_me: failed program was:" >&5
! 1510: sed 's/^/| /' conftest.$ac_ext >&5
! 1511:
! 1512: ac_retval=1
! 1513: fi
! 1514: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1515: as_fn_set_status $ac_retval
! 1516:
! 1517: } # ac_fn_c_try_cpp
! 1518:
! 1519: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
! 1520: # -------------------------------------------------------
! 1521: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
! 1522: # the include files in INCLUDES and setting the cache variable VAR
! 1523: # accordingly.
! 1524: ac_fn_c_check_header_mongrel ()
! 1525: {
! 1526: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1527: if eval \${$3+:} false; then :
! 1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1529: $as_echo_n "checking for $2... " >&6; }
! 1530: if eval \${$3+:} false; then :
! 1531: $as_echo_n "(cached) " >&6
! 1532: fi
! 1533: eval ac_res=\$$3
! 1534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1535: $as_echo "$ac_res" >&6; }
! 1536: else
! 1537: # Is the header compilable?
! 1538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
! 1539: $as_echo_n "checking $2 usability... " >&6; }
! 1540: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1541: /* end confdefs.h. */
! 1542: $4
! 1543: #include <$2>
! 1544: _ACEOF
! 1545: if ac_fn_c_try_compile "$LINENO"; then :
! 1546: ac_header_compiler=yes
! 1547: else
! 1548: ac_header_compiler=no
! 1549: fi
! 1550: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
! 1552: $as_echo "$ac_header_compiler" >&6; }
! 1553:
! 1554: # Is the header present?
! 1555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
! 1556: $as_echo_n "checking $2 presence... " >&6; }
! 1557: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1558: /* end confdefs.h. */
! 1559: #include <$2>
! 1560: _ACEOF
! 1561: if ac_fn_c_try_cpp "$LINENO"; then :
! 1562: ac_header_preproc=yes
! 1563: else
! 1564: ac_header_preproc=no
! 1565: fi
! 1566: rm -f conftest.err conftest.i conftest.$ac_ext
! 1567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
! 1568: $as_echo "$ac_header_preproc" >&6; }
! 1569:
! 1570: # So? What about this header?
! 1571: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
! 1572: yes:no: )
! 1573: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
! 1574: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 1575: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 1576: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 1577: ;;
! 1578: no:yes:* )
! 1579: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
! 1580: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
! 1581: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
! 1582: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
! 1583: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
! 1584: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
! 1585: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
! 1586: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
! 1587: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 1588: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 1589: ;;
! 1590: esac
! 1591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1592: $as_echo_n "checking for $2... " >&6; }
! 1593: if eval \${$3+:} false; then :
! 1594: $as_echo_n "(cached) " >&6
! 1595: else
! 1596: eval "$3=\$ac_header_compiler"
! 1597: fi
! 1598: eval ac_res=\$$3
! 1599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1600: $as_echo "$ac_res" >&6; }
! 1601: fi
! 1602: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1603:
! 1604: } # ac_fn_c_check_header_mongrel
! 1605:
! 1606: # ac_fn_c_try_run LINENO
! 1607: # ----------------------
! 1608: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
! 1609: # that executables *can* be run.
! 1610: ac_fn_c_try_run ()
! 1611: {
! 1612: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1613: if { { ac_try="$ac_link"
! 1614: case "(($ac_try" in
! 1615: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1616: *) ac_try_echo=$ac_try;;
! 1617: esac
! 1618: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1619: $as_echo "$ac_try_echo"; } >&5
! 1620: (eval "$ac_link") 2>&5
! 1621: ac_status=$?
! 1622: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1623: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 1624: { { case "(($ac_try" in
! 1625: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1626: *) ac_try_echo=$ac_try;;
! 1627: esac
! 1628: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1629: $as_echo "$ac_try_echo"; } >&5
! 1630: (eval "$ac_try") 2>&5
! 1631: ac_status=$?
! 1632: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1633: test $ac_status = 0; }; }; then :
! 1634: ac_retval=0
! 1635: else
! 1636: $as_echo "$as_me: program exited with status $ac_status" >&5
! 1637: $as_echo "$as_me: failed program was:" >&5
! 1638: sed 's/^/| /' conftest.$ac_ext >&5
! 1639:
! 1640: ac_retval=$ac_status
! 1641: fi
! 1642: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1643: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1644: as_fn_set_status $ac_retval
! 1645:
! 1646: } # ac_fn_c_try_run
! 1647:
! 1648: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
! 1649: # -------------------------------------------------------
! 1650: # Tests whether HEADER exists and can be compiled using the include files in
! 1651: # INCLUDES, setting the cache variable VAR accordingly.
! 1652: ac_fn_c_check_header_compile ()
! 1653: {
! 1654: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1656: $as_echo_n "checking for $2... " >&6; }
! 1657: if eval \${$3+:} false; then :
! 1658: $as_echo_n "(cached) " >&6
! 1659: else
! 1660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1661: /* end confdefs.h. */
! 1662: $4
! 1663: #include <$2>
! 1664: _ACEOF
! 1665: if ac_fn_c_try_compile "$LINENO"; then :
! 1666: eval "$3=yes"
! 1667: else
! 1668: eval "$3=no"
! 1669: fi
! 1670: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1671: fi
! 1672: eval ac_res=\$$3
! 1673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1674: $as_echo "$ac_res" >&6; }
! 1675: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1676:
! 1677: } # ac_fn_c_check_header_compile
! 1678:
! 1679: # ac_fn_c_try_link LINENO
! 1680: # -----------------------
! 1681: # Try to link conftest.$ac_ext, and return whether this succeeded.
! 1682: ac_fn_c_try_link ()
! 1683: {
! 1684: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1685: rm -f conftest.$ac_objext conftest$ac_exeext
! 1686: if { { ac_try="$ac_link"
! 1687: case "(($ac_try" in
! 1688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1689: *) ac_try_echo=$ac_try;;
! 1690: esac
! 1691: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1692: $as_echo "$ac_try_echo"; } >&5
! 1693: (eval "$ac_link") 2>conftest.err
! 1694: ac_status=$?
! 1695: if test -s conftest.err; then
! 1696: grep -v '^ *+' conftest.err >conftest.er1
! 1697: cat conftest.er1 >&5
! 1698: mv -f conftest.er1 conftest.err
! 1699: fi
! 1700: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1701: test $ac_status = 0; } && {
! 1702: test -z "$ac_c_werror_flag" ||
! 1703: test ! -s conftest.err
! 1704: } && test -s conftest$ac_exeext && {
! 1705: test "$cross_compiling" = yes ||
! 1706: $as_test_x conftest$ac_exeext
! 1707: }; then :
! 1708: ac_retval=0
! 1709: else
! 1710: $as_echo "$as_me: failed program was:" >&5
! 1711: sed 's/^/| /' conftest.$ac_ext >&5
! 1712:
! 1713: ac_retval=1
! 1714: fi
! 1715: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
! 1716: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
! 1717: # interfere with the next link command; also delete a directory that is
! 1718: # left behind by Apple's compiler. We do this before executing the actions.
! 1719: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1720: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1721: as_fn_set_status $ac_retval
! 1722:
! 1723: } # ac_fn_c_try_link
! 1724:
! 1725: # ac_fn_c_check_func LINENO FUNC VAR
! 1726: # ----------------------------------
! 1727: # Tests whether FUNC exists, setting the cache variable VAR accordingly
! 1728: ac_fn_c_check_func ()
! 1729: {
! 1730: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1732: $as_echo_n "checking for $2... " >&6; }
! 1733: if eval \${$3+:} false; then :
! 1734: $as_echo_n "(cached) " >&6
! 1735: else
! 1736: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1737: /* end confdefs.h. */
! 1738: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
! 1739: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 1740: #define $2 innocuous_$2
! 1741:
! 1742: /* System header to define __stub macros and hopefully few prototypes,
! 1743: which can conflict with char $2 (); below.
! 1744: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 1745: <limits.h> exists even on freestanding compilers. */
! 1746:
! 1747: #ifdef __STDC__
! 1748: # include <limits.h>
! 1749: #else
! 1750: # include <assert.h>
! 1751: #endif
1.1 misho 1752:
1.1.1.2 ! misho 1753: #undef $2
! 1754:
! 1755: /* Override any GCC internal prototype to avoid an error.
! 1756: Use char because int might match the return type of a GCC
! 1757: builtin and then its argument prototype would still apply. */
! 1758: #ifdef __cplusplus
! 1759: extern "C"
! 1760: #endif
! 1761: char $2 ();
! 1762: /* The GNU C library defines this for functions which it implements
! 1763: to always fail with ENOSYS. Some functions are actually named
! 1764: something starting with __ and the normal name is an alias. */
! 1765: #if defined __stub_$2 || defined __stub___$2
! 1766: choke me
! 1767: #endif
! 1768:
! 1769: int
! 1770: main ()
! 1771: {
! 1772: return $2 ();
! 1773: ;
! 1774: return 0;
! 1775: }
1.1 misho 1776: _ACEOF
1.1.1.2 ! misho 1777: if ac_fn_c_try_link "$LINENO"; then :
! 1778: eval "$3=yes"
! 1779: else
! 1780: eval "$3=no"
! 1781: fi
! 1782: rm -f core conftest.err conftest.$ac_objext \
! 1783: conftest$ac_exeext conftest.$ac_ext
1.1 misho 1784: fi
1.1.1.2 ! misho 1785: eval ac_res=\$$3
! 1786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1787: $as_echo "$ac_res" >&6; }
! 1788: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1789:
! 1790: } # ac_fn_c_check_func
1.1 misho 1791: cat >config.log <<_ACEOF
1792: This file contains any messages produced by compilers while
1793: running configure, to aid debugging if configure makes a mistake.
1794:
1795: It was created by $as_me, which was
1.1.1.2 ! misho 1796: generated by GNU Autoconf 2.68. Invocation command line was
1.1 misho 1797:
1798: $ $0 $@
1799:
1800: _ACEOF
1801: exec 5>>config.log
1802: {
1803: cat <<_ASUNAME
1804: ## --------- ##
1805: ## Platform. ##
1806: ## --------- ##
1807:
1808: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813:
1814: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1816:
1817: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1824:
1825: _ASUNAME
1826:
1827: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828: for as_dir in $PATH
1829: do
1830: IFS=$as_save_IFS
1831: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 1832: $as_echo "PATH: $as_dir"
! 1833: done
1.1 misho 1834: IFS=$as_save_IFS
1835:
1836: } >&5
1837:
1838: cat >&5 <<_ACEOF
1839:
1840:
1841: ## ----------- ##
1842: ## Core tests. ##
1843: ## ----------- ##
1844:
1845: _ACEOF
1846:
1847:
1848: # Keep a trace of the command line.
1849: # Strip out --no-create and --no-recursion so they do not pile up.
1850: # Strip out --silent because we don't want to record it for future runs.
1851: # Also quote any args containing shell meta-characters.
1852: # Make two passes to allow for proper duplicate-argument suppression.
1853: ac_configure_args=
1854: ac_configure_args0=
1855: ac_configure_args1=
1856: ac_must_keep_next=false
1857: for ac_pass in 1 2
1858: do
1859: for ac_arg
1860: do
1861: case $ac_arg in
1862: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864: | -silent | --silent | --silen | --sile | --sil)
1865: continue ;;
1866: *\'*)
1867: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868: esac
1869: case $ac_pass in
1.1.1.2 ! misho 1870: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.1 misho 1871: 2)
1.1.1.2 ! misho 1872: as_fn_append ac_configure_args1 " '$ac_arg'"
1.1 misho 1873: if test $ac_must_keep_next = true; then
1874: ac_must_keep_next=false # Got value, back to normal.
1875: else
1876: case $ac_arg in
1877: *=* | --config-cache | -C | -disable-* | --disable-* \
1878: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880: | -with-* | --with-* | -without-* | --without-* | --x)
1881: case "$ac_configure_args0 " in
1882: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883: esac
1884: ;;
1885: -* ) ac_must_keep_next=true ;;
1886: esac
1887: fi
1.1.1.2 ! misho 1888: as_fn_append ac_configure_args " '$ac_arg'"
1.1 misho 1889: ;;
1890: esac
1891: done
1892: done
1.1.1.2 ! misho 1893: { ac_configure_args0=; unset ac_configure_args0;}
! 1894: { ac_configure_args1=; unset ac_configure_args1;}
1.1 misho 1895:
1896: # When interrupted or exit'd, cleanup temporary files, and complete
1897: # config.log. We remove comments because anyway the quotes in there
1898: # would cause problems or look ugly.
1899: # WARNING: Use '\'' to represent an apostrophe within the trap.
1900: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901: trap 'exit_status=$?
1902: # Save into config.log some information that might help in debugging.
1903: {
1904: echo
1905:
1.1.1.2 ! misho 1906: $as_echo "## ---------------- ##
1.1 misho 1907: ## Cache variables. ##
1.1.1.2 ! misho 1908: ## ---------------- ##"
1.1 misho 1909: echo
1910: # The following way of writing the cache mishandles newlines in values,
1911: (
1912: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913: eval ac_val=\$$ac_var
1914: case $ac_val in #(
1915: *${as_nl}*)
1916: case $ac_var in #(
1.1.1.2 ! misho 1917: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1.1 misho 1918: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1919: esac
1920: case $ac_var in #(
1921: _ | IFS | as_nl) ;; #(
1922: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.1.2 ! misho 1923: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 misho 1924: esac ;;
1925: esac
1926: done
1927: (set) 2>&1 |
1928: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929: *${as_nl}ac_space=\ *)
1930: sed -n \
1931: "s/'\''/'\''\\\\'\'''\''/g;
1932: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1933: ;; #(
1934: *)
1935: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1936: ;;
1937: esac |
1938: sort
1939: )
1940: echo
1941:
1.1.1.2 ! misho 1942: $as_echo "## ----------------- ##
1.1 misho 1943: ## Output variables. ##
1.1.1.2 ! misho 1944: ## ----------------- ##"
1.1 misho 1945: echo
1946: for ac_var in $ac_subst_vars
1947: do
1948: eval ac_val=\$$ac_var
1949: case $ac_val in
1950: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951: esac
1952: $as_echo "$ac_var='\''$ac_val'\''"
1953: done | sort
1954: echo
1955:
1956: if test -n "$ac_subst_files"; then
1.1.1.2 ! misho 1957: $as_echo "## ------------------- ##
1.1 misho 1958: ## File substitutions. ##
1.1.1.2 ! misho 1959: ## ------------------- ##"
1.1 misho 1960: echo
1961: for ac_var in $ac_subst_files
1962: do
1963: eval ac_val=\$$ac_var
1964: case $ac_val in
1965: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966: esac
1967: $as_echo "$ac_var='\''$ac_val'\''"
1968: done | sort
1969: echo
1970: fi
1971:
1972: if test -s confdefs.h; then
1.1.1.2 ! misho 1973: $as_echo "## ----------- ##
1.1 misho 1974: ## confdefs.h. ##
1.1.1.2 ! misho 1975: ## ----------- ##"
1.1 misho 1976: echo
1977: cat confdefs.h
1978: echo
1979: fi
1980: test "$ac_signal" != 0 &&
1981: $as_echo "$as_me: caught signal $ac_signal"
1982: $as_echo "$as_me: exit $exit_status"
1983: } >&5
1984: rm -f core *.core core.conftest.* &&
1985: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1986: exit $exit_status
1987: ' 0
1988: for ac_signal in 1 2 13 15; do
1.1.1.2 ! misho 1989: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.1 misho 1990: done
1991: ac_signal=0
1992:
1993: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994: rm -f -r conftest* confdefs.h
1995:
1.1.1.2 ! misho 1996: $as_echo "/* confdefs.h */" > confdefs.h
! 1997:
1.1 misho 1998: # Predefined preprocessor variables.
1999:
2000: cat >>confdefs.h <<_ACEOF
2001: #define PACKAGE_NAME "$PACKAGE_NAME"
2002: _ACEOF
2003:
2004: cat >>confdefs.h <<_ACEOF
2005: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2006: _ACEOF
2007:
2008: cat >>confdefs.h <<_ACEOF
2009: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2010: _ACEOF
2011:
2012: cat >>confdefs.h <<_ACEOF
2013: #define PACKAGE_STRING "$PACKAGE_STRING"
2014: _ACEOF
2015:
2016: cat >>confdefs.h <<_ACEOF
2017: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2018: _ACEOF
2019:
1.1.1.2 ! misho 2020: cat >>confdefs.h <<_ACEOF
! 2021: #define PACKAGE_URL "$PACKAGE_URL"
! 2022: _ACEOF
! 2023:
1.1 misho 2024:
2025: # Let the site file select an alternate cache file if it wants to.
2026: # Prefer an explicitly selected file to automatically selected ones.
2027: ac_site_file1=NONE
2028: ac_site_file2=NONE
2029: if test -n "$CONFIG_SITE"; then
1.1.1.2 ! misho 2030: # We do not want a PATH search for config.site.
! 2031: case $CONFIG_SITE in #((
! 2032: -*) ac_site_file1=./$CONFIG_SITE;;
! 2033: */*) ac_site_file1=$CONFIG_SITE;;
! 2034: *) ac_site_file1=./$CONFIG_SITE;;
! 2035: esac
1.1 misho 2036: elif test "x$prefix" != xNONE; then
2037: ac_site_file1=$prefix/share/config.site
2038: ac_site_file2=$prefix/etc/config.site
2039: else
2040: ac_site_file1=$ac_default_prefix/share/config.site
2041: ac_site_file2=$ac_default_prefix/etc/config.site
2042: fi
2043: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2044: do
2045: test "x$ac_site_file" = xNONE && continue
1.1.1.2 ! misho 2046: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
! 2047: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1.1 misho 2048: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049: sed 's/^/| /' "$ac_site_file" >&5
1.1.1.2 ! misho 2050: . "$ac_site_file" \
! 2051: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2052: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2053: as_fn_error $? "failed to load site script $ac_site_file
! 2054: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2055: fi
2056: done
2057:
2058: if test -r "$cache_file"; then
1.1.1.2 ! misho 2059: # Some versions of bash will fail to source /dev/null (special files
! 2060: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
! 2061: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
! 2062: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1.1 misho 2063: $as_echo "$as_me: loading cache $cache_file" >&6;}
2064: case $cache_file in
2065: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066: *) . "./$cache_file";;
2067: esac
2068: fi
2069: else
1.1.1.2 ! misho 2070: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1.1 misho 2071: $as_echo "$as_me: creating cache $cache_file" >&6;}
2072: >$cache_file
2073: fi
2074:
2075: # Check that the precious variables saved in the cache have kept the same
2076: # value.
2077: ac_cache_corrupted=false
2078: for ac_var in $ac_precious_vars; do
2079: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080: eval ac_new_set=\$ac_env_${ac_var}_set
2081: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082: eval ac_new_val=\$ac_env_${ac_var}_value
2083: case $ac_old_set,$ac_new_set in
2084: set,)
1.1.1.2 ! misho 2085: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.1 misho 2086: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087: ac_cache_corrupted=: ;;
2088: ,set)
1.1.1.2 ! misho 2089: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1.1 misho 2090: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091: ac_cache_corrupted=: ;;
2092: ,);;
2093: *)
2094: if test "x$ac_old_val" != "x$ac_new_val"; then
2095: # differences in whitespace do not lead to failure.
2096: ac_old_val_w=`echo x $ac_old_val`
2097: ac_new_val_w=`echo x $ac_new_val`
2098: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.1.1.2 ! misho 2099: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1.1 misho 2100: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101: ac_cache_corrupted=:
2102: else
1.1.1.2 ! misho 2103: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1.1 misho 2104: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105: eval $ac_var=\$ac_old_val
2106: fi
1.1.1.2 ! misho 2107: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1.1 misho 2108: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1.1.1.2 ! misho 2109: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1.1 misho 2110: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2111: fi;;
2112: esac
2113: # Pass precious variables to config.status.
2114: if test "$ac_new_set" = set; then
2115: case $ac_new_val in
2116: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117: *) ac_arg=$ac_var=$ac_new_val ;;
2118: esac
2119: case " $ac_configure_args " in
2120: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.1.1.2 ! misho 2121: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.1 misho 2122: esac
2123: fi
2124: done
2125: if $ac_cache_corrupted; then
1.1.1.2 ! misho 2126: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2127: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 ! misho 2128: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1.1 misho 2129: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.1.1.2 ! misho 2130: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.1 misho 2131: fi
1.1.1.2 ! misho 2132: ## -------------------- ##
! 2133: ## Main body of script. ##
! 2134: ## -------------------- ##
1.1 misho 2135:
2136: ac_ext=c
2137: ac_cpp='$CPP $CPPFLAGS'
2138: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141:
2142:
2143: ac_aux_dir=
2144: for ac_dir in ../build-aux "$srcdir"/../build-aux; do
2145: if test -f "$ac_dir/install-sh"; then
2146: ac_aux_dir=$ac_dir
2147: ac_install_sh="$ac_aux_dir/install-sh -c"
2148: break
2149: elif test -f "$ac_dir/install.sh"; then
2150: ac_aux_dir=$ac_dir
2151: ac_install_sh="$ac_aux_dir/install.sh -c"
2152: break
2153: elif test -f "$ac_dir/shtool"; then
2154: ac_aux_dir=$ac_dir
2155: ac_install_sh="$ac_aux_dir/shtool install -c"
2156: break
2157: fi
2158: done
2159: if test -z "$ac_aux_dir"; then
1.1.1.2 ! misho 2160: as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
1.1 misho 2161: fi
2162:
2163: # These three variables are undocumented and unsupported,
2164: # and are intended to be withdrawn in a future Autoconf release.
2165: # They can cause serious problems if a builder's source tree is in a directory
2166: # whose full name contains unusual characters.
2167: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2168: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2169: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2170:
2171:
1.1.1.2 ! misho 2172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1.1 misho 2173: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2174: set x ${MAKE-make}
2175: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.1.1.2 ! misho 2176: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.1 misho 2177: $as_echo_n "(cached) " >&6
2178: else
2179: cat >conftest.make <<\_ACEOF
2180: SHELL = /bin/sh
2181: all:
2182: @echo '@@@%%%=$(MAKE)=@@@%%%'
2183: _ACEOF
1.1.1.2 ! misho 2184: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.1 misho 2185: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2186: *@@@%%%=?*=@@@%%%*)
2187: eval ac_cv_prog_make_${ac_make}_set=yes;;
2188: *)
2189: eval ac_cv_prog_make_${ac_make}_set=no;;
2190: esac
2191: rm -f conftest.make
2192: fi
2193: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.1.1.2 ! misho 2194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 2195: $as_echo "yes" >&6; }
2196: SET_MAKE=
2197: else
1.1.1.2 ! misho 2198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2199: $as_echo "no" >&6; }
2200: SET_MAKE="MAKE=${MAKE-make}"
2201: fi
2202:
2203:
2204:
2205:
2206:
2207: ac_ext=c
2208: ac_cpp='$CPP $CPPFLAGS'
2209: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212: if test -n "$ac_tool_prefix"; then
2213: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.2 ! misho 2215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2216: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 2217: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2218: $as_echo_n "(cached) " >&6
2219: else
2220: if test -n "$CC"; then
2221: ac_cv_prog_CC="$CC" # Let the user override the test.
2222: else
2223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224: for as_dir in $PATH
2225: do
2226: IFS=$as_save_IFS
2227: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 2228: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 2229: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1.1.2 ! misho 2231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2232: break 2
2233: fi
2234: done
1.1.1.2 ! misho 2235: done
1.1 misho 2236: IFS=$as_save_IFS
2237:
2238: fi
2239: fi
2240: CC=$ac_cv_prog_CC
2241: if test -n "$CC"; then
1.1.1.2 ! misho 2242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.1 misho 2243: $as_echo "$CC" >&6; }
2244: else
1.1.1.2 ! misho 2245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2246: $as_echo "no" >&6; }
2247: fi
2248:
2249:
2250: fi
2251: if test -z "$ac_cv_prog_CC"; then
2252: ac_ct_CC=$CC
2253: # Extract the first word of "gcc", so it can be a program name with args.
2254: set dummy gcc; ac_word=$2
1.1.1.2 ! misho 2255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2256: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 2257: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 2258: $as_echo_n "(cached) " >&6
2259: else
2260: if test -n "$ac_ct_CC"; then
2261: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262: else
2263: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264: for as_dir in $PATH
2265: do
2266: IFS=$as_save_IFS
2267: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 2268: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 2269: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270: ac_cv_prog_ac_ct_CC="gcc"
1.1.1.2 ! misho 2271: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2272: break 2
2273: fi
2274: done
1.1.1.2 ! misho 2275: done
1.1 misho 2276: IFS=$as_save_IFS
2277:
2278: fi
2279: fi
2280: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281: if test -n "$ac_ct_CC"; then
1.1.1.2 ! misho 2282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.1 misho 2283: $as_echo "$ac_ct_CC" >&6; }
2284: else
1.1.1.2 ! misho 2285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2286: $as_echo "no" >&6; }
2287: fi
2288:
2289: if test "x$ac_ct_CC" = x; then
2290: CC=""
2291: else
2292: case $cross_compiling:$ac_tool_warned in
2293: yes:)
1.1.1.2 ! misho 2294: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 2295: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2296: ac_tool_warned=yes ;;
2297: esac
2298: CC=$ac_ct_CC
2299: fi
2300: else
2301: CC="$ac_cv_prog_CC"
2302: fi
2303:
2304: if test -z "$CC"; then
2305: if test -n "$ac_tool_prefix"; then
2306: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2307: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.2 ! misho 2308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2309: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 2310: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2311: $as_echo_n "(cached) " >&6
2312: else
2313: if test -n "$CC"; then
2314: ac_cv_prog_CC="$CC" # Let the user override the test.
2315: else
2316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317: for as_dir in $PATH
2318: do
2319: IFS=$as_save_IFS
2320: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 2321: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 2322: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1.1.2 ! misho 2324: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2325: break 2
2326: fi
2327: done
1.1.1.2 ! misho 2328: done
1.1 misho 2329: IFS=$as_save_IFS
2330:
2331: fi
2332: fi
2333: CC=$ac_cv_prog_CC
2334: if test -n "$CC"; then
1.1.1.2 ! misho 2335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.1 misho 2336: $as_echo "$CC" >&6; }
2337: else
1.1.1.2 ! misho 2338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2339: $as_echo "no" >&6; }
2340: fi
2341:
2342:
2343: fi
2344: fi
2345: if test -z "$CC"; then
2346: # Extract the first word of "cc", so it can be a program name with args.
2347: set dummy cc; ac_word=$2
1.1.1.2 ! misho 2348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2349: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 2350: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2351: $as_echo_n "(cached) " >&6
2352: else
2353: if test -n "$CC"; then
2354: ac_cv_prog_CC="$CC" # Let the user override the test.
2355: else
2356: ac_prog_rejected=no
2357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358: for as_dir in $PATH
2359: do
2360: IFS=$as_save_IFS
2361: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 2362: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 2363: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2365: ac_prog_rejected=yes
2366: continue
2367: fi
2368: ac_cv_prog_CC="cc"
1.1.1.2 ! misho 2369: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2370: break 2
2371: fi
2372: done
1.1.1.2 ! misho 2373: done
1.1 misho 2374: IFS=$as_save_IFS
2375:
2376: if test $ac_prog_rejected = yes; then
2377: # We found a bogon in the path, so make sure we never use it.
2378: set dummy $ac_cv_prog_CC
2379: shift
2380: if test $# != 0; then
2381: # We chose a different compiler from the bogus one.
2382: # However, it has the same basename, so the bogon will be chosen
2383: # first if we set CC to just the basename; use the full file name.
2384: shift
2385: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2386: fi
2387: fi
2388: fi
2389: fi
2390: CC=$ac_cv_prog_CC
2391: if test -n "$CC"; then
1.1.1.2 ! misho 2392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.1 misho 2393: $as_echo "$CC" >&6; }
2394: else
1.1.1.2 ! misho 2395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2396: $as_echo "no" >&6; }
2397: fi
2398:
2399:
2400: fi
2401: if test -z "$CC"; then
2402: if test -n "$ac_tool_prefix"; then
2403: for ac_prog in cl.exe
2404: do
2405: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2406: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.2 ! misho 2407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2408: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 2409: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2410: $as_echo_n "(cached) " >&6
2411: else
2412: if test -n "$CC"; then
2413: ac_cv_prog_CC="$CC" # Let the user override the test.
2414: else
2415: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416: for as_dir in $PATH
2417: do
2418: IFS=$as_save_IFS
2419: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 2420: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 2421: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.1.2 ! misho 2423: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2424: break 2
2425: fi
2426: done
1.1.1.2 ! misho 2427: done
1.1 misho 2428: IFS=$as_save_IFS
2429:
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: test -n "$CC" && break
2443: done
2444: fi
2445: if test -z "$CC"; then
2446: ac_ct_CC=$CC
2447: for ac_prog in cl.exe
2448: do
2449: # Extract the first word of "$ac_prog", so it can be a program name with args.
2450: set dummy $ac_prog; ac_word=$2
1.1.1.2 ! misho 2451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 2452: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 2453: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 2454: $as_echo_n "(cached) " >&6
2455: else
2456: if test -n "$ac_ct_CC"; then
2457: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458: else
2459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460: for as_dir in $PATH
2461: do
2462: IFS=$as_save_IFS
2463: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 2464: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 2465: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466: ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.1.2 ! misho 2467: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 2468: break 2
2469: fi
2470: done
1.1.1.2 ! misho 2471: done
1.1 misho 2472: IFS=$as_save_IFS
2473:
2474: fi
2475: fi
2476: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477: if test -n "$ac_ct_CC"; then
1.1.1.2 ! misho 2478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.1 misho 2479: $as_echo "$ac_ct_CC" >&6; }
2480: else
1.1.1.2 ! misho 2481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 2482: $as_echo "no" >&6; }
2483: fi
2484:
2485:
2486: test -n "$ac_ct_CC" && break
2487: done
2488:
2489: if test "x$ac_ct_CC" = x; then
2490: CC=""
2491: else
2492: case $cross_compiling:$ac_tool_warned in
2493: yes:)
1.1.1.2 ! misho 2494: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 2495: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496: ac_tool_warned=yes ;;
2497: esac
2498: CC=$ac_ct_CC
2499: fi
2500: fi
2501:
2502: fi
2503:
2504:
1.1.1.2 ! misho 2505: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2506: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 ! misho 2507: as_fn_error $? "no acceptable C compiler found in \$PATH
! 2508: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2509:
2510: # Provide some information about the compiler.
1.1.1.2 ! misho 2511: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1 misho 2512: set X $ac_compile
2513: ac_compiler=$2
1.1.1.2 ! misho 2514: for ac_option in --version -v -V -qversion; do
! 2515: { { ac_try="$ac_compiler $ac_option >&5"
1.1 misho 2516: case "(($ac_try" in
2517: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518: *) ac_try_echo=$ac_try;;
2519: esac
1.1.1.2 ! misho 2520: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2521: $as_echo "$ac_try_echo"; } >&5
! 2522: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
! 2523: ac_status=$?
! 2524: if test -s conftest.err; then
! 2525: sed '10a\
! 2526: ... rest of stderr output deleted ...
! 2527: 10q' conftest.err >conftest.er1
! 2528: cat conftest.er1 >&5
! 2529: fi
! 2530: rm -f conftest.er1 conftest.err
! 2531: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2532: test $ac_status = 0; }
! 2533: done
1.1 misho 2534:
1.1.1.2 ! misho 2535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2536: /* end confdefs.h. */
2537:
2538: int
2539: main ()
2540: {
2541:
2542: ;
2543: return 0;
2544: }
2545: _ACEOF
2546: ac_clean_files_save=$ac_clean_files
2547: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2548: # Try to create an executable without -o first, disregard a.out.
2549: # It will help us diagnose broken compilers, and finding out an intuition
2550: # of exeext.
1.1.1.2 ! misho 2551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
! 2552: $as_echo_n "checking whether the C compiler works... " >&6; }
1.1 misho 2553: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2554:
2555: # The possible output files:
2556: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2557:
2558: ac_rmfiles=
2559: for ac_file in $ac_files
2560: do
2561: case $ac_file in
2562: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2563: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2564: esac
2565: done
2566: rm -f $ac_rmfiles
2567:
1.1.1.2 ! misho 2568: if { { ac_try="$ac_link_default"
1.1 misho 2569: case "(($ac_try" in
2570: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571: *) ac_try_echo=$ac_try;;
2572: esac
1.1.1.2 ! misho 2573: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2574: $as_echo "$ac_try_echo"; } >&5
1.1 misho 2575: (eval "$ac_link_default") 2>&5
2576: ac_status=$?
1.1.1.2 ! misho 2577: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2578: test $ac_status = 0; }; then :
1.1 misho 2579: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2580: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2581: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2582: # so that the user can short-circuit this test for compilers unknown to
2583: # Autoconf.
2584: for ac_file in $ac_files ''
2585: do
2586: test -f "$ac_file" || continue
2587: case $ac_file in
2588: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2589: ;;
2590: [ab].out )
2591: # We found the default executable, but exeext='' is most
2592: # certainly right.
2593: break;;
2594: *.* )
1.1.1.2 ! misho 2595: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.1 misho 2596: then :; else
2597: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2598: fi
2599: # We set ac_cv_exeext here because the later test for it is not
2600: # safe: cross compilers may not add the suffix if given an `-o'
2601: # argument, so we may need to know it at that point already.
2602: # Even if this section looks crufty: it has the advantage of
2603: # actually working.
2604: break;;
2605: * )
2606: break;;
2607: esac
2608: done
2609: test "$ac_cv_exeext" = no && ac_cv_exeext=
2610:
2611: else
2612: ac_file=''
2613: fi
1.1.1.2 ! misho 2614: if test -z "$ac_file"; then :
! 2615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2616: $as_echo "no" >&6; }
! 2617: $as_echo "$as_me: failed program was:" >&5
1.1 misho 2618: sed 's/^/| /' conftest.$ac_ext >&5
2619:
1.1.1.2 ! misho 2620: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2621: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 ! misho 2622: as_fn_error 77 "C compiler cannot create executables
! 2623: See \`config.log' for more details" "$LINENO" 5; }
! 2624: else
! 2625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2626: $as_echo "yes" >&6; }
1.1 misho 2627: fi
1.1.1.2 ! misho 2628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
! 2629: $as_echo_n "checking for C compiler default output file name... " >&6; }
! 2630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 2631: $as_echo "$ac_file" >&6; }
1.1 misho 2632: ac_exeext=$ac_cv_exeext
2633:
2634: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2635: ac_clean_files=$ac_clean_files_save
1.1.1.2 ! misho 2636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
1.1 misho 2637: $as_echo_n "checking for suffix of executables... " >&6; }
1.1.1.2 ! misho 2638: if { { ac_try="$ac_link"
1.1 misho 2639: case "(($ac_try" in
2640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641: *) ac_try_echo=$ac_try;;
2642: esac
1.1.1.2 ! misho 2643: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2644: $as_echo "$ac_try_echo"; } >&5
1.1 misho 2645: (eval "$ac_link") 2>&5
2646: ac_status=$?
1.1.1.2 ! misho 2647: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2648: test $ac_status = 0; }; then :
1.1 misho 2649: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651: # work properly (i.e., refer to `conftest.exe'), while it won't with
2652: # `rm'.
2653: for ac_file in conftest.exe conftest conftest.*; do
2654: test -f "$ac_file" || continue
2655: case $ac_file in
2656: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2657: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658: break;;
2659: * ) break;;
2660: esac
2661: done
2662: else
1.1.1.2 ! misho 2663: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2664: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 ! misho 2665: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
! 2666: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2667: fi
1.1.1.2 ! misho 2668: rm -f conftest conftest$ac_cv_exeext
! 2669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1.1 misho 2670: $as_echo "$ac_cv_exeext" >&6; }
2671:
2672: rm -f conftest.$ac_ext
2673: EXEEXT=$ac_cv_exeext
2674: ac_exeext=$EXEEXT
1.1.1.2 ! misho 2675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2676: /* end confdefs.h. */
! 2677: #include <stdio.h>
! 2678: int
! 2679: main ()
! 2680: {
! 2681: FILE *f = fopen ("conftest.out", "w");
! 2682: return ferror (f) || fclose (f) != 0;
! 2683:
! 2684: ;
! 2685: return 0;
! 2686: }
! 2687: _ACEOF
! 2688: ac_clean_files="$ac_clean_files conftest.out"
! 2689: # Check that the compiler produces executables we can run. If not, either
! 2690: # the compiler is broken, or we cross compile.
! 2691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 2692: $as_echo_n "checking whether we are cross compiling... " >&6; }
! 2693: if test "$cross_compiling" != yes; then
! 2694: { { ac_try="$ac_link"
! 2695: case "(($ac_try" in
! 2696: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2697: *) ac_try_echo=$ac_try;;
! 2698: esac
! 2699: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2700: $as_echo "$ac_try_echo"; } >&5
! 2701: (eval "$ac_link") 2>&5
! 2702: ac_status=$?
! 2703: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2704: test $ac_status = 0; }
! 2705: if { ac_try='./conftest$ac_cv_exeext'
! 2706: { { case "(($ac_try" in
! 2707: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2708: *) ac_try_echo=$ac_try;;
! 2709: esac
! 2710: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2711: $as_echo "$ac_try_echo"; } >&5
! 2712: (eval "$ac_try") 2>&5
! 2713: ac_status=$?
! 2714: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2715: test $ac_status = 0; }; }; then
! 2716: cross_compiling=no
! 2717: else
! 2718: if test "$cross_compiling" = maybe; then
! 2719: cross_compiling=yes
! 2720: else
! 2721: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2722: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2723: as_fn_error $? "cannot run C compiled programs.
! 2724: If you meant to cross compile, use \`--host'.
! 2725: See \`config.log' for more details" "$LINENO" 5; }
! 2726: fi
! 2727: fi
! 2728: fi
! 2729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 2730: $as_echo "$cross_compiling" >&6; }
! 2731:
! 2732: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
! 2733: ac_clean_files=$ac_clean_files_save
! 2734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
1.1 misho 2735: $as_echo_n "checking for suffix of object files... " >&6; }
1.1.1.2 ! misho 2736: if ${ac_cv_objext+:} false; then :
1.1 misho 2737: $as_echo_n "(cached) " >&6
2738: else
1.1.1.2 ! misho 2739: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2740: /* end confdefs.h. */
2741:
2742: int
2743: main ()
2744: {
2745:
2746: ;
2747: return 0;
2748: }
2749: _ACEOF
2750: rm -f conftest.o conftest.obj
1.1.1.2 ! misho 2751: if { { ac_try="$ac_compile"
1.1 misho 2752: case "(($ac_try" in
2753: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754: *) ac_try_echo=$ac_try;;
2755: esac
1.1.1.2 ! misho 2756: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2757: $as_echo "$ac_try_echo"; } >&5
1.1 misho 2758: (eval "$ac_compile") 2>&5
2759: ac_status=$?
1.1.1.2 ! misho 2760: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2761: test $ac_status = 0; }; then :
1.1 misho 2762: for ac_file in conftest.o conftest.obj conftest.*; do
2763: test -f "$ac_file" || continue;
2764: case $ac_file in
2765: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2766: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767: break;;
2768: esac
2769: done
2770: else
2771: $as_echo "$as_me: failed program was:" >&5
2772: sed 's/^/| /' conftest.$ac_ext >&5
2773:
1.1.1.2 ! misho 2774: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 2775: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 ! misho 2776: as_fn_error $? "cannot compute suffix of object files: cannot compile
! 2777: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2778: fi
2779: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2780: fi
1.1.1.2 ! misho 2781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
1.1 misho 2782: $as_echo "$ac_cv_objext" >&6; }
2783: OBJEXT=$ac_cv_objext
2784: ac_objext=$OBJEXT
1.1.1.2 ! misho 2785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
1.1 misho 2786: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.1.1.2 ! misho 2787: if ${ac_cv_c_compiler_gnu+:} false; then :
1.1 misho 2788: $as_echo_n "(cached) " >&6
2789: else
1.1.1.2 ! misho 2790: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2791: /* end confdefs.h. */
2792:
2793: int
2794: main ()
2795: {
2796: #ifndef __GNUC__
2797: choke me
2798: #endif
2799:
2800: ;
2801: return 0;
2802: }
2803: _ACEOF
1.1.1.2 ! misho 2804: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2805: ac_compiler_gnu=yes
2806: else
1.1.1.2 ! misho 2807: ac_compiler_gnu=no
1.1 misho 2808: fi
2809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2811:
2812: fi
1.1.1.2 ! misho 2813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
1.1 misho 2814: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2815: if test $ac_compiler_gnu = yes; then
2816: GCC=yes
2817: else
2818: GCC=
2819: fi
2820: ac_test_CFLAGS=${CFLAGS+set}
2821: ac_save_CFLAGS=$CFLAGS
1.1.1.2 ! misho 2822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
1.1 misho 2823: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.1.1.2 ! misho 2824: if ${ac_cv_prog_cc_g+:} false; then :
1.1 misho 2825: $as_echo_n "(cached) " >&6
2826: else
2827: ac_save_c_werror_flag=$ac_c_werror_flag
2828: ac_c_werror_flag=yes
2829: ac_cv_prog_cc_g=no
2830: CFLAGS="-g"
1.1.1.2 ! misho 2831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2832: /* end confdefs.h. */
2833:
2834: int
2835: main ()
2836: {
2837:
2838: ;
2839: return 0;
2840: }
2841: _ACEOF
1.1.1.2 ! misho 2842: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2843: ac_cv_prog_cc_g=yes
2844: else
1.1.1.2 ! misho 2845: CFLAGS=""
! 2846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2847: /* end confdefs.h. */
2848:
2849: int
2850: main ()
2851: {
2852:
2853: ;
2854: return 0;
2855: }
2856: _ACEOF
1.1.1.2 ! misho 2857: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2858:
1.1.1.2 ! misho 2859: else
! 2860: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 misho 2861: CFLAGS="-g"
1.1.1.2 ! misho 2862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2863: /* end confdefs.h. */
2864:
2865: int
2866: main ()
2867: {
2868:
2869: ;
2870: return 0;
2871: }
2872: _ACEOF
1.1.1.2 ! misho 2873: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2874: ac_cv_prog_cc_g=yes
2875: fi
2876: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877: fi
2878: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879: fi
2880: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881: ac_c_werror_flag=$ac_save_c_werror_flag
2882: fi
1.1.1.2 ! misho 2883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
1.1 misho 2884: $as_echo "$ac_cv_prog_cc_g" >&6; }
2885: if test "$ac_test_CFLAGS" = set; then
2886: CFLAGS=$ac_save_CFLAGS
2887: elif test $ac_cv_prog_cc_g = yes; then
2888: if test "$GCC" = yes; then
2889: CFLAGS="-g -O2"
2890: else
2891: CFLAGS="-g"
2892: fi
2893: else
2894: if test "$GCC" = yes; then
2895: CFLAGS="-O2"
2896: else
2897: CFLAGS=
2898: fi
2899: fi
1.1.1.2 ! misho 2900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
1.1 misho 2901: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.1.1.2 ! misho 2902: if ${ac_cv_prog_cc_c89+:} false; then :
1.1 misho 2903: $as_echo_n "(cached) " >&6
2904: else
2905: ac_cv_prog_cc_c89=no
2906: ac_save_CC=$CC
1.1.1.2 ! misho 2907: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 2908: /* end confdefs.h. */
2909: #include <stdarg.h>
2910: #include <stdio.h>
2911: #include <sys/types.h>
2912: #include <sys/stat.h>
2913: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2914: struct buf { int x; };
2915: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916: static char *e (p, i)
2917: char **p;
2918: int i;
2919: {
2920: return p[i];
2921: }
2922: static char *f (char * (*g) (char **, int), char **p, ...)
2923: {
2924: char *s;
2925: va_list v;
2926: va_start (v,p);
2927: s = g (p, va_arg (v,int));
2928: va_end (v);
2929: return s;
2930: }
2931:
2932: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2933: function prototypes and stuff, but not '\xHH' hex character constants.
2934: These don't provoke an error unfortunately, instead are silently treated
2935: as 'x'. The following induces an error, until -std is added to get
2936: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2937: array size at least. It's necessary to write '\x00'==0 to get something
2938: that's true only with -std. */
2939: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2940:
2941: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2942: inside strings and character constants. */
2943: #define FOO(x) 'x'
2944: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2945:
2946: int test (int i, double x);
2947: struct s1 {int (*f) (int a);};
2948: struct s2 {int (*f) (double a);};
2949: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2950: int argc;
2951: char **argv;
2952: int
2953: main ()
2954: {
2955: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2956: ;
2957: return 0;
2958: }
2959: _ACEOF
2960: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2961: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2962: do
2963: CC="$ac_save_CC $ac_arg"
1.1.1.2 ! misho 2964: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 2965: ac_cv_prog_cc_c89=$ac_arg
2966: fi
2967: rm -f core conftest.err conftest.$ac_objext
2968: test "x$ac_cv_prog_cc_c89" != "xno" && break
2969: done
2970: rm -f conftest.$ac_ext
2971: CC=$ac_save_CC
2972:
2973: fi
2974: # AC_CACHE_VAL
2975: case "x$ac_cv_prog_cc_c89" in
2976: x)
1.1.1.2 ! misho 2977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
1.1 misho 2978: $as_echo "none needed" >&6; } ;;
2979: xno)
1.1.1.2 ! misho 2980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
1.1 misho 2981: $as_echo "unsupported" >&6; } ;;
2982: *)
2983: CC="$CC $ac_cv_prog_cc_c89"
1.1.1.2 ! misho 2984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
1.1 misho 2985: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2986: esac
1.1.1.2 ! misho 2987: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.1 misho 2988:
1.1.1.2 ! misho 2989: fi
1.1 misho 2990:
2991: ac_ext=c
2992: ac_cpp='$CPP $CPPFLAGS'
2993: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996:
2997: ac_ext=c
2998: ac_cpp='$CPP $CPPFLAGS'
2999: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.2 ! misho 3002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
1.1 misho 3003: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3004: # On Suns, sometimes $CPP names a directory.
3005: if test -n "$CPP" && test -d "$CPP"; then
3006: CPP=
3007: fi
3008: if test -z "$CPP"; then
1.1.1.2 ! misho 3009: if ${ac_cv_prog_CPP+:} false; then :
1.1 misho 3010: $as_echo_n "(cached) " >&6
3011: else
3012: # Double quotes because CPP needs to be expanded
3013: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3014: do
3015: ac_preproc_ok=false
3016: for ac_c_preproc_warn_flag in '' yes
3017: do
3018: # Use a header file that comes with gcc, so configuring glibc
3019: # with a fresh cross-compiler works.
3020: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3021: # <limits.h> exists even on freestanding compilers.
3022: # On the NeXT, cc -E runs the code through the compiler's parser,
3023: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.2 ! misho 3024: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3025: /* end confdefs.h. */
3026: #ifdef __STDC__
3027: # include <limits.h>
3028: #else
3029: # include <assert.h>
3030: #endif
3031: Syntax error
3032: _ACEOF
1.1.1.2 ! misho 3033: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3034:
1.1.1.2 ! misho 3035: else
1.1 misho 3036: # Broken: fails on valid input.
3037: continue
3038: fi
1.1.1.2 ! misho 3039: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3040:
3041: # OK, works on sane cases. Now check whether nonexistent headers
3042: # can be detected and how.
1.1.1.2 ! misho 3043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3044: /* end confdefs.h. */
3045: #include <ac_nonexistent.h>
3046: _ACEOF
1.1.1.2 ! misho 3047: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3048: # Broken: success on invalid input.
3049: continue
3050: else
3051: # Passes both tests.
3052: ac_preproc_ok=:
3053: break
3054: fi
1.1.1.2 ! misho 3055: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3056:
3057: done
3058: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.2 ! misho 3059: rm -f conftest.i conftest.err conftest.$ac_ext
! 3060: if $ac_preproc_ok; then :
1.1 misho 3061: break
3062: fi
3063:
3064: done
3065: ac_cv_prog_CPP=$CPP
3066:
3067: fi
3068: CPP=$ac_cv_prog_CPP
3069: else
3070: ac_cv_prog_CPP=$CPP
3071: fi
1.1.1.2 ! misho 3072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
1.1 misho 3073: $as_echo "$CPP" >&6; }
3074: ac_preproc_ok=false
3075: for ac_c_preproc_warn_flag in '' yes
3076: do
3077: # Use a header file that comes with gcc, so configuring glibc
3078: # with a fresh cross-compiler works.
3079: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080: # <limits.h> exists even on freestanding compilers.
3081: # On the NeXT, cc -E runs the code through the compiler's parser,
3082: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.2 ! misho 3083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3084: /* end confdefs.h. */
3085: #ifdef __STDC__
3086: # include <limits.h>
3087: #else
3088: # include <assert.h>
3089: #endif
3090: Syntax error
3091: _ACEOF
1.1.1.2 ! misho 3092: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3093:
1.1.1.2 ! misho 3094: else
1.1 misho 3095: # Broken: fails on valid input.
3096: continue
3097: fi
1.1.1.2 ! misho 3098: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3099:
3100: # OK, works on sane cases. Now check whether nonexistent headers
3101: # can be detected and how.
1.1.1.2 ! misho 3102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3103: /* end confdefs.h. */
3104: #include <ac_nonexistent.h>
3105: _ACEOF
1.1.1.2 ! misho 3106: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 misho 3107: # Broken: success on invalid input.
3108: continue
3109: else
3110: # Passes both tests.
3111: ac_preproc_ok=:
3112: break
3113: fi
1.1.1.2 ! misho 3114: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3115:
3116: done
3117: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1.1.2 ! misho 3118: rm -f conftest.i conftest.err conftest.$ac_ext
! 3119: if $ac_preproc_ok; then :
! 3120:
1.1 misho 3121: else
1.1.1.2 ! misho 3122: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1.1 misho 3123: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.2 ! misho 3124: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 3125: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3126: fi
3127:
3128: ac_ext=c
3129: ac_cpp='$CPP $CPPFLAGS'
3130: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133:
3134: # Find a good install program. We prefer a C program (faster),
3135: # so one script is as good as another. But avoid the broken or
3136: # incompatible versions:
3137: # SysV /etc/install, /usr/sbin/install
3138: # SunOS /usr/etc/install
3139: # IRIX /sbin/install
3140: # AIX /bin/install
3141: # AmigaOS /C/install, which installs bootblocks on floppy discs
3142: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3143: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3144: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3145: # OS/2's system install, which has a completely different semantic
3146: # ./install, which can be erroneously created by make from ./install.sh.
3147: # Reject install programs that cannot install multiple files.
1.1.1.2 ! misho 3148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1.1 misho 3149: $as_echo_n "checking for a BSD-compatible install... " >&6; }
3150: if test -z "$INSTALL"; then
1.1.1.2 ! misho 3151: if ${ac_cv_path_install+:} false; then :
1.1 misho 3152: $as_echo_n "(cached) " >&6
3153: else
3154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155: for as_dir in $PATH
3156: do
3157: IFS=$as_save_IFS
3158: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 3159: # Account for people who put trailing slashes in PATH elements.
! 3160: case $as_dir/ in #((
! 3161: ./ | .// | /[cC]/* | \
1.1 misho 3162: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.2 ! misho 3163: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.1 misho 3164: /usr/ucb/* ) ;;
3165: *)
3166: # OSF1 and SCO ODT 3.0 have their own names for install.
3167: # Don't use installbsd from OSF since it installs stuff as root
3168: # by default.
3169: for ac_prog in ginstall scoinst install; do
3170: for ac_exec_ext in '' $ac_executable_extensions; do
3171: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3172: if test $ac_prog = install &&
3173: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3174: # AIX install. It has an incompatible calling convention.
3175: :
3176: elif test $ac_prog = install &&
3177: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3178: # program-specific install script used by HP pwplus--don't use.
3179: :
3180: else
3181: rm -rf conftest.one conftest.two conftest.dir
3182: echo one > conftest.one
3183: echo two > conftest.two
3184: mkdir conftest.dir
3185: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3186: test -s conftest.one && test -s conftest.two &&
3187: test -s conftest.dir/conftest.one &&
3188: test -s conftest.dir/conftest.two
3189: then
3190: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3191: break 3
3192: fi
3193: fi
3194: fi
3195: done
3196: done
3197: ;;
3198: esac
3199:
1.1.1.2 ! misho 3200: done
1.1 misho 3201: IFS=$as_save_IFS
3202:
3203: rm -rf conftest.one conftest.two conftest.dir
3204:
3205: fi
3206: if test "${ac_cv_path_install+set}" = set; then
3207: INSTALL=$ac_cv_path_install
3208: else
3209: # As a last resort, use the slow shell script. Don't cache a
3210: # value for INSTALL within a source directory, because that will
3211: # break other packages using the cache if that directory is
3212: # removed, or if the value is a relative name.
3213: INSTALL=$ac_install_sh
3214: fi
3215: fi
1.1.1.2 ! misho 3216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1.1 misho 3217: $as_echo "$INSTALL" >&6; }
3218:
3219: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3220: # It thinks the first close brace ends the variable substitution.
3221: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3222:
3223: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3224:
3225: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3226:
3227:
3228:
3229: # Make sure we can run config.sub.
3230: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.1.1.2 ! misho 3231: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.1 misho 3232:
1.1.1.2 ! misho 3233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1.1 misho 3234: $as_echo_n "checking build system type... " >&6; }
1.1.1.2 ! misho 3235: if ${ac_cv_build+:} false; then :
1.1 misho 3236: $as_echo_n "(cached) " >&6
3237: else
3238: ac_build_alias=$build_alias
3239: test "x$ac_build_alias" = x &&
3240: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3241: test "x$ac_build_alias" = x &&
1.1.1.2 ! misho 3242: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.1 misho 3243: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.1.1.2 ! misho 3244: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.1 misho 3245:
3246: fi
1.1.1.2 ! misho 3247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1.1 misho 3248: $as_echo "$ac_cv_build" >&6; }
3249: case $ac_cv_build in
3250: *-*-*) ;;
1.1.1.2 ! misho 3251: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.1 misho 3252: esac
3253: build=$ac_cv_build
3254: ac_save_IFS=$IFS; IFS='-'
3255: set x $ac_cv_build
3256: shift
3257: build_cpu=$1
3258: build_vendor=$2
3259: shift; shift
3260: # Remember, the first character of IFS is used to create $*,
3261: # except with old shells:
3262: build_os=$*
3263: IFS=$ac_save_IFS
3264: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3265:
3266:
1.1.1.2 ! misho 3267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1.1 misho 3268: $as_echo_n "checking host system type... " >&6; }
1.1.1.2 ! misho 3269: if ${ac_cv_host+:} false; then :
1.1 misho 3270: $as_echo_n "(cached) " >&6
3271: else
3272: if test "x$host_alias" = x; then
3273: ac_cv_host=$ac_cv_build
3274: else
3275: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.1.1.2 ! misho 3276: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.1 misho 3277: fi
3278:
3279: fi
1.1.1.2 ! misho 3280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1.1 misho 3281: $as_echo "$ac_cv_host" >&6; }
3282: case $ac_cv_host in
3283: *-*-*) ;;
1.1.1.2 ! misho 3284: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.1 misho 3285: esac
3286: host=$ac_cv_host
3287: ac_save_IFS=$IFS; IFS='-'
3288: set x $ac_cv_host
3289: shift
3290: host_cpu=$1
3291: host_vendor=$2
3292: shift; shift
3293: # Remember, the first character of IFS is used to create $*,
3294: # except with old shells:
3295: host_os=$*
3296: IFS=$ac_save_IFS
3297: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3298:
3299:
3300:
3301:
3302:
1.1.1.2 ! misho 3303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
1.1 misho 3304: $as_echo_n "checking whether to activate relocatable installation... " >&6; }
3305: # Check whether --enable-relocatable was given.
1.1.1.2 ! misho 3306: if test "${enable_relocatable+set}" = set; then :
1.1 misho 3307: enableval=$enable_relocatable; if test "$enableval" != no; then
3308: RELOCATABLE=yes
3309: else
3310: RELOCATABLE=no
3311: fi
3312:
3313: else
3314: RELOCATABLE=no
3315: fi
3316:
3317:
1.1.1.2 ! misho 3318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
1.1 misho 3319: $as_echo "$RELOCATABLE" >&6; }
3320:
3321:
3322:
3323: if test "X$prefix" = "XNONE"; then
3324: reloc_final_prefix="$ac_default_prefix"
3325: else
3326: reloc_final_prefix="$prefix"
3327: fi
3328:
3329: cat >>confdefs.h <<_ACEOF
3330: #define INSTALLPREFIX "${reloc_final_prefix}"
3331: _ACEOF
3332:
3333: if test $RELOCATABLE = yes; then
3334:
1.1.1.2 ! misho 3335: $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
1.1 misho 3336:
3337: fi
3338:
3339:
3340:
3341: if test $RELOCATABLE = yes; then
3342: case " $LIBOBJS " in
3343: *" relocatable.$ac_objext "* ) ;;
3344: *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
3345: ;;
3346: esac
3347:
3348: fi
3349:
3350:
3351:
1.1.1.2 ! misho 3352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
1.1 misho 3353: $as_echo_n "checking whether ln -s works... " >&6; }
3354: LN_S=$as_ln_s
3355: if test "$LN_S" = "ln -s"; then
1.1.1.2 ! misho 3356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 3357: $as_echo "yes" >&6; }
3358: else
1.1.1.2 ! misho 3359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
1.1 misho 3360: $as_echo "no, using $LN_S" >&6; }
3361: fi
3362:
3363:
3364:
3365:
3366:
1.1.1.2 ! misho 3367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
1.1 misho 3368: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.1.1.2 ! misho 3369: if ${ac_cv_path_GREP+:} false; then :
1.1 misho 3370: $as_echo_n "(cached) " >&6
3371: else
3372: if test -z "$GREP"; then
3373: ac_path_GREP_found=false
3374: # Loop through the user's path and test for each of PROGNAME-LIST
3375: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3377: do
3378: IFS=$as_save_IFS
3379: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 3380: for ac_prog in grep ggrep; do
1.1 misho 3381: for ac_exec_ext in '' $ac_executable_extensions; do
3382: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3383: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3384: # Check for GNU ac_path_GREP and select it if it is found.
3385: # Check for GNU $ac_path_GREP
3386: case `"$ac_path_GREP" --version 2>&1` in
3387: *GNU*)
3388: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3389: *)
3390: ac_count=0
3391: $as_echo_n 0123456789 >"conftest.in"
3392: while :
3393: do
3394: cat "conftest.in" "conftest.in" >"conftest.tmp"
3395: mv "conftest.tmp" "conftest.in"
3396: cp "conftest.in" "conftest.nl"
3397: $as_echo 'GREP' >> "conftest.nl"
3398: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 ! misho 3400: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3401: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3402: # Best one so far, save it but keep looking for a better one
3403: ac_cv_path_GREP="$ac_path_GREP"
3404: ac_path_GREP_max=$ac_count
3405: fi
3406: # 10*(2^10) chars as input seems more than enough
3407: test $ac_count -gt 10 && break
3408: done
3409: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410: esac
3411:
3412: $ac_path_GREP_found && break 3
3413: done
3414: done
1.1.1.2 ! misho 3415: done
1.1 misho 3416: IFS=$as_save_IFS
3417: if test -z "$ac_cv_path_GREP"; then
1.1.1.2 ! misho 3418: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3419: fi
3420: else
3421: ac_cv_path_GREP=$GREP
3422: fi
3423:
3424: fi
1.1.1.2 ! misho 3425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
1.1 misho 3426: $as_echo "$ac_cv_path_GREP" >&6; }
3427: GREP="$ac_cv_path_GREP"
3428:
3429:
1.1.1.2 ! misho 3430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
1.1 misho 3431: $as_echo_n "checking for egrep... " >&6; }
1.1.1.2 ! misho 3432: if ${ac_cv_path_EGREP+:} false; then :
1.1 misho 3433: $as_echo_n "(cached) " >&6
3434: else
3435: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3436: then ac_cv_path_EGREP="$GREP -E"
3437: else
3438: if test -z "$EGREP"; then
3439: ac_path_EGREP_found=false
3440: # Loop through the user's path and test for each of PROGNAME-LIST
3441: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3443: do
3444: IFS=$as_save_IFS
3445: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 3446: for ac_prog in egrep; do
1.1 misho 3447: for ac_exec_ext in '' $ac_executable_extensions; do
3448: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3449: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3450: # Check for GNU ac_path_EGREP and select it if it is found.
3451: # Check for GNU $ac_path_EGREP
3452: case `"$ac_path_EGREP" --version 2>&1` in
3453: *GNU*)
3454: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3455: *)
3456: ac_count=0
3457: $as_echo_n 0123456789 >"conftest.in"
3458: while :
3459: do
3460: cat "conftest.in" "conftest.in" >"conftest.tmp"
3461: mv "conftest.tmp" "conftest.in"
3462: cp "conftest.in" "conftest.nl"
3463: $as_echo 'EGREP' >> "conftest.nl"
3464: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 ! misho 3466: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3467: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3468: # Best one so far, save it but keep looking for a better one
3469: ac_cv_path_EGREP="$ac_path_EGREP"
3470: ac_path_EGREP_max=$ac_count
3471: fi
3472: # 10*(2^10) chars as input seems more than enough
3473: test $ac_count -gt 10 && break
3474: done
3475: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476: esac
3477:
3478: $ac_path_EGREP_found && break 3
3479: done
3480: done
1.1.1.2 ! misho 3481: done
1.1 misho 3482: IFS=$as_save_IFS
3483: if test -z "$ac_cv_path_EGREP"; then
1.1.1.2 ! misho 3484: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3485: fi
3486: else
3487: ac_cv_path_EGREP=$EGREP
3488: fi
3489:
3490: fi
3491: fi
1.1.1.2 ! misho 3492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
1.1 misho 3493: $as_echo "$ac_cv_path_EGREP" >&6; }
3494: EGREP="$ac_cv_path_EGREP"
3495:
3496:
1.1.1.2 ! misho 3497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
1.1 misho 3498: $as_echo_n "checking for ANSI C header files... " >&6; }
1.1.1.2 ! misho 3499: if ${ac_cv_header_stdc+:} false; then :
1.1 misho 3500: $as_echo_n "(cached) " >&6
3501: else
1.1.1.2 ! misho 3502: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3503: /* end confdefs.h. */
3504: #include <stdlib.h>
3505: #include <stdarg.h>
3506: #include <string.h>
3507: #include <float.h>
3508:
3509: int
3510: main ()
3511: {
3512:
3513: ;
3514: return 0;
3515: }
3516: _ACEOF
1.1.1.2 ! misho 3517: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 3518: ac_cv_header_stdc=yes
3519: else
1.1.1.2 ! misho 3520: ac_cv_header_stdc=no
1.1 misho 3521: fi
3522: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523:
3524: if test $ac_cv_header_stdc = yes; then
3525: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.1.1.2 ! misho 3526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3527: /* end confdefs.h. */
3528: #include <string.h>
3529:
3530: _ACEOF
3531: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.2 ! misho 3532: $EGREP "memchr" >/dev/null 2>&1; then :
! 3533:
1.1 misho 3534: else
3535: ac_cv_header_stdc=no
3536: fi
3537: rm -f conftest*
3538:
3539: fi
3540:
3541: if test $ac_cv_header_stdc = yes; then
3542: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.1.1.2 ! misho 3543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3544: /* end confdefs.h. */
3545: #include <stdlib.h>
3546:
3547: _ACEOF
3548: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.2 ! misho 3549: $EGREP "free" >/dev/null 2>&1; then :
! 3550:
1.1 misho 3551: else
3552: ac_cv_header_stdc=no
3553: fi
3554: rm -f conftest*
3555:
3556: fi
3557:
3558: if test $ac_cv_header_stdc = yes; then
3559: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.1.1.2 ! misho 3560: if test "$cross_compiling" = yes; then :
1.1 misho 3561: :
3562: else
1.1.1.2 ! misho 3563: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3564: /* end confdefs.h. */
3565: #include <ctype.h>
3566: #include <stdlib.h>
3567: #if ((' ' & 0x0FF) == 0x020)
3568: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3569: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3570: #else
3571: # define ISLOWER(c) \
3572: (('a' <= (c) && (c) <= 'i') \
3573: || ('j' <= (c) && (c) <= 'r') \
3574: || ('s' <= (c) && (c) <= 'z'))
3575: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3576: #endif
3577:
3578: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3579: int
3580: main ()
3581: {
3582: int i;
3583: for (i = 0; i < 256; i++)
3584: if (XOR (islower (i), ISLOWER (i))
3585: || toupper (i) != TOUPPER (i))
3586: return 2;
3587: return 0;
3588: }
3589: _ACEOF
1.1.1.2 ! misho 3590: if ac_fn_c_try_run "$LINENO"; then :
1.1 misho 3591:
1.1.1.2 ! misho 3592: else
! 3593: ac_cv_header_stdc=no
1.1 misho 3594: fi
1.1.1.2 ! misho 3595: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 3596: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 3597: fi
3598:
3599: fi
3600: fi
1.1.1.2 ! misho 3601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
1.1 misho 3602: $as_echo "$ac_cv_header_stdc" >&6; }
3603: if test $ac_cv_header_stdc = yes; then
3604:
1.1.1.2 ! misho 3605: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 misho 3606:
3607: fi
3608:
3609: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3610: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3611: inttypes.h stdint.h unistd.h
1.1.1.2 ! misho 3612: do :
! 3613: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 3614: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 3615: "
! 3616: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.1 misho 3617: cat >>confdefs.h <<_ACEOF
3618: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3619: _ACEOF
3620:
3621: fi
3622:
3623: done
3624:
3625:
3626:
3627:
3628:
1.1.1.2 ! misho 3629: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
! 3630: if test "x$ac_cv_header_minix_config_h" = xyes; then :
1.1 misho 3631: MINIX=yes
3632: else
3633: MINIX=
3634: fi
3635:
3636:
3637: if test "$MINIX" = yes; then
3638:
1.1.1.2 ! misho 3639: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
1.1 misho 3640:
3641:
1.1.1.2 ! misho 3642: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
1.1 misho 3643:
3644:
1.1.1.2 ! misho 3645: $as_echo "#define _MINIX 1" >>confdefs.h
1.1 misho 3646:
3647: fi
3648:
3649: case "$host_os" in
3650: hpux*)
3651:
1.1.1.2 ! misho 3652: $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
1.1 misho 3653:
3654: ;;
3655: esac
3656:
3657:
1.1.1.2 ! misho 3658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
1.1 misho 3659: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
1.1.1.2 ! misho 3660: if ${ac_cv_safe_to_define___extensions__+:} false; then :
1.1 misho 3661: $as_echo_n "(cached) " >&6
3662: else
1.1.1.2 ! misho 3663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3664: /* end confdefs.h. */
3665:
1.1.1.2 ! misho 3666: # define __EXTENSIONS__ 1
! 3667: $ac_includes_default
1.1 misho 3668: int
3669: main ()
3670: {
3671:
3672: ;
3673: return 0;
3674: }
3675: _ACEOF
1.1.1.2 ! misho 3676: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 3677: ac_cv_safe_to_define___extensions__=yes
3678: else
1.1.1.2 ! misho 3679: ac_cv_safe_to_define___extensions__=no
1.1 misho 3680: fi
3681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682: fi
1.1.1.2 ! misho 3683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
1.1 misho 3684: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3685: test $ac_cv_safe_to_define___extensions__ = yes &&
1.1.1.2 ! misho 3686: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
1.1 misho 3687:
1.1.1.2 ! misho 3688: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
1.1 misho 3689:
1.1.1.2 ! misho 3690: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
! 3691:
! 3692: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
! 3693:
! 3694: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
1.1 misho 3695:
3696:
3697:
3698:
3699:
3700:
3701:
3702:
1.1.1.2 ! misho 3703: enable_shared=yes
! 3704: enable_static=no
! 3705: case `pwd` in
! 3706: *\ * | *\ *)
! 3707: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 3708: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
! 3709: esac
! 3710:
! 3711:
! 3712:
! 3713: macro_version='2.4'
! 3714: macro_revision='1.3293'
! 3715:
! 3716:
! 3717:
! 3718:
! 3719:
! 3720:
! 3721:
! 3722:
! 3723:
! 3724:
! 3725:
! 3726:
! 3727:
! 3728: ltmain="$ac_aux_dir/ltmain.sh"
! 3729:
! 3730: # Backslashify metacharacters that are still active within
! 3731: # double-quoted strings.
! 3732: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
! 3733:
! 3734: # Same as above, but do not quote variable references.
! 3735: double_quote_subst='s/\(["`\\]\)/\\\1/g'
! 3736:
! 3737: # Sed substitution to delay expansion of an escaped shell variable in a
! 3738: # double_quote_subst'ed string.
! 3739: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.1 misho 3740:
1.1.1.2 ! misho 3741: # Sed substitution to delay expansion of an escaped single quote.
! 3742: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misho 3743:
1.1.1.2 ! misho 3744: # Sed substitution to avoid accidental globbing in evaled expressions
! 3745: no_glob_subst='s/\*/\\\*/g'
1.1 misho 3746:
1.1.1.2 ! misho 3747: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 3748: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
! 3749: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
! 3750:
! 3751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
! 3752: $as_echo_n "checking how to print strings... " >&6; }
! 3753: # Test print first, because it will be a builtin if present.
! 3754: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
! 3755: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
! 3756: ECHO='print -r --'
! 3757: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
! 3758: ECHO='printf %s\n'
! 3759: else
! 3760: # Use this function as a fallback that always works.
! 3761: func_fallback_echo ()
! 3762: {
! 3763: eval 'cat <<_LTECHO_EOF
! 3764: $1
! 3765: _LTECHO_EOF'
! 3766: }
! 3767: ECHO='func_fallback_echo'
! 3768: fi
1.1 misho 3769:
1.1.1.2 ! misho 3770: # func_echo_all arg...
! 3771: # Invoke $ECHO with all args, space-separated.
! 3772: func_echo_all ()
! 3773: {
! 3774: $ECHO ""
! 3775: }
1.1 misho 3776:
1.1.1.2 ! misho 3777: case "$ECHO" in
! 3778: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
! 3779: $as_echo "printf" >&6; } ;;
! 3780: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
! 3781: $as_echo "print -r" >&6; } ;;
! 3782: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
! 3783: $as_echo "cat" >&6; } ;;
! 3784: esac
1.1 misho 3785:
3786:
3787:
3788:
3789:
3790:
3791:
3792:
3793:
3794:
3795:
3796:
3797:
3798:
1.1.1.2 ! misho 3799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
1.1 misho 3800: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
1.1.1.2 ! misho 3801: if ${ac_cv_path_SED+:} false; then :
1.1 misho 3802: $as_echo_n "(cached) " >&6
3803: else
3804: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3805: for ac_i in 1 2 3 4 5 6 7; do
3806: ac_script="$ac_script$as_nl$ac_script"
3807: done
3808: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
1.1.1.2 ! misho 3809: { ac_script=; unset ac_script;}
1.1 misho 3810: if test -z "$SED"; then
3811: ac_path_SED_found=false
3812: # Loop through the user's path and test for each of PROGNAME-LIST
3813: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814: for as_dir in $PATH
3815: do
3816: IFS=$as_save_IFS
3817: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 3818: for ac_prog in sed gsed; do
1.1 misho 3819: for ac_exec_ext in '' $ac_executable_extensions; do
3820: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3821: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3822: # Check for GNU ac_path_SED and select it if it is found.
3823: # Check for GNU $ac_path_SED
3824: case `"$ac_path_SED" --version 2>&1` in
3825: *GNU*)
3826: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3827: *)
3828: ac_count=0
3829: $as_echo_n 0123456789 >"conftest.in"
3830: while :
3831: do
3832: cat "conftest.in" "conftest.in" >"conftest.tmp"
3833: mv "conftest.tmp" "conftest.in"
3834: cp "conftest.in" "conftest.nl"
3835: $as_echo '' >> "conftest.nl"
3836: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 ! misho 3838: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3839: if test $ac_count -gt ${ac_path_SED_max-0}; then
3840: # Best one so far, save it but keep looking for a better one
3841: ac_cv_path_SED="$ac_path_SED"
3842: ac_path_SED_max=$ac_count
3843: fi
3844: # 10*(2^10) chars as input seems more than enough
3845: test $ac_count -gt 10 && break
3846: done
3847: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848: esac
3849:
3850: $ac_path_SED_found && break 3
3851: done
3852: done
1.1.1.2 ! misho 3853: done
1.1 misho 3854: IFS=$as_save_IFS
3855: if test -z "$ac_cv_path_SED"; then
1.1.1.2 ! misho 3856: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.1 misho 3857: fi
3858: else
3859: ac_cv_path_SED=$SED
3860: fi
3861:
3862: fi
1.1.1.2 ! misho 3863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
1.1 misho 3864: $as_echo "$ac_cv_path_SED" >&6; }
3865: SED="$ac_cv_path_SED"
3866: rm -f conftest.sed
3867:
3868: test -z "$SED" && SED=sed
3869: Xsed="$SED -e 1s/^X//"
3870:
3871:
3872:
3873:
3874:
3875:
3876:
3877:
3878:
3879:
3880:
1.1.1.2 ! misho 3881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
1.1 misho 3882: $as_echo_n "checking for fgrep... " >&6; }
1.1.1.2 ! misho 3883: if ${ac_cv_path_FGREP+:} false; then :
1.1 misho 3884: $as_echo_n "(cached) " >&6
3885: else
3886: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3887: then ac_cv_path_FGREP="$GREP -F"
3888: else
3889: if test -z "$FGREP"; then
3890: ac_path_FGREP_found=false
3891: # Loop through the user's path and test for each of PROGNAME-LIST
3892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894: do
3895: IFS=$as_save_IFS
3896: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 3897: for ac_prog in fgrep; do
1.1 misho 3898: for ac_exec_ext in '' $ac_executable_extensions; do
3899: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3900: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3901: # Check for GNU ac_path_FGREP and select it if it is found.
3902: # Check for GNU $ac_path_FGREP
3903: case `"$ac_path_FGREP" --version 2>&1` in
3904: *GNU*)
3905: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3906: *)
3907: ac_count=0
3908: $as_echo_n 0123456789 >"conftest.in"
3909: while :
3910: do
3911: cat "conftest.in" "conftest.in" >"conftest.tmp"
3912: mv "conftest.tmp" "conftest.in"
3913: cp "conftest.in" "conftest.nl"
3914: $as_echo 'FGREP' >> "conftest.nl"
3915: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.1.1.2 ! misho 3917: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.1 misho 3918: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3919: # Best one so far, save it but keep looking for a better one
3920: ac_cv_path_FGREP="$ac_path_FGREP"
3921: ac_path_FGREP_max=$ac_count
3922: fi
3923: # 10*(2^10) chars as input seems more than enough
3924: test $ac_count -gt 10 && break
3925: done
3926: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927: esac
3928:
3929: $ac_path_FGREP_found && break 3
3930: done
3931: done
1.1.1.2 ! misho 3932: done
1.1 misho 3933: IFS=$as_save_IFS
3934: if test -z "$ac_cv_path_FGREP"; then
1.1.1.2 ! misho 3935: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3936: fi
3937: else
3938: ac_cv_path_FGREP=$FGREP
3939: fi
3940:
3941: fi
3942: fi
1.1.1.2 ! misho 3943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
1.1 misho 3944: $as_echo "$ac_cv_path_FGREP" >&6; }
3945: FGREP="$ac_cv_path_FGREP"
3946:
3947:
3948: test -z "$GREP" && GREP=grep
3949:
3950:
3951:
3952:
3953:
3954:
3955:
3956:
3957:
3958:
3959:
3960:
3961:
3962:
3963:
3964:
3965:
3966:
3967:
3968: # Check whether --with-gnu-ld was given.
1.1.1.2 ! misho 3969: if test "${with_gnu_ld+set}" = set; then :
1.1 misho 3970: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3971: else
3972: with_gnu_ld=no
3973: fi
3974:
3975: ac_prog=ld
3976: if test "$GCC" = yes; then
3977: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.2 ! misho 3978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
1.1 misho 3979: $as_echo_n "checking for ld used by $CC... " >&6; }
3980: case $host in
3981: *-*-mingw*)
3982: # gcc leaves a trailing carriage return which upsets mingw
3983: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3984: *)
3985: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3986: esac
3987: case $ac_prog in
3988: # Accept absolute paths.
3989: [\\/]* | ?:[\\/]*)
3990: re_direlt='/[^/][^/]*/\.\./'
3991: # Canonicalize the pathname of ld
3992: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3993: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3994: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3995: done
3996: test -z "$LD" && LD="$ac_prog"
3997: ;;
3998: "")
3999: # If it fails, then pretend we aren't using GCC.
4000: ac_prog=ld
4001: ;;
4002: *)
4003: # If it is relative, then search for the first ld in PATH.
4004: with_gnu_ld=unknown
4005: ;;
4006: esac
4007: elif test "$with_gnu_ld" = yes; then
1.1.1.2 ! misho 4008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
1.1 misho 4009: $as_echo_n "checking for GNU ld... " >&6; }
4010: else
1.1.1.2 ! misho 4011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
1.1 misho 4012: $as_echo_n "checking for non-GNU ld... " >&6; }
4013: fi
1.1.1.2 ! misho 4014: if ${lt_cv_path_LD+:} false; then :
1.1 misho 4015: $as_echo_n "(cached) " >&6
4016: else
4017: if test -z "$LD"; then
4018: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4019: for ac_dir in $PATH; do
4020: IFS="$lt_save_ifs"
4021: test -z "$ac_dir" && ac_dir=.
4022: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4023: lt_cv_path_LD="$ac_dir/$ac_prog"
4024: # Check to see if the program is GNU ld. I'd rather use --version,
4025: # but apparently some variants of GNU ld only accept -v.
4026: # Break only if it was the GNU/non-GNU ld that we prefer.
4027: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4028: *GNU* | *'with BFD'*)
4029: test "$with_gnu_ld" != no && break
4030: ;;
4031: *)
4032: test "$with_gnu_ld" != yes && break
4033: ;;
4034: esac
4035: fi
4036: done
4037: IFS="$lt_save_ifs"
4038: else
4039: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4040: fi
4041: fi
4042:
4043: LD="$lt_cv_path_LD"
4044: if test -n "$LD"; then
1.1.1.2 ! misho 4045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
1.1 misho 4046: $as_echo "$LD" >&6; }
4047: else
1.1.1.2 ! misho 4048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4049: $as_echo "no" >&6; }
4050: fi
1.1.1.2 ! misho 4051: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 4052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
1.1 misho 4053: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
1.1.1.2 ! misho 4054: if ${lt_cv_prog_gnu_ld+:} false; then :
1.1 misho 4055: $as_echo_n "(cached) " >&6
4056: else
4057: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4058: case `$LD -v 2>&1 </dev/null` in
4059: *GNU* | *'with BFD'*)
4060: lt_cv_prog_gnu_ld=yes
4061: ;;
4062: *)
4063: lt_cv_prog_gnu_ld=no
4064: ;;
4065: esac
4066: fi
1.1.1.2 ! misho 4067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
1.1 misho 4068: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4069: with_gnu_ld=$lt_cv_prog_gnu_ld
4070:
4071:
4072:
4073:
4074:
4075:
4076:
4077:
4078:
1.1.1.2 ! misho 4079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
1.1 misho 4080: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
1.1.1.2 ! misho 4081: if ${lt_cv_path_NM+:} false; then :
1.1 misho 4082: $as_echo_n "(cached) " >&6
4083: else
4084: if test -n "$NM"; then
4085: # Let the user override the test.
4086: lt_cv_path_NM="$NM"
4087: else
4088: lt_nm_to_check="${ac_tool_prefix}nm"
4089: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4090: lt_nm_to_check="$lt_nm_to_check nm"
4091: fi
4092: for lt_tmp_nm in $lt_nm_to_check; do
4093: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4094: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4095: IFS="$lt_save_ifs"
4096: test -z "$ac_dir" && ac_dir=.
4097: tmp_nm="$ac_dir/$lt_tmp_nm"
4098: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4099: # Check to see if the nm accepts a BSD-compat flag.
4100: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4101: # nm: unknown option "B" ignored
4102: # Tru64's nm complains that /dev/null is an invalid object file
4103: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4104: */dev/null* | *'Invalid file or object type'*)
4105: lt_cv_path_NM="$tmp_nm -B"
4106: break
4107: ;;
4108: *)
4109: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4110: */dev/null*)
4111: lt_cv_path_NM="$tmp_nm -p"
4112: break
4113: ;;
4114: *)
4115: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116: continue # so that we can try to find one that supports BSD flags
4117: ;;
4118: esac
4119: ;;
4120: esac
4121: fi
4122: done
4123: IFS="$lt_save_ifs"
4124: done
4125: : ${lt_cv_path_NM=no}
4126: fi
4127: fi
1.1.1.2 ! misho 4128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
1.1 misho 4129: $as_echo "$lt_cv_path_NM" >&6; }
4130: if test "$lt_cv_path_NM" != "no"; then
4131: NM="$lt_cv_path_NM"
4132: else
4133: # Didn't find any BSD compatible name lister, look for dumpbin.
1.1.1.2 ! misho 4134: if test -n "$DUMPBIN"; then :
! 4135: # Let the user override the test.
! 4136: else
! 4137: if test -n "$ac_tool_prefix"; then
! 4138: for ac_prog in dumpbin "link -dump"
1.1 misho 4139: do
4140: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4141: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.2 ! misho 4142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4143: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 4144: if ${ac_cv_prog_DUMPBIN+:} false; then :
1.1 misho 4145: $as_echo_n "(cached) " >&6
4146: else
4147: if test -n "$DUMPBIN"; then
4148: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4149: else
4150: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151: for as_dir in $PATH
4152: do
4153: IFS=$as_save_IFS
4154: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 4155: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 4156: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.1.1.2 ! misho 4158: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4159: break 2
4160: fi
4161: done
1.1.1.2 ! misho 4162: done
1.1 misho 4163: IFS=$as_save_IFS
4164:
4165: fi
4166: fi
4167: DUMPBIN=$ac_cv_prog_DUMPBIN
4168: if test -n "$DUMPBIN"; then
1.1.1.2 ! misho 4169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
1.1 misho 4170: $as_echo "$DUMPBIN" >&6; }
4171: else
1.1.1.2 ! misho 4172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4173: $as_echo "no" >&6; }
4174: fi
4175:
4176:
4177: test -n "$DUMPBIN" && break
4178: done
4179: fi
4180: if test -z "$DUMPBIN"; then
4181: ac_ct_DUMPBIN=$DUMPBIN
1.1.1.2 ! misho 4182: for ac_prog in dumpbin "link -dump"
1.1 misho 4183: do
4184: # Extract the first word of "$ac_prog", so it can be a program name with args.
4185: set dummy $ac_prog; ac_word=$2
1.1.1.2 ! misho 4186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4187: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 4188: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
1.1 misho 4189: $as_echo_n "(cached) " >&6
4190: else
4191: if test -n "$ac_ct_DUMPBIN"; then
4192: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4193: else
4194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195: for as_dir in $PATH
4196: do
4197: IFS=$as_save_IFS
4198: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 4199: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 4200: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.1.1.2 ! misho 4202: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4203: break 2
4204: fi
4205: done
1.1.1.2 ! misho 4206: done
1.1 misho 4207: IFS=$as_save_IFS
4208:
4209: fi
4210: fi
4211: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4212: if test -n "$ac_ct_DUMPBIN"; then
1.1.1.2 ! misho 4213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
1.1 misho 4214: $as_echo "$ac_ct_DUMPBIN" >&6; }
4215: else
1.1.1.2 ! misho 4216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4217: $as_echo "no" >&6; }
4218: fi
4219:
4220:
4221: test -n "$ac_ct_DUMPBIN" && break
4222: done
4223:
4224: if test "x$ac_ct_DUMPBIN" = x; then
4225: DUMPBIN=":"
4226: else
4227: case $cross_compiling:$ac_tool_warned in
4228: yes:)
1.1.1.2 ! misho 4229: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 4230: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231: ac_tool_warned=yes ;;
4232: esac
4233: DUMPBIN=$ac_ct_DUMPBIN
4234: fi
4235: fi
4236:
1.1.1.2 ! misho 4237: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
! 4238: *COFF*)
! 4239: DUMPBIN="$DUMPBIN -symbols"
! 4240: ;;
! 4241: *)
! 4242: DUMPBIN=:
! 4243: ;;
! 4244: esac
! 4245: fi
1.1 misho 4246:
4247: if test "$DUMPBIN" != ":"; then
4248: NM="$DUMPBIN"
4249: fi
4250: fi
4251: test -z "$NM" && NM=nm
4252:
4253:
4254:
4255:
4256:
4257:
1.1.1.2 ! misho 4258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
1.1 misho 4259: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
1.1.1.2 ! misho 4260: if ${lt_cv_nm_interface+:} false; then :
1.1 misho 4261: $as_echo_n "(cached) " >&6
4262: else
4263: lt_cv_nm_interface="BSD nm"
4264: echo "int some_variable = 0;" > conftest.$ac_ext
1.1.1.2 ! misho 4265: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1.1 misho 4266: (eval "$ac_compile" 2>conftest.err)
4267: cat conftest.err >&5
1.1.1.2 ! misho 4268: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1.1 misho 4269: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4270: cat conftest.err >&5
1.1.1.2 ! misho 4271: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1.1 misho 4272: cat conftest.out >&5
4273: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4274: lt_cv_nm_interface="MS dumpbin"
4275: fi
4276: rm -f conftest*
4277: fi
1.1.1.2 ! misho 4278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
1.1 misho 4279: $as_echo "$lt_cv_nm_interface" >&6; }
4280:
4281: # find the maximum length of command line arguments
1.1.1.2 ! misho 4282: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
1.1 misho 4283: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
1.1.1.2 ! misho 4284: if ${lt_cv_sys_max_cmd_len+:} false; then :
1.1 misho 4285: $as_echo_n "(cached) " >&6
4286: else
4287: i=0
4288: teststring="ABCD"
4289:
4290: case $build_os in
4291: msdosdjgpp*)
4292: # On DJGPP, this test can blow up pretty badly due to problems in libc
4293: # (any single argument exceeding 2000 bytes causes a buffer overrun
4294: # during glob expansion). Even if it were fixed, the result of this
4295: # check would be larger than it should be.
4296: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4297: ;;
4298:
4299: gnu*)
4300: # Under GNU Hurd, this test is not required because there is
4301: # no limit to the length of command line arguments.
4302: # Libtool will interpret -1 as no limit whatsoever
4303: lt_cv_sys_max_cmd_len=-1;
4304: ;;
4305:
4306: cygwin* | mingw* | cegcc*)
4307: # On Win9x/ME, this test blows up -- it succeeds, but takes
4308: # about 5 minutes as the teststring grows exponentially.
4309: # Worse, since 9x/ME are not pre-emptively multitasking,
4310: # you end up with a "frozen" computer, even though with patience
4311: # the test eventually succeeds (with a max line length of 256k).
4312: # Instead, let's just punt: use the minimum linelength reported by
4313: # all of the supported platforms: 8192 (on NT/2K/XP).
4314: lt_cv_sys_max_cmd_len=8192;
4315: ;;
4316:
1.1.1.2 ! misho 4317: mint*)
! 4318: # On MiNT this can take a long time and run out of memory.
! 4319: lt_cv_sys_max_cmd_len=8192;
! 4320: ;;
! 4321:
1.1 misho 4322: amigaos*)
4323: # On AmigaOS with pdksh, this test takes hours, literally.
4324: # So we just punt and use a minimum line length of 8192.
4325: lt_cv_sys_max_cmd_len=8192;
4326: ;;
4327:
4328: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4329: # This has been around since 386BSD, at least. Likely further.
4330: if test -x /sbin/sysctl; then
4331: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4332: elif test -x /usr/sbin/sysctl; then
4333: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4334: else
4335: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4336: fi
4337: # And add a safety zone
4338: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4339: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4340: ;;
4341:
4342: interix*)
4343: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4344: lt_cv_sys_max_cmd_len=196608
4345: ;;
4346:
4347: osf*)
4348: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4349: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4350: # nice to cause kernel panics so lets avoid the loop below.
4351: # First set a reasonable default.
4352: lt_cv_sys_max_cmd_len=16384
4353: #
4354: if test -x /sbin/sysconfig; then
4355: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4356: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4357: esac
4358: fi
4359: ;;
4360: sco3.2v5*)
4361: lt_cv_sys_max_cmd_len=102400
4362: ;;
4363: sysv5* | sco5v6* | sysv4.2uw2*)
4364: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4365: if test -n "$kargmax"; then
4366: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4367: else
4368: lt_cv_sys_max_cmd_len=32768
4369: fi
4370: ;;
4371: *)
4372: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4373: if test -n "$lt_cv_sys_max_cmd_len"; then
4374: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4375: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4376: else
4377: # Make teststring a little bigger before we do anything with it.
4378: # a 1K string should be a reasonable start.
4379: for i in 1 2 3 4 5 6 7 8 ; do
4380: teststring=$teststring$teststring
4381: done
4382: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4383: # If test is not a shell built-in, we'll probably end up computing a
4384: # maximum length that is only half of the actual maximum length, but
4385: # we can't tell.
1.1.1.2 ! misho 4386: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
! 4387: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.1 misho 4388: test $i != 17 # 1/2 MB should be enough
4389: do
4390: i=`expr $i + 1`
4391: teststring=$teststring$teststring
4392: done
4393: # Only check the string length outside the loop.
4394: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4395: teststring=
4396: # Add a significant safety factor because C++ compilers can tack on
4397: # massive amounts of additional arguments before passing them to the
4398: # linker. It appears as though 1/2 is a usable value.
4399: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4400: fi
4401: ;;
4402: esac
4403:
4404: fi
4405:
4406: if test -n $lt_cv_sys_max_cmd_len ; then
1.1.1.2 ! misho 4407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
1.1 misho 4408: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4409: else
1.1.1.2 ! misho 4410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
1.1 misho 4411: $as_echo "none" >&6; }
4412: fi
4413: max_cmd_len=$lt_cv_sys_max_cmd_len
4414:
4415:
4416:
4417:
4418:
4419:
4420: : ${CP="cp -f"}
4421: : ${MV="mv -f"}
4422: : ${RM="rm -f"}
4423:
1.1.1.2 ! misho 4424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
1.1 misho 4425: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4426: # Try some XSI features
4427: xsi_shell=no
4428: ( _lt_dummy="a/b/c"
1.1.1.2 ! misho 4429: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
! 4430: = c,a/b,b/c, \
1.1 misho 4431: && eval 'test $(( 1 + 1 )) -eq 2 \
4432: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4433: && xsi_shell=yes
1.1.1.2 ! misho 4434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
1.1 misho 4435: $as_echo "$xsi_shell" >&6; }
4436:
4437:
1.1.1.2 ! misho 4438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
1.1 misho 4439: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4440: lt_shell_append=no
4441: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4442: >/dev/null 2>&1 \
4443: && lt_shell_append=yes
1.1.1.2 ! misho 4444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
1.1 misho 4445: $as_echo "$lt_shell_append" >&6; }
4446:
4447:
4448: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4449: lt_unset=unset
4450: else
4451: lt_unset=false
4452: fi
4453:
4454:
4455:
4456:
4457:
4458: # test EBCDIC or ASCII
4459: case `echo X|tr X '\101'` in
4460: A) # ASCII based system
4461: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4462: lt_SP2NL='tr \040 \012'
4463: lt_NL2SP='tr \015\012 \040\040'
4464: ;;
4465: *) # EBCDIC based system
4466: lt_SP2NL='tr \100 \n'
4467: lt_NL2SP='tr \r\n \100\100'
4468: ;;
4469: esac
4470:
4471:
4472:
4473:
4474:
4475:
4476:
4477:
4478:
1.1.1.2 ! misho 4479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
! 4480: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
! 4481: if ${lt_cv_to_host_file_cmd+:} false; then :
! 4482: $as_echo_n "(cached) " >&6
! 4483: else
! 4484: case $host in
! 4485: *-*-mingw* )
! 4486: case $build in
! 4487: *-*-mingw* ) # actually msys
! 4488: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
! 4489: ;;
! 4490: *-*-cygwin* )
! 4491: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
! 4492: ;;
! 4493: * ) # otherwise, assume *nix
! 4494: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
! 4495: ;;
! 4496: esac
! 4497: ;;
! 4498: *-*-cygwin* )
! 4499: case $build in
! 4500: *-*-mingw* ) # actually msys
! 4501: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
! 4502: ;;
! 4503: *-*-cygwin* )
! 4504: lt_cv_to_host_file_cmd=func_convert_file_noop
! 4505: ;;
! 4506: * ) # otherwise, assume *nix
! 4507: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
! 4508: ;;
! 4509: esac
! 4510: ;;
! 4511: * ) # unhandled hosts (and "normal" native builds)
! 4512: lt_cv_to_host_file_cmd=func_convert_file_noop
! 4513: ;;
! 4514: esac
! 4515:
! 4516: fi
! 4517:
! 4518: to_host_file_cmd=$lt_cv_to_host_file_cmd
! 4519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
! 4520: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
! 4521:
! 4522:
! 4523:
! 4524:
! 4525:
! 4526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
! 4527: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
! 4528: if ${lt_cv_to_tool_file_cmd+:} false; then :
! 4529: $as_echo_n "(cached) " >&6
! 4530: else
! 4531: #assume ordinary cross tools, or native build.
! 4532: lt_cv_to_tool_file_cmd=func_convert_file_noop
! 4533: case $host in
! 4534: *-*-mingw* )
! 4535: case $build in
! 4536: *-*-mingw* ) # actually msys
! 4537: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
! 4538: ;;
! 4539: esac
! 4540: ;;
! 4541: esac
! 4542:
! 4543: fi
! 4544:
! 4545: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
! 4546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
! 4547: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
! 4548:
! 4549:
! 4550:
! 4551:
! 4552:
! 4553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
1.1 misho 4554: $as_echo_n "checking for $LD option to reload object files... " >&6; }
1.1.1.2 ! misho 4555: if ${lt_cv_ld_reload_flag+:} false; then :
1.1 misho 4556: $as_echo_n "(cached) " >&6
4557: else
4558: lt_cv_ld_reload_flag='-r'
4559: fi
1.1.1.2 ! misho 4560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
1.1 misho 4561: $as_echo "$lt_cv_ld_reload_flag" >&6; }
4562: reload_flag=$lt_cv_ld_reload_flag
4563: case $reload_flag in
4564: "" | " "*) ;;
4565: *) reload_flag=" $reload_flag" ;;
4566: esac
4567: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4568: case $host_os in
1.1.1.2 ! misho 4569: cygwin* | mingw* | pw32* | cegcc*)
! 4570: if test "$GCC" != yes; then
! 4571: reload_cmds=false
! 4572: fi
! 4573: ;;
1.1 misho 4574: darwin*)
4575: if test "$GCC" = yes; then
4576: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4577: else
4578: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4579: fi
4580: ;;
4581: esac
4582:
4583:
4584:
4585:
4586:
4587:
4588:
4589:
4590:
4591: if test -n "$ac_tool_prefix"; then
4592: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4593: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.1.1.2 ! misho 4594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4595: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 4596: if ${ac_cv_prog_OBJDUMP+:} false; then :
1.1 misho 4597: $as_echo_n "(cached) " >&6
4598: else
4599: if test -n "$OBJDUMP"; then
4600: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4601: else
4602: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603: for as_dir in $PATH
4604: do
4605: IFS=$as_save_IFS
4606: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 4607: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 4608: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.1.1.2 ! misho 4610: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4611: break 2
4612: fi
4613: done
1.1.1.2 ! misho 4614: done
1.1 misho 4615: IFS=$as_save_IFS
4616:
4617: fi
4618: fi
4619: OBJDUMP=$ac_cv_prog_OBJDUMP
4620: if test -n "$OBJDUMP"; then
1.1.1.2 ! misho 4621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
1.1 misho 4622: $as_echo "$OBJDUMP" >&6; }
4623: else
1.1.1.2 ! misho 4624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4625: $as_echo "no" >&6; }
4626: fi
4627:
4628:
4629: fi
4630: if test -z "$ac_cv_prog_OBJDUMP"; then
4631: ac_ct_OBJDUMP=$OBJDUMP
4632: # Extract the first word of "objdump", so it can be a program name with args.
4633: set dummy objdump; ac_word=$2
1.1.1.2 ! misho 4634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 4635: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 4636: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1.1 misho 4637: $as_echo_n "(cached) " >&6
4638: else
4639: if test -n "$ac_ct_OBJDUMP"; then
4640: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4641: else
4642: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643: for as_dir in $PATH
4644: do
4645: IFS=$as_save_IFS
4646: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 4647: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 4648: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.1.1.2 ! misho 4650: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 4651: break 2
4652: fi
4653: done
1.1.1.2 ! misho 4654: done
1.1 misho 4655: IFS=$as_save_IFS
4656:
4657: fi
4658: fi
4659: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4660: if test -n "$ac_ct_OBJDUMP"; then
1.1.1.2 ! misho 4661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
1.1 misho 4662: $as_echo "$ac_ct_OBJDUMP" >&6; }
4663: else
1.1.1.2 ! misho 4664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 4665: $as_echo "no" >&6; }
4666: fi
4667:
4668: if test "x$ac_ct_OBJDUMP" = x; then
4669: OBJDUMP="false"
4670: else
4671: case $cross_compiling:$ac_tool_warned in
4672: yes:)
1.1.1.2 ! misho 4673: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 4674: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675: ac_tool_warned=yes ;;
4676: esac
4677: OBJDUMP=$ac_ct_OBJDUMP
4678: fi
4679: else
4680: OBJDUMP="$ac_cv_prog_OBJDUMP"
4681: fi
4682:
4683: test -z "$OBJDUMP" && OBJDUMP=objdump
4684:
4685:
4686:
4687:
4688:
4689:
1.1.1.2 ! misho 4690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
1.1 misho 4691: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
1.1.1.2 ! misho 4692: if ${lt_cv_deplibs_check_method+:} false; then :
1.1 misho 4693: $as_echo_n "(cached) " >&6
4694: else
4695: lt_cv_file_magic_cmd='$MAGIC_CMD'
4696: lt_cv_file_magic_test_file=
4697: lt_cv_deplibs_check_method='unknown'
4698: # Need to set the preceding variable on all platforms that support
4699: # interlibrary dependencies.
4700: # 'none' -- dependencies not supported.
4701: # `unknown' -- same as none, but documents that we really don't know.
4702: # 'pass_all' -- all dependencies passed with no checks.
4703: # 'test_compile' -- check by making test program.
4704: # 'file_magic [[regex]]' -- check by looking for files in library path
4705: # which responds to the $file_magic_cmd with a given extended regex.
4706: # If you have `file' or equivalent on your system and you're not sure
4707: # whether `pass_all' will *always* work, you probably want this one.
4708:
4709: case $host_os in
4710: aix[4-9]*)
4711: lt_cv_deplibs_check_method=pass_all
4712: ;;
4713:
4714: beos*)
4715: lt_cv_deplibs_check_method=pass_all
4716: ;;
4717:
4718: bsdi[45]*)
4719: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4720: lt_cv_file_magic_cmd='/usr/bin/file -L'
4721: lt_cv_file_magic_test_file=/shlib/libc.so
4722: ;;
4723:
4724: cygwin*)
4725: # func_win32_libid is a shell function defined in ltmain.sh
4726: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4727: lt_cv_file_magic_cmd='func_win32_libid'
4728: ;;
4729:
4730: mingw* | pw32*)
4731: # Base MSYS/MinGW do not provide the 'file' command needed by
4732: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4733: # unless we find 'file', for example because we are cross-compiling.
1.1.1.2 ! misho 4734: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
! 4735: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1.1 misho 4736: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4737: lt_cv_file_magic_cmd='func_win32_libid'
4738: else
1.1.1.2 ! misho 4739: # Keep this pattern in sync with the one in func_win32_libid.
! 4740: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
1.1 misho 4741: lt_cv_file_magic_cmd='$OBJDUMP -f'
4742: fi
4743: ;;
4744:
1.1.1.2 ! misho 4745: cegcc*)
1.1 misho 4746: # use the weaker test based on 'objdump'. See mingw*.
4747: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4748: lt_cv_file_magic_cmd='$OBJDUMP -f'
4749: ;;
4750:
4751: darwin* | rhapsody*)
4752: lt_cv_deplibs_check_method=pass_all
4753: ;;
4754:
4755: freebsd* | dragonfly*)
4756: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4757: case $host_cpu in
4758: i*86 )
4759: # Not sure whether the presence of OpenBSD here was a mistake.
4760: # Let's accept both of them until this is cleared up.
4761: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4762: lt_cv_file_magic_cmd=/usr/bin/file
4763: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4764: ;;
4765: esac
4766: else
4767: lt_cv_deplibs_check_method=pass_all
4768: fi
4769: ;;
4770:
4771: gnu*)
4772: lt_cv_deplibs_check_method=pass_all
4773: ;;
4774:
1.1.1.2 ! misho 4775: haiku*)
! 4776: lt_cv_deplibs_check_method=pass_all
! 4777: ;;
! 4778:
1.1 misho 4779: hpux10.20* | hpux11*)
4780: lt_cv_file_magic_cmd=/usr/bin/file
4781: case $host_cpu in
4782: ia64*)
4783: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4784: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4785: ;;
4786: hppa*64*)
1.1.1.2 ! misho 4787: 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 4788: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4789: ;;
4790: *)
1.1.1.2 ! misho 4791: 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 4792: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4793: ;;
4794: esac
4795: ;;
4796:
4797: interix[3-9]*)
4798: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4799: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4800: ;;
4801:
4802: irix5* | irix6* | nonstopux*)
4803: case $LD in
4804: *-32|*"-32 ") libmagic=32-bit;;
4805: *-n32|*"-n32 ") libmagic=N32;;
4806: *-64|*"-64 ") libmagic=64-bit;;
4807: *) libmagic=never-match;;
4808: esac
4809: lt_cv_deplibs_check_method=pass_all
4810: ;;
4811:
4812: # This must be Linux ELF.
1.1.1.2 ! misho 4813: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1 misho 4814: lt_cv_deplibs_check_method=pass_all
4815: ;;
4816:
4817: netbsd*)
4818: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4819: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4820: else
4821: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4822: fi
4823: ;;
4824:
4825: newos6*)
4826: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4827: lt_cv_file_magic_cmd=/usr/bin/file
4828: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4829: ;;
4830:
4831: *nto* | *qnx*)
4832: lt_cv_deplibs_check_method=pass_all
4833: ;;
4834:
4835: openbsd*)
4836: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4837: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4838: else
4839: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4840: fi
4841: ;;
4842:
4843: osf3* | osf4* | osf5*)
4844: lt_cv_deplibs_check_method=pass_all
4845: ;;
4846:
1.1.1.2 ! misho 4847: rdos*)
! 4848: lt_cv_deplibs_check_method=pass_all
! 4849: ;;
! 4850:
! 4851: solaris*)
! 4852: lt_cv_deplibs_check_method=pass_all
! 4853: ;;
! 4854:
! 4855: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 4856: lt_cv_deplibs_check_method=pass_all
! 4857: ;;
! 4858:
! 4859: sysv4 | sysv4.3*)
! 4860: case $host_vendor in
! 4861: motorola)
! 4862: 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]'
! 4863: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
! 4864: ;;
! 4865: ncr)
! 4866: lt_cv_deplibs_check_method=pass_all
! 4867: ;;
! 4868: sequent)
! 4869: lt_cv_file_magic_cmd='/bin/file'
! 4870: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
! 4871: ;;
! 4872: sni)
! 4873: lt_cv_file_magic_cmd='/bin/file'
! 4874: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
! 4875: lt_cv_file_magic_test_file=/lib/libc.so
! 4876: ;;
! 4877: siemens)
! 4878: lt_cv_deplibs_check_method=pass_all
! 4879: ;;
! 4880: pc)
! 4881: lt_cv_deplibs_check_method=pass_all
! 4882: ;;
! 4883: esac
! 4884: ;;
! 4885:
! 4886: tpf*)
! 4887: lt_cv_deplibs_check_method=pass_all
! 4888: ;;
! 4889: esac
! 4890:
! 4891: fi
! 4892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
! 4893: $as_echo "$lt_cv_deplibs_check_method" >&6; }
! 4894:
! 4895: file_magic_glob=
! 4896: want_nocaseglob=no
! 4897: if test "$build" = "$host"; then
! 4898: case $host_os in
! 4899: mingw* | pw32*)
! 4900: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
! 4901: want_nocaseglob=yes
! 4902: else
! 4903: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
! 4904: fi
! 4905: ;;
! 4906: esac
! 4907: fi
! 4908:
! 4909: file_magic_cmd=$lt_cv_file_magic_cmd
! 4910: deplibs_check_method=$lt_cv_deplibs_check_method
! 4911: test -z "$deplibs_check_method" && deplibs_check_method=unknown
! 4912:
! 4913:
! 4914:
! 4915:
! 4916:
! 4917:
! 4918:
! 4919:
! 4920:
! 4921:
! 4922:
! 4923:
! 4924:
! 4925:
! 4926:
! 4927:
! 4928:
! 4929:
! 4930:
! 4931:
! 4932:
! 4933:
! 4934: if test -n "$ac_tool_prefix"; then
! 4935: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
! 4936: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
! 4937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4938: $as_echo_n "checking for $ac_word... " >&6; }
! 4939: if ${ac_cv_prog_DLLTOOL+:} false; then :
! 4940: $as_echo_n "(cached) " >&6
! 4941: else
! 4942: if test -n "$DLLTOOL"; then
! 4943: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
! 4944: else
! 4945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4946: for as_dir in $PATH
! 4947: do
! 4948: IFS=$as_save_IFS
! 4949: test -z "$as_dir" && as_dir=.
! 4950: for ac_exec_ext in '' $ac_executable_extensions; do
! 4951: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 4952: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
! 4953: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4954: break 2
! 4955: fi
! 4956: done
! 4957: done
! 4958: IFS=$as_save_IFS
! 4959:
! 4960: fi
! 4961: fi
! 4962: DLLTOOL=$ac_cv_prog_DLLTOOL
! 4963: if test -n "$DLLTOOL"; then
! 4964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 4965: $as_echo "$DLLTOOL" >&6; }
! 4966: else
! 4967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4968: $as_echo "no" >&6; }
! 4969: fi
! 4970:
! 4971:
! 4972: fi
! 4973: if test -z "$ac_cv_prog_DLLTOOL"; then
! 4974: ac_ct_DLLTOOL=$DLLTOOL
! 4975: # Extract the first word of "dlltool", so it can be a program name with args.
! 4976: set dummy dlltool; ac_word=$2
! 4977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4978: $as_echo_n "checking for $ac_word... " >&6; }
! 4979: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
! 4980: $as_echo_n "(cached) " >&6
! 4981: else
! 4982: if test -n "$ac_ct_DLLTOOL"; then
! 4983: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
! 4984: else
! 4985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4986: for as_dir in $PATH
! 4987: do
! 4988: IFS=$as_save_IFS
! 4989: test -z "$as_dir" && as_dir=.
! 4990: for ac_exec_ext in '' $ac_executable_extensions; do
! 4991: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 4992: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
! 4993: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4994: break 2
! 4995: fi
! 4996: done
! 4997: done
! 4998: IFS=$as_save_IFS
! 4999:
! 5000: fi
! 5001: fi
! 5002: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
! 5003: if test -n "$ac_ct_DLLTOOL"; then
! 5004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 5005: $as_echo "$ac_ct_DLLTOOL" >&6; }
! 5006: else
! 5007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5008: $as_echo "no" >&6; }
! 5009: fi
! 5010:
! 5011: if test "x$ac_ct_DLLTOOL" = x; then
! 5012: DLLTOOL="false"
! 5013: else
! 5014: case $cross_compiling:$ac_tool_warned in
! 5015: yes:)
! 5016: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5017: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5018: ac_tool_warned=yes ;;
! 5019: esac
! 5020: DLLTOOL=$ac_ct_DLLTOOL
! 5021: fi
! 5022: else
! 5023: DLLTOOL="$ac_cv_prog_DLLTOOL"
! 5024: fi
! 5025:
! 5026: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 5027:
! 5028:
! 5029:
! 5030:
! 5031:
1.1 misho 5032:
5033:
1.1.1.2 ! misho 5034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
! 5035: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
! 5036: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
! 5037: $as_echo_n "(cached) " >&6
! 5038: else
! 5039: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misho 5040:
1.1.1.2 ! misho 5041: case $host_os in
! 5042: cygwin* | mingw* | pw32* | cegcc*)
! 5043: # two different shell functions defined in ltmain.sh
! 5044: # decide which to use based on capabilities of $DLLTOOL
! 5045: case `$DLLTOOL --help 2>&1` in
! 5046: *--identify-strict*)
! 5047: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
1.1 misho 5048: ;;
1.1.1.2 ! misho 5049: *)
! 5050: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
1.1 misho 5051: ;;
5052: esac
5053: ;;
1.1.1.2 ! misho 5054: *)
! 5055: # fallback: assume linklib IS sharedlib
! 5056: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misho 5057: ;;
5058: esac
5059:
5060: fi
1.1.1.2 ! misho 5061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 5062: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
! 5063: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
! 5064: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misho 5065:
5066:
5067:
5068:
5069:
5070:
5071:
5072: if test -n "$ac_tool_prefix"; then
1.1.1.2 ! misho 5073: for ac_prog in ar
! 5074: do
! 5075: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 5076: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 5077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5078: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 5079: if ${ac_cv_prog_AR+:} false; then :
1.1 misho 5080: $as_echo_n "(cached) " >&6
5081: else
5082: if test -n "$AR"; then
5083: ac_cv_prog_AR="$AR" # Let the user override the test.
5084: else
5085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086: for as_dir in $PATH
5087: do
5088: IFS=$as_save_IFS
5089: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 5090: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 5091: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.2 ! misho 5092: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
! 5093: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5094: break 2
5095: fi
5096: done
1.1.1.2 ! misho 5097: done
1.1 misho 5098: IFS=$as_save_IFS
5099:
5100: fi
5101: fi
5102: AR=$ac_cv_prog_AR
5103: if test -n "$AR"; then
1.1.1.2 ! misho 5104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
1.1 misho 5105: $as_echo "$AR" >&6; }
5106: else
1.1.1.2 ! misho 5107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5108: $as_echo "no" >&6; }
5109: fi
5110:
5111:
1.1.1.2 ! misho 5112: test -n "$AR" && break
! 5113: done
1.1 misho 5114: fi
1.1.1.2 ! misho 5115: if test -z "$AR"; then
1.1 misho 5116: ac_ct_AR=$AR
1.1.1.2 ! misho 5117: for ac_prog in ar
! 5118: do
! 5119: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 5120: set dummy $ac_prog; ac_word=$2
! 5121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5122: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 5123: if ${ac_cv_prog_ac_ct_AR+:} false; then :
1.1 misho 5124: $as_echo_n "(cached) " >&6
5125: else
5126: if test -n "$ac_ct_AR"; then
5127: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5128: else
5129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130: for as_dir in $PATH
5131: do
5132: IFS=$as_save_IFS
5133: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 5134: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 5135: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.2 ! misho 5136: ac_cv_prog_ac_ct_AR="$ac_prog"
! 5137: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5138: break 2
5139: fi
5140: done
1.1.1.2 ! misho 5141: done
1.1 misho 5142: IFS=$as_save_IFS
5143:
5144: fi
5145: fi
5146: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5147: if test -n "$ac_ct_AR"; then
1.1.1.2 ! misho 5148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
1.1 misho 5149: $as_echo "$ac_ct_AR" >&6; }
5150: else
1.1.1.2 ! misho 5151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5152: $as_echo "no" >&6; }
5153: fi
5154:
1.1.1.2 ! misho 5155:
! 5156: test -n "$ac_ct_AR" && break
! 5157: done
! 5158:
1.1 misho 5159: if test "x$ac_ct_AR" = x; then
5160: AR="false"
5161: else
5162: case $cross_compiling:$ac_tool_warned in
5163: yes:)
1.1.1.2 ! misho 5164: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 5165: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166: ac_tool_warned=yes ;;
5167: esac
5168: AR=$ac_ct_AR
5169: fi
5170: fi
5171:
1.1.1.2 ! misho 5172: : ${AR=ar}
! 5173: : ${AR_FLAGS=cru}
! 5174:
! 5175:
! 5176:
! 5177:
! 5178:
! 5179:
! 5180:
! 5181:
! 5182:
! 5183:
! 5184:
! 5185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
! 5186: $as_echo_n "checking for archiver @FILE support... " >&6; }
! 5187: if ${lt_cv_ar_at_file+:} false; then :
! 5188: $as_echo_n "(cached) " >&6
! 5189: else
! 5190: lt_cv_ar_at_file=no
! 5191: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5192: /* end confdefs.h. */
! 5193:
! 5194: int
! 5195: main ()
! 5196: {
1.1 misho 5197:
1.1.1.2 ! misho 5198: ;
! 5199: return 0;
! 5200: }
! 5201: _ACEOF
! 5202: if ac_fn_c_try_compile "$LINENO"; then :
! 5203: echo conftest.$ac_objext > conftest.lst
! 5204: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
! 5205: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
! 5206: (eval $lt_ar_try) 2>&5
! 5207: ac_status=$?
! 5208: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5209: test $ac_status = 0; }
! 5210: if test "$ac_status" -eq 0; then
! 5211: # Ensure the archiver fails upon bogus file names.
! 5212: rm -f conftest.$ac_objext libconftest.a
! 5213: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
! 5214: (eval $lt_ar_try) 2>&5
! 5215: ac_status=$?
! 5216: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5217: test $ac_status = 0; }
! 5218: if test "$ac_status" -ne 0; then
! 5219: lt_cv_ar_at_file=@
! 5220: fi
! 5221: fi
! 5222: rm -f conftest.* libconftest.a
1.1 misho 5223:
1.1.1.2 ! misho 5224: fi
! 5225: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 5226:
1.1.1.2 ! misho 5227: fi
! 5228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
! 5229: $as_echo "$lt_cv_ar_at_file" >&6; }
1.1 misho 5230:
1.1.1.2 ! misho 5231: if test "x$lt_cv_ar_at_file" = xno; then
! 5232: archiver_list_spec=
! 5233: else
! 5234: archiver_list_spec=$lt_cv_ar_at_file
! 5235: fi
1.1 misho 5236:
5237:
5238:
5239:
5240:
5241:
5242:
5243: if test -n "$ac_tool_prefix"; then
5244: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5245: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.2 ! misho 5246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5247: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 5248: if ${ac_cv_prog_STRIP+:} false; then :
1.1 misho 5249: $as_echo_n "(cached) " >&6
5250: else
5251: if test -n "$STRIP"; then
5252: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5253: else
5254: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255: for as_dir in $PATH
5256: do
5257: IFS=$as_save_IFS
5258: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 5259: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 5260: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.1.1.2 ! misho 5262: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5263: break 2
5264: fi
5265: done
1.1.1.2 ! misho 5266: done
1.1 misho 5267: IFS=$as_save_IFS
5268:
5269: fi
5270: fi
5271: STRIP=$ac_cv_prog_STRIP
5272: if test -n "$STRIP"; then
1.1.1.2 ! misho 5273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
1.1 misho 5274: $as_echo "$STRIP" >&6; }
5275: else
1.1.1.2 ! misho 5276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5277: $as_echo "no" >&6; }
5278: fi
5279:
5280:
5281: fi
5282: if test -z "$ac_cv_prog_STRIP"; then
5283: ac_ct_STRIP=$STRIP
5284: # Extract the first word of "strip", so it can be a program name with args.
5285: set dummy strip; ac_word=$2
1.1.1.2 ! misho 5286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5287: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 5288: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.1 misho 5289: $as_echo_n "(cached) " >&6
5290: else
5291: if test -n "$ac_ct_STRIP"; then
5292: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5293: else
5294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295: for as_dir in $PATH
5296: do
5297: IFS=$as_save_IFS
5298: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 5299: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 5300: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301: ac_cv_prog_ac_ct_STRIP="strip"
1.1.1.2 ! misho 5302: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5303: break 2
5304: fi
5305: done
1.1.1.2 ! misho 5306: done
1.1 misho 5307: IFS=$as_save_IFS
5308:
5309: fi
5310: fi
5311: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5312: if test -n "$ac_ct_STRIP"; then
1.1.1.2 ! misho 5313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
1.1 misho 5314: $as_echo "$ac_ct_STRIP" >&6; }
5315: else
1.1.1.2 ! misho 5316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5317: $as_echo "no" >&6; }
5318: fi
5319:
5320: if test "x$ac_ct_STRIP" = x; then
5321: STRIP=":"
5322: else
5323: case $cross_compiling:$ac_tool_warned in
5324: yes:)
1.1.1.2 ! misho 5325: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 5326: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327: ac_tool_warned=yes ;;
5328: esac
5329: STRIP=$ac_ct_STRIP
5330: fi
5331: else
5332: STRIP="$ac_cv_prog_STRIP"
5333: fi
5334:
5335: test -z "$STRIP" && STRIP=:
5336:
5337:
5338:
5339:
5340:
5341:
5342: if test -n "$ac_tool_prefix"; then
5343: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5344: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.2 ! misho 5345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5346: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 5347: if ${ac_cv_prog_RANLIB+:} false; then :
1.1 misho 5348: $as_echo_n "(cached) " >&6
5349: else
5350: if test -n "$RANLIB"; then
5351: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5352: else
5353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354: for as_dir in $PATH
5355: do
5356: IFS=$as_save_IFS
5357: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 5358: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 5359: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.1.1.2 ! misho 5361: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5362: break 2
5363: fi
5364: done
1.1.1.2 ! misho 5365: done
1.1 misho 5366: IFS=$as_save_IFS
5367:
5368: fi
5369: fi
5370: RANLIB=$ac_cv_prog_RANLIB
5371: if test -n "$RANLIB"; then
1.1.1.2 ! misho 5372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
1.1 misho 5373: $as_echo "$RANLIB" >&6; }
5374: else
1.1.1.2 ! misho 5375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5376: $as_echo "no" >&6; }
5377: fi
5378:
5379:
5380: fi
5381: if test -z "$ac_cv_prog_RANLIB"; then
5382: ac_ct_RANLIB=$RANLIB
5383: # Extract the first word of "ranlib", so it can be a program name with args.
5384: set dummy ranlib; ac_word=$2
1.1.1.2 ! misho 5385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 5386: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 5387: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.1 misho 5388: $as_echo_n "(cached) " >&6
5389: else
5390: if test -n "$ac_ct_RANLIB"; then
5391: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5392: else
5393: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394: for as_dir in $PATH
5395: do
5396: IFS=$as_save_IFS
5397: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 5398: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 5399: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.1.1.2 ! misho 5401: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 5402: break 2
5403: fi
5404: done
1.1.1.2 ! misho 5405: done
1.1 misho 5406: IFS=$as_save_IFS
5407:
5408: fi
5409: fi
5410: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5411: if test -n "$ac_ct_RANLIB"; then
1.1.1.2 ! misho 5412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
1.1 misho 5413: $as_echo "$ac_ct_RANLIB" >&6; }
5414: else
1.1.1.2 ! misho 5415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5416: $as_echo "no" >&6; }
5417: fi
5418:
5419: if test "x$ac_ct_RANLIB" = x; then
5420: RANLIB=":"
5421: else
5422: case $cross_compiling:$ac_tool_warned in
5423: yes:)
1.1.1.2 ! misho 5424: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 5425: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426: ac_tool_warned=yes ;;
5427: esac
5428: RANLIB=$ac_ct_RANLIB
5429: fi
5430: else
5431: RANLIB="$ac_cv_prog_RANLIB"
5432: fi
5433:
5434: test -z "$RANLIB" && RANLIB=:
5435:
5436:
5437:
5438:
5439:
5440:
5441: # Determine commands to create old-style static archives.
5442: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5443: old_postinstall_cmds='chmod 644 $oldlib'
5444: old_postuninstall_cmds=
5445:
5446: if test -n "$RANLIB"; then
5447: case $host_os in
5448: openbsd*)
5449: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5450: ;;
5451: *)
5452: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5453: ;;
5454: esac
5455: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5456: fi
5457:
1.1.1.2 ! misho 5458: case $host_os in
! 5459: darwin*)
! 5460: lock_old_archive_extraction=yes ;;
! 5461: *)
! 5462: lock_old_archive_extraction=no ;;
! 5463: esac
! 5464:
1.1 misho 5465:
5466:
5467:
5468:
5469:
5470:
5471:
5472:
5473:
5474:
5475:
5476:
5477:
5478:
5479:
5480:
5481:
5482:
5483:
5484:
1.1.1.2 ! misho 5485: for ac_prog in gawk mawk nawk awk
! 5486: do
! 5487: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 5488: set dummy $ac_prog; ac_word=$2
! 5489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5490: $as_echo_n "checking for $ac_word... " >&6; }
! 5491: if ${ac_cv_prog_AWK+:} false; then :
! 5492: $as_echo_n "(cached) " >&6
! 5493: else
! 5494: if test -n "$AWK"; then
! 5495: ac_cv_prog_AWK="$AWK" # Let the user override the test.
! 5496: else
! 5497: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5498: for as_dir in $PATH
! 5499: do
! 5500: IFS=$as_save_IFS
! 5501: test -z "$as_dir" && as_dir=.
! 5502: for ac_exec_ext in '' $ac_executable_extensions; do
! 5503: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 5504: ac_cv_prog_AWK="$ac_prog"
! 5505: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5506: break 2
! 5507: fi
! 5508: done
! 5509: done
! 5510: IFS=$as_save_IFS
! 5511:
! 5512: fi
! 5513: fi
! 5514: AWK=$ac_cv_prog_AWK
! 5515: if test -n "$AWK"; then
! 5516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 5517: $as_echo "$AWK" >&6; }
! 5518: else
! 5519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5520: $as_echo "no" >&6; }
! 5521: fi
! 5522:
! 5523:
! 5524: test -n "$AWK" && break
! 5525: done
! 5526:
! 5527:
! 5528:
! 5529:
! 5530:
! 5531:
1.1 misho 5532:
5533:
5534:
5535:
5536:
5537:
5538:
5539:
5540:
5541:
5542:
5543:
5544:
5545: # If no C compiler was specified, use CC.
5546: LTCC=${LTCC-"$CC"}
5547:
5548: # If no C compiler flags were specified, use CFLAGS.
5549: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5550:
5551: # Allow CC to be a program name with arguments.
5552: compiler=$CC
5553:
5554:
5555: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.1.1.2 ! misho 5556: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
1.1 misho 5557: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
1.1.1.2 ! misho 5558: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
1.1 misho 5559: $as_echo_n "(cached) " >&6
5560: else
5561:
5562: # These are sane defaults that work on at least a few old systems.
5563: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5564:
5565: # Character class describing NM global symbol codes.
5566: symcode='[BCDEGRST]'
5567:
5568: # Regexp to match symbols that can be accessed directly from C.
5569: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5570:
5571: # Define system-specific variables.
5572: case $host_os in
5573: aix*)
5574: symcode='[BCDT]'
5575: ;;
5576: cygwin* | mingw* | pw32* | cegcc*)
5577: symcode='[ABCDGISTW]'
5578: ;;
5579: hpux*)
5580: if test "$host_cpu" = ia64; then
5581: symcode='[ABCDEGRST]'
5582: fi
5583: ;;
5584: irix* | nonstopux*)
5585: symcode='[BCDEGRST]'
5586: ;;
5587: osf*)
5588: symcode='[BCDEGQRST]'
5589: ;;
5590: solaris*)
5591: symcode='[BDRT]'
5592: ;;
5593: sco3.2v5*)
5594: symcode='[DT]'
5595: ;;
5596: sysv4.2uw2*)
5597: symcode='[DT]'
5598: ;;
5599: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5600: symcode='[ABDT]'
5601: ;;
5602: sysv4)
5603: symcode='[DFNSTU]'
5604: ;;
5605: esac
5606:
5607: # If we're using GNU nm, then use its standard symbol codes.
5608: case `$NM -V 2>&1` in
5609: *GNU* | *'with BFD'*)
5610: symcode='[ABCDGIRSTW]' ;;
5611: esac
5612:
5613: # Transform an extracted symbol line into a proper C declaration.
5614: # Some systems (esp. on ia64) link data and code symbols differently,
5615: # so use this general approach.
5616: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5617:
5618: # Transform an extracted symbol line into symbol name and symbol address
1.1.1.2 ! misho 5619: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
! 5620: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1.1 misho 5621:
5622: # Handle CRLF in mingw tool chain
5623: opt_cr=
5624: case $build_os in
5625: mingw*)
5626: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5627: ;;
5628: esac
5629:
5630: # Try without a prefix underscore, then with it.
5631: for ac_symprfx in "" "_"; do
5632:
5633: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5634: symxfrm="\\1 $ac_symprfx\\2 \\2"
5635:
5636: # Write the raw and C identifiers.
5637: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5638: # Fake it for dumpbin and say T for any non-static function
5639: # and D for any global variable.
5640: # Also find C++ and __fastcall symbols from MSVC++,
5641: # which start with @ or ?.
5642: lt_cv_sys_global_symbol_pipe="$AWK '"\
5643: " {last_section=section; section=\$ 3};"\
5644: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5645: " \$ 0!~/External *\|/{next};"\
5646: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5647: " {if(hide[section]) next};"\
5648: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5649: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5650: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5651: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5652: " ' prfx=^$ac_symprfx"
5653: else
5654: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5655: fi
1.1.1.2 ! misho 5656: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.1 misho 5657:
5658: # Check to see that the pipe works correctly.
5659: pipe_works=no
5660:
5661: rm -f conftest*
5662: cat > conftest.$ac_ext <<_LT_EOF
5663: #ifdef __cplusplus
5664: extern "C" {
5665: #endif
5666: char nm_test_var;
5667: void nm_test_func(void);
5668: void nm_test_func(void){}
5669: #ifdef __cplusplus
5670: }
5671: #endif
5672: int main(){nm_test_var='a';nm_test_func();return(0);}
5673: _LT_EOF
5674:
1.1.1.2 ! misho 5675: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 5676: (eval $ac_compile) 2>&5
5677: ac_status=$?
1.1.1.2 ! misho 5678: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5679: test $ac_status = 0; }; then
1.1 misho 5680: # Now try to grab the symbols.
5681: nlist=conftest.nm
1.1.1.2 ! misho 5682: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
! 5683: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misho 5684: ac_status=$?
1.1.1.2 ! misho 5685: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5686: test $ac_status = 0; } && test -s "$nlist"; then
1.1 misho 5687: # Try sorting and uniquifying the output.
5688: if sort "$nlist" | uniq > "$nlist"T; then
5689: mv -f "$nlist"T "$nlist"
5690: else
5691: rm -f "$nlist"T
5692: fi
5693:
5694: # Make sure that we snagged all the symbols we need.
5695: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5696: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5697: cat <<_LT_EOF > conftest.$ac_ext
1.1.1.2 ! misho 5698: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
! 5699: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
! 5700: /* DATA imports from DLLs on WIN32 con't be const, because runtime
! 5701: relocations are performed -- see ld's documentation on pseudo-relocs. */
! 5702: # define LT_DLSYM_CONST
! 5703: #elif defined(__osf__)
! 5704: /* This system does not cope well with relocations in const data. */
! 5705: # define LT_DLSYM_CONST
! 5706: #else
! 5707: # define LT_DLSYM_CONST const
! 5708: #endif
! 5709:
1.1 misho 5710: #ifdef __cplusplus
5711: extern "C" {
5712: #endif
5713:
5714: _LT_EOF
5715: # Now generate the symbol file.
5716: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5717:
5718: cat <<_LT_EOF >> conftest.$ac_ext
5719:
5720: /* The mapping between symbol names and symbols. */
1.1.1.2 ! misho 5721: LT_DLSYM_CONST struct {
1.1 misho 5722: const char *name;
5723: void *address;
5724: }
5725: lt__PROGRAM__LTX_preloaded_symbols[] =
5726: {
5727: { "@PROGRAM@", (void *) 0 },
5728: _LT_EOF
5729: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5730: cat <<\_LT_EOF >> conftest.$ac_ext
5731: {0, (void *) 0}
5732: };
5733:
5734: /* This works around a problem in FreeBSD linker */
5735: #ifdef FREEBSD_WORKAROUND
5736: static const void *lt_preloaded_setup() {
5737: return lt__PROGRAM__LTX_preloaded_symbols;
5738: }
5739: #endif
5740:
5741: #ifdef __cplusplus
5742: }
5743: #endif
5744: _LT_EOF
5745: # Now try linking the two files.
5746: mv conftest.$ac_objext conftstm.$ac_objext
1.1.1.2 ! misho 5747: lt_globsym_save_LIBS=$LIBS
! 5748: lt_globsym_save_CFLAGS=$CFLAGS
1.1 misho 5749: LIBS="conftstm.$ac_objext"
5750: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.1.1.2 ! misho 5751: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.1 misho 5752: (eval $ac_link) 2>&5
5753: ac_status=$?
1.1.1.2 ! misho 5754: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5755: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.1 misho 5756: pipe_works=yes
5757: fi
1.1.1.2 ! misho 5758: LIBS=$lt_globsym_save_LIBS
! 5759: CFLAGS=$lt_globsym_save_CFLAGS
1.1 misho 5760: else
5761: echo "cannot find nm_test_func in $nlist" >&5
5762: fi
5763: else
5764: echo "cannot find nm_test_var in $nlist" >&5
5765: fi
5766: else
5767: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5768: fi
5769: else
5770: echo "$progname: failed program was:" >&5
5771: cat conftest.$ac_ext >&5
5772: fi
5773: rm -rf conftest* conftst*
5774:
5775: # Do not use the global_symbol_pipe unless it works.
5776: if test "$pipe_works" = yes; then
5777: break
5778: else
5779: lt_cv_sys_global_symbol_pipe=
5780: fi
5781: done
5782:
5783: fi
5784:
5785: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5786: lt_cv_sys_global_symbol_to_cdecl=
5787: fi
5788: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.1.1.2 ! misho 5789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1.1 misho 5790: $as_echo "failed" >&6; }
5791: else
1.1.1.2 ! misho 5792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1.1 misho 5793: $as_echo "ok" >&6; }
5794: fi
5795:
1.1.1.2 ! misho 5796: # Response file support.
! 5797: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
! 5798: nm_file_list_spec='@'
! 5799: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
! 5800: nm_file_list_spec='@'
! 5801: fi
! 5802:
! 5803:
! 5804:
! 5805:
! 5806:
! 5807:
! 5808:
! 5809:
! 5810:
! 5811:
1.1 misho 5812:
5813:
5814:
5815:
5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
5824:
5825:
5826:
5827:
5828:
1.1.1.2 ! misho 5829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
! 5830: $as_echo_n "checking for sysroot... " >&6; }
! 5831:
! 5832: # Check whether --with-sysroot was given.
! 5833: if test "${with_sysroot+set}" = set; then :
! 5834: withval=$with_sysroot;
! 5835: else
! 5836: with_sysroot=no
! 5837: fi
! 5838:
! 5839:
! 5840: lt_sysroot=
! 5841: case ${with_sysroot} in #(
! 5842: yes)
! 5843: if test "$GCC" = yes; then
! 5844: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
! 5845: fi
! 5846: ;; #(
! 5847: /*)
! 5848: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
! 5849: ;; #(
! 5850: no|'')
! 5851: ;; #(
! 5852: *)
! 5853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
! 5854: $as_echo "${with_sysroot}" >&6; }
! 5855: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
! 5856: ;;
! 5857: esac
! 5858:
! 5859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
! 5860: $as_echo "${lt_sysroot:-no}" >&6; }
! 5861:
1.1 misho 5862:
5863:
5864:
5865:
5866: # Check whether --enable-libtool-lock was given.
1.1.1.2 ! misho 5867: if test "${enable_libtool_lock+set}" = set; then :
1.1 misho 5868: enableval=$enable_libtool_lock;
5869: fi
5870:
5871: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5872:
5873: # Some flags need to be propagated to the compiler or linker for good
5874: # libtool support.
5875: case $host in
5876: ia64-*-hpux*)
5877: # Find out which ABI we are using.
5878: echo 'int i;' > conftest.$ac_ext
1.1.1.2 ! misho 5879: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 5880: (eval $ac_compile) 2>&5
5881: ac_status=$?
1.1.1.2 ! misho 5882: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5883: test $ac_status = 0; }; then
1.1 misho 5884: case `/usr/bin/file conftest.$ac_objext` in
5885: *ELF-32*)
5886: HPUX_IA64_MODE="32"
5887: ;;
5888: *ELF-64*)
5889: HPUX_IA64_MODE="64"
5890: ;;
5891: esac
5892: fi
5893: rm -rf conftest*
5894: ;;
5895: *-*-irix6*)
5896: # Find out which ABI we are using.
1.1.1.2 ! misho 5897: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
! 5898: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 5899: (eval $ac_compile) 2>&5
5900: ac_status=$?
1.1.1.2 ! misho 5901: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5902: test $ac_status = 0; }; then
1.1 misho 5903: if test "$lt_cv_prog_gnu_ld" = yes; then
5904: case `/usr/bin/file conftest.$ac_objext` in
5905: *32-bit*)
5906: LD="${LD-ld} -melf32bsmip"
5907: ;;
5908: *N32*)
5909: LD="${LD-ld} -melf32bmipn32"
5910: ;;
5911: *64-bit*)
5912: LD="${LD-ld} -melf64bmip"
5913: ;;
5914: esac
5915: else
5916: case `/usr/bin/file conftest.$ac_objext` in
5917: *32-bit*)
5918: LD="${LD-ld} -32"
5919: ;;
5920: *N32*)
5921: LD="${LD-ld} -n32"
5922: ;;
5923: *64-bit*)
5924: LD="${LD-ld} -64"
5925: ;;
5926: esac
5927: fi
5928: fi
5929: rm -rf conftest*
5930: ;;
5931:
5932: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5933: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5934: # Find out which ABI we are using.
5935: echo 'int i;' > conftest.$ac_ext
1.1.1.2 ! misho 5936: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 5937: (eval $ac_compile) 2>&5
5938: ac_status=$?
1.1.1.2 ! misho 5939: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5940: test $ac_status = 0; }; then
1.1 misho 5941: case `/usr/bin/file conftest.o` in
5942: *32-bit*)
5943: case $host in
5944: x86_64-*kfreebsd*-gnu)
5945: LD="${LD-ld} -m elf_i386_fbsd"
5946: ;;
5947: x86_64-*linux*)
5948: LD="${LD-ld} -m elf_i386"
5949: ;;
5950: ppc64-*linux*|powerpc64-*linux*)
5951: LD="${LD-ld} -m elf32ppclinux"
5952: ;;
5953: s390x-*linux*)
5954: LD="${LD-ld} -m elf_s390"
5955: ;;
5956: sparc64-*linux*)
5957: LD="${LD-ld} -m elf32_sparc"
5958: ;;
5959: esac
5960: ;;
5961: *64-bit*)
5962: case $host in
5963: x86_64-*kfreebsd*-gnu)
5964: LD="${LD-ld} -m elf_x86_64_fbsd"
5965: ;;
5966: x86_64-*linux*)
5967: LD="${LD-ld} -m elf_x86_64"
5968: ;;
5969: ppc*-*linux*|powerpc*-*linux*)
5970: LD="${LD-ld} -m elf64ppc"
5971: ;;
5972: s390*-*linux*|s390*-*tpf*)
5973: LD="${LD-ld} -m elf64_s390"
5974: ;;
5975: sparc*-*linux*)
5976: LD="${LD-ld} -m elf64_sparc"
5977: ;;
5978: esac
5979: ;;
5980: esac
5981: fi
5982: rm -rf conftest*
5983: ;;
5984:
5985: *-*-sco3.2v5*)
5986: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5987: SAVE_CFLAGS="$CFLAGS"
5988: CFLAGS="$CFLAGS -belf"
1.1.1.2 ! misho 5989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
1.1 misho 5990: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
1.1.1.2 ! misho 5991: if ${lt_cv_cc_needs_belf+:} false; then :
1.1 misho 5992: $as_echo_n "(cached) " >&6
5993: else
5994: ac_ext=c
5995: ac_cpp='$CPP $CPPFLAGS'
5996: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999:
1.1.1.2 ! misho 6000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 6001: /* end confdefs.h. */
6002:
6003: int
6004: main ()
6005: {
6006:
6007: ;
6008: return 0;
6009: }
6010: _ACEOF
1.1.1.2 ! misho 6011: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 6012: lt_cv_cc_needs_belf=yes
6013: else
1.1.1.2 ! misho 6014: lt_cv_cc_needs_belf=no
1.1 misho 6015: fi
1.1.1.2 ! misho 6016: rm -f core conftest.err conftest.$ac_objext \
! 6017: conftest$ac_exeext conftest.$ac_ext
1.1 misho 6018: ac_ext=c
6019: ac_cpp='$CPP $CPPFLAGS'
6020: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023:
6024: fi
1.1.1.2 ! misho 6025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
1.1 misho 6026: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6027: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6028: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6029: CFLAGS="$SAVE_CFLAGS"
6030: fi
6031: ;;
6032: sparc*-*solaris*)
6033: # Find out which ABI we are using.
6034: echo 'int i;' > conftest.$ac_ext
1.1.1.2 ! misho 6035: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 6036: (eval $ac_compile) 2>&5
6037: ac_status=$?
1.1.1.2 ! misho 6038: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6039: test $ac_status = 0; }; then
1.1 misho 6040: case `/usr/bin/file conftest.o` in
6041: *64-bit*)
6042: case $lt_cv_prog_gnu_ld in
6043: yes*) LD="${LD-ld} -m elf64_sparc" ;;
6044: *)
6045: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6046: LD="${LD-ld} -64"
6047: fi
6048: ;;
6049: esac
6050: ;;
6051: esac
6052: fi
6053: rm -rf conftest*
6054: ;;
6055: esac
6056:
1.1.1.2 ! misho 6057: need_locks="$enable_libtool_lock"
! 6058:
! 6059: if test -n "$ac_tool_prefix"; then
! 6060: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
! 6061: set dummy ${ac_tool_prefix}mt; ac_word=$2
! 6062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6063: $as_echo_n "checking for $ac_word... " >&6; }
! 6064: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
! 6065: $as_echo_n "(cached) " >&6
! 6066: else
! 6067: if test -n "$MANIFEST_TOOL"; then
! 6068: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
! 6069: else
! 6070: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6071: for as_dir in $PATH
! 6072: do
! 6073: IFS=$as_save_IFS
! 6074: test -z "$as_dir" && as_dir=.
! 6075: for ac_exec_ext in '' $ac_executable_extensions; do
! 6076: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6077: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
! 6078: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6079: break 2
! 6080: fi
! 6081: done
! 6082: done
! 6083: IFS=$as_save_IFS
! 6084:
! 6085: fi
! 6086: fi
! 6087: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
! 6088: if test -n "$MANIFEST_TOOL"; then
! 6089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
! 6090: $as_echo "$MANIFEST_TOOL" >&6; }
! 6091: else
! 6092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6093: $as_echo "no" >&6; }
! 6094: fi
! 6095:
! 6096:
! 6097: fi
! 6098: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
! 6099: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
! 6100: # Extract the first word of "mt", so it can be a program name with args.
! 6101: set dummy mt; ac_word=$2
! 6102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6103: $as_echo_n "checking for $ac_word... " >&6; }
! 6104: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
! 6105: $as_echo_n "(cached) " >&6
! 6106: else
! 6107: if test -n "$ac_ct_MANIFEST_TOOL"; then
! 6108: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
! 6109: else
! 6110: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6111: for as_dir in $PATH
! 6112: do
! 6113: IFS=$as_save_IFS
! 6114: test -z "$as_dir" && as_dir=.
! 6115: for ac_exec_ext in '' $ac_executable_extensions; do
! 6116: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6117: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
! 6118: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6119: break 2
! 6120: fi
! 6121: done
! 6122: done
! 6123: IFS=$as_save_IFS
! 6124:
! 6125: fi
! 6126: fi
! 6127: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
! 6128: if test -n "$ac_ct_MANIFEST_TOOL"; then
! 6129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
! 6130: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
! 6131: else
! 6132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6133: $as_echo "no" >&6; }
! 6134: fi
! 6135:
! 6136: if test "x$ac_ct_MANIFEST_TOOL" = x; then
! 6137: MANIFEST_TOOL=":"
! 6138: else
! 6139: case $cross_compiling:$ac_tool_warned in
! 6140: yes:)
! 6141: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6142: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6143: ac_tool_warned=yes ;;
! 6144: esac
! 6145: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
! 6146: fi
! 6147: else
! 6148: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
! 6149: fi
! 6150:
! 6151: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
! 6152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 6153: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
! 6154: if ${lt_cv_path_mainfest_tool+:} false; then :
! 6155: $as_echo_n "(cached) " >&6
! 6156: else
! 6157: lt_cv_path_mainfest_tool=no
! 6158: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
! 6159: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
! 6160: cat conftest.err >&5
! 6161: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
! 6162: lt_cv_path_mainfest_tool=yes
! 6163: fi
! 6164: rm -f conftest*
! 6165: fi
! 6166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
! 6167: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
! 6168: if test "x$lt_cv_path_mainfest_tool" != xyes; then
! 6169: MANIFEST_TOOL=:
! 6170: fi
! 6171:
! 6172:
! 6173:
! 6174:
1.1 misho 6175:
6176:
6177: case $host_os in
6178: rhapsody* | darwin*)
6179: if test -n "$ac_tool_prefix"; then
6180: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6181: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.1.1.2 ! misho 6182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6183: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6184: if ${ac_cv_prog_DSYMUTIL+:} false; then :
1.1 misho 6185: $as_echo_n "(cached) " >&6
6186: else
6187: if test -n "$DSYMUTIL"; then
6188: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6189: else
6190: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191: for as_dir in $PATH
6192: do
6193: IFS=$as_save_IFS
6194: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6195: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6196: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.1.1.2 ! misho 6198: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6199: break 2
6200: fi
6201: done
1.1.1.2 ! misho 6202: done
1.1 misho 6203: IFS=$as_save_IFS
6204:
6205: fi
6206: fi
6207: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6208: if test -n "$DSYMUTIL"; then
1.1.1.2 ! misho 6209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
1.1 misho 6210: $as_echo "$DSYMUTIL" >&6; }
6211: else
1.1.1.2 ! misho 6212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6213: $as_echo "no" >&6; }
6214: fi
6215:
6216:
6217: fi
6218: if test -z "$ac_cv_prog_DSYMUTIL"; then
6219: ac_ct_DSYMUTIL=$DSYMUTIL
6220: # Extract the first word of "dsymutil", so it can be a program name with args.
6221: set dummy dsymutil; ac_word=$2
1.1.1.2 ! misho 6222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6223: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6224: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
1.1 misho 6225: $as_echo_n "(cached) " >&6
6226: else
6227: if test -n "$ac_ct_DSYMUTIL"; then
6228: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6229: else
6230: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231: for as_dir in $PATH
6232: do
6233: IFS=$as_save_IFS
6234: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6235: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6236: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.1.1.2 ! misho 6238: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6239: break 2
6240: fi
6241: done
1.1.1.2 ! misho 6242: done
1.1 misho 6243: IFS=$as_save_IFS
6244:
6245: fi
6246: fi
6247: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6248: if test -n "$ac_ct_DSYMUTIL"; then
1.1.1.2 ! misho 6249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
1.1 misho 6250: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6251: else
1.1.1.2 ! misho 6252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6253: $as_echo "no" >&6; }
6254: fi
6255:
6256: if test "x$ac_ct_DSYMUTIL" = x; then
6257: DSYMUTIL=":"
6258: else
6259: case $cross_compiling:$ac_tool_warned in
6260: yes:)
1.1.1.2 ! misho 6261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6262: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263: ac_tool_warned=yes ;;
6264: esac
6265: DSYMUTIL=$ac_ct_DSYMUTIL
6266: fi
6267: else
6268: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6269: fi
6270:
6271: if test -n "$ac_tool_prefix"; then
6272: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6273: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.1.1.2 ! misho 6274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6275: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6276: if ${ac_cv_prog_NMEDIT+:} false; then :
1.1 misho 6277: $as_echo_n "(cached) " >&6
6278: else
6279: if test -n "$NMEDIT"; then
6280: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6281: else
6282: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283: for as_dir in $PATH
6284: do
6285: IFS=$as_save_IFS
6286: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6287: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6288: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.1.1.2 ! misho 6290: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6291: break 2
6292: fi
6293: done
1.1.1.2 ! misho 6294: done
1.1 misho 6295: IFS=$as_save_IFS
6296:
6297: fi
6298: fi
6299: NMEDIT=$ac_cv_prog_NMEDIT
6300: if test -n "$NMEDIT"; then
1.1.1.2 ! misho 6301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
1.1 misho 6302: $as_echo "$NMEDIT" >&6; }
6303: else
1.1.1.2 ! misho 6304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6305: $as_echo "no" >&6; }
6306: fi
6307:
6308:
6309: fi
6310: if test -z "$ac_cv_prog_NMEDIT"; then
6311: ac_ct_NMEDIT=$NMEDIT
6312: # Extract the first word of "nmedit", so it can be a program name with args.
6313: set dummy nmedit; ac_word=$2
1.1.1.2 ! misho 6314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6315: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6316: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
1.1 misho 6317: $as_echo_n "(cached) " >&6
6318: else
6319: if test -n "$ac_ct_NMEDIT"; then
6320: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6321: else
6322: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323: for as_dir in $PATH
6324: do
6325: IFS=$as_save_IFS
6326: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6327: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6328: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.1.1.2 ! misho 6330: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6331: break 2
6332: fi
6333: done
1.1.1.2 ! misho 6334: done
1.1 misho 6335: IFS=$as_save_IFS
6336:
6337: fi
6338: fi
6339: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6340: if test -n "$ac_ct_NMEDIT"; then
1.1.1.2 ! misho 6341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
1.1 misho 6342: $as_echo "$ac_ct_NMEDIT" >&6; }
6343: else
1.1.1.2 ! misho 6344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6345: $as_echo "no" >&6; }
6346: fi
6347:
6348: if test "x$ac_ct_NMEDIT" = x; then
6349: NMEDIT=":"
6350: else
6351: case $cross_compiling:$ac_tool_warned in
6352: yes:)
1.1.1.2 ! misho 6353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6354: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355: ac_tool_warned=yes ;;
6356: esac
6357: NMEDIT=$ac_ct_NMEDIT
6358: fi
6359: else
6360: NMEDIT="$ac_cv_prog_NMEDIT"
6361: fi
6362:
6363: if test -n "$ac_tool_prefix"; then
6364: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6365: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.1.1.2 ! misho 6366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6367: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6368: if ${ac_cv_prog_LIPO+:} false; then :
1.1 misho 6369: $as_echo_n "(cached) " >&6
6370: else
6371: if test -n "$LIPO"; then
6372: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6373: else
6374: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375: for as_dir in $PATH
6376: do
6377: IFS=$as_save_IFS
6378: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6379: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6380: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.1.1.2 ! misho 6382: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6383: break 2
6384: fi
6385: done
1.1.1.2 ! misho 6386: done
1.1 misho 6387: IFS=$as_save_IFS
6388:
6389: fi
6390: fi
6391: LIPO=$ac_cv_prog_LIPO
6392: if test -n "$LIPO"; then
1.1.1.2 ! misho 6393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
1.1 misho 6394: $as_echo "$LIPO" >&6; }
6395: else
1.1.1.2 ! misho 6396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6397: $as_echo "no" >&6; }
6398: fi
6399:
6400:
6401: fi
6402: if test -z "$ac_cv_prog_LIPO"; then
6403: ac_ct_LIPO=$LIPO
6404: # Extract the first word of "lipo", so it can be a program name with args.
6405: set dummy lipo; ac_word=$2
1.1.1.2 ! misho 6406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6407: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6408: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
1.1 misho 6409: $as_echo_n "(cached) " >&6
6410: else
6411: if test -n "$ac_ct_LIPO"; then
6412: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6413: else
6414: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415: for as_dir in $PATH
6416: do
6417: IFS=$as_save_IFS
6418: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6419: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6420: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421: ac_cv_prog_ac_ct_LIPO="lipo"
1.1.1.2 ! misho 6422: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6423: break 2
6424: fi
6425: done
1.1.1.2 ! misho 6426: done
1.1 misho 6427: IFS=$as_save_IFS
6428:
6429: fi
6430: fi
6431: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6432: if test -n "$ac_ct_LIPO"; then
1.1.1.2 ! misho 6433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
1.1 misho 6434: $as_echo "$ac_ct_LIPO" >&6; }
6435: else
1.1.1.2 ! misho 6436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6437: $as_echo "no" >&6; }
6438: fi
6439:
6440: if test "x$ac_ct_LIPO" = x; then
6441: LIPO=":"
6442: else
6443: case $cross_compiling:$ac_tool_warned in
6444: yes:)
1.1.1.2 ! misho 6445: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6446: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447: ac_tool_warned=yes ;;
6448: esac
6449: LIPO=$ac_ct_LIPO
6450: fi
6451: else
6452: LIPO="$ac_cv_prog_LIPO"
6453: fi
6454:
6455: if test -n "$ac_tool_prefix"; then
6456: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6457: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.1.1.2 ! misho 6458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6459: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6460: if ${ac_cv_prog_OTOOL+:} false; then :
1.1 misho 6461: $as_echo_n "(cached) " >&6
6462: else
6463: if test -n "$OTOOL"; then
6464: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6465: else
6466: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467: for as_dir in $PATH
6468: do
6469: IFS=$as_save_IFS
6470: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6471: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6472: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.1.1.2 ! misho 6474: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6475: break 2
6476: fi
6477: done
1.1.1.2 ! misho 6478: done
1.1 misho 6479: IFS=$as_save_IFS
6480:
6481: fi
6482: fi
6483: OTOOL=$ac_cv_prog_OTOOL
6484: if test -n "$OTOOL"; then
1.1.1.2 ! misho 6485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
1.1 misho 6486: $as_echo "$OTOOL" >&6; }
6487: else
1.1.1.2 ! misho 6488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6489: $as_echo "no" >&6; }
6490: fi
6491:
6492:
6493: fi
6494: if test -z "$ac_cv_prog_OTOOL"; then
6495: ac_ct_OTOOL=$OTOOL
6496: # Extract the first word of "otool", so it can be a program name with args.
6497: set dummy otool; ac_word=$2
1.1.1.2 ! misho 6498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6499: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6500: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
1.1 misho 6501: $as_echo_n "(cached) " >&6
6502: else
6503: if test -n "$ac_ct_OTOOL"; then
6504: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6505: else
6506: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507: for as_dir in $PATH
6508: do
6509: IFS=$as_save_IFS
6510: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6511: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6512: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513: ac_cv_prog_ac_ct_OTOOL="otool"
1.1.1.2 ! misho 6514: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6515: break 2
6516: fi
6517: done
1.1.1.2 ! misho 6518: done
1.1 misho 6519: IFS=$as_save_IFS
6520:
6521: fi
6522: fi
6523: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6524: if test -n "$ac_ct_OTOOL"; then
1.1.1.2 ! misho 6525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
1.1 misho 6526: $as_echo "$ac_ct_OTOOL" >&6; }
6527: else
1.1.1.2 ! misho 6528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6529: $as_echo "no" >&6; }
6530: fi
6531:
6532: if test "x$ac_ct_OTOOL" = x; then
6533: OTOOL=":"
6534: else
6535: case $cross_compiling:$ac_tool_warned in
6536: yes:)
1.1.1.2 ! misho 6537: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6538: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539: ac_tool_warned=yes ;;
6540: esac
6541: OTOOL=$ac_ct_OTOOL
6542: fi
6543: else
6544: OTOOL="$ac_cv_prog_OTOOL"
6545: fi
6546:
6547: if test -n "$ac_tool_prefix"; then
6548: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6549: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.1.1.2 ! misho 6550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6551: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6552: if ${ac_cv_prog_OTOOL64+:} false; then :
1.1 misho 6553: $as_echo_n "(cached) " >&6
6554: else
6555: if test -n "$OTOOL64"; then
6556: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6557: else
6558: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559: for as_dir in $PATH
6560: do
6561: IFS=$as_save_IFS
6562: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6563: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6564: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.1.1.2 ! misho 6566: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6567: break 2
6568: fi
6569: done
1.1.1.2 ! misho 6570: done
1.1 misho 6571: IFS=$as_save_IFS
6572:
6573: fi
6574: fi
6575: OTOOL64=$ac_cv_prog_OTOOL64
6576: if test -n "$OTOOL64"; then
1.1.1.2 ! misho 6577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
1.1 misho 6578: $as_echo "$OTOOL64" >&6; }
6579: else
1.1.1.2 ! misho 6580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6581: $as_echo "no" >&6; }
6582: fi
6583:
6584:
6585: fi
6586: if test -z "$ac_cv_prog_OTOOL64"; then
6587: ac_ct_OTOOL64=$OTOOL64
6588: # Extract the first word of "otool64", so it can be a program name with args.
6589: set dummy otool64; ac_word=$2
1.1.1.2 ! misho 6590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6591: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6592: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
1.1 misho 6593: $as_echo_n "(cached) " >&6
6594: else
6595: if test -n "$ac_ct_OTOOL64"; then
6596: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6597: else
6598: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599: for as_dir in $PATH
6600: do
6601: IFS=$as_save_IFS
6602: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6603: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6604: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.1.1.2 ! misho 6606: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6607: break 2
6608: fi
6609: done
1.1.1.2 ! misho 6610: done
1.1 misho 6611: IFS=$as_save_IFS
6612:
6613: fi
6614: fi
6615: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6616: if test -n "$ac_ct_OTOOL64"; then
1.1.1.2 ! misho 6617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
1.1 misho 6618: $as_echo "$ac_ct_OTOOL64" >&6; }
6619: else
1.1.1.2 ! misho 6620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6621: $as_echo "no" >&6; }
6622: fi
6623:
6624: if test "x$ac_ct_OTOOL64" = x; then
6625: OTOOL64=":"
6626: else
6627: case $cross_compiling:$ac_tool_warned in
6628: yes:)
1.1.1.2 ! misho 6629: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6630: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631: ac_tool_warned=yes ;;
6632: esac
6633: OTOOL64=$ac_ct_OTOOL64
6634: fi
6635: else
6636: OTOOL64="$ac_cv_prog_OTOOL64"
6637: fi
6638:
6639:
6640:
6641:
6642:
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651:
6652:
6653:
6654:
6655:
6656:
6657:
6658:
6659:
6660:
6661:
6662:
6663:
6664:
1.1.1.2 ! misho 6665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
1.1 misho 6666: $as_echo_n "checking for -single_module linker flag... " >&6; }
1.1.1.2 ! misho 6667: if ${lt_cv_apple_cc_single_mod+:} false; then :
1.1 misho 6668: $as_echo_n "(cached) " >&6
6669: else
6670: lt_cv_apple_cc_single_mod=no
6671: if test -z "${LT_MULTI_MODULE}"; then
6672: # By default we will add the -single_module flag. You can override
6673: # by either setting the environment variable LT_MULTI_MODULE
6674: # non-empty at configure time, or by adding -multi_module to the
6675: # link flags.
6676: rm -rf libconftest.dylib*
6677: echo "int foo(void){return 1;}" > conftest.c
6678: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6679: -dynamiclib -Wl,-single_module conftest.c" >&5
6680: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6681: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6682: _lt_result=$?
6683: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6684: lt_cv_apple_cc_single_mod=yes
6685: else
6686: cat conftest.err >&5
6687: fi
6688: rm -rf libconftest.dylib*
6689: rm -f conftest.*
6690: fi
6691: fi
1.1.1.2 ! misho 6692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
1.1 misho 6693: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.2 ! misho 6694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
1.1 misho 6695: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
1.1.1.2 ! misho 6696: if ${lt_cv_ld_exported_symbols_list+:} false; then :
1.1 misho 6697: $as_echo_n "(cached) " >&6
6698: else
6699: lt_cv_ld_exported_symbols_list=no
6700: save_LDFLAGS=$LDFLAGS
6701: echo "_main" > conftest.sym
6702: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.1.1.2 ! misho 6703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 6704: /* end confdefs.h. */
6705:
6706: int
6707: main ()
6708: {
6709:
6710: ;
6711: return 0;
6712: }
6713: _ACEOF
1.1.1.2 ! misho 6714: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 6715: lt_cv_ld_exported_symbols_list=yes
6716: else
1.1.1.2 ! misho 6717: lt_cv_ld_exported_symbols_list=no
1.1 misho 6718: fi
1.1.1.2 ! misho 6719: rm -f core conftest.err conftest.$ac_objext \
! 6720: conftest$ac_exeext conftest.$ac_ext
1.1 misho 6721: LDFLAGS="$save_LDFLAGS"
6722:
6723: fi
1.1.1.2 ! misho 6724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
1.1 misho 6725: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.2 ! misho 6726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
! 6727: $as_echo_n "checking for -force_load linker flag... " >&6; }
! 6728: if ${lt_cv_ld_force_load+:} false; then :
! 6729: $as_echo_n "(cached) " >&6
! 6730: else
! 6731: lt_cv_ld_force_load=no
! 6732: cat > conftest.c << _LT_EOF
! 6733: int forced_loaded() { return 2;}
! 6734: _LT_EOF
! 6735: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
! 6736: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
! 6737: echo "$AR cru libconftest.a conftest.o" >&5
! 6738: $AR cru libconftest.a conftest.o 2>&5
! 6739: echo "$RANLIB libconftest.a" >&5
! 6740: $RANLIB libconftest.a 2>&5
! 6741: cat > conftest.c << _LT_EOF
! 6742: int main() { return 0;}
! 6743: _LT_EOF
! 6744: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
! 6745: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
! 6746: _lt_result=$?
! 6747: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
! 6748: lt_cv_ld_force_load=yes
! 6749: else
! 6750: cat conftest.err >&5
! 6751: fi
! 6752: rm -f conftest.err libconftest.a conftest conftest.c
! 6753: rm -rf conftest.dSYM
! 6754:
! 6755: fi
! 6756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
! 6757: $as_echo "$lt_cv_ld_force_load" >&6; }
1.1 misho 6758: case $host_os in
6759: rhapsody* | darwin1.[012])
6760: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6761: darwin1.*)
6762: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6763: darwin*) # darwin 5.x on
6764: # if running on 10.5 or later, the deployment target defaults
6765: # to the OS version, if on x86, and 10.4, the deployment
6766: # target defaults to 10.4. Don't you love it?
6767: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6768: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6769: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6770: 10.[012]*)
6771: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6772: 10.*)
6773: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6774: esac
6775: ;;
6776: esac
6777: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6778: _lt_dar_single_mod='$single_module'
6779: fi
6780: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6781: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6782: else
6783: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6784: fi
1.1.1.2 ! misho 6785: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1.1 misho 6786: _lt_dsymutil='~$DSYMUTIL $lib || :'
6787: else
6788: _lt_dsymutil=
6789: fi
6790: ;;
6791: esac
6792:
6793: for ac_header in dlfcn.h
1.1.1.2 ! misho 6794: do :
! 6795: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
! 6796: "
! 6797: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1.1 misho 6798: cat >>confdefs.h <<_ACEOF
1.1.1.2 ! misho 6799: #define HAVE_DLFCN_H 1
1.1 misho 6800: _ACEOF
6801:
6802: fi
6803:
6804: done
6805:
6806:
6807:
1.1.1.2 ! misho 6808:
! 6809:
1.1 misho 6810: # Set options
6811: enable_win32_dll=yes
6812:
6813: case $host in
1.1.1.2 ! misho 6814: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
1.1 misho 6815: if test -n "$ac_tool_prefix"; then
6816: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6817: set dummy ${ac_tool_prefix}as; ac_word=$2
1.1.1.2 ! misho 6818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6819: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6820: if ${ac_cv_prog_AS+:} false; then :
1.1 misho 6821: $as_echo_n "(cached) " >&6
6822: else
6823: if test -n "$AS"; then
6824: ac_cv_prog_AS="$AS" # Let the user override the test.
6825: else
6826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827: for as_dir in $PATH
6828: do
6829: IFS=$as_save_IFS
6830: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6831: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6832: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833: ac_cv_prog_AS="${ac_tool_prefix}as"
1.1.1.2 ! misho 6834: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6835: break 2
6836: fi
6837: done
1.1.1.2 ! misho 6838: done
1.1 misho 6839: IFS=$as_save_IFS
6840:
6841: fi
6842: fi
6843: AS=$ac_cv_prog_AS
6844: if test -n "$AS"; then
1.1.1.2 ! misho 6845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
1.1 misho 6846: $as_echo "$AS" >&6; }
6847: else
1.1.1.2 ! misho 6848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6849: $as_echo "no" >&6; }
6850: fi
6851:
6852:
6853: fi
6854: if test -z "$ac_cv_prog_AS"; then
6855: ac_ct_AS=$AS
6856: # Extract the first word of "as", so it can be a program name with args.
6857: set dummy as; ac_word=$2
1.1.1.2 ! misho 6858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6859: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6860: if ${ac_cv_prog_ac_ct_AS+:} false; then :
1.1 misho 6861: $as_echo_n "(cached) " >&6
6862: else
6863: if test -n "$ac_ct_AS"; then
6864: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6865: else
6866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867: for as_dir in $PATH
6868: do
6869: IFS=$as_save_IFS
6870: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6871: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6872: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873: ac_cv_prog_ac_ct_AS="as"
1.1.1.2 ! misho 6874: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6875: break 2
6876: fi
6877: done
1.1.1.2 ! misho 6878: done
1.1 misho 6879: IFS=$as_save_IFS
6880:
6881: fi
6882: fi
6883: ac_ct_AS=$ac_cv_prog_ac_ct_AS
6884: if test -n "$ac_ct_AS"; then
1.1.1.2 ! misho 6885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
1.1 misho 6886: $as_echo "$ac_ct_AS" >&6; }
6887: else
1.1.1.2 ! misho 6888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6889: $as_echo "no" >&6; }
6890: fi
6891:
6892: if test "x$ac_ct_AS" = x; then
6893: AS="false"
6894: else
6895: case $cross_compiling:$ac_tool_warned in
6896: yes:)
1.1.1.2 ! misho 6897: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6898: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899: ac_tool_warned=yes ;;
6900: esac
6901: AS=$ac_ct_AS
6902: fi
6903: else
6904: AS="$ac_cv_prog_AS"
6905: fi
6906:
6907: if test -n "$ac_tool_prefix"; then
6908: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6909: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.1.1.2 ! misho 6910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6911: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6912: if ${ac_cv_prog_DLLTOOL+:} false; then :
1.1 misho 6913: $as_echo_n "(cached) " >&6
6914: else
6915: if test -n "$DLLTOOL"; then
6916: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6917: else
6918: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919: for as_dir in $PATH
6920: do
6921: IFS=$as_save_IFS
6922: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6923: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6924: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.1.1.2 ! misho 6926: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6927: break 2
6928: fi
6929: done
1.1.1.2 ! misho 6930: done
1.1 misho 6931: IFS=$as_save_IFS
6932:
6933: fi
6934: fi
6935: DLLTOOL=$ac_cv_prog_DLLTOOL
6936: if test -n "$DLLTOOL"; then
1.1.1.2 ! misho 6937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
1.1 misho 6938: $as_echo "$DLLTOOL" >&6; }
6939: else
1.1.1.2 ! misho 6940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6941: $as_echo "no" >&6; }
6942: fi
6943:
6944:
6945: fi
6946: if test -z "$ac_cv_prog_DLLTOOL"; then
6947: ac_ct_DLLTOOL=$DLLTOOL
6948: # Extract the first word of "dlltool", so it can be a program name with args.
6949: set dummy dlltool; ac_word=$2
1.1.1.2 ! misho 6950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 6951: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 6952: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
1.1 misho 6953: $as_echo_n "(cached) " >&6
6954: else
6955: if test -n "$ac_ct_DLLTOOL"; then
6956: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6957: else
6958: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959: for as_dir in $PATH
6960: do
6961: IFS=$as_save_IFS
6962: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 6963: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 6964: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.1.1.2 ! misho 6966: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 6967: break 2
6968: fi
6969: done
1.1.1.2 ! misho 6970: done
1.1 misho 6971: IFS=$as_save_IFS
6972:
6973: fi
6974: fi
6975: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6976: if test -n "$ac_ct_DLLTOOL"; then
1.1.1.2 ! misho 6977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
1.1 misho 6978: $as_echo "$ac_ct_DLLTOOL" >&6; }
6979: else
1.1.1.2 ! misho 6980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 6981: $as_echo "no" >&6; }
6982: fi
6983:
6984: if test "x$ac_ct_DLLTOOL" = x; then
6985: DLLTOOL="false"
6986: else
6987: case $cross_compiling:$ac_tool_warned in
6988: yes:)
1.1.1.2 ! misho 6989: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 6990: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991: ac_tool_warned=yes ;;
6992: esac
6993: DLLTOOL=$ac_ct_DLLTOOL
6994: fi
6995: else
6996: DLLTOOL="$ac_cv_prog_DLLTOOL"
6997: fi
6998:
6999: if test -n "$ac_tool_prefix"; then
7000: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7001: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.1.1.2 ! misho 7002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7003: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 7004: if ${ac_cv_prog_OBJDUMP+:} false; then :
1.1 misho 7005: $as_echo_n "(cached) " >&6
7006: else
7007: if test -n "$OBJDUMP"; then
7008: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7009: else
7010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011: for as_dir in $PATH
7012: do
7013: IFS=$as_save_IFS
7014: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 7015: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 7016: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.1.1.2 ! misho 7018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7019: break 2
7020: fi
7021: done
1.1.1.2 ! misho 7022: done
1.1 misho 7023: IFS=$as_save_IFS
7024:
7025: fi
7026: fi
7027: OBJDUMP=$ac_cv_prog_OBJDUMP
7028: if test -n "$OBJDUMP"; then
1.1.1.2 ! misho 7029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
1.1 misho 7030: $as_echo "$OBJDUMP" >&6; }
7031: else
1.1.1.2 ! misho 7032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7033: $as_echo "no" >&6; }
7034: fi
7035:
7036:
7037: fi
7038: if test -z "$ac_cv_prog_OBJDUMP"; then
7039: ac_ct_OBJDUMP=$OBJDUMP
7040: # Extract the first word of "objdump", so it can be a program name with args.
7041: set dummy objdump; ac_word=$2
1.1.1.2 ! misho 7042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.1 misho 7043: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.2 ! misho 7044: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1.1 misho 7045: $as_echo_n "(cached) " >&6
7046: else
7047: if test -n "$ac_ct_OBJDUMP"; then
7048: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7049: else
7050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051: for as_dir in $PATH
7052: do
7053: IFS=$as_save_IFS
7054: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 7055: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 misho 7056: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.1.1.2 ! misho 7058: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misho 7059: break 2
7060: fi
7061: done
1.1.1.2 ! misho 7062: done
1.1 misho 7063: IFS=$as_save_IFS
7064:
7065: fi
7066: fi
7067: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7068: if test -n "$ac_ct_OBJDUMP"; then
1.1.1.2 ! misho 7069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
1.1 misho 7070: $as_echo "$ac_ct_OBJDUMP" >&6; }
7071: else
1.1.1.2 ! misho 7072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7073: $as_echo "no" >&6; }
7074: fi
7075:
7076: if test "x$ac_ct_OBJDUMP" = x; then
7077: OBJDUMP="false"
7078: else
7079: case $cross_compiling:$ac_tool_warned in
7080: yes:)
1.1.1.2 ! misho 7081: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1.1 misho 7082: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083: ac_tool_warned=yes ;;
7084: esac
7085: OBJDUMP=$ac_ct_OBJDUMP
7086: fi
7087: else
7088: OBJDUMP="$ac_cv_prog_OBJDUMP"
7089: fi
7090:
7091: ;;
7092: esac
7093:
7094: test -z "$AS" && AS=as
7095:
7096:
7097:
7098:
7099:
7100: test -z "$DLLTOOL" && DLLTOOL=dlltool
7101:
7102:
7103:
7104:
7105:
7106: test -z "$OBJDUMP" && OBJDUMP=objdump
7107:
7108:
7109:
7110:
7111:
7112:
7113:
7114: enable_dlopen=no
7115:
7116:
7117:
7118: # Check whether --enable-shared was given.
1.1.1.2 ! misho 7119: if test "${enable_shared+set}" = set; then :
1.1 misho 7120: enableval=$enable_shared; p=${PACKAGE-default}
7121: case $enableval in
7122: yes) enable_shared=yes ;;
7123: no) enable_shared=no ;;
7124: *)
7125: enable_shared=no
7126: # Look at the argument we got. We use all the common list separators.
7127: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128: for pkg in $enableval; do
7129: IFS="$lt_save_ifs"
7130: if test "X$pkg" = "X$p"; then
7131: enable_shared=yes
7132: fi
7133: done
7134: IFS="$lt_save_ifs"
7135: ;;
7136: esac
7137: else
7138: enable_shared=yes
7139: fi
7140:
7141:
7142:
7143:
7144:
7145:
7146:
7147:
7148:
7149: # Check whether --enable-static was given.
1.1.1.2 ! misho 7150: if test "${enable_static+set}" = set; then :
1.1 misho 7151: enableval=$enable_static; p=${PACKAGE-default}
7152: case $enableval in
7153: yes) enable_static=yes ;;
7154: no) enable_static=no ;;
7155: *)
7156: enable_static=no
7157: # Look at the argument we got. We use all the common list separators.
7158: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7159: for pkg in $enableval; do
7160: IFS="$lt_save_ifs"
7161: if test "X$pkg" = "X$p"; then
7162: enable_static=yes
7163: fi
7164: done
7165: IFS="$lt_save_ifs"
7166: ;;
7167: esac
7168: else
7169: enable_static=yes
7170: fi
7171:
7172:
7173:
7174:
7175:
7176:
7177:
7178:
7179:
7180:
7181: # Check whether --with-pic was given.
1.1.1.2 ! misho 7182: if test "${with_pic+set}" = set; then :
1.1 misho 7183: withval=$with_pic; pic_mode="$withval"
7184: else
7185: pic_mode=default
7186: fi
7187:
7188:
7189: test -z "$pic_mode" && pic_mode=default
7190:
7191:
7192:
7193:
7194:
7195:
7196:
7197: # Check whether --enable-fast-install was given.
1.1.1.2 ! misho 7198: if test "${enable_fast_install+set}" = set; then :
1.1 misho 7199: enableval=$enable_fast_install; p=${PACKAGE-default}
7200: case $enableval in
7201: yes) enable_fast_install=yes ;;
7202: no) enable_fast_install=no ;;
7203: *)
7204: enable_fast_install=no
7205: # Look at the argument we got. We use all the common list separators.
7206: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7207: for pkg in $enableval; do
7208: IFS="$lt_save_ifs"
7209: if test "X$pkg" = "X$p"; then
7210: enable_fast_install=yes
7211: fi
7212: done
7213: IFS="$lt_save_ifs"
7214: ;;
7215: esac
7216: else
7217: enable_fast_install=yes
7218: fi
7219:
7220:
7221:
7222:
7223:
7224:
7225:
7226:
7227:
7228:
7229:
7230: # This can be used to rebuild libtool when needed
7231: LIBTOOL_DEPS="$ltmain"
7232:
7233: # Always use our own libtool.
7234: LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
7235:
7236:
7237:
7238:
7239:
7240:
7241:
7242:
7243:
7244:
7245:
7246:
7247:
7248:
7249:
7250:
7251:
7252:
7253:
7254:
7255:
7256:
7257:
7258:
7259:
1.1.1.2 ! misho 7260:
1.1 misho 7261: test -z "$LN_S" && LN_S="ln -s"
7262:
7263:
7264:
7265:
7266:
7267:
7268:
7269:
7270:
7271:
7272:
7273:
7274:
7275:
7276: if test -n "${ZSH_VERSION+set}" ; then
7277: setopt NO_GLOB_SUBST
7278: fi
7279:
1.1.1.2 ! misho 7280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
1.1 misho 7281: $as_echo_n "checking for objdir... " >&6; }
1.1.1.2 ! misho 7282: if ${lt_cv_objdir+:} false; then :
1.1 misho 7283: $as_echo_n "(cached) " >&6
7284: else
7285: rm -f .libs 2>/dev/null
7286: mkdir .libs 2>/dev/null
7287: if test -d .libs; then
7288: lt_cv_objdir=.libs
7289: else
7290: # MS-DOS does not allow filenames that begin with a dot.
7291: lt_cv_objdir=_libs
7292: fi
7293: rmdir .libs 2>/dev/null
7294: fi
1.1.1.2 ! misho 7295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
1.1 misho 7296: $as_echo "$lt_cv_objdir" >&6; }
7297: objdir=$lt_cv_objdir
7298:
7299:
7300:
7301:
7302:
7303: cat >>confdefs.h <<_ACEOF
7304: #define LT_OBJDIR "$lt_cv_objdir/"
7305: _ACEOF
7306:
7307:
7308:
7309:
7310: case $host_os in
7311: aix3*)
7312: # AIX sometimes has problems with the GCC collect2 program. For some
7313: # reason, if we set the COLLECT_NAMES environment variable, the problems
7314: # vanish in a puff of smoke.
7315: if test "X${COLLECT_NAMES+set}" != Xset; then
7316: COLLECT_NAMES=
7317: export COLLECT_NAMES
7318: fi
7319: ;;
7320: esac
7321:
7322: # Global variables:
7323: ofile=libtool
7324: can_build_shared=yes
7325:
7326: # All known linkers require a `.a' archive for static linking (except MSVC,
7327: # which needs '.lib').
7328: libext=a
7329:
7330: with_gnu_ld="$lt_cv_prog_gnu_ld"
7331:
7332: old_CC="$CC"
7333: old_CFLAGS="$CFLAGS"
7334:
7335: # Set sane defaults for various variables
7336: test -z "$CC" && CC=cc
7337: test -z "$LTCC" && LTCC=$CC
7338: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7339: test -z "$LD" && LD=ld
7340: test -z "$ac_objext" && ac_objext=o
7341:
7342: for cc_temp in $compiler""; do
7343: case $cc_temp in
7344: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7345: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7346: \-*) ;;
7347: *) break;;
7348: esac
7349: done
1.1.1.2 ! misho 7350: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misho 7351:
7352:
7353: # Only perform the check for file, if the check method requires it
7354: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7355: case $deplibs_check_method in
7356: file_magic*)
7357: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.1.2 ! misho 7358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
1.1 misho 7359: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
1.1.1.2 ! misho 7360: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 7361: $as_echo_n "(cached) " >&6
7362: else
7363: case $MAGIC_CMD in
7364: [\\/*] | ?:[\\/]*)
7365: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7366: ;;
7367: *)
7368: lt_save_MAGIC_CMD="$MAGIC_CMD"
7369: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7370: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7371: for ac_dir in $ac_dummy; do
7372: IFS="$lt_save_ifs"
7373: test -z "$ac_dir" && ac_dir=.
7374: if test -f $ac_dir/${ac_tool_prefix}file; then
7375: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7376: if test -n "$file_magic_test_file"; then
7377: case $deplibs_check_method in
7378: "file_magic "*)
7379: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7380: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7381: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7382: $EGREP "$file_magic_regex" > /dev/null; then
7383: :
7384: else
7385: cat <<_LT_EOF 1>&2
7386:
7387: *** Warning: the command libtool uses to detect shared libraries,
7388: *** $file_magic_cmd, produces output that libtool cannot recognize.
7389: *** The result is that libtool may fail to recognize shared libraries
7390: *** as such. This will affect the creation of libtool libraries that
7391: *** depend on shared libraries, but programs linked with such libtool
7392: *** libraries will work regardless of this problem. Nevertheless, you
7393: *** may want to report the problem to your system manager and/or to
7394: *** bug-libtool@gnu.org
7395:
7396: _LT_EOF
7397: fi ;;
7398: esac
7399: fi
7400: break
7401: fi
7402: done
7403: IFS="$lt_save_ifs"
7404: MAGIC_CMD="$lt_save_MAGIC_CMD"
7405: ;;
7406: esac
7407: fi
7408:
7409: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410: if test -n "$MAGIC_CMD"; then
1.1.1.2 ! misho 7411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
1.1 misho 7412: $as_echo "$MAGIC_CMD" >&6; }
7413: else
1.1.1.2 ! misho 7414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7415: $as_echo "no" >&6; }
7416: fi
7417:
7418:
7419:
7420:
7421:
7422: if test -z "$lt_cv_path_MAGIC_CMD"; then
7423: if test -n "$ac_tool_prefix"; then
1.1.1.2 ! misho 7424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
1.1 misho 7425: $as_echo_n "checking for file... " >&6; }
1.1.1.2 ! misho 7426: if ${lt_cv_path_MAGIC_CMD+:} false; then :
1.1 misho 7427: $as_echo_n "(cached) " >&6
7428: else
7429: case $MAGIC_CMD in
7430: [\\/*] | ?:[\\/]*)
7431: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7432: ;;
7433: *)
7434: lt_save_MAGIC_CMD="$MAGIC_CMD"
7435: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7436: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7437: for ac_dir in $ac_dummy; do
7438: IFS="$lt_save_ifs"
7439: test -z "$ac_dir" && ac_dir=.
7440: if test -f $ac_dir/file; then
7441: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7442: if test -n "$file_magic_test_file"; then
7443: case $deplibs_check_method in
7444: "file_magic "*)
7445: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7446: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7447: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7448: $EGREP "$file_magic_regex" > /dev/null; then
7449: :
7450: else
7451: cat <<_LT_EOF 1>&2
7452:
7453: *** Warning: the command libtool uses to detect shared libraries,
7454: *** $file_magic_cmd, produces output that libtool cannot recognize.
7455: *** The result is that libtool may fail to recognize shared libraries
7456: *** as such. This will affect the creation of libtool libraries that
7457: *** depend on shared libraries, but programs linked with such libtool
7458: *** libraries will work regardless of this problem. Nevertheless, you
7459: *** may want to report the problem to your system manager and/or to
7460: *** bug-libtool@gnu.org
7461:
7462: _LT_EOF
7463: fi ;;
7464: esac
7465: fi
7466: break
7467: fi
7468: done
7469: IFS="$lt_save_ifs"
7470: MAGIC_CMD="$lt_save_MAGIC_CMD"
7471: ;;
7472: esac
7473: fi
7474:
7475: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7476: if test -n "$MAGIC_CMD"; then
1.1.1.2 ! misho 7477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
1.1 misho 7478: $as_echo "$MAGIC_CMD" >&6; }
7479: else
1.1.1.2 ! misho 7480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 7481: $as_echo "no" >&6; }
7482: fi
7483:
7484:
7485: else
7486: MAGIC_CMD=:
7487: fi
7488: fi
7489:
7490: fi
7491: ;;
7492: esac
7493:
7494: # Use C for the default configuration in the libtool script
7495:
7496: lt_save_CC="$CC"
7497: ac_ext=c
7498: ac_cpp='$CPP $CPPFLAGS'
7499: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502:
7503:
7504: # Source file extension for C test sources.
7505: ac_ext=c
7506:
7507: # Object file extension for compiled C test sources.
7508: objext=o
7509: objext=$objext
7510:
7511: # Code to be used in simple compile tests
7512: lt_simple_compile_test_code="int some_variable = 0;"
7513:
7514: # Code to be used in simple link tests
7515: lt_simple_link_test_code='int main(){return(0);}'
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523: # If no C compiler was specified, use CC.
7524: LTCC=${LTCC-"$CC"}
7525:
7526: # If no C compiler flags were specified, use CFLAGS.
7527: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7528:
7529: # Allow CC to be a program name with arguments.
7530: compiler=$CC
7531:
7532: # Save the default compiler, since it gets overwritten when the other
7533: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7534: compiler_DEFAULT=$CC
7535:
7536: # save warnings/boilerplate of simple test code
7537: ac_outfile=conftest.$ac_objext
7538: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7539: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7540: _lt_compiler_boilerplate=`cat conftest.err`
7541: $RM conftest*
7542:
7543: ac_outfile=conftest.$ac_objext
7544: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7545: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7546: _lt_linker_boilerplate=`cat conftest.err`
7547: $RM -r conftest*
7548:
7549:
7550: ## CAVEAT EMPTOR:
7551: ## There is no encapsulation within the following macros, do not change
7552: ## the running order or otherwise move them around unless you know exactly
7553: ## what you are doing...
7554: if test -n "$compiler"; then
7555:
7556: lt_prog_compiler_no_builtin_flag=
7557:
7558: if test "$GCC" = yes; then
1.1.1.2 ! misho 7559: case $cc_basename in
! 7560: nvcc*)
! 7561: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
! 7562: *)
! 7563: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
! 7564: esac
1.1 misho 7565:
1.1.1.2 ! misho 7566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
1.1 misho 7567: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
1.1.1.2 ! misho 7568: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
1.1 misho 7569: $as_echo_n "(cached) " >&6
7570: else
7571: lt_cv_prog_compiler_rtti_exceptions=no
7572: ac_outfile=conftest.$ac_objext
7573: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7574: lt_compiler_flag="-fno-rtti -fno-exceptions"
7575: # Insert the option either (1) after the last *FLAGS variable, or
7576: # (2) before a word containing "conftest.", or (3) at the end.
7577: # Note that $ac_compile itself does not contain backslashes and begins
7578: # with a dollar sign (not a hyphen), so the echo should work correctly.
7579: # The option is referenced via a variable to avoid confusing sed.
7580: lt_compile=`echo "$ac_compile" | $SED \
7581: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7582: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7583: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho 7584: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 7585: (eval "$lt_compile" 2>conftest.err)
7586: ac_status=$?
7587: cat conftest.err >&5
1.1.1.2 ! misho 7588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 7589: if (exit $ac_status) && test -s "$ac_outfile"; then
7590: # The compiler can only warn and ignore the option if not recognized
7591: # So say no if there are warnings other than the usual output.
1.1.1.2 ! misho 7592: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1.1 misho 7593: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7594: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7595: lt_cv_prog_compiler_rtti_exceptions=yes
7596: fi
7597: fi
7598: $RM conftest*
7599:
7600: fi
1.1.1.2 ! misho 7601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
1.1 misho 7602: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7603:
7604: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7605: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7606: else
7607: :
7608: fi
7609:
7610: fi
7611:
7612:
7613:
7614:
7615:
7616:
7617: lt_prog_compiler_wl=
7618: lt_prog_compiler_pic=
7619: lt_prog_compiler_static=
7620:
7621:
7622: if test "$GCC" = yes; then
7623: lt_prog_compiler_wl='-Wl,'
7624: lt_prog_compiler_static='-static'
7625:
7626: case $host_os in
7627: aix*)
7628: # All AIX code is PIC.
7629: if test "$host_cpu" = ia64; then
7630: # AIX 5 now supports IA64 processor
7631: lt_prog_compiler_static='-Bstatic'
7632: fi
7633: ;;
7634:
7635: amigaos*)
7636: case $host_cpu in
7637: powerpc)
7638: # see comment about AmigaOS4 .so support
7639: lt_prog_compiler_pic='-fPIC'
7640: ;;
7641: m68k)
7642: # FIXME: we need at least 68020 code to build shared libraries, but
7643: # adding the `-m68020' flag to GCC prevents building anything better,
7644: # like `-m68040'.
7645: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7646: ;;
7647: esac
7648: ;;
7649:
7650: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7651: # PIC is the default for these OSes.
7652: ;;
7653:
7654: mingw* | cygwin* | pw32* | os2* | cegcc*)
7655: # This hack is so that the source file can tell whether it is being
7656: # built for inclusion in a dll (and should export symbols for example).
7657: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7658: # (--disable-auto-import) libraries
7659: lt_prog_compiler_pic='-DDLL_EXPORT'
7660: ;;
7661:
7662: darwin* | rhapsody*)
7663: # PIC is the default on this platform
7664: # Common symbols not allowed in MH_DYLIB files
7665: lt_prog_compiler_pic='-fno-common'
7666: ;;
7667:
1.1.1.2 ! misho 7668: haiku*)
! 7669: # PIC is the default for Haiku.
! 7670: # The "-static" flag exists, but is broken.
! 7671: lt_prog_compiler_static=
! 7672: ;;
! 7673:
1.1 misho 7674: hpux*)
7675: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7676: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7677: # sets the default TLS model and affects inlining.
7678: case $host_cpu in
7679: hppa*64*)
7680: # +Z the default
7681: ;;
7682: *)
7683: lt_prog_compiler_pic='-fPIC'
7684: ;;
7685: esac
7686: ;;
7687:
7688: interix[3-9]*)
7689: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7690: # Instead, we relocate shared libraries at runtime.
7691: ;;
7692:
7693: msdosdjgpp*)
7694: # Just because we use GCC doesn't mean we suddenly get shared libraries
7695: # on systems that don't support them.
7696: lt_prog_compiler_can_build_shared=no
7697: enable_shared=no
7698: ;;
7699:
7700: *nto* | *qnx*)
7701: # QNX uses GNU C++, but need to define -shared option too, otherwise
7702: # it will coredump.
7703: lt_prog_compiler_pic='-fPIC -shared'
7704: ;;
7705:
7706: sysv4*MP*)
7707: if test -d /usr/nec; then
7708: lt_prog_compiler_pic=-Kconform_pic
7709: fi
7710: ;;
7711:
7712: *)
7713: lt_prog_compiler_pic='-fPIC'
7714: ;;
7715: esac
1.1.1.2 ! misho 7716:
! 7717: case $cc_basename in
! 7718: nvcc*) # Cuda Compiler Driver 2.2
! 7719: lt_prog_compiler_wl='-Xlinker '
! 7720: lt_prog_compiler_pic='-Xcompiler -fPIC'
! 7721: ;;
! 7722: esac
1.1 misho 7723: else
7724: # PORTME Check for flag to pass linker flags through the system compiler.
7725: case $host_os in
7726: aix*)
7727: lt_prog_compiler_wl='-Wl,'
7728: if test "$host_cpu" = ia64; then
7729: # AIX 5 now supports IA64 processor
7730: lt_prog_compiler_static='-Bstatic'
7731: else
7732: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7733: fi
7734: ;;
7735:
7736: mingw* | cygwin* | pw32* | os2* | cegcc*)
7737: # This hack is so that the source file can tell whether it is being
7738: # built for inclusion in a dll (and should export symbols for example).
7739: lt_prog_compiler_pic='-DDLL_EXPORT'
7740: ;;
7741:
7742: hpux9* | hpux10* | hpux11*)
7743: lt_prog_compiler_wl='-Wl,'
7744: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7745: # not for PA HP-UX.
7746: case $host_cpu in
7747: hppa*64*|ia64*)
7748: # +Z the default
7749: ;;
7750: *)
7751: lt_prog_compiler_pic='+Z'
7752: ;;
7753: esac
7754: # Is there a better lt_prog_compiler_static that works with the bundled CC?
7755: lt_prog_compiler_static='${wl}-a ${wl}archive'
7756: ;;
7757:
7758: irix5* | irix6* | nonstopux*)
7759: lt_prog_compiler_wl='-Wl,'
7760: # PIC (with -KPIC) is the default.
7761: lt_prog_compiler_static='-non_shared'
7762: ;;
7763:
1.1.1.2 ! misho 7764: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1 misho 7765: case $cc_basename in
7766: # old Intel for x86_64 which still supported -KPIC.
7767: ecc*)
7768: lt_prog_compiler_wl='-Wl,'
7769: lt_prog_compiler_pic='-KPIC'
7770: lt_prog_compiler_static='-static'
7771: ;;
7772: # icc used to be incompatible with GCC.
7773: # ICC 10 doesn't accept -KPIC any more.
7774: icc* | ifort*)
7775: lt_prog_compiler_wl='-Wl,'
7776: lt_prog_compiler_pic='-fPIC'
7777: lt_prog_compiler_static='-static'
7778: ;;
7779: # Lahey Fortran 8.1.
7780: lf95*)
7781: lt_prog_compiler_wl='-Wl,'
7782: lt_prog_compiler_pic='--shared'
7783: lt_prog_compiler_static='--static'
7784: ;;
1.1.1.2 ! misho 7785: nagfor*)
! 7786: # NAG Fortran compiler
! 7787: lt_prog_compiler_wl='-Wl,-Wl,,'
! 7788: lt_prog_compiler_pic='-PIC'
! 7789: lt_prog_compiler_static='-Bstatic'
! 7790: ;;
! 7791: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1.1 misho 7792: # Portland Group compilers (*not* the Pentium gcc compiler,
7793: # which looks to be a dead project)
7794: lt_prog_compiler_wl='-Wl,'
7795: lt_prog_compiler_pic='-fpic'
7796: lt_prog_compiler_static='-Bstatic'
7797: ;;
7798: ccc*)
7799: lt_prog_compiler_wl='-Wl,'
7800: # All Alpha code is PIC.
7801: lt_prog_compiler_static='-non_shared'
7802: ;;
1.1.1.2 ! misho 7803: xl* | bgxl* | bgf* | mpixl*)
! 7804: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
1.1 misho 7805: lt_prog_compiler_wl='-Wl,'
7806: lt_prog_compiler_pic='-qpic'
7807: lt_prog_compiler_static='-qstaticlink'
7808: ;;
7809: *)
7810: case `$CC -V 2>&1 | sed 5q` in
1.1.1.2 ! misho 7811: *Sun\ F* | *Sun*Fortran*)
! 7812: # Sun Fortran 8.3 passes all unrecognized flags to the linker
1.1 misho 7813: lt_prog_compiler_pic='-KPIC'
7814: lt_prog_compiler_static='-Bstatic'
1.1.1.2 ! misho 7815: lt_prog_compiler_wl=''
1.1 misho 7816: ;;
1.1.1.2 ! misho 7817: *Sun\ C*)
! 7818: # Sun C 5.9
1.1 misho 7819: lt_prog_compiler_pic='-KPIC'
7820: lt_prog_compiler_static='-Bstatic'
1.1.1.2 ! misho 7821: lt_prog_compiler_wl='-Wl,'
1.1 misho 7822: ;;
7823: esac
7824: ;;
7825: esac
7826: ;;
7827:
7828: newsos6)
7829: lt_prog_compiler_pic='-KPIC'
7830: lt_prog_compiler_static='-Bstatic'
7831: ;;
7832:
7833: *nto* | *qnx*)
7834: # QNX uses GNU C++, but need to define -shared option too, otherwise
7835: # it will coredump.
7836: lt_prog_compiler_pic='-fPIC -shared'
7837: ;;
7838:
7839: osf3* | osf4* | osf5*)
7840: lt_prog_compiler_wl='-Wl,'
7841: # All OSF/1 code is PIC.
7842: lt_prog_compiler_static='-non_shared'
7843: ;;
7844:
7845: rdos*)
7846: lt_prog_compiler_static='-non_shared'
7847: ;;
7848:
7849: solaris*)
7850: lt_prog_compiler_pic='-KPIC'
7851: lt_prog_compiler_static='-Bstatic'
7852: case $cc_basename in
1.1.1.2 ! misho 7853: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
1.1 misho 7854: lt_prog_compiler_wl='-Qoption ld ';;
7855: *)
7856: lt_prog_compiler_wl='-Wl,';;
7857: esac
7858: ;;
7859:
7860: sunos4*)
7861: lt_prog_compiler_wl='-Qoption ld '
7862: lt_prog_compiler_pic='-PIC'
7863: lt_prog_compiler_static='-Bstatic'
7864: ;;
7865:
7866: sysv4 | sysv4.2uw2* | sysv4.3*)
7867: lt_prog_compiler_wl='-Wl,'
7868: lt_prog_compiler_pic='-KPIC'
7869: lt_prog_compiler_static='-Bstatic'
7870: ;;
7871:
7872: sysv4*MP*)
7873: if test -d /usr/nec ;then
7874: lt_prog_compiler_pic='-Kconform_pic'
7875: lt_prog_compiler_static='-Bstatic'
7876: fi
7877: ;;
7878:
7879: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7880: lt_prog_compiler_wl='-Wl,'
7881: lt_prog_compiler_pic='-KPIC'
7882: lt_prog_compiler_static='-Bstatic'
7883: ;;
7884:
7885: unicos*)
7886: lt_prog_compiler_wl='-Wl,'
7887: lt_prog_compiler_can_build_shared=no
7888: ;;
7889:
7890: uts4*)
7891: lt_prog_compiler_pic='-pic'
7892: lt_prog_compiler_static='-Bstatic'
7893: ;;
7894:
7895: *)
7896: lt_prog_compiler_can_build_shared=no
7897: ;;
7898: esac
7899: fi
7900:
7901: case $host_os in
7902: # For platforms which do not support PIC, -DPIC is meaningless:
7903: *djgpp*)
7904: lt_prog_compiler_pic=
7905: ;;
7906: *)
7907: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7908: ;;
7909: esac
7910:
1.1.1.2 ! misho 7911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 7912: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
! 7913: if ${lt_cv_prog_compiler_pic+:} false; then :
! 7914: $as_echo_n "(cached) " >&6
! 7915: else
! 7916: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
! 7917: fi
! 7918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 7919: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
! 7920: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misho 7921:
7922: #
7923: # Check to make sure the PIC flag actually works.
7924: #
7925: if test -n "$lt_prog_compiler_pic"; then
1.1.1.2 ! misho 7926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
1.1 misho 7927: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
1.1.1.2 ! misho 7928: if ${lt_cv_prog_compiler_pic_works+:} false; then :
1.1 misho 7929: $as_echo_n "(cached) " >&6
7930: else
7931: lt_cv_prog_compiler_pic_works=no
7932: ac_outfile=conftest.$ac_objext
7933: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7934: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7935: # Insert the option either (1) after the last *FLAGS variable, or
7936: # (2) before a word containing "conftest.", or (3) at the end.
7937: # Note that $ac_compile itself does not contain backslashes and begins
7938: # with a dollar sign (not a hyphen), so the echo should work correctly.
7939: # The option is referenced via a variable to avoid confusing sed.
7940: lt_compile=`echo "$ac_compile" | $SED \
7941: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho 7944: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 7945: (eval "$lt_compile" 2>conftest.err)
7946: ac_status=$?
7947: cat conftest.err >&5
1.1.1.2 ! misho 7948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 7949: if (exit $ac_status) && test -s "$ac_outfile"; then
7950: # The compiler can only warn and ignore the option if not recognized
7951: # So say no if there are warnings other than the usual output.
1.1.1.2 ! misho 7952: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1.1 misho 7953: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7955: lt_cv_prog_compiler_pic_works=yes
7956: fi
7957: fi
7958: $RM conftest*
7959:
7960: fi
1.1.1.2 ! misho 7961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
1.1 misho 7962: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7963:
7964: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7965: case $lt_prog_compiler_pic in
7966: "" | " "*) ;;
7967: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7968: esac
7969: else
7970: lt_prog_compiler_pic=
7971: lt_prog_compiler_can_build_shared=no
7972: fi
7973:
7974: fi
7975:
7976:
7977:
7978:
7979:
7980:
1.1.1.2 ! misho 7981:
! 7982:
! 7983:
! 7984:
! 7985:
1.1 misho 7986: #
7987: # Check to make sure the static flag actually works.
7988: #
7989: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.1.1.2 ! misho 7990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1.1 misho 7991: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
1.1.1.2 ! misho 7992: if ${lt_cv_prog_compiler_static_works+:} false; then :
1.1 misho 7993: $as_echo_n "(cached) " >&6
7994: else
7995: lt_cv_prog_compiler_static_works=no
7996: save_LDFLAGS="$LDFLAGS"
7997: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7998: echo "$lt_simple_link_test_code" > conftest.$ac_ext
7999: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8000: # The linker can only warn and ignore the option if not recognized
8001: # So say no if there are warnings
8002: if test -s conftest.err; then
8003: # Append any errors to the config.log.
8004: cat conftest.err 1>&5
1.1.1.2 ! misho 8005: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1.1 misho 8006: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8007: if diff conftest.exp conftest.er2 >/dev/null; then
8008: lt_cv_prog_compiler_static_works=yes
8009: fi
8010: else
8011: lt_cv_prog_compiler_static_works=yes
8012: fi
8013: fi
8014: $RM -r conftest*
8015: LDFLAGS="$save_LDFLAGS"
8016:
8017: fi
1.1.1.2 ! misho 8018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
1.1 misho 8019: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8020:
8021: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8022: :
8023: else
8024: lt_prog_compiler_static=
8025: fi
8026:
8027:
8028:
8029:
8030:
8031:
8032:
1.1.1.2 ! misho 8033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1.1 misho 8034: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 ! misho 8035: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 8036: $as_echo_n "(cached) " >&6
8037: else
8038: lt_cv_prog_compiler_c_o=no
8039: $RM -r conftest 2>/dev/null
8040: mkdir conftest
8041: cd conftest
8042: mkdir out
8043: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044:
8045: lt_compiler_flag="-o out/conftest2.$ac_objext"
8046: # Insert the option either (1) after the last *FLAGS variable, or
8047: # (2) before a word containing "conftest.", or (3) at the end.
8048: # Note that $ac_compile itself does not contain backslashes and begins
8049: # with a dollar sign (not a hyphen), so the echo should work correctly.
8050: lt_compile=`echo "$ac_compile" | $SED \
8051: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho 8054: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8055: (eval "$lt_compile" 2>out/conftest.err)
8056: ac_status=$?
8057: cat out/conftest.err >&5
1.1.1.2 ! misho 8058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8059: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060: then
8061: # The compiler can only warn and ignore the option if not recognized
8062: # So say no if there are warnings
1.1.1.2 ! misho 8063: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1.1 misho 8064: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066: lt_cv_prog_compiler_c_o=yes
8067: fi
8068: fi
8069: chmod u+w . 2>&5
8070: $RM conftest*
8071: # SGI C++ compiler will create directory out/ii_files/ for
8072: # template instantiation
8073: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8074: $RM out/* && rmdir out
8075: cd ..
8076: $RM -r conftest
8077: $RM conftest*
8078:
8079: fi
1.1.1.2 ! misho 8080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
1.1 misho 8081: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8082:
8083:
8084:
8085:
8086:
8087:
1.1.1.2 ! misho 8088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1.1 misho 8089: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
1.1.1.2 ! misho 8090: if ${lt_cv_prog_compiler_c_o+:} false; then :
1.1 misho 8091: $as_echo_n "(cached) " >&6
8092: else
8093: lt_cv_prog_compiler_c_o=no
8094: $RM -r conftest 2>/dev/null
8095: mkdir conftest
8096: cd conftest
8097: mkdir out
8098: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099:
8100: lt_compiler_flag="-o out/conftest2.$ac_objext"
8101: # Insert the option either (1) after the last *FLAGS variable, or
8102: # (2) before a word containing "conftest.", or (3) at the end.
8103: # Note that $ac_compile itself does not contain backslashes and begins
8104: # with a dollar sign (not a hyphen), so the echo should work correctly.
8105: lt_compile=`echo "$ac_compile" | $SED \
8106: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho 8109: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1.1 misho 8110: (eval "$lt_compile" 2>out/conftest.err)
8111: ac_status=$?
8112: cat out/conftest.err >&5
1.1.1.2 ! misho 8113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 misho 8114: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8115: then
8116: # The compiler can only warn and ignore the option if not recognized
8117: # So say no if there are warnings
1.1.1.2 ! misho 8118: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1.1 misho 8119: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8120: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8121: lt_cv_prog_compiler_c_o=yes
8122: fi
8123: fi
8124: chmod u+w . 2>&5
8125: $RM conftest*
8126: # SGI C++ compiler will create directory out/ii_files/ for
8127: # template instantiation
8128: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8129: $RM out/* && rmdir out
8130: cd ..
8131: $RM -r conftest
8132: $RM conftest*
8133:
8134: fi
1.1.1.2 ! misho 8135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
1.1 misho 8136: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8137:
8138:
8139:
8140:
8141: hard_links="nottested"
8142: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8143: # do not overwrite the value of need_locks provided by the user
1.1.1.2 ! misho 8144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
1.1 misho 8145: $as_echo_n "checking if we can lock with hard links... " >&6; }
8146: hard_links=yes
8147: $RM conftest*
8148: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149: touch conftest.a
8150: ln conftest.a conftest.b 2>&5 || hard_links=no
8151: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.2 ! misho 8152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
1.1 misho 8153: $as_echo "$hard_links" >&6; }
8154: if test "$hard_links" = no; then
1.1.1.2 ! misho 8155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
1.1 misho 8156: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8157: need_locks=warn
8158: fi
8159: else
8160: need_locks=no
8161: fi
8162:
8163:
8164:
8165:
8166:
8167:
1.1.1.2 ! misho 8168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.1 misho 8169: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8170:
8171: runpath_var=
8172: allow_undefined_flag=
8173: always_export_symbols=no
8174: archive_cmds=
8175: archive_expsym_cmds=
8176: compiler_needs_object=no
8177: enable_shared_with_static_runtimes=no
8178: export_dynamic_flag_spec=
8179: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8180: hardcode_automatic=no
8181: hardcode_direct=no
8182: hardcode_direct_absolute=no
8183: hardcode_libdir_flag_spec=
8184: hardcode_libdir_flag_spec_ld=
8185: hardcode_libdir_separator=
8186: hardcode_minus_L=no
8187: hardcode_shlibpath_var=unsupported
8188: inherit_rpath=no
8189: link_all_deplibs=unknown
8190: module_cmds=
8191: module_expsym_cmds=
8192: old_archive_from_new_cmds=
8193: old_archive_from_expsyms_cmds=
8194: thread_safe_flag_spec=
8195: whole_archive_flag_spec=
8196: # include_expsyms should be a list of space-separated symbols to be *always*
8197: # included in the symbol list
8198: include_expsyms=
8199: # exclude_expsyms can be an extended regexp of symbols to exclude
8200: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8201: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8202: # as well as any symbol that contains `d'.
8203: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8204: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8205: # platforms (ab)use it in PIC code, but their linkers get confused if
8206: # the symbol is explicitly referenced. Since portable code cannot
8207: # rely on this symbol name, it's probably fine to never include it in
8208: # preloaded symbol tables.
8209: # Exclude shared library initialization/finalization symbols.
8210: extract_expsyms_cmds=
8211:
8212: case $host_os in
8213: cygwin* | mingw* | pw32* | cegcc*)
8214: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8215: # When not using gcc, we currently assume that we are using
8216: # Microsoft Visual C++.
8217: if test "$GCC" != yes; then
8218: with_gnu_ld=no
8219: fi
8220: ;;
8221: interix*)
8222: # we just hope/assume this is gcc and not c89 (= MSVC++)
8223: with_gnu_ld=yes
8224: ;;
8225: openbsd*)
8226: with_gnu_ld=no
8227: ;;
8228: esac
8229:
8230: ld_shlibs=yes
1.1.1.2 ! misho 8231:
! 8232: # On some targets, GNU ld is compatible enough with the native linker
! 8233: # that we're better off using the native interface for both.
! 8234: lt_use_gnu_ld_interface=no
1.1 misho 8235: if test "$with_gnu_ld" = yes; then
1.1.1.2 ! misho 8236: case $host_os in
! 8237: aix*)
! 8238: # The AIX port of GNU ld has always aspired to compatibility
! 8239: # with the native linker. However, as the warning in the GNU ld
! 8240: # block says, versions before 2.19.5* couldn't really create working
! 8241: # shared libraries, regardless of the interface used.
! 8242: case `$LD -v 2>&1` in
! 8243: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
! 8244: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
! 8245: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
! 8246: *)
! 8247: lt_use_gnu_ld_interface=yes
! 8248: ;;
! 8249: esac
! 8250: ;;
! 8251: *)
! 8252: lt_use_gnu_ld_interface=yes
! 8253: ;;
! 8254: esac
! 8255: fi
! 8256:
! 8257: if test "$lt_use_gnu_ld_interface" = yes; then
1.1 misho 8258: # If archive_cmds runs LD, not CC, wlarc should be empty
8259: wlarc='${wl}'
8260:
8261: # Set some defaults for GNU ld with shared library support. These
8262: # are reset later if shared libraries are not supported. Putting them
8263: # here allows them to be overridden if necessary.
8264: runpath_var=LD_RUN_PATH
8265: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8266: export_dynamic_flag_spec='${wl}--export-dynamic'
8267: # ancient GNU ld didn't support --whole-archive et. al.
8268: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8269: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8270: else
8271: whole_archive_flag_spec=
8272: fi
8273: supports_anon_versioning=no
8274: case `$LD -v 2>&1` in
1.1.1.2 ! misho 8275: *GNU\ gold*) supports_anon_versioning=yes ;;
1.1 misho 8276: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8277: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8278: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8279: *\ 2.11.*) ;; # other 2.11 versions
8280: *) supports_anon_versioning=yes ;;
8281: esac
8282:
8283: # See if GNU ld supports shared libraries.
8284: case $host_os in
8285: aix[3-9]*)
8286: # On AIX/PPC, the GNU linker is very broken
8287: if test "$host_cpu" != ia64; then
8288: ld_shlibs=no
8289: cat <<_LT_EOF 1>&2
8290:
1.1.1.2 ! misho 8291: *** Warning: the GNU linker, at least up to release 2.19, is reported
1.1 misho 8292: *** to be unable to reliably create shared libraries on AIX.
8293: *** Therefore, libtool is disabling shared libraries support. If you
1.1.1.2 ! misho 8294: *** really care for shared libraries, you may want to install binutils
! 8295: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
! 8296: *** You will then need to restart the configuration process.
1.1 misho 8297:
8298: _LT_EOF
8299: fi
8300: ;;
8301:
8302: amigaos*)
8303: case $host_cpu in
8304: powerpc)
8305: # see comment about AmigaOS4 .so support
8306: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307: archive_expsym_cmds=''
8308: ;;
8309: m68k)
8310: 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)'
8311: hardcode_libdir_flag_spec='-L$libdir'
8312: hardcode_minus_L=yes
8313: ;;
8314: esac
8315: ;;
8316:
8317: beos*)
8318: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8319: allow_undefined_flag=unsupported
8320: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8321: # support --undefined. This deserves some investigation. FIXME
8322: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8323: else
8324: ld_shlibs=no
8325: fi
8326: ;;
8327:
8328: cygwin* | mingw* | pw32* | cegcc*)
8329: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8330: # as there is no search path for DLLs.
8331: hardcode_libdir_flag_spec='-L$libdir'
1.1.1.2 ! misho 8332: export_dynamic_flag_spec='${wl}--export-all-symbols'
1.1 misho 8333: allow_undefined_flag=unsupported
8334: always_export_symbols=no
8335: enable_shared_with_static_runtimes=yes
1.1.1.2 ! misho 8336: 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'
! 8337: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.1 misho 8338:
8339: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8340: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8341: # If the export-symbols file already is a .def file (1st line
8342: # is EXPORTS), use it as is; otherwise, prepend...
8343: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8344: cp $export_symbols $output_objdir/$soname.def;
8345: else
8346: echo EXPORTS > $output_objdir/$soname.def;
8347: cat $export_symbols >> $output_objdir/$soname.def;
8348: fi~
8349: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8350: else
8351: ld_shlibs=no
8352: fi
8353: ;;
8354:
1.1.1.2 ! misho 8355: haiku*)
! 8356: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8357: link_all_deplibs=yes
! 8358: ;;
! 8359:
1.1 misho 8360: interix[3-9]*)
8361: hardcode_direct=no
8362: hardcode_shlibpath_var=no
8363: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364: export_dynamic_flag_spec='${wl}-E'
8365: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8366: # Instead, shared libraries are loaded at an image base (0x10000000 by
8367: # default) and relocated if they conflict, which is a slow very memory
8368: # consuming and fragmenting process. To avoid this, we pick a random,
8369: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8370: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8371: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8372: 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'
8373: ;;
8374:
1.1.1.2 ! misho 8375: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1.1 misho 8376: tmp_diet=no
8377: if test "$host_os" = linux-dietlibc; then
8378: case $cc_basename in
8379: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8380: esac
8381: fi
8382: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8383: && test "$tmp_diet" = no
8384: then
1.1.1.2 ! misho 8385: tmp_addflag=' $pic_flag'
1.1 misho 8386: tmp_sharedflag='-shared'
8387: case $cc_basename,$host_cpu in
8388: pgcc*) # Portland Group C compiler
1.1.1.2 ! misho 8389: 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 8390: tmp_addflag=' $pic_flag'
8391: ;;
1.1.1.2 ! misho 8392: pgf77* | pgf90* | pgf95* | pgfortran*)
! 8393: # Portland Group f77 and f90 compilers
! 8394: 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 8395: tmp_addflag=' $pic_flag -Mnomain' ;;
8396: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8397: tmp_addflag=' -i_dynamic' ;;
8398: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8399: tmp_addflag=' -i_dynamic -nofor_main' ;;
8400: ifc* | ifort*) # Intel Fortran compiler
8401: tmp_addflag=' -nofor_main' ;;
8402: lf95*) # Lahey Fortran 8.1
8403: whole_archive_flag_spec=
8404: tmp_sharedflag='--shared' ;;
1.1.1.2 ! misho 8405: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1.1 misho 8406: tmp_sharedflag='-qmkshrobj'
8407: tmp_addflag= ;;
1.1.1.2 ! misho 8408: nvcc*) # Cuda Compiler Driver 2.2
! 8409: 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'
! 8410: compiler_needs_object=yes
! 8411: ;;
1.1 misho 8412: esac
8413: case `$CC -V 2>&1 | sed 5q` in
8414: *Sun\ C*) # Sun C 5.9
1.1.1.2 ! misho 8415: 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 8416: compiler_needs_object=yes
8417: tmp_sharedflag='-G' ;;
8418: *Sun\ F*) # Sun Fortran 8.3
8419: tmp_sharedflag='-G' ;;
8420: esac
8421: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422:
8423: if test "x$supports_anon_versioning" = xyes; then
8424: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8425: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8426: echo "local: *; };" >> $output_objdir/$libname.ver~
8427: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8428: fi
8429:
8430: case $cc_basename in
1.1.1.2 ! misho 8431: xlf* | bgf* | bgxlf* | mpixlf*)
1.1 misho 8432: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8433: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8434: hardcode_libdir_flag_spec=
8435: hardcode_libdir_flag_spec_ld='-rpath $libdir'
1.1.1.2 ! misho 8436: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.1 misho 8437: if test "x$supports_anon_versioning" = xyes; then
8438: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8439: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8440: echo "local: *; };" >> $output_objdir/$libname.ver~
1.1.1.2 ! misho 8441: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.1 misho 8442: fi
8443: ;;
8444: esac
8445: else
8446: ld_shlibs=no
8447: fi
8448: ;;
8449:
8450: netbsd*)
8451: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8452: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8453: wlarc=
8454: else
1.1.1.2 ! misho 8455: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8456: 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 8457: fi
8458: ;;
8459:
8460: solaris*)
8461: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8462: ld_shlibs=no
8463: cat <<_LT_EOF 1>&2
8464:
8465: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8466: *** create shared libraries on Solaris systems. Therefore, libtool
8467: *** is disabling shared libraries support. We urge you to upgrade GNU
8468: *** binutils to release 2.9.1 or newer. Another option is to modify
8469: *** your PATH or compiler configuration so that the native linker is
8470: *** used, and then restart.
8471:
8472: _LT_EOF
8473: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.2 ! misho 8474: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8475: 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 8476: else
8477: ld_shlibs=no
8478: fi
8479: ;;
8480:
8481: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8482: case `$LD -v 2>&1` in
8483: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8484: ld_shlibs=no
8485: cat <<_LT_EOF 1>&2
8486:
8487: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8488: *** reliably create shared libraries on SCO systems. Therefore, libtool
8489: *** is disabling shared libraries support. We urge you to upgrade GNU
8490: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8491: *** your PATH or compiler configuration so that the native linker is
8492: *** used, and then restart.
8493:
8494: _LT_EOF
8495: ;;
8496: *)
8497: # For security reasons, it is highly recommended that you always
8498: # use absolute paths for naming shared libraries, and exclude the
8499: # DT_RUNPATH tag from executables and libraries. But doing so
8500: # requires that you compile everything twice, which is a pain.
8501: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8502: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8503: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8505: else
8506: ld_shlibs=no
8507: fi
8508: ;;
8509: esac
8510: ;;
8511:
8512: sunos4*)
8513: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8514: wlarc=
8515: hardcode_direct=yes
8516: hardcode_shlibpath_var=no
8517: ;;
8518:
8519: *)
8520: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.1.1.2 ! misho 8521: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8522: 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 8523: else
8524: ld_shlibs=no
8525: fi
8526: ;;
8527: esac
8528:
8529: if test "$ld_shlibs" = no; then
8530: runpath_var=
8531: hardcode_libdir_flag_spec=
8532: export_dynamic_flag_spec=
8533: whole_archive_flag_spec=
8534: fi
8535: else
8536: # PORTME fill in a description of your system's linker (not GNU ld)
8537: case $host_os in
8538: aix3*)
8539: allow_undefined_flag=unsupported
8540: always_export_symbols=yes
8541: 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'
8542: # Note: this linker hardcodes the directories in LIBPATH if there
8543: # are no directories specified by -L.
8544: hardcode_minus_L=yes
8545: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8546: # Neither direct hardcoding nor static linking is supported with a
8547: # broken collect2.
8548: hardcode_direct=unsupported
8549: fi
8550: ;;
8551:
8552: aix[4-9]*)
8553: if test "$host_cpu" = ia64; then
8554: # On IA64, the linker does run time linking by default, so we don't
8555: # have to do anything special.
8556: aix_use_runtimelinking=no
8557: exp_sym_flag='-Bexport'
8558: no_entry_flag=""
8559: else
8560: # If we're using GNU nm, then we don't want the "-C" option.
8561: # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.1.1.2 ! misho 8562: # Also, AIX nm treats weak defined symbols like other global
! 8563: # defined symbols, whereas GNU nm marks them as "W".
1.1 misho 8564: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.1.1.2 ! misho 8565: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1.1 misho 8566: else
8567: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8568: fi
8569: aix_use_runtimelinking=no
8570:
8571: # Test if we are trying to use run time linking or normal
8572: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8573: # need to do runtime linking.
8574: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8575: for ld_flag in $LDFLAGS; do
8576: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8577: aix_use_runtimelinking=yes
8578: break
8579: fi
8580: done
8581: ;;
8582: esac
8583:
8584: exp_sym_flag='-bexport'
8585: no_entry_flag='-bnoentry'
8586: fi
8587:
8588: # When large executables or shared objects are built, AIX ld can
8589: # have problems creating the table of contents. If linking a library
8590: # or program results in "error TOC overflow" add -mminimal-toc to
8591: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8592: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8593:
8594: archive_cmds=''
8595: hardcode_direct=yes
8596: hardcode_direct_absolute=yes
8597: hardcode_libdir_separator=':'
8598: link_all_deplibs=yes
8599: file_list_spec='${wl}-f,'
8600:
8601: if test "$GCC" = yes; then
8602: case $host_os in aix4.[012]|aix4.[012].*)
8603: # We only want to do this on AIX 4.2 and lower, the check
8604: # below for broken collect2 doesn't work under 4.3+
8605: collect2name=`${CC} -print-prog-name=collect2`
8606: if test -f "$collect2name" &&
8607: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8608: then
8609: # We have reworked collect2
8610: :
8611: else
8612: # We have old collect2
8613: hardcode_direct=unsupported
8614: # It fails to find uninstalled libraries when the uninstalled
8615: # path is not listed in the libpath. Setting hardcode_minus_L
8616: # to unsupported forces relinking
8617: hardcode_minus_L=yes
8618: hardcode_libdir_flag_spec='-L$libdir'
8619: hardcode_libdir_separator=
8620: fi
8621: ;;
8622: esac
8623: shared_flag='-shared'
8624: if test "$aix_use_runtimelinking" = yes; then
8625: shared_flag="$shared_flag "'${wl}-G'
8626: fi
8627: else
8628: # not using gcc
8629: if test "$host_cpu" = ia64; then
8630: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8631: # chokes on -Wl,-G. The following line is correct:
8632: shared_flag='-G'
8633: else
8634: if test "$aix_use_runtimelinking" = yes; then
8635: shared_flag='${wl}-G'
8636: else
8637: shared_flag='${wl}-bM:SRE'
8638: fi
8639: fi
8640: fi
8641:
8642: export_dynamic_flag_spec='${wl}-bexpall'
8643: # It seems that -bexpall does not export symbols beginning with
8644: # underscore (_), so it is better to generate a list of symbols to export.
8645: always_export_symbols=yes
8646: if test "$aix_use_runtimelinking" = yes; then
8647: # Warning - without using the other runtime loading flags (-brtl),
8648: # -berok will link without error, but may produce a broken library.
8649: allow_undefined_flag='-berok'
8650: # Determine the default libpath from the value encoded in an
8651: # empty executable.
1.1.1.2 ! misho 8652: if test "${lt_cv_aix_libpath+set}" = set; then
! 8653: aix_libpath=$lt_cv_aix_libpath
! 8654: else
! 8655: if ${lt_cv_aix_libpath_+:} false; then :
! 8656: $as_echo_n "(cached) " >&6
! 8657: else
! 8658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 8659: /* end confdefs.h. */
8660:
8661: int
8662: main ()
8663: {
8664:
8665: ;
8666: return 0;
8667: }
8668: _ACEOF
1.1.1.2 ! misho 8669: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 8670:
1.1.1.2 ! misho 8671: lt_aix_libpath_sed='
! 8672: /Import File Strings/,/^$/ {
! 8673: /^0/ {
! 8674: s/^0 *\([^ ]*\) *$/\1/
! 8675: p
! 8676: }
! 8677: }'
! 8678: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8679: # Check for a 64-bit object if we didn't find anything.
! 8680: if test -z "$lt_cv_aix_libpath_"; then
! 8681: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8682: fi
1.1 misho 8683: fi
1.1.1.2 ! misho 8684: rm -f core conftest.err conftest.$ac_objext \
! 8685: conftest$ac_exeext conftest.$ac_ext
! 8686: if test -z "$lt_cv_aix_libpath_"; then
! 8687: lt_cv_aix_libpath_="/usr/lib:/lib"
! 8688: fi
1.1 misho 8689:
8690: fi
8691:
1.1.1.2 ! misho 8692: aix_libpath=$lt_cv_aix_libpath_
! 8693: fi
1.1 misho 8694:
8695: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.2 ! misho 8696: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.1 misho 8697: else
8698: if test "$host_cpu" = ia64; then
8699: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8700: allow_undefined_flag="-z nodefs"
8701: 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"
8702: else
8703: # Determine the default libpath from the value encoded in an
8704: # empty executable.
1.1.1.2 ! misho 8705: if test "${lt_cv_aix_libpath+set}" = set; then
! 8706: aix_libpath=$lt_cv_aix_libpath
! 8707: else
! 8708: if ${lt_cv_aix_libpath_+:} false; then :
! 8709: $as_echo_n "(cached) " >&6
! 8710: else
! 8711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 8712: /* end confdefs.h. */
8713:
8714: int
8715: main ()
8716: {
8717:
8718: ;
8719: return 0;
8720: }
8721: _ACEOF
1.1.1.2 ! misho 8722: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 8723:
1.1.1.2 ! misho 8724: lt_aix_libpath_sed='
! 8725: /Import File Strings/,/^$/ {
! 8726: /^0/ {
! 8727: s/^0 *\([^ ]*\) *$/\1/
! 8728: p
! 8729: }
! 8730: }'
! 8731: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8732: # Check for a 64-bit object if we didn't find anything.
! 8733: if test -z "$lt_cv_aix_libpath_"; then
! 8734: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8735: fi
1.1 misho 8736: fi
1.1.1.2 ! misho 8737: rm -f core conftest.err conftest.$ac_objext \
! 8738: conftest$ac_exeext conftest.$ac_ext
! 8739: if test -z "$lt_cv_aix_libpath_"; then
! 8740: lt_cv_aix_libpath_="/usr/lib:/lib"
! 8741: fi
1.1 misho 8742:
8743: fi
8744:
1.1.1.2 ! misho 8745: aix_libpath=$lt_cv_aix_libpath_
! 8746: fi
1.1 misho 8747:
8748: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8749: # Warning - without using the other run time loading flags,
8750: # -berok will link without error, but may produce a broken library.
8751: no_undefined_flag=' ${wl}-bernotok'
8752: allow_undefined_flag=' ${wl}-berok'
1.1.1.2 ! misho 8753: if test "$with_gnu_ld" = yes; then
! 8754: # We only use this code for GNU lds that support --whole-archive.
! 8755: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
! 8756: else
! 8757: # Exported symbols can be pulled into shared objects from archives
! 8758: whole_archive_flag_spec='$convenience'
! 8759: fi
1.1 misho 8760: archive_cmds_need_lc=yes
8761: # This is similar to how AIX traditionally builds its shared libraries.
8762: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8763: fi
8764: fi
8765: ;;
8766:
8767: amigaos*)
8768: case $host_cpu in
8769: powerpc)
8770: # see comment about AmigaOS4 .so support
8771: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772: archive_expsym_cmds=''
8773: ;;
8774: m68k)
8775: 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)'
8776: hardcode_libdir_flag_spec='-L$libdir'
8777: hardcode_minus_L=yes
8778: ;;
8779: esac
8780: ;;
8781:
8782: bsdi[45]*)
8783: export_dynamic_flag_spec=-rdynamic
8784: ;;
8785:
8786: cygwin* | mingw* | pw32* | cegcc*)
8787: # When not using gcc, we currently assume that we are using
8788: # Microsoft Visual C++.
8789: # hardcode_libdir_flag_spec is actually meaningless, as there is
8790: # no search path for DLLs.
1.1.1.2 ! misho 8791: case $cc_basename in
! 8792: cl*)
! 8793: # Native MSVC
! 8794: hardcode_libdir_flag_spec=' '
! 8795: allow_undefined_flag=unsupported
! 8796: always_export_symbols=yes
! 8797: file_list_spec='@'
! 8798: # Tell ltmain to make .lib files, not .a files.
! 8799: libext=lib
! 8800: # Tell ltmain to make .dll files, not .so files.
! 8801: shrext_cmds=".dll"
! 8802: # FIXME: Setting linknames here is a bad hack.
! 8803: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
! 8804: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 8805: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
! 8806: else
! 8807: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
! 8808: fi~
! 8809: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
! 8810: linknames='
! 8811: # The linker will not automatically build a static lib if we build a DLL.
! 8812: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
! 8813: enable_shared_with_static_runtimes=yes
! 8814: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
! 8815: # Don't use ranlib
! 8816: old_postinstall_cmds='chmod 644 $oldlib'
! 8817: postlink_cmds='lt_outputfile="@OUTPUT@"~
! 8818: lt_tool_outputfile="@TOOL_OUTPUT@"~
! 8819: case $lt_outputfile in
! 8820: *.exe|*.EXE) ;;
! 8821: *)
! 8822: lt_outputfile="$lt_outputfile.exe"
! 8823: lt_tool_outputfile="$lt_tool_outputfile.exe"
! 8824: ;;
! 8825: esac~
! 8826: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
! 8827: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
! 8828: $RM "$lt_outputfile.manifest";
! 8829: fi'
! 8830: ;;
! 8831: *)
! 8832: # Assume MSVC wrapper
! 8833: hardcode_libdir_flag_spec=' '
! 8834: allow_undefined_flag=unsupported
! 8835: # Tell ltmain to make .lib files, not .a files.
! 8836: libext=lib
! 8837: # Tell ltmain to make .dll files, not .so files.
! 8838: shrext_cmds=".dll"
! 8839: # FIXME: Setting linknames here is a bad hack.
! 8840: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
! 8841: # The linker will automatically build a .lib file if we build a DLL.
! 8842: old_archive_from_new_cmds='true'
! 8843: # FIXME: Should let the user specify the lib program.
! 8844: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
! 8845: enable_shared_with_static_runtimes=yes
! 8846: ;;
! 8847: esac
1.1 misho 8848: ;;
8849:
8850: darwin* | rhapsody*)
8851:
8852:
8853: archive_cmds_need_lc=no
8854: hardcode_direct=no
8855: hardcode_automatic=yes
8856: hardcode_shlibpath_var=unsupported
1.1.1.2 ! misho 8857: if test "$lt_cv_ld_force_load" = "yes"; then
! 8858: 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\"`'
! 8859: else
! 8860: whole_archive_flag_spec=''
! 8861: fi
1.1 misho 8862: link_all_deplibs=yes
8863: allow_undefined_flag="$_lt_dar_allow_undefined"
8864: case $cc_basename in
8865: ifort*) _lt_dar_can_shared=yes ;;
8866: *) _lt_dar_can_shared=$GCC ;;
8867: esac
8868: if test "$_lt_dar_can_shared" = "yes"; then
1.1.1.2 ! misho 8869: output_verbose_link_cmd=func_echo_all
1.1 misho 8870: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8871: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8872: 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}"
8873: 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}"
8874:
8875: else
8876: ld_shlibs=no
8877: fi
8878:
8879: ;;
8880:
8881: dgux*)
8882: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883: hardcode_libdir_flag_spec='-L$libdir'
8884: hardcode_shlibpath_var=no
8885: ;;
8886:
8887: freebsd1*)
8888: ld_shlibs=no
8889: ;;
8890:
8891: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8892: # support. Future versions do this automatically, but an explicit c++rt0.o
8893: # does not break anything, and helps significantly (at the cost of a little
8894: # extra space).
8895: freebsd2.2*)
8896: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8897: hardcode_libdir_flag_spec='-R$libdir'
8898: hardcode_direct=yes
8899: hardcode_shlibpath_var=no
8900: ;;
8901:
8902: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8903: freebsd2*)
8904: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905: hardcode_direct=yes
8906: hardcode_minus_L=yes
8907: hardcode_shlibpath_var=no
8908: ;;
8909:
8910: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8911: freebsd* | dragonfly*)
1.1.1.2 ! misho 8912: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 8913: hardcode_libdir_flag_spec='-R$libdir'
8914: hardcode_direct=yes
8915: hardcode_shlibpath_var=no
8916: ;;
8917:
8918: hpux9*)
8919: if test "$GCC" = yes; then
1.1.1.2 ! misho 8920: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.1 misho 8921: else
8922: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8923: fi
8924: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8925: hardcode_libdir_separator=:
8926: hardcode_direct=yes
8927:
8928: # hardcode_minus_L: Not really in the search PATH,
8929: # but as the default location of the library.
8930: hardcode_minus_L=yes
8931: export_dynamic_flag_spec='${wl}-E'
8932: ;;
8933:
8934: hpux10*)
1.1.1.2 ! misho 8935: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
! 8936: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 8937: else
8938: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8939: fi
8940: if test "$with_gnu_ld" = no; then
8941: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8942: hardcode_libdir_flag_spec_ld='+b $libdir'
8943: hardcode_libdir_separator=:
8944: hardcode_direct=yes
8945: hardcode_direct_absolute=yes
8946: export_dynamic_flag_spec='${wl}-E'
8947: # hardcode_minus_L: Not really in the search PATH,
8948: # but as the default location of the library.
8949: hardcode_minus_L=yes
8950: fi
8951: ;;
8952:
8953: hpux11*)
1.1.1.2 ! misho 8954: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1.1 misho 8955: case $host_cpu in
8956: hppa*64*)
8957: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8958: ;;
8959: ia64*)
1.1.1.2 ! misho 8960: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 8961: ;;
8962: *)
1.1.1.2 ! misho 8963: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 8964: ;;
8965: esac
8966: else
8967: case $host_cpu in
8968: hppa*64*)
8969: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970: ;;
8971: ia64*)
8972: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8973: ;;
8974: *)
1.1.1.2 ! misho 8975:
! 8976: # Older versions of the 11.00 compiler do not understand -b yet
! 8977: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
! 8978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
! 8979: $as_echo_n "checking if $CC understands -b... " >&6; }
! 8980: if ${lt_cv_prog_compiler__b+:} false; then :
! 8981: $as_echo_n "(cached) " >&6
! 8982: else
! 8983: lt_cv_prog_compiler__b=no
! 8984: save_LDFLAGS="$LDFLAGS"
! 8985: LDFLAGS="$LDFLAGS -b"
! 8986: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 8987: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 8988: # The linker can only warn and ignore the option if not recognized
! 8989: # So say no if there are warnings
! 8990: if test -s conftest.err; then
! 8991: # Append any errors to the config.log.
! 8992: cat conftest.err 1>&5
! 8993: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
! 8994: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 8995: if diff conftest.exp conftest.er2 >/dev/null; then
! 8996: lt_cv_prog_compiler__b=yes
! 8997: fi
! 8998: else
! 8999: lt_cv_prog_compiler__b=yes
! 9000: fi
! 9001: fi
! 9002: $RM -r conftest*
! 9003: LDFLAGS="$save_LDFLAGS"
! 9004:
! 9005: fi
! 9006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
! 9007: $as_echo "$lt_cv_prog_compiler__b" >&6; }
! 9008:
! 9009: if test x"$lt_cv_prog_compiler__b" = xyes; then
! 9010: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 9011: else
! 9012: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 9013: fi
! 9014:
1.1 misho 9015: ;;
9016: esac
9017: fi
9018: if test "$with_gnu_ld" = no; then
9019: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9020: hardcode_libdir_separator=:
9021:
9022: case $host_cpu in
9023: hppa*64*|ia64*)
9024: hardcode_direct=no
9025: hardcode_shlibpath_var=no
9026: ;;
9027: *)
9028: hardcode_direct=yes
9029: hardcode_direct_absolute=yes
9030: export_dynamic_flag_spec='${wl}-E'
9031:
9032: # hardcode_minus_L: Not really in the search PATH,
9033: # but as the default location of the library.
9034: hardcode_minus_L=yes
9035: ;;
9036: esac
9037: fi
9038: ;;
9039:
9040: irix5* | irix6* | nonstopux*)
9041: if test "$GCC" = yes; then
1.1.1.2 ! misho 9042: 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 9043: # Try to use the -exported_symbol ld option, if it does not
9044: # work, assume that -exports_file does not work either and
9045: # implicitly export all symbols.
1.1.1.2 ! misho 9046: # This should be the same for all languages, so no per-tag cache variable.
! 9047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
! 9048: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
! 9049: if ${lt_cv_irix_exported_symbol+:} false; then :
! 9050: $as_echo_n "(cached) " >&6
! 9051: else
! 9052: save_LDFLAGS="$LDFLAGS"
! 9053: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
! 9054: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 9055: /* end confdefs.h. */
! 9056: int foo (void) { return 0; }
1.1 misho 9057: _ACEOF
1.1.1.2 ! misho 9058: if ac_fn_c_try_link "$LINENO"; then :
! 9059: lt_cv_irix_exported_symbol=yes
1.1 misho 9060: else
1.1.1.2 ! misho 9061: lt_cv_irix_exported_symbol=no
1.1 misho 9062: fi
1.1.1.2 ! misho 9063: rm -f core conftest.err conftest.$ac_objext \
! 9064: conftest$ac_exeext conftest.$ac_ext
! 9065: LDFLAGS="$save_LDFLAGS"
! 9066: fi
! 9067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
! 9068: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
! 9069: if test "$lt_cv_irix_exported_symbol" = yes; then
! 9070: 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'
! 9071: fi
1.1 misho 9072: else
1.1.1.2 ! misho 9073: 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'
! 9074: 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 9075: fi
9076: archive_cmds_need_lc='no'
9077: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078: hardcode_libdir_separator=:
9079: inherit_rpath=yes
9080: link_all_deplibs=yes
9081: ;;
9082:
9083: netbsd*)
9084: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9085: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9086: else
9087: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9088: fi
9089: hardcode_libdir_flag_spec='-R$libdir'
9090: hardcode_direct=yes
9091: hardcode_shlibpath_var=no
9092: ;;
9093:
9094: newsos6)
9095: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096: hardcode_direct=yes
9097: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9098: hardcode_libdir_separator=:
9099: hardcode_shlibpath_var=no
9100: ;;
9101:
9102: *nto* | *qnx*)
9103: ;;
9104:
9105: openbsd*)
9106: if test -f /usr/libexec/ld.so; then
9107: hardcode_direct=yes
9108: hardcode_shlibpath_var=no
9109: hardcode_direct_absolute=yes
9110: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9111: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9112: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9113: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9114: export_dynamic_flag_spec='${wl}-E'
9115: else
9116: case $host_os in
9117: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9118: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9119: hardcode_libdir_flag_spec='-R$libdir'
9120: ;;
9121: *)
9122: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9123: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9124: ;;
9125: esac
9126: fi
9127: else
9128: ld_shlibs=no
9129: fi
9130: ;;
9131:
9132: os2*)
9133: hardcode_libdir_flag_spec='-L$libdir'
9134: hardcode_minus_L=yes
9135: allow_undefined_flag=unsupported
1.1.1.2 ! misho 9136: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1.1 misho 9137: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9138: ;;
9139:
9140: osf3*)
9141: if test "$GCC" = yes; then
9142: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 ! misho 9143: 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 9144: else
9145: allow_undefined_flag=' -expect_unresolved \*'
1.1.1.2 ! misho 9146: 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 9147: fi
9148: archive_cmds_need_lc='no'
9149: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150: hardcode_libdir_separator=:
9151: ;;
9152:
9153: osf4* | osf5*) # as osf3* with the addition of -msym flag
9154: if test "$GCC" = yes; then
9155: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 ! misho 9156: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.1 misho 9157: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9158: else
9159: allow_undefined_flag=' -expect_unresolved \*'
1.1.1.2 ! misho 9160: 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 9161: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
1.1.1.2 ! misho 9162: $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 9163:
9164: # Both c and cxx compiler support -rpath directly
9165: hardcode_libdir_flag_spec='-rpath $libdir'
9166: fi
9167: archive_cmds_need_lc='no'
9168: hardcode_libdir_separator=:
9169: ;;
9170:
9171: solaris*)
9172: no_undefined_flag=' -z defs'
9173: if test "$GCC" = yes; then
9174: wlarc='${wl}'
1.1.1.2 ! misho 9175: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 misho 9176: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.1.1.2 ! misho 9177: $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 9178: else
9179: case `$CC -V 2>&1` in
9180: *"Compilers 5.0"*)
9181: wlarc=''
9182: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9183: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9184: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9185: ;;
9186: *)
9187: wlarc='${wl}'
9188: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9189: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9190: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9191: ;;
9192: esac
9193: fi
9194: hardcode_libdir_flag_spec='-R$libdir'
9195: hardcode_shlibpath_var=no
9196: case $host_os in
9197: solaris2.[0-5] | solaris2.[0-5].*) ;;
9198: *)
9199: # The compiler driver will combine and reorder linker options,
9200: # but understands `-z linker_flag'. GCC discards it without `$wl',
9201: # but is careful enough not to reorder.
9202: # Supported since Solaris 2.6 (maybe 2.5.1?)
9203: if test "$GCC" = yes; then
9204: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9205: else
9206: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9207: fi
9208: ;;
9209: esac
9210: link_all_deplibs=yes
9211: ;;
9212:
9213: sunos4*)
9214: if test "x$host_vendor" = xsequent; then
9215: # Use $CC to link under sequent, because it throws in some extra .o
9216: # files that make .init and .fini sections work.
9217: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9218: else
9219: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9220: fi
9221: hardcode_libdir_flag_spec='-L$libdir'
9222: hardcode_direct=yes
9223: hardcode_minus_L=yes
9224: hardcode_shlibpath_var=no
9225: ;;
9226:
9227: sysv4)
9228: case $host_vendor in
9229: sni)
9230: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9231: hardcode_direct=yes # is this really true???
9232: ;;
9233: siemens)
9234: ## LD is ld it makes a PLAMLIB
9235: ## CC just makes a GrossModule.
9236: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9237: reload_cmds='$CC -r -o $output$reload_objs'
9238: hardcode_direct=no
9239: ;;
9240: motorola)
9241: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9242: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9243: ;;
9244: esac
9245: runpath_var='LD_RUN_PATH'
9246: hardcode_shlibpath_var=no
9247: ;;
9248:
9249: sysv4.3*)
9250: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9251: hardcode_shlibpath_var=no
9252: export_dynamic_flag_spec='-Bexport'
9253: ;;
9254:
9255: sysv4*MP*)
9256: if test -d /usr/nec; then
9257: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9258: hardcode_shlibpath_var=no
9259: runpath_var=LD_RUN_PATH
9260: hardcode_runpath_var=yes
9261: ld_shlibs=yes
9262: fi
9263: ;;
9264:
9265: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9266: no_undefined_flag='${wl}-z,text'
9267: archive_cmds_need_lc=no
9268: hardcode_shlibpath_var=no
9269: runpath_var='LD_RUN_PATH'
9270:
9271: if test "$GCC" = yes; then
9272: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9273: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9274: else
9275: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9276: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9277: fi
9278: ;;
9279:
9280: sysv5* | sco3.2v5* | sco5v6*)
9281: # Note: We can NOT use -z defs as we might desire, because we do not
9282: # link with -lc, and that would cause any symbols used from libc to
9283: # always be unresolved, which means just about no library would
9284: # ever link correctly. If we're not using GNU ld we use -z text
9285: # though, which does catch some bad symbols but isn't as heavy-handed
9286: # as -z defs.
9287: no_undefined_flag='${wl}-z,text'
9288: allow_undefined_flag='${wl}-z,nodefs'
9289: archive_cmds_need_lc=no
9290: hardcode_shlibpath_var=no
9291: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9292: hardcode_libdir_separator=':'
9293: link_all_deplibs=yes
9294: export_dynamic_flag_spec='${wl}-Bexport'
9295: runpath_var='LD_RUN_PATH'
9296:
9297: if test "$GCC" = yes; then
9298: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9299: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9300: else
9301: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9303: fi
9304: ;;
9305:
9306: uts4*)
9307: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308: hardcode_libdir_flag_spec='-L$libdir'
9309: hardcode_shlibpath_var=no
9310: ;;
9311:
9312: *)
9313: ld_shlibs=no
9314: ;;
9315: esac
9316:
9317: if test x$host_vendor = xsni; then
9318: case $host in
9319: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9320: export_dynamic_flag_spec='${wl}-Blargedynsym'
9321: ;;
9322: esac
9323: fi
9324: fi
9325:
1.1.1.2 ! misho 9326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1.1 misho 9327: $as_echo "$ld_shlibs" >&6; }
9328: test "$ld_shlibs" = no && can_build_shared=no
9329:
9330: with_gnu_ld=$with_gnu_ld
9331:
9332:
9333:
9334:
9335:
9336:
9337:
9338:
9339:
9340:
9341:
9342:
9343:
9344:
9345:
9346: #
9347: # Do we need to explicitly link libc?
9348: #
9349: case "x$archive_cmds_need_lc" in
9350: x|xyes)
9351: # Assume -lc should be added
9352: archive_cmds_need_lc=yes
9353:
9354: if test "$enable_shared" = yes && test "$GCC" = yes; then
9355: case $archive_cmds in
9356: *'~'*)
9357: # FIXME: we may have to deal with multi-command sequences.
9358: ;;
9359: '$CC '*)
9360: # Test whether the compiler implicitly links with -lc since on some
9361: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9362: # to ld, don't add -lc before -lgcc.
1.1.1.2 ! misho 9363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1.1 misho 9364: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
1.1.1.2 ! misho 9365: if ${lt_cv_archive_cmds_need_lc+:} false; then :
! 9366: $as_echo_n "(cached) " >&6
! 9367: else
! 9368: $RM conftest*
! 9369: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 misho 9370:
1.1.1.2 ! misho 9371: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.1 misho 9372: (eval $ac_compile) 2>&5
9373: ac_status=$?
1.1.1.2 ! misho 9374: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 9375: test $ac_status = 0; } 2>conftest.err; then
! 9376: soname=conftest
! 9377: lib=conftest
! 9378: libobjs=conftest.$ac_objext
! 9379: deplibs=
! 9380: wl=$lt_prog_compiler_wl
! 9381: pic_flag=$lt_prog_compiler_pic
! 9382: compiler_flags=-v
! 9383: linker_flags=-v
! 9384: verstring=
! 9385: output_objdir=.
! 9386: libname=conftest
! 9387: lt_save_allow_undefined_flag=$allow_undefined_flag
! 9388: allow_undefined_flag=
! 9389: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.1 misho 9390: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9391: ac_status=$?
1.1.1.2 ! misho 9392: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 9393: test $ac_status = 0; }
! 9394: then
! 9395: lt_cv_archive_cmds_need_lc=no
! 9396: else
! 9397: lt_cv_archive_cmds_need_lc=yes
! 9398: fi
! 9399: allow_undefined_flag=$lt_save_allow_undefined_flag
! 9400: else
! 9401: cat conftest.err 1>&5
! 9402: fi
! 9403: $RM conftest*
! 9404:
! 9405: fi
! 9406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
! 9407: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
! 9408: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1.1 misho 9409: ;;
9410: esac
9411: fi
9412: ;;
9413: esac
9414:
9415:
9416:
9417:
9418:
9419:
9420:
9421:
9422:
9423:
9424:
9425:
9426:
9427:
9428:
9429:
9430:
9431:
9432:
9433:
9434:
9435:
9436:
9437:
9438:
9439:
9440:
9441:
9442:
9443:
9444:
9445:
9446:
9447:
9448:
9449:
9450:
9451:
9452:
9453:
9454:
9455:
9456:
9457:
9458:
9459:
9460:
9461:
9462:
9463:
9464:
9465:
9466:
9467:
9468:
9469:
9470:
9471:
9472:
9473:
9474:
9475:
9476:
9477:
9478:
9479:
9480:
9481:
9482:
9483:
9484:
9485:
9486:
9487:
9488:
9489:
9490:
9491:
9492:
9493:
9494:
9495:
9496:
9497:
9498:
9499:
9500:
9501:
9502:
9503:
9504:
9505:
9506:
9507:
9508:
9509:
9510:
9511:
9512:
9513:
9514:
9515:
9516:
9517:
9518:
9519:
9520:
9521:
9522:
9523:
9524:
9525:
9526:
9527:
9528:
9529:
9530:
9531:
9532:
9533:
9534:
9535:
9536:
9537:
9538:
9539:
9540:
9541:
9542:
9543:
9544:
9545:
9546:
9547:
9548:
9549:
9550:
9551:
9552:
9553:
9554:
9555:
9556:
9557:
9558:
9559:
9560:
9561:
9562:
9563:
9564:
9565:
9566:
9567:
9568:
9569:
9570:
1.1.1.2 ! misho 9571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1.1 misho 9572: $as_echo_n "checking dynamic linker characteristics... " >&6; }
9573:
9574: if test "$GCC" = yes; then
9575: case $host_os in
9576: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9577: *) lt_awk_arg="/^libraries:/" ;;
9578: esac
1.1.1.2 ! misho 9579: case $host_os in
! 9580: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
! 9581: *) lt_sed_strip_eq="s,=/,/,g" ;;
! 9582: esac
! 9583: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
! 9584: case $lt_search_path_spec in
! 9585: *\;*)
1.1 misho 9586: # if the path contains ";" then we assume it to be the separator
9587: # otherwise default to the standard path separator (i.e. ":") - it is
9588: # assumed that no part of a normal pathname contains ";" but that should
9589: # okay in the real world where ";" in dirpaths is itself problematic.
1.1.1.2 ! misho 9590: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
! 9591: ;;
! 9592: *)
! 9593: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
! 9594: ;;
! 9595: esac
1.1 misho 9596: # Ok, now we have the path, separated by spaces, we can step through it
9597: # and add multilib dir if necessary.
9598: lt_tmp_lt_search_path_spec=
9599: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9600: for lt_sys_path in $lt_search_path_spec; do
9601: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9602: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9603: else
9604: test -d "$lt_sys_path" && \
9605: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9606: fi
9607: done
1.1.1.2 ! misho 9608: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.1 misho 9609: BEGIN {RS=" "; FS="/|\n";} {
9610: lt_foo="";
9611: lt_count=0;
9612: for (lt_i = NF; lt_i > 0; lt_i--) {
9613: if ($lt_i != "" && $lt_i != ".") {
9614: if ($lt_i == "..") {
9615: lt_count++;
9616: } else {
9617: if (lt_count == 0) {
9618: lt_foo="/" $lt_i lt_foo;
9619: } else {
9620: lt_count--;
9621: }
9622: }
9623: }
9624: }
9625: if (lt_foo != "") { lt_freq[lt_foo]++; }
9626: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9627: }'`
1.1.1.2 ! misho 9628: # AWK program above erroneously prepends '/' to C:/dos/paths
! 9629: # for these hosts.
! 9630: case $host_os in
! 9631: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
! 9632: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
! 9633: esac
! 9634: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misho 9635: else
9636: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9637: fi
9638: library_names_spec=
9639: libname_spec='lib$name'
9640: soname_spec=
9641: shrext_cmds=".so"
9642: postinstall_cmds=
9643: postuninstall_cmds=
9644: finish_cmds=
9645: finish_eval=
9646: shlibpath_var=
9647: shlibpath_overrides_runpath=unknown
9648: version_type=none
9649: dynamic_linker="$host_os ld.so"
9650: sys_lib_dlsearch_path_spec="/lib /usr/lib"
9651: need_lib_prefix=unknown
9652: hardcode_into_libs=no
9653:
9654: # when you set need_version to no, make sure it does not cause -set_version
9655: # flags to be left without arguments
9656: need_version=unknown
9657:
9658: case $host_os in
9659: aix3*)
9660: version_type=linux
9661: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9662: shlibpath_var=LIBPATH
9663:
9664: # AIX 3 has no versioning support, so we append a major version to the name.
9665: soname_spec='${libname}${release}${shared_ext}$major'
9666: ;;
9667:
9668: aix[4-9]*)
9669: version_type=linux
9670: need_lib_prefix=no
9671: need_version=no
9672: hardcode_into_libs=yes
9673: if test "$host_cpu" = ia64; then
9674: # AIX 5 supports IA64
9675: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9676: shlibpath_var=LD_LIBRARY_PATH
9677: else
9678: # With GCC up to 2.95.x, collect2 would create an import file
9679: # for dependence libraries. The import file would start with
9680: # the line `#! .'. This would cause the generated library to
9681: # depend on `.', always an invalid library. This was fixed in
9682: # development snapshots of GCC prior to 3.0.
9683: case $host_os in
9684: aix4 | aix4.[01] | aix4.[01].*)
9685: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9686: echo ' yes '
9687: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9688: :
9689: else
9690: can_build_shared=no
9691: fi
9692: ;;
9693: esac
9694: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9695: # soname into executable. Probably we can add versioning support to
9696: # collect2, so additional links can be useful in future.
9697: if test "$aix_use_runtimelinking" = yes; then
9698: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9699: # instead of lib<name>.a to let people know that these are not
9700: # typical AIX shared libraries.
9701: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702: else
9703: # We preserve .a as extension for shared libraries through AIX4.2
9704: # and later when we are not doing run time linking.
9705: library_names_spec='${libname}${release}.a $libname.a'
9706: soname_spec='${libname}${release}${shared_ext}$major'
9707: fi
9708: shlibpath_var=LIBPATH
9709: fi
9710: ;;
9711:
9712: amigaos*)
9713: case $host_cpu in
9714: powerpc)
9715: # Since July 2007 AmigaOS4 officially supports .so libraries.
9716: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9717: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718: ;;
9719: m68k)
9720: library_names_spec='$libname.ixlibrary $libname.a'
9721: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.2 ! misho 9722: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.1 misho 9723: ;;
9724: esac
9725: ;;
9726:
9727: beos*)
9728: library_names_spec='${libname}${shared_ext}'
9729: dynamic_linker="$host_os ld.so"
9730: shlibpath_var=LIBRARY_PATH
9731: ;;
9732:
9733: bsdi[45]*)
9734: version_type=linux
9735: need_version=no
9736: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737: soname_spec='${libname}${release}${shared_ext}$major'
9738: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9739: shlibpath_var=LD_LIBRARY_PATH
9740: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9741: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9742: # the default ld.so.conf also contains /usr/contrib/lib and
9743: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9744: # libtool to hard-code these into programs
9745: ;;
9746:
9747: cygwin* | mingw* | pw32* | cegcc*)
9748: version_type=windows
9749: shrext_cmds=".dll"
9750: need_version=no
9751: need_lib_prefix=no
9752:
1.1.1.2 ! misho 9753: case $GCC,$cc_basename in
! 9754: yes,*)
! 9755: # gcc
1.1 misho 9756: library_names_spec='$libname.dll.a'
9757: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9758: postinstall_cmds='base_file=`basename \${file}`~
9759: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9760: dldir=$destdir/`dirname \$dlpath`~
9761: test -d \$dldir || mkdir -p \$dldir~
9762: $install_prog $dir/$dlname \$dldir/$dlname~
9763: chmod a+x \$dldir/$dlname~
9764: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9765: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9766: fi'
9767: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9768: dlpath=$dir/\$dldll~
9769: $RM \$dlpath'
9770: shlibpath_overrides_runpath=yes
9771:
9772: case $host_os in
9773: cygwin*)
9774: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9775: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.2 ! misho 9776:
! 9777: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1.1 misho 9778: ;;
9779: mingw* | cegcc*)
9780: # MinGW DLLs use traditional 'lib' prefix
9781: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782: ;;
9783: pw32*)
9784: # pw32 DLLs use 'pw' prefix rather than 'lib'
9785: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9786: ;;
9787: esac
1.1.1.2 ! misho 9788: dynamic_linker='Win32 ld.exe'
! 9789: ;;
! 9790:
! 9791: *,cl*)
! 9792: # Native MSVC
! 9793: libname_spec='$name'
! 9794: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9795: library_names_spec='${libname}.dll.lib'
! 9796:
! 9797: case $build_os in
! 9798: mingw*)
! 9799: sys_lib_search_path_spec=
! 9800: lt_save_ifs=$IFS
! 9801: IFS=';'
! 9802: for lt_path in $LIB
! 9803: do
! 9804: IFS=$lt_save_ifs
! 9805: # Let DOS variable expansion print the short 8.3 style file name.
! 9806: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
! 9807: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
! 9808: done
! 9809: IFS=$lt_save_ifs
! 9810: # Convert to MSYS style.
! 9811: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
! 9812: ;;
! 9813: cygwin*)
! 9814: # Convert to unix form, then to dos form, then back to unix form
! 9815: # but this time dos style (no spaces!) so that the unix form looks
! 9816: # like /cygdrive/c/PROGRA~1:/cygdr...
! 9817: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
! 9818: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
! 9819: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 9820: ;;
! 9821: *)
! 9822: sys_lib_search_path_spec="$LIB"
! 9823: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
! 9824: # It is most probably a Windows format PATH.
! 9825: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 9826: else
! 9827: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 9828: fi
! 9829: # FIXME: find the short name or the path components, as spaces are
! 9830: # common. (e.g. "Program Files" -> "PROGRA~1")
! 9831: ;;
! 9832: esac
! 9833:
! 9834: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 9835: postinstall_cmds='base_file=`basename \${file}`~
! 9836: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
! 9837: dldir=$destdir/`dirname \$dlpath`~
! 9838: test -d \$dldir || mkdir -p \$dldir~
! 9839: $install_prog $dir/$dlname \$dldir/$dlname'
! 9840: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 9841: dlpath=$dir/\$dldll~
! 9842: $RM \$dlpath'
! 9843: shlibpath_overrides_runpath=yes
! 9844: dynamic_linker='Win32 link.exe'
1.1 misho 9845: ;;
9846:
9847: *)
1.1.1.2 ! misho 9848: # Assume MSVC wrapper
1.1 misho 9849: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.1.1.2 ! misho 9850: dynamic_linker='Win32 ld.exe'
1.1 misho 9851: ;;
9852: esac
9853: # FIXME: first we should search . and the directory the executable is in
9854: shlibpath_var=PATH
9855: ;;
9856:
9857: darwin* | rhapsody*)
9858: dynamic_linker="$host_os dyld"
9859: version_type=darwin
9860: need_lib_prefix=no
9861: need_version=no
9862: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9863: soname_spec='${libname}${release}${major}$shared_ext'
9864: shlibpath_overrides_runpath=yes
9865: shlibpath_var=DYLD_LIBRARY_PATH
9866: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9867:
9868: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9869: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9870: ;;
9871:
9872: dgux*)
9873: version_type=linux
9874: need_lib_prefix=no
9875: need_version=no
9876: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9877: soname_spec='${libname}${release}${shared_ext}$major'
9878: shlibpath_var=LD_LIBRARY_PATH
9879: ;;
9880:
9881: freebsd1*)
9882: dynamic_linker=no
9883: ;;
9884:
9885: freebsd* | dragonfly*)
9886: # DragonFly does not have aout. When/if they implement a new
9887: # versioning mechanism, adjust this.
9888: if test -x /usr/bin/objformat; then
9889: objformat=`/usr/bin/objformat`
9890: else
9891: case $host_os in
9892: freebsd[123]*) objformat=aout ;;
9893: *) objformat=elf ;;
9894: esac
9895: fi
9896: version_type=freebsd-$objformat
9897: case $version_type in
9898: freebsd-elf*)
9899: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9900: need_version=no
9901: need_lib_prefix=no
9902: ;;
9903: freebsd-*)
9904: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9905: need_version=yes
9906: ;;
9907: esac
9908: shlibpath_var=LD_LIBRARY_PATH
9909: case $host_os in
9910: freebsd2*)
9911: shlibpath_overrides_runpath=yes
9912: ;;
9913: freebsd3.[01]* | freebsdelf3.[01]*)
9914: shlibpath_overrides_runpath=yes
9915: hardcode_into_libs=yes
9916: ;;
9917: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9918: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9919: shlibpath_overrides_runpath=no
9920: hardcode_into_libs=yes
9921: ;;
9922: *) # from 4.6 on, and DragonFly
9923: shlibpath_overrides_runpath=yes
9924: hardcode_into_libs=yes
9925: ;;
9926: esac
9927: ;;
9928:
9929: gnu*)
9930: version_type=linux
9931: need_lib_prefix=no
9932: need_version=no
9933: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9934: soname_spec='${libname}${release}${shared_ext}$major'
9935: shlibpath_var=LD_LIBRARY_PATH
9936: hardcode_into_libs=yes
9937: ;;
9938:
1.1.1.2 ! misho 9939: haiku*)
! 9940: version_type=linux
! 9941: need_lib_prefix=no
! 9942: need_version=no
! 9943: dynamic_linker="$host_os runtime_loader"
! 9944: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 9945: soname_spec='${libname}${release}${shared_ext}$major'
! 9946: shlibpath_var=LIBRARY_PATH
! 9947: shlibpath_overrides_runpath=yes
! 9948: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
! 9949: hardcode_into_libs=yes
! 9950: ;;
! 9951:
1.1 misho 9952: hpux9* | hpux10* | hpux11*)
9953: # Give a soname corresponding to the major version so that dld.sl refuses to
9954: # link against other versions.
9955: version_type=sunos
9956: need_lib_prefix=no
9957: need_version=no
9958: case $host_cpu in
9959: ia64*)
9960: shrext_cmds='.so'
9961: hardcode_into_libs=yes
9962: dynamic_linker="$host_os dld.so"
9963: shlibpath_var=LD_LIBRARY_PATH
9964: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9965: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966: soname_spec='${libname}${release}${shared_ext}$major'
9967: if test "X$HPUX_IA64_MODE" = X32; then
9968: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9969: else
9970: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9971: fi
9972: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9973: ;;
9974: hppa*64*)
9975: shrext_cmds='.sl'
9976: hardcode_into_libs=yes
9977: dynamic_linker="$host_os dld.sl"
9978: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9979: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9980: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981: soname_spec='${libname}${release}${shared_ext}$major'
9982: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9983: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9984: ;;
9985: *)
9986: shrext_cmds='.sl'
9987: dynamic_linker="$host_os dld.sl"
9988: shlibpath_var=SHLIB_PATH
9989: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9990: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991: soname_spec='${libname}${release}${shared_ext}$major'
9992: ;;
9993: esac
1.1.1.2 ! misho 9994: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1.1 misho 9995: postinstall_cmds='chmod 555 $lib'
1.1.1.2 ! misho 9996: # or fails outright, so override atomically:
! 9997: install_override_mode=555
1.1 misho 9998: ;;
9999:
10000: interix[3-9]*)
10001: version_type=linux
10002: need_lib_prefix=no
10003: need_version=no
10004: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10005: soname_spec='${libname}${release}${shared_ext}$major'
10006: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10007: shlibpath_var=LD_LIBRARY_PATH
10008: shlibpath_overrides_runpath=no
10009: hardcode_into_libs=yes
10010: ;;
10011:
10012: irix5* | irix6* | nonstopux*)
10013: case $host_os in
10014: nonstopux*) version_type=nonstopux ;;
10015: *)
10016: if test "$lt_cv_prog_gnu_ld" = yes; then
10017: version_type=linux
10018: else
10019: version_type=irix
10020: fi ;;
10021: esac
10022: need_lib_prefix=no
10023: need_version=no
10024: soname_spec='${libname}${release}${shared_ext}$major'
10025: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10026: case $host_os in
10027: irix5* | nonstopux*)
10028: libsuff= shlibsuff=
10029: ;;
10030: *)
10031: case $LD in # libtool.m4 will add one of these switches to LD
10032: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10033: libsuff= shlibsuff= libmagic=32-bit;;
10034: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10035: libsuff=32 shlibsuff=N32 libmagic=N32;;
10036: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10037: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10038: *) libsuff= shlibsuff= libmagic=never-match;;
10039: esac
10040: ;;
10041: esac
10042: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10043: shlibpath_overrides_runpath=no
10044: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10045: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10046: hardcode_into_libs=yes
10047: ;;
10048:
10049: # No shared lib support for Linux oldld, aout, or coff.
10050: linux*oldld* | linux*aout* | linux*coff*)
10051: dynamic_linker=no
10052: ;;
10053:
10054: # This must be Linux ELF.
1.1.1.2 ! misho 10055: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1 misho 10056: version_type=linux
10057: need_lib_prefix=no
10058: need_version=no
10059: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060: soname_spec='${libname}${release}${shared_ext}$major'
10061: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10062: shlibpath_var=LD_LIBRARY_PATH
10063: shlibpath_overrides_runpath=no
1.1.1.2 ! misho 10064:
1.1 misho 10065: # Some binutils ld are patched to set DT_RUNPATH
1.1.1.2 ! misho 10066: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
! 10067: $as_echo_n "(cached) " >&6
! 10068: else
! 10069: lt_cv_shlibpath_overrides_runpath=no
! 10070: save_LDFLAGS=$LDFLAGS
! 10071: save_libdir=$libdir
! 10072: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
! 10073: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
! 10074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10075: /* end confdefs.h. */
10076:
10077: int
10078: main ()
10079: {
10080:
10081: ;
10082: return 0;
10083: }
10084: _ACEOF
1.1.1.2 ! misho 10085: if ac_fn_c_try_link "$LINENO"; then :
! 10086: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
! 10087: lt_cv_shlibpath_overrides_runpath=yes
1.1 misho 10088: fi
1.1.1.2 ! misho 10089: fi
! 10090: rm -f core conftest.err conftest.$ac_objext \
! 10091: conftest$ac_exeext conftest.$ac_ext
! 10092: LDFLAGS=$save_LDFLAGS
! 10093: libdir=$save_libdir
1.1 misho 10094:
10095: fi
10096:
1.1.1.2 ! misho 10097: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1.1 misho 10098:
10099: # This implies no fast_install, which is unacceptable.
10100: # Some rework will be needed to allow for fast_install
10101: # before this can be enabled.
10102: hardcode_into_libs=yes
10103:
10104: # Append ld.so.conf contents to the search path
10105: if test -f /etc/ld.so.conf; then
1.1.1.2 ! misho 10106: 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 10107: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10108: fi
10109:
10110: # We used to test for /lib/ld.so.1 and disable shared libraries on
10111: # powerpc, because MkLinux only supported shared libraries with the
10112: # GNU dynamic linker. Since this was broken with cross compilers,
10113: # most powerpc-linux boxes support dynamic linking these days and
10114: # people can always --disable-shared, the test was removed, and we
10115: # assume the GNU/Linux dynamic linker is in use.
10116: dynamic_linker='GNU/Linux ld.so'
10117: ;;
10118:
10119: netbsd*)
10120: version_type=sunos
10121: need_lib_prefix=no
10122: need_version=no
10123: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10125: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10126: dynamic_linker='NetBSD (a.out) ld.so'
10127: else
10128: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10129: soname_spec='${libname}${release}${shared_ext}$major'
10130: dynamic_linker='NetBSD ld.elf_so'
10131: fi
10132: shlibpath_var=LD_LIBRARY_PATH
10133: shlibpath_overrides_runpath=yes
10134: hardcode_into_libs=yes
10135: ;;
10136:
10137: newsos6)
10138: version_type=linux
10139: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140: shlibpath_var=LD_LIBRARY_PATH
10141: shlibpath_overrides_runpath=yes
10142: ;;
10143:
10144: *nto* | *qnx*)
10145: version_type=qnx
10146: need_lib_prefix=no
10147: need_version=no
10148: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149: soname_spec='${libname}${release}${shared_ext}$major'
10150: shlibpath_var=LD_LIBRARY_PATH
10151: shlibpath_overrides_runpath=no
10152: hardcode_into_libs=yes
10153: dynamic_linker='ldqnx.so'
10154: ;;
10155:
10156: openbsd*)
10157: version_type=sunos
10158: sys_lib_dlsearch_path_spec="/usr/lib"
10159: need_lib_prefix=no
10160: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10161: case $host_os in
10162: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10163: *) need_version=no ;;
10164: esac
10165: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10166: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10167: shlibpath_var=LD_LIBRARY_PATH
10168: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10169: case $host_os in
10170: openbsd2.[89] | openbsd2.[89].*)
10171: shlibpath_overrides_runpath=no
10172: ;;
10173: *)
10174: shlibpath_overrides_runpath=yes
10175: ;;
10176: esac
10177: else
10178: shlibpath_overrides_runpath=yes
10179: fi
10180: ;;
10181:
10182: os2*)
10183: libname_spec='$name'
10184: shrext_cmds=".dll"
10185: need_lib_prefix=no
10186: library_names_spec='$libname${shared_ext} $libname.a'
10187: dynamic_linker='OS/2 ld.exe'
10188: shlibpath_var=LIBPATH
10189: ;;
10190:
10191: osf3* | osf4* | osf5*)
10192: version_type=osf
10193: need_lib_prefix=no
10194: need_version=no
10195: soname_spec='${libname}${release}${shared_ext}$major'
10196: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197: shlibpath_var=LD_LIBRARY_PATH
10198: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10199: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10200: ;;
10201:
10202: rdos*)
10203: dynamic_linker=no
10204: ;;
10205:
10206: solaris*)
10207: version_type=linux
10208: need_lib_prefix=no
10209: need_version=no
10210: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211: soname_spec='${libname}${release}${shared_ext}$major'
10212: shlibpath_var=LD_LIBRARY_PATH
10213: shlibpath_overrides_runpath=yes
10214: hardcode_into_libs=yes
10215: # ldd complains unless libraries are executable
10216: postinstall_cmds='chmod +x $lib'
10217: ;;
10218:
10219: sunos4*)
10220: version_type=sunos
10221: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10222: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10223: shlibpath_var=LD_LIBRARY_PATH
10224: shlibpath_overrides_runpath=yes
10225: if test "$with_gnu_ld" = yes; then
10226: need_lib_prefix=no
10227: fi
10228: need_version=yes
10229: ;;
10230:
10231: sysv4 | sysv4.3*)
10232: version_type=linux
10233: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234: soname_spec='${libname}${release}${shared_ext}$major'
10235: shlibpath_var=LD_LIBRARY_PATH
10236: case $host_vendor in
10237: sni)
10238: shlibpath_overrides_runpath=no
10239: need_lib_prefix=no
10240: runpath_var=LD_RUN_PATH
10241: ;;
10242: siemens)
10243: need_lib_prefix=no
10244: ;;
10245: motorola)
10246: need_lib_prefix=no
10247: need_version=no
10248: shlibpath_overrides_runpath=no
10249: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10250: ;;
10251: esac
10252: ;;
10253:
10254: sysv4*MP*)
10255: if test -d /usr/nec ;then
10256: version_type=linux
10257: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10258: soname_spec='$libname${shared_ext}.$major'
10259: shlibpath_var=LD_LIBRARY_PATH
10260: fi
10261: ;;
10262:
10263: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10264: version_type=freebsd-elf
10265: need_lib_prefix=no
10266: need_version=no
10267: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10268: soname_spec='${libname}${release}${shared_ext}$major'
10269: shlibpath_var=LD_LIBRARY_PATH
10270: shlibpath_overrides_runpath=yes
10271: hardcode_into_libs=yes
10272: if test "$with_gnu_ld" = yes; then
10273: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10274: else
10275: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10276: case $host_os in
10277: sco3.2v5*)
10278: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10279: ;;
10280: esac
10281: fi
10282: sys_lib_dlsearch_path_spec='/usr/lib'
10283: ;;
10284:
10285: tpf*)
10286: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10287: version_type=linux
10288: need_lib_prefix=no
10289: need_version=no
10290: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291: shlibpath_var=LD_LIBRARY_PATH
10292: shlibpath_overrides_runpath=no
10293: hardcode_into_libs=yes
10294: ;;
10295:
10296: uts4*)
10297: version_type=linux
10298: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299: soname_spec='${libname}${release}${shared_ext}$major'
10300: shlibpath_var=LD_LIBRARY_PATH
10301: ;;
10302:
10303: *)
10304: dynamic_linker=no
10305: ;;
10306: esac
1.1.1.2 ! misho 10307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1.1 misho 10308: $as_echo "$dynamic_linker" >&6; }
10309: test "$dynamic_linker" = no && can_build_shared=no
10310:
10311: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10312: if test "$GCC" = yes; then
10313: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10314: fi
10315:
10316: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10317: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10318: fi
10319: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10320: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10321: fi
10322:
10323:
10324:
10325:
10326:
10327:
10328:
10329:
10330:
10331:
10332:
10333:
10334:
10335:
10336:
10337:
10338:
10339:
10340:
10341:
10342:
10343:
10344:
10345:
10346:
10347:
10348:
10349:
10350:
10351:
10352:
10353:
10354:
10355:
10356:
10357:
10358:
10359:
10360:
10361:
10362:
10363:
10364:
10365:
10366:
10367:
10368:
10369:
10370:
10371:
10372:
10373:
10374:
10375:
10376:
10377:
10378:
10379:
10380:
10381:
10382:
10383:
10384:
10385:
10386:
10387:
10388:
10389:
10390:
10391:
10392:
10393:
10394:
10395:
10396:
10397:
10398:
10399:
10400:
10401:
10402:
10403:
10404:
10405:
10406:
10407:
10408:
1.1.1.2 ! misho 10409:
! 10410:
! 10411:
! 10412:
! 10413:
! 10414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
1.1 misho 10415: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10416: hardcode_action=
10417: if test -n "$hardcode_libdir_flag_spec" ||
10418: test -n "$runpath_var" ||
10419: test "X$hardcode_automatic" = "Xyes" ; then
10420:
10421: # We can hardcode non-existent directories.
10422: if test "$hardcode_direct" != no &&
10423: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10424: # have to relink, otherwise we might link with an installed library
10425: # when we should be linking with a yet-to-be-installed one
10426: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10427: test "$hardcode_minus_L" != no; then
10428: # Linking always hardcodes the temporary library directory.
10429: hardcode_action=relink
10430: else
10431: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10432: hardcode_action=immediate
10433: fi
10434: else
10435: # We cannot hardcode anything, or else we can only hardcode existing
10436: # directories.
10437: hardcode_action=unsupported
10438: fi
1.1.1.2 ! misho 10439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1.1 misho 10440: $as_echo "$hardcode_action" >&6; }
10441:
10442: if test "$hardcode_action" = relink ||
10443: test "$inherit_rpath" = yes; then
10444: # Fast installation is not supported
10445: enable_fast_install=no
10446: elif test "$shlibpath_overrides_runpath" = yes ||
10447: test "$enable_shared" = no; then
10448: # Fast installation is not necessary
10449: enable_fast_install=needless
10450: fi
10451:
10452:
10453:
10454:
10455:
10456:
10457: if test "x$enable_dlopen" != xyes; then
10458: enable_dlopen=unknown
10459: enable_dlopen_self=unknown
10460: enable_dlopen_self_static=unknown
10461: else
10462: lt_cv_dlopen=no
10463: lt_cv_dlopen_libs=
10464:
10465: case $host_os in
10466: beos*)
10467: lt_cv_dlopen="load_add_on"
10468: lt_cv_dlopen_libs=
10469: lt_cv_dlopen_self=yes
10470: ;;
10471:
10472: mingw* | pw32* | cegcc*)
10473: lt_cv_dlopen="LoadLibrary"
10474: lt_cv_dlopen_libs=
10475: ;;
10476:
10477: cygwin*)
10478: lt_cv_dlopen="dlopen"
10479: lt_cv_dlopen_libs=
10480: ;;
10481:
10482: darwin*)
10483: # if libdl is installed we need to link against it
1.1.1.2 ! misho 10484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1.1 misho 10485: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 ! misho 10486: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 10487: $as_echo_n "(cached) " >&6
10488: else
10489: ac_check_lib_save_LIBS=$LIBS
10490: LIBS="-ldl $LIBS"
1.1.1.2 ! misho 10491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10492: /* end confdefs.h. */
10493:
10494: /* Override any GCC internal prototype to avoid an error.
10495: Use char because int might match the return type of a GCC
10496: builtin and then its argument prototype would still apply. */
10497: #ifdef __cplusplus
10498: extern "C"
10499: #endif
10500: char dlopen ();
10501: int
10502: main ()
10503: {
10504: return dlopen ();
10505: ;
10506: return 0;
10507: }
1.1.1.2 ! misho 10508: _ACEOF
! 10509: if ac_fn_c_try_link "$LINENO"; then :
! 10510: ac_cv_lib_dl_dlopen=yes
1.1 misho 10511: else
1.1.1.2 ! misho 10512: ac_cv_lib_dl_dlopen=no
1.1 misho 10513: fi
1.1.1.2 ! misho 10514: rm -f core conftest.err conftest.$ac_objext \
! 10515: conftest$ac_exeext conftest.$ac_ext
1.1 misho 10516: LIBS=$ac_check_lib_save_LIBS
10517: fi
1.1.1.2 ! misho 10518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 10519: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 10520: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
! 10521: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.1 misho 10522: else
10523:
1.1.1.2 ! misho 10524: lt_cv_dlopen="dyld"
! 10525: lt_cv_dlopen_libs=
! 10526: lt_cv_dlopen_self=yes
1.1 misho 10527:
1.1.1.2 ! misho 10528: fi
! 10529:
! 10530: ;;
1.1 misho 10531:
1.1.1.2 ! misho 10532: *)
! 10533: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
! 10534: if test "x$ac_cv_func_shl_load" = xyes; then :
! 10535: lt_cv_dlopen="shl_load"
! 10536: else
! 10537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 10538: $as_echo_n "checking for shl_load in -ldld... " >&6; }
! 10539: if ${ac_cv_lib_dld_shl_load+:} false; then :
! 10540: $as_echo_n "(cached) " >&6
! 10541: else
! 10542: ac_check_lib_save_LIBS=$LIBS
! 10543: LIBS="-ldld $LIBS"
! 10544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 10545: /* end confdefs.h. */
1.1 misho 10546:
10547: /* Override any GCC internal prototype to avoid an error.
10548: Use char because int might match the return type of a GCC
10549: builtin and then its argument prototype would still apply. */
10550: #ifdef __cplusplus
10551: extern "C"
10552: #endif
1.1.1.2 ! misho 10553: char shl_load ();
1.1 misho 10554: int
10555: main ()
10556: {
1.1.1.2 ! misho 10557: return shl_load ();
1.1 misho 10558: ;
10559: return 0;
10560: }
10561: _ACEOF
1.1.1.2 ! misho 10562: if ac_fn_c_try_link "$LINENO"; then :
! 10563: ac_cv_lib_dld_shl_load=yes
1.1 misho 10564: else
1.1.1.2 ! misho 10565: ac_cv_lib_dld_shl_load=no
1.1 misho 10566: fi
1.1.1.2 ! misho 10567: rm -f core conftest.err conftest.$ac_objext \
! 10568: conftest$ac_exeext conftest.$ac_ext
! 10569: LIBS=$ac_check_lib_save_LIBS
1.1 misho 10570: fi
1.1.1.2 ! misho 10571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 10572: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
! 10573: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
! 10574: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
! 10575: else
! 10576: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
! 10577: if test "x$ac_cv_func_dlopen" = xyes; then :
1.1 misho 10578: lt_cv_dlopen="dlopen"
10579: else
1.1.1.2 ! misho 10580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1.1 misho 10581: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.1.1.2 ! misho 10582: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.1 misho 10583: $as_echo_n "(cached) " >&6
10584: else
10585: ac_check_lib_save_LIBS=$LIBS
10586: LIBS="-ldl $LIBS"
1.1.1.2 ! misho 10587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10588: /* end confdefs.h. */
10589:
10590: /* Override any GCC internal prototype to avoid an error.
10591: Use char because int might match the return type of a GCC
10592: builtin and then its argument prototype would still apply. */
10593: #ifdef __cplusplus
10594: extern "C"
10595: #endif
10596: char dlopen ();
10597: int
10598: main ()
10599: {
10600: return dlopen ();
10601: ;
10602: return 0;
10603: }
10604: _ACEOF
1.1.1.2 ! misho 10605: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 10606: ac_cv_lib_dl_dlopen=yes
10607: else
1.1.1.2 ! misho 10608: ac_cv_lib_dl_dlopen=no
1.1 misho 10609: fi
1.1.1.2 ! misho 10610: rm -f core conftest.err conftest.$ac_objext \
! 10611: conftest$ac_exeext conftest.$ac_ext
1.1 misho 10612: LIBS=$ac_check_lib_save_LIBS
10613: fi
1.1.1.2 ! misho 10614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1.1 misho 10615: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.1.1.2 ! misho 10616: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.1 misho 10617: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10618: else
1.1.1.2 ! misho 10619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1.1 misho 10620: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1.1.1.2 ! misho 10621: if ${ac_cv_lib_svld_dlopen+:} false; then :
1.1 misho 10622: $as_echo_n "(cached) " >&6
10623: else
10624: ac_check_lib_save_LIBS=$LIBS
10625: LIBS="-lsvld $LIBS"
1.1.1.2 ! misho 10626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10627: /* end confdefs.h. */
10628:
10629: /* Override any GCC internal prototype to avoid an error.
10630: Use char because int might match the return type of a GCC
10631: builtin and then its argument prototype would still apply. */
10632: #ifdef __cplusplus
10633: extern "C"
10634: #endif
10635: char dlopen ();
10636: int
10637: main ()
10638: {
10639: return dlopen ();
10640: ;
10641: return 0;
10642: }
10643: _ACEOF
1.1.1.2 ! misho 10644: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 10645: ac_cv_lib_svld_dlopen=yes
10646: else
1.1.1.2 ! misho 10647: ac_cv_lib_svld_dlopen=no
1.1 misho 10648: fi
1.1.1.2 ! misho 10649: rm -f core conftest.err conftest.$ac_objext \
! 10650: conftest$ac_exeext conftest.$ac_ext
1.1 misho 10651: LIBS=$ac_check_lib_save_LIBS
10652: fi
1.1.1.2 ! misho 10653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1.1 misho 10654: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1.1.1.2 ! misho 10655: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.1 misho 10656: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10657: else
1.1.1.2 ! misho 10658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1.1 misho 10659: $as_echo_n "checking for dld_link in -ldld... " >&6; }
1.1.1.2 ! misho 10660: if ${ac_cv_lib_dld_dld_link+:} false; then :
1.1 misho 10661: $as_echo_n "(cached) " >&6
10662: else
10663: ac_check_lib_save_LIBS=$LIBS
10664: LIBS="-ldld $LIBS"
1.1.1.2 ! misho 10665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 10666: /* end confdefs.h. */
10667:
10668: /* Override any GCC internal prototype to avoid an error.
10669: Use char because int might match the return type of a GCC
10670: builtin and then its argument prototype would still apply. */
10671: #ifdef __cplusplus
10672: extern "C"
10673: #endif
10674: char dld_link ();
10675: int
10676: main ()
10677: {
10678: return dld_link ();
10679: ;
10680: return 0;
10681: }
10682: _ACEOF
1.1.1.2 ! misho 10683: if ac_fn_c_try_link "$LINENO"; then :
1.1 misho 10684: ac_cv_lib_dld_dld_link=yes
10685: else
1.1.1.2 ! misho 10686: ac_cv_lib_dld_dld_link=no
1.1 misho 10687: fi
1.1.1.2 ! misho 10688: rm -f core conftest.err conftest.$ac_objext \
! 10689: conftest$ac_exeext conftest.$ac_ext
1.1 misho 10690: LIBS=$ac_check_lib_save_LIBS
10691: fi
1.1.1.2 ! misho 10692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1.1 misho 10693: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1.1.1.2 ! misho 10694: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1.1 misho 10695: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10696: fi
10697:
10698:
10699: fi
10700:
10701:
10702: fi
10703:
10704:
10705: fi
10706:
10707:
10708: fi
10709:
10710:
10711: fi
10712:
10713: ;;
10714: esac
10715:
10716: if test "x$lt_cv_dlopen" != xno; then
10717: enable_dlopen=yes
10718: else
10719: enable_dlopen=no
10720: fi
10721:
10722: case $lt_cv_dlopen in
10723: dlopen)
10724: save_CPPFLAGS="$CPPFLAGS"
10725: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10726:
10727: save_LDFLAGS="$LDFLAGS"
10728: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10729:
10730: save_LIBS="$LIBS"
10731: LIBS="$lt_cv_dlopen_libs $LIBS"
10732:
1.1.1.2 ! misho 10733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1.1 misho 10734: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
1.1.1.2 ! misho 10735: if ${lt_cv_dlopen_self+:} false; then :
1.1 misho 10736: $as_echo_n "(cached) " >&6
10737: else
10738: if test "$cross_compiling" = yes; then :
10739: lt_cv_dlopen_self=cross
10740: else
10741: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10742: lt_status=$lt_dlunknown
10743: cat > conftest.$ac_ext <<_LT_EOF
1.1.1.2 ! misho 10744: #line $LINENO "configure"
1.1 misho 10745: #include "confdefs.h"
10746:
10747: #if HAVE_DLFCN_H
10748: #include <dlfcn.h>
10749: #endif
10750:
10751: #include <stdio.h>
10752:
10753: #ifdef RTLD_GLOBAL
10754: # define LT_DLGLOBAL RTLD_GLOBAL
10755: #else
10756: # ifdef DL_GLOBAL
10757: # define LT_DLGLOBAL DL_GLOBAL
10758: # else
10759: # define LT_DLGLOBAL 0
10760: # endif
10761: #endif
10762:
10763: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10764: find out it does not work in some platform. */
10765: #ifndef LT_DLLAZY_OR_NOW
10766: # ifdef RTLD_LAZY
10767: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10768: # else
10769: # ifdef DL_LAZY
10770: # define LT_DLLAZY_OR_NOW DL_LAZY
10771: # else
10772: # ifdef RTLD_NOW
10773: # define LT_DLLAZY_OR_NOW RTLD_NOW
10774: # else
10775: # ifdef DL_NOW
10776: # define LT_DLLAZY_OR_NOW DL_NOW
10777: # else
10778: # define LT_DLLAZY_OR_NOW 0
10779: # endif
10780: # endif
10781: # endif
10782: # endif
10783: #endif
10784:
1.1.1.2 ! misho 10785: /* When -fvisbility=hidden is used, assume the code has been annotated
! 10786: correspondingly for the symbols needed. */
! 10787: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
! 10788: int fnord () __attribute__((visibility("default")));
! 10789: #endif
! 10790:
! 10791: int fnord () { return 42; }
1.1 misho 10792: int main ()
10793: {
10794: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10795: int status = $lt_dlunknown;
10796:
10797: if (self)
10798: {
10799: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.1.1.2 ! misho 10800: else
! 10801: {
! 10802: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 10803: else puts (dlerror ());
! 10804: }
1.1 misho 10805: /* dlclose (self); */
10806: }
10807: else
10808: puts (dlerror ());
10809:
10810: return status;
10811: }
10812: _LT_EOF
1.1.1.2 ! misho 10813: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.1 misho 10814: (eval $ac_link) 2>&5
10815: ac_status=$?
1.1.1.2 ! misho 10816: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10817: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1 misho 10818: (./conftest; exit; ) >&5 2>/dev/null
10819: lt_status=$?
10820: case x$lt_status in
10821: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10822: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10823: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10824: esac
10825: else :
10826: # compilation failed
10827: lt_cv_dlopen_self=no
10828: fi
10829: fi
10830: rm -fr conftest*
10831:
10832:
10833: fi
1.1.1.2 ! misho 10834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1.1 misho 10835: $as_echo "$lt_cv_dlopen_self" >&6; }
10836:
10837: if test "x$lt_cv_dlopen_self" = xyes; then
10838: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.1.1.2 ! misho 10839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1.1 misho 10840: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1.1.1.2 ! misho 10841: if ${lt_cv_dlopen_self_static+:} false; then :
1.1 misho 10842: $as_echo_n "(cached) " >&6
10843: else
10844: if test "$cross_compiling" = yes; then :
10845: lt_cv_dlopen_self_static=cross
10846: else
10847: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848: lt_status=$lt_dlunknown
10849: cat > conftest.$ac_ext <<_LT_EOF
1.1.1.2 ! misho 10850: #line $LINENO "configure"
1.1 misho 10851: #include "confdefs.h"
10852:
10853: #if HAVE_DLFCN_H
10854: #include <dlfcn.h>
10855: #endif
10856:
10857: #include <stdio.h>
10858:
10859: #ifdef RTLD_GLOBAL
10860: # define LT_DLGLOBAL RTLD_GLOBAL
10861: #else
10862: # ifdef DL_GLOBAL
10863: # define LT_DLGLOBAL DL_GLOBAL
10864: # else
10865: # define LT_DLGLOBAL 0
10866: # endif
10867: #endif
10868:
10869: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870: find out it does not work in some platform. */
10871: #ifndef LT_DLLAZY_OR_NOW
10872: # ifdef RTLD_LAZY
10873: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10874: # else
10875: # ifdef DL_LAZY
10876: # define LT_DLLAZY_OR_NOW DL_LAZY
10877: # else
10878: # ifdef RTLD_NOW
10879: # define LT_DLLAZY_OR_NOW RTLD_NOW
10880: # else
10881: # ifdef DL_NOW
10882: # define LT_DLLAZY_OR_NOW DL_NOW
10883: # else
10884: # define LT_DLLAZY_OR_NOW 0
10885: # endif
10886: # endif
10887: # endif
10888: # endif
10889: #endif
10890:
1.1.1.2 ! misho 10891: /* When -fvisbility=hidden is used, assume the code has been annotated
! 10892: correspondingly for the symbols needed. */
! 10893: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
! 10894: int fnord () __attribute__((visibility("default")));
! 10895: #endif
! 10896:
! 10897: int fnord () { return 42; }
1.1 misho 10898: int main ()
10899: {
10900: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901: int status = $lt_dlunknown;
10902:
10903: if (self)
10904: {
10905: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.1.1.2 ! misho 10906: else
! 10907: {
! 10908: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 10909: else puts (dlerror ());
! 10910: }
1.1 misho 10911: /* dlclose (self); */
10912: }
10913: else
10914: puts (dlerror ());
10915:
10916: return status;
10917: }
10918: _LT_EOF
1.1.1.2 ! misho 10919: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.1 misho 10920: (eval $ac_link) 2>&5
10921: ac_status=$?
1.1.1.2 ! misho 10922: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10923: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1 misho 10924: (./conftest; exit; ) >&5 2>/dev/null
10925: lt_status=$?
10926: case x$lt_status in
10927: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10928: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10929: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10930: esac
10931: else :
10932: # compilation failed
10933: lt_cv_dlopen_self_static=no
10934: fi
10935: fi
10936: rm -fr conftest*
10937:
10938:
10939: fi
1.1.1.2 ! misho 10940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
1.1 misho 10941: $as_echo "$lt_cv_dlopen_self_static" >&6; }
10942: fi
10943:
10944: CPPFLAGS="$save_CPPFLAGS"
10945: LDFLAGS="$save_LDFLAGS"
10946: LIBS="$save_LIBS"
10947: ;;
10948: esac
10949:
10950: case $lt_cv_dlopen_self in
10951: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10952: *) enable_dlopen_self=unknown ;;
10953: esac
10954:
10955: case $lt_cv_dlopen_self_static in
10956: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10957: *) enable_dlopen_self_static=unknown ;;
10958: esac
10959: fi
10960:
10961:
10962:
10963:
10964:
10965:
10966:
10967:
10968:
10969:
10970:
10971:
10972:
10973:
10974:
10975:
10976:
10977: striplib=
10978: old_striplib=
1.1.1.2 ! misho 10979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1.1 misho 10980: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10981: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10982: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10983: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.1.1.2 ! misho 10984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 10985: $as_echo "yes" >&6; }
10986: else
10987: # FIXME - insert some real tests, host_os isn't really good enough
10988: case $host_os in
10989: darwin*)
10990: if test -n "$STRIP" ; then
10991: striplib="$STRIP -x"
10992: old_striplib="$STRIP -S"
1.1.1.2 ! misho 10993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.1 misho 10994: $as_echo "yes" >&6; }
10995: else
1.1.1.2 ! misho 10996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 10997: $as_echo "no" >&6; }
10998: fi
10999: ;;
11000: *)
1.1.1.2 ! misho 11001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 11002: $as_echo "no" >&6; }
11003: ;;
11004: esac
11005: fi
11006:
11007:
11008:
11009:
11010:
11011:
11012:
11013:
11014:
11015:
11016:
11017:
11018: # Report which library types will actually be built
1.1.1.2 ! misho 11019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1.1 misho 11020: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1.1.1.2 ! misho 11021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1.1 misho 11022: $as_echo "$can_build_shared" >&6; }
11023:
1.1.1.2 ! misho 11024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1.1 misho 11025: $as_echo_n "checking whether to build shared libraries... " >&6; }
11026: test "$can_build_shared" = "no" && enable_shared=no
11027:
11028: # On AIX, shared libraries and static libraries use the same namespace, and
11029: # are all built from PIC.
11030: case $host_os in
11031: aix3*)
11032: test "$enable_shared" = yes && enable_static=no
11033: if test -n "$RANLIB"; then
11034: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11035: postinstall_cmds='$RANLIB $lib'
11036: fi
11037: ;;
11038:
11039: aix[4-9]*)
11040: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11041: test "$enable_shared" = yes && enable_static=no
11042: fi
11043: ;;
11044: esac
1.1.1.2 ! misho 11045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
1.1 misho 11046: $as_echo "$enable_shared" >&6; }
11047:
1.1.1.2 ! misho 11048: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1.1 misho 11049: $as_echo_n "checking whether to build static libraries... " >&6; }
11050: # Make sure either enable_shared or enable_static is yes.
11051: test "$enable_shared" = yes || enable_static=yes
1.1.1.2 ! misho 11052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1.1 misho 11053: $as_echo "$enable_static" >&6; }
11054:
11055:
11056:
11057:
11058: fi
11059: ac_ext=c
11060: ac_cpp='$CPP $CPPFLAGS'
11061: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11064:
11065: CC="$lt_save_CC"
11066:
11067:
11068:
11069:
11070:
11071:
11072:
11073:
11074:
11075:
11076:
11077:
11078:
11079: ac_config_commands="$ac_config_commands libtool"
11080:
11081:
11082:
11083:
11084: # Only expand once:
11085:
11086:
11087:
11088:
11089: CFLAG_VISIBILITY=
11090: HAVE_VISIBILITY=0
11091: if test -n "$GCC"; then
1.1.1.2 ! misho 11092: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
! 11093: $as_echo_n "checking whether the -Werror option is usable... " >&6; }
! 11094: if ${gl_cv_cc_vis_werror+:} false; then :
! 11095: $as_echo_n "(cached) " >&6
! 11096: else
! 11097:
! 11098: gl_save_CFLAGS="$CFLAGS"
! 11099: CFLAGS="$CFLAGS -Werror"
! 11100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 11101: /* end confdefs.h. */
! 11102:
! 11103: int
! 11104: main ()
! 11105: {
! 11106:
! 11107: ;
! 11108: return 0;
! 11109: }
! 11110: _ACEOF
! 11111: if ac_fn_c_try_compile "$LINENO"; then :
! 11112: gl_cv_cc_vis_werror=yes
! 11113: else
! 11114: gl_cv_cc_vis_werror=no
! 11115: fi
! 11116: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11117: CFLAGS="$gl_save_CFLAGS"
! 11118: fi
! 11119:
! 11120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
! 11121: $as_echo "$gl_cv_cc_vis_werror" >&6; }
! 11122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
1.1 misho 11123: $as_echo_n "checking for simple visibility declarations... " >&6; }
1.1.1.2 ! misho 11124: if ${gl_cv_cc_visibility+:} false; then :
1.1 misho 11125: $as_echo_n "(cached) " >&6
11126: else
11127:
11128: gl_save_CFLAGS="$CFLAGS"
11129: CFLAGS="$CFLAGS -fvisibility=hidden"
1.1.1.2 ! misho 11130: if test $gl_cv_cc_vis_werror = yes; then
! 11131: CFLAGS="$CFLAGS -Werror"
! 11132: fi
! 11133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 11134: /* end confdefs.h. */
11135: extern __attribute__((__visibility__("hidden"))) int hiddenvar;
1.1.1.2 ! misho 11136: extern __attribute__((__visibility__("default"))) int exportedvar;
! 11137: extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
! 11138: extern __attribute__((__visibility__("default"))) int exportedfunc (void);
! 11139: void dummyfunc (void) {}
! 11140:
1.1 misho 11141: int
11142: main ()
11143: {
11144:
11145: ;
11146: return 0;
11147: }
11148: _ACEOF
1.1.1.2 ! misho 11149: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misho 11150: gl_cv_cc_visibility=yes
11151: else
1.1.1.2 ! misho 11152: gl_cv_cc_visibility=no
1.1 misho 11153: fi
11154: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155: CFLAGS="$gl_save_CFLAGS"
11156: fi
11157:
1.1.1.2 ! misho 11158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
1.1 misho 11159: $as_echo "$gl_cv_cc_visibility" >&6; }
11160: if test $gl_cv_cc_visibility = yes; then
11161: CFLAG_VISIBILITY="-fvisibility=hidden"
11162: HAVE_VISIBILITY=1
11163: fi
11164: fi
11165:
11166:
11167:
11168: cat >>confdefs.h <<_ACEOF
11169: #define HAVE_VISIBILITY $HAVE_VISIBILITY
11170: _ACEOF
11171:
11172:
11173:
11174:
11175: case "$host_os" in
11176: linux* | solaris* | osf*)
11177: PLUGLIB="preloadable_libiconv.so" ;;
11178: *)
11179: PLUGLIB=""
11180: esac
11181:
11182:
11183: ac_config_files="$ac_config_files Makefile"
11184:
11185: cat >confcache <<\_ACEOF
11186: # This file is a shell script that caches the results of configure
11187: # tests run on this system so they can be shared between configure
11188: # scripts and configure runs, see configure's option --config-cache.
11189: # It is not useful on other systems. If it contains results you don't
11190: # want to keep, you may remove or edit it.
11191: #
11192: # config.status only pays attention to the cache file if you give it
11193: # the --recheck option to rerun configure.
11194: #
11195: # `ac_cv_env_foo' variables (set or unset) will be overridden when
11196: # loading this file, other *unset* `ac_cv_foo' will be assigned the
11197: # following values.
11198:
11199: _ACEOF
11200:
11201: # The following way of writing the cache mishandles newlines in values,
11202: # but we know of no workaround that is simple, portable, and efficient.
11203: # So, we kill variables containing newlines.
11204: # Ultrix sh set writes to stderr and can't be redirected directly,
11205: # and sets the high bit in the cache file unless we assign to the vars.
11206: (
11207: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11208: eval ac_val=\$$ac_var
11209: case $ac_val in #(
11210: *${as_nl}*)
11211: case $ac_var in #(
1.1.1.2 ! misho 11212: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1.1 misho 11213: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11214: esac
11215: case $ac_var in #(
11216: _ | IFS | as_nl) ;; #(
11217: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.1.1.2 ! misho 11218: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 misho 11219: esac ;;
11220: esac
11221: done
11222:
11223: (set) 2>&1 |
11224: case $as_nl`(ac_space=' '; set) 2>&1` in #(
11225: *${as_nl}ac_space=\ *)
1.1.1.2 ! misho 11226: # `set' does not quote correctly, so add quotes: double-quote
! 11227: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 misho 11228: sed -n \
11229: "s/'/'\\\\''/g;
11230: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11231: ;; #(
11232: *)
11233: # `set' quotes correctly as required by POSIX, so do not add quotes.
11234: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11235: ;;
11236: esac |
11237: sort
11238: ) |
11239: sed '
11240: /^ac_cv_env_/b end
11241: t clear
11242: :clear
11243: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11244: t end
11245: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11246: :end' >>confcache
11247: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11248: if test -w "$cache_file"; then
1.1.1.2 ! misho 11249: if test "x$cache_file" != "x/dev/null"; then
! 11250: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1.1 misho 11251: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1.1.2 ! misho 11252: if test ! -f "$cache_file" || test -h "$cache_file"; then
! 11253: cat confcache >"$cache_file"
! 11254: else
! 11255: case $cache_file in #(
! 11256: */* | ?:*)
! 11257: mv -f confcache "$cache_file"$$ &&
! 11258: mv -f "$cache_file"$$ "$cache_file" ;; #(
! 11259: *)
! 11260: mv -f confcache "$cache_file" ;;
! 11261: esac
! 11262: fi
! 11263: fi
1.1 misho 11264: else
1.1.1.2 ! misho 11265: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1.1 misho 11266: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11267: fi
11268: fi
11269: rm -f confcache
11270:
11271: test "x$prefix" = xNONE && prefix=$ac_default_prefix
11272: # Let make expand exec_prefix.
11273: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11274:
11275: # Transform confdefs.h into DEFS.
11276: # Protect against shell expansion while executing Makefile rules.
11277: # Protect against Makefile macro expansion.
11278: #
11279: # If the first sed substitution is executed (which looks for macros that
11280: # take arguments), then branch to the quote section. Otherwise,
11281: # look for a macro that doesn't take arguments.
11282: ac_script='
11283: :mline
11284: /\\$/{
11285: N
11286: s,\\\n,,
11287: b mline
11288: }
11289: t clear
11290: :clear
11291: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11292: t quote
11293: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11294: t quote
11295: b any
11296: :quote
11297: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11298: s/\[/\\&/g
11299: s/\]/\\&/g
11300: s/\$/$$/g
11301: H
11302: :any
11303: ${
11304: g
11305: s/^\n//
11306: s/\n/ /g
11307: p
11308: }
11309: '
11310: DEFS=`sed -n "$ac_script" confdefs.h`
11311:
11312:
11313: ac_libobjs=
11314: ac_ltlibobjs=
1.1.1.2 ! misho 11315: U=
1.1 misho 11316: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11317: # 1. Remove the extension, and $U if already installed.
11318: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11319: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11320: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11321: # will be set to the directory where LIBOBJS objects are built.
1.1.1.2 ! misho 11322: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 11323: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 misho 11324: done
11325: LIBOBJS=$ac_libobjs
11326:
11327: LTLIBOBJS=$ac_ltlibobjs
11328:
11329:
11330:
1.1.1.2 ! misho 11331: : "${CONFIG_STATUS=./config.status}"
1.1 misho 11332: ac_write_fail=0
11333: ac_clean_files_save=$ac_clean_files
11334: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.1.1.2 ! misho 11335: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1.1 misho 11336: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1.1.1.2 ! misho 11337: as_write_fail=0
! 11338: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 misho 11339: #! $SHELL
11340: # Generated by $as_me.
11341: # Run this file to recreate the current configuration.
11342: # Compiler output produced by configure, useful for debugging
11343: # configure, is in config.log if it exists.
11344:
11345: debug=false
11346: ac_cs_recheck=false
11347: ac_cs_silent=false
11348:
1.1.1.2 ! misho 11349: SHELL=\${CONFIG_SHELL-$SHELL}
! 11350: export SHELL
! 11351: _ASEOF
! 11352: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
! 11353: ## -------------------- ##
! 11354: ## M4sh Initialization. ##
! 11355: ## -------------------- ##
1.1 misho 11356:
11357: # Be more Bourne compatible
11358: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.2 ! misho 11359: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 misho 11360: emulate sh
11361: NULLCMD=:
11362: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11363: # is contrary to our usage. Disable this feature.
11364: alias -g '${1+"$@"}'='"$@"'
11365: setopt NO_GLOB_SUBST
11366: else
1.1.1.2 ! misho 11367: case `(set -o) 2>/dev/null` in #(
! 11368: *posix*) :
! 11369: set -o posix ;; #(
! 11370: *) :
! 11371: ;;
1.1 misho 11372: esac
11373: fi
11374:
11375:
11376: as_nl='
11377: '
11378: export as_nl
11379: # Printing a long string crashes Solaris 7 /usr/bin/printf.
11380: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11381: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11382: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1.1.1.2 ! misho 11383: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 11384: # but without wasting forks for bash or zsh.
! 11385: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 11386: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 11387: as_echo='print -r --'
! 11388: as_echo_n='print -rn --'
! 11389: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.1 misho 11390: as_echo='printf %s\n'
11391: as_echo_n='printf %s'
11392: else
11393: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11394: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11395: as_echo_n='/usr/ucb/echo -n'
11396: else
11397: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11398: as_echo_n_body='eval
11399: arg=$1;
1.1.1.2 ! misho 11400: case $arg in #(
1.1 misho 11401: *"$as_nl"*)
11402: expr "X$arg" : "X\\(.*\\)$as_nl";
11403: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11404: esac;
11405: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11406: '
11407: export as_echo_n_body
11408: as_echo_n='sh -c $as_echo_n_body as_echo'
11409: fi
11410: export as_echo_body
11411: as_echo='sh -c $as_echo_body as_echo'
11412: fi
11413:
11414: # The user is always right.
11415: if test "${PATH_SEPARATOR+set}" != set; then
11416: PATH_SEPARATOR=:
11417: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11418: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11419: PATH_SEPARATOR=';'
11420: }
11421: fi
11422:
11423:
11424: # IFS
11425: # We need space, tab and new line, in precisely that order. Quoting is
11426: # there to prevent editors from complaining about space-tab.
11427: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11428: # splitting by setting IFS to empty value.)
11429: IFS=" "" $as_nl"
11430:
11431: # Find who we are. Look in the path if we contain no directory separator.
1.1.1.2 ! misho 11432: as_myself=
! 11433: case $0 in #((
1.1 misho 11434: *[\\/]* ) as_myself=$0 ;;
11435: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436: for as_dir in $PATH
11437: do
11438: IFS=$as_save_IFS
11439: test -z "$as_dir" && as_dir=.
1.1.1.2 ! misho 11440: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 11441: done
1.1 misho 11442: IFS=$as_save_IFS
11443:
11444: ;;
11445: esac
11446: # We did not find ourselves, most probably we were run as `sh COMMAND'
11447: # in which case we are not to be found in the path.
11448: if test "x$as_myself" = x; then
11449: as_myself=$0
11450: fi
11451: if test ! -f "$as_myself"; then
11452: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1.1.2 ! misho 11453: exit 1
1.1 misho 11454: fi
11455:
1.1.1.2 ! misho 11456: # Unset variables that we do not need and which cause bugs (e.g. in
! 11457: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 11458: # suppresses any "Segmentation fault" message there. '((' could
! 11459: # trigger a bug in pdksh 5.2.14.
! 11460: for as_var in BASH_ENV ENV MAIL MAILPATH
! 11461: do eval test x\${$as_var+set} = xset \
! 11462: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 misho 11463: done
11464: PS1='$ '
11465: PS2='> '
11466: PS4='+ '
11467:
11468: # NLS nuisances.
11469: LC_ALL=C
11470: export LC_ALL
11471: LANGUAGE=C
11472: export LANGUAGE
11473:
11474: # CDPATH.
1.1.1.2 ! misho 11475: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 11476:
1.1 misho 11477:
1.1.1.2 ! misho 11478: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 11479: # ----------------------------------------
! 11480: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 11481: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 11482: # script with STATUS, using 1 if that was 0.
! 11483: as_fn_error ()
! 11484: {
! 11485: as_status=$1; test $as_status -eq 0 && as_status=1
! 11486: if test "$4"; then
! 11487: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 11488: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 11489: fi
! 11490: $as_echo "$as_me: error: $2" >&2
! 11491: as_fn_exit $as_status
! 11492: } # as_fn_error
! 11493:
! 11494:
! 11495: # as_fn_set_status STATUS
! 11496: # -----------------------
! 11497: # Set $? to STATUS, without forking.
! 11498: as_fn_set_status ()
! 11499: {
! 11500: return $1
! 11501: } # as_fn_set_status
! 11502:
! 11503: # as_fn_exit STATUS
! 11504: # -----------------
! 11505: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 11506: as_fn_exit ()
! 11507: {
! 11508: set +e
! 11509: as_fn_set_status $1
! 11510: exit $1
! 11511: } # as_fn_exit
! 11512:
! 11513: # as_fn_unset VAR
! 11514: # ---------------
! 11515: # Portably unset VAR.
! 11516: as_fn_unset ()
! 11517: {
! 11518: { eval $1=; unset $1;}
! 11519: }
! 11520: as_unset=as_fn_unset
! 11521: # as_fn_append VAR VALUE
! 11522: # ----------------------
! 11523: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 11524: # advantage of any shell optimizations that allow amortized linear growth over
! 11525: # repeated appends, instead of the typical quadratic growth present in naive
! 11526: # implementations.
! 11527: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 11528: eval 'as_fn_append ()
! 11529: {
! 11530: eval $1+=\$2
! 11531: }'
! 11532: else
! 11533: as_fn_append ()
! 11534: {
! 11535: eval $1=\$$1\$2
! 11536: }
! 11537: fi # as_fn_append
1.1 misho 11538:
1.1.1.2 ! misho 11539: # as_fn_arith ARG...
! 11540: # ------------------
! 11541: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 11542: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 11543: # must be portable across $(()) and expr.
! 11544: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 11545: eval 'as_fn_arith ()
! 11546: {
! 11547: as_val=$(( $* ))
! 11548: }'
! 11549: else
! 11550: as_fn_arith ()
! 11551: {
! 11552: as_val=`expr "$@" || test $? -eq 1`
! 11553: }
! 11554: fi # as_fn_arith
1.1 misho 11555:
11556:
1.1.1.2 ! misho 11557: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 11558: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 11559: as_expr=expr
! 11560: else
! 11561: as_expr=false
! 11562: fi
1.1 misho 11563:
1.1.1.2 ! misho 11564: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
! 11565: as_basename=basename
! 11566: else
! 11567: as_basename=false
! 11568: fi
1.1 misho 11569:
11570: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11571: as_dirname=dirname
11572: else
11573: as_dirname=false
11574: fi
11575:
1.1.1.2 ! misho 11576: as_me=`$as_basename -- "$0" ||
! 11577: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 11578: X"$0" : 'X\(//\)$' \| \
! 11579: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 11580: $as_echo X/"$0" |
! 11581: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 11582: s//\1/
! 11583: q
! 11584: }
! 11585: /^X\/\(\/\/\)$/{
! 11586: s//\1/
! 11587: q
! 11588: }
! 11589: /^X\/\(\/\).*/{
! 11590: s//\1/
! 11591: q
! 11592: }
! 11593: s/.*/./; q'`
! 11594:
! 11595: # Avoid depending upon Character Ranges.
! 11596: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 11597: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 11598: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 11599: as_cr_digits='0123456789'
! 11600: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 11601:
1.1 misho 11602: ECHO_C= ECHO_N= ECHO_T=
1.1.1.2 ! misho 11603: case `echo -n x` in #(((((
1.1 misho 11604: -n*)
1.1.1.2 ! misho 11605: case `echo 'xy\c'` in
1.1 misho 11606: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.1.1.2 ! misho 11607: xy) ECHO_C='\c';;
! 11608: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 11609: ECHO_T=' ';;
1.1 misho 11610: esac;;
11611: *)
11612: ECHO_N='-n';;
11613: esac
11614:
11615: rm -f conf$$ conf$$.exe conf$$.file
11616: if test -d conf$$.dir; then
11617: rm -f conf$$.dir/conf$$.file
11618: else
11619: rm -f conf$$.dir
11620: mkdir conf$$.dir 2>/dev/null
11621: fi
11622: if (echo >conf$$.file) 2>/dev/null; then
11623: if ln -s conf$$.file conf$$ 2>/dev/null; then
11624: as_ln_s='ln -s'
11625: # ... but there are two gotchas:
11626: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11627: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11628: # In both cases, we have to default to `cp -p'.
11629: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11630: as_ln_s='cp -p'
11631: elif ln conf$$.file conf$$ 2>/dev/null; then
11632: as_ln_s=ln
11633: else
11634: as_ln_s='cp -p'
11635: fi
11636: else
11637: as_ln_s='cp -p'
11638: fi
11639: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11640: rmdir conf$$.dir 2>/dev/null
11641:
1.1.1.2 ! misho 11642:
! 11643: # as_fn_mkdir_p
! 11644: # -------------
! 11645: # Create "$as_dir" as a directory, including parents if necessary.
! 11646: as_fn_mkdir_p ()
! 11647: {
! 11648:
! 11649: case $as_dir in #(
! 11650: -*) as_dir=./$as_dir;;
! 11651: esac
! 11652: test -d "$as_dir" || eval $as_mkdir_p || {
! 11653: as_dirs=
! 11654: while :; do
! 11655: case $as_dir in #(
! 11656: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 11657: *) as_qdir=$as_dir;;
! 11658: esac
! 11659: as_dirs="'$as_qdir' $as_dirs"
! 11660: as_dir=`$as_dirname -- "$as_dir" ||
! 11661: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 11662: X"$as_dir" : 'X\(//\)[^/]' \| \
! 11663: X"$as_dir" : 'X\(//\)$' \| \
! 11664: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 11665: $as_echo X"$as_dir" |
! 11666: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 11667: s//\1/
! 11668: q
! 11669: }
! 11670: /^X\(\/\/\)[^/].*/{
! 11671: s//\1/
! 11672: q
! 11673: }
! 11674: /^X\(\/\/\)$/{
! 11675: s//\1/
! 11676: q
! 11677: }
! 11678: /^X\(\/\).*/{
! 11679: s//\1/
! 11680: q
! 11681: }
! 11682: s/.*/./; q'`
! 11683: test -d "$as_dir" && break
! 11684: done
! 11685: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 11686: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 11687:
! 11688:
! 11689: } # as_fn_mkdir_p
1.1 misho 11690: if mkdir -p . 2>/dev/null; then
1.1.1.2 ! misho 11691: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misho 11692: else
11693: test -d ./-p && rmdir ./-p
11694: as_mkdir_p=false
11695: fi
11696:
11697: if test -x / >/dev/null 2>&1; then
11698: as_test_x='test -x'
11699: else
11700: if ls -dL / >/dev/null 2>&1; then
11701: as_ls_L_option=L
11702: else
11703: as_ls_L_option=
11704: fi
11705: as_test_x='
11706: eval sh -c '\''
11707: if test -d "$1"; then
11708: test -d "$1/.";
11709: else
1.1.1.2 ! misho 11710: case $1 in #(
1.1 misho 11711: -*)set "./$1";;
11712: esac;
1.1.1.2 ! misho 11713: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 misho 11714: ???[sx]*):;;*)false;;esac;fi
11715: '\'' sh
11716: '
11717: fi
11718: as_executable_p=$as_test_x
11719:
11720: # Sed expression to map a string onto a valid CPP name.
11721: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11722:
11723: # Sed expression to map a string onto a valid variable name.
11724: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11725:
11726:
11727: exec 6>&1
1.1.1.2 ! misho 11728: ## ----------------------------------- ##
! 11729: ## Main body of $CONFIG_STATUS script. ##
! 11730: ## ----------------------------------- ##
! 11731: _ASEOF
! 11732: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 misho 11733:
1.1.1.2 ! misho 11734: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 11735: # Save the log message, to keep $0 and so on meaningful, and to
1.1 misho 11736: # report actual input values of CONFIG_FILES etc. instead of their
11737: # values after options handling.
11738: ac_log="
11739: This file was extended by $as_me, which was
1.1.1.2 ! misho 11740: generated by GNU Autoconf 2.68. Invocation command line was
1.1 misho 11741:
11742: CONFIG_FILES = $CONFIG_FILES
11743: CONFIG_HEADERS = $CONFIG_HEADERS
11744: CONFIG_LINKS = $CONFIG_LINKS
11745: CONFIG_COMMANDS = $CONFIG_COMMANDS
11746: $ $0 $@
11747:
11748: on `(hostname || uname -n) 2>/dev/null | sed 1q`
11749: "
11750:
11751: _ACEOF
11752:
11753: case $ac_config_files in *"
11754: "*) set x $ac_config_files; shift; ac_config_files=$*;;
11755: esac
11756:
11757:
11758:
11759: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11760: # Files that config.status was made for.
11761: config_files="$ac_config_files"
11762: config_commands="$ac_config_commands"
11763:
11764: _ACEOF
11765:
11766: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11767: ac_cs_usage="\
1.1.1.2 ! misho 11768: \`$as_me' instantiates files and other configuration actions
! 11769: from templates according to the current configuration. Unless the files
! 11770: and actions are specified as TAGs, all are instantiated by default.
1.1 misho 11771:
1.1.1.2 ! misho 11772: Usage: $0 [OPTION]... [TAG]...
1.1 misho 11773:
11774: -h, --help print this help, then exit
11775: -V, --version print version number and configuration settings, then exit
1.1.1.2 ! misho 11776: --config print configuration, then exit
1.1 misho 11777: -q, --quiet, --silent
11778: do not print progress messages
11779: -d, --debug don't remove temporary files
11780: --recheck update $as_me by reconfiguring in the same conditions
11781: --file=FILE[:TEMPLATE]
11782: instantiate the configuration file FILE
11783:
11784: Configuration files:
11785: $config_files
11786:
11787: Configuration commands:
11788: $config_commands
11789:
1.1.1.2 ! misho 11790: Report bugs to the package provider."
1.1 misho 11791:
11792: _ACEOF
11793: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.2 ! misho 11794: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 misho 11795: ac_cs_version="\\
11796: config.status
1.1.1.2 ! misho 11797: configured by $0, generated by GNU Autoconf 2.68,
! 11798: with options \\"\$ac_cs_config\\"
1.1 misho 11799:
1.1.1.2 ! misho 11800: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 misho 11801: This config.status script is free software; the Free Software Foundation
11802: gives unlimited permission to copy, distribute and modify it."
11803:
11804: ac_pwd='$ac_pwd'
11805: srcdir='$srcdir'
11806: INSTALL='$INSTALL'
1.1.1.2 ! misho 11807: AWK='$AWK'
1.1 misho 11808: test -n "\$AWK" || AWK=awk
11809: _ACEOF
11810:
11811: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11812: # The default lists apply if the user does not specify any file.
11813: ac_need_defaults=:
11814: while test $# != 0
11815: do
11816: case $1 in
1.1.1.2 ! misho 11817: --*=?*)
1.1 misho 11818: ac_option=`expr "X$1" : 'X\([^=]*\)='`
11819: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11820: ac_shift=:
11821: ;;
1.1.1.2 ! misho 11822: --*=)
! 11823: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 11824: ac_optarg=
! 11825: ac_shift=:
! 11826: ;;
1.1 misho 11827: *)
11828: ac_option=$1
11829: ac_optarg=$2
11830: ac_shift=shift
11831: ;;
11832: esac
11833:
11834: case $ac_option in
11835: # Handling of the options.
11836: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11837: ac_cs_recheck=: ;;
11838: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11839: $as_echo "$ac_cs_version"; exit ;;
1.1.1.2 ! misho 11840: --config | --confi | --conf | --con | --co | --c )
! 11841: $as_echo "$ac_cs_config"; exit ;;
1.1 misho 11842: --debug | --debu | --deb | --de | --d | -d )
11843: debug=: ;;
11844: --file | --fil | --fi | --f )
11845: $ac_shift
11846: case $ac_optarg in
11847: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.1.2 ! misho 11848: '') as_fn_error $? "missing file argument" ;;
1.1 misho 11849: esac
1.1.1.2 ! misho 11850: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 misho 11851: ac_need_defaults=false;;
11852: --he | --h | --help | --hel | -h )
11853: $as_echo "$ac_cs_usage"; exit ;;
11854: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11855: | -silent | --silent | --silen | --sile | --sil | --si | --s)
11856: ac_cs_silent=: ;;
11857:
11858: # This is an error.
1.1.1.2 ! misho 11859: -*) as_fn_error $? "unrecognized option: \`$1'
! 11860: Try \`$0 --help' for more information." ;;
1.1 misho 11861:
1.1.1.2 ! misho 11862: *) as_fn_append ac_config_targets " $1"
1.1 misho 11863: ac_need_defaults=false ;;
11864:
11865: esac
11866: shift
11867: done
11868:
11869: ac_configure_extra_args=
11870:
11871: if $ac_cs_silent; then
11872: exec 6>/dev/null
11873: ac_configure_extra_args="$ac_configure_extra_args --silent"
11874: fi
11875:
11876: _ACEOF
11877: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11878: if \$ac_cs_recheck; then
11879: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11880: shift
11881: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11882: CONFIG_SHELL='$SHELL'
11883: export CONFIG_SHELL
11884: exec "\$@"
11885: fi
11886:
11887: _ACEOF
11888: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11889: exec 5>>config.log
11890: {
11891: echo
11892: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11893: ## Running $as_me. ##
11894: _ASBOX
11895: $as_echo "$ac_log"
11896: } >&5
11897:
11898: _ACEOF
11899: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11900: #
11901: # INIT-COMMANDS
11902: #
11903:
11904:
11905: # The HP-UX ksh and POSIX shell print the target directory to stdout
11906: # if CDPATH is set.
11907: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11908:
11909: sed_quote_subst='$sed_quote_subst'
11910: double_quote_subst='$double_quote_subst'
11911: delay_variable_subst='$delay_variable_subst'
1.1.1.2 ! misho 11912: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
! 11913: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
! 11914: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
! 11915: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
! 11916: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
! 11917: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
! 11918: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
! 11919: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
! 11920: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
! 11921: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
! 11922: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
! 11923: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
! 11924: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
! 11925: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
! 11926: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
! 11927: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
! 11928: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
! 11929: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
! 11930: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
! 11931: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
! 11932: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
! 11933: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
! 11934: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
! 11935: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
! 11936: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
! 11937: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
! 11938: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
! 11939: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
! 11940: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
! 11941: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
! 11942: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
! 11943: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
! 11944: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
! 11945: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
! 11946: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
! 11947: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
! 11948: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
! 11949: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
! 11950: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
! 11951: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
! 11952: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
! 11953: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
! 11954: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
! 11955: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
! 11956: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
! 11957: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
! 11958: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
! 11959: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
! 11960: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
! 11961: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
! 11962: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
! 11963: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
! 11964: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
! 11965: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
! 11966: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
! 11967: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
! 11968: 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"`'
! 11969: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
! 11970: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
! 11971: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
! 11972: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
! 11973: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
! 11974: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
! 11975: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
! 11976: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
! 11977: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
! 11978: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
! 11979: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
! 11980: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
! 11981: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
! 11982: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
! 11983: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
! 11984: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
! 11985: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
! 11986: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
! 11987: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
! 11988: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
! 11989: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
! 11990: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
! 11991: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
! 11992: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
! 11993: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
! 11994: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
! 11995: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
! 11996: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
! 11997: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
! 11998: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
! 11999: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
! 12000: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
! 12001: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
! 12002: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
! 12003: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
! 12004: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
! 12005: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
! 12006: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
! 12007: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
! 12008: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
! 12009: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
! 12010: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
! 12011: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
! 12012: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
! 12013: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
! 12014: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
! 12015: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
! 12016: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
! 12017: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
! 12018: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
! 12019: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
! 12020: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
! 12021: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
! 12022: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
! 12023: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
! 12024: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
! 12025: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
! 12026: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
! 12027: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
! 12028: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
! 12029: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
! 12030: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
! 12031: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
! 12032: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
! 12033: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
! 12034: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
! 12035: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
! 12036: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
! 12037: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
! 12038: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
! 12039: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
! 12040: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
! 12041: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
! 12042: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1.1 misho 12043:
12044: LTCC='$LTCC'
12045: LTCFLAGS='$LTCFLAGS'
12046: compiler='$compiler_DEFAULT'
12047:
1.1.1.2 ! misho 12048: # A function that is used when there is no print builtin or printf.
! 12049: func_fallback_echo ()
! 12050: {
! 12051: eval 'cat <<_LTECHO_EOF
! 12052: \$1
! 12053: _LTECHO_EOF'
! 12054: }
! 12055:
1.1 misho 12056: # Quote evaled strings.
1.1.1.2 ! misho 12057: for var in AS \
! 12058: DLLTOOL \
! 12059: OBJDUMP \
! 12060: SHELL \
! 12061: ECHO \
! 12062: SED \
1.1 misho 12063: GREP \
12064: EGREP \
12065: FGREP \
12066: LD \
12067: NM \
12068: LN_S \
12069: lt_SP2NL \
12070: lt_NL2SP \
12071: reload_flag \
12072: deplibs_check_method \
12073: file_magic_cmd \
1.1.1.2 ! misho 12074: file_magic_glob \
! 12075: want_nocaseglob \
! 12076: sharedlib_from_linklib_cmd \
1.1 misho 12077: AR \
12078: AR_FLAGS \
1.1.1.2 ! misho 12079: archiver_list_spec \
1.1 misho 12080: STRIP \
12081: RANLIB \
12082: CC \
12083: CFLAGS \
12084: compiler \
12085: lt_cv_sys_global_symbol_pipe \
12086: lt_cv_sys_global_symbol_to_cdecl \
12087: lt_cv_sys_global_symbol_to_c_name_address \
12088: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.1.1.2 ! misho 12089: nm_file_list_spec \
1.1 misho 12090: lt_prog_compiler_no_builtin_flag \
12091: lt_prog_compiler_pic \
1.1.1.2 ! misho 12092: lt_prog_compiler_wl \
1.1 misho 12093: lt_prog_compiler_static \
12094: lt_cv_prog_compiler_c_o \
12095: need_locks \
1.1.1.2 ! misho 12096: MANIFEST_TOOL \
1.1 misho 12097: DSYMUTIL \
12098: NMEDIT \
12099: LIPO \
12100: OTOOL \
12101: OTOOL64 \
12102: shrext_cmds \
12103: export_dynamic_flag_spec \
12104: whole_archive_flag_spec \
12105: compiler_needs_object \
12106: with_gnu_ld \
12107: allow_undefined_flag \
12108: no_undefined_flag \
12109: hardcode_libdir_flag_spec \
12110: hardcode_libdir_flag_spec_ld \
12111: hardcode_libdir_separator \
12112: exclude_expsyms \
12113: include_expsyms \
12114: file_list_spec \
12115: variables_saved_for_relink \
12116: libname_spec \
12117: library_names_spec \
12118: soname_spec \
1.1.1.2 ! misho 12119: install_override_mode \
1.1 misho 12120: finish_eval \
12121: old_striplib \
12122: striplib; do
1.1.1.2 ! misho 12123: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1.1 misho 12124: *[\\\\\\\`\\"\\\$]*)
1.1.1.2 ! misho 12125: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1.1 misho 12126: ;;
12127: *)
12128: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12129: ;;
12130: esac
12131: done
12132:
12133: # Double-quote double-evaled strings.
12134: for var in reload_cmds \
12135: old_postinstall_cmds \
12136: old_postuninstall_cmds \
12137: old_archive_cmds \
12138: extract_expsyms_cmds \
12139: old_archive_from_new_cmds \
12140: old_archive_from_expsyms_cmds \
12141: archive_cmds \
12142: archive_expsym_cmds \
12143: module_cmds \
12144: module_expsym_cmds \
12145: export_symbols_cmds \
12146: prelink_cmds \
1.1.1.2 ! misho 12147: postlink_cmds \
1.1 misho 12148: postinstall_cmds \
12149: postuninstall_cmds \
12150: finish_cmds \
12151: sys_lib_search_path_spec \
12152: sys_lib_dlsearch_path_spec; do
1.1.1.2 ! misho 12153: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1.1 misho 12154: *[\\\\\\\`\\"\\\$]*)
1.1.1.2 ! misho 12155: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1.1 misho 12156: ;;
12157: *)
12158: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12159: ;;
12160: esac
12161: done
12162:
12163: ac_aux_dir='$ac_aux_dir'
12164: xsi_shell='$xsi_shell'
12165: lt_shell_append='$lt_shell_append'
12166:
12167: # See if we are running on zsh, and set the options which allow our
12168: # commands through without removal of \ escapes INIT.
12169: if test -n "\${ZSH_VERSION+set}" ; then
12170: setopt NO_GLOB_SUBST
12171: fi
12172:
12173:
12174: PACKAGE='$PACKAGE'
12175: VERSION='$VERSION'
12176: TIMESTAMP='$TIMESTAMP'
12177: RM='$RM'
12178: ofile='$ofile'
12179:
12180:
12181:
12182:
12183: _ACEOF
12184:
12185: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12186:
12187: # Handling of arguments.
12188: for ac_config_target in $ac_config_targets
12189: do
12190: case $ac_config_target in
12191: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12192: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12193:
1.1.1.2 ! misho 12194: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 misho 12195: esac
12196: done
12197:
12198:
12199: # If the user did not use the arguments to specify the items to instantiate,
12200: # then the envvar interface is used. Set only those that are not.
12201: # We use the long form for the default assignment because of an extremely
12202: # bizarre bug on SunOS 4.1.3.
12203: if $ac_need_defaults; then
12204: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12205: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12206: fi
12207:
12208: # Have a temporary directory for convenience. Make it in the build tree
12209: # simply because there is no reason against having it here, and in addition,
12210: # creating and moving files from /tmp can sometimes cause problems.
12211: # Hook for its removal unless debugging.
12212: # Note that there is a small window in which the directory will not be cleaned:
12213: # after its creation but before its name has been assigned to `$tmp'.
12214: $debug ||
12215: {
1.1.1.2 ! misho 12216: tmp= ac_tmp=
1.1 misho 12217: trap 'exit_status=$?
1.1.1.2 ! misho 12218: : "${ac_tmp:=$tmp}"
! 12219: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 misho 12220: ' 0
1.1.1.2 ! misho 12221: trap 'as_fn_exit 1' 1 2 13 15
1.1 misho 12222: }
12223: # Create a (secure) tmp directory for tmp files.
12224:
12225: {
12226: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.1.2 ! misho 12227: test -d "$tmp"
1.1 misho 12228: } ||
12229: {
12230: tmp=./conf$$-$RANDOM
12231: (umask 077 && mkdir "$tmp")
1.1.1.2 ! misho 12232: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
! 12233: ac_tmp=$tmp
1.1 misho 12234:
12235: # Set up the scripts for CONFIG_FILES section.
12236: # No need to generate them if there are no CONFIG_FILES.
12237: # This happens for instance with `./config.status config.h'.
12238: if test -n "$CONFIG_FILES"; then
12239:
12240:
1.1.1.2 ! misho 12241: ac_cr=`echo X | tr X '\015'`
! 12242: # On cygwin, bash can eat \r inside `` if the user requested igncr.
! 12243: # But we know of no other shell where ac_cr would be empty at this
! 12244: # point, so we can use a bashism as a fallback.
! 12245: if test "x$ac_cr" = x; then
! 12246: eval ac_cr=\$\'\\r\'
! 12247: fi
1.1 misho 12248: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12249: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12250: ac_cs_awk_cr='\\r'
12251: else
12252: ac_cs_awk_cr=$ac_cr
12253: fi
12254:
1.1.1.2 ! misho 12255: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.1 misho 12256: _ACEOF
12257:
12258:
12259: {
12260: echo "cat >conf$$subs.awk <<_ACEOF" &&
12261: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12262: echo "_ACEOF"
12263: } >conf$$subs.sh ||
1.1.1.2 ! misho 12264: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 12265: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.1 misho 12266: ac_delim='%!_!# '
12267: for ac_last_try in false false false false false :; do
12268: . ./conf$$subs.sh ||
1.1.1.2 ! misho 12269: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 12270:
12271: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12272: if test $ac_delim_n = $ac_delim_num; then
12273: break
12274: elif $ac_last_try; then
1.1.1.2 ! misho 12275: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 12276: else
12277: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12278: fi
12279: done
12280: rm -f conf$$subs.sh
12281:
12282: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.2 ! misho 12283: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.1 misho 12284: _ACEOF
12285: sed -n '
12286: h
12287: s/^/S["/; s/!.*/"]=/
12288: p
12289: g
12290: s/^[^!]*!//
12291: :repl
12292: t repl
12293: s/'"$ac_delim"'$//
12294: t delim
12295: :nl
12296: h
1.1.1.2 ! misho 12297: s/\(.\{148\}\)..*/\1/
1.1 misho 12298: t more1
12299: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12300: p
12301: n
12302: b repl
12303: :more1
12304: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12305: p
12306: g
12307: s/.\{148\}//
12308: t nl
12309: :delim
12310: h
1.1.1.2 ! misho 12311: s/\(.\{148\}\)..*/\1/
1.1 misho 12312: t more2
12313: s/["\\]/\\&/g; s/^/"/; s/$/"/
12314: p
12315: b
12316: :more2
12317: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12318: p
12319: g
12320: s/.\{148\}//
12321: t delim
12322: ' <conf$$subs.awk | sed '
12323: /^[^""]/{
12324: N
12325: s/\n//
12326: }
12327: ' >>$CONFIG_STATUS || ac_write_fail=1
12328: rm -f conf$$subs.awk
12329: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12330: _ACAWK
1.1.1.2 ! misho 12331: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.1 misho 12332: for (key in S) S_is_set[key] = 1
12333: FS = ""
12334:
12335: }
12336: {
12337: line = $ 0
12338: nfields = split(line, field, "@")
12339: substed = 0
12340: len = length(field[1])
12341: for (i = 2; i < nfields; i++) {
12342: key = field[i]
12343: keylen = length(key)
12344: if (S_is_set[key]) {
12345: value = S[key]
12346: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12347: len += length(value) + length(field[++i])
12348: substed = 1
12349: } else
12350: len += 1 + keylen
12351: }
12352:
12353: print line
12354: }
12355:
12356: _ACAWK
12357: _ACEOF
12358: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12359: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12360: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12361: else
12362: cat
1.1.1.2 ! misho 12363: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
! 12364: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 misho 12365: _ACEOF
12366:
1.1.1.2 ! misho 12367: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
! 12368: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 misho 12369: # trailing colons and then remove the whole line if VPATH becomes empty
12370: # (actually we leave an empty line to preserve line numbers).
12371: if test "x$srcdir" = x.; then
1.1.1.2 ! misho 12372: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
! 12373: h
! 12374: s///
! 12375: s/^/:/
! 12376: s/[ ]*$/:/
! 12377: s/:\$(srcdir):/:/g
! 12378: s/:\${srcdir}:/:/g
! 12379: s/:@srcdir@:/:/g
! 12380: s/^:*//
1.1 misho 12381: s/:*$//
1.1.1.2 ! misho 12382: x
! 12383: s/\(=[ ]*\).*/\1/
! 12384: G
! 12385: s/\n//
1.1 misho 12386: s/^[^=]*=[ ]*$//
12387: }'
12388: fi
12389:
12390: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12391: fi # test -n "$CONFIG_FILES"
12392:
12393:
12394: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12395: shift
12396: for ac_tag
12397: do
12398: case $ac_tag in
12399: :[FHLC]) ac_mode=$ac_tag; continue;;
12400: esac
12401: case $ac_mode$ac_tag in
12402: :[FHL]*:*);;
1.1.1.2 ! misho 12403: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 misho 12404: :[FH]-) ac_tag=-:-;;
12405: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12406: esac
12407: ac_save_IFS=$IFS
12408: IFS=:
12409: set x $ac_tag
12410: IFS=$ac_save_IFS
12411: shift
12412: ac_file=$1
12413: shift
12414:
12415: case $ac_mode in
12416: :L) ac_source=$1;;
12417: :[FH])
12418: ac_file_inputs=
12419: for ac_f
12420: do
12421: case $ac_f in
1.1.1.2 ! misho 12422: -) ac_f="$ac_tmp/stdin";;
1.1 misho 12423: *) # Look for the file first in the build tree, then in the source tree
12424: # (if the path is not absolute). The absolute path cannot be DOS-style,
12425: # because $ac_f cannot contain `:'.
12426: test -f "$ac_f" ||
12427: case $ac_f in
12428: [\\/$]*) false;;
12429: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12430: esac ||
1.1.1.2 ! misho 12431: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 misho 12432: esac
12433: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.1.1.2 ! misho 12434: as_fn_append ac_file_inputs " '$ac_f'"
1.1 misho 12435: done
12436:
12437: # Let's still pretend it is `configure' which instantiates (i.e., don't
12438: # use $as_me), people would be surprised to read:
12439: # /* config.h. Generated by config.status. */
12440: configure_input='Generated from '`
12441: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12442: `' by configure.'
12443: if test x"$ac_file" != x-; then
12444: configure_input="$ac_file. $configure_input"
1.1.1.2 ! misho 12445: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1.1 misho 12446: $as_echo "$as_me: creating $ac_file" >&6;}
12447: fi
12448: # Neutralize special characters interpreted by sed in replacement strings.
12449: case $configure_input in #(
12450: *\&* | *\|* | *\\* )
12451: ac_sed_conf_input=`$as_echo "$configure_input" |
12452: sed 's/[\\\\&|]/\\\\&/g'`;; #(
12453: *) ac_sed_conf_input=$configure_input;;
12454: esac
12455:
12456: case $ac_tag in
1.1.1.2 ! misho 12457: *:-:* | *:-) cat >"$ac_tmp/stdin" \
! 12458: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 misho 12459: esac
12460: ;;
12461: esac
12462:
12463: ac_dir=`$as_dirname -- "$ac_file" ||
12464: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12465: X"$ac_file" : 'X\(//\)[^/]' \| \
12466: X"$ac_file" : 'X\(//\)$' \| \
12467: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12468: $as_echo X"$ac_file" |
12469: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12470: s//\1/
12471: q
12472: }
12473: /^X\(\/\/\)[^/].*/{
12474: s//\1/
12475: q
12476: }
12477: /^X\(\/\/\)$/{
12478: s//\1/
12479: q
12480: }
12481: /^X\(\/\).*/{
12482: s//\1/
12483: q
12484: }
12485: s/.*/./; q'`
1.1.1.2 ! misho 12486: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 misho 12487: ac_builddir=.
12488:
12489: case "$ac_dir" in
12490: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12491: *)
12492: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12493: # A ".." for each directory in $ac_dir_suffix.
12494: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12495: case $ac_top_builddir_sub in
12496: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12497: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12498: esac ;;
12499: esac
12500: ac_abs_top_builddir=$ac_pwd
12501: ac_abs_builddir=$ac_pwd$ac_dir_suffix
12502: # for backward compatibility:
12503: ac_top_builddir=$ac_top_build_prefix
12504:
12505: case $srcdir in
12506: .) # We are building in place.
12507: ac_srcdir=.
12508: ac_top_srcdir=$ac_top_builddir_sub
12509: ac_abs_top_srcdir=$ac_pwd ;;
12510: [\\/]* | ?:[\\/]* ) # Absolute name.
12511: ac_srcdir=$srcdir$ac_dir_suffix;
12512: ac_top_srcdir=$srcdir
12513: ac_abs_top_srcdir=$srcdir ;;
12514: *) # Relative name.
12515: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12516: ac_top_srcdir=$ac_top_build_prefix$srcdir
12517: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12518: esac
12519: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12520:
12521:
12522: case $ac_mode in
12523: :F)
12524: #
12525: # CONFIG_FILE
12526: #
12527:
12528: case $INSTALL in
12529: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12530: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12531: esac
12532: _ACEOF
12533:
12534: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12535: # If the template does not know about datarootdir, expand it.
12536: # FIXME: This hack should be removed a few years after 2.60.
12537: ac_datarootdir_hack=; ac_datarootdir_seen=
12538: ac_sed_dataroot='
12539: /datarootdir/ {
12540: p
12541: q
12542: }
12543: /@datadir@/p
12544: /@docdir@/p
12545: /@infodir@/p
12546: /@localedir@/p
1.1.1.2 ! misho 12547: /@mandir@/p'
1.1 misho 12548: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12549: *datarootdir*) ac_datarootdir_seen=yes;;
12550: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.1.1.2 ! misho 12551: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1.1 misho 12552: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12553: _ACEOF
12554: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555: ac_datarootdir_hack='
12556: s&@datadir@&$datadir&g
12557: s&@docdir@&$docdir&g
12558: s&@infodir@&$infodir&g
12559: s&@localedir@&$localedir&g
12560: s&@mandir@&$mandir&g
1.1.1.2 ! misho 12561: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 misho 12562: esac
12563: _ACEOF
12564:
12565: # Neutralize VPATH when `$srcdir' = `.'.
12566: # Shell code in configure.ac might set extrasub.
12567: # FIXME: do we really want to maintain this feature?
12568: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12569: ac_sed_extra="$ac_vpsub
12570: $extrasub
12571: _ACEOF
12572: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573: :t
12574: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12575: s|@configure_input@|$ac_sed_conf_input|;t t
12576: s&@top_builddir@&$ac_top_builddir_sub&;t t
12577: s&@top_build_prefix@&$ac_top_build_prefix&;t t
12578: s&@srcdir@&$ac_srcdir&;t t
12579: s&@abs_srcdir@&$ac_abs_srcdir&;t t
12580: s&@top_srcdir@&$ac_top_srcdir&;t t
12581: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12582: s&@builddir@&$ac_builddir&;t t
12583: s&@abs_builddir@&$ac_abs_builddir&;t t
12584: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12585: s&@INSTALL@&$ac_INSTALL&;t t
12586: $ac_datarootdir_hack
12587: "
1.1.1.2 ! misho 12588: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
! 12589: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 12590:
12591: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.1.1.2 ! misho 12592: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
! 12593: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
! 12594: "$ac_tmp/out"`; test -z "$ac_out"; } &&
! 12595: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 12596: which seems to be undefined. Please make sure it is defined" >&5
1.1 misho 12597: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1.1.2 ! misho 12598: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 misho 12599:
1.1.1.2 ! misho 12600: rm -f "$ac_tmp/stdin"
1.1 misho 12601: case $ac_file in
1.1.1.2 ! misho 12602: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
! 12603: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.1 misho 12604: esac \
1.1.1.2 ! misho 12605: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 12606: ;;
12607:
12608:
1.1.1.2 ! misho 12609: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1.1 misho 12610: $as_echo "$as_me: executing $ac_file commands" >&6;}
12611: ;;
12612: esac
12613:
12614:
12615: case $ac_file$ac_mode in
12616: "libtool":C)
12617:
12618: # See if we are running on zsh, and set the options which allow our
12619: # commands through without removal of \ escapes.
12620: if test -n "${ZSH_VERSION+set}" ; then
12621: setopt NO_GLOB_SUBST
12622: fi
12623:
12624: cfgfile="${ofile}T"
12625: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12626: $RM "$cfgfile"
12627:
12628: cat <<_LT_EOF >> "$cfgfile"
12629: #! $SHELL
12630:
12631: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12632: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12633: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12634: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12635: #
12636: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.1.2 ! misho 12637: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
! 12638: # Inc.
1.1 misho 12639: # Written by Gordon Matzigkeit, 1996
12640: #
12641: # This file is part of GNU Libtool.
12642: #
12643: # GNU Libtool is free software; you can redistribute it and/or
12644: # modify it under the terms of the GNU General Public License as
12645: # published by the Free Software Foundation; either version 2 of
12646: # the License, or (at your option) any later version.
12647: #
12648: # As a special exception to the GNU General Public License,
12649: # if you distribute this file as part of a program or library that
12650: # is built using GNU Libtool, you may include this file under the
12651: # same distribution terms that you use for the rest of that program.
12652: #
12653: # GNU Libtool is distributed in the hope that it will be useful,
12654: # but WITHOUT ANY WARRANTY; without even the implied warranty of
12655: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12656: # GNU General Public License for more details.
12657: #
12658: # You should have received a copy of the GNU General Public License
12659: # along with GNU Libtool; see the file COPYING. If not, a copy
12660: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12661: # obtained by writing to the Free Software Foundation, Inc.,
12662: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12663:
12664:
12665: # The names of the tagged configurations supported by this script.
12666: available_tags=""
12667:
12668: # ### BEGIN LIBTOOL CONFIG
12669:
12670: # Which release of libtool.m4 was used?
12671: macro_version=$macro_version
12672: macro_revision=$macro_revision
12673:
12674: # Assembler program.
1.1.1.2 ! misho 12675: AS=$lt_AS
1.1 misho 12676:
12677: # DLL creation program.
1.1.1.2 ! misho 12678: DLLTOOL=$lt_DLLTOOL
1.1 misho 12679:
12680: # Object dumper program.
1.1.1.2 ! misho 12681: OBJDUMP=$lt_OBJDUMP
1.1 misho 12682:
12683: # Whether or not to build shared libraries.
12684: build_libtool_libs=$enable_shared
12685:
12686: # Whether or not to build static libraries.
12687: build_old_libs=$enable_static
12688:
12689: # What type of objects to build.
12690: pic_mode=$pic_mode
12691:
12692: # Whether or not to optimize for fast installation.
12693: fast_install=$enable_fast_install
12694:
1.1.1.2 ! misho 12695: # Shell to use when invoking shell scripts.
! 12696: SHELL=$lt_SHELL
! 12697:
! 12698: # An echo program that protects backslashes.
! 12699: ECHO=$lt_ECHO
! 12700:
1.1 misho 12701: # The host system.
12702: host_alias=$host_alias
12703: host=$host
12704: host_os=$host_os
12705:
12706: # The build system.
12707: build_alias=$build_alias
12708: build=$build
12709: build_os=$build_os
12710:
12711: # A sed program that does not truncate output.
12712: SED=$lt_SED
12713:
12714: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12715: Xsed="\$SED -e 1s/^X//"
12716:
12717: # A grep program that handles long lines.
12718: GREP=$lt_GREP
12719:
12720: # An ERE matcher.
12721: EGREP=$lt_EGREP
12722:
12723: # A literal string matcher.
12724: FGREP=$lt_FGREP
12725:
12726: # A BSD- or MS-compatible name lister.
12727: NM=$lt_NM
12728:
12729: # Whether we need soft or hard links.
12730: LN_S=$lt_LN_S
12731:
12732: # What is the maximum length of a command?
12733: max_cmd_len=$max_cmd_len
12734:
12735: # Object file suffix (normally "o").
12736: objext=$ac_objext
12737:
12738: # Executable file suffix (normally "").
12739: exeext=$exeext
12740:
12741: # whether the shell understands "unset".
12742: lt_unset=$lt_unset
12743:
12744: # turn spaces into newlines.
12745: SP2NL=$lt_lt_SP2NL
12746:
12747: # turn newlines into spaces.
12748: NL2SP=$lt_lt_NL2SP
12749:
1.1.1.2 ! misho 12750: # convert \$build file names to \$host format.
! 12751: to_host_file_cmd=$lt_cv_to_host_file_cmd
! 12752:
! 12753: # convert \$build files to toolchain format.
! 12754: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1 misho 12755:
12756: # Method to check whether dependent libraries are shared objects.
12757: deplibs_check_method=$lt_deplibs_check_method
12758:
1.1.1.2 ! misho 12759: # Command to use when deplibs_check_method = "file_magic".
1.1 misho 12760: file_magic_cmd=$lt_file_magic_cmd
12761:
1.1.1.2 ! misho 12762: # How to find potential files when deplibs_check_method = "file_magic".
! 12763: file_magic_glob=$lt_file_magic_glob
! 12764:
! 12765: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
! 12766: want_nocaseglob=$lt_want_nocaseglob
! 12767:
! 12768: # Command to associate shared and link libraries.
! 12769: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
! 12770:
1.1 misho 12771: # The archiver.
12772: AR=$lt_AR
1.1.1.2 ! misho 12773:
! 12774: # Flags to create an archive.
1.1 misho 12775: AR_FLAGS=$lt_AR_FLAGS
12776:
1.1.1.2 ! misho 12777: # How to feed a file listing to the archiver.
! 12778: archiver_list_spec=$lt_archiver_list_spec
! 12779:
1.1 misho 12780: # A symbol stripping program.
12781: STRIP=$lt_STRIP
12782:
12783: # Commands used to install an old-style archive.
12784: RANLIB=$lt_RANLIB
12785: old_postinstall_cmds=$lt_old_postinstall_cmds
12786: old_postuninstall_cmds=$lt_old_postuninstall_cmds
12787:
1.1.1.2 ! misho 12788: # Whether to use a lock for old archive extraction.
! 12789: lock_old_archive_extraction=$lock_old_archive_extraction
! 12790:
1.1 misho 12791: # A C compiler.
12792: LTCC=$lt_CC
12793:
12794: # LTCC compiler flags.
12795: LTCFLAGS=$lt_CFLAGS
12796:
12797: # Take the output of nm and produce a listing of raw symbols and C names.
12798: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12799:
12800: # Transform the output of nm in a proper C declaration.
12801: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12802:
12803: # Transform the output of nm in a C name address pair.
12804: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12805:
12806: # Transform the output of nm in a C name address pair when lib prefix is needed.
12807: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12808:
1.1.1.2 ! misho 12809: # Specify filename containing input files for \$NM.
! 12810: nm_file_list_spec=$lt_nm_file_list_spec
1.1 misho 12811:
1.1.1.2 ! misho 12812: # The root where to search for dependent libraries,and in which our libraries should be installed.
! 12813: lt_sysroot=$lt_sysroot
1.1 misho 12814:
1.1.1.2 ! misho 12815: # The name of the directory that contains temporary libtool files.
! 12816: objdir=$objdir
1.1 misho 12817:
12818: # Used to examine libraries when file_magic_cmd begins with "file".
12819: MAGIC_CMD=$MAGIC_CMD
12820:
12821: # Must we lock files when doing compilation?
12822: need_locks=$lt_need_locks
12823:
1.1.1.2 ! misho 12824: # Manifest tool.
! 12825: MANIFEST_TOOL=$lt_MANIFEST_TOOL
! 12826:
1.1 misho 12827: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12828: DSYMUTIL=$lt_DSYMUTIL
12829:
12830: # Tool to change global to local symbols on Mac OS X.
12831: NMEDIT=$lt_NMEDIT
12832:
12833: # Tool to manipulate fat objects and archives on Mac OS X.
12834: LIPO=$lt_LIPO
12835:
12836: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12837: OTOOL=$lt_OTOOL
12838:
12839: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12840: OTOOL64=$lt_OTOOL64
12841:
12842: # Old archive suffix (normally "a").
12843: libext=$libext
12844:
12845: # Shared library suffix (normally ".so").
12846: shrext_cmds=$lt_shrext_cmds
12847:
12848: # The commands to extract the exported symbol list from a shared archive.
12849: extract_expsyms_cmds=$lt_extract_expsyms_cmds
12850:
12851: # Variables whose values should be saved in libtool wrapper scripts and
12852: # restored at link time.
12853: variables_saved_for_relink=$lt_variables_saved_for_relink
12854:
12855: # Do we need the "lib" prefix for modules?
12856: need_lib_prefix=$need_lib_prefix
12857:
12858: # Do we need a version for libraries?
12859: need_version=$need_version
12860:
12861: # Library versioning type.
12862: version_type=$version_type
12863:
12864: # Shared library runtime path variable.
12865: runpath_var=$runpath_var
12866:
12867: # Shared library path variable.
12868: shlibpath_var=$shlibpath_var
12869:
12870: # Is shlibpath searched before the hard-coded library search path?
12871: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12872:
12873: # Format of library name prefix.
12874: libname_spec=$lt_libname_spec
12875:
12876: # List of archive names. First name is the real one, the rest are links.
12877: # The last name is the one that the linker finds with -lNAME
12878: library_names_spec=$lt_library_names_spec
12879:
12880: # The coded name of the library, if different from the real name.
12881: soname_spec=$lt_soname_spec
12882:
1.1.1.2 ! misho 12883: # Permission mode override for installation of shared libraries.
! 12884: install_override_mode=$lt_install_override_mode
! 12885:
1.1 misho 12886: # Command to use after installation of a shared archive.
12887: postinstall_cmds=$lt_postinstall_cmds
12888:
12889: # Command to use after uninstallation of a shared archive.
12890: postuninstall_cmds=$lt_postuninstall_cmds
12891:
12892: # Commands used to finish a libtool library installation in a directory.
12893: finish_cmds=$lt_finish_cmds
12894:
12895: # As "finish_cmds", except a single script fragment to be evaled but
12896: # not shown.
12897: finish_eval=$lt_finish_eval
12898:
12899: # Whether we should hardcode library paths into libraries.
12900: hardcode_into_libs=$hardcode_into_libs
12901:
12902: # Compile-time system search path for libraries.
12903: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12904:
12905: # Run-time system search path for libraries.
12906: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12907:
12908: # Whether dlopen is supported.
12909: dlopen_support=$enable_dlopen
12910:
12911: # Whether dlopen of programs is supported.
12912: dlopen_self=$enable_dlopen_self
12913:
12914: # Whether dlopen of statically linked programs is supported.
12915: dlopen_self_static=$enable_dlopen_self_static
12916:
12917: # Commands to strip libraries.
12918: old_striplib=$lt_old_striplib
12919: striplib=$lt_striplib
12920:
12921:
12922: # The linker used to build libraries.
12923: LD=$lt_LD
12924:
1.1.1.2 ! misho 12925: # How to create reloadable object files.
! 12926: reload_flag=$lt_reload_flag
! 12927: reload_cmds=$lt_reload_cmds
! 12928:
1.1 misho 12929: # Commands used to build an old-style archive.
12930: old_archive_cmds=$lt_old_archive_cmds
12931:
12932: # A language specific compiler.
12933: CC=$lt_compiler
12934:
12935: # Is the compiler the GNU compiler?
12936: with_gcc=$GCC
12937:
12938: # Compiler flag to turn off builtin functions.
12939: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12940:
12941: # Additional compiler flags for building library objects.
12942: pic_flag=$lt_lt_prog_compiler_pic
12943:
1.1.1.2 ! misho 12944: # How to pass a linker flag through the compiler.
! 12945: wl=$lt_lt_prog_compiler_wl
! 12946:
1.1 misho 12947: # Compiler flag to prevent dynamic linking.
12948: link_static_flag=$lt_lt_prog_compiler_static
12949:
12950: # Does compiler simultaneously support -c and -o options?
12951: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12952:
12953: # Whether or not to add -lc for building shared libraries.
12954: build_libtool_need_lc=$archive_cmds_need_lc
12955:
12956: # Whether or not to disallow shared libs when runtime libs are static.
12957: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12958:
12959: # Compiler flag to allow reflexive dlopens.
12960: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12961:
12962: # Compiler flag to generate shared objects directly from archives.
12963: whole_archive_flag_spec=$lt_whole_archive_flag_spec
12964:
12965: # Whether the compiler copes with passing no objects directly.
12966: compiler_needs_object=$lt_compiler_needs_object
12967:
12968: # Create an old-style archive from a shared archive.
12969: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12970:
12971: # Create a temporary old-style archive to link instead of a shared archive.
12972: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12973:
12974: # Commands used to build a shared archive.
12975: archive_cmds=$lt_archive_cmds
12976: archive_expsym_cmds=$lt_archive_expsym_cmds
12977:
12978: # Commands used to build a loadable module if different from building
12979: # a shared archive.
12980: module_cmds=$lt_module_cmds
12981: module_expsym_cmds=$lt_module_expsym_cmds
12982:
12983: # Whether we are building with GNU ld or not.
12984: with_gnu_ld=$lt_with_gnu_ld
12985:
12986: # Flag that allows shared libraries with undefined symbols to be built.
12987: allow_undefined_flag=$lt_allow_undefined_flag
12988:
12989: # Flag that enforces no undefined symbols.
12990: no_undefined_flag=$lt_no_undefined_flag
12991:
12992: # Flag to hardcode \$libdir into a binary during linking.
12993: # This must work even if \$libdir does not exist
12994: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12995:
12996: # If ld is used when linking, flag to hardcode \$libdir into a binary
12997: # during linking. This must work even if \$libdir does not exist.
12998: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12999:
13000: # Whether we need a single "-rpath" flag with a separated argument.
13001: hardcode_libdir_separator=$lt_hardcode_libdir_separator
13002:
13003: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13004: # DIR into the resulting binary.
13005: hardcode_direct=$hardcode_direct
13006:
13007: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13008: # DIR into the resulting binary and the resulting library dependency is
13009: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13010: # library is relocated.
13011: hardcode_direct_absolute=$hardcode_direct_absolute
13012:
13013: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13014: # into the resulting binary.
13015: hardcode_minus_L=$hardcode_minus_L
13016:
13017: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13018: # into the resulting binary.
13019: hardcode_shlibpath_var=$hardcode_shlibpath_var
13020:
13021: # Set to "yes" if building a shared library automatically hardcodes DIR
13022: # into the library and all subsequent libraries and executables linked
13023: # against it.
13024: hardcode_automatic=$hardcode_automatic
13025:
13026: # Set to yes if linker adds runtime paths of dependent libraries
13027: # to runtime path list.
13028: inherit_rpath=$inherit_rpath
13029:
13030: # Whether libtool must link a program against all its dependency libraries.
13031: link_all_deplibs=$link_all_deplibs
13032:
13033: # Set to "yes" if exported symbols are required.
13034: always_export_symbols=$always_export_symbols
13035:
13036: # The commands to list exported symbols.
13037: export_symbols_cmds=$lt_export_symbols_cmds
13038:
13039: # Symbols that should not be listed in the preloaded symbols.
13040: exclude_expsyms=$lt_exclude_expsyms
13041:
13042: # Symbols that must always be exported.
13043: include_expsyms=$lt_include_expsyms
13044:
13045: # Commands necessary for linking programs (against libraries) with templates.
13046: prelink_cmds=$lt_prelink_cmds
13047:
1.1.1.2 ! misho 13048: # Commands necessary for finishing linking programs.
! 13049: postlink_cmds=$lt_postlink_cmds
! 13050:
1.1 misho 13051: # Specify filename containing input files.
13052: file_list_spec=$lt_file_list_spec
13053:
13054: # How to hardcode a shared library path into an executable.
13055: hardcode_action=$hardcode_action
13056:
13057: # ### END LIBTOOL CONFIG
13058:
13059: _LT_EOF
13060:
13061: case $host_os in
13062: aix3*)
13063: cat <<\_LT_EOF >> "$cfgfile"
13064: # AIX sometimes has problems with the GCC collect2 program. For some
13065: # reason, if we set the COLLECT_NAMES environment variable, the problems
13066: # vanish in a puff of smoke.
13067: if test "X${COLLECT_NAMES+set}" != Xset; then
13068: COLLECT_NAMES=
13069: export COLLECT_NAMES
13070: fi
13071: _LT_EOF
13072: ;;
13073: esac
13074:
13075:
13076: ltmain="$ac_aux_dir/ltmain.sh"
13077:
13078:
13079: # We use sed instead of cat because bash on DJGPP gets confused if
13080: # if finds mixed CR/LF and LF-only lines. Since sed operates in
13081: # text mode, it properly converts lines to CR/LF. This bash problem
13082: # is reportedly fixed, but why not run on old versions too?
1.1.1.2 ! misho 13083: sed '$q' "$ltmain" >> "$cfgfile" \
! 13084: || (rm -f "$cfgfile"; exit 1)
1.1 misho 13085:
1.1.1.2 ! misho 13086: if test x"$xsi_shell" = xyes; then
! 13087: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
! 13088: func_dirname ()\
! 13089: {\
! 13090: \ case ${1} in\
! 13091: \ */*) func_dirname_result="${1%/*}${2}" ;;\
! 13092: \ * ) func_dirname_result="${3}" ;;\
! 13093: \ esac\
! 13094: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
! 13095: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13096: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13097: test 0 -eq $? || _lt_function_replace_fail=:
! 13098:
! 13099:
! 13100: sed -e '/^func_basename ()$/,/^} # func_basename /c\
! 13101: func_basename ()\
! 13102: {\
! 13103: \ func_basename_result="${1##*/}"\
! 13104: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
! 13105: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13106: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13107: test 0 -eq $? || _lt_function_replace_fail=:
! 13108:
! 13109:
! 13110: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
! 13111: func_dirname_and_basename ()\
! 13112: {\
! 13113: \ case ${1} in\
! 13114: \ */*) func_dirname_result="${1%/*}${2}" ;;\
! 13115: \ * ) func_dirname_result="${3}" ;;\
! 13116: \ esac\
! 13117: \ func_basename_result="${1##*/}"\
! 13118: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
! 13119: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13120: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13121: test 0 -eq $? || _lt_function_replace_fail=:
! 13122:
! 13123:
! 13124: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
! 13125: func_stripname ()\
! 13126: {\
! 13127: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
! 13128: \ # positional parameters, so assign one to ordinary parameter first.\
! 13129: \ func_stripname_result=${3}\
! 13130: \ func_stripname_result=${func_stripname_result#"${1}"}\
! 13131: \ func_stripname_result=${func_stripname_result%"${2}"}\
! 13132: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
! 13133: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13134: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13135: test 0 -eq $? || _lt_function_replace_fail=:
! 13136:
! 13137:
! 13138: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
! 13139: func_split_long_opt ()\
! 13140: {\
! 13141: \ func_split_long_opt_name=${1%%=*}\
! 13142: \ func_split_long_opt_arg=${1#*=}\
! 13143: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
! 13144: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13145: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13146: test 0 -eq $? || _lt_function_replace_fail=:
! 13147:
! 13148:
! 13149: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
! 13150: func_split_short_opt ()\
! 13151: {\
! 13152: \ func_split_short_opt_arg=${1#??}\
! 13153: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
! 13154: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
! 13155: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13156: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13157: test 0 -eq $? || _lt_function_replace_fail=:
! 13158:
! 13159:
! 13160: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
! 13161: func_lo2o ()\
! 13162: {\
! 13163: \ case ${1} in\
! 13164: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
! 13165: \ *) func_lo2o_result=${1} ;;\
! 13166: \ esac\
! 13167: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
! 13168: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13169: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13170: test 0 -eq $? || _lt_function_replace_fail=:
! 13171:
! 13172:
! 13173: sed -e '/^func_xform ()$/,/^} # func_xform /c\
! 13174: func_xform ()\
! 13175: {\
! 13176: func_xform_result=${1%.*}.lo\
! 13177: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
! 13178: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13179: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13180: test 0 -eq $? || _lt_function_replace_fail=:
! 13181:
! 13182:
! 13183: sed -e '/^func_arith ()$/,/^} # func_arith /c\
! 13184: func_arith ()\
! 13185: {\
! 13186: func_arith_result=$(( $* ))\
! 13187: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
! 13188: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13189: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13190: test 0 -eq $? || _lt_function_replace_fail=:
! 13191:
! 13192:
! 13193: sed -e '/^func_len ()$/,/^} # func_len /c\
! 13194: func_len ()\
! 13195: {\
! 13196: func_len_result=${#1}\
! 13197: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
! 13198: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13199: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13200: test 0 -eq $? || _lt_function_replace_fail=:
! 13201:
! 13202: fi
! 13203:
! 13204: if test x"$lt_shell_append" = xyes; then
! 13205: sed -e '/^func_append ()$/,/^} # func_append /c\
! 13206: func_append ()\
! 13207: {\
! 13208: eval "${1}+=\\${2}"\
! 13209: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
! 13210: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13211: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13212: test 0 -eq $? || _lt_function_replace_fail=:
! 13213:
! 13214:
! 13215: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
! 13216: func_append_quoted ()\
! 13217: {\
! 13218: \ func_quote_for_eval "${2}"\
! 13219: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
! 13220: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
! 13221: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13222: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13223: test 0 -eq $? || _lt_function_replace_fail=:
! 13224:
! 13225:
! 13226: # Save a `func_append' function call where possible by direct use of '+='
! 13227: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
! 13228: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13229: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13230: test 0 -eq $? || _lt_function_replace_fail=:
! 13231: else
! 13232: # Save a `func_append' function call even when '+=' is not available
! 13233: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
! 13234: && mv -f "$cfgfile.tmp" "$cfgfile" \
! 13235: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
! 13236: test 0 -eq $? || _lt_function_replace_fail=:
! 13237: fi
! 13238:
! 13239: if test x"$_lt_function_replace_fail" = x":"; then
! 13240: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
! 13241: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
! 13242: fi
1.1 misho 13243:
13244:
1.1.1.2 ! misho 13245: mv -f "$cfgfile" "$ofile" ||
1.1 misho 13246: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13247: chmod +x "$ofile"
13248:
13249: ;;
13250:
13251: esac
13252: done # for ac_tag
13253:
13254:
1.1.1.2 ! misho 13255: as_fn_exit 0
1.1 misho 13256: _ACEOF
13257: ac_clean_files=$ac_clean_files_save
13258:
13259: test $ac_write_fail = 0 ||
1.1.1.2 ! misho 13260: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.1 misho 13261:
13262:
13263: # configure is writing to config.log, and then calls config.status.
13264: # config.status does its own redirection, appending to config.log.
13265: # Unfortunately, on DOS this fails, as config.log is still kept open
13266: # by configure, so config.status won't be able to write to it; its
13267: # output is simply discarded. So we exec the FD to /dev/null,
13268: # effectively closing config.log, so it can be properly (re)opened and
13269: # appended to by config.status. When coming back to configure, we
13270: # need to make the FD available again.
13271: if test "$no_create" != yes; then
13272: ac_cs_success=:
13273: ac_config_status_args=
13274: test "$silent" = yes &&
13275: ac_config_status_args="$ac_config_status_args --quiet"
13276: exec 5>/dev/null
13277: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13278: exec 5>>config.log
13279: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13280: # would make configure fail if this is the last instruction.
1.1.1.2 ! misho 13281: $ac_cs_success || as_fn_exit 1
1.1 misho 13282: fi
13283: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.1.1.2 ! misho 13284: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1.1 misho 13285: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13286: fi
13287:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>